Class CloudFrontException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\CloudFront\Exception\CloudFrontException
- Namespace: Aws\CloudFront\Exception
- Located at CloudFront/Exception/CloudFrontException.php
Represents an error interacting with the Amazon CloudFront service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
AccessDenied
[ 'Message' => '<string>', ]
BatchTooLarge
[ 'Message' => '<string>', ]
CNAMEAlreadyExists
[ 'Message' => '<string>', ]
CachePolicyAlreadyExists
[ 'Message' => '<string>', ]
Description
A cache policy with this name already exists. You must provide a unique name. To modify an existing cache policy, use UpdateCachePolicy
.
Members
CachePolicyInUse
[ 'Message' => '<string>', ]
Description
Cannot delete the cache policy because it is attached to one or more cache behaviors.
Members
CannotChangeImmutablePublicKeyFields
[ 'Message' => '<string>', ]
CloudFrontOriginAccessIdentityAlreadyExists
[ 'Message' => '<string>', ]
Description
If the CallerReference
is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
Members
CloudFrontOriginAccessIdentityInUse
[ 'Message' => '<string>', ]
ContinuousDeploymentPolicyAlreadyExists
[ 'Message' => '<string>', ]
Description
A continuous deployment policy with this configuration already exists.
Members
ContinuousDeploymentPolicyInUse
[ 'Message' => '<string>', ]
Description
You cannot delete a continuous deployment policy that is associated with a primary distribution.
Members
DistributionAlreadyExists
[ 'Message' => '<string>', ]
Description
The caller reference you attempted to create the distribution with is associated with another distribution.
Members
DistributionNotDisabled
[ 'Message' => '<string>', ]
Description
The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.
Members
FieldLevelEncryptionConfigAlreadyExists
[ 'Message' => '<string>', ]
Description
The specified configuration for field-level encryption already exists.
Members
FieldLevelEncryptionConfigInUse
[ 'Message' => '<string>', ]
Description
The specified configuration for field-level encryption is in use.
Members
FieldLevelEncryptionProfileAlreadyExists
[ 'Message' => '<string>', ]
Description
The specified profile for field-level encryption already exists.
Members
FieldLevelEncryptionProfileInUse
[ 'Message' => '<string>', ]
Description
The specified profile for field-level encryption is in use.
Members
FieldLevelEncryptionProfileSizeExceeded
[ 'Message' => '<string>', ]
Description
The maximum size of a profile for field-level encryption was exceeded.
Members
FunctionAlreadyExists
[ 'Message' => '<string>', ]
Description
A function with the same name already exists in this Amazon Web Services account. To create a function, you must provide a unique name. To update an existing function, use UpdateFunction
.
Members
FunctionInUse
[ 'Message' => '<string>', ]
Description
Cannot delete the function because it's attached to one or more cache behaviors.
Members
FunctionSizeLimitExceeded
[ 'Message' => '<string>', ]
Description
The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
IllegalDelete
[ 'Message' => '<string>', ]
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior
[ 'Message' => '<string>', ]
Description
The specified configuration for field-level encryption can't be associated with the specified cache behavior.
Members
IllegalOriginAccessConfiguration
[ 'Message' => '<string>', ]
Description
An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).
Members
IllegalUpdate
[ 'Message' => '<string>', ]
InconsistentQuantities
[ 'Message' => '<string>', ]
InvalidArgument
[ 'Message' => '<string>', ]
InvalidDefaultRootObject
[ 'Message' => '<string>', ]
Description
The default root object file name is too big or contains an invalid character.
Members
InvalidDomainNameForOriginAccessControl
[ 'Message' => '<string>', ]
Description
An origin access control is associated with an origin whose domain name is not supported.
Members
InvalidErrorCode
[ 'Message' => '<string>', ]
InvalidForwardCookies
[ 'Message' => '<string>', ]
Description
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.
Members
InvalidFunctionAssociation
[ 'Message' => '<string>', ]
InvalidGeoRestrictionParameter
[ 'Message' => '<string>', ]
InvalidHeadersForS3Origin
[ 'Message' => '<string>', ]
Description
The headers specified are not valid for an Amazon S3 origin.
Members
InvalidIfMatchVersion
[ 'Message' => '<string>', ]
InvalidLambdaFunctionAssociation
[ 'Message' => '<string>', ]
InvalidLocationCode
[ 'Message' => '<string>', ]
InvalidMinimumProtocolVersion
[ 'Message' => '<string>', ]
InvalidOrigin
[ 'Message' => '<string>', ]
Description
The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
Members
InvalidOriginAccessControl
[ 'Message' => '<string>', ]
InvalidOriginAccessIdentity
[ 'Message' => '<string>', ]
InvalidOriginKeepaliveTimeout
[ 'Message' => '<string>', ]
Description
The keep alive timeout specified for the origin is not valid.
Members
InvalidOriginReadTimeout
[ 'Message' => '<string>', ]
InvalidProtocolSettings
[ 'Message' => '<string>', ]
Description
You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).
Members
InvalidQueryStringParameters
[ 'Message' => '<string>', ]
InvalidRelativePath
[ 'Message' => '<string>', ]
Description
The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
Members
InvalidRequiredProtocol
[ 'Message' => '<string>', ]
Description
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.
Members
InvalidResponseCode
[ 'Message' => '<string>', ]
InvalidTTLOrder
[ 'Message' => '<string>', ]
InvalidTagging
[ 'Message' => '<string>', ]
InvalidViewerCertificate
[ 'Message' => '<string>', ]
InvalidWebACLId
[ 'Message' => '<string>', ]
Description
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
.
Members
KeyGroupAlreadyExists
[ 'Message' => '<string>', ]
Description
A key group with this name already exists. You must provide a unique name. To modify an existing key group, use UpdateKeyGroup
.
Members
MissingBody
[ 'Message' => '<string>', ]
Description
This operation requires a body. Ensure that the body is present and the Content-Type
header is set.
Members
MonitoringSubscriptionAlreadyExists
[ 'Message' => '<string>', ]
Description
A monitoring subscription already exists for the specified distribution.
Members
NoSuchCachePolicy
[ 'Message' => '<string>', ]
NoSuchCloudFrontOriginAccessIdentity
[ 'Message' => '<string>', ]
NoSuchContinuousDeploymentPolicy
[ 'Message' => '<string>', ]
NoSuchDistribution
[ 'Message' => '<string>', ]
NoSuchFieldLevelEncryptionConfig
[ 'Message' => '<string>', ]
Description
The specified configuration for field-level encryption doesn't exist.
Members
NoSuchFieldLevelEncryptionProfile
[ 'Message' => '<string>', ]
Description
The specified profile for field-level encryption doesn't exist.
Members
NoSuchFunctionExists
[ 'Message' => '<string>', ]
NoSuchInvalidation
[ 'Message' => '<string>', ]
NoSuchMonitoringSubscription
[ 'Message' => '<string>', ]
Description
A monitoring subscription does not exist for the specified distribution.
Members
NoSuchOrigin
[ 'Message' => '<string>', ]
NoSuchOriginAccessControl
[ 'Message' => '<string>', ]
NoSuchOriginRequestPolicy
[ 'Message' => '<string>', ]
NoSuchPublicKey
[ 'Message' => '<string>', ]
NoSuchRealtimeLogConfig
[ 'Message' => '<string>', ]
NoSuchResource
[ 'Message' => '<string>', ]
NoSuchResponseHeadersPolicy
[ 'Message' => '<string>', ]
NoSuchStreamingDistribution
[ 'Message' => '<string>', ]
OriginAccessControlAlreadyExists
[ 'Message' => '<string>', ]
Description
An origin access control with the specified parameters already exists.
Members
OriginAccessControlInUse
[ 'Message' => '<string>', ]
Description
Cannot delete the origin access control because it's in use by one or more distributions.
Members
OriginRequestPolicyAlreadyExists
[ 'Message' => '<string>', ]
Description
An origin request policy with this name already exists. You must provide a unique name. To modify an existing origin request policy, use UpdateOriginRequestPolicy
.
Members
OriginRequestPolicyInUse
[ 'Message' => '<string>', ]
Description
Cannot delete the origin request policy because it is attached to one or more cache behaviors.
Members
PreconditionFailed
[ 'Message' => '<string>', ]
Description
The precondition in one or more of the request fields evaluated to false
.
Members
PublicKeyAlreadyExists
[ 'Message' => '<string>', ]
PublicKeyInUse
[ 'Message' => '<string>', ]
QueryArgProfileEmpty
[ 'Message' => '<string>', ]
Description
No profile specified for the field-level encryption query argument.
Members
RealtimeLogConfigAlreadyExists
[ 'Message' => '<string>', ]
Description
A real-time log configuration with this name already exists. You must provide a unique name. To modify an existing real-time log configuration, use UpdateRealtimeLogConfig
.
Members
RealtimeLogConfigInUse
[ 'Message' => '<string>', ]
Description
Cannot delete the real-time log configuration because it is attached to one or more cache behaviors.
Members
RealtimeLogConfigOwnerMismatch
[ 'Message' => '<string>', ]
Description
The specified real-time log configuration belongs to a different Amazon Web Services account.
Members
ResourceInUse
[ 'Message' => '<string>', ]
ResponseHeadersPolicyAlreadyExists
[ 'Message' => '<string>', ]
Description
A response headers policy with this name already exists. You must provide a unique name. To modify an existing response headers policy, use UpdateResponseHeadersPolicy
.
Members
ResponseHeadersPolicyInUse
[ 'Message' => '<string>', ]
Description
Cannot delete the response headers policy because it is attached to one or more cache behaviors in a CloudFront distribution.
Members
StagingDistributionInUse
[ 'Message' => '<string>', ]
Description
A continuous deployment policy for this staging distribution already exists.
Members
StreamingDistributionAlreadyExists
[ 'Message' => '<string>', ]
Description
The caller reference you attempted to create the streaming distribution with is associated with another distribution
Members
StreamingDistributionNotDisabled
[ 'Message' => '<string>', ]
Description
The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.
Members
TestFunctionFailed
[ 'Message' => '<string>', ]
TooLongCSPInResponseHeadersPolicy
[ 'Message' => '<string>', ]
Description
The length of the Content-Security-Policy
header value in the response headers policy exceeds the maximum.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyCacheBehaviors
[ 'Message' => '<string>', ]
Description
You cannot create more cache behaviors for the distribution.
Members
TooManyCachePolicies
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of cache policies for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyCertificates
[ 'Message' => '<string>', ]
TooManyCloudFrontOriginAccessIdentities
[ 'Message' => '<string>', ]
Description
Processing your request would cause you to exceed the maximum number of origin access identities allowed.
Members
TooManyContinuousDeploymentPolicies
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of continuous deployment policies for this Amazon Web Services account.
Members
TooManyCookieNamesInWhiteList
[ 'Message' => '<string>', ]
Description
Your request contains more cookie names in the whitelist than are allowed per cache behavior.
Members
TooManyCookiesInCachePolicy
[ 'Message' => '<string>', ]
Description
The number of cookies in the cache policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyCookiesInOriginRequestPolicy
[ 'Message' => '<string>', ]
Description
The number of cookies in the origin request policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyCustomHeadersInResponseHeadersPolicy
[ 'Message' => '<string>', ]
Description
The number of custom headers in the response headers policy exceeds the maximum.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyDistributionCNAMEs
[ 'Message' => '<string>', ]
Description
Your request contains more CNAMEs than are allowed per distribution.
Members
TooManyDistributions
[ 'Message' => '<string>', ]
Description
Processing your request would cause you to exceed the maximum number of distributions allowed.
Members
TooManyDistributionsAssociatedToCachePolicy
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig
[ 'Message' => '<string>', ]
Description
The maximum number of distributions have been associated with the specified configuration for field-level encryption.
Members
TooManyDistributionsAssociatedToKeyGroup
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyDistributionsAssociatedToOriginAccessControl
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyDistributionsAssociatedToOriginRequestPolicy
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyDistributionsAssociatedToResponseHeadersPolicy
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyDistributionsWithFunctionAssociations
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyDistributionsWithLambdaAssociations
[ 'Message' => '<string>', ]
Description
Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.
Members
TooManyDistributionsWithSingleFunctionARN
[ 'Message' => '<string>', ]
Description
The maximum number of distributions have been associated with the specified Lambda@Edge function.
Members
TooManyFieldLevelEncryptionConfigs
[ 'Message' => '<string>', ]
Description
The maximum number of configurations for field-level encryption have been created.
Members
TooManyFieldLevelEncryptionContentTypeProfiles
[ 'Message' => '<string>', ]
Description
The maximum number of content type profiles for field-level encryption have been created.
Members
TooManyFieldLevelEncryptionEncryptionEntities
[ 'Message' => '<string>', ]
Description
The maximum number of encryption entities for field-level encryption have been created.
Members
TooManyFieldLevelEncryptionFieldPatterns
[ 'Message' => '<string>', ]
Description
The maximum number of field patterns for field-level encryption have been created.
Members
TooManyFieldLevelEncryptionProfiles
[ 'Message' => '<string>', ]
Description
The maximum number of profiles for field-level encryption have been created.
Members
TooManyFieldLevelEncryptionQueryArgProfiles
[ 'Message' => '<string>', ]
Description
The maximum number of query arg profiles for field-level encryption have been created.
Members
TooManyFunctionAssociations
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyFunctions
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of CloudFront functions for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyHeadersInCachePolicy
[ 'Message' => '<string>', ]
Description
The number of headers in the cache policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyHeadersInForwardedValues
[ 'Message' => '<string>', ]
Description
Your request contains too many headers in forwarded values.
Members
TooManyHeadersInOriginRequestPolicy
[ 'Message' => '<string>', ]
Description
The number of headers in the origin request policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyInvalidationsInProgress
[ 'Message' => '<string>', ]
Description
You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.
Members
TooManyKeyGroups
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of key groups for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyKeyGroupsAssociatedToDistribution
[ 'Message' => '<string>', ]
Description
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.
Members
TooManyLambdaFunctionAssociations
[ 'Message' => '<string>', ]
Description
Your request contains more Lambda@Edge function associations than are allowed per distribution.
Members
TooManyOriginAccessControls
[ 'Message' => '<string>', ]
Description
The number of origin access controls in your Amazon Web Services account exceeds the maximum allowed.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyOriginCustomHeaders
[ 'Message' => '<string>', ]
TooManyOriginGroupsPerDistribution
[ 'Message' => '<string>', ]
Description
Processing your request would cause you to exceed the maximum number of origin groups allowed.
Members
TooManyOriginRequestPolicies
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of origin request policies for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyOrigins
[ 'Message' => '<string>', ]
TooManyPublicKeys
[ 'Message' => '<string>', ]
Description
The maximum number of public keys for field-level encryption have been created. To create a new public key, delete one of the existing keys.
Members
TooManyPublicKeysInKeyGroup
[ 'Message' => '<string>', ]
Description
The number of public keys in this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyQueryStringParameters
[ 'Message' => '<string>', ]
TooManyQueryStringsInCachePolicy
[ 'Message' => '<string>', ]
Description
The number of query strings in the cache policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyQueryStringsInOriginRequestPolicy
[ 'Message' => '<string>', ]
Description
The number of query strings in the origin request policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyRealtimeLogConfigs
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of real-time log configurations for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyRemoveHeadersInResponseHeadersPolicy
[ 'Message' => '<string>', ]
Description
The number of headers in RemoveHeadersConfig
in the response headers policy exceeds the maximum.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyResponseHeadersPolicies
[ 'Message' => '<string>', ]
Description
You have reached the maximum number of response headers policies for this Amazon Web Services account.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Members
TooManyStreamingDistributionCNAMEs
[ 'Message' => '<string>', ]
Description
Your request contains more CNAMEs than are allowed per distribution.
Members
TooManyStreamingDistributions
[ 'Message' => '<string>', ]
Description
Processing your request would cause you to exceed the maximum number of streaming distributions allowed.
Members
TooManyTrustedSigners
[ 'Message' => '<string>', ]
Description
Your request contains more trusted signers than are allowed per distribution.
Members
TrustedKeyGroupDoesNotExist
[ 'Message' => '<string>', ]
TrustedSignerDoesNotExist
[ 'Message' => '<string>', ]
UnsupportedOperation
[ 'Message' => '<string>', ]