amazonka-cloudfront-0.0.0: Amazon CloudFront SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudFront.Types

Contents

Synopsis

Service

data CloudFront Source

Version 2014-05-31 of the Amazon CloudFront service.

Error

data RESTError :: *

Instances

Eq RESTError 
Show RESTError 
Generic RESTError 
FromXML RESTError 
type Rep RESTError = D1 D1RESTError (C1 C1_0RESTError ((:*:) (S1 S1_0_0RESTError (Rec0 RESTMessage)) (S1 S1_0_1RESTError (Rec0 Text)))) 

XML

CloudFrontOriginAccessIdentityList

cfoailIsTruncated :: Lens' CloudFrontOriginAccessIdentityList Bool Source

A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.

cfoailItems :: Lens' CloudFrontOriginAccessIdentityList [CloudFrontOriginAccessIdentitySummary] Source

A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account.

cfoailMarker :: Lens' CloudFrontOriginAccessIdentityList Text Source

The value you provided for the Marker request parameter.

cfoailMaxItems :: Lens' CloudFrontOriginAccessIdentityList Int Source

The value you provided for the MaxItems request parameter.

cfoailNextMarker :: Lens' CloudFrontOriginAccessIdentityList (Maybe Text) Source

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.

cfoailQuantity :: Lens' CloudFrontOriginAccessIdentityList Int Source

The number of CloudFront origin access identities that were created by the current AWS account.

Invalidation

iCreateTime :: Lens' Invalidation UTCTime Source

The date and time the invalidation request was first made.

iId :: Lens' Invalidation Text Source

The identifier for the invalidation request. For example: IDFDVBD632BHDS5.

iInvalidationBatch :: Lens' Invalidation InvalidationBatch Source

The current invalidation information for the batch request.

iStatus :: Lens' Invalidation Text Source

The status of the invalidation request. When the invalidation batch is finished, the status is Completed.

SSLSupportMethod

AllowedMethods

allowedMethods Source

AllowedMethods constructor.

The fields accessible through corresponding lenses are:

amItems :: Lens' AllowedMethods [Text] Source

A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

amQuantity :: Lens' AllowedMethods Int Source

The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).

CloudFrontOriginAccessIdentityConfig

cfoaicCallerReference :: Lens' CloudFrontOriginAccessIdentityConfig Text Source

A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. 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.

cfoaicComment :: Lens' CloudFrontOriginAccessIdentityConfig Text Source

Any comments you want to include about the origin access identity.

Origin

origin Source

Arguments

:: Text

oId

-> Text

oDomainName

-> Origin 

Origin constructor.

The fields accessible through corresponding lenses are:

oCustomOriginConfig :: Lens' Origin (Maybe CustomOriginConfig) Source

A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

oDomainName :: Lens' Origin Text Source

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

oId :: Lens' Origin Text Source

A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.

oS3OriginConfig :: Lens' Origin (Maybe S3OriginConfig) Source

A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

ViewerProtocolPolicy

StreamingDistributionList

sdlIsTruncated :: Lens' StreamingDistributionList Bool Source

A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.

sdlItems :: Lens' StreamingDistributionList [StreamingDistributionSummary] Source

A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.

sdlMarker :: Lens' StreamingDistributionList Text Source

The value you provided for the Marker request parameter.

sdlMaxItems :: Lens' StreamingDistributionList Int Source

The value you provided for the MaxItems request parameter.

sdlNextMarker :: Lens' StreamingDistributionList (Maybe Text) Source

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your streaming distributions where they left off.

sdlQuantity :: Lens' StreamingDistributionList Int Source

The number of streaming distributions that were created by the current AWS account.

StreamingDistributionConfig

sdcAliases :: Lens' StreamingDistributionConfig Aliases Source

A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.

sdcCallerReference :: Lens' StreamingDistributionConfig Text Source

A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.

sdcComment :: Lens' StreamingDistributionConfig Text Source

Any comments you want to include about the streaming distribution.

sdcEnabled :: Lens' StreamingDistributionConfig Bool Source

Whether the streaming distribution is enabled to accept end user requests for content.

sdcLogging :: Lens' StreamingDistributionConfig StreamingLoggingConfig Source

A complex type that controls whether access logs are written for the streaming distribution.

