Struct aws_sdk_cloudfront::error::CopyDistributionError
source · #[non_exhaustive]pub struct CopyDistributionError {
pub kind: CopyDistributionErrorKind,
/* private fields */
}
Expand description
Error type for the CopyDistribution
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: CopyDistributionErrorKind
Kind of error that occurred.
Implementations§
source§impl CopyDistributionError
impl CopyDistributionError
sourcepub fn new(kind: CopyDistributionErrorKind, meta: Error) -> Self
pub fn new(kind: CopyDistributionErrorKind, meta: Error) -> Self
Creates a new CopyDistributionError
.
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 CopyDistributionError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CopyDistributionError::Unhandled
variant from a aws_smithy_types::Error
.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_access_denied(&self) -> bool
pub fn is_access_denied(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::CnameAlreadyExists
.
sourcepub fn is_distribution_already_exists(&self) -> bool
pub fn is_distribution_already_exists(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::DistributionAlreadyExists
.
sourcepub fn is_illegal_field_level_encryption_config_association_with_cache_behavior(
&self
) -> bool
pub fn is_illegal_field_level_encryption_config_association_with_cache_behavior(
&self
) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidArgument
.
sourcepub fn is_invalid_default_root_object(&self) -> bool
pub fn is_invalid_default_root_object(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidDefaultRootObject
.
sourcepub fn is_invalid_error_code(&self) -> bool
pub fn is_invalid_error_code(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidErrorCode
.
Returns true
if the error kind is CopyDistributionErrorKind::InvalidForwardCookies
.
sourcepub fn is_invalid_function_association(&self) -> bool
pub fn is_invalid_function_association(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidFunctionAssociation
.
sourcepub fn is_invalid_geo_restriction_parameter(&self) -> bool
pub fn is_invalid_geo_restriction_parameter(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidGeoRestrictionParameter
.
sourcepub fn is_invalid_headers_for_s3_origin(&self) -> bool
pub fn is_invalid_headers_for_s3_origin(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidHeadersForS3Origin
.
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 CopyDistributionErrorKind::InvalidIfMatchVersion
.
sourcepub fn is_invalid_lambda_function_association(&self) -> bool
pub fn is_invalid_lambda_function_association(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidLambdaFunctionAssociation
.
sourcepub fn is_invalid_location_code(&self) -> bool
pub fn is_invalid_location_code(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidLocationCode
.
sourcepub fn is_invalid_minimum_protocol_version(&self) -> bool
pub fn is_invalid_minimum_protocol_version(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidMinimumProtocolVersion
.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::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 CopyDistributionErrorKind::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 CopyDistributionErrorKind::InvalidOriginAccessIdentity
.
sourcepub fn is_invalid_origin_keepalive_timeout(&self) -> bool
pub fn is_invalid_origin_keepalive_timeout(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidOriginKeepaliveTimeout
.
sourcepub fn is_invalid_origin_read_timeout(&self) -> bool
pub fn is_invalid_origin_read_timeout(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidOriginReadTimeout
.
sourcepub fn is_invalid_protocol_settings(&self) -> bool
pub fn is_invalid_protocol_settings(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidProtocolSettings
.
sourcepub fn is_invalid_query_string_parameters(&self) -> bool
pub fn is_invalid_query_string_parameters(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidQueryStringParameters
.
sourcepub fn is_invalid_relative_path(&self) -> bool
pub fn is_invalid_relative_path(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidRelativePath
.
sourcepub fn is_invalid_required_protocol(&self) -> bool
pub fn is_invalid_required_protocol(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidRequiredProtocol
.
sourcepub fn is_invalid_response_code(&self) -> bool
pub fn is_invalid_response_code(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidResponseCode
.
sourcepub fn is_invalid_ttl_order(&self) -> bool
pub fn is_invalid_ttl_order(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidTtlOrder
.
sourcepub fn is_invalid_viewer_certificate(&self) -> bool
pub fn is_invalid_viewer_certificate(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidViewerCertificate
.
sourcepub fn is_invalid_web_acl_id(&self) -> bool
pub fn is_invalid_web_acl_id(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::InvalidWebAclId
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::MissingBody
.
sourcepub fn is_no_such_cache_policy(&self) -> bool
pub fn is_no_such_cache_policy(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchCachePolicy
.
sourcepub fn is_no_such_distribution(&self) -> bool
pub fn is_no_such_distribution(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchDistribution
.
sourcepub fn is_no_such_field_level_encryption_config(&self) -> bool
pub fn is_no_such_field_level_encryption_config(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchFieldLevelEncryptionConfig
.
sourcepub fn is_no_such_origin(&self) -> bool
pub fn is_no_such_origin(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchOrigin
.
sourcepub fn is_no_such_origin_request_policy(&self) -> bool
pub fn is_no_such_origin_request_policy(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchOriginRequestPolicy
.
sourcepub fn is_no_such_realtime_log_config(&self) -> bool
pub fn is_no_such_realtime_log_config(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchRealtimeLogConfig
.
sourcepub fn is_no_such_response_headers_policy(&self) -> bool
pub fn is_no_such_response_headers_policy(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::NoSuchResponseHeadersPolicy
.
sourcepub fn is_precondition_failed(&self) -> bool
pub fn is_precondition_failed(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::PreconditionFailed
.
sourcepub fn is_realtime_log_config_owner_mismatch(&self) -> bool
pub fn is_realtime_log_config_owner_mismatch(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::RealtimeLogConfigOwnerMismatch
.
sourcepub fn is_too_many_cache_behaviors(&self) -> bool
pub fn is_too_many_cache_behaviors(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyCacheBehaviors
.
sourcepub fn is_too_many_certificates(&self) -> bool
pub fn is_too_many_certificates(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyCertificates
.
Returns true
if the error kind is CopyDistributionErrorKind::TooManyCookieNamesInWhiteList
.
sourcepub fn is_too_many_distribution_cnam_es(&self) -> bool
pub fn is_too_many_distribution_cnam_es(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionCnamEs
.
sourcepub fn is_too_many_distributions(&self) -> bool
pub fn is_too_many_distributions(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributions
.
sourcepub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool
pub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy
.
sourcepub fn is_too_many_distributions_associated_to_field_level_encryption_config(
&self
) -> bool
pub fn is_too_many_distributions_associated_to_field_level_encryption_config(
&self
) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig
.
sourcepub fn is_too_many_distributions_associated_to_key_group(&self) -> bool
pub fn is_too_many_distributions_associated_to_key_group(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup
.
sourcepub fn is_too_many_distributions_associated_to_origin_request_policy(
&self
) -> bool
pub fn is_too_many_distributions_associated_to_origin_request_policy(
&self
) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy
.
sourcepub fn is_too_many_distributions_associated_to_response_headers_policy(
&self
) -> bool
pub fn is_too_many_distributions_associated_to_response_headers_policy(
&self
) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsAssociatedToResponseHeadersPolicy
.
sourcepub fn is_too_many_distributions_with_function_associations(&self) -> bool
pub fn is_too_many_distributions_with_function_associations(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsWithFunctionAssociations
.
sourcepub fn is_too_many_distributions_with_lambda_associations(&self) -> bool
pub fn is_too_many_distributions_with_lambda_associations(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsWithLambdaAssociations
.
sourcepub fn is_too_many_distributions_with_single_function_arn(&self) -> bool
pub fn is_too_many_distributions_with_single_function_arn(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn
.
sourcepub fn is_too_many_function_associations(&self) -> bool
pub fn is_too_many_function_associations(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyFunctionAssociations
.
sourcepub fn is_too_many_headers_in_forwarded_values(&self) -> bool
pub fn is_too_many_headers_in_forwarded_values(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyHeadersInForwardedValues
.
sourcepub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool
pub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution
.
sourcepub fn is_too_many_lambda_function_associations(&self) -> bool
pub fn is_too_many_lambda_function_associations(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyLambdaFunctionAssociations
.
sourcepub fn is_too_many_origin_custom_headers(&self) -> bool
pub fn is_too_many_origin_custom_headers(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyOriginCustomHeaders
.
sourcepub fn is_too_many_origin_groups_per_distribution(&self) -> bool
pub fn is_too_many_origin_groups_per_distribution(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyOriginGroupsPerDistribution
.
sourcepub fn is_too_many_origins(&self) -> bool
pub fn is_too_many_origins(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyOrigins
.
sourcepub fn is_too_many_query_string_parameters(&self) -> bool
pub fn is_too_many_query_string_parameters(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TooManyQueryStringParameters
.
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 CopyDistributionErrorKind::TooManyTrustedSigners
.
sourcepub fn is_trusted_key_group_does_not_exist(&self) -> bool
pub fn is_trusted_key_group_does_not_exist(&self) -> bool
Returns true
if the error kind is CopyDistributionErrorKind::TrustedKeyGroupDoesNotExist
.
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 CopyDistributionErrorKind::TrustedSignerDoesNotExist
.