Enum aws_sdk_cloudfront::operation::create_streaming_distribution_with_tags::CreateStreamingDistributionWithTagsError
source · #[non_exhaustive]pub enum CreateStreamingDistributionWithTagsError {
Show 15 variants
AccessDenied(AccessDenied),
CnameAlreadyExists(CnameAlreadyExists),
InconsistentQuantities(InconsistentQuantities),
InvalidArgument(InvalidArgument),
InvalidOrigin(InvalidOrigin),
InvalidOriginAccessControl(InvalidOriginAccessControl),
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity),
InvalidTagging(InvalidTagging),
MissingBody(MissingBody),
StreamingDistributionAlreadyExists(StreamingDistributionAlreadyExists),
TooManyStreamingDistributionCnamEs(TooManyStreamingDistributionCnamEs),
TooManyStreamingDistributions(TooManyStreamingDistributions),
TooManyTrustedSigners(TooManyTrustedSigners),
TrustedSignerDoesNotExist(TrustedSignerDoesNotExist),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateStreamingDistributionWithTagsError
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.
InvalidTagging(InvalidTagging)
The tagging specified is not valid.
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 CreateStreamingDistributionWithTagsError
impl CreateStreamingDistributionWithTagsError
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 CreateStreamingDistributionWithTagsError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionWithTagsError::CnameAlreadyExists
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionWithTagsError::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionWithTagsError::InvalidArgument
.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::InvalidOriginAccessIdentity
.
sourcepub fn is_invalid_tagging(&self) -> bool
pub fn is_invalid_tagging(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionWithTagsError::InvalidTagging
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::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 CreateStreamingDistributionWithTagsError::TrustedSignerDoesNotExist
.
Trait Implementations§
source§impl CreateUnhandledError for CreateStreamingDistributionWithTagsError
impl CreateUnhandledError for CreateStreamingDistributionWithTagsError
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 CreateStreamingDistributionWithTagsError
impl Error for CreateStreamingDistributionWithTagsError
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<CreateStreamingDistributionWithTagsError> for Error
impl From<CreateStreamingDistributionWithTagsError> for Error
source§fn from(err: CreateStreamingDistributionWithTagsError) -> Self
fn from(err: CreateStreamingDistributionWithTagsError) -> Self
source§impl ProvideErrorMetadata for CreateStreamingDistributionWithTagsError
impl ProvideErrorMetadata for CreateStreamingDistributionWithTagsError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateStreamingDistributionWithTagsError
impl RequestId for CreateStreamingDistributionWithTagsError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.