sdcPriceClass :: Lens' StreamingDistributionConfig Text Source

A complex type that contains information about price class for this streaming distribution.

sdcS3Origin :: Lens' StreamingDistributionConfig S3Origin Source

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

sdcTrustedSigners :: Lens' StreamingDistributionConfig TrustedSigners Source

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

Signer

signer :: Signer Source

Signer constructor.

The fields accessible through corresponding lenses are:

sAwsAccountNumber :: Lens' Signer (Maybe Text) Source

Specifies an AWS account that can create signed URLs. Values: self, which indicates that the AWS account that was used to create the distribution can created signed URLs, or an AWS account number. Omit the dashes in the account number.

sKeyPairIds :: Lens' Signer (Maybe KeyPairIds) Source

A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.

CookiePreference

cookiePreference Source

CookiePreference constructor.

The fields accessible through corresponding lenses are:

cpForward :: Lens' CookiePreference Text Source

Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses.

cpWhitelistedNames :: Lens' CookiePreference (Maybe CookieNames) Source

A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.

OriginProtocolPolicy

Distribution

dActiveTrustedSigners :: Lens' Distribution ActiveTrustedSigners Source

CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.

dDistributionConfig :: Lens' Distribution DistributionConfig Source

The current configuration information for the distribution.

dDomainName :: Lens' Distribution Text Source

The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

dId :: Lens' Distribution Text Source

The identifier for the distribution. For example: EDFDVBD632BHDS5.

dInProgressInvalidationBatches :: Lens' Distribution Int Source

The number of invalidation batches currently in progress.

dLastModifiedTime :: Lens' Distribution UTCTime Source

The date and time the distribution was last modified.

dStatus :: Lens' Distribution Text Source

This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.

CloudFrontOriginAccessIdentitySummary

cfoaisComment :: Lens' CloudFrontOriginAccessIdentitySummary Text Source

The comment for this origin access identity, as originally specified when created.

cfoaisId :: Lens' CloudFrontOriginAccessIdentitySummary Text Source

The ID for the origin access identity. For example: E74FTE3AJFJ256A.

cfoaisS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentitySummary Text Source

The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

StreamingDistributionSummary

sdsAliases :: Lens' StreamingDistributionSummary Aliases Source

A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.

sdsComment :: Lens' StreamingDistributionSummary Text Source

The comment originally specified when this distribution was created.

sdsDomainName :: Lens' StreamingDistributionSummary Text Source

The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

sdsEnabled :: Lens' StreamingDistributionSummary Bool Source

Whether the distribution is enabled to accept end user requests for content.

sdsId :: Lens' StreamingDistributionSummary Text Source

The identifier for the distribution. For example: EDFDVBD632BHDS5.

sdsLastModifiedTime :: Lens' StreamingDistributionSummary UTCTime Source

The date and time the distribution was last modified.

sdsS3Origin :: Lens' StreamingDistributionSummary S3Origin Source

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

sdsStatus :: Lens' StreamingDistributionSummary Text Source

Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.

sdsTrustedSigners :: Lens' StreamingDistributionSummary TrustedSigners Source

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

CustomOriginConfig

cocHTTPPort :: Lens' CustomOriginConfig Int Source

The HTTP port the custom origin listens on.

cocHTTPSPort :: Lens' CustomOriginConfig Int Source

The HTTPS port the custom origin listens on.

cocOriginProtocolPolicy :: Lens' CustomOriginConfig Text Source

The origin protocol policy to apply to your origin.

Aliases

aliases Source

Arguments

:: Int

aQuantity

-> Aliases 

Aliases constructor.

The fields accessible through corresponding lenses are:

aItems :: Lens' Aliases [Text] Source

Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items.

aQuantity :: Lens' Aliases Int Source

The number of CNAMEs, if any, for this distribution.

InvalidationBatch

invalidationBatch Source

InvalidationBatch constructor.

The fields accessible through corresponding lenses are:

ibCallerReference :: Lens' InvalidationBatch Text Source

A unique name that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the Path object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create an invalidation batch, and the content of each Path element is identical to the original request, the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.

ibPaths :: Lens' InvalidationBatch Paths Source

