#[non_exhaustive]
pub enum UpdateDistributionErrorKind {
Show 66 variants
AccessDenied(AccessDenied),
CnameAlreadyExists(CnameAlreadyExists),
ContinuousDeploymentPolicyInUse(ContinuousDeploymentPolicyInUse),
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior),
IllegalOriginAccessConfiguration(IllegalOriginAccessConfiguration),
IllegalUpdate(IllegalUpdate),
InconsistentQuantities(InconsistentQuantities),
InvalidArgument(InvalidArgument),
InvalidDefaultRootObject(InvalidDefaultRootObject),
InvalidDomainNameForOriginAccessControl(InvalidDomainNameForOriginAccessControl),
InvalidErrorCode(InvalidErrorCode),
InvalidForwardCookies(InvalidForwardCookies),
InvalidFunctionAssociation(InvalidFunctionAssociation),
InvalidGeoRestrictionParameter(InvalidGeoRestrictionParameter),
InvalidHeadersForS3Origin(InvalidHeadersForS3Origin),
InvalidIfMatchVersion(InvalidIfMatchVersion),
InvalidLambdaFunctionAssociation(InvalidLambdaFunctionAssociation),
InvalidLocationCode(InvalidLocationCode),
InvalidMinimumProtocolVersion(InvalidMinimumProtocolVersion),
InvalidOriginAccessControl(InvalidOriginAccessControl),
InvalidOriginAccessIdentity(InvalidOriginAccessIdentity),
InvalidOriginKeepaliveTimeout(InvalidOriginKeepaliveTimeout),
InvalidOriginReadTimeout(InvalidOriginReadTimeout),
InvalidQueryStringParameters(InvalidQueryStringParameters),
InvalidRelativePath(InvalidRelativePath),
InvalidRequiredProtocol(InvalidRequiredProtocol),
InvalidResponseCode(InvalidResponseCode),
InvalidTtlOrder(InvalidTtlOrder),
InvalidViewerCertificate(InvalidViewerCertificate),
InvalidWebAclId(InvalidWebAclId),
MissingBody(MissingBody),
NoSuchCachePolicy(NoSuchCachePolicy),
NoSuchContinuousDeploymentPolicy(NoSuchContinuousDeploymentPolicy),
NoSuchDistribution(NoSuchDistribution),
NoSuchFieldLevelEncryptionConfig(NoSuchFieldLevelEncryptionConfig),
NoSuchOrigin(NoSuchOrigin),
NoSuchOriginRequestPolicy(NoSuchOriginRequestPolicy),
NoSuchRealtimeLogConfig(NoSuchRealtimeLogConfig),
NoSuchResponseHeadersPolicy(NoSuchResponseHeadersPolicy),
PreconditionFailed(PreconditionFailed),
RealtimeLogConfigOwnerMismatch(RealtimeLogConfigOwnerMismatch),
StagingDistributionInUse(StagingDistributionInUse),
TooManyCacheBehaviors(TooManyCacheBehaviors),
TooManyCertificates(TooManyCertificates),
TooManyCookieNamesInWhiteList(TooManyCookieNamesInWhiteList),
TooManyDistributionCnamEs(TooManyDistributionCnamEs),
TooManyDistributionsAssociatedToCachePolicy(TooManyDistributionsAssociatedToCachePolicy),
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(TooManyDistributionsAssociatedToFieldLevelEncryptionConfig),
TooManyDistributionsAssociatedToKeyGroup(TooManyDistributionsAssociatedToKeyGroup),
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
Types of errors that can occur for the UpdateDistribution
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.
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).
IllegalUpdate(IllegalUpdate)
The update contains modifications that are not allowed.
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.
InvalidIfMatchVersion(InvalidIfMatchVersion)
The If-Match
version is missing or not valid.
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.
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.
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.
NoSuchDistribution(NoSuchDistribution)
The specified distribution does not 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.
PreconditionFailed(PreconditionFailed)
The precondition in one or more of the request fields evaluated to false
.
RealtimeLogConfigOwnerMismatch(RealtimeLogConfigOwnerMismatch)
The specified real-time log configuration belongs to a different Amazon Web Services account.
StagingDistributionInUse(StagingDistributionInUse)
A continuous deployment policy for this staging distribution already exists.
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.
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.
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)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.