Struct aws_sdk_cloudfront::error::CreateDistributionError
source · [−]#[non_exhaustive]pub struct CreateDistributionError {
pub kind: CreateDistributionErrorKind,
/* private fields */
}
Expand description
Error type for the CreateDistribution
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: CreateDistributionErrorKind
Kind of error that occurred.
Implementations
sourceimpl CreateDistributionError
impl CreateDistributionError
sourcepub fn new(kind: CreateDistributionErrorKind, meta: Error) -> Self
pub fn new(kind: CreateDistributionErrorKind, meta: Error) -> Self
Creates a new CreateDistributionError
.
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 CreateDistributionError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CreateDistributionError::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 CreateDistributionErrorKind::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::CnameAlreadyExists
.
sourcepub fn is_distribution_already_exists(&self) -> bool
pub fn is_distribution_already_exists(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::InvalidDefaultRootObject
.
sourcepub fn is_invalid_error_code(&self) -> bool
pub fn is_invalid_error_code(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InvalidErrorCode
.
Returns true
if the error kind is CreateDistributionErrorKind::InvalidForwardCookies
.
sourcepub fn is_invalid_function_association(&self) -> bool
pub fn is_invalid_function_association(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::InvalidLambdaFunctionAssociation
.
sourcepub fn is_invalid_location_code(&self) -> bool
pub fn is_invalid_location_code(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::InvalidMinimumProtocolVersion
.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::InvalidOriginReadTimeout
.
sourcepub fn is_invalid_protocol_settings(&self) -> bool
pub fn is_invalid_protocol_settings(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::InvalidQueryStringParameters
.
sourcepub fn is_invalid_relative_path(&self) -> bool
pub fn is_invalid_relative_path(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InvalidRelativePath
.
sourcepub fn is_invalid_required_protocol(&self) -> bool
pub fn is_invalid_required_protocol(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InvalidRequiredProtocol
.
sourcepub fn is_invalid_response_code(&self) -> bool
pub fn is_invalid_response_code(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InvalidResponseCode
.
sourcepub fn is_invalid_ttl_order(&self) -> bool
pub fn is_invalid_ttl_order(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InvalidTtlOrder
.
sourcepub fn is_invalid_viewer_certificate(&self) -> bool
pub fn is_invalid_viewer_certificate(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::InvalidWebAclId
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig
.
sourcepub fn is_no_such_origin(&self) -> bool
pub fn is_no_such_origin(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::TooManyCacheBehaviors
.
sourcepub fn is_too_many_certificates(&self) -> bool
pub fn is_too_many_certificates(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::TooManyCertificates
.
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::TooManyDistributionCnamEs
.
sourcepub fn is_too_many_distributions(&self) -> bool
pub fn is_too_many_distributions(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::TooManyOriginGroupsPerDistribution
.
sourcepub fn is_too_many_origins(&self) -> bool
pub fn is_too_many_origins(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::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 CreateDistributionErrorKind::TrustedSignerDoesNotExist
.
Trait Implementations
sourceimpl Debug for CreateDistributionError
impl Debug for CreateDistributionError
sourceimpl Display for CreateDistributionError
impl Display for CreateDistributionError
sourceimpl Error for CreateDistributionError
impl Error for CreateDistributionError
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 CreateDistributionError
impl Send for CreateDistributionError
impl Sync for CreateDistributionError
impl Unpin for CreateDistributionError
impl !UnwindSafe for CreateDistributionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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