The path of the object to invalidate. The path is relative to the distribution and must begin with a slash (/). You must enclose each invalidation object with the Path element tags. If the path includes non-ASCII characters or unsafe characters as defined in RFC 1783 (http:/www.ietf.orgrfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not invalidate the old version of the updated object.

InvalidationSummary

invalidationSummary Source

InvalidationSummary constructor.

The fields accessible through corresponding lenses are:

isId :: Lens' InvalidationSummary Text Source

The unique ID for an invalidation request.

isStatus :: Lens' InvalidationSummary Text Source

The status of an invalidation request.

DistributionConfig

dcAliases :: Lens' DistributionConfig Aliases Source

A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

dcCacheBehaviors :: Lens' DistributionConfig CacheBehaviors Source

A complex type that contains zero or more CacheBehavior elements.

dcCallerReference :: Lens' DistributionConfig Text Source

A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.

dcComment :: Lens' DistributionConfig Text Source

Any comments you want to include about the distribution.

dcCustomErrorResponses :: Lens' DistributionConfig (Maybe CustomErrorResponses) Source

A complex type that contains zero or more CustomErrorResponse elements.

dcDefaultCacheBehavior :: Lens' DistributionConfig DefaultCacheBehavior Source

A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.

dcDefaultRootObject :: Lens' DistributionConfig Text Source

The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http:/www.example.comindex.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.

dcEnabled :: Lens' DistributionConfig Bool Source

Whether the distribution is enabled to accept end user requests for content.

dcLogging :: Lens' DistributionConfig LoggingConfig Source

A complex type that controls whether access logs are written for the distribution.

dcOrigins :: Lens' DistributionConfig Origins Source

A complex type that contains information about origins for this distribution.

dcPriceClass :: Lens' DistributionConfig Text Source

A complex type that contains information about price class for this distribution.

CacheBehavior

cbForwardedValues :: Lens' CacheBehavior ForwardedValues Source

A complex type that specifies how CloudFront handles query strings, cookies and headers.

cbMinTTL :: Lens' CacheBehavior Integer Source

The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).

cbPathPattern :: Lens' CacheBehavior Text Source

The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.

cbSmoothStreaming :: Lens' CacheBehavior (Maybe Bool) Source

Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.

cbTargetOriginId :: Lens' CacheBehavior Text Source

The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.

cbTrustedSigners :: Lens' CacheBehavior TrustedSigners Source

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

cbViewerProtocolPolicy :: Lens' CacheBehavior Text Source

Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.

DistributionList

dlIsTruncated :: Lens' DistributionList Bool Source

A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.

dlItems :: Lens' DistributionList [DistributionSummary] Source

A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account.

dlMarker :: Lens' DistributionList Text Source

The value you provided for the Marker request parameter.

dlMaxItems :: Lens' DistributionList Int Source

The value you provided for the MaxItems request parameter.

dlNextMarker :: Lens' DistributionList (Maybe Text) Source

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.

dlQuantity :: Lens' DistributionList Int Source

The number of distributions that were created by the current AWS account.

KeyPairIds

keyPairIds Source

Arguments

:: Int

kpiQuantity

-> KeyPairIds 

KeyPairIds constructor.

The fields accessible through corresponding lenses are:

kpiItems :: Lens' KeyPairIds [Text] Source

A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.

kpiQuantity :: Lens' KeyPairIds Int Source

The number of active CloudFront key pairs for AwsAccountNumber.

PriceClass

CustomErrorResponses

customErrorResponses Source

CustomErrorResponses constructor.

The fields accessible through corresponding lenses are:

cerItems :: Lens' CustomErrorResponses [CustomErrorResponse] Source

Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.

cerQuantity :: Lens' CustomErrorResponses Int Source

The number of custom error responses for this distribution.

S3OriginConfig

s3OriginConfig Source

S3OriginConfig constructor.

The fields accessible through corresponding lenses are:

socOriginAccessIdentity :: Lens' S3OriginConfig Text Source

The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identitycloudfrontId where Id is the value that CloudFront returned in the Id element when you created the origin access identity.

GeoRestriction

geoRestriction Source

GeoRestriction constructor.

The fields accessible through corresponding lenses are:

grItems :: Lens' GeoRestriction [Text] Source

A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes.

grQuantity :: Lens' GeoRestriction Int Source

When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.

grRestrictionType :: Lens' GeoRestriction Text Source

