# Packages
Package cloudfrontiface provides an interface to enable mocking the Amazon CloudFront service client for testing your code.
Package sign provides utilities to generate signed URLs for Amazon CloudFront.
# Functions
New creates a new instance of the CloudFront client with a session.
# Constants
CertificateSourceAcm is a CertificateSource enum value.
CertificateSourceCloudfront is a CertificateSource enum value.
CertificateSourceIam is a CertificateSource enum value.
ID to lookup a service endpoint with.
ErrCodeAccessDenied for service response error code "AccessDenied".
ErrCodeBatchTooLarge for service response error code "BatchTooLarge".
ErrCodeCannotChangeImmutablePublicKeyFields for service response error code "CannotChangeImmutablePublicKeyFields".
ErrCodeCNAMEAlreadyExists for service response error code "CNAMEAlreadyExists".
ErrCodeDistributionAlreadyExists for service response error code "DistributionAlreadyExists".
ErrCodeDistributionNotDisabled for service response error code "DistributionNotDisabled".
ErrCodeFieldLevelEncryptionConfigAlreadyExists for service response error code "FieldLevelEncryptionConfigAlreadyExists".
ErrCodeFieldLevelEncryptionConfigInUse for service response error code "FieldLevelEncryptionConfigInUse".
ErrCodeFieldLevelEncryptionProfileAlreadyExists for service response error code "FieldLevelEncryptionProfileAlreadyExists".
ErrCodeFieldLevelEncryptionProfileInUse for service response error code "FieldLevelEncryptionProfileInUse".
ErrCodeFieldLevelEncryptionProfileSizeExceeded for service response error code "FieldLevelEncryptionProfileSizeExceeded".
ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior for service response error code "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior".
ErrCodeIllegalUpdate for service response error code "IllegalUpdate".
ErrCodeInconsistentQuantities for service response error code "InconsistentQuantities".
ErrCodeInvalidArgument for service response error code "InvalidArgument".
ErrCodeInvalidDefaultRootObject for service response error code "InvalidDefaultRootObject".
ErrCodeInvalidErrorCode for service response error code "InvalidErrorCode".
ErrCodeInvalidForwardCookies for service response error code "InvalidForwardCookies".
ErrCodeInvalidGeoRestrictionParameter for service response error code "InvalidGeoRestrictionParameter".
ErrCodeInvalidHeadersForS3Origin for service response error code "InvalidHeadersForS3Origin".
ErrCodeInvalidIfMatchVersion for service response error code "InvalidIfMatchVersion".
ErrCodeInvalidLambdaFunctionAssociation for service response error code "InvalidLambdaFunctionAssociation".
ErrCodeInvalidLocationCode for service response error code "InvalidLocationCode".
ErrCodeInvalidMinimumProtocolVersion for service response error code "InvalidMinimumProtocolVersion".
ErrCodeInvalidOrigin for service response error code "InvalidOrigin".
ErrCodeInvalidOriginAccessIdentity for service response error code "InvalidOriginAccessIdentity".
ErrCodeInvalidOriginKeepaliveTimeout for service response error code "InvalidOriginKeepaliveTimeout".
ErrCodeInvalidOriginReadTimeout for service response error code "InvalidOriginReadTimeout".
ErrCodeInvalidProtocolSettings for service response error code "InvalidProtocolSettings".
ErrCodeInvalidQueryStringParameters for service response error code "InvalidQueryStringParameters".
ErrCodeInvalidRelativePath for service response error code "InvalidRelativePath".
ErrCodeInvalidRequiredProtocol for service response error code "InvalidRequiredProtocol".
ErrCodeInvalidResponseCode for service response error code "InvalidResponseCode".
ErrCodeInvalidTagging for service response error code "InvalidTagging".
ErrCodeInvalidTTLOrder for service response error code "InvalidTTLOrder".
ErrCodeInvalidViewerCertificate for service response error code "InvalidViewerCertificate".
ErrCodeInvalidWebACLId for service response error code "InvalidWebACLId".
ErrCodeMissingBody for service response error code "MissingBody".
ErrCodeNoSuchCloudFrontOriginAccessIdentity for service response error code "NoSuchCloudFrontOriginAccessIdentity".
ErrCodeNoSuchDistribution for service response error code "NoSuchDistribution".
ErrCodeNoSuchFieldLevelEncryptionConfig for service response error code "NoSuchFieldLevelEncryptionConfig".
ErrCodeNoSuchFieldLevelEncryptionProfile for service response error code "NoSuchFieldLevelEncryptionProfile".
ErrCodeNoSuchInvalidation for service response error code "NoSuchInvalidation".
ErrCodeNoSuchOrigin for service response error code "NoSuchOrigin".
ErrCodeNoSuchPublicKey for service response error code "NoSuchPublicKey".
ErrCodeNoSuchResource for service response error code "NoSuchResource".
ErrCodeNoSuchStreamingDistribution for service response error code "NoSuchStreamingDistribution".
ErrCodeOriginAccessIdentityAlreadyExists for service response error code "CloudFrontOriginAccessIdentityAlreadyExists".
ErrCodeOriginAccessIdentityInUse for service response error code "CloudFrontOriginAccessIdentityInUse".
ErrCodePreconditionFailed for service response error code "PreconditionFailed".
ErrCodePublicKeyAlreadyExists for service response error code "PublicKeyAlreadyExists".
ErrCodePublicKeyInUse for service response error code "PublicKeyInUse".
ErrCodeQueryArgProfileEmpty for service response error code "QueryArgProfileEmpty".
ErrCodeStreamingDistributionAlreadyExists for service response error code "StreamingDistributionAlreadyExists".
ErrCodeStreamingDistributionNotDisabled for service response error code "StreamingDistributionNotDisabled".
ErrCodeTooManyCacheBehaviors for service response error code "TooManyCacheBehaviors".
ErrCodeTooManyCertificates for service response error code "TooManyCertificates".
ErrCodeTooManyCloudFrontOriginAccessIdentities for service response error code "TooManyCloudFrontOriginAccessIdentities".
ErrCodeTooManyCookieNamesInWhiteList for service response error code "TooManyCookieNamesInWhiteList".
ErrCodeTooManyDistributionCNAMEs for service response error code "TooManyDistributionCNAMEs".
ErrCodeTooManyDistributions for service response error code "TooManyDistributions".
ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig for service response error code "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig".
ErrCodeTooManyDistributionsWithLambdaAssociations for service response error code "TooManyDistributionsWithLambdaAssociations".
ErrCodeTooManyFieldLevelEncryptionConfigs for service response error code "TooManyFieldLevelEncryptionConfigs".
ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles for service response error code "TooManyFieldLevelEncryptionContentTypeProfiles".
ErrCodeTooManyFieldLevelEncryptionEncryptionEntities for service response error code "TooManyFieldLevelEncryptionEncryptionEntities".
ErrCodeTooManyFieldLevelEncryptionFieldPatterns for service response error code "TooManyFieldLevelEncryptionFieldPatterns".
ErrCodeTooManyFieldLevelEncryptionProfiles for service response error code "TooManyFieldLevelEncryptionProfiles".
ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles for service response error code "TooManyFieldLevelEncryptionQueryArgProfiles".
ErrCodeTooManyHeadersInForwardedValues for service response error code "TooManyHeadersInForwardedValues".
ErrCodeTooManyInvalidationsInProgress for service response error code "TooManyInvalidationsInProgress".
ErrCodeTooManyLambdaFunctionAssociations for service response error code "TooManyLambdaFunctionAssociations".
ErrCodeTooManyOriginCustomHeaders for service response error code "TooManyOriginCustomHeaders".
ErrCodeTooManyOrigins for service response error code "TooManyOrigins".
ErrCodeTooManyPublicKeys for service response error code "TooManyPublicKeys".
ErrCodeTooManyQueryStringParameters for service response error code "TooManyQueryStringParameters".
ErrCodeTooManyStreamingDistributionCNAMEs for service response error code "TooManyStreamingDistributionCNAMEs".
ErrCodeTooManyStreamingDistributions for service response error code "TooManyStreamingDistributions".
ErrCodeTooManyTrustedSigners for service response error code "TooManyTrustedSigners".
ErrCodeTrustedSignerDoesNotExist for service response error code "TrustedSignerDoesNotExist".
EventTypeOriginRequest is a EventType enum value.
EventTypeOriginResponse is a EventType enum value.
EventTypeViewerRequest is a EventType enum value.
EventTypeViewerResponse is a EventType enum value.
FormatUrlencoded is a Format enum value.
GeoRestrictionTypeBlacklist is a GeoRestrictionType enum value.
GeoRestrictionTypeNone is a GeoRestrictionType enum value.
GeoRestrictionTypeWhitelist is a GeoRestrictionType enum value.
HttpVersionHttp11 is a HttpVersion enum value.
HttpVersionHttp2 is a HttpVersion enum value.
ItemSelectionAll is a ItemSelection enum value.
ItemSelectionNone is a ItemSelection enum value.
ItemSelectionWhitelist is a ItemSelection enum value.
MethodDelete is a Method enum value.
MethodGet is a Method enum value.
MethodHead is a Method enum value.
MethodOptions is a Method enum value.
MethodPatch is a Method enum value.
MethodPost is a Method enum value.
MethodPut is a Method enum value.
MinimumProtocolVersionSslv3 is a MinimumProtocolVersion enum value.
MinimumProtocolVersionTlsv1 is a MinimumProtocolVersion enum value.
MinimumProtocolVersionTlsv112016 is a MinimumProtocolVersion enum value.
MinimumProtocolVersionTlsv12016 is a MinimumProtocolVersion enum value.
MinimumProtocolVersionTlsv122018 is a MinimumProtocolVersion enum value.
OriginProtocolPolicyHttpOnly is a OriginProtocolPolicy enum value.
OriginProtocolPolicyHttpsOnly is a OriginProtocolPolicy enum value.
OriginProtocolPolicyMatchViewer is a OriginProtocolPolicy enum value.
PriceClassPriceClass100 is a PriceClass enum value.
PriceClassPriceClass200 is a PriceClass enum value.
PriceClassPriceClassAll is a PriceClass enum value.
ServiceID is a unique identifer of a specific service.
Name of service.
SslProtocolSslv3 is a SslProtocol enum value.
SslProtocolTlsv1 is a SslProtocol enum value.
SslProtocolTlsv11 is a SslProtocol enum value.
SslProtocolTlsv12 is a SslProtocol enum value.
SSLSupportMethodSniOnly is a SSLSupportMethod enum value.
SSLSupportMethodVip is a SSLSupportMethod enum value.
ViewerProtocolPolicyAllowAll is a ViewerProtocolPolicy enum value.
ViewerProtocolPolicyHttpsOnly is a ViewerProtocolPolicy enum value.
ViewerProtocolPolicyRedirectToHttps is a ViewerProtocolPolicy enum value.
# Structs
A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution.
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
A complex type that describes how CloudFront processes requests.
A complex type that contains zero or more CacheBehavior elements.
A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods.
CloudFront provides the API operation methods for making requests to Amazon CloudFront.
A field-level encryption content type profile.
The configuration for a field-level encryption content type-profile mapping.
Field-level encryption content type-profile.
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones.
A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones.
The request to create a new origin access identity.
The returned result of the corresponding request.
The request to create a new distribution.
The returned result of the corresponding request.
The request to create a new distribution with tags.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The request to create an invalidation.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
The request to create a new streaming distribution.
The returned result of the corresponding request.
The request to create a new streaming distribution with tags.
The returned result of the corresponding request.
A complex type that controls:
* Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
A complex type that controls:
* Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
A complex type that contains the list of Custom Headers for each origin.
A customer origin.
A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.
Deletes a origin access identity.
No description provided by the author
This action deletes a web distribution.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The request to delete a streaming distribution.
No description provided by the author
The distribution's information.
A distribution configuration.
A distribution Configuration and a list of tags to be associated with the distribution.
A distribution list.
A summary of the information about a CloudFront distribution.
Complex data type for field-level encryption profiles that includes all of the encryption entities.
Complex data type for field-level encryption profiles that includes the encryption key and field pattern specifications.
A complex data type that includes the profile configurations and other options specified for field-level encryption.
A complex data type that includes the profile configurations specified for field-level encryption.
List of field-level encrpytion configurations.
A complex data type for field-level encryption profiles.
A complex data type of profiles for the field-level encryption.
List of field-level encryption profiles.
The field-level encryption profile summary.
A summary of a field-level encryption item.
A complex data type that includes the field patterns to match for field-level encryption.
A complex type that specifies how CloudFront handles query strings and cookies.
A complex type that controls the countries in which your content is distributed.
The origin access identity's configuration information.
The returned result of the corresponding request.
The request to get an origin access identity's information.
The returned result of the corresponding request.
The request to get a distribution configuration.
The returned result of the corresponding request.
The request to get a distribution's information.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The request to get an invalidation's information.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
To request to get a streaming distribution configuration.
The returned result of the corresponding request.
The request to get a streaming distribution's information.
The returned result of the corresponding request.
A complex type that specifies the request headers, if any, that you want CloudFront to base caching on for this cache behavior.
An invalidation.
An invalidation batch.
The InvalidationList complex type describes the list of invalidation objects.
A summary of an invalidation request.
A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.
A complex type that contains a Lambda function association.
A complex type that specifies a list of Lambda functions associations for a cache behavior.
The request to list origin access identities.
The returned result of the corresponding request.
The request to list distributions that are associated with a specified AWS WAF web ACL.
The response to a request to list the distributions that are associated with a specified AWS WAF web ACL.
The request to list your distributions.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The request to list invalidations.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
The request to list your streaming distributions.
The returned result of the corresponding request.
The request to list tags for a CloudFront resource.
The returned result of the corresponding request.
A complex type that controls whether access logs are written for the distribution.
A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.
CloudFront origin access identity.
Origin access identity configuration.
Lists the origin access identities for CloudFront.Send a GET request to the /CloudFront API version/origin-access-identity/cloudfront resource.
Summary of the information about a CloudFront origin access identity.
A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.
A complex type that contains information about origins for this distribution.
A complex type that contains information about the SSL/TLS protocols that CloudFront can use when establishing an HTTPS connection with your origin.
A complex type that contains information about the objects that you want to invalidate.
A complex data type of public keys you add to CloudFront to use with features like field-level encryption.
Information about a public key you add to CloudFront to use with features like field-level encryption.
A list of public keys you've added to CloudFront to use with features like field-level encryption.
Public key information summary.
Query argument-profile mapping for field-level encryption.
Configuration for query argument-profile mapping for field-level encryption.
Query argument-profile mapping for field-level encryption.
No description provided by the author
A complex type that identifies ways in which you want to restrict distribution of your content.
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
A complex type that contains information about the Amazon S3 origin.
A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.
A streaming distribution.
The RTMP distribution's configuration information.
A streaming distribution Configuration and a list of tags to be associated with the streaming distribution.
A streaming distribution list.
A summary of the information for an Amazon CloudFront streaming distribution.
A complex type that controls whether access logs are written for this streaming distribution.
A complex type that contains Tag key and Tag value.
A complex type that contains zero or more Tag elements.
The request to add tags to a CloudFront resource.
No description provided by the author
A complex type that contains zero or more Tag elements.
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.
The request to remove tags from a CloudFront resource.
No description provided by the author
The request to update an origin access identity.
The returned result of the corresponding request.
The request to update a distribution.
The returned result of the corresponding request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The request to update a streaming distribution.
The returned result of the corresponding request.
A complex type that specifies the following:
* Whether you want viewers to use HTTP or HTTPS to request your objects.