Safe Haskell | None |
---|---|
Language | Haskell2010 |
- Service
- CloudFrontOriginAccessIdentityList
- Invalidation
- SSLSupportMethod
- AllowedMethods
- CloudFrontOriginAccessIdentityConfig
- Origin
- ViewerProtocolPolicy
- StreamingDistributionList
- StreamingDistributionConfig
- Signer
- CookiePreference
- OriginProtocolPolicy
- Distribution
- CloudFrontOriginAccessIdentitySummary
- StreamingDistributionSummary
- CustomOriginConfig
- Aliases
- InvalidationBatch
- InvalidationSummary
- DistributionConfig
- CacheBehavior
- DistributionList
- KeyPairIds
- PriceClass
- CustomErrorResponses
- S3OriginConfig
- GeoRestriction
- S3Origin
- Headers
- ViewerCertificate
- Restrictions
- Origins
- Method
- ForwardedValues
- TrustedSigners
- ItemSelection
- StreamingLoggingConfig
- CookieNames
- CustomErrorResponse
- CacheBehaviors
- DefaultCacheBehavior
- InvalidationList
- StreamingDistribution
- Paths
- CloudFrontOriginAccessIdentity
- ActiveTrustedSigners
- DistributionSummary
- GeoRestrictionType
- LoggingConfig
- data CloudFront
- data RESTError :: *
- ns :: Text
- data CloudFrontOriginAccessIdentityList
- cloudFrontOriginAccessIdentityList :: Text -> Int -> Bool -> Int -> CloudFrontOriginAccessIdentityList
- cfoailIsTruncated :: Lens' CloudFrontOriginAccessIdentityList Bool
- cfoailItems :: Lens' CloudFrontOriginAccessIdentityList [CloudFrontOriginAccessIdentitySummary]
- cfoailMarker :: Lens' CloudFrontOriginAccessIdentityList Text
- cfoailMaxItems :: Lens' CloudFrontOriginAccessIdentityList Int
- cfoailNextMarker :: Lens' CloudFrontOriginAccessIdentityList (Maybe Text)
- cfoailQuantity :: Lens' CloudFrontOriginAccessIdentityList Int
- data Invalidation
- invalidation :: Text -> Text -> UTCTime -> InvalidationBatch -> Invalidation
- iCreateTime :: Lens' Invalidation UTCTime
- iId :: Lens' Invalidation Text
- iInvalidationBatch :: Lens' Invalidation InvalidationBatch
- iStatus :: Lens' Invalidation Text
- data SSLSupportMethod
- data AllowedMethods
- allowedMethods :: Int -> AllowedMethods
- amItems :: Lens' AllowedMethods [Text]
- amQuantity :: Lens' AllowedMethods Int
- data CloudFrontOriginAccessIdentityConfig
- cloudFrontOriginAccessIdentityConfig :: Text -> Text -> CloudFrontOriginAccessIdentityConfig
- cfoaicCallerReference :: Lens' CloudFrontOriginAccessIdentityConfig Text
- cfoaicComment :: Lens' CloudFrontOriginAccessIdentityConfig Text
- data Origin
- origin :: Text -> Text -> Origin
- oCustomOriginConfig :: Lens' Origin (Maybe CustomOriginConfig)
- oDomainName :: Lens' Origin Text
- oId :: Lens' Origin Text
- oS3OriginConfig :: Lens' Origin (Maybe S3OriginConfig)
- data ViewerProtocolPolicy
- data StreamingDistributionList
- streamingDistributionList :: Text -> Int -> Bool -> Int -> StreamingDistributionList
- sdlIsTruncated :: Lens' StreamingDistributionList Bool
- sdlItems :: Lens' StreamingDistributionList [StreamingDistributionSummary]
- sdlMarker :: Lens' StreamingDistributionList Text
- sdlMaxItems :: Lens' StreamingDistributionList Int
- sdlNextMarker :: Lens' StreamingDistributionList (Maybe Text)
- sdlQuantity :: Lens' StreamingDistributionList Int
- data StreamingDistributionConfig
- streamingDistributionConfig :: Text -> S3Origin -> Aliases -> Text -> StreamingLoggingConfig -> TrustedSigners -> Text -> Bool -> StreamingDistributionConfig
- sdcAliases :: Lens' StreamingDistributionConfig Aliases
- sdcCallerReference :: Lens' StreamingDistributionConfig Text
- sdcComment :: Lens' StreamingDistributionConfig Text
- sdcEnabled :: Lens' StreamingDistributionConfig Bool
- sdcLogging :: Lens' StreamingDistributionConfig StreamingLoggingConfig
- sdcPriceClass :: Lens' StreamingDistributionConfig Text
- sdcS3Origin :: Lens' StreamingDistributionConfig S3Origin
- sdcTrustedSigners :: Lens' StreamingDistributionConfig TrustedSigners
- data Signer
- signer :: Signer
- sAwsAccountNumber :: Lens' Signer (Maybe Text)
- sKeyPairIds :: Lens' Signer (Maybe KeyPairIds)
- data CookiePreference
- cookiePreference :: Text -> CookiePreference
- cpForward :: Lens' CookiePreference Text
- cpWhitelistedNames :: Lens' CookiePreference (Maybe CookieNames)
- data OriginProtocolPolicy
- data Distribution
- distribution :: Text -> Text -> UTCTime -> Int -> Text -> ActiveTrustedSigners -> DistributionConfig -> Distribution
- dActiveTrustedSigners :: Lens' Distribution ActiveTrustedSigners
- dDistributionConfig :: Lens' Distribution DistributionConfig
- dDomainName :: Lens' Distribution Text
- dId :: Lens' Distribution Text
- dInProgressInvalidationBatches :: Lens' Distribution Int
- dLastModifiedTime :: Lens' Distribution UTCTime
- dStatus :: Lens' Distribution Text
- data CloudFrontOriginAccessIdentitySummary
- cloudFrontOriginAccessIdentitySummary :: Text -> Text -> Text -> CloudFrontOriginAccessIdentitySummary
- cfoaisComment :: Lens' CloudFrontOriginAccessIdentitySummary Text
- cfoaisId :: Lens' CloudFrontOriginAccessIdentitySummary Text
- cfoaisS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentitySummary Text
- data StreamingDistributionSummary
- streamingDistributionSummary :: Text -> Text -> UTCTime -> Text -> S3Origin -> Aliases -> TrustedSigners -> Text -> Text -> Bool -> StreamingDistributionSummary
- sdsAliases :: Lens' StreamingDistributionSummary Aliases
- sdsComment :: Lens' StreamingDistributionSummary Text
- sdsDomainName :: Lens' StreamingDistributionSummary Text
- sdsEnabled :: Lens' StreamingDistributionSummary Bool
- sdsId :: Lens' StreamingDistributionSummary Text
- sdsLastModifiedTime :: Lens' StreamingDistributionSummary UTCTime
- sdsPriceClass :: Lens' StreamingDistributionSummary Text
- sdsS3Origin :: Lens' StreamingDistributionSummary S3Origin
- sdsStatus :: Lens' StreamingDistributionSummary Text
- sdsTrustedSigners :: Lens' StreamingDistributionSummary TrustedSigners
- data CustomOriginConfig
- customOriginConfig :: Int -> Int -> Text -> CustomOriginConfig
- cocHTTPPort :: Lens' CustomOriginConfig Int
- cocHTTPSPort :: Lens' CustomOriginConfig Int
- cocOriginProtocolPolicy :: Lens' CustomOriginConfig Text
- data Aliases
- aliases :: Int -> Aliases
- aItems :: Lens' Aliases [Text]
- aQuantity :: Lens' Aliases Int
- data InvalidationBatch
- invalidationBatch :: Paths -> Text -> InvalidationBatch
- ibCallerReference :: Lens' InvalidationBatch Text
- ibPaths :: Lens' InvalidationBatch Paths
- data InvalidationSummary
- invalidationSummary :: Text -> UTCTime -> Text -> InvalidationSummary
- isCreateTime :: Lens' InvalidationSummary UTCTime
- isId :: Lens' InvalidationSummary Text
- isStatus :: Lens' InvalidationSummary Text
- data DistributionConfig
- distributionConfig :: Text -> Aliases -> Text -> Origins -> DefaultCacheBehavior -> CacheBehaviors -> Text -> LoggingConfig -> Text -> Bool -> DistributionConfig
- dcAliases :: Lens' DistributionConfig Aliases
- dcCacheBehaviors :: Lens' DistributionConfig CacheBehaviors
- dcCallerReference :: Lens' DistributionConfig Text
- dcComment :: Lens' DistributionConfig Text
- dcCustomErrorResponses :: Lens' DistributionConfig (Maybe CustomErrorResponses)
- dcDefaultCacheBehavior :: Lens' DistributionConfig DefaultCacheBehavior
- dcDefaultRootObject :: Lens' DistributionConfig Text
- dcEnabled :: Lens' DistributionConfig Bool
- dcLogging :: Lens' DistributionConfig LoggingConfig
- dcOrigins :: Lens' DistributionConfig Origins
- dcPriceClass :: Lens' DistributionConfig Text
- dcRestrictions :: Lens' DistributionConfig (Maybe Restrictions)
- dcViewerCertificate :: Lens' DistributionConfig (Maybe ViewerCertificate)
- data CacheBehavior
- cacheBehavior :: Text -> Text -> ForwardedValues -> TrustedSigners -> Text -> Integer -> CacheBehavior
- cbAllowedMethods :: Lens' CacheBehavior (Maybe AllowedMethods)
- cbForwardedValues :: Lens' CacheBehavior ForwardedValues
- cbMinTTL :: Lens' CacheBehavior Integer
- cbPathPattern :: Lens' CacheBehavior Text
- cbSmoothStreaming :: Lens' CacheBehavior (Maybe Bool)
- cbTargetOriginId :: Lens' CacheBehavior Text
- cbTrustedSigners :: Lens' CacheBehavior TrustedSigners
- cbViewerProtocolPolicy :: Lens' CacheBehavior Text
- data DistributionList
- distributionList :: Text -> Int -> Bool -> Int -> DistributionList
- dlIsTruncated :: Lens' DistributionList Bool
- dlItems :: Lens' DistributionList [DistributionSummary]
- dlMarker :: Lens' DistributionList Text
- dlMaxItems :: Lens' DistributionList Int
- dlNextMarker :: Lens' DistributionList (Maybe Text)
- dlQuantity :: Lens' DistributionList Int
- data KeyPairIds
- keyPairIds :: Int -> KeyPairIds
- kpiItems :: Lens' KeyPairIds [Text]
- kpiQuantity :: Lens' KeyPairIds Int
- data PriceClass
- data CustomErrorResponses
- customErrorResponses :: Int -> CustomErrorResponses
- cerItems :: Lens' CustomErrorResponses [CustomErrorResponse]
- cerQuantity :: Lens' CustomErrorResponses Int
- data S3OriginConfig
- s3OriginConfig :: Text -> S3OriginConfig
- socOriginAccessIdentity :: Lens' S3OriginConfig Text
- data GeoRestriction
- geoRestriction :: Text -> Int -> GeoRestriction
- grItems :: Lens' GeoRestriction [Text]
- grQuantity :: Lens' GeoRestriction Int
- grRestrictionType :: Lens' GeoRestriction Text
- data S3Origin
- s3Origin :: Text -> Text -> S3Origin
- soDomainName :: Lens' S3Origin Text
- soOriginAccessIdentity :: Lens' S3Origin Text
- data Headers
- headers :: Int -> Headers
- hItems :: Lens' Headers [Text]
- hQuantity :: Lens' Headers Int
- data ViewerCertificate
- viewerCertificate :: ViewerCertificate
- vcCloudFrontDefaultCertificate :: Lens' ViewerCertificate (Maybe Bool)
- vcIAMCertificateId :: Lens' ViewerCertificate (Maybe Text)
- vcSSLSupportMethod :: Lens' ViewerCertificate (Maybe Text)
- data Restrictions
- restrictions :: GeoRestriction -> Restrictions
- rGeoRestriction :: Lens' Restrictions GeoRestriction
- data Origins
- origins :: Int -> NonEmpty Origin -> Origins
- oItems :: Lens' Origins (NonEmpty Origin)
- oQuantity :: Lens' Origins Int
- data Method
- data ForwardedValues
- forwardedValues :: Bool -> CookiePreference -> ForwardedValues
- fvCookies :: Lens' ForwardedValues CookiePreference
- fvHeaders :: Lens' ForwardedValues (Maybe Headers)
- fvQueryString :: Lens' ForwardedValues Bool
- data TrustedSigners
- trustedSigners :: Bool -> Int -> TrustedSigners
- tsEnabled :: Lens' TrustedSigners Bool
- tsItems :: Lens' TrustedSigners [Text]
- tsQuantity :: Lens' TrustedSigners Int
- data ItemSelection
- data StreamingLoggingConfig
- streamingLoggingConfig :: Bool -> Text -> Text -> StreamingLoggingConfig
- slcBucket :: Lens' StreamingLoggingConfig Text
- slcEnabled :: Lens' StreamingLoggingConfig Bool
- slcPrefix :: Lens' StreamingLoggingConfig Text
- data CookieNames
- cookieNames :: Int -> CookieNames
- cnItems :: Lens' CookieNames [Text]
- cnQuantity :: Lens' CookieNames Int
- data CustomErrorResponse
- customErrorResponse :: Int -> CustomErrorResponse
- cerErrorCachingMinTTL :: Lens' CustomErrorResponse (Maybe Integer)
- cerErrorCode :: Lens' CustomErrorResponse Int
- cerResponseCode :: Lens' CustomErrorResponse (Maybe Text)
- cerResponsePagePath :: Lens' CustomErrorResponse (Maybe Text)
- data CacheBehaviors
- cacheBehaviors :: Int -> CacheBehaviors
- cbItems :: Lens' CacheBehaviors [CacheBehavior]
- cbQuantity :: Lens' CacheBehaviors Int
- data DefaultCacheBehavior
- defaultCacheBehavior :: Text -> ForwardedValues -> TrustedSigners -> Text -> Integer -> DefaultCacheBehavior
- dcbAllowedMethods :: Lens' DefaultCacheBehavior (Maybe AllowedMethods)
- dcbForwardedValues :: Lens' DefaultCacheBehavior ForwardedValues
- dcbMinTTL :: Lens' DefaultCacheBehavior Integer
- dcbSmoothStreaming :: Lens' DefaultCacheBehavior (Maybe Bool)
- dcbTargetOriginId :: Lens' DefaultCacheBehavior Text
- dcbTrustedSigners :: Lens' DefaultCacheBehavior TrustedSigners
- dcbViewerProtocolPolicy :: Lens' DefaultCacheBehavior Text
- data InvalidationList
- invalidationList :: Text -> Int -> Bool -> Int -> InvalidationList
- ilIsTruncated :: Lens' InvalidationList Bool
- ilItems :: Lens' InvalidationList [InvalidationSummary]
- ilMarker :: Lens' InvalidationList Text
- ilMaxItems :: Lens' InvalidationList Int
- ilNextMarker :: Lens' InvalidationList (Maybe Text)
- ilQuantity :: Lens' InvalidationList Int
- data StreamingDistribution
- streamingDistribution :: Text -> Text -> Text -> ActiveTrustedSigners -> StreamingDistributionConfig -> StreamingDistribution
- sdActiveTrustedSigners :: Lens' StreamingDistribution ActiveTrustedSigners
- sdDomainName :: Lens' StreamingDistribution Text
- sdId :: Lens' StreamingDistribution Text
- sdLastModifiedTime :: Lens' StreamingDistribution (Maybe UTCTime)
- sdStatus :: Lens' StreamingDistribution Text
- sdStreamingDistributionConfig :: Lens' StreamingDistribution StreamingDistributionConfig
- data Paths
- paths :: Int -> Paths
- pItems :: Lens' Paths [Text]
- pQuantity :: Lens' Paths Int
- data CloudFrontOriginAccessIdentity
- cloudFrontOriginAccessIdentity :: Text -> Text -> CloudFrontOriginAccessIdentity
- cfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CloudFrontOriginAccessIdentity (Maybe CloudFrontOriginAccessIdentityConfig)
- cfoaiId :: Lens' CloudFrontOriginAccessIdentity Text
- cfoaiS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentity Text
- data ActiveTrustedSigners
- activeTrustedSigners :: Bool -> Int -> ActiveTrustedSigners
- atsEnabled :: Lens' ActiveTrustedSigners Bool
- atsItems :: Lens' ActiveTrustedSigners [Signer]
- atsQuantity :: Lens' ActiveTrustedSigners Int
- data DistributionSummary
- distributionSummary :: Text -> Text -> UTCTime -> Text -> Aliases -> Origins -> DefaultCacheBehavior -> CacheBehaviors -> CustomErrorResponses -> Text -> Text -> Bool -> ViewerCertificate -> Restrictions -> DistributionSummary
- dsAliases :: Lens' DistributionSummary Aliases
- dsCacheBehaviors :: Lens' DistributionSummary CacheBehaviors
- dsComment :: Lens' DistributionSummary Text
- dsCustomErrorResponses :: Lens' DistributionSummary CustomErrorResponses
- dsDefaultCacheBehavior :: Lens' DistributionSummary DefaultCacheBehavior
- dsDomainName :: Lens' DistributionSummary Text
- dsEnabled :: Lens' DistributionSummary Bool
- dsId :: Lens' DistributionSummary Text
- dsLastModifiedTime :: Lens' DistributionSummary UTCTime
- dsOrigins :: Lens' DistributionSummary Origins
- dsPriceClass :: Lens' DistributionSummary Text
- dsRestrictions :: Lens' DistributionSummary Restrictions
- dsStatus :: Lens' DistributionSummary Text
- dsViewerCertificate :: Lens' DistributionSummary ViewerCertificate
- data GeoRestrictionType
- data LoggingConfig
- loggingConfig :: Bool -> Bool -> Text -> Text -> LoggingConfig
- lcBucket :: Lens' LoggingConfig Text
- lcEnabled :: Lens' LoggingConfig Bool
- lcIncludeCookies :: Lens' LoggingConfig Bool
- lcPrefix :: Lens' LoggingConfig Text
Service
data CloudFront Source
Version 2014-05-31
of the Amazon CloudFront service.
AWSService CloudFront | |
type Er CloudFront = RESTError | |
type Sg CloudFront = V4 |
Error
data RESTError :: *
XML
CloudFrontOriginAccessIdentityList
cloudFrontOriginAccessIdentityList Source
:: Text | |
-> Int | |
-> Bool | |
-> Int | |
-> CloudFrontOriginAccessIdentityList |
CloudFrontOriginAccessIdentityList
constructor.
The fields accessible through corresponding lenses are:
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
data Invalidation Source
Invalidation
constructor.
The fields accessible through corresponding lenses are:
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
data SSLSupportMethod Source
AllowedMethods
data AllowedMethods Source
AllowedMethods
constructor.
The fields accessible through corresponding lenses are:
amItems
::
[Text
]amQuantity
::
Int
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
cloudFrontOriginAccessIdentityConfig Source
CloudFrontOriginAccessIdentityConfig
constructor.
The fields accessible through corresponding lenses are:
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
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
data ViewerProtocolPolicy Source
AllowAll | allow-all |
HttpsOnly | https-only |
RedirectToHttps | redirect-to-https |
StreamingDistributionList
streamingDistributionList Source
StreamingDistributionList
constructor.
The fields accessible through corresponding lenses are:
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
streamingDistributionConfig Source
:: Text | |
-> S3Origin | |
-> Aliases | |
-> Text | |
-> StreamingLoggingConfig | |
-> TrustedSigners | |
-> Text | |
-> Bool | |
-> StreamingDistributionConfig |
StreamingDistributionConfig
constructor.
The fields accessible through corresponding lenses are:
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
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
data 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
data OriginProtocolPolicy Source
HttpOnly | http-only |
MatchViewer | match-viewer |
Distribution
data Distribution Source
:: Text | |
-> Text | |
-> UTCTime | |
-> Int | |
-> Text | |
-> ActiveTrustedSigners | |
-> DistributionConfig | |
-> Distribution |
Distribution
constructor.
The fields accessible through corresponding lenses are:
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
cloudFrontOriginAccessIdentitySummary Source
CloudFrontOriginAccessIdentitySummary
constructor.
The fields accessible through corresponding lenses are:
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
streamingDistributionSummary Source
:: Text | |
-> Text | |
-> UTCTime | |
-> Text | |
-> S3Origin | |
-> Aliases | |
-> TrustedSigners | |
-> Text | |
-> Text | |
-> Bool | |
-> StreamingDistributionSummary |
StreamingDistributionSummary
constructor.
The fields accessible through corresponding lenses are:
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
data CustomOriginConfig Source
CustomOriginConfig
constructor.
The fields accessible through corresponding lenses are:
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
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.
InvalidationBatch
data 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
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
data DistributionConfig Source
:: Text | |
-> Aliases | |
-> Text | |
-> Origins | |
-> DefaultCacheBehavior | |
-> CacheBehaviors | |
-> Text | |
-> LoggingConfig | |
-> Text | |
-> Bool | |
-> DistributionConfig |
DistributionConfig
constructor.
The fields accessible through corresponding lenses are:
dcAliases
::
Aliases
dcCacheBehaviors
::
CacheBehaviors
dcCallerReference
::
Text
dcComment
::
Text
dcCustomErrorResponses
::
Maybe
CustomErrorResponses
dcDefaultCacheBehavior
::
DefaultCacheBehavior
dcDefaultRootObject
::
Text
dcEnabled
::
Bool
dcLogging
::
LoggingConfig
dcOrigins
::
Origins
dcPriceClass
::
Text
dcRestrictions
::
Maybe
Restrictions
dcViewerCertificate
::
Maybe
ViewerCertificate
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
data CacheBehavior Source
:: Text | |
-> Text | |
-> ForwardedValues | |
-> TrustedSigners | |
-> Text | |
-> Integer | |
-> CacheBehavior |
CacheBehavior
constructor.
The fields accessible through corresponding lenses are:
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
data DistributionList Source
DistributionList
constructor.
The fields accessible through corresponding lenses are:
dlIsTruncated
::
Bool
dlItems
::
[DistributionSummary
]dlMarker
::
Text
dlMaxItems
::
Int
dlNextMarker
::
Maybe
Text
dlQuantity
::
Int
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
data KeyPairIds Source
:: Int | |
-> KeyPairIds |
KeyPairIds
constructor.
The fields accessible through corresponding lenses are:
kpiItems
::
[Text
]kpiQuantity
::
Int
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
data PriceClass Source
PriceClass100 | PriceClass_100 |
PriceClass200 | PriceClass_200 |
PriceClassAll | PriceClass_All |
CustomErrorResponses
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
data 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
data GeoRestriction Source
GeoRestriction
constructor.
The fields accessible through corresponding lenses are:
grItems
::
[Text
]grQuantity
::
Int
grRestrictionType
::
Text
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
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
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
data ViewerCertificate Source
viewerCertificate :: ViewerCertificate Source
ViewerCertificate
constructor.
The fields accessible through corresponding lenses are:
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
constructor.
The fields accessible through corresponding lenses are:
Origins
oItems :: Lens' Origins (NonEmpty Origin) Source
A complex type that contains origins for this distribution.
Method
ForwardedValues
data ForwardedValues Source
ForwardedValues
constructor.
The fields accessible through corresponding lenses are:
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
data 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
data ItemSelection Source
StreamingLoggingConfig
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
data CookieNames Source
:: Int | |
-> CookieNames |
CookieNames
constructor.
The fields accessible through corresponding lenses are:
cnItems
::
[Text
]cnQuantity
::
Int
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
CustomErrorResponse
constructor.
The fields accessible through corresponding lenses are:
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
data CacheBehaviors Source
CacheBehaviors
constructor.
The fields accessible through corresponding lenses are:
cbItems
::
[CacheBehavior
]cbQuantity
::
Int
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
:: Text | |
-> ForwardedValues | |
-> TrustedSigners | |
-> Text | |
-> Integer | |
-> DefaultCacheBehavior |
DefaultCacheBehavior
constructor.
The fields accessible through corresponding lenses are:
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
data InvalidationList Source
InvalidationList
constructor.
The fields accessible through corresponding lenses are:
ilIsTruncated
::
Bool
ilItems
::
[InvalidationSummary
]ilMarker
::
Text
ilMaxItems
::
Int
ilNextMarker
::
Maybe
Text
ilQuantity
::
Int
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
StreamingDistribution
constructor.
The fields accessible through corresponding lenses are:
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
pItems :: Lens' Paths [Text] Source
A complex type that contains a list of the objects that you want to invalidate.
CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity Source
CloudFrontOriginAccessIdentity
constructor.
The fields accessible through corresponding lenses are:
cfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CloudFrontOriginAccessIdentity (Maybe CloudFrontOriginAccessIdentityConfig) Source
The current configuration information for the identity.
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
constructor.
The fields accessible through corresponding lenses are:
atsEnabled
::
Bool
atsItems
::
[Signer
]atsQuantity
::
Int
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
:: Text | |
-> Text | |
-> UTCTime | |
-> Text | |
-> Aliases | |
-> Origins | |
-> DefaultCacheBehavior | |
-> CacheBehaviors | |
-> CustomErrorResponses | |
-> Text | |
-> Text | |
-> Bool | |
-> ViewerCertificate | |
-> Restrictions | |
-> DistributionSummary |
DistributionSummary
constructor.
The fields accessible through corresponding lenses are:
dsAliases
::
Aliases
dsCacheBehaviors
::
CacheBehaviors
dsComment
::
Text
dsCustomErrorResponses
::
CustomErrorResponses
dsDefaultCacheBehavior
::
DefaultCacheBehavior
dsDomainName
::
Text
dsEnabled
::
Bool
dsId
::
Text
dsLastModifiedTime
::
UTCTime
dsOrigins
::
Origins
dsPriceClass
::
Text
dsRestrictions
::
Restrictions
dsStatus
::
Text
dsViewerCertificate
::
ViewerCertificate
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
data GeoRestrictionType Source
GRTBlacklist | blacklist |
GRTNone | none |
GRTWhitelist | whitelist |
LoggingConfig
data 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.