The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

S3Origin

s3Origin Source

S3Origin constructor.

The fields accessible through corresponding lenses are:

soDomainName :: Lens' S3Origin Text Source

The DNS name of the S3 origin.

soOriginAccessIdentity :: Lens' S3Origin Text Source

Your S3 origin's origin access identity.

Headers

headers Source

Arguments

:: Int

hQuantity

-> Headers 

Headers constructor.

The fields accessible through corresponding lenses are:

hItems :: Lens' Headers [Text] Source

Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items.

hQuantity :: Lens' Headers Int Source

The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.

ViewerCertificate

vcCloudFrontDefaultCertificate :: Lens' ViewerCertificate (Maybe Bool) Source

If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit this value if you are setting an IAMCertificateId.

vcIAMCertificateId :: Lens' ViewerCertificate (Maybe Text) Source

If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate.

vcSSLSupportMethod :: Lens' ViewerCertificate (Maybe Text) Source

If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate.

Restrictions

restrictions Source

Restrictions constructor.

The fields accessible through corresponding lenses are:

Origins

origins Source

Origins constructor.

The fields accessible through corresponding lenses are:

oItems :: Lens' Origins (NonEmpty Origin) Source

A complex type that contains origins for this distribution.

oQuantity :: Lens' Origins Int Source

The number of origins for this distribution.

Method

ForwardedValues

fvCookies :: Lens' ForwardedValues CookiePreference Source

A complex type that specifies how CloudFront handles cookies.

fvHeaders :: Lens' ForwardedValues (Maybe Headers) Source

A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.

fvQueryString :: Lens' ForwardedValues Bool Source

Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.

TrustedSigners

trustedSigners Source

TrustedSigners constructor.

The fields accessible through corresponding lenses are:

tsEnabled :: Lens' TrustedSigners Bool Source

Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.

tsItems :: Lens' TrustedSigners [Text] Source

Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.

tsQuantity :: Lens' TrustedSigners Int Source

The number of trusted signers for this cache behavior.

ItemSelection

StreamingLoggingConfig

streamingLoggingConfig Source

StreamingLoggingConfig constructor.

The fields accessible through corresponding lenses are:

slcBucket :: Lens' StreamingLoggingConfig Text Source

The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

slcEnabled :: Lens' StreamingLoggingConfig Bool Source

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.

slcPrefix :: Lens' StreamingLoggingConfig Text Source

An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

CookieNames

cookieNames Source

Arguments

:: Int

cnQuantity

-> CookieNames 

CookieNames constructor.

The fields accessible through corresponding lenses are:

cnItems :: Lens' CookieNames [Text] Source

Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.

cnQuantity :: Lens' CookieNames Int Source

The number of whitelisted cookies for this cache behavior.

CustomErrorResponse

cerErrorCachingMinTTL :: Lens' CustomErrorResponse (Maybe Integer) Source

The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.

cerErrorCode :: Lens' CustomErrorResponse Int Source

The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.

cerResponseCode :: Lens' CustomErrorResponse (Maybe Text) Source

The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.

cerResponsePagePath :: Lens' CustomErrorResponse (Maybe Text) Source

The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http:/www.ietf.orgrfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.

CacheBehaviors

cacheBehaviors Source

CacheBehaviors constructor.

The fields accessible through corresponding lenses are:

cbItems :: Lens' CacheBehaviors [CacheBehavior] Source

Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items.

cbQuantity :: Lens' CacheBehaviors Int Source

The number of cache behaviors for this distribution.

DefaultCacheBehavior

dcbForwardedValues :: Lens' DefaultCacheBehavior ForwardedValues Source

A complex type that specifies how CloudFront handles query strings, cookies and headers.

dcbMinTTL :: Lens' DefaultCacheBehavior Integer Source

The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).

dcbSmoothStreaming :: Lens' DefaultCacheBehavior (Maybe Bool) Source

Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.

dcbTargetOriginId :: Lens' DefaultCacheBehavior Text Source

The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.

dcbTrustedSigners :: Lens' DefaultCacheBehavior TrustedSigners Source

A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.

dcbViewerProtocolPolicy :: Lens' DefaultCacheBehavior Text Source

Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.

InvalidationList

ilIsTruncated :: Lens' InvalidationList Bool Source

