#[non_exhaustive]pub enum CreateDistributionError {
Show 66 variants
AccessDenied(AccessDenied),
CnameAlreadyExists(CnameAlreadyExists),
ContinuousDeploymentPolicyInUse(ContinuousDeploymentPolicyInUse),
DistributionAlreadyExists(DistributionAlreadyExists),
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior),
IllegalOriginAccessConfiguration(IllegalOriginAccessConfiguration),
InconsistentQuantities(InconsistentQuantities),
InvalidArgument(InvalidArgument),
InvalidDefaultRootObject(InvalidDefaultRootObject),
InvalidDomainNameForOriginAccessControl(InvalidDomainNameForOriginAccessControl),
InvalidErrorCode(InvalidErrorCode),
InvalidForwardCookies(InvalidForwardCookies),
InvalidFunctionAssociation(InvalidFunctionAssociation),
InvalidGeoRestrictionParameter(InvalidGeoRestrictionParameter),
InvalidHeadersForS3Origin(InvalidHeadersForS3Origin),
InvalidLambdaFunctionAssociation(InvalidLambdaFunctionAssociation),
InvalidLocationCode(InvalidLocationCode),
InvalidMinimumProtocolVersion(InvalidMinimumProtocolVersion),
InvalidOrigin(InvalidOrigin),
InvalidOriginAccessControl(InvalidOriginAccessControl),
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity),
InvalidOriginKeepaliveTimeout(InvalidOriginKeepaliveTimeout),
InvalidOriginReadTimeout(InvalidOriginReadTimeout),
InvalidProtocolSettings(InvalidProtocolSettings),
InvalidQueryStringParameters(InvalidQueryStringParameters),
InvalidRelativePath(InvalidRelativePath),
InvalidRequiredProtocol(InvalidRequiredProtocol),
InvalidResponseCode(InvalidResponseCode),
InvalidTtlOrder(InvalidTtlOrder),
InvalidViewerCertificate(InvalidViewerCertificate),
InvalidWebAclId(InvalidWebAclId),
MissingBody(MissingBody),
NoSuchCachePolicy(NoSuchCachePolicy),
NoSuchContinuousDeploymentPolicy(NoSuchContinuousDeploymentPolicy),
NoSuchFieldLevelEncryptionConfig(NoSuchFieldLevelEncryptionConfig),
NoSuchOrigin(NoSuchOrigin),
NoSuchOriginRequestPolicy(NoSuchOriginRequestPolicy),
NoSuchRealtimeLogConfig(NoSuchRealtimeLogConfig),
NoSuchResponseHeadersPolicy(NoSuchResponseHeadersPolicy),
RealtimeLogConfigOwnerMismatch(RealtimeLogConfigOwnerMismatch),
TooManyCacheBehaviors(TooManyCacheBehaviors),
TooManyCertificates(TooManyCertificates),
TooManyCookieNamesInWhiteList(TooManyCookieNamesInWhiteList),
TooManyDistributionCnamEs(TooManyDistributionCnamEs),
TooManyDistributions(TooManyDistributions),
TooManyDistributionsAssociatedToCachePolicy(TooManyDistributionsAssociatedToCachePolicy),
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(TooManyDistributionsAssociatedToFieldLevelEncryptionConfig),
TooManyDistributionsAssociatedToKeyGroup(TooManyDistributionsAssociatedToKeyGroup),
TooManyDistributionsAssociatedToOriginAccessControl(TooManyDistributionsAssociatedToOriginAccessControl),
TooManyDistributionsAssociatedToOriginRequestPolicy(TooManyDistributionsAssociatedToOriginRequestPolicy),
TooManyDistributionsAssociatedToResponseHeadersPolicy(TooManyDistributionsAssociatedToResponseHeadersPolicy),
TooManyDistributionsWithFunctionAssociations(TooManyDistributionsWithFunctionAssociations),
TooManyDistributionsWithLambdaAssociations(TooManyDistributionsWithLambdaAssociations),
TooManyDistributionsWithSingleFunctionArn(TooManyDistributionsWithSingleFunctionArn),
TooManyFunctionAssociations(TooManyFunctionAssociations),
TooManyHeadersInForwardedValues(TooManyHeadersInForwardedValues),
TooManyKeyGroupsAssociatedToDistribution(TooManyKeyGroupsAssociatedToDistribution),
TooManyLambdaFunctionAssociations(TooManyLambdaFunctionAssociations),
TooManyOriginCustomHeaders(TooManyOriginCustomHeaders),
TooManyOriginGroupsPerDistribution(TooManyOriginGroupsPerDistribution),
TooManyOrigins(TooManyOrigins),
TooManyQueryStringParameters(TooManyQueryStringParameters),
TooManyTrustedSigners(TooManyTrustedSigners),
TrustedKeyGroupDoesNotExist(TrustedKeyGroupDoesNotExist),
TrustedSignerDoesNotExist(TrustedSignerDoesNotExist),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateDistributionError
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.
ContinuousDeploymentPolicyInUse(ContinuousDeploymentPolicyInUse)
You cannot delete a continuous deployment policy that is associated with a primary distribution.
DistributionAlreadyExists(DistributionAlreadyExists)
The caller reference you attempted to create the distribution with is associated with another distribution.
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior)
The specified configuration for field-level encryption can't be associated with the specified cache behavior.
IllegalOriginAccessConfiguration(IllegalOriginAccessConfiguration)
An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).
InconsistentQuantities(InconsistentQuantities)
The value of Quantity
and the size of Items
don't match.
InvalidArgument(InvalidArgument)
An argument is invalid.
InvalidDefaultRootObject(InvalidDefaultRootObject)
The default root object file name is too big or contains an invalid character.
InvalidDomainNameForOriginAccessControl(InvalidDomainNameForOriginAccessControl)
An origin access control is associated with an origin whose domain name is not supported.
InvalidErrorCode(InvalidErrorCode)
An invalid error code was specified.
InvalidForwardCookies(InvalidForwardCookies)
Your request contains forward cookies option which doesn't match with the expectation for the whitelisted
list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.
InvalidFunctionAssociation(InvalidFunctionAssociation)
A CloudFront function association is invalid.
InvalidGeoRestrictionParameter(InvalidGeoRestrictionParameter)
The specified geo restriction parameter is not valid.
InvalidHeadersForS3Origin(InvalidHeadersForS3Origin)
The headers specified are not valid for an Amazon S3 origin.
InvalidLambdaFunctionAssociation(InvalidLambdaFunctionAssociation)
The specified Lambda@Edge function association is invalid.
InvalidLocationCode(InvalidLocationCode)
The location code specified is not valid.
InvalidMinimumProtocolVersion(InvalidMinimumProtocolVersion)
The minimum protocol version specified is not valid.
InvalidOrigin(InvalidOrigin)
The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
InvalidOriginAccessControl(InvalidOriginAccessControl)
The origin access control is not valid.
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity)
The origin access identity is not valid or doesn't exist.
InvalidOriginKeepaliveTimeout(InvalidOriginKeepaliveTimeout)
The keep alive timeout specified for the origin is not valid.
InvalidOriginReadTimeout(InvalidOriginReadTimeout)
The read timeout specified for the origin is not valid.
InvalidProtocolSettings(InvalidProtocolSettings)
You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).
InvalidQueryStringParameters(InvalidQueryStringParameters)
The query string parameters specified are not valid.
InvalidRelativePath(InvalidRelativePath)
The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
InvalidRequiredProtocol(InvalidRequiredProtocol)
This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols
element from your distribution configuration.
InvalidResponseCode(InvalidResponseCode)
A response code is not valid.
InvalidTtlOrder(InvalidTtlOrder)
The TTL order specified is not valid.
InvalidViewerCertificate(InvalidViewerCertificate)
A viewer certificate specified is not valid.
InvalidWebAclId(InvalidWebAclId)
A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
. To specify a web ACL created using WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a
.
MissingBody(MissingBody)
This operation requires a body. Ensure that the body is present and the Content-Type
header is set.
NoSuchCachePolicy(NoSuchCachePolicy)
The cache policy does not exist.
NoSuchContinuousDeploymentPolicy(NoSuchContinuousDeploymentPolicy)
The continuous deployment policy doesn't exist.
NoSuchFieldLevelEncryptionConfig(NoSuchFieldLevelEncryptionConfig)
The specified configuration for field-level encryption doesn't exist.
NoSuchOrigin(NoSuchOrigin)
No origin exists with the specified Origin Id
.
NoSuchOriginRequestPolicy(NoSuchOriginRequestPolicy)
The origin request policy does not exist.
NoSuchRealtimeLogConfig(NoSuchRealtimeLogConfig)
The real-time log configuration does not exist.
NoSuchResponseHeadersPolicy(NoSuchResponseHeadersPolicy)
The response headers policy does not exist.
RealtimeLogConfigOwnerMismatch(RealtimeLogConfigOwnerMismatch)
The specified real-time log configuration belongs to a different Amazon Web Services account.
TooManyCacheBehaviors(TooManyCacheBehaviors)
You cannot create more cache behaviors for the distribution.
TooManyCertificates(TooManyCertificates)
You cannot create anymore custom SSL/TLS certificates.
TooManyCookieNamesInWhiteList(TooManyCookieNamesInWhiteList)
Your request contains more cookie names in the whitelist than are allowed per cache behavior.
TooManyDistributionCnamEs(TooManyDistributionCnamEs)
Your request contains more CNAMEs than are allowed per distribution.
TooManyDistributions(TooManyDistributions)
Processing your request would cause you to exceed the maximum number of distributions allowed.
TooManyDistributionsAssociatedToCachePolicy(TooManyDistributionsAssociatedToCachePolicy)
The maximum number of distributions have been associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(TooManyDistributionsAssociatedToFieldLevelEncryptionConfig)
The maximum number of distributions have been associated with the specified configuration for field-level encryption.
TooManyDistributionsAssociatedToKeyGroup(TooManyDistributionsAssociatedToKeyGroup)
The number of distributions that reference this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyDistributionsAssociatedToOriginAccessControl(TooManyDistributionsAssociatedToOriginAccessControl)
The maximum number of distributions have been associated with the specified origin access control.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyDistributionsAssociatedToOriginRequestPolicy(TooManyDistributionsAssociatedToOriginRequestPolicy)
The maximum number of distributions have been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyDistributionsAssociatedToResponseHeadersPolicy(TooManyDistributionsAssociatedToResponseHeadersPolicy)
The maximum number of distributions have been associated with the specified response headers policy.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyDistributionsWithFunctionAssociations(TooManyDistributionsWithFunctionAssociations)
You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyDistributionsWithLambdaAssociations(TooManyDistributionsWithLambdaAssociations)
Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.
TooManyDistributionsWithSingleFunctionArn(TooManyDistributionsWithSingleFunctionArn)
The maximum number of distributions have been associated with the specified Lambda@Edge function.
TooManyFunctionAssociations(TooManyFunctionAssociations)
You have reached the maximum number of CloudFront function associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyHeadersInForwardedValues(TooManyHeadersInForwardedValues)
Your request contains too many headers in forwarded values.
TooManyKeyGroupsAssociatedToDistribution(TooManyKeyGroupsAssociatedToDistribution)
The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
TooManyLambdaFunctionAssociations(TooManyLambdaFunctionAssociations)
Your request contains more Lambda@Edge function associations than are allowed per distribution.
TooManyOriginCustomHeaders(TooManyOriginCustomHeaders)
Your request contains too many origin custom headers.
TooManyOriginGroupsPerDistribution(TooManyOriginGroupsPerDistribution)
Processing your request would cause you to exceed the maximum number of origin groups allowed.
TooManyOrigins(TooManyOrigins)
You cannot create more origins for the distribution.
TooManyQueryStringParameters(TooManyQueryStringParameters)
Your request contains too many query string parameters.
TooManyTrustedSigners(TooManyTrustedSigners)
Your request contains more trusted signers than are allowed per distribution.
TrustedKeyGroupDoesNotExist(TrustedKeyGroupDoesNotExist)
The specified key group does not exist.
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 CreateDistributionError
impl 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: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateDistributionError::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 CreateDistributionError::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::ContinuousDeploymentPolicyInUse
.
sourcepub fn is_distribution_already_exists(&self) -> bool
pub fn is_distribution_already_exists(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::IllegalOriginAccessConfiguration
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CreateDistributionError::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::InvalidDomainNameForOriginAccessControl
.
sourcepub fn is_invalid_error_code(&self) -> bool
pub fn is_invalid_error_code(&self) -> bool
Returns true
if the error kind is CreateDistributionError::InvalidErrorCode
.
Returns true
if the error kind is CreateDistributionError::InvalidForwardCookies
.
sourcepub fn is_invalid_function_association(&self) -> bool
pub fn is_invalid_function_association(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::InvalidLambdaFunctionAssociation
.
sourcepub fn is_invalid_location_code(&self) -> bool
pub fn is_invalid_location_code(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::InvalidMinimumProtocolVersion
.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::InvalidOriginReadTimeout
.
sourcepub fn is_invalid_protocol_settings(&self) -> bool
pub fn is_invalid_protocol_settings(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::InvalidQueryStringParameters
.
sourcepub fn is_invalid_relative_path(&self) -> bool
pub fn is_invalid_relative_path(&self) -> bool
Returns true
if the error kind is CreateDistributionError::InvalidRelativePath
.
sourcepub fn is_invalid_required_protocol(&self) -> bool
pub fn is_invalid_required_protocol(&self) -> bool
Returns true
if the error kind is CreateDistributionError::InvalidRequiredProtocol
.
sourcepub fn is_invalid_response_code(&self) -> bool
pub fn is_invalid_response_code(&self) -> bool
Returns true
if the error kind is CreateDistributionError::InvalidResponseCode
.
sourcepub fn is_invalid_ttl_order(&self) -> bool
pub fn is_invalid_ttl_order(&self) -> bool
Returns true
if the error kind is CreateDistributionError::InvalidTtlOrder
.
sourcepub fn is_invalid_viewer_certificate(&self) -> bool
pub fn is_invalid_viewer_certificate(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::InvalidWebAclId
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::NoSuchFieldLevelEncryptionConfig
.
sourcepub fn is_no_such_origin(&self) -> bool
pub fn is_no_such_origin(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::TooManyCacheBehaviors
.
sourcepub fn is_too_many_certificates(&self) -> bool
pub fn is_too_many_certificates(&self) -> bool
Returns true
if the error kind is CreateDistributionError::TooManyCertificates
.
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::TooManyDistributionCnamEs
.
sourcepub fn is_too_many_distributions(&self) -> bool
pub fn is_too_many_distributions(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::TooManyOriginGroupsPerDistribution
.
sourcepub fn is_too_many_origins(&self) -> bool
pub fn is_too_many_origins(&self) -> bool
Returns true
if the error kind is CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::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 CreateDistributionError::TrustedSignerDoesNotExist
.
Trait Implementations§
source§impl CreateUnhandledError for CreateDistributionError
impl CreateUnhandledError for CreateDistributionError
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 Debug for CreateDistributionError
impl Debug for CreateDistributionError
source§impl Display for CreateDistributionError
impl Display for CreateDistributionError
source§impl Error for CreateDistributionError
impl Error for CreateDistributionError
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<CreateDistributionError> for Error
impl From<CreateDistributionError> for Error
source§fn from(err: CreateDistributionError) -> Self
fn from(err: CreateDistributionError) -> Self
source§impl ProvideErrorMetadata for CreateDistributionError
impl ProvideErrorMetadata for CreateDistributionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateDistributionError
impl RequestId for CreateDistributionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.Auto Trait Implementations§
impl Freeze for CreateDistributionError
impl !RefUnwindSafe for CreateDistributionError
impl Send for CreateDistributionError
impl Sync for CreateDistributionError
impl Unpin for CreateDistributionError
impl !UnwindSafe for CreateDistributionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more