Enum aws_sdk_cloudfront::operation::create_streaming_distribution::CreateStreamingDistributionError
source · #[non_exhaustive]pub enum CreateStreamingDistributionError {
Show 14 variants
AccessDenied(AccessDenied),
CnameAlreadyExists(CnameAlreadyExists),
InconsistentQuantities(InconsistentQuantities),
InvalidArgument(InvalidArgument),
InvalidOrigin(InvalidOrigin),
InvalidOriginAccessControl(InvalidOriginAccessControl),
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity),
MissingBody(MissingBody),
StreamingDistributionAlreadyExists(StreamingDistributionAlreadyExists),
TooManyStreamingDistributionCnamEs(TooManyStreamingDistributionCnamEs),
TooManyStreamingDistributions(TooManyStreamingDistributions),
TooManyTrustedSigners(TooManyTrustedSigners),
TrustedSignerDoesNotExist(TrustedSignerDoesNotExist),
Unhandled(Unhandled),
}Expand description
Error type for the CreateStreamingDistributionError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDenied(AccessDenied)
Access denied.
CnameAlreadyExists(CnameAlreadyExists)
The CNAME specified is already defined for CloudFront.
InconsistentQuantities(InconsistentQuantities)
The value of Quantity and the size of Items don't match.
InvalidArgument(InvalidArgument)
An argument is invalid.
InvalidOrigin(InvalidOrigin)
The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
InvalidOriginAccessControl(InvalidOriginAccessControl)
The origin access control is not valid.
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity)
The origin access identity is not valid or doesn't exist.
MissingBody(MissingBody)
This operation requires a body. Ensure that the body is present and the Content-Type header is set.
StreamingDistributionAlreadyExists(StreamingDistributionAlreadyExists)
The caller reference you attempted to create the streaming distribution with is associated with another distribution
TooManyStreamingDistributionCnamEs(TooManyStreamingDistributionCnamEs)
Your request contains more CNAMEs than are allowed per distribution.
TooManyStreamingDistributions(TooManyStreamingDistributions)
Processing your request would cause you to exceed the maximum number of streaming distributions allowed.
TooManyTrustedSigners(TooManyTrustedSigners)
Your request contains more trusted signers than are allowed per distribution.
TrustedSignerDoesNotExist(TrustedSignerDoesNotExist)
One or more of your trusted signers don't exist.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateStreamingDistributionError
impl CreateStreamingDistributionError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the CreateStreamingDistributionError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateStreamingDistributionError::Unhandled variant from an ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_access_denied(&self) -> bool
pub fn is_access_denied(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::AccessDenied.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::CnameAlreadyExists.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::InconsistentQuantities.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::InvalidArgument.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::InvalidOrigin.
sourcepub fn is_invalid_origin_access_control(&self) -> bool
pub fn is_invalid_origin_access_control(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::InvalidOriginAccessControl.
sourcepub fn is_invalid_origin_access_identity(&self) -> bool
pub fn is_invalid_origin_access_identity(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::InvalidOriginAccessIdentity.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::MissingBody.
sourcepub fn is_streaming_distribution_already_exists(&self) -> bool
pub fn is_streaming_distribution_already_exists(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::StreamingDistributionAlreadyExists.
sourcepub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool
pub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::TooManyStreamingDistributionCnamEs.
sourcepub fn is_too_many_streaming_distributions(&self) -> bool
pub fn is_too_many_streaming_distributions(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::TooManyStreamingDistributions.
sourcepub fn is_too_many_trusted_signers(&self) -> bool
pub fn is_too_many_trusted_signers(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::TooManyTrustedSigners.
sourcepub fn is_trusted_signer_does_not_exist(&self) -> bool
pub fn is_trusted_signer_does_not_exist(&self) -> bool
Returns true if the error kind is CreateStreamingDistributionError::TrustedSignerDoesNotExist.
Trait Implementations§
source§impl CreateUnhandledError for CreateStreamingDistributionError
impl CreateUnhandledError for CreateStreamingDistributionError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>,
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata>, ) -> Self
source and error metadata.source§impl Error for CreateStreamingDistributionError
impl Error for CreateStreamingDistributionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<CreateStreamingDistributionError> for Error
impl From<CreateStreamingDistributionError> for Error
source§fn from(err: CreateStreamingDistributionError) -> Self
fn from(err: CreateStreamingDistributionError) -> Self
source§impl ProvideErrorMetadata for CreateStreamingDistributionError
impl ProvideErrorMetadata for CreateStreamingDistributionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateStreamingDistributionError
impl RequestId for CreateStreamingDistributionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.Auto Trait Implementations§
impl Freeze for CreateStreamingDistributionError
impl !RefUnwindSafe for CreateStreamingDistributionError
impl Send for CreateStreamingDistributionError
impl Sync for CreateStreamingDistributionError
impl Unpin for CreateStreamingDistributionError
impl !UnwindSafe for CreateStreamingDistributionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more