A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

ilItems :: Lens' InvalidationList [InvalidationSummary] Source

A complex type that contains one InvalidationSummary element for each invalidation batch that was created by the current AWS account.

ilMarker :: Lens' InvalidationList Text Source

The value you provided for the Marker request parameter.

ilMaxItems :: Lens' InvalidationList Int Source

The value you provided for the MaxItems request parameter.

ilNextMarker :: Lens' InvalidationList (Maybe Text) Source

If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.

ilQuantity :: Lens' InvalidationList Int Source

The number of invalidation batches that were created by the current AWS account.

StreamingDistribution

sdActiveTrustedSigners :: Lens' StreamingDistribution ActiveTrustedSigners Source

CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.

sdDomainName :: Lens' StreamingDistribution Text Source

The domain name corresponding to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.

sdId :: Lens' StreamingDistribution Text Source

The identifier for the streaming distribution. For example: EGTXBD79H29TRA8.

sdLastModifiedTime :: Lens' StreamingDistribution (Maybe UTCTime) Source

The date and time the distribution was last modified.

sdStatus :: Lens' StreamingDistribution Text Source

The current status of the streaming distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.

sdStreamingDistributionConfig :: Lens' StreamingDistribution StreamingDistributionConfig Source

The current configuration information for the streaming distribution.

Paths

paths Source

Arguments

:: Int

pQuantity

-> Paths 

Paths constructor.

The fields accessible through corresponding lenses are:

pItems :: Lens' Paths [Text] Source

A complex type that contains a list of the objects that you want to invalidate.

pQuantity :: Lens' Paths Int Source

The number of objects that you want to invalidate.

CloudFrontOriginAccessIdentity

cfoaiId :: Lens' CloudFrontOriginAccessIdentity Text Source

The ID for the origin access identity. For example: E74FTE3AJFJ256A.

cfoaiS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentity Text Source

The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

ActiveTrustedSigners

activeTrustedSigners Source

ActiveTrustedSigners constructor.

The fields accessible through corresponding lenses are:

atsEnabled :: Lens' ActiveTrustedSigners Bool Source

Each active trusted signer.

atsItems :: Lens' ActiveTrustedSigners [Signer] Source

A complex type that contains one Signer complex type for each unique trusted signer that is specified in the TrustedSigners complex type, including trusted signers in the default cache behavior and in all of the other cache behaviors.

atsQuantity :: Lens' ActiveTrustedSigners Int Source

The number of unique trusted signers included in all cache behaviors. For example, if three cache behaviors all list the same three AWS accounts, the value of Quantity for ActiveTrustedSigners will be 3.

DistributionSummary

dsAliases :: Lens' DistributionSummary Aliases Source

A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

dsCacheBehaviors :: Lens' DistributionSummary CacheBehaviors Source

A complex type that contains zero or more CacheBehavior elements.

dsComment :: Lens' DistributionSummary Text Source

The comment originally specified when this distribution was created.

dsCustomErrorResponses :: Lens' DistributionSummary CustomErrorResponses Source

A complex type that contains zero or more CustomErrorResponses elements.

dsDefaultCacheBehavior :: Lens' DistributionSummary DefaultCacheBehavior Source

A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.

dsDomainName :: Lens' DistributionSummary Text Source

The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

dsEnabled :: Lens' DistributionSummary Bool Source

Whether the distribution is enabled to accept end user requests for content.

dsId :: Lens' DistributionSummary Text Source

The identifier for the distribution. For example: EDFDVBD632BHDS5.

dsLastModifiedTime :: Lens' DistributionSummary UTCTime Source

The date and time the distribution was last modified.

dsOrigins :: Lens' DistributionSummary Origins Source

A complex type that contains information about origins for this distribution.

dsStatus :: Lens' DistributionSummary Text Source

This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.

GeoRestrictionType

LoggingConfig

loggingConfig Source

LoggingConfig constructor.

The fields accessible through corresponding lenses are:

lcBucket :: Lens' LoggingConfig Text Source

The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

lcEnabled :: Lens' LoggingConfig Bool Source

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.

lcIncludeCookies :: Lens' LoggingConfig Bool Source

Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

lcPrefix :: Lens' LoggingConfig Text Source

An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.