Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- Errors
- CertificateSource
- GeoRestrictionType
- ItemSelection
- Method
- MinimumProtocolVersion
- OriginProtocolPolicy
- PriceClass
- SSLProtocol
- SSLSupportMethod
- ViewerProtocolPolicy
- ActiveTrustedSigners
- Aliases
- AllowedMethods
- CacheBehavior
- CacheBehaviors
- CachedMethods
- CloudFrontOriginAccessIdentity
- CloudFrontOriginAccessIdentityConfig
- CloudFrontOriginAccessIdentityList
- CloudFrontOriginAccessIdentitySummary
- CookieNames
- CookiePreference
- CustomErrorResponse
- CustomErrorResponses
- CustomHeaders
- CustomOriginConfig
- DefaultCacheBehavior
- Distribution
- DistributionConfig
- DistributionList
- DistributionSummary
- ForwardedValues
- GeoRestriction
- Headers
- Invalidation
- InvalidationBatch
- InvalidationList
- InvalidationSummary
- KeyPairIds
- LoggingConfig
- Origin
- OriginCustomHeader
- OriginSSLProtocols
- Origins
- Paths
- Restrictions
- S3Origin
- S3OriginConfig
- Signer
- StreamingDistribution
- StreamingDistributionConfig
- StreamingDistributionList
- StreamingDistributionSummary
- StreamingLoggingConfig
- TrustedSigners
- ViewerCertificate
- cloudFront :: Service
- _TooManyOriginCustomHeaders :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidErrorCode :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyCacheBehaviors :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyCloudFrontOriginAccessIdentities :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError
- _DistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError
- _NoSuchStreamingDistribution :: AsError a => Getting (First ServiceError) a ServiceError
- _InconsistentQuantities :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidArgument :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyInvalidationsInProgress :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidWebACLId :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError
- _NoSuchCloudFrontOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError
- _CloudFrontOriginAccessIdentityInUse :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyStreamingDistributions :: AsError a => Getting (First ServiceError) a ServiceError
- _BatchTooLarge :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyCookieNamesInWhiteList :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidForwardCookies :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyTrustedSigners :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidOrigin :: AsError a => Getting (First ServiceError) a ServiceError
- _NoSuchInvalidation :: AsError a => Getting (First ServiceError) a ServiceError
- _NoSuchOrigin :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidTTLOrder :: AsError a => Getting (First ServiceError) a ServiceError
- _StreamingDistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyHeadersInForwardedValues :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyStreamingDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidRequiredProtocol :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyDistributions :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyCertificates :: AsError a => Getting (First ServiceError) a ServiceError
- _DistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
- _MissingBody :: AsError a => Getting (First ServiceError) a ServiceError
- _IllegalUpdate :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidIfMatchVersion :: AsError a => Getting (First ServiceError) a ServiceError
- _PreconditionFailed :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidResponseCode :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidHeadersForS3Origin :: AsError a => Getting (First ServiceError) a ServiceError
- _CNAMEAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
- _TrustedSignerDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidProtocolSettings :: AsError a => Getting (First ServiceError) a ServiceError
- _CloudFrontOriginAccessIdentityAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyOrigins :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidRelativePath :: AsError a => Getting (First ServiceError) a ServiceError
- _StreamingDistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidMinimumProtocolVersion :: AsError a => Getting (First ServiceError) a ServiceError
- _AccessDenied :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidViewerCertificate :: AsError a => Getting (First ServiceError) a ServiceError
- _NoSuchDistribution :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidDefaultRootObject :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidGeoRestrictionParameter :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidLocationCode :: AsError a => Getting (First ServiceError) a ServiceError
- data CertificateSource
- = Acm
- | Cloudfront
- | IAM
- data GeoRestrictionType
- data ItemSelection
- = ISAll
- | ISNone
- | ISWhitelist
- data Method
- data MinimumProtocolVersion
- data OriginProtocolPolicy
- data PriceClass
- data SSLProtocol
- data SSLSupportMethod
- data ViewerProtocolPolicy
- data ActiveTrustedSigners
- activeTrustedSigners :: Bool -> Int -> ActiveTrustedSigners
- atsItems :: Lens' ActiveTrustedSigners [Signer]
- atsEnabled :: Lens' ActiveTrustedSigners Bool
- atsQuantity :: Lens' ActiveTrustedSigners Int
- data Aliases
- aliases :: Int -> Aliases
- aItems :: Lens' Aliases [Text]
- aQuantity :: Lens' Aliases Int
- data AllowedMethods
- allowedMethods :: Int -> AllowedMethods
- amCachedMethods :: Lens' AllowedMethods (Maybe CachedMethods)
- amQuantity :: Lens' AllowedMethods Int
- amItems :: Lens' AllowedMethods [Method]
- data CacheBehavior
- cacheBehavior :: Text -> Text -> ForwardedValues -> TrustedSigners -> ViewerProtocolPolicy -> Integer -> CacheBehavior
- cbAllowedMethods :: Lens' CacheBehavior (Maybe AllowedMethods)
- cbMaxTTL :: Lens' CacheBehavior (Maybe Integer)
- cbCompress :: Lens' CacheBehavior (Maybe Bool)
- cbSmoothStreaming :: Lens' CacheBehavior (Maybe Bool)
- cbDefaultTTL :: Lens' CacheBehavior (Maybe Integer)
- cbPathPattern :: Lens' CacheBehavior Text
- cbTargetOriginId :: Lens' CacheBehavior Text
- cbForwardedValues :: Lens' CacheBehavior ForwardedValues
- cbTrustedSigners :: Lens' CacheBehavior TrustedSigners
- cbViewerProtocolPolicy :: Lens' CacheBehavior ViewerProtocolPolicy
- cbMinTTL :: Lens' CacheBehavior Integer
- data CacheBehaviors
- cacheBehaviors :: Int -> CacheBehaviors
- cbItems :: Lens' CacheBehaviors [CacheBehavior]
- cbQuantity :: Lens' CacheBehaviors Int
- data CachedMethods
- cachedMethods :: Int -> CachedMethods
- cmQuantity :: Lens' CachedMethods Int
- cmItems :: Lens' CachedMethods [Method]
- data CloudFrontOriginAccessIdentity
- cloudFrontOriginAccessIdentity :: Text -> Text -> CloudFrontOriginAccessIdentity
- cfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CloudFrontOriginAccessIdentity (Maybe CloudFrontOriginAccessIdentityConfig)
- cfoaiId :: Lens' CloudFrontOriginAccessIdentity Text
- cfoaiS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentity Text
- data CloudFrontOriginAccessIdentityConfig
- cloudFrontOriginAccessIdentityConfig :: Text -> Text -> CloudFrontOriginAccessIdentityConfig
- cfoaicCallerReference :: Lens' CloudFrontOriginAccessIdentityConfig Text
- cfoaicComment :: Lens' CloudFrontOriginAccessIdentityConfig Text
- data CloudFrontOriginAccessIdentityList
- cloudFrontOriginAccessIdentityList :: Text -> Int -> Bool -> Int -> CloudFrontOriginAccessIdentityList
- cfoailItems :: Lens' CloudFrontOriginAccessIdentityList [CloudFrontOriginAccessIdentitySummary]
- cfoailNextMarker :: Lens' CloudFrontOriginAccessIdentityList (Maybe Text)
- cfoailMarker :: Lens' CloudFrontOriginAccessIdentityList Text
- cfoailMaxItems :: Lens' CloudFrontOriginAccessIdentityList Int
- cfoailIsTruncated :: Lens' CloudFrontOriginAccessIdentityList Bool
- cfoailQuantity :: Lens' CloudFrontOriginAccessIdentityList Int
- data CloudFrontOriginAccessIdentitySummary
- cloudFrontOriginAccessIdentitySummary :: Text -> Text -> Text -> CloudFrontOriginAccessIdentitySummary
- cfoaisId :: Lens' CloudFrontOriginAccessIdentitySummary Text
- cfoaisS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentitySummary Text
- cfoaisComment :: Lens' CloudFrontOriginAccessIdentitySummary Text
- data CookieNames
- cookieNames :: Int -> CookieNames
- cnItems :: Lens' CookieNames [Text]
- cnQuantity :: Lens' CookieNames Int
- data CookiePreference
- cookiePreference :: ItemSelection -> CookiePreference
- cpWhitelistedNames :: Lens' CookiePreference (Maybe CookieNames)
- cpForward :: Lens' CookiePreference ItemSelection
- data CustomErrorResponse
- customErrorResponse :: Int -> CustomErrorResponse
- ceResponsePagePath :: Lens' CustomErrorResponse (Maybe Text)
- ceResponseCode :: Lens' CustomErrorResponse (Maybe Text)
- ceErrorCachingMinTTL :: Lens' CustomErrorResponse (Maybe Integer)
- ceErrorCode :: Lens' CustomErrorResponse Int
- data CustomErrorResponses
- customErrorResponses :: Int -> CustomErrorResponses
- cerItems :: Lens' CustomErrorResponses [CustomErrorResponse]
- cerQuantity :: Lens' CustomErrorResponses Int
- data CustomHeaders
- customHeaders :: Int -> CustomHeaders
- chItems :: Lens' CustomHeaders [OriginCustomHeader]
- chQuantity :: Lens' CustomHeaders Int
- data CustomOriginConfig
- customOriginConfig :: Int -> Int -> OriginProtocolPolicy -> CustomOriginConfig
- cocOriginSSLProtocols :: Lens' CustomOriginConfig (Maybe OriginSSLProtocols)
- cocHTTPPort :: Lens' CustomOriginConfig Int
- cocHTTPSPort :: Lens' CustomOriginConfig Int
- cocOriginProtocolPolicy :: Lens' CustomOriginConfig OriginProtocolPolicy
- data DefaultCacheBehavior
- defaultCacheBehavior :: Text -> ForwardedValues -> TrustedSigners -> ViewerProtocolPolicy -> Integer -> DefaultCacheBehavior
- dcbAllowedMethods :: Lens' DefaultCacheBehavior (Maybe AllowedMethods)
- dcbMaxTTL :: Lens' DefaultCacheBehavior (Maybe Integer)
- dcbCompress :: Lens' DefaultCacheBehavior (Maybe Bool)
- dcbSmoothStreaming :: Lens' DefaultCacheBehavior (Maybe Bool)
- dcbDefaultTTL :: Lens' DefaultCacheBehavior (Maybe Integer)
- dcbTargetOriginId :: Lens' DefaultCacheBehavior Text
- dcbForwardedValues :: Lens' DefaultCacheBehavior ForwardedValues
- dcbTrustedSigners :: Lens' DefaultCacheBehavior TrustedSigners
- dcbViewerProtocolPolicy :: Lens' DefaultCacheBehavior ViewerProtocolPolicy
- dcbMinTTL :: Lens' DefaultCacheBehavior Integer
- data Distribution
- distribution :: Text -> Text -> UTCTime -> Int -> Text -> ActiveTrustedSigners -> DistributionConfig -> Distribution
- dId :: Lens' Distribution Text
- dStatus :: Lens' Distribution Text
- dLastModifiedTime :: Lens' Distribution UTCTime
- dInProgressInvalidationBatches :: Lens' Distribution Int
- dDomainName :: Lens' Distribution Text
- dActiveTrustedSigners :: Lens' Distribution ActiveTrustedSigners
- dDistributionConfig :: Lens' Distribution DistributionConfig
- data DistributionConfig
- distributionConfig :: Text -> Origins -> DefaultCacheBehavior -> Text -> Bool -> DistributionConfig
- dcAliases :: Lens' DistributionConfig (Maybe Aliases)
- dcDefaultRootObject :: Lens' DistributionConfig (Maybe Text)
- dcPriceClass :: Lens' DistributionConfig (Maybe PriceClass)
- dcCustomErrorResponses :: Lens' DistributionConfig (Maybe CustomErrorResponses)
- dcWebACLId :: Lens' DistributionConfig (Maybe Text)
- dcViewerCertificate :: Lens' DistributionConfig (Maybe ViewerCertificate)
- dcRestrictions :: Lens' DistributionConfig (Maybe Restrictions)
- dcLogging :: Lens' DistributionConfig (Maybe LoggingConfig)
- dcCacheBehaviors :: Lens' DistributionConfig (Maybe CacheBehaviors)
- dcCallerReference :: Lens' DistributionConfig Text
- dcOrigins :: Lens' DistributionConfig Origins
- dcDefaultCacheBehavior :: Lens' DistributionConfig DefaultCacheBehavior
- dcComment :: Lens' DistributionConfig Text
- dcEnabled :: Lens' DistributionConfig Bool
- data DistributionList
- distributionList :: Text -> Int -> Bool -> Int -> DistributionList
- dlItems :: Lens' DistributionList [DistributionSummary]
- dlNextMarker :: Lens' DistributionList (Maybe Text)
- dlMarker :: Lens' DistributionList Text
- dlMaxItems :: Lens' DistributionList Int
- dlIsTruncated :: Lens' DistributionList Bool
- dlQuantity :: Lens' DistributionList Int
- data DistributionSummary
- distributionSummary :: Text -> Text -> UTCTime -> Text -> Aliases -> Origins -> DefaultCacheBehavior -> CacheBehaviors -> CustomErrorResponses -> Text -> PriceClass -> Bool -> ViewerCertificate -> Restrictions -> Text -> DistributionSummary
- dsId :: Lens' DistributionSummary Text
- dsStatus :: Lens' DistributionSummary Text
- dsLastModifiedTime :: Lens' DistributionSummary UTCTime
- dsDomainName :: Lens' DistributionSummary Text
- dsAliases :: Lens' DistributionSummary Aliases
- dsOrigins :: Lens' DistributionSummary Origins
- dsDefaultCacheBehavior :: Lens' DistributionSummary DefaultCacheBehavior
- dsCacheBehaviors :: Lens' DistributionSummary CacheBehaviors
- dsCustomErrorResponses :: Lens' DistributionSummary CustomErrorResponses
- dsComment :: Lens' DistributionSummary Text
- dsPriceClass :: Lens' DistributionSummary PriceClass
- dsEnabled :: Lens' DistributionSummary Bool
- dsViewerCertificate :: Lens' DistributionSummary ViewerCertificate
- dsRestrictions :: Lens' DistributionSummary Restrictions
- dsWebACLId :: Lens' DistributionSummary Text
- data ForwardedValues
- forwardedValues :: Bool -> CookiePreference -> ForwardedValues
- fvHeaders :: Lens' ForwardedValues (Maybe Headers)
- fvQueryString :: Lens' ForwardedValues Bool
- fvCookies :: Lens' ForwardedValues CookiePreference
- data GeoRestriction
- geoRestriction :: GeoRestrictionType -> Int -> GeoRestriction
- grItems :: Lens' GeoRestriction [Text]
- grRestrictionType :: Lens' GeoRestriction GeoRestrictionType
- grQuantity :: Lens' GeoRestriction Int
- data Headers
- headers :: Int -> Headers
- hItems :: Lens' Headers [Text]
- hQuantity :: Lens' Headers Int
- data Invalidation
- invalidation :: Text -> Text -> UTCTime -> InvalidationBatch -> Invalidation
- iId :: Lens' Invalidation Text
- iStatus :: Lens' Invalidation Text
- iCreateTime :: Lens' Invalidation UTCTime
- iInvalidationBatch :: Lens' Invalidation InvalidationBatch
- data InvalidationBatch
- invalidationBatch :: Paths -> Text -> InvalidationBatch
- ibPaths :: Lens' InvalidationBatch Paths
- ibCallerReference :: Lens' InvalidationBatch Text
- data InvalidationList
- invalidationList :: Text -> Int -> Bool -> Int -> InvalidationList
- ilItems :: Lens' InvalidationList [InvalidationSummary]
- ilNextMarker :: Lens' InvalidationList (Maybe Text)
- ilMarker :: Lens' InvalidationList Text
- ilMaxItems :: Lens' InvalidationList Int
- ilIsTruncated :: Lens' InvalidationList Bool
- ilQuantity :: Lens' InvalidationList Int
- data InvalidationSummary
- invalidationSummary :: Text -> UTCTime -> Text -> InvalidationSummary
- isId :: Lens' InvalidationSummary Text
- isCreateTime :: Lens' InvalidationSummary UTCTime
- isStatus :: Lens' InvalidationSummary Text
- data KeyPairIds
- keyPairIds :: Int -> KeyPairIds
- kpiItems :: Lens' KeyPairIds [Text]
- kpiQuantity :: Lens' KeyPairIds Int
- data LoggingConfig
- loggingConfig :: Bool -> Bool -> Text -> Text -> LoggingConfig
- lcEnabled :: Lens' LoggingConfig Bool
- lcIncludeCookies :: Lens' LoggingConfig Bool
- lcBucket :: Lens' LoggingConfig Text
- lcPrefix :: Lens' LoggingConfig Text
- data Origin
- origin :: Text -> Text -> Origin
- oCustomHeaders :: Lens' Origin (Maybe CustomHeaders)
- oCustomOriginConfig :: Lens' Origin (Maybe CustomOriginConfig)
- oS3OriginConfig :: Lens' Origin (Maybe S3OriginConfig)
- oOriginPath :: Lens' Origin (Maybe Text)
- oId :: Lens' Origin Text
- oDomainName :: Lens' Origin Text
- data OriginCustomHeader
- originCustomHeader :: Text -> Text -> OriginCustomHeader
- ochHeaderName :: Lens' OriginCustomHeader Text
- ochHeaderValue :: Lens' OriginCustomHeader Text
- data OriginSSLProtocols
- originSSLProtocols :: Int -> OriginSSLProtocols
- ospQuantity :: Lens' OriginSSLProtocols Int
- ospItems :: Lens' OriginSSLProtocols [SSLProtocol]
- data Origins
- origins :: Int -> Origins
- oItems :: Lens' Origins (Maybe (NonEmpty Origin))
- oQuantity :: Lens' Origins Int
- data Paths
- paths :: Int -> Paths
- pItems :: Lens' Paths [Text]
- pQuantity :: Lens' Paths Int
- data Restrictions
- restrictions :: GeoRestriction -> Restrictions
- rGeoRestriction :: Lens' Restrictions GeoRestriction
- data S3Origin
- s3Origin :: Text -> Text -> S3Origin
- soDomainName :: Lens' S3Origin Text
- soOriginAccessIdentity :: Lens' S3Origin Text
- data S3OriginConfig
- s3OriginConfig :: Text -> S3OriginConfig
- socOriginAccessIdentity :: Lens' S3OriginConfig Text
- data Signer
- signer :: Signer
- sAWSAccountNumber :: Lens' Signer (Maybe Text)
- sKeyPairIds :: Lens' Signer (Maybe KeyPairIds)
- data StreamingDistribution
- streamingDistribution :: Text -> Text -> Text -> ActiveTrustedSigners -> StreamingDistributionConfig -> StreamingDistribution
- sdLastModifiedTime :: Lens' StreamingDistribution (Maybe UTCTime)
- sdId :: Lens' StreamingDistribution Text
- sdStatus :: Lens' StreamingDistribution Text
- sdDomainName :: Lens' StreamingDistribution Text
- sdActiveTrustedSigners :: Lens' StreamingDistribution ActiveTrustedSigners
- sdStreamingDistributionConfig :: Lens' StreamingDistribution StreamingDistributionConfig
- data StreamingDistributionConfig
- streamingDistributionConfig :: Text -> S3Origin -> Text -> TrustedSigners -> Bool -> StreamingDistributionConfig
- sdcAliases :: Lens' StreamingDistributionConfig (Maybe Aliases)
- sdcPriceClass :: Lens' StreamingDistributionConfig (Maybe PriceClass)
- sdcLogging :: Lens' StreamingDistributionConfig (Maybe StreamingLoggingConfig)
- sdcCallerReference :: Lens' StreamingDistributionConfig Text
- sdcS3Origin :: Lens' StreamingDistributionConfig S3Origin
- sdcComment :: Lens' StreamingDistributionConfig Text
- sdcTrustedSigners :: Lens' StreamingDistributionConfig TrustedSigners
- sdcEnabled :: Lens' StreamingDistributionConfig Bool
- data StreamingDistributionList
- streamingDistributionList :: Text -> Int -> Bool -> Int -> StreamingDistributionList
- sdlItems :: Lens' StreamingDistributionList [StreamingDistributionSummary]
- sdlNextMarker :: Lens' StreamingDistributionList (Maybe Text)
- sdlMarker :: Lens' StreamingDistributionList Text
- sdlMaxItems :: Lens' StreamingDistributionList Int
- sdlIsTruncated :: Lens' StreamingDistributionList Bool
- sdlQuantity :: Lens' StreamingDistributionList Int
- data StreamingDistributionSummary
- streamingDistributionSummary :: Text -> Text -> UTCTime -> Text -> S3Origin -> Aliases -> TrustedSigners -> Text -> PriceClass -> Bool -> StreamingDistributionSummary
- sdsId :: Lens' StreamingDistributionSummary Text
- sdsStatus :: Lens' StreamingDistributionSummary Text
- sdsLastModifiedTime :: Lens' StreamingDistributionSummary UTCTime
- sdsDomainName :: Lens' StreamingDistributionSummary Text
- sdsS3Origin :: Lens' StreamingDistributionSummary S3Origin
- sdsAliases :: Lens' StreamingDistributionSummary Aliases
- sdsTrustedSigners :: Lens' StreamingDistributionSummary TrustedSigners
- sdsComment :: Lens' StreamingDistributionSummary Text
- sdsPriceClass :: Lens' StreamingDistributionSummary PriceClass
- sdsEnabled :: Lens' StreamingDistributionSummary Bool
- data StreamingLoggingConfig
- streamingLoggingConfig :: Bool -> Text -> Text -> StreamingLoggingConfig
- slcEnabled :: Lens' StreamingLoggingConfig Bool
- slcBucket :: Lens' StreamingLoggingConfig Text
- slcPrefix :: Lens' StreamingLoggingConfig Text
- data TrustedSigners
- trustedSigners :: Bool -> Int -> TrustedSigners
- tsItems :: Lens' TrustedSigners [Text]
- tsEnabled :: Lens' TrustedSigners Bool
- tsQuantity :: Lens' TrustedSigners Int
- data ViewerCertificate
- viewerCertificate :: ViewerCertificate
- vcSSLSupportMethod :: Lens' ViewerCertificate (Maybe SSLSupportMethod)
- vcACMCertificateARN :: Lens' ViewerCertificate (Maybe Text)
- vcCertificateSource :: Lens' ViewerCertificate (Maybe CertificateSource)
- vcMinimumProtocolVersion :: Lens' ViewerCertificate (Maybe MinimumProtocolVersion)
- vcCertificate :: Lens' ViewerCertificate (Maybe Text)
- vcIAMCertificateId :: Lens' ViewerCertificate (Maybe Text)
- vcCloudFrontDefaultCertificate :: Lens' ViewerCertificate (Maybe Bool)
Service Configuration
cloudFront :: Service Source #
API version '2016-01-28' of the Amazon CloudFront SDK configuration.
Errors
_TooManyOriginCustomHeaders :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for TooManyOriginCustomHeaders' errors.
_InvalidErrorCode :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidErrorCode' errors.
_TooManyCacheBehaviors :: AsError a => Getting (First ServiceError) a ServiceError Source #
You cannot create anymore cache behaviors for the distribution.
_TooManyCloudFrontOriginAccessIdentities :: AsError a => Getting (First ServiceError) a ServiceError Source #
Processing your request would cause you to exceed the maximum number of origin access identities allowed.
_InvalidOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError Source #
The origin access identity is not valid or doesn't exist.
_DistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for DistributionNotDisabled' errors.
_NoSuchStreamingDistribution :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified streaming distribution does not exist.
_InconsistentQuantities :: AsError a => Getting (First ServiceError) a ServiceError Source #
The value of Quantity and the size of Items do not match.
_InvalidArgument :: AsError a => Getting (First ServiceError) a ServiceError Source #
The argument is invalid.
_TooManyInvalidationsInProgress :: AsError a => Getting (First ServiceError) a ServiceError Source #
You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.
_InvalidWebACLId :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidWebACLId' errors.
_TooManyDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError Source #
Your request contains more CNAMEs than are allowed per distribution.
_NoSuchCloudFrontOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified origin access identity does not exist.
_CloudFrontOriginAccessIdentityInUse :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for CloudFrontOriginAccessIdentityInUse' errors.
_TooManyStreamingDistributions :: AsError a => Getting (First ServiceError) a ServiceError Source #
Processing your request would cause you to exceed the maximum number of streaming distributions allowed.
_BatchTooLarge :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for BatchTooLarge' errors.
_TooManyCookieNamesInWhiteList :: AsError a => Getting (First ServiceError) a ServiceError Source #
Your request contains more cookie names in the whitelist than are allowed per cache behavior.
_InvalidForwardCookies :: AsError a => Getting (First ServiceError) a ServiceError Source #
Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.
_TooManyTrustedSigners :: AsError a => Getting (First ServiceError) a ServiceError Source #
Your request contains more trusted signers than are allowed per distribution.
_InvalidOrigin :: AsError a => Getting (First ServiceError) a ServiceError Source #
The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
_NoSuchInvalidation :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified invalidation does not exist.
_NoSuchOrigin :: AsError a => Getting (First ServiceError) a ServiceError Source #
No origin exists with the specified Origin Id.
_InvalidTTLOrder :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidTTLOrder' errors.
_StreamingDistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for StreamingDistributionNotDisabled' errors.
_TooManyHeadersInForwardedValues :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for TooManyHeadersInForwardedValues' errors.
_TooManyStreamingDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for TooManyStreamingDistributionCNAMEs' errors.
_InvalidRequiredProtocol :: AsError a => Getting (First ServiceError) a ServiceError Source #
This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.
_TooManyDistributions :: AsError a => Getting (First ServiceError) a ServiceError Source #
Processing your request would cause you to exceed the maximum number of distributions allowed.
_TooManyCertificates :: AsError a => Getting (First ServiceError) a ServiceError Source #
You cannot create anymore custom ssl certificates.
_DistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError Source #
The caller reference you attempted to create the distribution with is associated with another distribution.
_MissingBody :: AsError a => Getting (First ServiceError) a ServiceError Source #
This operation requires a body. Ensure that the body is present and the Content-Type header is set.
_IllegalUpdate :: AsError a => Getting (First ServiceError) a ServiceError Source #
Origin and CallerReference cannot be updated.
_InvalidIfMatchVersion :: AsError a => Getting (First ServiceError) a ServiceError Source #
The If-Match version is missing or not valid for the distribution.
_PreconditionFailed :: AsError a => Getting (First ServiceError) a ServiceError Source #
The precondition given in one or more of the request-header fields evaluated to false.
_InvalidResponseCode :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidResponseCode' errors.
_InvalidHeadersForS3Origin :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidHeadersForS3Origin' errors.
_CNAMEAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for CNAMEAlreadyExists' errors.
_TrustedSignerDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError Source #
One or more of your trusted signers do not exist.
_InvalidProtocolSettings :: AsError a => Getting (First ServiceError) a ServiceError Source #
You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).
_CloudFrontOriginAccessIdentityAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
_TooManyOrigins :: AsError a => Getting (First ServiceError) a ServiceError Source #
You cannot create anymore origins for the distribution.
_InvalidRelativePath :: AsError a => Getting (First ServiceError) a ServiceError Source #
The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
_StreamingDistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for StreamingDistributionAlreadyExists' errors.
_InvalidMinimumProtocolVersion :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidMinimumProtocolVersion' errors.
_AccessDenied :: AsError a => Getting (First ServiceError) a ServiceError Source #
Access denied.
_InvalidViewerCertificate :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidViewerCertificate' errors.
_NoSuchDistribution :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified distribution does not exist.
_InvalidDefaultRootObject :: AsError a => Getting (First ServiceError) a ServiceError Source #
The default root object file name is too big or contains an invalid character.
_InvalidGeoRestrictionParameter :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidGeoRestrictionParameter' errors.
_InvalidLocationCode :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidLocationCode' errors.
CertificateSource
data CertificateSource Source #
GeoRestrictionType
data GeoRestrictionType Source #
ItemSelection
data ItemSelection Source #
Method
MinimumProtocolVersion
data MinimumProtocolVersion Source #
OriginProtocolPolicy
data OriginProtocolPolicy Source #
PriceClass
data PriceClass Source #
SSLProtocol
data SSLProtocol Source #
SSLSupportMethod
data SSLSupportMethod Source #
ViewerProtocolPolicy
data ViewerProtocolPolicy Source #
ActiveTrustedSigners
data ActiveTrustedSigners Source #
A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for the default cache behavior or for any of the other cache behaviors for this distribution. These are accounts that you want to allow to create signed URLs for private content.
See: activeTrustedSigners
smart constructor.
Creates a value of ActiveTrustedSigners
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
atsEnabled :: Lens' ActiveTrustedSigners Bool Source #
Each active trusted signer.
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.
Aliases
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
See: aliases
smart constructor.
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.
AllowedMethods
data AllowedMethods Source #
A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you may not want users to have permission to delete objects from your origin.
See: allowedMethods
smart constructor.
Creates a value of AllowedMethods
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
amCachedMethods :: Lens' AllowedMethods (Maybe CachedMethods) Source #
Undocumented member.
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), 3 (for GET, HEAD and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
amItems :: Lens' AllowedMethods [Method] Source #
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
CacheBehavior
data CacheBehavior Source #
A complex type that describes how CloudFront processes requests. You can create up to 10 cache behaviors.You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin will never be used. If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.
See: cacheBehavior
smart constructor.
:: Text | |
-> Text | |
-> ForwardedValues | |
-> TrustedSigners | |
-> ViewerProtocolPolicy | |
-> Integer | |
-> CacheBehavior |
Creates a value of CacheBehavior
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cbAllowedMethods :: Lens' CacheBehavior (Maybe AllowedMethods) Source #
Undocumented member.
cbMaxTTL :: Lens' CacheBehavior (Maybe Integer) Source #
The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).
cbCompress :: Lens' CacheBehavior (Maybe Bool) Source #
Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.
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.
cbDefaultTTL :: Lens' CacheBehavior (Maybe Integer) Source #
If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. 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.
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.
cbForwardedValues :: Lens' CacheBehavior ForwardedValues Source #
A complex type that specifies how CloudFront handles query strings, cookies and headers.
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 ViewerProtocolPolicy 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.
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).
CacheBehaviors
data CacheBehaviors Source #
A complex type that contains zero or more CacheBehavior elements.
See: cacheBehaviors
smart constructor.
Creates a value of CacheBehaviors
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
CachedMethods
data CachedMethods Source #
A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: - CloudFront caches responses to GET and HEAD requests. - CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers and Origin headers for the responses to be cached correctly.
See: cachedMethods
smart constructor.
Creates a value of CachedMethods
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmQuantity :: Lens' CachedMethods Int Source #
The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).
cmItems :: Lens' CachedMethods [Method] Source #
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
CloudFrontOriginAccessIdentity
data CloudFrontOriginAccessIdentity Source #
CloudFront origin access identity.
See: cloudFrontOriginAccessIdentity
smart constructor.
cloudFrontOriginAccessIdentity Source #
Creates a value of CloudFrontOriginAccessIdentity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
CloudFrontOriginAccessIdentityConfig
data CloudFrontOriginAccessIdentityConfig Source #
Origin access identity configuration.
See: cloudFrontOriginAccessIdentityConfig
smart constructor.
cloudFrontOriginAccessIdentityConfig Source #
Creates a value of CloudFrontOriginAccessIdentityConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
CloudFrontOriginAccessIdentityList
data CloudFrontOriginAccessIdentityList Source #
The CloudFrontOriginAccessIdentityList type.
See: cloudFrontOriginAccessIdentityList
smart constructor.
cloudFrontOriginAccessIdentityList Source #
:: Text | |
-> Int | |
-> Bool | |
-> Int | |
-> CloudFrontOriginAccessIdentityList |
Creates a value of CloudFrontOriginAccessIdentityList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
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.
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.
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.
cfoailQuantity :: Lens' CloudFrontOriginAccessIdentityList Int Source #
The number of CloudFront origin access identities that were created by the current AWS account.
CloudFrontOriginAccessIdentitySummary
data CloudFrontOriginAccessIdentitySummary Source #
Summary of the information about a CloudFront origin access identity.
See: cloudFrontOriginAccessIdentitySummary
smart constructor.
cloudFrontOriginAccessIdentitySummary Source #
Creates a value of CloudFrontOriginAccessIdentitySummary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
cfoaisComment :: Lens' CloudFrontOriginAccessIdentitySummary Text Source #
The comment for this origin access identity, as originally specified when created.
CookieNames
data 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.
See: cookieNames
smart constructor.
:: Int | |
-> CookieNames |
Creates a value of CookieNames
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
CookiePreference
data CookiePreference Source #
A complex type that specifies the cookie preferences associated with this cache behavior.
See: cookiePreference
smart constructor.
Creates a value of CookiePreference
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
cpForward :: Lens' CookiePreference ItemSelection 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.
CustomErrorResponse
data CustomErrorResponse Source #
A complex type that describes how you'd prefer CloudFront to respond to requests that result in either a 4xx or 5xx response. You can control whether a custom error page should be displayed, what the desired response code should be for this error page and how long should the error response be cached by CloudFront. If you don't want to specify any custom error responses, include only an empty CustomErrorResponses element. To delete all custom error responses in an existing distribution, update the distribution configuration and include only an empty CustomErrorResponses element. To add, change, or remove one or more custom error responses, update the distribution configuration and specify all of the custom error responses that you want to include in the updated distribution.
See: customErrorResponse
smart constructor.
Creates a value of CustomErrorResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ceResponsePagePath :: 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.org/rfc/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.
ceResponseCode :: 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.
ceErrorCachingMinTTL :: 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.
ceErrorCode :: 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.
CustomErrorResponses
data CustomErrorResponses Source #
A complex type that contains zero or more CustomErrorResponse elements.
See: customErrorResponses
smart constructor.
Creates a value of CustomErrorResponses
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
CustomHeaders
data CustomHeaders Source #
A complex type that contains the list of Custom Headers for each origin.
See: customHeaders
smart constructor.
Creates a value of CustomHeaders
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chItems :: Lens' CustomHeaders [OriginCustomHeader] Source #
A complex type that contains the custom headers for this Origin.
chQuantity :: Lens' CustomHeaders Int Source #
The number of custom headers for this origin.
CustomOriginConfig
data CustomOriginConfig Source #
A customer origin.
See: customOriginConfig
smart constructor.
:: Int | |
-> Int | |
-> OriginProtocolPolicy | |
-> CustomOriginConfig |
Creates a value of CustomOriginConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cocOriginSSLProtocols :: Lens' CustomOriginConfig (Maybe OriginSSLProtocols) Source #
The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
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 OriginProtocolPolicy Source #
The origin protocol policy to apply to your origin.
DefaultCacheBehavior
data 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.
See: defaultCacheBehavior
smart constructor.
Creates a value of DefaultCacheBehavior
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcbAllowedMethods :: Lens' DefaultCacheBehavior (Maybe AllowedMethods) Source #
Undocumented member.
dcbMaxTTL :: Lens' DefaultCacheBehavior (Maybe Integer) Source #
The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).
dcbCompress :: Lens' DefaultCacheBehavior (Maybe Bool) Source #
Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.
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.
dcbDefaultTTL :: Lens' DefaultCacheBehavior (Maybe Integer) Source #
If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).
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.
dcbForwardedValues :: Lens' DefaultCacheBehavior ForwardedValues Source #
A complex type that specifies how CloudFront handles query strings, cookies and headers.
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 ViewerProtocolPolicy 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.
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).
Distribution
data Distribution Source #
A distribution.
See: distribution
smart constructor.
:: Text | |
-> Text | |
-> UTCTime | |
-> Int | |
-> Text | |
-> ActiveTrustedSigners | |
-> DistributionConfig | |
-> Distribution |
Creates a value of Distribution
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dId :: Lens' Distribution Text Source #
The identifier for the distribution. For example: EDFDVBD632BHDS5.
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.
dLastModifiedTime :: Lens' Distribution UTCTime Source #
The date and time the distribution was last modified.
dInProgressInvalidationBatches :: Lens' Distribution Int Source #
The number of invalidation batches currently in progress.
dDomainName :: Lens' Distribution Text Source #
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
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.
DistributionConfig
data DistributionConfig Source #
A distribution Configuration.
See: distributionConfig
smart constructor.
:: Text | |
-> Origins | |
-> DefaultCacheBehavior | |
-> Text | |
-> Bool | |
-> DistributionConfig |
Creates a value of DistributionConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcAliases :: Lens' DistributionConfig (Maybe Aliases) Source #
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
dcDefaultRootObject :: Lens' DistributionConfig (Maybe 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.com/index.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.
dcPriceClass :: Lens' DistributionConfig (Maybe PriceClass) Source #
A complex type that contains information about price class for this distribution.
dcCustomErrorResponses :: Lens' DistributionConfig (Maybe CustomErrorResponses) Source #
A complex type that contains zero or more CustomErrorResponse elements.
dcWebACLId :: Lens' DistributionConfig (Maybe Text) Source #
(Optional) If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution.
dcViewerCertificate :: Lens' DistributionConfig (Maybe ViewerCertificate) Source #
Undocumented member.
dcRestrictions :: Lens' DistributionConfig (Maybe Restrictions) Source #
Undocumented member.
dcLogging :: Lens' DistributionConfig (Maybe LoggingConfig) Source #
A complex type that controls whether access logs are written for the distribution.
dcCacheBehaviors :: Lens' DistributionConfig (Maybe 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.
dcOrigins :: Lens' DistributionConfig Origins Source #
A complex type that contains information about origins for this distribution.
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.
dcComment :: Lens' DistributionConfig Text Source #
Any comments you want to include about the distribution.
dcEnabled :: Lens' DistributionConfig Bool Source #
Whether the distribution is enabled to accept end user requests for content.
DistributionList
data DistributionList Source #
A distribution list.
See: distributionList
smart constructor.
Creates a value of DistributionList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dlItems :: Lens' DistributionList [DistributionSummary] Source #
A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account.
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.
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.
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.
dlQuantity :: Lens' DistributionList Int Source #
The number of distributions that were created by the current AWS account.
DistributionSummary
data DistributionSummary Source #
A summary of the information for an Amazon CloudFront distribution.
See: distributionSummary
smart constructor.
:: Text | |
-> Text | |
-> UTCTime | |
-> Text | |
-> Aliases | |
-> Origins | |
-> DefaultCacheBehavior | |
-> CacheBehaviors | |
-> CustomErrorResponses | |
-> Text | |
-> PriceClass | |
-> Bool | |
-> ViewerCertificate | |
-> Restrictions | |
-> Text | |
-> DistributionSummary |
Creates a value of DistributionSummary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsId :: Lens' DistributionSummary Text Source #
The identifier for the distribution. For example: EDFDVBD632BHDS5.
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.
dsLastModifiedTime :: Lens' DistributionSummary UTCTime Source #
The date and time the distribution was last modified.
dsDomainName :: Lens' DistributionSummary Text Source #
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
dsAliases :: Lens' DistributionSummary Aliases Source #
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
dsOrigins :: Lens' DistributionSummary Origins Source #
A complex type that contains information about origins for this distribution.
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.
dsCacheBehaviors :: Lens' DistributionSummary CacheBehaviors Source #
A complex type that contains zero or more CacheBehavior elements.
dsCustomErrorResponses :: Lens' DistributionSummary CustomErrorResponses Source #
A complex type that contains zero or more CustomErrorResponses elements.
dsComment :: Lens' DistributionSummary Text Source #
The comment originally specified when this distribution was created.
dsPriceClass :: Lens' DistributionSummary PriceClass Source #
Undocumented member.
dsEnabled :: Lens' DistributionSummary Bool Source #
Whether the distribution is enabled to accept end user requests for content.
dsViewerCertificate :: Lens' DistributionSummary ViewerCertificate Source #
Undocumented member.
dsRestrictions :: Lens' DistributionSummary Restrictions Source #
Undocumented member.
dsWebACLId :: Lens' DistributionSummary Text Source #
The Web ACL Id (if any) associated with the distribution.
ForwardedValues
data ForwardedValues Source #
A complex type that specifies how CloudFront handles query strings, cookies and headers.
See: forwardedValues
smart constructor.
Creates a value of ForwardedValues
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
fvCookies :: Lens' ForwardedValues CookiePreference Source #
A complex type that specifies how CloudFront handles cookies.
GeoRestriction
data GeoRestriction Source #
A complex type that controls the countries in which your content is distributed. For more information about geo restriction, go to Customizing Error Responses in the Amazon CloudFront Developer Guide. CloudFront determines the location of your users using MaxMind GeoIP databases. For information about the accuracy of these databases, see How accurate are your GeoIP databases? on the MaxMind website.
See: geoRestriction
smart constructor.
Creates a value of GeoRestriction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
grRestrictionType :: Lens' GeoRestriction GeoRestrictionType 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.
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.
Headers
A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior. For the headers that you specify, CloudFront also caches separate versions of a given object based on the header values in viewer requests; this is known as varying on headers. For example, suppose viewer requests for logo.jpg contain a custom Product header that has a value of either Acme or Apex, and you configure CloudFront to vary on the Product header. CloudFront forwards the Product header to the origin and caches the response from the origin once for each header value.
See: headers
smart constructor.
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.
Invalidation
data Invalidation Source #
An invalidation.
See: invalidation
smart constructor.
Creates a value of Invalidation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
iId :: Lens' Invalidation Text Source #
The identifier for the invalidation request. For example: IDFDVBD632BHDS5.
iStatus :: Lens' Invalidation Text Source #
The status of the invalidation request. When the invalidation batch is finished, the status is Completed.
iCreateTime :: Lens' Invalidation UTCTime Source #
The date and time the invalidation request was first made.
iInvalidationBatch :: Lens' Invalidation InvalidationBatch Source #
The current invalidation information for the batch request.
InvalidationBatch
data InvalidationBatch Source #
An invalidation batch.
See: invalidationBatch
smart constructor.
Creates a value of InvalidationBatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.org/rfc/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.
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.
InvalidationList
data InvalidationList Source #
An invalidation list.
See: invalidationList
smart constructor.
Creates a value of InvalidationList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
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.
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.
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.
ilQuantity :: Lens' InvalidationList Int Source #
The number of invalidation batches that were created by the current AWS account.
InvalidationSummary
data InvalidationSummary Source #
Summary of an invalidation request.
See: invalidationSummary
smart constructor.
Creates a value of InvalidationSummary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
isCreateTime :: Lens' InvalidationSummary UTCTime Source #
Undocumented member.
KeyPairIds
data KeyPairIds Source #
A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.
See: keyPairIds
smart constructor.
:: Int | |
-> KeyPairIds |
Creates a value of KeyPairIds
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
LoggingConfig
data LoggingConfig Source #
A complex type that controls whether access logs are written for the distribution.
See: loggingConfig
smart constructor.
Creates a value of LoggingConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
lcBucket :: Lens' LoggingConfig Text Source #
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
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.
Origin
A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.
See: origin
smart constructor.
Creates a value of Origin
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oCustomHeaders :: Lens' Origin (Maybe CustomHeaders) Source #
A complex type that contains information about the custom headers associated with this 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.
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.
oOriginPath :: Lens' Origin (Maybe Text) Source #
An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName.
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.
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.
OriginCustomHeader
data OriginCustomHeader Source #
A complex type that contains information related to a Header
See: originCustomHeader
smart constructor.
Creates a value of OriginCustomHeader
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ochHeaderName :: Lens' OriginCustomHeader Text Source #
The header's name.
ochHeaderValue :: Lens' OriginCustomHeader Text Source #
The header's value.
OriginSSLProtocols
data OriginSSLProtocols Source #
A complex type that contains the list of SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
See: originSSLProtocols
smart constructor.
Creates a value of OriginSSLProtocols
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ospQuantity :: Lens' OriginSSLProtocols Int Source #
The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.
ospItems :: Lens' OriginSSLProtocols [SSLProtocol] Source #
A complex type that contains one SslProtocol element for each SSL/TLS protocol that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.
Origins
A complex type that contains information about origins for this distribution.
See: origins
smart constructor.
oItems :: Lens' Origins (Maybe (NonEmpty Origin)) Source #
A complex type that contains origins for this distribution.
Paths
A complex type that contains information about the objects that you want to invalidate.
See: paths
smart constructor.
pItems :: Lens' Paths [Text] Source #
A complex type that contains a list of the objects that you want to invalidate.
Restrictions
data Restrictions Source #
A complex type that identifies ways in which you want to restrict distribution of your content.
See: restrictions
smart constructor.
Creates a value of Restrictions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rGeoRestriction :: Lens' Restrictions GeoRestriction Source #
Undocumented member.
S3Origin
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
See: s3Origin
smart constructor.
Creates a value of S3Origin
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
S3OriginConfig
data 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.
See: s3OriginConfig
smart constructor.
Creates a value of S3OriginConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.
Signer
A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.
See: signer
smart constructor.
Creates a value of Signer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
StreamingDistribution
data StreamingDistribution Source #
A streaming distribution.
See: streamingDistribution
smart constructor.
streamingDistribution Source #
Creates a value of StreamingDistribution
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdLastModifiedTime :: Lens' StreamingDistribution (Maybe UTCTime) Source #
The date and time the distribution was last modified.
sdId :: Lens' StreamingDistribution Text Source #
The identifier for the streaming distribution. For example: EGTXBD79H29TRA8.
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.
sdDomainName :: Lens' StreamingDistribution Text Source #
The domain name corresponding to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.
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.
sdStreamingDistributionConfig :: Lens' StreamingDistribution StreamingDistributionConfig Source #
The current configuration information for the streaming distribution.
StreamingDistributionConfig
data StreamingDistributionConfig Source #
The configuration for the streaming distribution.
See: streamingDistributionConfig
smart constructor.
streamingDistributionConfig Source #
:: Text | |
-> S3Origin | |
-> Text | |
-> TrustedSigners | |
-> Bool | |
-> StreamingDistributionConfig |
Creates a value of StreamingDistributionConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdcAliases :: Lens' StreamingDistributionConfig (Maybe Aliases) Source #
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
sdcPriceClass :: Lens' StreamingDistributionConfig (Maybe PriceClass) Source #
A complex type that contains information about price class for this streaming distribution.
sdcLogging :: Lens' StreamingDistributionConfig (Maybe StreamingLoggingConfig) Source #
A complex type that controls whether access logs are written for the 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.
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.
sdcComment :: Lens' StreamingDistributionConfig Text Source #
Any comments you want to include about the streaming 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.
sdcEnabled :: Lens' StreamingDistributionConfig Bool Source #
Whether the streaming distribution is enabled to accept end user requests for content.
StreamingDistributionList
data StreamingDistributionList Source #
A streaming distribution list.
See: streamingDistributionList
smart constructor.
streamingDistributionList Source #
Creates a value of StreamingDistributionList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdlItems :: Lens' StreamingDistributionList [StreamingDistributionSummary] Source #
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
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.
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.
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.
sdlQuantity :: Lens' StreamingDistributionList Int Source #
The number of streaming distributions that were created by the current AWS account.
StreamingDistributionSummary
data StreamingDistributionSummary Source #
A summary of the information for an Amazon CloudFront streaming distribution.
See: streamingDistributionSummary
smart constructor.
streamingDistributionSummary Source #
:: Text | |
-> Text | |
-> UTCTime | |
-> Text | |
-> S3Origin | |
-> Aliases | |
-> TrustedSigners | |
-> Text | |
-> PriceClass | |
-> Bool | |
-> StreamingDistributionSummary |
Creates a value of StreamingDistributionSummary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdsId :: Lens' StreamingDistributionSummary Text Source #
The identifier for the distribution. For example: EDFDVBD632BHDS5.
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.
sdsLastModifiedTime :: Lens' StreamingDistributionSummary UTCTime Source #
The date and time the distribution was last modified.
sdsDomainName :: Lens' StreamingDistributionSummary Text Source #
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
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.
sdsAliases :: Lens' StreamingDistributionSummary Aliases Source #
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
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.
sdsComment :: Lens' StreamingDistributionSummary Text Source #
The comment originally specified when this distribution was created.
sdsPriceClass :: Lens' StreamingDistributionSummary PriceClass Source #
Undocumented member.
sdsEnabled :: Lens' StreamingDistributionSummary Bool Source #
Whether the distribution is enabled to accept end user requests for content.
StreamingLoggingConfig
data StreamingLoggingConfig Source #
A complex type that controls whether access logs are written for this streaming distribution.
See: streamingLoggingConfig
smart constructor.
streamingLoggingConfig Source #
Creates a value of StreamingLoggingConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
slcBucket :: Lens' StreamingLoggingConfig Text Source #
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
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.
TrustedSigners
data 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.
See: trustedSigners
smart constructor.
Creates a value of TrustedSigners
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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.
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.
tsQuantity :: Lens' TrustedSigners Int Source #
The number of trusted signers for this cache behavior.
ViewerCertificate
data ViewerCertificate Source #
A complex type that contains information about viewer certificates for this distribution.
See: viewerCertificate
smart constructor.
viewerCertificate :: ViewerCertificate Source #
Creates a value of ViewerCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vcSSLSupportMethod :: Lens' ViewerCertificate (Maybe SSLSupportMethod) 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.
vcACMCertificateARN :: 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 ACM certificate ARN of the custom viewer certificate for this distribution. Specify either this value, IAMCertificateId, or CloudFrontDefaultCertificate.
vcCertificateSource :: Lens' ViewerCertificate (Maybe CertificateSource) Source #
Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, CloudFrontDefaultCertificate].
vcMinimumProtocolVersion :: Lens' ViewerCertificate (Maybe MinimumProtocolVersion) Source #
Specify the minimum version of the SSL protocol that you want CloudFront to use, SSLv3 or TLSv1, for HTTPS connections. CloudFront will serve your objects only to browsers or devices that support at least the SSL version that you specify. The TLSv1 protocol is more secure, so we recommend that you specify SSLv3 only if your users are using browsers or devices that don't support TLSv1. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using dedicated IP (if you specify vip for SSLSupportMethod), you can choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using SNI (if you specify sni-only for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion.
vcCertificate :: Lens' ViewerCertificate (Maybe Text) Source #
Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, CloudFrontDefaultCertificate].
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, ACMCertificateArn, or CloudFrontDefaultCertificate.
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 ACMCertificateArn or IAMCertificateId.