Enum aws_sdk_cloudfront::operation::update_streaming_distribution::UpdateStreamingDistributionError
source · #[non_exhaustive]pub enum UpdateStreamingDistributionError {
Show 15 variants
AccessDenied(AccessDenied),
CnameAlreadyExists(CnameAlreadyExists),
IllegalUpdate(IllegalUpdate),
InconsistentQuantities(InconsistentQuantities),
InvalidArgument(InvalidArgument),
InvalidIfMatchVersion(InvalidIfMatchVersion),
InvalidOriginAccessControl(InvalidOriginAccessControl),
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity),
MissingBody(MissingBody),
NoSuchStreamingDistribution(NoSuchStreamingDistribution),
PreconditionFailed(PreconditionFailed),
TooManyStreamingDistributionCnamEs(TooManyStreamingDistributionCnamEs),
TooManyTrustedSigners(TooManyTrustedSigners),
TrustedSignerDoesNotExist(TrustedSignerDoesNotExist),
Unhandled(Unhandled),
}
Expand description
Error type for the UpdateStreamingDistributionError
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.
IllegalUpdate(IllegalUpdate)
The update contains modifications that are not allowed.
InconsistentQuantities(InconsistentQuantities)
The value of Quantity
and the size of Items
don't match.
InvalidArgument(InvalidArgument)
An argument is invalid.
InvalidIfMatchVersion(InvalidIfMatchVersion)
The If-Match
version is missing or not valid.
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.
NoSuchStreamingDistribution(NoSuchStreamingDistribution)
The specified streaming distribution does not exist.
PreconditionFailed(PreconditionFailed)
The precondition in one or more of the request fields evaluated to false
.
TooManyStreamingDistributionCnamEs(TooManyStreamingDistributionCnamEs)
Your request contains more CNAMEs than are allowed per distribution.
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 UpdateStreamingDistributionError
impl UpdateStreamingDistributionError
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 UpdateStreamingDistributionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdateStreamingDistributionError::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 UpdateStreamingDistributionError::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::CnameAlreadyExists
.
sourcepub fn is_illegal_update(&self) -> bool
pub fn is_illegal_update(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::IllegalUpdate
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::InvalidArgument
.
sourcepub fn is_invalid_if_match_version(&self) -> bool
pub fn is_invalid_if_match_version(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::InvalidIfMatchVersion
.
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 UpdateStreamingDistributionError::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 UpdateStreamingDistributionError::InvalidOriginAccessIdentity
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::MissingBody
.
sourcepub fn is_no_such_streaming_distribution(&self) -> bool
pub fn is_no_such_streaming_distribution(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::NoSuchStreamingDistribution
.
sourcepub fn is_precondition_failed(&self) -> bool
pub fn is_precondition_failed(&self) -> bool
Returns true
if the error kind is UpdateStreamingDistributionError::PreconditionFailed
.
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 UpdateStreamingDistributionError::TooManyStreamingDistributionCnamEs
.
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 UpdateStreamingDistributionError::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 UpdateStreamingDistributionError::TrustedSignerDoesNotExist
.
Trait Implementations§
source§impl CreateUnhandledError for UpdateStreamingDistributionError
impl CreateUnhandledError for UpdateStreamingDistributionError
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 UpdateStreamingDistributionError
impl Error for UpdateStreamingDistributionError
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<UpdateStreamingDistributionError> for Error
impl From<UpdateStreamingDistributionError> for Error
source§fn from(err: UpdateStreamingDistributionError) -> Self
fn from(err: UpdateStreamingDistributionError) -> Self
source§impl ProvideErrorMetadata for UpdateStreamingDistributionError
impl ProvideErrorMetadata for UpdateStreamingDistributionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdateStreamingDistributionError
impl RequestId for UpdateStreamingDistributionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.