#[non_exhaustive]pub struct CreateDistributionWithTagsError {
pub kind: CreateDistributionWithTagsErrorKind,
/* private fields */
}
Expand description
Error type for the CreateDistributionWithTags
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: CreateDistributionWithTagsErrorKind
Kind of error that occurred.
Implementations
sourceimpl CreateDistributionWithTagsError
impl CreateDistributionWithTagsError
sourcepub fn new(kind: CreateDistributionWithTagsErrorKind, meta: Error) -> Self
pub fn new(kind: CreateDistributionWithTagsErrorKind, meta: Error) -> Self
Creates a new CreateDistributionWithTagsError
.
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 CreateDistributionWithTagsError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CreateDistributionWithTagsError::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 CreateDistributionWithTagsErrorKind::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::CnameAlreadyExists
.
sourcepub fn is_distribution_already_exists(&self) -> bool
pub fn is_distribution_already_exists(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::InvalidDefaultRootObject
.
sourcepub fn is_invalid_error_code(&self) -> bool
pub fn is_invalid_error_code(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidErrorCode
.
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidForwardCookies
.
sourcepub fn is_invalid_function_association(&self) -> bool
pub fn is_invalid_function_association(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::InvalidHeadersForS3Origin
.
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 CreateDistributionWithTagsErrorKind::InvalidLambdaFunctionAssociation
.
sourcepub fn is_invalid_location_code(&self) -> bool
pub fn is_invalid_location_code(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::InvalidMinimumProtocolVersion
.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidOrigin
.
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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::InvalidOriginReadTimeout
.
sourcepub fn is_invalid_protocol_settings(&self) -> bool
pub fn is_invalid_protocol_settings(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::InvalidQueryStringParameters
.
sourcepub fn is_invalid_relative_path(&self) -> bool
pub fn is_invalid_relative_path(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidRelativePath
.
sourcepub fn is_invalid_required_protocol(&self) -> bool
pub fn is_invalid_required_protocol(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidRequiredProtocol
.
sourcepub fn is_invalid_response_code(&self) -> bool
pub fn is_invalid_response_code(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidResponseCode
.
sourcepub fn is_invalid_tagging(&self) -> bool
pub fn is_invalid_tagging(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidTagging
.
sourcepub fn is_invalid_ttl_order(&self) -> bool
pub fn is_invalid_ttl_order(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::InvalidTtlOrder
.
sourcepub fn is_invalid_viewer_certificate(&self) -> bool
pub fn is_invalid_viewer_certificate(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::InvalidWebAclId
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::NoSuchCachePolicy
.
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 CreateDistributionWithTagsErrorKind::NoSuchFieldLevelEncryptionConfig
.
sourcepub fn is_no_such_origin(&self) -> bool
pub fn is_no_such_origin(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::NoSuchResponseHeadersPolicy
.
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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::TooManyCacheBehaviors
.
sourcepub fn is_too_many_certificates(&self) -> bool
pub fn is_too_many_certificates(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::TooManyCertificates
.
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::TooManyDistributionCnamEs
.
sourcepub fn is_too_many_distributions(&self) -> bool
pub fn is_too_many_distributions(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::TooManyOriginGroupsPerDistribution
.
sourcepub fn is_too_many_origins(&self) -> bool
pub fn is_too_many_origins(&self) -> bool
Returns true
if the error kind is CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::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 CreateDistributionWithTagsErrorKind::TrustedSignerDoesNotExist
.
Trait Implementations
sourceimpl Error for CreateDistributionWithTagsError
impl Error for CreateDistributionWithTagsError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for CreateDistributionWithTagsError
impl Send for CreateDistributionWithTagsError
impl Sync for CreateDistributionWithTagsError
impl Unpin for CreateDistributionWithTagsError
impl !UnwindSafe for CreateDistributionWithTagsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more