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§
source§impl 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_continuous_deployment_policy_in_use(&self) -> bool
pub fn is_continuous_deployment_policy_in_use(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::ContinuousDeploymentPolicyInUse
.
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_illegal_origin_access_configuration(&self) -> bool
pub fn is_illegal_origin_access_configuration(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::IllegalOriginAccessConfiguration
.
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_domain_name_for_origin_access_control(&self) -> bool
pub fn is_invalid_domain_name_for_origin_access_control(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::InvalidDomainNameForOriginAccessControl
.
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_control(&self) -> bool
pub fn is_invalid_origin_access_control(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::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 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_continuous_deployment_policy(&self) -> bool
pub fn is_no_such_continuous_deployment_policy(&self) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::NoSuchContinuousDeploymentPolicy
.
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_access_control(
&self
) -> bool
pub fn is_too_many_distributions_associated_to_origin_access_control(
&self
) -> bool
Returns true
if the error kind is CreateDistributionErrorKind::TooManyDistributionsAssociatedToOriginAccessControl
.
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
.