-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon CloudFront SDK.
--
-- The types from this library are intended to be used with
-- amazonka, which provides mechanisms for specifying AuthN/AuthZ
-- information, sending requests, and receiving responses.
--
-- Lenses are used for constructing and manipulating types, due to the
-- depth of nesting of AWS types and transparency regarding
-- de/serialisation into more palatable Haskell values. The provided
-- lenses should be compatible with any of the major lens libraries such
-- as lens or lens-family-core.
--
-- See Network.AWS.CloudFront or the AWS documentation to
-- get started.
@package amazonka-cloudfront
@version 1.4.5
module Network.AWS.CloudFront.Types
-- | API version 2016-09-29 of the Amazon CloudFront SDK
-- configuration.
cloudFront :: Service
-- | Prism for TooManyOriginCustomHeaders' errors.
_TooManyOriginCustomHeaders :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidTagging' errors.
_InvalidTagging :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidErrorCode' errors.
_InvalidErrorCode :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot create more cache behaviors for the distribution.
_TooManyCacheBehaviors :: AsError a => Getting (First ServiceError) a ServiceError
-- | Processing your request would cause you to exceed the maximum number
-- of origin access identities allowed.
_TooManyCloudFrontOriginAccessIdentities :: AsError a => Getting (First ServiceError) a ServiceError
-- | The origin access identity is not valid or doesn't exist.
_InvalidOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for DistributionNotDisabled' errors.
_DistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified streaming distribution does not exist.
_NoSuchStreamingDistribution :: AsError a => Getting (First ServiceError) a ServiceError
-- | The value of Quantity and the size of Items do not
-- match.
_InconsistentQuantities :: AsError a => Getting (First ServiceError) a ServiceError
-- | The argument is invalid.
_InvalidArgument :: AsError a => Getting (First ServiceError) a ServiceError
-- | You have exceeded the maximum number of allowable InProgress
-- invalidation batch requests, or invalidation objects.
_TooManyInvalidationsInProgress :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidWebACLId' errors.
_InvalidWebACLId :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for TooManyQueryStringParameters' errors.
_TooManyQueryStringParameters :: AsError a => Getting (First ServiceError) a ServiceError
-- | Your request contains more CNAMEs than are allowed per distribution.
_TooManyDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified origin access identity does not exist.
_NoSuchCloudFrontOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for CloudFrontOriginAccessIdentityInUse' errors.
_CloudFrontOriginAccessIdentityInUse :: AsError a => Getting (First ServiceError) a ServiceError
-- | Processing your request would cause you to exceed the maximum number
-- of streaming distributions allowed.
_TooManyStreamingDistributions :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for BatchTooLarge' errors.
_BatchTooLarge :: AsError a => Getting (First ServiceError) a ServiceError
-- | Your request contains more cookie names in the whitelist than are
-- allowed per cache behavior.
_TooManyCookieNamesInWhiteList :: AsError a => Getting (First ServiceError) a ServiceError
-- | 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.
_InvalidForwardCookies :: AsError a => Getting (First ServiceError) a ServiceError
-- | Your request contains more trusted signers than are allowed per
-- distribution.
_TooManyTrustedSigners :: AsError a => Getting (First ServiceError) a ServiceError
-- | The Amazon S3 origin server specified does not refer to a valid Amazon
-- S3 bucket.
_InvalidOrigin :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified invalidation does not exist.
_NoSuchInvalidation :: AsError a => Getting (First ServiceError) a ServiceError
-- | No origin exists with the specified Origin Id .
_NoSuchOrigin :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidTTLOrder' errors.
_InvalidTTLOrder :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for StreamingDistributionNotDisabled' errors.
_StreamingDistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for TooManyHeadersInForwardedValues' errors.
_TooManyHeadersInForwardedValues :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for NoSuchResource' errors.
_NoSuchResource :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for TooManyStreamingDistributionCNAMEs' errors.
_TooManyStreamingDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError
-- | 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.
_InvalidRequiredProtocol :: AsError a => Getting (First ServiceError) a ServiceError
-- | Processing your request would cause you to exceed the maximum number
-- of distributions allowed.
_TooManyDistributions :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot create anymore custom SSL/TLS certificates.
_TooManyCertificates :: AsError a => Getting (First ServiceError) a ServiceError
-- | The caller reference you attempted to create the distribution with is
-- associated with another distribution.
_DistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidQueryStringParameters' errors.
_InvalidQueryStringParameters :: AsError a => Getting (First ServiceError) a ServiceError
-- | This operation requires a body. Ensure that the body is present and
-- the Content-Type header is set.
_MissingBody :: AsError a => Getting (First ServiceError) a ServiceError
-- | Origin and CallerReference cannot be updated.
_IllegalUpdate :: AsError a => Getting (First ServiceError) a ServiceError
-- | The If-Match version is missing or not valid for the
-- distribution.
_InvalidIfMatchVersion :: AsError a => Getting (First ServiceError) a ServiceError
-- | The precondition given in one or more of the request-header fields
-- evaluated to false .
_PreconditionFailed :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidResponseCode' errors.
_InvalidResponseCode :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidHeadersForS3Origin' errors.
_InvalidHeadersForS3Origin :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for CNAMEAlreadyExists' errors.
_CNAMEAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | One or more of your trusted signers do not exist.
_TrustedSignerDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot specify SSLv3 as the minimum protocol version if you only
-- want to support only clients that support Server Name Indication
-- (SNI).
_InvalidProtocolSettings :: AsError a => Getting (First ServiceError) a ServiceError
-- | 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.
_CloudFrontOriginAccessIdentityAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot create more origins for the distribution.
_TooManyOrigins :: AsError a => Getting (First ServiceError) a ServiceError
-- | The relative path is too big, is not URL-encoded, or does not begin
-- with a slash (/).
_InvalidRelativePath :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for StreamingDistributionAlreadyExists' errors.
_StreamingDistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidMinimumProtocolVersion' errors.
_InvalidMinimumProtocolVersion :: AsError a => Getting (First ServiceError) a ServiceError
-- | Access denied.
_AccessDenied :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidViewerCertificate' errors.
_InvalidViewerCertificate :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified distribution does not exist.
_NoSuchDistribution :: AsError a => Getting (First ServiceError) a ServiceError
-- | The default root object file name is too big or contains an invalid
-- character.
_InvalidDefaultRootObject :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidGeoRestrictionParameter' errors.
_InvalidGeoRestrictionParameter :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidLocationCode' errors.
_InvalidLocationCode :: AsError a => Getting (First ServiceError) a ServiceError
data CertificateSource
Acm :: CertificateSource
Cloudfront :: CertificateSource
IAM :: CertificateSource
data GeoRestrictionType
Blacklist :: GeoRestrictionType
None :: GeoRestrictionType
Whitelist :: GeoRestrictionType
data HTTPVersion
HTTP1_1 :: HTTPVersion
HTTP2 :: HTTPVersion
data ItemSelection
ISAll :: ItemSelection
ISNone :: ItemSelection
ISWhitelist :: ItemSelection
data Method
Delete :: Method
Get :: Method
Head :: Method
Options :: Method
Patch :: Method
Post :: Method
Put :: Method
data MinimumProtocolVersion
MPVSSLV3 :: MinimumProtocolVersion
MPVTLSV1 :: MinimumProtocolVersion
data OriginProtocolPolicy
HTTPOnly :: OriginProtocolPolicy
HTTPSOnly :: OriginProtocolPolicy
MatchViewer :: OriginProtocolPolicy
data PriceClass
PriceClass100 :: PriceClass
PriceClass200 :: PriceClass
PriceClassAll :: PriceClass
data SSLProtocol
SSLV3 :: SSLProtocol
TLSV1 :: SSLProtocol
TLSV1_1 :: SSLProtocol
TLSV1_2 :: SSLProtocol
data SSLSupportMethod
SNIOnly :: SSLSupportMethod
VIP :: SSLSupportMethod
data ViewerProtocolPolicy
VPPAllowAll :: ViewerProtocolPolicy
VPPHTTPSOnly :: ViewerProtocolPolicy
VPPRedirectToHTTPS :: ViewerProtocolPolicy
-- | A complex type that lists the AWS accounts, if any, that you included
-- in the TrustedSigners complex type for this distribution.
-- These are the accounts that you want to allow to create signed URLs
-- for private content.
--
-- The Signer complex type lists the AWS account number of the
-- trusted signer or self if the signer is the AWS account that
-- created the distribution. The Signer element also includes
-- the IDs of any active CloudFront key pairs that are associated with
-- the trusted signer's AWS account. If no KeyPairId element
-- appears for a Signer , that signer can't create signed URLs.
--
-- For more information, see Serving Private Content through
-- CloudFront in the Amazon CloudFront Developer Guide .
--
-- See: activeTrustedSigners smart constructor.
data ActiveTrustedSigners
-- | 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 - A complex type that contains one Signer
-- complex type for each trusted signer that is specified in the
-- TrustedSigners complex type. For more information, see
-- ActiveTrustedSigners .
-- - atsEnabled - Enabled is true if any of the AWS
-- accounts listed in the TrustedSigners complex type for this
-- RTMP distribution have active CloudFront key pairs. If not,
-- Enabled is false . For more information, see
-- ActiveTrustedSigners .
-- - atsQuantity - A complex type that contains one
-- Signer complex type for each trusted signer specified in the
-- TrustedSigners complex type. For more information, see
-- ActiveTrustedSigners .
--
activeTrustedSigners :: Bool -> Int -> ActiveTrustedSigners
-- | A complex type that contains one Signer complex type for each
-- trusted signer that is specified in the TrustedSigners
-- complex type. For more information, see ActiveTrustedSigners .
atsItems :: Lens' ActiveTrustedSigners [Signer]
-- | Enabled is true if any of the AWS accounts listed in the
-- TrustedSigners complex type for this RTMP distribution have
-- active CloudFront key pairs. If not, Enabled is
-- false . For more information, see ActiveTrustedSigners
-- .
atsEnabled :: Lens' ActiveTrustedSigners Bool
-- | A complex type that contains one Signer complex type for each
-- trusted signer specified in the TrustedSigners complex type.
-- For more information, see ActiveTrustedSigners .
atsQuantity :: Lens' ActiveTrustedSigners Int
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this distribution.
--
-- See: aliases smart constructor.
data Aliases
-- | Creates a value of Aliases with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - aItems - A complex type that contains the CNAME aliases, if
-- any, that you want to associate with this distribution.
-- - aQuantity - The number of CNAME aliases, if any, that you
-- want to associate with this distribution.
--
aliases :: Int -> Aliases
-- | A complex type that contains the CNAME aliases, if any, that you want
-- to associate with this distribution.
aItems :: Lens' Aliases [Text]
-- | The number of CNAME aliases, if any, that you want to associate with
-- this distribution.
aQuantity :: Lens' Aliases Int
-- | 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 might not
-- want users to have permissions to delete objects from your origin.
--
-- See: allowedMethods smart constructor.
data AllowedMethods
-- | 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 - Undocumented member.
-- - amQuantity - 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 - A complex type that contains the HTTP methods
-- that you want CloudFront to process and forward to your origin.
--
allowedMethods :: Int -> AllowedMethods
-- | Undocumented member.
amCachedMethods :: Lens' AllowedMethods (Maybe CachedMethods)
-- | 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).
amQuantity :: Lens' AllowedMethods Int
-- | A complex type that contains the HTTP methods that you want CloudFront
-- to process and forward to your origin.
amItems :: Lens' AllowedMethods [Method]
-- | A complex type that describes how CloudFront processes requests.
--
-- 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 is never used.
--
-- For the current limit on the number of cache behaviors that you can
-- add to a distribution, see Amazon CloudFront Limits in the
-- AWS General Reference .
--
-- 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.
--
-- For more information about cache behaviors, see Cache Behaviors
-- in the Amazon CloudFront Developer Guide .
--
-- See: cacheBehavior smart constructor.
data 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 - Undocumented member.
-- - cbMaxTTL - The maximum amount of time that you want objects
-- to stay in CloudFront caches 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. For
-- more information, see Specifying How Long Objects and Errors Stay
-- in a CloudFront Edge Cache (Expiration) in the Amazon
-- CloudFront Developer Guide .
-- - cbCompress - Whether you want CloudFront to automatically
-- compress certain files for this cache behavior. If so, specify true;
-- if not, specify false. For more information, see Serving Compressed
-- Files in the Amazon CloudFront Developer Guide .
-- - cbSmoothStreaming - Indicates whether you want to
-- distribute media files in the Microsoft Smooth Streaming format using
-- the origin that is associated with this cache behavior. If so, specify
-- true ; if not, specify false . If you specify
-- true for SmoothStreaming , you can still distribute
-- other content using this cache behavior if the content matches the
-- value of PathPattern .
-- - cbDefaultTTL - The default amount of time that you want
-- objects to stay in CloudFront caches 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. For
-- more information, see Specifying How Long Objects and Errors Stay
-- in a CloudFront Edge Cache (Expiration) in the Amazon
-- CloudFront Developer Guide .
-- - cbPathPattern - The pattern (for example,
-- images/*.jpg ) that specifies which requests to apply the
-- behavior to. When CloudFront receives a viewer 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. For more information, see Path Pattern in the
-- Amazon CloudFront Developer Guide .
-- - cbTargetOriginId - 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 - A complex type that specifies how
-- CloudFront handles query strings and cookies.
-- - cbTrustedSigners - 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, see Serving Private Content through
-- CloudFront in the Amazon 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 - The protocol that viewers can use
-- to access the files in the origin specified by TargetOriginId
-- when a request matches the path pattern in PathPattern . You
-- can specify the following options: * allow-all : Viewers can
-- use HTTP or HTTPS. * redirect-to-https : If a viewer submits
-- an HTTP request, CloudFront returns an HTTP status code of 301 (Moved
-- Permanently) to the viewer along with the HTTPS URL. The viewer then
-- resubmits the request using the new URL. * https-only : If a
-- viewer sends an HTTP request, CloudFront returns an HTTP status code
-- of 403 (Forbidden). For more information about requiring the HTTPS
-- protocol, see Using an HTTPS Connection to Access Your Objects
-- in the Amazon CloudFront Developer Guide .
-- - cbMinTTL - The minimum amount of time that you want objects
-- to stay in CloudFront caches before CloudFront forwards another
-- request to your origin to determine whether the object has been
-- updated. For more information, see Specifying How Long Objects and
-- Errors Stay in a CloudFront Edge Cache (Expiration) in the
-- Amazon Amazon CloudFront Developer Guide . You must specify
-- 0 for MinTTL if you configure CloudFront to forward
-- all headers to your origin (under Headers , if you specify
-- 1 for Quantity and * for Name
-- ).
--
cacheBehavior :: Text -> Text -> ForwardedValues -> TrustedSigners -> ViewerProtocolPolicy -> Integer -> CacheBehavior
-- | Undocumented member.
cbAllowedMethods :: Lens' CacheBehavior (Maybe AllowedMethods)
-- | The maximum amount of time that you want objects to stay in CloudFront
-- caches 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. For more information, see Specifying
-- How Long Objects and Errors Stay in a CloudFront Edge Cache
-- (Expiration) in the Amazon CloudFront Developer Guide .
cbMaxTTL :: Lens' CacheBehavior (Maybe Integer)
-- | Whether you want CloudFront to automatically compress certain files
-- for this cache behavior. If so, specify true; if not, specify false.
-- For more information, see Serving Compressed Files in the
-- Amazon CloudFront Developer Guide .
cbCompress :: Lens' CacheBehavior (Maybe Bool)
-- | Indicates whether you want to distribute media files in the Microsoft
-- Smooth Streaming format using the origin that is associated with this
-- cache behavior. If so, specify true ; if not, specify
-- false . If you specify true for
-- SmoothStreaming , you can still distribute other content
-- using this cache behavior if the content matches the value of
-- PathPattern .
cbSmoothStreaming :: Lens' CacheBehavior (Maybe Bool)
-- | The default amount of time that you want objects to stay in CloudFront
-- caches 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. For more information, see
-- Specifying How Long Objects and Errors Stay in a CloudFront Edge
-- Cache (Expiration) in the Amazon CloudFront Developer Guide
-- .
cbDefaultTTL :: Lens' CacheBehavior (Maybe Integer)
-- | The pattern (for example, images/*.jpg ) that specifies which
-- requests to apply the behavior to. When CloudFront receives a viewer
-- 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. For more information, see Path
-- Pattern in the Amazon CloudFront Developer Guide .
cbPathPattern :: Lens' CacheBehavior Text
-- | 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.
cbTargetOriginId :: Lens' CacheBehavior Text
-- | A complex type that specifies how CloudFront handles query strings and
-- cookies.
cbForwardedValues :: Lens' CacheBehavior ForwardedValues
-- | 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, see
-- Serving Private Content through CloudFront in the Amazon
-- 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.
cbTrustedSigners :: Lens' CacheBehavior TrustedSigners
-- | The protocol that viewers can use to access the files in the origin
-- specified by TargetOriginId when a request matches the path
-- pattern in PathPattern . You can specify the following
-- options: * allow-all : Viewers can use HTTP or HTTPS. *
-- redirect-to-https : If a viewer submits an HTTP request,
-- CloudFront returns an HTTP status code of 301 (Moved Permanently) to
-- the viewer along with the HTTPS URL. The viewer then resubmits the
-- request using the new URL. * https-only : If a viewer sends
-- an HTTP request, CloudFront returns an HTTP status code of 403
-- (Forbidden). For more information about requiring the HTTPS protocol,
-- see Using an HTTPS Connection to Access Your Objects in the
-- Amazon CloudFront Developer Guide .
cbViewerProtocolPolicy :: Lens' CacheBehavior ViewerProtocolPolicy
-- | The minimum amount of time that you want objects to stay in CloudFront
-- caches before CloudFront forwards another request to your origin to
-- determine whether the object has been updated. For more information,
-- see Specifying How Long Objects and Errors Stay in a CloudFront
-- Edge Cache (Expiration) in the Amazon Amazon CloudFront
-- Developer Guide . You must specify 0 for MinTTL
-- if you configure CloudFront to forward all headers to your origin
-- (under Headers , if you specify 1 for
-- Quantity and * for Name ).
cbMinTTL :: Lens' CacheBehavior Integer
-- | A complex type that contains zero or more CacheBehavior
-- elements.
--
-- See: cacheBehaviors smart constructor.
data CacheBehaviors
-- | 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 - Optional: A complex type that contains cache
-- behaviors for this distribution. If Quantity is 0 ,
-- you can omit Items .
-- - cbQuantity - The number of cache behaviors for this
-- distribution.
--
cacheBehaviors :: Int -> CacheBehaviors
-- | Optional: A complex type that contains cache behaviors for this
-- distribution. If Quantity is 0 , you can omit
-- Items .
cbItems :: Lens' CacheBehaviors [CacheBehavior]
-- | The number of cache behaviors for this distribution.
cbQuantity :: Lens' CacheBehaviors Int
-- | 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 Amazon 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.
data CachedMethods
-- | 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 - 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 - A complex type that contains the HTTP methods
-- that you want CloudFront to cache responses to.
--
cachedMethods :: Int -> CachedMethods
-- | 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).
cmQuantity :: Lens' CachedMethods Int
-- | A complex type that contains the HTTP methods that you want CloudFront
-- to cache responses to.
cmItems :: Lens' CachedMethods [Method]
-- | CloudFront origin access identity.
--
-- See: cloudFrontOriginAccessIdentity smart constructor.
data CloudFrontOriginAccessIdentity
-- | 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 - The current
-- configuration information for the identity.
-- - cfoaiId - The ID for the origin access identity. For
-- example: E74FTE3AJFJ256A .
-- - cfoaiS3CanonicalUserId - The Amazon S3 canonical user ID
-- for the origin access identity, used when giving the origin access
-- identity read permission to an object in Amazon S3.
--
cloudFrontOriginAccessIdentity :: Text -> Text -> CloudFrontOriginAccessIdentity
-- | The current configuration information for the identity.
cfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CloudFrontOriginAccessIdentity (Maybe CloudFrontOriginAccessIdentityConfig)
-- | The ID for the origin access identity. For example:
-- E74FTE3AJFJ256A .
cfoaiId :: Lens' CloudFrontOriginAccessIdentity Text
-- | The Amazon S3 canonical user ID for the origin access identity, used
-- when giving the origin access identity read permission to an object in
-- Amazon S3.
cfoaiS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentity Text
-- | Origin access identity configuration. Send a GET request to
-- the /CloudFront API version CloudFrontidentity
-- ID/config resource.
--
-- See: cloudFrontOriginAccessIdentityConfig smart
-- constructor.
data CloudFrontOriginAccessIdentityConfig
-- | 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 - 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
-- already sent in a previous identity request, 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 - Any comments you want to include about the
-- origin access identity.
--
cloudFrontOriginAccessIdentityConfig :: Text -> Text -> CloudFrontOriginAccessIdentityConfig
-- | 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
-- already sent in a previous identity request, 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.
cfoaicCallerReference :: Lens' CloudFrontOriginAccessIdentityConfig Text
-- | Any comments you want to include about the origin access identity.
cfoaicComment :: Lens' CloudFrontOriginAccessIdentityConfig Text
-- | Lists the origin access identities for CloudFront.Send a GET
-- request to the /CloudFront API version
-- origin-access-identitycloudfront resource. The response
-- includes a CloudFrontOriginAccessIdentityList element with
-- zero or more CloudFrontOriginAccessIdentitySummary child
-- elements. By default, your entire list of origin access identities is
-- returned in one single page. If the list is long, you can paginate it
-- using the MaxItems and Marker parameters.
--
-- See: cloudFrontOriginAccessIdentityList smart
-- constructor.
data 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 - A complex type that contains one
-- CloudFrontOriginAccessIdentitySummary element for each origin
-- access identity that was created by the current AWS account.
-- - cfoailNextMarker - 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 - Use this when paginating results to indicate
-- where to begin in your list of origin access identities. The results
-- include identities in the list that occur after the marker. To get the
-- next page of results, set the Marker to the value of the
-- NextMarker from the current page's response (which is also
-- the ID of the last identity on that page).
-- - cfoailMaxItems - The maximum number of origin access
-- identities you want in the response body.
-- - cfoailIsTruncated - 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 - The number of CloudFront origin access
-- identities that were created by the current AWS account.
--
cloudFrontOriginAccessIdentityList :: Text -> Int -> Bool -> Int -> CloudFrontOriginAccessIdentityList
-- | A complex type that contains one
-- CloudFrontOriginAccessIdentitySummary element for each origin
-- access identity that was created by the current AWS account.
cfoailItems :: Lens' CloudFrontOriginAccessIdentityList [CloudFrontOriginAccessIdentitySummary]
-- | 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.
cfoailNextMarker :: Lens' CloudFrontOriginAccessIdentityList (Maybe Text)
-- | Use this when paginating results to indicate where to begin in your
-- list of origin access identities. The results include identities in
-- the list that occur after the marker. To get the next page of results,
-- set the Marker to the value of the NextMarker from
-- the current page's response (which is also the ID of the last identity
-- on that page).
cfoailMarker :: Lens' CloudFrontOriginAccessIdentityList Text
-- | The maximum number of origin access identities you want in the
-- response body.
cfoailMaxItems :: Lens' CloudFrontOriginAccessIdentityList Int
-- | 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.
cfoailIsTruncated :: Lens' CloudFrontOriginAccessIdentityList Bool
-- | The number of CloudFront origin access identities that were created by
-- the current AWS account.
cfoailQuantity :: Lens' CloudFrontOriginAccessIdentityList Int
-- | Summary of the information about a CloudFront origin access identity.
--
-- See: cloudFrontOriginAccessIdentitySummary smart
-- constructor.
data CloudFrontOriginAccessIdentitySummary
-- | 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 - The ID for the origin access identity. For
-- example: E74FTE3AJFJ256A .
-- - cfoaisS3CanonicalUserId - 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 - The comment for this origin access
-- identity, as originally specified when created.
--
cloudFrontOriginAccessIdentitySummary :: Text -> Text -> Text -> CloudFrontOriginAccessIdentitySummary
-- | The ID for the origin access identity. For example:
-- E74FTE3AJFJ256A .
cfoaisId :: Lens' CloudFrontOriginAccessIdentitySummary Text
-- | 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.
cfoaisS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentitySummary Text
-- | The comment for this origin access identity, as originally specified
-- when created.
cfoaisComment :: Lens' CloudFrontOriginAccessIdentitySummary Text
-- | A complex type that specifies whether you want CloudFront to forward
-- cookies to the origin and, if so, which ones. For more information
-- about forwarding cookies to the origin, see How CloudFront
-- Forwards, Caches, and Logs Cookies in the Amazon CloudFront
-- Developer Guide .
--
-- See: cookieNames smart constructor.
data 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 - A complex type that contains one Name
-- element for each cookie that you want CloudFront to forward to the
-- origin for this cache behavior.
-- - cnQuantity - The number of different cookies that you want
-- CloudFront to forward to the origin for this cache behavior.
--
cookieNames :: Int -> CookieNames
-- | A complex type that contains one Name element for each cookie
-- that you want CloudFront to forward to the origin for this cache
-- behavior.
cnItems :: Lens' CookieNames [Text]
-- | The number of different cookies that you want CloudFront to forward to
-- the origin for this cache behavior.
cnQuantity :: Lens' CookieNames Int
-- | A complex type that specifies whether you want CloudFront to forward
-- cookies to the origin and, if so, which ones. For more information
-- about forwarding cookies to the origin, see How CloudFront
-- Forwards, Caches, and Logs Cookies in the Amazon CloudFront
-- Developer Guide .
--
-- See: cookiePreference smart constructor.
data CookiePreference
-- | 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 - Required if you specify
-- whitelist for the value of Forward: . A complex type
-- that specifies how many different cookies you want CloudFront to
-- forward to the origin for this cache behavior and, if you want to
-- forward selected cookies, the names of those cookies. If you specify
-- all or none for the value of Forward , omit
-- WhitelistedNames . If you change the value of
-- Forward from whitelist to all or none and you don't
-- delete the WhitelistedNames element and its child elements,
-- CloudFront deletes them automatically. For the current limit on the
-- number of cookie names that you can whitelist for each cache behavior,
-- see Amazon CloudFront Limits in the AWS General
-- Reference .
-- - cpForward - Specifies which cookies to forward to the
-- origin for this cache behavior: all, none, or the list of cookies
-- specified in the WhitelistedNames complex type. Amazon S3
-- doesn't process cookies. When the cache behavior is forwarding
-- requests to an Amazon S3 origin, specify none for the Forward
-- element.
--
cookiePreference :: ItemSelection -> CookiePreference
-- | Required if you specify whitelist for the value of
-- Forward: . A complex type that specifies how many different
-- cookies you want CloudFront to forward to the origin for this cache
-- behavior and, if you want to forward selected cookies, the names of
-- those cookies. If you specify all or none for the value of
-- Forward , omit WhitelistedNames . If you change the
-- value of Forward from whitelist to all or none and
-- you don't delete the WhitelistedNames element and its child
-- elements, CloudFront deletes them automatically. For the current limit
-- on the number of cookie names that you can whitelist for each cache
-- behavior, see Amazon CloudFront Limits in the AWS General
-- Reference .
cpWhitelistedNames :: Lens' CookiePreference (Maybe CookieNames)
-- | Specifies which cookies to forward to the origin for this cache
-- behavior: all, none, or the list of cookies specified in the
-- WhitelistedNames complex type. Amazon S3 doesn't process
-- cookies. When the cache behavior is forwarding requests to an Amazon
-- S3 origin, specify none for the Forward element.
cpForward :: Lens' CookiePreference ItemSelection
-- | A complex type that controls:
--
--
-- - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx
-- range with custom error messages before returning the response to the
-- viewer.
-- - How long CloudFront caches HTTP status codes in the 4xx and 5xx
-- range.
--
--
-- For more information about custom error pages, see Customizing
-- Error Responses in the Amazon CloudFront Developer Guide .
--
-- See: customErrorResponse smart constructor.
data CustomErrorResponse
-- | 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 - The path to the custom error page that
-- you want CloudFront to return to a viewer when your origin returns the
-- HTTP status code specified by ErrorCode , for example,
-- 4xx-errors403-forbidden.html . If you want to store
-- your objects and your custom error pages in different locations, your
-- distribution must include a cache behavior for which the following is
-- true: * The value of PathPattern matches the path to your
-- custom error messages. For example, suppose you saved custom error
-- pages for 4xx errors in an Amazon S3 bucket in a directory named
-- /4xx-errors . Your distribution must include a cache behavior
-- for which the path pattern routes requests for your custom error pages
-- to that location, for example, 4xx-errors* . * The
-- value of TargetOriginId specifies the value of the
-- ID element for the origin that contains your custom error
-- pages. If you specify a value for ResponsePagePath , you must
-- also specify a value for ResponseCode . If you don't want to
-- specify a value, include an empty element,
-- ResponsePagePath , in the XML document. We recommend
-- that you store custom error pages in an Amazon S3 bucket. If you store
-- custom error pages on an HTTP server and the server starts to return
-- 5xx errors, CloudFront can't get the files that you want to return to
-- viewers because the origin server is unavailable.
-- - ceResponseCode - The HTTP status code that you want
-- CloudFront to return to the viewer along with the custom error page.
-- There are a variety of reasons that you might want CloudFront to
-- return a status code different from the status code that your origin
-- returned to CloudFront, for example: * Some Internet devices (some
-- firewalls and corporate proxies, for example) intercept HTTP 4xx and
-- 5xx and prevent the response from being returned to the viewer. If you
-- substitute 200 , the response typically won't be intercepted.
-- * If you don't care about distinguishing among different client errors
-- or server errors, you can specify 400 or 500 as the
-- ResponseCode for all 4xx or 5xx errors. * You might want to
-- return a 200 status code (OK) and static website so your
-- customers don't know that your website is down. If you specify a value
-- for ResponseCode , you must also specify a value for
-- ResponsePagePath . If you don't want to specify a value,
-- include an empty element, ResponseCode , in the XML
-- document.
-- - ceErrorCachingMinTTL - The minimum amount of time, in
-- seconds, that you want CloudFront to cache the HTTP status code
-- specified in ErrorCode . When this time period has elapsed,
-- CloudFront queries your origin to see whether the problem that caused
-- the error has been resolved and the requested object is now available.
-- If you don't want to specify a value, include an empty element,
-- ErrorCachingMinTTL , in the XML document. For more
-- information, see Customizing Error Responses in the Amazon
-- CloudFront Developer Guide .
-- - ceErrorCode - The HTTP status code for which you want to
-- specify a custom error page and/or a caching duration.
--
customErrorResponse :: Int -> CustomErrorResponse
-- | The path to the custom error page that you want CloudFront to return
-- to a viewer when your origin returns the HTTP status code specified by
-- ErrorCode , for example,
-- 4xx-errors403-forbidden.html . If you want to store
-- your objects and your custom error pages in different locations, your
-- distribution must include a cache behavior for which the following is
-- true: * The value of PathPattern matches the path to your
-- custom error messages. For example, suppose you saved custom error
-- pages for 4xx errors in an Amazon S3 bucket in a directory named
-- /4xx-errors . Your distribution must include a cache behavior
-- for which the path pattern routes requests for your custom error pages
-- to that location, for example, 4xx-errors* . * The
-- value of TargetOriginId specifies the value of the
-- ID element for the origin that contains your custom error
-- pages. If you specify a value for ResponsePagePath , you must
-- also specify a value for ResponseCode . If you don't want to
-- specify a value, include an empty element,
-- ResponsePagePath , in the XML document. We recommend
-- that you store custom error pages in an Amazon S3 bucket. If you store
-- custom error pages on an HTTP server and the server starts to return
-- 5xx errors, CloudFront can't get the files that you want to return to
-- viewers because the origin server is unavailable.
ceResponsePagePath :: Lens' CustomErrorResponse (Maybe Text)
-- | The HTTP status code that you want CloudFront to return to the viewer
-- along with the custom error page. There are a variety of reasons that
-- you might want CloudFront to return a status code different from the
-- status code that your origin returned to CloudFront, for example: *
-- Some Internet devices (some firewalls and corporate proxies, for
-- example) intercept HTTP 4xx and 5xx and prevent the response from
-- being returned to the viewer. If you substitute 200 , the
-- response typically won't be intercepted. * If you don't care about
-- distinguishing among different client errors or server errors, you can
-- specify 400 or 500 as the ResponseCode for
-- all 4xx or 5xx errors. * You might want to return a 200
-- status code (OK) and static website so your customers don't know that
-- your website is down. If you specify a value for ResponseCode
-- , you must also specify a value for ResponsePagePath . If you
-- don't want to specify a value, include an empty element,
-- ResponseCode , in the XML document.
ceResponseCode :: Lens' CustomErrorResponse (Maybe Text)
-- | The minimum amount of time, in seconds, that you want CloudFront to
-- cache the HTTP status code specified in ErrorCode . When this
-- time period has elapsed, CloudFront queries your origin to see whether
-- the problem that caused the error has been resolved and the requested
-- object is now available. If you don't want to specify a value, include
-- an empty element, ErrorCachingMinTTL , in the XML
-- document. For more information, see Customizing Error Responses
-- in the Amazon CloudFront Developer Guide .
ceErrorCachingMinTTL :: Lens' CustomErrorResponse (Maybe Integer)
-- | The HTTP status code for which you want to specify a custom error page
-- and/or a caching duration.
ceErrorCode :: Lens' CustomErrorResponse Int
-- | A complex type that controls:
--
--
-- - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx
-- range with custom error messages before returning the response to the
-- viewer.
-- - How long CloudFront caches HTTP status codes in the 4xx and 5xx
-- range.
--
--
-- For more information about custom error pages, see Customizing
-- Error Responses in the Amazon CloudFront Developer Guide .
--
-- See: customErrorResponses smart constructor.
data CustomErrorResponses
-- | 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 - A complex type that contains a
-- CustomErrorResponse element for each HTTP status code for
-- which you want to specify a custom error page and/or a caching
-- duration.
-- - cerQuantity - The number of HTTP status codes for which you
-- want to specify a custom error page and/or a caching duration. If
-- Quantity is 0 , you can omit Items .
--
customErrorResponses :: Int -> CustomErrorResponses
-- | A complex type that contains a CustomErrorResponse element
-- for each HTTP status code for which you want to specify a custom error
-- page and/or a caching duration.
cerItems :: Lens' CustomErrorResponses [CustomErrorResponse]
-- | The number of HTTP status codes for which you want to specify a custom
-- error page and/or a caching duration. If Quantity is
-- 0 , you can omit Items .
cerQuantity :: Lens' CustomErrorResponses Int
-- | A complex type that contains the list of Custom Headers for each
-- origin.
--
-- See: customHeaders smart constructor.
data CustomHeaders
-- | 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 - Optional : A list that contains one
-- OriginCustomHeader element for each custom header that you
-- want CloudFront to forward to the origin. If Quantity is 0 ,
-- omit Items .
-- - chQuantity - The number of custom headers, if any, for this
-- distribution.
--
customHeaders :: Int -> CustomHeaders
-- | Optional : A list that contains one OriginCustomHeader
-- element for each custom header that you want CloudFront to forward to
-- the origin. If Quantity is 0 , omit Items .
chItems :: Lens' CustomHeaders [OriginCustomHeader]
-- | The number of custom headers, if any, for this distribution.
chQuantity :: Lens' CustomHeaders Int
-- | A customer origin.
--
-- See: customOriginConfig smart constructor.
data 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 - The SSL/TLS protocols that you want
-- CloudFront to use when communicating with your origin over HTTPS.
-- - cocHTTPPort - The HTTP port the custom origin listens
-- on.
-- - cocHTTPSPort - The HTTPS port the custom origin listens
-- on.
-- - cocOriginProtocolPolicy - The origin protocol policy to
-- apply to your origin.
--
customOriginConfig :: Int -> Int -> OriginProtocolPolicy -> CustomOriginConfig
-- | The SSL/TLS protocols that you want CloudFront to use when
-- communicating with your origin over HTTPS.
cocOriginSSLProtocols :: Lens' CustomOriginConfig (Maybe OriginSSLProtocols)
-- | The HTTP port the custom origin listens on.
cocHTTPPort :: Lens' CustomOriginConfig Int
-- | The HTTPS port the custom origin listens on.
cocHTTPSPort :: Lens' CustomOriginConfig Int
-- | The origin protocol policy to apply to your origin.
cocOriginProtocolPolicy :: Lens' CustomOriginConfig OriginProtocolPolicy
-- | 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.
data DefaultCacheBehavior
-- | 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 - Undocumented member.
-- - dcbMaxTTL - Undocumented member.
-- - dcbCompress - Whether you want CloudFront to automatically
-- compress certain files for this cache behavior. If so, specify
-- true ; if not, specify false . For more information,
-- see Serving Compressed Files in the Amazon CloudFront
-- Developer Guide .
-- - dcbSmoothStreaming - Indicates whether you want to
-- distribute media files in the Microsoft Smooth Streaming format using
-- the origin that is associated with this cache behavior. If so, specify
-- true ; if not, specify false . If you specify
-- true for SmoothStreaming , you can still distribute
-- other content using this cache behavior if the content matches the
-- value of PathPattern .
-- - dcbDefaultTTL - The default amount of time that you want
-- objects to stay in CloudFront caches 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. For
-- more information, see Specifying How Long Objects and Errors Stay
-- in a CloudFront Edge Cache (Expiration) in the Amazon
-- CloudFront Developer Guide .
-- - dcbTargetOriginId - 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 - A complex type that specifies how
-- CloudFront handles query strings and cookies.
-- - dcbTrustedSigners - 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, see Serving Private Content through
-- CloudFront in the Amazon 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 - The protocol that viewers can use
-- to access the files in the origin specified by TargetOriginId
-- when a request matches the path pattern in PathPattern . You
-- can specify the following options: * allow-all : Viewers can
-- use HTTP or HTTPS. * redirect-to-https : If a viewer submits
-- an HTTP request, CloudFront returns an HTTP status code of 301 (Moved
-- Permanently) to the viewer along with the HTTPS URL. The viewer then
-- resubmits the request using the new URL. * https-only : If a
-- viewer sends an HTTP request, CloudFront returns an HTTP status code
-- of 403 (Forbidden). For more information about requiring the HTTPS
-- protocol, see Using an HTTPS Connection to Access Your Objects
-- in the Amazon CloudFront Developer Guide .
-- - dcbMinTTL - The minimum amount of time that you want
-- objects to stay in CloudFront caches before CloudFront forwards
-- another request to your origin to determine whether the object has
-- been updated. For more information, see Specifying How Long Objects
-- and Errors Stay in a CloudFront Edge Cache (Expiration) in the
-- Amazon Amazon CloudFront Developer Guide . You must specify
-- 0 for MinTTL if you configure CloudFront to forward
-- all headers to your origin (under Headers , if you specify
-- 1 for Quantity and * for Name
-- ).
--
defaultCacheBehavior :: Text -> ForwardedValues -> TrustedSigners -> ViewerProtocolPolicy -> Integer -> DefaultCacheBehavior
-- | Undocumented member.
dcbAllowedMethods :: Lens' DefaultCacheBehavior (Maybe AllowedMethods)
-- | Undocumented member.
dcbMaxTTL :: Lens' DefaultCacheBehavior (Maybe Integer)
-- | Whether you want CloudFront to automatically compress certain files
-- for this cache behavior. If so, specify true ; if not,
-- specify false . For more information, see Serving
-- Compressed Files in the Amazon CloudFront Developer Guide .
dcbCompress :: Lens' DefaultCacheBehavior (Maybe Bool)
-- | Indicates whether you want to distribute media files in the Microsoft
-- Smooth Streaming format using the origin that is associated with this
-- cache behavior. If so, specify true ; if not, specify
-- false . If you specify true for
-- SmoothStreaming , you can still distribute other content
-- using this cache behavior if the content matches the value of
-- PathPattern .
dcbSmoothStreaming :: Lens' DefaultCacheBehavior (Maybe Bool)
-- | The default amount of time that you want objects to stay in CloudFront
-- caches 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. For more information, see
-- Specifying How Long Objects and Errors Stay in a CloudFront Edge
-- Cache (Expiration) in the Amazon CloudFront Developer Guide
-- .
dcbDefaultTTL :: Lens' DefaultCacheBehavior (Maybe Integer)
-- | 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.
dcbTargetOriginId :: Lens' DefaultCacheBehavior Text
-- | A complex type that specifies how CloudFront handles query strings and
-- cookies.
dcbForwardedValues :: Lens' DefaultCacheBehavior ForwardedValues
-- | 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, see
-- Serving Private Content through CloudFront in the Amazon
-- 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.
dcbTrustedSigners :: Lens' DefaultCacheBehavior TrustedSigners
-- | The protocol that viewers can use to access the files in the origin
-- specified by TargetOriginId when a request matches the path
-- pattern in PathPattern . You can specify the following
-- options: * allow-all : Viewers can use HTTP or HTTPS. *
-- redirect-to-https : If a viewer submits an HTTP request,
-- CloudFront returns an HTTP status code of 301 (Moved Permanently) to
-- the viewer along with the HTTPS URL. The viewer then resubmits the
-- request using the new URL. * https-only : If a viewer sends
-- an HTTP request, CloudFront returns an HTTP status code of 403
-- (Forbidden). For more information about requiring the HTTPS protocol,
-- see Using an HTTPS Connection to Access Your Objects in the
-- Amazon CloudFront Developer Guide .
dcbViewerProtocolPolicy :: Lens' DefaultCacheBehavior ViewerProtocolPolicy
-- | The minimum amount of time that you want objects to stay in CloudFront
-- caches before CloudFront forwards another request to your origin to
-- determine whether the object has been updated. For more information,
-- see Specifying How Long Objects and Errors Stay in a CloudFront
-- Edge Cache (Expiration) in the Amazon Amazon CloudFront
-- Developer Guide . You must specify 0 for MinTTL
-- if you configure CloudFront to forward all headers to your origin
-- (under Headers , if you specify 1 for
-- Quantity and * for Name ).
dcbMinTTL :: Lens' DefaultCacheBehavior Integer
-- | The distribution's information.
--
-- See: distribution smart constructor.
data 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 - The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
-- - dARN - The ARN (Amazon Resource Name) for the distribution.
-- For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
-- - dStatus - This response element indicates the current
-- status of the distribution. When the status is Deployed , the
-- distribution's information is fully propagated to all CloudFront edge
-- locations.
-- - dLastModifiedTime - The date and time the distribution was
-- last modified.
-- - dInProgressInvalidationBatches - The number of invalidation
-- batches currently in progress.
-- - dDomainName - The domain name corresponding to the
-- distribution. For example: d604721fxaaqy9.cloudfront.net
-- .
-- - dActiveTrustedSigners - 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 - The current configuration information
-- for the distribution. Send a GET request to the
-- /CloudFront API version distribution IDconfig
-- resource.
--
distribution :: Text -> Text -> Text -> UTCTime -> Int -> Text -> ActiveTrustedSigners -> DistributionConfig -> Distribution
-- | The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
dId :: Lens' Distribution Text
-- | The ARN (Amazon Resource Name) for the distribution. For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
dARN :: Lens' Distribution Text
-- | This response element indicates the current status of the
-- distribution. When the status is Deployed , the
-- distribution's information is fully propagated to all CloudFront edge
-- locations.
dStatus :: Lens' Distribution Text
-- | The date and time the distribution was last modified.
dLastModifiedTime :: Lens' Distribution UTCTime
-- | The number of invalidation batches currently in progress.
dInProgressInvalidationBatches :: Lens' Distribution Int
-- | The domain name corresponding to the distribution. For example:
-- d604721fxaaqy9.cloudfront.net .
dDomainName :: Lens' Distribution Text
-- | 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.
dActiveTrustedSigners :: Lens' Distribution ActiveTrustedSigners
-- | The current configuration information for the distribution. Send a
-- GET request to the /CloudFront API version
-- distribution IDconfig resource.
dDistributionConfig :: Lens' Distribution DistributionConfig
-- | A distribution configuration.
--
-- See: distributionConfig smart constructor.
data 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:
--
--
-- - dcHTTPVersion - (Optional) Specify the maximum HTTP version
-- that you want viewers to use to communicate with CloudFront. The
-- default value for new web distributions is http2. Viewers that don't
-- support HTTP2 automatically use an earlier HTTP version. For
-- viewers and CloudFront to use HTTP2, viewers must support TLS 1.2
-- or later, and must support Server Name Identification (SNI). In
-- general, configuring CloudFront to communicate with viewers using
-- HTTP2 reduces latency. You can improve performance by optimizing
-- for HTTP2. For more information, do an Internet search for "http/2
-- optimization."
-- - dcAliases - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this distribution.
-- - dcDefaultRootObject - The object that you want CloudFront
-- to request from your origin (for example, index.html ) when a
-- viewer requests the root URL for your distribution
-- (http://www.example.com ) instead of an object in your
-- distribution
-- (http://www.example.com/product-description.html ).
-- Specifying a default root object avoids exposing the contents of your
-- distribution. Specify only the object name, for example,
-- index.html . Do not add a / before the object name.
-- 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. For more information about the default root object, see
-- Creating a Default Root Object in the Amazon CloudFront
-- Developer Guide .
-- - dcPriceClass - The price class that corresponds with the
-- maximum price that you want to pay for CloudFront service. If you
-- specify PriceClass_All , CloudFront responds to requests for
-- your objects from all CloudFront edge locations. If you specify a
-- price class other than PriceClass_All , CloudFront serves
-- your objects from the CloudFront edge location that has the lowest
-- latency among the edge locations in your price class. Viewers who are
-- in or near regions that are excluded from your specified price class
-- may encounter slower performance. For more information about price
-- classes, see Choosing the Price Class for a CloudFront
-- Distribution in the Amazon CloudFront Developer Guide . For
-- information about CloudFront pricing, including how price classes map
-- to CloudFront regions, see Amazon CloudFront Pricing .
-- - dcCustomErrorResponses - A complex type that controls the
-- following: * Whether CloudFront replaces HTTP status codes in the 4xx
-- and 5xx range with custom error messages before returning the response
-- to the viewer. * How long CloudFront caches HTTP status codes in the
-- 4xx and 5xx range. For more information about custom error pages, see
-- Customizing Error Responses in the Amazon CloudFront
-- Developer Guide .
-- - dcWebACLId - A unique identifier that specifies the AWS WAF
-- web ACL, if any, to associate with this distribution. AWS WAF is a web
-- application firewall that lets you monitor the HTTP and HTTPS requests
-- that are forwarded to CloudFront, and lets you control access to your
-- content. Based on conditions that you specify, such as the IP
-- addresses that requests originate from or the values of query strings,
-- CloudFront responds to requests either with the requested content or
-- with an HTTP 403 status code (Forbidden). You can also configure
-- CloudFront to return a custom error page when a request is blocked.
-- For more information about AWS WAF, see the AWS WAF Developer
-- Guide .
-- - dcViewerCertificate - Undocumented member.
-- - dcRestrictions - Undocumented member.
-- - dcLogging - A complex type that controls whether access
-- logs are written for the distribution. For more information about
-- logging, see Access Logs in the Amazon CloudFront Developer
-- Guide .
-- - dcCacheBehaviors - A complex type that contains zero or
-- more CacheBehavior elements.
-- - dcIsIPV6Enabled - If you want CloudFront to respond to IPv6
-- DNS requests with an IPv6 address for your distribution, specify
-- true . If you specify false , CloudFront responds to
-- IPv6 DNS requests with the DNS response code NOERROR and with
-- no IP addresses. This allows viewers to submit a second request, for
-- an IPv4 address for your distribution. In general, you should enable
-- IPv6 if you have users on IPv6 networks who want to access your
-- content. However, if you're using signed URLs or signed cookies to
-- restrict access to your content, and if you're using a custom policy
-- that includes the IpAddress parameter to restrict the IP
-- addresses that can access your content, do not enable IPv6. If you
-- want to restrict access to some content by IP address and not restrict
-- access to other content (or restrict access but not by IP address),
-- you can create two distributions. For more information, see
-- Creating a Signed URL Using a Custom Policy in the Amazon
-- CloudFront Developer Guide . If you're using an Amazon Route 53
-- alias resource record set to route traffic to your CloudFront
-- distribution, you need to create a second alias resource record set
-- when both of the following are true: * You enable IPv6 for the
-- distribution * You're using alternate domain names in the URLs for
-- your objects For more information, see Routing Traffic to an Amazon
-- CloudFront Web Distribution by Using Your Domain Name in the
-- Amazon Route 53 Developer Guide . If you created a CNAME
-- resource record set, either with Amazon Route 53 or with another DNS
-- service, you don't need to make any changes. A CNAME record will route
-- traffic to your distribution regardless of the IP address format of
-- the viewer request.
-- - dcCallerReference - A unique value (for example, a
-- date-time stamp) that ensures that the request can't be replayed. If
-- the value of CallerReference is new (regardless of the
-- content of the DistributionConfig object), CloudFront creates
-- a new distribution. If CallerReference is a value you already
-- sent in a previous request to create a distribution, and if the
-- content of the DistributionConfig is identical to the
-- original request (ignoring white space), CloudFront returns the same
-- the response that it returned to the original request. If
-- 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 - A complex type that contains information about
-- origins for this distribution.
-- - dcDefaultCacheBehavior - 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 - Any comments you want to include about the
-- distribution. If you don't want to specify a comment, include an empty
-- Comment element. To delete an existing comment, update the
-- distribution configuration and include an empty Comment
-- element. To add or change a comment, update the distribution
-- configuration and specify the new comment.
-- - dcEnabled - 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 and
-- Prefix , the values are automatically deleted.
--
distributionConfig :: Text -> Origins -> DefaultCacheBehavior -> Text -> Bool -> DistributionConfig
-- | (Optional) Specify the maximum HTTP version that you want viewers to
-- use to communicate with CloudFront. The default value for new web
-- distributions is http2. Viewers that don't support HTTP2
-- automatically use an earlier HTTP version. For viewers and CloudFront
-- to use HTTP2, viewers must support TLS 1.2 or later, and must
-- support Server Name Identification (SNI). In general, configuring
-- CloudFront to communicate with viewers using HTTP2 reduces latency.
-- You can improve performance by optimizing for HTTP2. For more
-- information, do an Internet search for "http/2 optimization."
dcHTTPVersion :: Lens' DistributionConfig (Maybe HTTPVersion)
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this distribution.
dcAliases :: Lens' DistributionConfig (Maybe Aliases)
-- | The object that you want CloudFront to request from your origin (for
-- example, index.html ) when a viewer requests the root URL for
-- your distribution (http://www.example.com ) instead of
-- an object in your distribution
-- (http://www.example.com/product-description.html ).
-- Specifying a default root object avoids exposing the contents of your
-- distribution. Specify only the object name, for example,
-- index.html . Do not add a / before the object name.
-- 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. For more information about the default root object, see
-- Creating a Default Root Object in the Amazon CloudFront
-- Developer Guide .
dcDefaultRootObject :: Lens' DistributionConfig (Maybe Text)
-- | The price class that corresponds with the maximum price that you want
-- to pay for CloudFront service. If you specify PriceClass_All
-- , CloudFront responds to requests for your objects from all CloudFront
-- edge locations. If you specify a price class other than
-- PriceClass_All , CloudFront serves your objects from the
-- CloudFront edge location that has the lowest latency among the edge
-- locations in your price class. Viewers who are in or near regions that
-- are excluded from your specified price class may encounter slower
-- performance. For more information about price classes, see Choosing
-- the Price Class for a CloudFront Distribution in the Amazon
-- CloudFront Developer Guide . For information about CloudFront
-- pricing, including how price classes map to CloudFront regions, see
-- Amazon CloudFront Pricing .
dcPriceClass :: Lens' DistributionConfig (Maybe PriceClass)
-- | A complex type that controls the following: * Whether CloudFront
-- replaces HTTP status codes in the 4xx and 5xx range with custom error
-- messages before returning the response to the viewer. * How long
-- CloudFront caches HTTP status codes in the 4xx and 5xx range. For more
-- information about custom error pages, see Customizing Error
-- Responses in the Amazon CloudFront Developer Guide .
dcCustomErrorResponses :: Lens' DistributionConfig (Maybe CustomErrorResponses)
-- | A unique identifier that specifies the AWS WAF web ACL, if any, to
-- associate with this distribution. AWS WAF is a web application
-- firewall that lets you monitor the HTTP and HTTPS requests that are
-- forwarded to CloudFront, and lets you control access to your content.
-- Based on conditions that you specify, such as the IP addresses that
-- requests originate from or the values of query strings, CloudFront
-- responds to requests either with the requested content or with an HTTP
-- 403 status code (Forbidden). You can also configure CloudFront to
-- return a custom error page when a request is blocked. For more
-- information about AWS WAF, see the AWS WAF Developer Guide .
dcWebACLId :: Lens' DistributionConfig (Maybe Text)
-- | Undocumented member.
dcViewerCertificate :: Lens' DistributionConfig (Maybe ViewerCertificate)
-- | Undocumented member.
dcRestrictions :: Lens' DistributionConfig (Maybe Restrictions)
-- | A complex type that controls whether access logs are written for the
-- distribution. For more information about logging, see Access
-- Logs in the Amazon CloudFront Developer Guide .
dcLogging :: Lens' DistributionConfig (Maybe LoggingConfig)
-- | A complex type that contains zero or more CacheBehavior
-- elements.
dcCacheBehaviors :: Lens' DistributionConfig (Maybe CacheBehaviors)
-- | If you want CloudFront to respond to IPv6 DNS requests with an IPv6
-- address for your distribution, specify true . If you specify
-- false , CloudFront responds to IPv6 DNS requests with the DNS
-- response code NOERROR and with no IP addresses. This allows
-- viewers to submit a second request, for an IPv4 address for your
-- distribution. In general, you should enable IPv6 if you have users on
-- IPv6 networks who want to access your content. However, if you're
-- using signed URLs or signed cookies to restrict access to your
-- content, and if you're using a custom policy that includes the
-- IpAddress parameter to restrict the IP addresses that can
-- access your content, do not enable IPv6. If you want to restrict
-- access to some content by IP address and not restrict access to other
-- content (or restrict access but not by IP address), you can create two
-- distributions. For more information, see Creating a Signed URL
-- Using a Custom Policy in the Amazon CloudFront Developer
-- Guide . If you're using an Amazon Route 53 alias resource record
-- set to route traffic to your CloudFront distribution, you need to
-- create a second alias resource record set when both of the following
-- are true: * You enable IPv6 for the distribution * You're using
-- alternate domain names in the URLs for your objects For more
-- information, see Routing Traffic to an Amazon CloudFront Web
-- Distribution by Using Your Domain Name in the Amazon Route 53
-- Developer Guide . If you created a CNAME resource record set,
-- either with Amazon Route 53 or with another DNS service, you don't
-- need to make any changes. A CNAME record will route traffic to your
-- distribution regardless of the IP address format of the viewer
-- request.
dcIsIPV6Enabled :: Lens' DistributionConfig (Maybe Bool)
-- | A unique value (for example, a date-time stamp) that ensures that the
-- request can't be replayed. If the value of CallerReference is
-- new (regardless of the content of the DistributionConfig
-- object), CloudFront creates a new distribution. If
-- CallerReference is a value you already sent in a previous
-- request to create a distribution, and if the content of the
-- DistributionConfig is identical to the original request
-- (ignoring white space), CloudFront returns the same the response that
-- it returned to the original request. If 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.
dcCallerReference :: Lens' DistributionConfig Text
-- | A complex type that contains information about origins for this
-- distribution.
dcOrigins :: Lens' DistributionConfig Origins
-- | 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.
dcDefaultCacheBehavior :: Lens' DistributionConfig DefaultCacheBehavior
-- | Any comments you want to include about the distribution. If you don't
-- want to specify a comment, include an empty Comment element.
-- To delete an existing comment, update the distribution configuration
-- and include an empty Comment element. To add or change a
-- comment, update the distribution configuration and specify the new
-- comment.
dcComment :: Lens' DistributionConfig Text
-- | 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 and Prefix , the values are automatically
-- deleted.
dcEnabled :: Lens' DistributionConfig Bool
-- | A distribution Configuration and a list of tags to be associated with
-- the distribution.
--
-- See: distributionConfigWithTags smart constructor.
data DistributionConfigWithTags
-- | Creates a value of DistributionConfigWithTags with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
distributionConfigWithTags :: DistributionConfig -> Tags -> DistributionConfigWithTags
-- | A distribution configuration.
dcwtDistributionConfig :: Lens' DistributionConfigWithTags DistributionConfig
-- | A complex type that contains zero or more Tag elements.
dcwtTags :: Lens' DistributionConfigWithTags Tags
-- | A distribution list.
--
-- See: distributionList smart constructor.
data DistributionList
-- | 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 - A complex type that contains one
-- DistributionSummary element for each distribution that was
-- created by the current AWS account.
-- - dlNextMarker - 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 - The value you provided for the Marker
-- request parameter.
-- - dlMaxItems - The value you provided for the
-- MaxItems request parameter.
-- - dlIsTruncated - 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 - The number of distributions that were created
-- by the current AWS account.
--
distributionList :: Text -> Int -> Bool -> Int -> DistributionList
-- | A complex type that contains one DistributionSummary element
-- for each distribution that was created by the current AWS account.
dlItems :: Lens' DistributionList [DistributionSummary]
-- | 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.
dlNextMarker :: Lens' DistributionList (Maybe Text)
-- | The value you provided for the Marker request parameter.
dlMarker :: Lens' DistributionList Text
-- | The value you provided for the MaxItems request parameter.
dlMaxItems :: Lens' DistributionList Int
-- | 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.
dlIsTruncated :: Lens' DistributionList Bool
-- | The number of distributions that were created by the current AWS
-- account.
dlQuantity :: Lens' DistributionList Int
-- | A summary of the information about a CloudFront distribution.
--
-- See: distributionSummary smart constructor.
data 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 - The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
-- - dsARN - The ARN (Amazon Resource Name) for the
-- distribution. For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
-- - dsStatus - The current status of the distribution. When the
-- status is Deployed , the distribution's information is
-- propagated to all CloudFront edge locations.
-- - dsLastModifiedTime - The date and time the distribution was
-- last modified.
-- - dsDomainName - The domain name that corresponds to the
-- distribution. For example: d604721fxaaqy9.cloudfront.net
-- .
-- - dsAliases - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this distribution.
-- - dsOrigins - A complex type that contains information about
-- origins for this distribution.
-- - dsDefaultCacheBehavior - 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 - A complex type that contains zero or
-- more CacheBehavior elements.
-- - dsCustomErrorResponses - A complex type that contains zero
-- or more CustomErrorResponses elements.
-- - dsComment - The comment originally specified when this
-- distribution was created.
-- - dsPriceClass - Undocumented member.
-- - dsEnabled - Whether the distribution is enabled to accept
-- user requests for content.
-- - dsViewerCertificate - Undocumented member.
-- - dsRestrictions - Undocumented member.
-- - dsWebACLId - The Web ACL Id (if any) associated with the
-- distribution.
-- - dsHTTPVersion - Specify the maximum HTTP version that you
-- want viewers to use to communicate with CloudFront. The default value
-- for new web distributions is http2 . Viewers that don't
-- support HTTP/2 will automatically use an earlier
-- version.
-- - dsIsIPV6Enabled - Whether CloudFront responds to IPv6 DNS
-- requests with an IPv6 address for your distribution.
--
distributionSummary :: Text -> Text -> Text -> UTCTime -> Text -> Aliases -> Origins -> DefaultCacheBehavior -> CacheBehaviors -> CustomErrorResponses -> Text -> PriceClass -> Bool -> ViewerCertificate -> Restrictions -> Text -> HTTPVersion -> Bool -> DistributionSummary
-- | The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
dsId :: Lens' DistributionSummary Text
-- | The ARN (Amazon Resource Name) for the distribution. For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
dsARN :: Lens' DistributionSummary Text
-- | The current status of the distribution. When the status is
-- Deployed , the distribution's information is propagated to
-- all CloudFront edge locations.
dsStatus :: Lens' DistributionSummary Text
-- | The date and time the distribution was last modified.
dsLastModifiedTime :: Lens' DistributionSummary UTCTime
-- | The domain name that corresponds to the distribution. For example:
-- d604721fxaaqy9.cloudfront.net .
dsDomainName :: Lens' DistributionSummary Text
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this distribution.
dsAliases :: Lens' DistributionSummary Aliases
-- | A complex type that contains information about origins for this
-- distribution.
dsOrigins :: Lens' DistributionSummary Origins
-- | 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.
dsDefaultCacheBehavior :: Lens' DistributionSummary DefaultCacheBehavior
-- | A complex type that contains zero or more CacheBehavior
-- elements.
dsCacheBehaviors :: Lens' DistributionSummary CacheBehaviors
-- | A complex type that contains zero or more
-- CustomErrorResponses elements.
dsCustomErrorResponses :: Lens' DistributionSummary CustomErrorResponses
-- | The comment originally specified when this distribution was created.
dsComment :: Lens' DistributionSummary Text
-- | Undocumented member.
dsPriceClass :: Lens' DistributionSummary PriceClass
-- | Whether the distribution is enabled to accept user requests for
-- content.
dsEnabled :: Lens' DistributionSummary Bool
-- | Undocumented member.
dsViewerCertificate :: Lens' DistributionSummary ViewerCertificate
-- | Undocumented member.
dsRestrictions :: Lens' DistributionSummary Restrictions
-- | The Web ACL Id (if any) associated with the distribution.
dsWebACLId :: Lens' DistributionSummary Text
-- | Specify the maximum HTTP version that you want viewers to use to
-- communicate with CloudFront. The default value for new web
-- distributions is http2 . Viewers that don't support
-- HTTP/2 will automatically use an earlier version.
dsHTTPVersion :: Lens' DistributionSummary HTTPVersion
-- | Whether CloudFront responds to IPv6 DNS requests with an IPv6 address
-- for your distribution.
dsIsIPV6Enabled :: Lens' DistributionSummary Bool
-- | A complex type that specifies how CloudFront handles query strings and
-- cookies.
--
-- See: forwardedValues smart constructor.
data ForwardedValues
-- | 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:
--
--
-- - fvQueryStringCacheKeys - A complex type that contains
-- information about the query string parameters that you want CloudFront
-- to use for caching for this cache behavior.
-- - fvHeaders - A complex type that specifies the
-- Headers , if any, that you want CloudFront to vary upon for
-- this cache behavior.
-- - fvQueryString - Indicates whether you want CloudFront to
-- forward query strings to the origin that is associated with this cache
-- behavior and cache based on the query string parameters. CloudFront
-- behavior depends on the value of QueryString and on the
-- values that you specify for QueryStringCacheKeys , if any: If
-- you specify true for QueryString and you don't specify any
-- values for QueryStringCacheKeys , CloudFront forwards all
-- query string parameters to the origin and caches based on all query
-- string parameters. Depending on how many query string parameters and
-- values you have, this can adversely affect performance because
-- CloudFront must forward more requests to the origin. If you specify
-- true for QueryString and you specify one or more values for
-- QueryStringCacheKeys , CloudFront forwards all query string
-- parameters to the origin, but it only caches based on the query string
-- parameters that you specify. If you specify false for
-- QueryString , CloudFront doesn't forward any query string
-- parameters to the origin, and doesn't cache based on query string
-- parameters. For more information, see Configuring CloudFront to
-- Cache Based on Query String Parameters in the Amazon CloudFront
-- Developer Guide .
-- - fvCookies - A complex type that specifies whether you want
-- CloudFront to forward cookies to the origin and, if so, which ones.
-- For more information about forwarding cookies to the origin, see
-- How CloudFront Forwards, Caches, and Logs Cookies in the
-- Amazon CloudFront Developer Guide .
--
forwardedValues :: Bool -> CookiePreference -> ForwardedValues
-- | A complex type that contains information about the query string
-- parameters that you want CloudFront to use for caching for this cache
-- behavior.
fvQueryStringCacheKeys :: Lens' ForwardedValues (Maybe QueryStringCacheKeys)
-- | A complex type that specifies the Headers , if any, that you
-- want CloudFront to vary upon for this cache behavior.
fvHeaders :: Lens' ForwardedValues (Maybe Headers)
-- | Indicates whether you want CloudFront to forward query strings to the
-- origin that is associated with this cache behavior and cache based on
-- the query string parameters. CloudFront behavior depends on the value
-- of QueryString and on the values that you specify for
-- QueryStringCacheKeys , if any: If you specify true for
-- QueryString and you don't specify any values for
-- QueryStringCacheKeys , CloudFront forwards all query string
-- parameters to the origin and caches based on all query string
-- parameters. Depending on how many query string parameters and values
-- you have, this can adversely affect performance because CloudFront
-- must forward more requests to the origin. If you specify true for
-- QueryString and you specify one or more values for
-- QueryStringCacheKeys , CloudFront forwards all query string
-- parameters to the origin, but it only caches based on the query string
-- parameters that you specify. If you specify false for
-- QueryString , CloudFront doesn't forward any query string
-- parameters to the origin, and doesn't cache based on query string
-- parameters. For more information, see Configuring CloudFront to
-- Cache Based on Query String Parameters in the Amazon CloudFront
-- Developer Guide .
fvQueryString :: Lens' ForwardedValues Bool
-- | A complex type that specifies whether you want CloudFront to forward
-- cookies to the origin and, if so, which ones. For more information
-- about forwarding cookies to the origin, see How CloudFront
-- Forwards, Caches, and Logs Cookies in the Amazon CloudFront
-- Developer Guide .
fvCookies :: Lens' ForwardedValues CookiePreference
-- | A complex type that controls the countries in which your content is
-- distributed. CloudFront determines the location of your users using
-- MaxMind GeoIP databases.
--
-- See: geoRestriction smart constructor.
data GeoRestriction
-- | 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 - 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 - 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 - 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
-- .
--
geoRestriction :: GeoRestrictionType -> Int -> GeoRestriction
-- | 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.
grItems :: Lens' GeoRestriction [Text]
-- | 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.
grRestrictionType :: Lens' GeoRestriction GeoRestrictionType
-- | 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 .
grQuantity :: Lens' GeoRestriction Int
-- | 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 specified object based on the header values in viewer
-- requests. 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 cache
-- your content based on values in the Product header.
-- CloudFront forwards the Product header to the origin and
-- caches the response from the origin once for each header value. For
-- more information about caching based on header values, see How
-- CloudFront Forwards and Caches Headers in the Amazon CloudFront
-- Developer Guide .
--
-- See: headers smart constructor.
data Headers
-- | Creates a value of Headers with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - hItems - A complex type that contains one 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 - The number of different headers that you want
-- CloudFront to forward to the origin for this cache behavior. You can
-- configure each cache behavior in a web distribution to do one of the
-- following: * Forward all headers to your origin : Specify
-- 1 for Quantity and * for Name .
-- Important: If you configure CloudFront to forward all headers
-- to your origin, CloudFront doesn't cache the objects associated with
-- this cache behavior. Instead, it sends every request to the origin. *
-- Forward a whitelist of headers you specify : Specify the number
-- of headers that you want to forward, and specify the header names in
-- Name elements. CloudFront caches your objects based on the
-- values in all of the specified headers. CloudFront also forwards the
-- headers that it forwards by default, but it caches your objects based
-- only on the headers that you specify. * Forward only the default
-- headers : Specify 0 for Quantity and omit
-- Items . In this configuration, CloudFront doesn't cache based
-- on the values in the request headers.
--
headers :: Int -> Headers
-- | A complex type that contains one 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 .
hItems :: Lens' Headers [Text]
-- | The number of different headers that you want CloudFront to forward to
-- the origin for this cache behavior. You can configure each cache
-- behavior in a web distribution to do one of the following: *
-- Forward all headers to your origin : Specify 1 for
-- Quantity and * for Name . Important:
-- If you configure CloudFront to forward all headers to your origin,
-- CloudFront doesn't cache the objects associated with this cache
-- behavior. Instead, it sends every request to the origin. * Forward
-- a whitelist of headers you specify : Specify the number of headers
-- that you want to forward, and specify the header names in
-- Name elements. CloudFront caches your objects based on the
-- values in all of the specified headers. CloudFront also forwards the
-- headers that it forwards by default, but it caches your objects based
-- only on the headers that you specify. * Forward only the default
-- headers : Specify 0 for Quantity and omit
-- Items . In this configuration, CloudFront doesn't cache based
-- on the values in the request headers.
hQuantity :: Lens' Headers Int
-- | An invalidation.
--
-- See: invalidation smart constructor.
data Invalidation
-- | 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 - The identifier for the invalidation request. For
-- example: IDFDVBD632BHDS5 .
-- - iStatus - The status of the invalidation request. When the
-- invalidation batch is finished, the status is Completed
-- .
-- - iCreateTime - The date and time the invalidation request
-- was first made.
-- - iInvalidationBatch - The current invalidation information
-- for the batch request.
--
invalidation :: Text -> Text -> UTCTime -> InvalidationBatch -> Invalidation
-- | The identifier for the invalidation request. For example:
-- IDFDVBD632BHDS5 .
iId :: Lens' Invalidation Text
-- | The status of the invalidation request. When the invalidation batch is
-- finished, the status is Completed .
iStatus :: Lens' Invalidation Text
-- | The date and time the invalidation request was first made.
iCreateTime :: Lens' Invalidation UTCTime
-- | The current invalidation information for the batch request.
iInvalidationBatch :: Lens' Invalidation InvalidationBatch
-- | An invalidation batch.
--
-- See: invalidationBatch smart constructor.
data InvalidationBatch
-- | 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 - A complex type that contains information about
-- the objects that you want to invalidate. For more information, see
-- Specifying the Objects to Invalidate in the Amazon
-- CloudFront Developer Guide .
-- - ibCallerReference - A value that you specify to uniquely
-- identify an invalidation request. CloudFront uses the value to prevent
-- you from accidentally resubmitting an identical request. Whenever you
-- create a new invalidation request, you must specify a new value for
-- CallerReference and change other values in the request as
-- applicable. One way to ensure that the value of
-- CallerReference is unique is to use a timestamp ,
-- for example, 20120301090000 . If you make a second
-- invalidation request with the same value for CallerReference
-- , and if the rest of the request is the same, CloudFront doesn't
-- create a new invalidation request. Instead, CloudFront returns
-- information about the invalidation request that you previously created
-- with the same CallerReference . If CallerReference
-- is a value you already sent in a previous invalidation batch request
-- but the content of any Path is different from the original
-- request, CloudFront returns an InvalidationBatchAlreadyExists
-- error.
--
invalidationBatch :: Paths -> Text -> InvalidationBatch
-- | A complex type that contains information about the objects that you
-- want to invalidate. For more information, see Specifying the
-- Objects to Invalidate in the Amazon CloudFront Developer
-- Guide .
ibPaths :: Lens' InvalidationBatch Paths
-- | A value that you specify to uniquely identify an invalidation request.
-- CloudFront uses the value to prevent you from accidentally
-- resubmitting an identical request. Whenever you create a new
-- invalidation request, you must specify a new value for
-- CallerReference and change other values in the request as
-- applicable. One way to ensure that the value of
-- CallerReference is unique is to use a timestamp ,
-- for example, 20120301090000 . If you make a second
-- invalidation request with the same value for CallerReference
-- , and if the rest of the request is the same, CloudFront doesn't
-- create a new invalidation request. Instead, CloudFront returns
-- information about the invalidation request that you previously created
-- with the same CallerReference . If CallerReference
-- is a value you already sent in a previous invalidation batch request
-- but the content of any Path is different from the original
-- request, CloudFront returns an InvalidationBatchAlreadyExists
-- error.
ibCallerReference :: Lens' InvalidationBatch Text
-- | The InvalidationList complex type describes the list of
-- invalidation objects. For more information about invalidation, see
-- Invalidating Objects (Web Distributions Only) in the Amazon
-- CloudFront Developer Guide .
--
-- See: invalidationList smart constructor.
data InvalidationList
-- | 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 - A complex type that contains one
-- InvalidationSummary element for each invalidation batch
-- created by the current AWS account.
-- - ilNextMarker - If IsTruncated is true ,
-- this element is present and contains the value that you can use for
-- the Marker request parameter to continue listing your
-- invalidation batches where they left off.
-- - ilMarker - The value that you provided for the
-- Marker request parameter.
-- - ilMaxItems - The value that you provided for the
-- MaxItems request parameter.
-- - ilIsTruncated - 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 - The number of invalidation batches that were
-- created by the current AWS account.
--
invalidationList :: Text -> Int -> Bool -> Int -> InvalidationList
-- | A complex type that contains one InvalidationSummary element
-- for each invalidation batch created by the current AWS account.
ilItems :: Lens' InvalidationList [InvalidationSummary]
-- | If IsTruncated is true , this element is present and
-- contains the value that you can use for the Marker request
-- parameter to continue listing your invalidation batches where they
-- left off.
ilNextMarker :: Lens' InvalidationList (Maybe Text)
-- | The value that you provided for the Marker request parameter.
ilMarker :: Lens' InvalidationList Text
-- | The value that you provided for the MaxItems request
-- parameter.
ilMaxItems :: Lens' InvalidationList Int
-- | 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.
ilIsTruncated :: Lens' InvalidationList Bool
-- | The number of invalidation batches that were created by the current
-- AWS account.
ilQuantity :: Lens' InvalidationList Int
-- | A summary of an invalidation request.
--
-- See: invalidationSummary smart constructor.
data InvalidationSummary
-- | 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:
--
--
-- - isId - The unique ID for an invalidation request.
-- - isCreateTime - Undocumented member.
-- - isStatus - The status of an invalidation request.
--
invalidationSummary :: Text -> UTCTime -> Text -> InvalidationSummary
-- | The unique ID for an invalidation request.
isId :: Lens' InvalidationSummary Text
-- | Undocumented member.
isCreateTime :: Lens' InvalidationSummary UTCTime
-- | The status of an invalidation request.
isStatus :: Lens' InvalidationSummary Text
-- | A complex type that lists the active CloudFront key pairs, if any,
-- that are associated with AwsAccountNumber .
--
-- For more information, see ActiveTrustedSigners .
--
-- See: keyPairIds smart constructor.
data 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 - A complex type that lists the active CloudFront
-- key pairs, if any, that are associated with AwsAccountNumber
-- . For more information, see ActiveTrustedSigners .
-- - kpiQuantity - The number of active CloudFront key pairs for
-- AwsAccountNumber . For more information, see
-- ActiveTrustedSigners .
--
keyPairIds :: Int -> KeyPairIds
-- | A complex type that lists the active CloudFront key pairs, if any,
-- that are associated with AwsAccountNumber . For more
-- information, see ActiveTrustedSigners .
kpiItems :: Lens' KeyPairIds [Text]
-- | The number of active CloudFront key pairs for
-- AwsAccountNumber . For more information, see
-- ActiveTrustedSigners .
kpiQuantity :: Lens' KeyPairIds Int
-- | A complex type that controls whether access logs are written for the
-- distribution.
--
-- See: loggingConfig smart constructor.
data LoggingConfig
-- | 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 - 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 - 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 - The Amazon S3 bucket to store the access logs
-- in, for example, myawslogbucket.s3.amazonaws.com .
-- - lcPrefix - 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.
--
loggingConfig :: Bool -> Bool -> Text -> Text -> LoggingConfig
-- | 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.
lcEnabled :: Lens' LoggingConfig Bool
-- | 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 .
lcIncludeCookies :: Lens' LoggingConfig Bool
-- | The Amazon S3 bucket to store the access logs in, for example,
-- myawslogbucket.s3.amazonaws.com .
lcBucket :: Lens' LoggingConfig Text
-- | 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.
lcPrefix :: Lens' LoggingConfig Text
-- | 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.
--
-- For the current limit on the number of origins that you can create for
-- a distribution, see Amazon CloudFront Limits in the AWS
-- General Reference .
--
-- See: origin smart constructor.
data Origin
-- | 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 - A complex type that contains names and
-- values for the custom headers that you want.
-- - oCustomOriginConfig - A complex type that contains
-- information about a custom origin. If the origin is an Amazon S3
-- bucket, use the S3OriginConfig element instead.
-- - oS3OriginConfig - A complex type that contains information
-- about the Amazon S3 origin. If the origin is a custom origin, use the
-- CustomOriginConfig element instead.
-- - oOriginPath - 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 , for
-- example, example.com/production . Do not include a /
-- at the end of the directory name. For example, suppose you've
-- specified the following values for your distribution: *
-- DomainName : An Amazon S3 bucket named myawsbucket .
-- * OriginPath : /production * CNAME :
-- example.com When a user enters
-- example.com/index.html in a browser, CloudFront sends a
-- request to Amazon S3 for
-- myawsbucketproductionindex.html . When a user enters
-- example.comacmeindex.html in a browser, CloudFront
-- sends a request to Amazon S3 for
-- myawsbucketproductionacme/index.html .
-- - oId - A unique identifier for the origin. The value of
-- Id must be unique within the distribution. When you specify
-- the value of TargetOriginId for the default cache behavior or
-- for another cache behavior, you indicate the origin to which you want
-- the cache behavior to route requests by specifying the value of the
-- Id element for that origin. When a request matches the path
-- pattern for that cache behavior, CloudFront routes the request to the
-- specified origin. For more information, see Cache Behavior
-- Settings in the Amazon CloudFront Developer Guide .
-- - oDomainName - 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 .
-- Constraints for Amazon S3 origins: * If you configured Amazon S3
-- Transfer Acceleration for your bucket, do not specify the
-- s3-accelerate endpoint for DomainName . * The bucket
-- name must be between 3 and 63 characters long (inclusive). * The
-- bucket name must contain only lowercase characters, numbers, periods,
-- underscores, and dashes. * The bucket name must not contain adjacent
-- periods. 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 . Constraints for custom
-- origins: * DomainName must be a valid DNS name that contains
-- only a-z, A-Z, 0-9, dot (.), hyphen (-), or underscore (_) characters.
-- * The name cannot exceed 128 characters.
--
origin :: Text -> Text -> Origin
-- | A complex type that contains names and values for the custom headers
-- that you want.
oCustomHeaders :: Lens' Origin (Maybe CustomHeaders)
-- | A complex type that contains information about a custom origin. If the
-- origin is an Amazon S3 bucket, use the S3OriginConfig element
-- instead.
oCustomOriginConfig :: Lens' Origin (Maybe CustomOriginConfig)
-- | A complex type that contains information about the Amazon S3 origin.
-- If the origin is a custom origin, use the CustomOriginConfig
-- element instead.
oS3OriginConfig :: Lens' Origin (Maybe S3OriginConfig)
-- | 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 , for example,
-- example.com/production . Do not include a / at the
-- end of the directory name. For example, suppose you've specified the
-- following values for your distribution: * DomainName : An
-- Amazon S3 bucket named myawsbucket . * OriginPath :
-- /production * CNAME : example.com When a
-- user enters example.com/index.html in a browser, CloudFront
-- sends a request to Amazon S3 for
-- myawsbucketproductionindex.html . When a user enters
-- example.comacmeindex.html in a browser, CloudFront
-- sends a request to Amazon S3 for
-- myawsbucketproductionacme/index.html .
oOriginPath :: Lens' Origin (Maybe Text)
-- | A unique identifier for the origin. The value of Id must be
-- unique within the distribution. When you specify the value of
-- TargetOriginId for the default cache behavior or for another
-- cache behavior, you indicate the origin to which you want the cache
-- behavior to route requests by specifying the value of the Id
-- element for that origin. When a request matches the path pattern for
-- that cache behavior, CloudFront routes the request to the specified
-- origin. For more information, see Cache Behavior Settings in
-- the Amazon CloudFront Developer Guide .
oId :: Lens' Origin Text
-- | 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 . Constraints for Amazon S3
-- origins: * If you configured Amazon S3 Transfer Acceleration for your
-- bucket, do not specify the s3-accelerate endpoint for
-- DomainName . * The bucket name must be between 3 and 63
-- characters long (inclusive). * The bucket name must contain only
-- lowercase characters, numbers, periods, underscores, and dashes. * The
-- bucket name must not contain adjacent periods. 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
-- . Constraints for custom origins: * DomainName must be a
-- valid DNS name that contains only a-z, A-Z, 0-9, dot (.), hyphen (-),
-- or underscore (_) characters. * The name cannot exceed 128 characters.
oDomainName :: Lens' Origin Text
-- | A complex type that contains HeaderName and
-- HeaderValue elements, if any, for this distribution.
--
-- See: originCustomHeader smart constructor.
data OriginCustomHeader
-- | 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:
--
--
originCustomHeader :: Text -> Text -> OriginCustomHeader
-- | The name of a header that you want CloudFront to forward to your
-- origin. For more information, see Forwarding Custom Headers to Your
-- Origin (Web Distributions Only) in the Amazon Amazon CloudFront
-- Developer Guide .
ochHeaderName :: Lens' OriginCustomHeader Text
-- | The value for the header that you specified in the HeaderName
-- field.
ochHeaderValue :: Lens' OriginCustomHeader Text
-- | A complex type that contains information about the SSL/TLS protocols
-- that CloudFront can use when establishing an HTTPS connection with
-- your origin.
--
-- See: originSSLProtocols smart constructor.
data OriginSSLProtocols
-- | 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 - The number of SSL/TLS protocols that you want
-- to allow CloudFront to use when establishing an HTTPS connection with
-- this origin.
-- - ospItems - A list that contains allowed SSL/TLS protocols
-- for this distribution.
--
originSSLProtocols :: Int -> OriginSSLProtocols
-- | The number of SSL/TLS protocols that you want to allow CloudFront to
-- use when establishing an HTTPS connection with this origin.
ospQuantity :: Lens' OriginSSLProtocols Int
-- | A list that contains allowed SSL/TLS protocols for this distribution.
ospItems :: Lens' OriginSSLProtocols [SSLProtocol]
-- | A complex type that contains information about origins for this
-- distribution.
--
-- See: origins smart constructor.
data Origins
-- | Creates a value of Origins with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - oItems - A complex type that contains origins for this
-- distribution.
-- - oQuantity - The number of origins for this
-- distribution.
--
origins :: Int -> Origins
-- | A complex type that contains origins for this distribution.
oItems :: Lens' Origins (Maybe (NonEmpty Origin))
-- | The number of origins for this distribution.
oQuantity :: Lens' Origins Int
-- | A complex type that contains information about the objects that you
-- want to invalidate. For more information, see Specifying the
-- Objects to Invalidate in the Amazon CloudFront Developer
-- Guide .
--
-- See: paths smart constructor.
data Paths
-- | Creates a value of Paths with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - pItems - A complex type that contains a list of the paths
-- that you want to invalidate.
-- - pQuantity - The number of objects that you want to
-- invalidate.
--
paths :: Int -> Paths
-- | A complex type that contains a list of the paths that you want to
-- invalidate.
pItems :: Lens' Paths [Text]
-- | The number of objects that you want to invalidate.
pQuantity :: Lens' Paths Int
-- | See: queryStringCacheKeys smart constructor.
data QueryStringCacheKeys
-- | Creates a value of QueryStringCacheKeys with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - qsckItems - (Optional) A list that contains the query
-- string parameters that you want CloudFront to use as a basis for
-- caching for this cache behavior. If Quantity is 0, you can
-- omit Items .
-- - qsckQuantity - The number of whitelisted query
-- string parameters for this cache behavior.
--
queryStringCacheKeys :: Int -> QueryStringCacheKeys
-- | (Optional) A list that contains the query string parameters that you
-- want CloudFront to use as a basis for caching for this cache behavior.
-- If Quantity is 0, you can omit Items .
qsckItems :: Lens' QueryStringCacheKeys [Text]
-- | The number of whitelisted query string parameters for this
-- cache behavior.
qsckQuantity :: Lens' QueryStringCacheKeys Int
-- | A complex type that identifies ways in which you want to restrict
-- distribution of your content.
--
-- See: restrictions smart constructor.
data Restrictions
-- | 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:
--
--
restrictions :: GeoRestriction -> Restrictions
-- | Undocumented member.
rGeoRestriction :: Lens' Restrictions GeoRestriction
-- | 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.
data S3Origin
-- | 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:
--
--
-- - soDomainName - The DNS name of the Amazon S3 origin.
-- - soOriginAccessIdentity - The CloudFront origin access
-- identity to associate with the RTMP distribution. Use an origin access
-- identity to configure the distribution 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. For more information, see Using an
-- Origin Access Identity to Restrict Access to Your Amazon S3
-- Content in the Amazon Amazon CloudFront Developer Guide
-- .
--
s3Origin :: Text -> Text -> S3Origin
-- | The DNS name of the Amazon S3 origin.
soDomainName :: Lens' S3Origin Text
-- | The CloudFront origin access identity to associate with the RTMP
-- distribution. Use an origin access identity to configure the
-- distribution 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.
-- For more information, see Using an Origin Access Identity to
-- Restrict Access to Your Amazon S3 Content in the Amazon Amazon
-- CloudFront Developer Guide .
soOriginAccessIdentity :: Lens' S3Origin Text
-- | 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.
data S3OriginConfig
-- | 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 - The CloudFront origin access
-- identity to associate with the origin. Use an origin access identity
-- to configure the origin so that viewers can only access objects
-- in an Amazon S3 bucket through CloudFront. The format of the value is:
-- origin-access-identityCloudFrontID-of-origin-access-identity
-- where ID-of-origin-access-identity is the value that
-- CloudFront returned in the ID element when you created the
-- origin access identity. If you want viewers 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.
-- For more information about the origin access identity, see Serving
-- Private Content through CloudFront in the Amazon CloudFront
-- Developer Guide .
--
s3OriginConfig :: Text -> S3OriginConfig
-- | The CloudFront origin access identity to associate with the origin.
-- Use an origin access identity to configure the origin so that viewers
-- can only access objects in an Amazon S3 bucket through
-- CloudFront. The format of the value is:
-- origin-access-identityCloudFrontID-of-origin-access-identity
-- where ID-of-origin-access-identity is the value that
-- CloudFront returned in the ID element when you created the
-- origin access identity. If you want viewers 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.
-- For more information about the origin access identity, see Serving
-- Private Content through CloudFront in the Amazon CloudFront
-- Developer Guide .
socOriginAccessIdentity :: Lens' S3OriginConfig Text
-- | 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.
data Signer
-- | 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 - An AWS account that is included in the
-- TrustedSigners complex type for this RTMP distribution. Valid
-- values include: * self , which is the AWS account used to
-- create the distribution. * An AWS account number.
-- - sKeyPairIds - A complex type that lists the active
-- CloudFront key pairs, if any, that are associated with
-- AwsAccountNumber .
--
signer :: Signer
-- | An AWS account that is included in the TrustedSigners complex
-- type for this RTMP distribution. Valid values include: * self
-- , which is the AWS account used to create the distribution. * An AWS
-- account number.
sAWSAccountNumber :: Lens' Signer (Maybe Text)
-- | A complex type that lists the active CloudFront key pairs, if any,
-- that are associated with AwsAccountNumber .
sKeyPairIds :: Lens' Signer (Maybe KeyPairIds)
-- | A streaming distribution.
--
-- See: streamingDistribution smart constructor.
data StreamingDistribution
-- | 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 - The date and time that the
-- distribution was last modified.
-- - sdId - The identifier for the RTMP distribution. For
-- example: EGTXBD79EXAMPLE .
-- - sdARN - Undocumented member.
-- - sdStatus - The current status of the RTMP distribution.
-- When the status is Deployed , the distribution's information
-- is propagated to all CloudFront edge locations.
-- - sdDomainName - The domain name that corresponds to the
-- streaming distribution. For example:
-- s5c39gqb8ow64r.cloudfront.net .
-- - sdActiveTrustedSigners - A complex type that lists the AWS
-- accounts, if any, that you included in the TrustedSigners
-- complex type for this distribution. These are the accounts that you
-- want to allow to create signed URLs for private content. The
-- Signer complex type lists the AWS account number of the
-- trusted signer or self if the signer is the AWS account that
-- created the distribution. The Signer element also includes
-- the IDs of any active CloudFront key pairs that are associated with
-- the trusted signer's AWS account. If no KeyPairId element
-- appears for a Signer , that signer can't create signed URLs.
-- For more information, see Serving Private Content through
-- CloudFront in the Amazon CloudFront Developer Guide .
-- - sdStreamingDistributionConfig - The current configuration
-- information for the RTMP distribution.
--
streamingDistribution :: Text -> Text -> Text -> Text -> ActiveTrustedSigners -> StreamingDistributionConfig -> StreamingDistribution
-- | The date and time that the distribution was last modified.
sdLastModifiedTime :: Lens' StreamingDistribution (Maybe UTCTime)
-- | The identifier for the RTMP distribution. For example:
-- EGTXBD79EXAMPLE .
sdId :: Lens' StreamingDistribution Text
-- | Undocumented member.
sdARN :: Lens' StreamingDistribution Text
-- | The current status of the RTMP distribution. When the status is
-- Deployed , the distribution's information is propagated to
-- all CloudFront edge locations.
sdStatus :: Lens' StreamingDistribution Text
-- | The domain name that corresponds to the streaming distribution. For
-- example: s5c39gqb8ow64r.cloudfront.net .
sdDomainName :: Lens' StreamingDistribution Text
-- | A complex type that lists the AWS accounts, if any, that you included
-- in the TrustedSigners complex type for this distribution.
-- These are the accounts that you want to allow to create signed URLs
-- for private content. The Signer complex type lists the AWS
-- account number of the trusted signer or self if the signer is
-- the AWS account that created the distribution. The Signer
-- element also includes the IDs of any active CloudFront key pairs that
-- are associated with the trusted signer's AWS account. If no
-- KeyPairId element appears for a Signer , that signer
-- can't create signed URLs. For more information, see Serving Private
-- Content through CloudFront in the Amazon CloudFront Developer
-- Guide .
sdActiveTrustedSigners :: Lens' StreamingDistribution ActiveTrustedSigners
-- | The current configuration information for the RTMP distribution.
sdStreamingDistributionConfig :: Lens' StreamingDistribution StreamingDistributionConfig
-- | The RTMP distribution's configuration information.
--
-- See: streamingDistributionConfig smart constructor.
data 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 - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this streaming
-- distribution.
-- - sdcPriceClass - A complex type that contains information
-- about price class for this streaming distribution.
-- - sdcLogging - A complex type that controls whether access
-- logs are written for the streaming distribution.
-- - sdcCallerReference - A unique number that ensures that 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 that 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 that 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 - A complex type that contains information
-- about the Amazon S3 bucket from which you want CloudFront to get your
-- media files for distribution.
-- - sdcComment - Any comments you want to include about the
-- streaming distribution.
-- - sdcTrustedSigners - A complex type that specifies any AWS
-- accounts that you want to permit to create signed URLs for private
-- content. If you want the distribution to use signed URLs, include this
-- element; if you want the distribution to use public URLs, remove this
-- element. For more information, see Serving Private Content through
-- CloudFront in the Amazon CloudFront Developer Guide .
-- - sdcEnabled - Whether the streaming distribution is enabled
-- to accept user requests for content.
--
streamingDistributionConfig :: Text -> S3Origin -> Text -> TrustedSigners -> Bool -> StreamingDistributionConfig
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this streaming distribution.
sdcAliases :: Lens' StreamingDistributionConfig (Maybe Aliases)
-- | A complex type that contains information about price class for this
-- streaming distribution.
sdcPriceClass :: Lens' StreamingDistributionConfig (Maybe PriceClass)
-- | A complex type that controls whether access logs are written for the
-- streaming distribution.
sdcLogging :: Lens' StreamingDistributionConfig (Maybe StreamingLoggingConfig)
-- | A unique number that ensures that 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
-- that 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 that 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.
sdcCallerReference :: Lens' StreamingDistributionConfig Text
-- | A complex type that contains information about the Amazon S3 bucket
-- from which you want CloudFront to get your media files for
-- distribution.
sdcS3Origin :: Lens' StreamingDistributionConfig S3Origin
-- | Any comments you want to include about the streaming distribution.
sdcComment :: Lens' StreamingDistributionConfig Text
-- | A complex type that specifies any AWS accounts that you want to permit
-- to create signed URLs for private content. If you want the
-- distribution to use signed URLs, include this element; if you want the
-- distribution to use public URLs, remove this element. For more
-- information, see Serving Private Content through CloudFront in
-- the Amazon CloudFront Developer Guide .
sdcTrustedSigners :: Lens' StreamingDistributionConfig TrustedSigners
-- | Whether the streaming distribution is enabled to accept user requests
-- for content.
sdcEnabled :: Lens' StreamingDistributionConfig Bool
-- | A streaming distribution Configuration and a list of tags to be
-- associated with the streaming distribution.
--
-- See: streamingDistributionConfigWithTags smart
-- constructor.
data StreamingDistributionConfigWithTags
-- | Creates a value of StreamingDistributionConfigWithTags with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
streamingDistributionConfigWithTags :: StreamingDistributionConfig -> Tags -> StreamingDistributionConfigWithTags
-- | A streaming distribution Configuration.
sdcwtStreamingDistributionConfig :: Lens' StreamingDistributionConfigWithTags StreamingDistributionConfig
-- | A complex type that contains zero or more Tag elements.
sdcwtTags :: Lens' StreamingDistributionConfigWithTags Tags
-- | A streaming distribution list.
--
-- See: streamingDistributionList smart constructor.
data StreamingDistributionList
-- | 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 - A complex type that contains one
-- StreamingDistributionSummary element for each distribution
-- that was created by the current AWS account.
-- - sdlNextMarker - If IsTruncated is true ,
-- this element is present and contains the value you can use for the
-- Marker request parameter to continue listing your RTMP
-- distributions where they left off.
-- - sdlMarker - The value you provided for the Marker
-- request parameter.
-- - sdlMaxItems - The value you provided for the
-- MaxItems request parameter.
-- - sdlIsTruncated - 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 - The number of streaming distributions that
-- were created by the current AWS account.
--
streamingDistributionList :: Text -> Int -> Bool -> Int -> StreamingDistributionList
-- | A complex type that contains one StreamingDistributionSummary
-- element for each distribution that was created by the current AWS
-- account.
sdlItems :: Lens' StreamingDistributionList [StreamingDistributionSummary]
-- | If IsTruncated is true , this element is present and
-- contains the value you can use for the Marker request
-- parameter to continue listing your RTMP distributions where they left
-- off.
sdlNextMarker :: Lens' StreamingDistributionList (Maybe Text)
-- | The value you provided for the Marker request parameter.
sdlMarker :: Lens' StreamingDistributionList Text
-- | The value you provided for the MaxItems request parameter.
sdlMaxItems :: Lens' StreamingDistributionList Int
-- | 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.
sdlIsTruncated :: Lens' StreamingDistributionList Bool
-- | The number of streaming distributions that were created by the current
-- AWS account.
sdlQuantity :: Lens' StreamingDistributionList Int
-- | A summary of the information for an Amazon CloudFront streaming
-- distribution.
--
-- See: streamingDistributionSummary smart constructor.
data 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 - The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
-- - sdsARN - The ARN (Amazon Resource Name) for the streaming
-- distribution. For example:
-- arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
-- - sdsStatus - 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 - The date and time the distribution
-- was last modified.
-- - sdsDomainName - The domain name corresponding to the
-- distribution. For example: d604721fxaaqy9.cloudfront.net
-- .
-- - sdsS3Origin - A complex type that contains information
-- about the Amazon S3 bucket from which you want CloudFront to get your
-- media files for distribution.
-- - sdsAliases - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this streaming
-- distribution.
-- - sdsTrustedSigners - 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
-- .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 - The comment originally specified when this
-- distribution was created.
-- - sdsPriceClass - Undocumented member.
-- - sdsEnabled - Whether the distribution is enabled to accept
-- end user requests for content.
--
streamingDistributionSummary :: Text -> Text -> Text -> UTCTime -> Text -> S3Origin -> Aliases -> TrustedSigners -> Text -> PriceClass -> Bool -> StreamingDistributionSummary
-- | The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
sdsId :: Lens' StreamingDistributionSummary Text
-- | The ARN (Amazon Resource Name) for the streaming distribution. For
-- example:
-- arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
sdsARN :: Lens' StreamingDistributionSummary Text
-- | Indicates the current status of the distribution. When the status is
-- Deployed , the distribution's information is fully propagated
-- throughout the Amazon CloudFront system.
sdsStatus :: Lens' StreamingDistributionSummary Text
-- | The date and time the distribution was last modified.
sdsLastModifiedTime :: Lens' StreamingDistributionSummary UTCTime
-- | The domain name corresponding to the distribution. For example:
-- d604721fxaaqy9.cloudfront.net .
sdsDomainName :: Lens' StreamingDistributionSummary Text
-- | A complex type that contains information about the Amazon S3 bucket
-- from which you want CloudFront to get your media files for
-- distribution.
sdsS3Origin :: Lens' StreamingDistributionSummary S3Origin
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this streaming distribution.
sdsAliases :: Lens' StreamingDistributionSummary Aliases
-- | 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 .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.
sdsTrustedSigners :: Lens' StreamingDistributionSummary TrustedSigners
-- | The comment originally specified when this distribution was created.
sdsComment :: Lens' StreamingDistributionSummary Text
-- | Undocumented member.
sdsPriceClass :: Lens' StreamingDistributionSummary PriceClass
-- | Whether the distribution is enabled to accept end user requests for
-- content.
sdsEnabled :: Lens' StreamingDistributionSummary Bool
-- | A complex type that controls whether access logs are written for this
-- streaming distribution.
--
-- See: streamingLoggingConfig smart constructor.
data StreamingLoggingConfig
-- | 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 - 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 - The Amazon S3 bucket to store the access logs
-- in, for example, myawslogbucket.s3.amazonaws.com .
-- - slcPrefix - 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.
--
streamingLoggingConfig :: Bool -> Text -> Text -> StreamingLoggingConfig
-- | 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.
slcEnabled :: Lens' StreamingLoggingConfig Bool
-- | The Amazon S3 bucket to store the access logs in, for example,
-- myawslogbucket.s3.amazonaws.com .
slcBucket :: Lens' StreamingLoggingConfig Text
-- | 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.
slcPrefix :: Lens' StreamingLoggingConfig Text
-- | A complex type that contains Tag key and Tag value.
--
-- See: tag smart constructor.
data Tag
-- | Creates a value of Tag with the minimum fields required to make
-- a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - tagValue - A string that contains an optional Tag
-- value. The string length should be between 0 and 256 characters. Valid
-- characters include a-z , A-Z , 0-9 , space,
-- and the special characters _ - . : / = + @ .
-- - tagKey - A string that contains Tag key. The
-- string length should be between 1 and 128 characters. Valid characters
-- include a-z , A-Z , 0-9 , space, and the
-- special characters _ - . : / = + @ .
--
tag :: Text -> Tag
-- | A string that contains an optional Tag value. The string
-- length should be between 0 and 256 characters. Valid characters
-- include a-z , A-Z , 0-9 , space, and the
-- special characters _ - . : / = + @ .
tagValue :: Lens' Tag (Maybe Text)
-- | A string that contains Tag key. The string length should be
-- between 1 and 128 characters. Valid characters include a-z ,
-- A-Z , 0-9 , space, and the special characters _
-- - . : / = + @ .
tagKey :: Lens' Tag Text
-- | A complex type that contains zero or more Tag elements.
--
-- See: tagKeys smart constructor.
data TagKeys
-- | Creates a value of TagKeys with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - tkItems - A complex type that contains Tag key
-- elements.
--
tagKeys :: TagKeys
-- | A complex type that contains Tag key elements.
tkItems :: Lens' TagKeys [Text]
-- | A complex type that contains zero or more Tag elements.
--
-- See: tags smart constructor.
data Tags
-- | Creates a value of Tags with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - tItems - A complex type that contains Tag
-- elements.
--
tags :: Tags
-- | A complex type that contains Tag elements.
tItems :: Lens' Tags [Tag]
-- | 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, see Serving Private Content through CloudFront in
-- the Amazon 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.
--
-- For more information about updating the distribution configuration,
-- see DistributionConfig .
--
-- See: trustedSigners smart constructor.
data TrustedSigners
-- | 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 - Optional : A complex type that contains
-- trusted signers for this cache behavior. If Quantity is
-- 0 , you can omit Items .
-- - tsEnabled - Specifies whether you want to require viewers
-- to use signed URLs to access the files specified by
-- PathPattern and TargetOriginId .
-- - tsQuantity - The number of trusted signers for this cache
-- behavior.
--
trustedSigners :: Bool -> Int -> TrustedSigners
-- | Optional : A complex type that contains trusted signers for
-- this cache behavior. If Quantity is 0 , you can omit
-- Items .
tsItems :: Lens' TrustedSigners [Text]
-- | Specifies whether you want to require viewers to use signed URLs to
-- access the files specified by PathPattern and
-- TargetOriginId .
tsEnabled :: Lens' TrustedSigners Bool
-- | The number of trusted signers for this cache behavior.
tsQuantity :: Lens' TrustedSigners Int
-- | A complex type that specifies the following:
--
--
-- - Which SSL/TLS certificate to use when viewers request objects
-- using HTTPS
-- - Whether you want CloudFront to use dedicated IP addresses or SNI
-- when you're using alternate domain names in your object names
-- - The minimum protocol version that you want CloudFront to use when
-- communicating with viewers
--
--
-- For more information, see Using an HTTPS Connection to Access Your
-- Objects in the Amazon Amazon CloudFront Developer Guide .
--
-- See: viewerCertificate smart constructor.
data ViewerCertificate
-- | 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 - If you specify a value for
-- ACMCertificateArn or for IAMCertificateId , you must
-- also specify how you want CloudFront to serve HTTPS requests: using a
-- method that works for all clients or one that works for most clients:
-- * 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. * sni-only : CloudFront can
-- 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. If some of your users' browsers don't
-- support SNI, we recommend that you do one of the following: * Use the
-- vip option (dedicated IP addresses) instead of
-- sni-only . * Use the CloudFront SSLTLS certificate instead
-- of a custom certificate. This requires that you use the CloudFront
-- domain name of your distribution in the URLs for your objects, for
-- example, @https:d111111abcdef8.cloudfront.netlogo.png .
-- * If you can control which browser your users use, upgrade the browser
-- to one that supports SNI. * Use HTTP instead of HTTPS. Do not specify
-- a value for SSLSupportMethod if you specified
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate@
-- . For more information, see Using Alternate Domain Names and
-- HTTPS in the Amazon CloudFront Developer Guide .
-- - vcACMCertificateARN - 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 -
-- - vcMinimumProtocolVersion - Specify the minimum version of
-- the SSLTLS protocol that you want CloudFront to use for HTTPS
-- connections between viewers and CloudFront: SSLv3 or
-- TLSv1 . CloudFront serves your objects only to viewers that
-- support SSLTLS version that you specify and later versions. 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 . Note the following: * If
-- you specify
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate,
-- the minimum SSL protocol version is TLSv1 and can't be
-- changed. * If you're using a custom certificate (if you specify a
-- value for ACMCertificateArn or for IAMCertificateId
-- ) and if you're using SNI (if you specify sni-only for
-- SSLSupportMethod ), you must specify TLSv1 for
-- MinimumProtocolVersion .
-- - vcCertificate - Include one of these values to specify the
-- following: * Whether you want viewers to use HTTP or HTTPS to request
-- your objects. * If you want viewers to use HTTPS, whether you're using
-- an alternate domain name such as example.com or the CloudFront domain
-- name for your distribution, such as
-- d111111abcdef8.cloudfront.net . * If you're using an
-- alternate domain name, whether AWS Certificate Manager (ACM) provided
-- the certificate, or you purchased a certificate from a third-party
-- certificate authority and imported it into ACM or uploaded it to the
-- IAM certificate store. You must specify one (and only one) of the
-- three values. Do not specify false for
-- CloudFrontDefaultCertificate . If you want viewers to use
-- HTTP to request your objects : Specify the following value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- In addition, specify allow-all for
-- ViewerProtocolPolicy for all of your cache behaviors. If
-- you want viewers to use HTTPS to request your objects : Choose the
-- type of certificate that you want to use based on whether you're using
-- an alternate domain name for your objects or the CloudFront domain
-- name: * If you're using an alternate domain name, such as
-- example.com : Specify one of the following values, depending on
-- whether ACM provided your certificate or you purchased your
-- certificate from third-party certificate authority: *
-- ACMCertificateArnARN for ACM SSL/TLS
-- certificateACMCertificateArn where ARN for ACM SSLTLS
-- certificate is the ARN for the ACM SSLTLS certificate that you
-- want to use for this distribution. * IAMCertificateIdIAM
-- certificate IDIAMCertificateId where IAM certificate ID is
-- the ID that IAM returned when you added the certificate to the IAM
-- certificate store. If you specify ACMCertificateArn or
-- IAMCertificateId , you must also specify a value for
-- SSLSupportMethod . If you choose to use an ACM certificate or
-- a certificate in the IAM certificate store, we recommend that you use
-- only an alternate domain name in your object URLs
-- (https://example.com/logo.jpg ). If you use the domain
-- name that is associated with your CloudFront distribution
-- (https://d111111abcdef8.cloudfront.net/logo.jpg ) and
-- the viewer supports SNI , then CloudFront behaves normally.
-- However, if the browser does not support SNI, the user's experience
-- depends on the value that you choose for SSLSupportMethod : *
-- vip : The viewer displays a warning because there is a
-- mismatch between the CloudFront domain name and the domain name in
-- your SSLTLS certificate. * sni-only : CloudFront drops the
-- connection with the browser without returning the object. * If
-- you're using the CloudFront domain name for your distribution, such as
-- d111111abcdef8.cloudfront.net : Specify the following
-- value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- If you want viewers to use HTTPS, you must also specify one of
-- the following values in your cache behaviors: *
-- ViewerProtocolPolicyhttps-onlyViewerProtocolPolicy
-- *
-- ViewerProtocolPolicyredirect-to-httpsViewerProtocolPolicy
-- You can also optionally require that CloudFront use HTTPS to
-- communicate with your origin by specifying one of the following values
-- for the applicable origins: *
-- OriginProtocolPolicyhttps-onlyOriginProtocolPolicy
-- *
-- OriginProtocolPolicymatch-viewerOriginProtocolPolicy
-- For more information, see
-- <http:docs.aws.amazon.comAmazonCloudFrontlatestDeveloperGuideSecureConnections.html#CNAMEsAndHTTPS
-- Using Alternate Domain Names and HTTPS> in the Amazon
-- CloudFront Developer Guide/ .
-- - vcIAMCertificateId - 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 - 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 .
--
viewerCertificate :: ViewerCertificate
-- | If you specify a value for ACMCertificateArn or for
-- IAMCertificateId , you must also specify how you want
-- CloudFront to serve HTTPS requests: using a method that works for all
-- clients or one that works for most clients: * 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. * sni-only : CloudFront can 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. If some of your users' browsers don't support SNI, we
-- recommend that you do one of the following: * Use the vip
-- option (dedicated IP addresses) instead of sni-only . * Use
-- the CloudFront SSLTLS certificate instead of a custom certificate.
-- This requires that you use the CloudFront domain name of your
-- distribution in the URLs for your objects, for example,
-- @https:d111111abcdef8.cloudfront.netlogo.png . * If you
-- can control which browser your users use, upgrade the browser to one
-- that supports SNI. * Use HTTP instead of HTTPS. Do not specify a value
-- for SSLSupportMethod if you specified
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate@
-- . For more information, see Using Alternate Domain Names and
-- HTTPS in the Amazon CloudFront Developer Guide .
vcSSLSupportMethod :: Lens' ViewerCertificate (Maybe SSLSupportMethod)
-- | 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 .
vcACMCertificateARN :: Lens' ViewerCertificate (Maybe Text)
vcCertificateSource :: Lens' ViewerCertificate (Maybe CertificateSource)
-- | Specify the minimum version of the SSLTLS protocol that you want
-- CloudFront to use for HTTPS connections between viewers and
-- CloudFront: SSLv3 or TLSv1 . CloudFront serves your
-- objects only to viewers that support SSLTLS version that you
-- specify and later versions. 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
-- . Note the following: * If you specify
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate,
-- the minimum SSL protocol version is TLSv1 and can't be
-- changed. * If you're using a custom certificate (if you specify a
-- value for ACMCertificateArn or for IAMCertificateId
-- ) and if you're using SNI (if you specify sni-only for
-- SSLSupportMethod ), you must specify TLSv1 for
-- MinimumProtocolVersion .
vcMinimumProtocolVersion :: Lens' ViewerCertificate (Maybe MinimumProtocolVersion)
-- | Include one of these values to specify the following: * Whether you
-- want viewers to use HTTP or HTTPS to request your objects. * If you
-- want viewers to use HTTPS, whether you're using an alternate domain
-- name such as example.com or the CloudFront domain name for your
-- distribution, such as d111111abcdef8.cloudfront.net . * If
-- you're using an alternate domain name, whether AWS Certificate Manager
-- (ACM) provided the certificate, or you purchased a certificate from a
-- third-party certificate authority and imported it into ACM or uploaded
-- it to the IAM certificate store. You must specify one (and only one)
-- of the three values. Do not specify false for
-- CloudFrontDefaultCertificate . If you want viewers to use
-- HTTP to request your objects : Specify the following value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- In addition, specify allow-all for
-- ViewerProtocolPolicy for all of your cache behaviors. If
-- you want viewers to use HTTPS to request your objects : Choose the
-- type of certificate that you want to use based on whether you're using
-- an alternate domain name for your objects or the CloudFront domain
-- name: * If you're using an alternate domain name, such as
-- example.com : Specify one of the following values, depending on
-- whether ACM provided your certificate or you purchased your
-- certificate from third-party certificate authority: *
-- ACMCertificateArnARN for ACM SSL/TLS
-- certificateACMCertificateArn where ARN for ACM SSLTLS
-- certificate is the ARN for the ACM SSLTLS certificate that you
-- want to use for this distribution. * IAMCertificateIdIAM
-- certificate IDIAMCertificateId where IAM certificate ID is
-- the ID that IAM returned when you added the certificate to the IAM
-- certificate store. If you specify ACMCertificateArn or
-- IAMCertificateId , you must also specify a value for
-- SSLSupportMethod . If you choose to use an ACM certificate or
-- a certificate in the IAM certificate store, we recommend that you use
-- only an alternate domain name in your object URLs
-- (https://example.com/logo.jpg ). If you use the domain
-- name that is associated with your CloudFront distribution
-- (https://d111111abcdef8.cloudfront.net/logo.jpg ) and
-- the viewer supports SNI , then CloudFront behaves normally.
-- However, if the browser does not support SNI, the user's experience
-- depends on the value that you choose for SSLSupportMethod : *
-- vip : The viewer displays a warning because there is a
-- mismatch between the CloudFront domain name and the domain name in
-- your SSLTLS certificate. * sni-only : CloudFront drops the
-- connection with the browser without returning the object. * If
-- you're using the CloudFront domain name for your distribution, such as
-- d111111abcdef8.cloudfront.net : Specify the following
-- value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- If you want viewers to use HTTPS, you must also specify one of
-- the following values in your cache behaviors: *
-- ViewerProtocolPolicyhttps-onlyViewerProtocolPolicy
-- *
-- ViewerProtocolPolicyredirect-to-httpsViewerProtocolPolicy
-- You can also optionally require that CloudFront use HTTPS to
-- communicate with your origin by specifying one of the following values
-- for the applicable origins: *
-- OriginProtocolPolicyhttps-onlyOriginProtocolPolicy
-- *
-- OriginProtocolPolicymatch-viewerOriginProtocolPolicy
-- For more information, see
-- <http:docs.aws.amazon.comAmazonCloudFrontlatestDeveloperGuideSecureConnections.html#CNAMEsAndHTTPS
-- Using Alternate Domain Names and HTTPS> in the Amazon
-- CloudFront Developer Guide/ .
vcCertificate :: Lens' ViewerCertificate (Maybe Text)
-- | 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 .
vcIAMCertificateId :: Lens' ViewerCertificate (Maybe Text)
-- | 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 .
vcCloudFrontDefaultCertificate :: Lens' ViewerCertificate (Maybe Bool)
-- | List distributions.
--
-- This operation returns paginated results.
module Network.AWS.CloudFront.ListDistributions
-- | Creates a value of ListDistributions with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - ldMarker - Use this when paginating results to indicate
-- where to begin in your list of distributions. The results include
-- distributions in the list that occur after the marker. To get the next
-- page of results, set the Marker to the value of the
-- NextMarker from the current page's response (which is also
-- the ID of the last distribution on that page).
-- - ldMaxItems - The maximum number of distributions you want
-- in the response body.
--
listDistributions :: ListDistributions
-- | The request to list your distributions.
--
-- See: listDistributions smart constructor.
data ListDistributions
-- | Use this when paginating results to indicate where to begin in your
-- list of distributions. The results include distributions in the list
-- that occur after the marker. To get the next page of results, set the
-- Marker to the value of the NextMarker from the
-- current page's response (which is also the ID of the last distribution
-- on that page).
ldMarker :: Lens' ListDistributions (Maybe Text)
-- | The maximum number of distributions you want in the response body.
ldMaxItems :: Lens' ListDistributions (Maybe Text)
-- | Creates a value of ListDistributionsResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listDistributionsResponse :: Int -> DistributionList -> ListDistributionsResponse
-- | The returned result of the corresponding request.
--
-- See: listDistributionsResponse smart constructor.
data ListDistributionsResponse
-- |
-- - - | The response status code.
--
ldrsResponseStatus :: Lens' ListDistributionsResponse Int
-- | The DistributionList type.
ldrsDistributionList :: Lens' ListDistributionsResponse DistributionList
instance GHC.Generics.Generic Network.AWS.CloudFront.ListDistributions.ListDistributionsResponse
instance Data.Data.Data Network.AWS.CloudFront.ListDistributions.ListDistributionsResponse
instance GHC.Show.Show Network.AWS.CloudFront.ListDistributions.ListDistributionsResponse
instance GHC.Read.Read Network.AWS.CloudFront.ListDistributions.ListDistributionsResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.ListDistributions.ListDistributionsResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Data.Data.Data Network.AWS.CloudFront.ListDistributions.ListDistributions
instance GHC.Show.Show Network.AWS.CloudFront.ListDistributions.ListDistributions
instance GHC.Read.Read Network.AWS.CloudFront.ListDistributions.ListDistributions
instance GHC.Classes.Eq Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Network.AWS.Pager.AWSPager Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.ListDistributions.ListDistributions
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListDistributions.ListDistributionsResponse
-- | List the distributions that are associated with a specified AWS WAF
-- web ACL.
module Network.AWS.CloudFront.ListDistributionsByWebACLId
-- | Creates a value of ListDistributionsByWebACLId with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - ldbwaiMarker - Use Marker and MaxItems to
-- control pagination of results. If you have more than MaxItems
-- distributions that satisfy the request, the response includes a
-- NextMarker element. To get the next page of results, submit
-- another request. For the value of Marker , specify the value
-- of NextMarker from the last response. (For the first request,
-- omit Marker .)
-- - ldbwaiMaxItems - The maximum number of distributions that
-- you want CloudFront to return in the response body. The maximum and
-- default values are both 100.
-- - ldbwaiWebACLId - The ID of the AWS WAF web ACL that you
-- want to list the associated distributions. If you specify "null" for
-- the ID, the request returns a list of the distributions that aren't
-- associated with a web ACL.
--
listDistributionsByWebACLId :: Text -> ListDistributionsByWebACLId
-- | The request to list distributions that are associated with a specified
-- AWS WAF web ACL.
--
-- See: listDistributionsByWebACLId smart constructor.
data ListDistributionsByWebACLId
-- | Use Marker and MaxItems to control pagination of
-- results. If you have more than MaxItems distributions that
-- satisfy the request, the response includes a NextMarker
-- element. To get the next page of results, submit another request. For
-- the value of Marker , specify the value of
-- NextMarker from the last response. (For the first request,
-- omit Marker .)
ldbwaiMarker :: Lens' ListDistributionsByWebACLId (Maybe Text)
-- | The maximum number of distributions that you want CloudFront to return
-- in the response body. The maximum and default values are both 100.
ldbwaiMaxItems :: Lens' ListDistributionsByWebACLId (Maybe Text)
-- | The ID of the AWS WAF web ACL that you want to list the associated
-- distributions. If you specify "null" for the ID, the request returns a
-- list of the distributions that aren't associated with a web ACL.
ldbwaiWebACLId :: Lens' ListDistributionsByWebACLId Text
-- | Creates a value of ListDistributionsByWebACLIdResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listDistributionsByWebACLIdResponse :: Int -> ListDistributionsByWebACLIdResponse
-- | The response to a request to list the distributions that are
-- associated with a specified AWS WAF web ACL.
--
-- See: listDistributionsByWebACLIdResponse smart
-- constructor.
data ListDistributionsByWebACLIdResponse
-- | The DistributionList type.
ldbwairsDistributionList :: Lens' ListDistributionsByWebACLIdResponse (Maybe DistributionList)
-- |
-- - - | The response status code.
--
ldbwairsResponseStatus :: Lens' ListDistributionsByWebACLIdResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLIdResponse
instance Data.Data.Data Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLIdResponse
instance GHC.Show.Show Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLIdResponse
instance GHC.Read.Read Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLIdResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLIdResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Data.Data.Data Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance GHC.Show.Show Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance GHC.Read.Read Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance GHC.Classes.Eq Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLId
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListDistributionsByWebACLId.ListDistributionsByWebACLIdResponse
-- | Remove tags from a CloudFront resource.
module Network.AWS.CloudFront.UntagResource
-- | Creates a value of UntagResource with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - urResource - An ARN of a CloudFront resource.
-- - urTagKeys - A complex type that contains zero or more
-- Tag key elements.
--
untagResource :: Text -> TagKeys -> UntagResource
-- | The request to remove tags from a CloudFront resource.
--
-- See: untagResource smart constructor.
data UntagResource
-- | An ARN of a CloudFront resource.
urResource :: Lens' UntagResource Text
-- | A complex type that contains zero or more Tag key elements.
urTagKeys :: Lens' UntagResource TagKeys
-- | Creates a value of UntagResourceResponse with the minimum
-- fields required to make a request.
untagResourceResponse :: UntagResourceResponse
-- | See: untagResourceResponse smart constructor.
data UntagResourceResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.UntagResource.UntagResourceResponse
instance Data.Data.Data Network.AWS.CloudFront.UntagResource.UntagResourceResponse
instance GHC.Show.Show Network.AWS.CloudFront.UntagResource.UntagResourceResponse
instance GHC.Read.Read Network.AWS.CloudFront.UntagResource.UntagResourceResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.UntagResource.UntagResourceResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.UntagResource.UntagResource
instance Data.Data.Data Network.AWS.CloudFront.UntagResource.UntagResource
instance GHC.Show.Show Network.AWS.CloudFront.UntagResource.UntagResource
instance GHC.Read.Read Network.AWS.CloudFront.UntagResource.UntagResource
instance GHC.Classes.Eq Network.AWS.CloudFront.UntagResource.UntagResource
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.UntagResource.UntagResource
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.UntagResource.UntagResource
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UntagResource.UntagResource
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.UntagResource.UntagResource
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.UntagResource.UntagResource
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.UntagResource.UntagResource
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.UntagResource.UntagResource
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UntagResource.UntagResourceResponse
-- | Delete a distribution.
module Network.AWS.CloudFront.DeleteDistribution
-- | Creates a value of DeleteDistribution with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - ddIfMatch - The value of the ETag header that you
-- received when you disabled the distribution. For example:
-- E2QWRUHAPOMQZL .
-- - ddId - The distribution ID.
--
deleteDistribution :: Text -> DeleteDistribution
-- | This action deletes a web distribution. To delete a web distribution
-- using the CloudFront API, perform the following steps.
--
-- To delete a web distribution using the CloudFront API:
--
--
-- - Disable the web distribution
-- - Submit a GET Distribution Config request to get the
-- current configuration and the Etag header for the
-- distribution.
-- - Update the XML document that was returned in the response to your
-- GET Distribution Config request to change the value of
-- Enabled to false .
-- - Submit a PUT Distribution Config request to update the
-- configuration for your distribution. In the request body, include the
-- XML document that you updated in Step 3. Set the value of the HTTP
-- If-Match header to the value of the ETag header that
-- CloudFront returned when you submitted the GET Distribution
-- Config request in Step 2.
-- - Review the response to the PUT Distribution Config
-- request to confirm that the distribution was successfully
-- disabled.
-- - Submit a GET Distribution request to confirm that your
-- changes have propagated. When propagation is complete, the value of
-- Status is Deployed .
-- - Submit a DELETE Distribution request. Set the value of
-- the HTTP If-Match header to the value of the ETag
-- header that CloudFront returned when you submitted the GET
-- Distribution Config request in Step 6.
-- - Review the response to your DELETE Distribution request
-- to confirm that the distribution was successfully deleted.
--
--
-- For information about deleting a distribution using the CloudFront
-- console, see Deleting a Distribution in the Amazon
-- CloudFront Developer Guide .
--
-- See: deleteDistribution smart constructor.
data DeleteDistribution
-- | The value of the ETag header that you received when you
-- disabled the distribution. For example: E2QWRUHAPOMQZL .
ddIfMatch :: Lens' DeleteDistribution (Maybe Text)
-- | The distribution ID.
ddId :: Lens' DeleteDistribution Text
-- | Creates a value of DeleteDistributionResponse with the minimum
-- fields required to make a request.
deleteDistributionResponse :: DeleteDistributionResponse
-- | See: deleteDistributionResponse smart constructor.
data DeleteDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.DeleteDistribution.DeleteDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.DeleteDistribution.DeleteDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.DeleteDistribution.DeleteDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.DeleteDistribution.DeleteDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.DeleteDistribution.DeleteDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Data.Data.Data Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance GHC.Show.Show Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance GHC.Read.Read Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.DeleteDistribution.DeleteDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.DeleteDistribution.DeleteDistributionResponse
-- | Update a distribution.
module Network.AWS.CloudFront.UpdateDistribution
-- | Creates a value of UpdateDistribution with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - udIfMatch - The value of the ETag header that you
-- received when retrieving the distribution's configuration. For
-- example: E2QWRUHAPOMQZL .
-- - udDistributionConfig - The distribution's configuration
-- information.
-- - udId - The distribution's id.
--
updateDistribution :: DistributionConfig -> Text -> UpdateDistribution
-- | The request to update a distribution.
--
-- See: updateDistribution smart constructor.
data UpdateDistribution
-- | The value of the ETag header that you received when
-- retrieving the distribution's configuration. For example:
-- E2QWRUHAPOMQZL .
udIfMatch :: Lens' UpdateDistribution (Maybe Text)
-- | The distribution's configuration information.
udDistributionConfig :: Lens' UpdateDistribution DistributionConfig
-- | The distribution's id.
udId :: Lens' UpdateDistribution Text
-- | Creates a value of UpdateDistributionResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
updateDistributionResponse :: Int -> UpdateDistributionResponse
-- | The returned result of the corresponding request.
--
-- See: updateDistributionResponse smart constructor.
data UpdateDistributionResponse
-- | The current version of the configuration. For example:
-- E2QWRUHAPOMQZL .
udrsETag :: Lens' UpdateDistributionResponse (Maybe Text)
-- | The distribution's information.
udrsDistribution :: Lens' UpdateDistributionResponse (Maybe Distribution)
-- |
-- - - | The response status code.
--
udrsResponseStatus :: Lens' UpdateDistributionResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.UpdateDistribution.UpdateDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.UpdateDistribution.UpdateDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.UpdateDistribution.UpdateDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.UpdateDistribution.UpdateDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.UpdateDistribution.UpdateDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Data.Data.Data Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance GHC.Show.Show Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance GHC.Read.Read Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.UpdateDistribution.UpdateDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UpdateDistribution.UpdateDistributionResponse
-- | Gets information about a specified RTMP distribution, including the
-- distribution configuration.
module Network.AWS.CloudFront.GetStreamingDistribution
-- | Creates a value of GetStreamingDistribution with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - gsdId - The streaming distribution's ID.
--
getStreamingDistribution :: Text -> GetStreamingDistribution
-- | The request to get a streaming distribution's information.
--
-- See: getStreamingDistribution smart constructor.
data GetStreamingDistribution
-- | The streaming distribution's ID.
gsdId :: Lens' GetStreamingDistribution Text
-- | Creates a value of GetStreamingDistributionResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getStreamingDistributionResponse :: Int -> GetStreamingDistributionResponse
-- | The returned result of the corresponding request.
--
-- See: getStreamingDistributionResponse smart constructor.
data GetStreamingDistributionResponse
-- | The current version of the streaming distribution's information. For
-- example: E2QWRUHAPOMQZL .
gsdrsETag :: Lens' GetStreamingDistributionResponse (Maybe Text)
-- | The streaming distribution's information.
gsdrsStreamingDistribution :: Lens' GetStreamingDistributionResponse (Maybe StreamingDistribution)
-- |
-- - - | The response status code.
--
gsdrsResponseStatus :: Lens' GetStreamingDistributionResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Data.Data.Data Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance GHC.Show.Show Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance GHC.Read.Read Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetStreamingDistribution.GetStreamingDistributionResponse
-- | Add tags to a CloudFront resource.
module Network.AWS.CloudFront.TagResource
-- | Creates a value of TagResource with the minimum fields required
-- to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - trResource - An ARN of a CloudFront resource.
-- - trTags - A complex type that contains zero or more
-- Tag elements.
--
tagResource :: Text -> Tags -> TagResource
-- | The request to add tags to a CloudFront resource.
--
-- See: tagResource smart constructor.
data TagResource
-- | An ARN of a CloudFront resource.
trResource :: Lens' TagResource Text
-- | A complex type that contains zero or more Tag elements.
trTags :: Lens' TagResource Tags
-- | Creates a value of TagResourceResponse with the minimum fields
-- required to make a request.
tagResourceResponse :: TagResourceResponse
-- | See: tagResourceResponse smart constructor.
data TagResourceResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.TagResource.TagResourceResponse
instance Data.Data.Data Network.AWS.CloudFront.TagResource.TagResourceResponse
instance GHC.Show.Show Network.AWS.CloudFront.TagResource.TagResourceResponse
instance GHC.Read.Read Network.AWS.CloudFront.TagResource.TagResourceResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.TagResource.TagResourceResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.TagResource.TagResource
instance Data.Data.Data Network.AWS.CloudFront.TagResource.TagResource
instance GHC.Show.Show Network.AWS.CloudFront.TagResource.TagResource
instance GHC.Read.Read Network.AWS.CloudFront.TagResource.TagResource
instance GHC.Classes.Eq Network.AWS.CloudFront.TagResource.TagResource
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.TagResource.TagResource
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.TagResource.TagResource
instance Control.DeepSeq.NFData Network.AWS.CloudFront.TagResource.TagResource
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.TagResource.TagResource
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.TagResource.TagResource
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.TagResource.TagResource
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.TagResource.TagResource
instance Control.DeepSeq.NFData Network.AWS.CloudFront.TagResource.TagResourceResponse
-- | Get the information about an origin access identity.
module Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity
-- | Creates a value of GetCloudFrontOriginAccessIdentity with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getCloudFrontOriginAccessIdentity :: Text -> GetCloudFrontOriginAccessIdentity
-- | The request to get an origin access identity's information.
--
-- See: getCloudFrontOriginAccessIdentity smart
-- constructor.
data GetCloudFrontOriginAccessIdentity
-- | The identity's ID.
gcfoaiId :: Lens' GetCloudFrontOriginAccessIdentity Text
-- | Creates a value of GetCloudFrontOriginAccessIdentityResponse
-- with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getCloudFrontOriginAccessIdentityResponse :: Int -> GetCloudFrontOriginAccessIdentityResponse
-- | The returned result of the corresponding request.
--
-- See: getCloudFrontOriginAccessIdentityResponse smart
-- constructor.
data GetCloudFrontOriginAccessIdentityResponse
-- | The current version of the origin access identity's information. For
-- example: E2QWRUHAPOMQZL .
gcfoairsETag :: Lens' GetCloudFrontOriginAccessIdentityResponse (Maybe Text)
-- | The origin access identity's information.
gcfoairsCloudFrontOriginAccessIdentity :: Lens' GetCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity)
-- |
-- - - | The response status code.
--
gcfoairsResponseStatus :: Lens' GetCloudFrontOriginAccessIdentityResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentityResponse
instance Data.Data.Data Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentityResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentityResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentityResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentityResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Data.Data.Data Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance GHC.Show.Show Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance GHC.Read.Read Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance GHC.Classes.Eq Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentity.GetCloudFrontOriginAccessIdentityResponse
-- | Create a new invalidation.
module Network.AWS.CloudFront.CreateInvalidation
-- | Creates a value of CreateInvalidation with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createInvalidation :: Text -> InvalidationBatch -> CreateInvalidation
-- | The request to create an invalidation.
--
-- See: createInvalidation smart constructor.
data CreateInvalidation
-- | The distribution's id.
ciDistributionId :: Lens' CreateInvalidation Text
-- | The batch information for the invalidation.
ciInvalidationBatch :: Lens' CreateInvalidation InvalidationBatch
-- | Creates a value of CreateInvalidationResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - cirsInvalidation - The invalidation's information.
-- - cirsLocation - The fully qualified URI of the distribution
-- and invalidation batch request, including the Invalidation ID
-- .
-- - cirsResponseStatus - -- | The response status code.
--
createInvalidationResponse :: Int -> CreateInvalidationResponse
-- | The returned result of the corresponding request.
--
-- See: createInvalidationResponse smart constructor.
data CreateInvalidationResponse
-- | The invalidation's information.
cirsInvalidation :: Lens' CreateInvalidationResponse (Maybe Invalidation)
-- | The fully qualified URI of the distribution and invalidation batch
-- request, including the Invalidation ID .
cirsLocation :: Lens' CreateInvalidationResponse (Maybe Text)
-- |
-- - - | The response status code.
--
cirsResponseStatus :: Lens' CreateInvalidationResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateInvalidation.CreateInvalidationResponse
instance Data.Data.Data Network.AWS.CloudFront.CreateInvalidation.CreateInvalidationResponse
instance GHC.Show.Show Network.AWS.CloudFront.CreateInvalidation.CreateInvalidationResponse
instance GHC.Read.Read Network.AWS.CloudFront.CreateInvalidation.CreateInvalidationResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateInvalidation.CreateInvalidationResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Data.Data.Data Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance GHC.Show.Show Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance GHC.Read.Read Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.CreateInvalidation.CreateInvalidation
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateInvalidation.CreateInvalidationResponse
-- | Lists invalidation batches.
--
-- This operation returns paginated results.
module Network.AWS.CloudFront.ListInvalidations
-- | Creates a value of ListInvalidations with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - liMarker - Use this parameter when paginating results to
-- indicate where to begin in your list of invalidation batches. Because
-- the results are returned in decreasing order from most recent to
-- oldest, the most recent results are on the first page, the second page
-- will contain earlier results, and so on. To get the next page of
-- results, set Marker to the value of the NextMarker
-- from the current page's response. This value is the same as the ID of
-- the last invalidation batch on that page.
-- - liMaxItems - The maximum number of invalidation batches
-- that you want in the response body.
-- - liDistributionId - The distribution's ID.
--
listInvalidations :: Text -> ListInvalidations
-- | The request to list invalidations.
--
-- See: listInvalidations smart constructor.
data ListInvalidations
-- | Use this parameter when paginating results to indicate where to begin
-- in your list of invalidation batches. Because the results are returned
-- in decreasing order from most recent to oldest, the most recent
-- results are on the first page, the second page will contain earlier
-- results, and so on. To get the next page of results, set
-- Marker to the value of the NextMarker from the
-- current page's response. This value is the same as the ID of the last
-- invalidation batch on that page.
liMarker :: Lens' ListInvalidations (Maybe Text)
-- | The maximum number of invalidation batches that you want in the
-- response body.
liMaxItems :: Lens' ListInvalidations (Maybe Text)
-- | The distribution's ID.
liDistributionId :: Lens' ListInvalidations Text
-- | Creates a value of ListInvalidationsResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listInvalidationsResponse :: Int -> InvalidationList -> ListInvalidationsResponse
-- | The returned result of the corresponding request.
--
-- See: listInvalidationsResponse smart constructor.
data ListInvalidationsResponse
-- |
-- - - | The response status code.
--
lirsResponseStatus :: Lens' ListInvalidationsResponse Int
-- | Information about invalidation batches.
lirsInvalidationList :: Lens' ListInvalidationsResponse InvalidationList
instance GHC.Generics.Generic Network.AWS.CloudFront.ListInvalidations.ListInvalidationsResponse
instance Data.Data.Data Network.AWS.CloudFront.ListInvalidations.ListInvalidationsResponse
instance GHC.Show.Show Network.AWS.CloudFront.ListInvalidations.ListInvalidationsResponse
instance GHC.Read.Read Network.AWS.CloudFront.ListInvalidations.ListInvalidationsResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.ListInvalidations.ListInvalidationsResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Data.Data.Data Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance GHC.Show.Show Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance GHC.Read.Read Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance GHC.Classes.Eq Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Network.AWS.Pager.AWSPager Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.ListInvalidations.ListInvalidations
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListInvalidations.ListInvalidationsResponse
-- | Get the information about an invalidation.
module Network.AWS.CloudFront.GetInvalidation
-- | Creates a value of GetInvalidation with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - giDistributionId - The distribution's ID.
-- - giId - The identifier for the invalidation request, for
-- example, IDFDVBD632BHDS5 .
--
getInvalidation :: Text -> Text -> GetInvalidation
-- | The request to get an invalidation's information.
--
-- See: getInvalidation smart constructor.
data GetInvalidation
-- | The distribution's ID.
giDistributionId :: Lens' GetInvalidation Text
-- | The identifier for the invalidation request, for example,
-- IDFDVBD632BHDS5 .
giId :: Lens' GetInvalidation Text
-- | Creates a value of GetInvalidationResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getInvalidationResponse :: Int -> GetInvalidationResponse
-- | The returned result of the corresponding request.
--
-- See: getInvalidationResponse smart constructor.
data GetInvalidationResponse
-- | The invalidation's information. For more information, see
-- Invalidation Complex Type .
girsInvalidation :: Lens' GetInvalidationResponse (Maybe Invalidation)
-- |
-- - - | The response status code.
--
girsResponseStatus :: Lens' GetInvalidationResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetInvalidation.GetInvalidationResponse
instance Data.Data.Data Network.AWS.CloudFront.GetInvalidation.GetInvalidationResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetInvalidation.GetInvalidationResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetInvalidation.GetInvalidationResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetInvalidation.GetInvalidationResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Data.Data.Data Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance GHC.Show.Show Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance GHC.Read.Read Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance GHC.Classes.Eq Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetInvalidation.GetInvalidation
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetInvalidation.GetInvalidationResponse
-- | Lists origin access identities.
--
-- This operation returns paginated results.
module Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities
-- | Creates a value of ListCloudFrontOriginAccessIdentities with
-- the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - lcfoaiMarker - Use this when paginating results to indicate
-- where to begin in your list of origin access identities. The results
-- include identities in the list that occur after the marker. To get the
-- next page of results, set the Marker to the value of the
-- NextMarker from the current page's response (which is also
-- the ID of the last identity on that page).
-- - lcfoaiMaxItems - The maximum number of origin access
-- identities you want in the response body.
--
listCloudFrontOriginAccessIdentities :: ListCloudFrontOriginAccessIdentities
-- | The request to list origin access identities.
--
-- See: listCloudFrontOriginAccessIdentities smart
-- constructor.
data ListCloudFrontOriginAccessIdentities
-- | Use this when paginating results to indicate where to begin in your
-- list of origin access identities. The results include identities in
-- the list that occur after the marker. To get the next page of results,
-- set the Marker to the value of the NextMarker from
-- the current page's response (which is also the ID of the last identity
-- on that page).
lcfoaiMarker :: Lens' ListCloudFrontOriginAccessIdentities (Maybe Text)
-- | The maximum number of origin access identities you want in the
-- response body.
lcfoaiMaxItems :: Lens' ListCloudFrontOriginAccessIdentities (Maybe Text)
-- | Creates a value of ListCloudFrontOriginAccessIdentitiesResponse
-- with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listCloudFrontOriginAccessIdentitiesResponse :: Int -> CloudFrontOriginAccessIdentityList -> ListCloudFrontOriginAccessIdentitiesResponse
-- | The returned result of the corresponding request.
--
-- See: listCloudFrontOriginAccessIdentitiesResponse smart
-- constructor.
data ListCloudFrontOriginAccessIdentitiesResponse
-- |
-- - - | The response status code.
--
lcfoairsResponseStatus :: Lens' ListCloudFrontOriginAccessIdentitiesResponse Int
-- | The CloudFrontOriginAccessIdentityList type.
lcfoairsCloudFrontOriginAccessIdentityList :: Lens' ListCloudFrontOriginAccessIdentitiesResponse CloudFrontOriginAccessIdentityList
instance GHC.Generics.Generic Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentitiesResponse
instance Data.Data.Data Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentitiesResponse
instance GHC.Show.Show Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentitiesResponse
instance GHC.Read.Read Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentitiesResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentitiesResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Data.Data.Data Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance GHC.Show.Show Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance GHC.Read.Read Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance GHC.Classes.Eq Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Network.AWS.Pager.AWSPager Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentities
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListCloudFrontOriginAccessIdentities.ListCloudFrontOriginAccessIdentitiesResponse
-- | Creates a new origin access identity. If you're using Amazon S3 for
-- your origin, you can use an origin access identity to require users to
-- access your content using a CloudFront URL instead of the Amazon S3
-- URL. For more information about how to use origin access identities,
-- see Serving Private Content through CloudFront in the Amazon
-- CloudFront Developer Guide .
module Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity
-- | Creates a value of CreateCloudFrontOriginAccessIdentity with
-- the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createCloudFrontOriginAccessIdentity :: CloudFrontOriginAccessIdentityConfig -> CreateCloudFrontOriginAccessIdentity
-- | The request to create a new origin access identity.
--
-- See: createCloudFrontOriginAccessIdentity smart
-- constructor.
data CreateCloudFrontOriginAccessIdentity
-- | The current configuration information for the identity.
ccfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CreateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig
-- | Creates a value of CreateCloudFrontOriginAccessIdentityResponse
-- with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createCloudFrontOriginAccessIdentityResponse :: Int -> CreateCloudFrontOriginAccessIdentityResponse
-- | The returned result of the corresponding request.
--
-- See: createCloudFrontOriginAccessIdentityResponse smart
-- constructor.
data CreateCloudFrontOriginAccessIdentityResponse
-- | The current version of the origin access identity created.
ccfoairsETag :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text)
-- | The fully qualified URI of the new origin access identity just
-- created. For example:
-- https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A
-- .
ccfoairsLocation :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text)
-- | The origin access identity's information.
ccfoairsCloudFrontOriginAccessIdentity :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity)
-- |
-- - - | The response status code.
--
ccfoairsResponseStatus :: Lens' CreateCloudFrontOriginAccessIdentityResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentityResponse
instance Data.Data.Data Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentityResponse
instance GHC.Show.Show Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentityResponse
instance GHC.Read.Read Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentityResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentityResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Data.Data.Data Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance GHC.Show.Show Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance GHC.Read.Read Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity.CreateCloudFrontOriginAccessIdentityResponse
-- | Creates a new RMTP distribution. An RTMP distribution is similar to a
-- web distribution, but an RTMP distribution streams media files using
-- the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files
-- using HTTP.
--
-- To create a new web distribution, submit a POST request to
-- the CloudFront API version distribution resource. The
-- request body must include a document with a
-- StreamingDistributionConfig/ element. The response echoes the
-- StreamingDistributionConfig element and returns other
-- information about the RTMP distribution.
--
-- To get the status of your request, use the GET
-- StreamingDistribution API action. When the value of
-- Enabled is true and the value of Status is
-- Deployed , your distribution is ready. A distribution usually
-- deploys in less than 15 minutes.
--
-- For more information about web distributions, see Working with RTMP
-- Distributions in the Amazon CloudFront Developer Guide .
--
-- Important: Beginning with the 2012-05-05 version of the
-- CloudFront API, we made substantial changes to the format of the XML
-- document that you include in the request body when you create or
-- update a web distribution or an RTMP distribution, and when you
-- invalidate objects. With previous versions of the API, we discovered
-- that it was too easy to accidentally delete one or more values for an
-- element that accepts multiple values, for example, CNAMEs and trusted
-- signers. Our changes for the 2012-05-05 release are intended to
-- prevent these accidental deletions and to notify you when there's a
-- mismatch between the number of values you say you're specifying in the
-- Quantity element and the number of values specified.
module Network.AWS.CloudFront.CreateStreamingDistribution
-- | Creates a value of CreateStreamingDistribution with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createStreamingDistribution :: StreamingDistributionConfig -> CreateStreamingDistribution
-- | The request to create a new streaming distribution.
--
-- See: createStreamingDistribution smart constructor.
data CreateStreamingDistribution
-- | The streaming distribution's configuration information.
csdStreamingDistributionConfig :: Lens' CreateStreamingDistribution StreamingDistributionConfig
-- | Creates a value of CreateStreamingDistributionResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createStreamingDistributionResponse :: Int -> CreateStreamingDistributionResponse
-- | The returned result of the corresponding request.
--
-- See: createStreamingDistributionResponse smart
-- constructor.
data CreateStreamingDistributionResponse
-- | The current version of the streaming distribution created.
csdrsETag :: Lens' CreateStreamingDistributionResponse (Maybe Text)
-- | The fully qualified URI of the new streaming distribution resource
-- just created. For example:
-- https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8
-- .
csdrsLocation :: Lens' CreateStreamingDistributionResponse (Maybe Text)
-- | The streaming distribution's information.
csdrsStreamingDistribution :: Lens' CreateStreamingDistributionResponse (Maybe StreamingDistribution)
-- |
-- - - | The response status code.
--
csdrsResponseStatus :: Lens' CreateStreamingDistributionResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Data.Data.Data Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance GHC.Show.Show Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance GHC.Read.Read Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateStreamingDistribution.CreateStreamingDistributionResponse
-- | Get the configuration information about an origin access identity.
module Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig
-- | Creates a value of GetCloudFrontOriginAccessIdentityConfig with
-- the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getCloudFrontOriginAccessIdentityConfig :: Text -> GetCloudFrontOriginAccessIdentityConfig
-- | The origin access identity's configuration information. For more
-- information, see
-- CloudFrontOriginAccessIdentityConfigComplexType .
--
-- See: getCloudFrontOriginAccessIdentityConfig smart
-- constructor.
data GetCloudFrontOriginAccessIdentityConfig
-- | The identity's ID.
gcfoaicId :: Lens' GetCloudFrontOriginAccessIdentityConfig Text
-- | Creates a value of
-- GetCloudFrontOriginAccessIdentityConfigResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getCloudFrontOriginAccessIdentityConfigResponse :: Int -> GetCloudFrontOriginAccessIdentityConfigResponse
-- | The returned result of the corresponding request.
--
-- See: getCloudFrontOriginAccessIdentityConfigResponse
-- smart constructor.
data GetCloudFrontOriginAccessIdentityConfigResponse
-- | The origin access identity's configuration information.
gcfoaicrsCloudFrontOriginAccessIdentityConfig :: Lens' GetCloudFrontOriginAccessIdentityConfigResponse (Maybe CloudFrontOriginAccessIdentityConfig)
-- | The current version of the configuration. For example:
-- E2QWRUHAPOMQZL .
gcfoaicrsETag :: Lens' GetCloudFrontOriginAccessIdentityConfigResponse (Maybe Text)
-- |
-- - - | The response status code.
--
gcfoaicrsResponseStatus :: Lens' GetCloudFrontOriginAccessIdentityConfigResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfigResponse
instance Data.Data.Data Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfigResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfigResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfigResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfigResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Data.Data.Data Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance GHC.Show.Show Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance GHC.Read.Read Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance GHC.Classes.Eq Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfig
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetCloudFrontOriginAccessIdentityConfig.GetCloudFrontOriginAccessIdentityConfigResponse
-- | Get the configuration information about a streaming distribution.
module Network.AWS.CloudFront.GetStreamingDistributionConfig
-- | Creates a value of GetStreamingDistributionConfig with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - gsdcId - The streaming distribution's ID.
--
getStreamingDistributionConfig :: Text -> GetStreamingDistributionConfig
-- | To request to get a streaming distribution configuration.
--
-- See: getStreamingDistributionConfig smart constructor.
data GetStreamingDistributionConfig
-- | The streaming distribution's ID.
gsdcId :: Lens' GetStreamingDistributionConfig Text
-- | Creates a value of GetStreamingDistributionConfigResponse with
-- the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getStreamingDistributionConfigResponse :: Int -> GetStreamingDistributionConfigResponse
-- | The returned result of the corresponding request.
--
-- See: getStreamingDistributionConfigResponse smart
-- constructor.
data GetStreamingDistributionConfigResponse
-- | The streaming distribution's configuration information.
gsdcrsStreamingDistributionConfig :: Lens' GetStreamingDistributionConfigResponse (Maybe StreamingDistributionConfig)
-- | The current version of the configuration. For example:
-- E2QWRUHAPOMQZL .
gsdcrsETag :: Lens' GetStreamingDistributionConfigResponse (Maybe Text)
-- |
-- - - | The response status code.
--
gsdcrsResponseStatus :: Lens' GetStreamingDistributionConfigResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfigResponse
instance Data.Data.Data Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfigResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfigResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfigResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfigResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Data.Data.Data Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance GHC.Show.Show Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance GHC.Read.Read Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance GHC.Classes.Eq Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfig
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetStreamingDistributionConfig.GetStreamingDistributionConfigResponse
-- | List streaming distributions.
--
-- This operation returns paginated results.
module Network.AWS.CloudFront.ListStreamingDistributions
-- | Creates a value of ListStreamingDistributions with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - lsdMarker - The value that you provided for the
-- Marker request parameter.
-- - lsdMaxItems - The value that you provided for the
-- MaxItems request parameter.
--
listStreamingDistributions :: ListStreamingDistributions
-- | The request to list your streaming distributions.
--
-- See: listStreamingDistributions smart constructor.
data ListStreamingDistributions
-- | The value that you provided for the Marker request parameter.
lsdMarker :: Lens' ListStreamingDistributions (Maybe Text)
-- | The value that you provided for the MaxItems request
-- parameter.
lsdMaxItems :: Lens' ListStreamingDistributions (Maybe Text)
-- | Creates a value of ListStreamingDistributionsResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listStreamingDistributionsResponse :: Int -> StreamingDistributionList -> ListStreamingDistributionsResponse
-- | The returned result of the corresponding request.
--
-- See: listStreamingDistributionsResponse smart
-- constructor.
data ListStreamingDistributionsResponse
-- |
-- - - | The response status code.
--
lsdrsResponseStatus :: Lens' ListStreamingDistributionsResponse Int
-- | The StreamingDistributionList type.
lsdrsStreamingDistributionList :: Lens' ListStreamingDistributionsResponse StreamingDistributionList
instance GHC.Generics.Generic Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributionsResponse
instance Data.Data.Data Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributionsResponse
instance GHC.Show.Show Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributionsResponse
instance GHC.Read.Read Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributionsResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributionsResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Data.Data.Data Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance GHC.Show.Show Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance GHC.Read.Read Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance GHC.Classes.Eq Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Network.AWS.Pager.AWSPager Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributions
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListStreamingDistributions.ListStreamingDistributionsResponse
-- | Delete an origin access identity.
module Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity
-- | Creates a value of DeleteCloudFrontOriginAccessIdentity with
-- the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - dcfoaiIfMatch - The value of the ETag header you
-- received from a previous GET or PUT request. For
-- example: E2QWRUHAPOMQZL .
-- - dcfoaiId - The origin access identity's ID.
--
deleteCloudFrontOriginAccessIdentity :: Text -> DeleteCloudFrontOriginAccessIdentity
-- | Deletes a origin access identity.
--
-- See: deleteCloudFrontOriginAccessIdentity smart
-- constructor.
data DeleteCloudFrontOriginAccessIdentity
-- | The value of the ETag header you received from a previous
-- GET or PUT request. For example:
-- E2QWRUHAPOMQZL .
dcfoaiIfMatch :: Lens' DeleteCloudFrontOriginAccessIdentity (Maybe Text)
-- | The origin access identity's ID.
dcfoaiId :: Lens' DeleteCloudFrontOriginAccessIdentity Text
-- | Creates a value of DeleteCloudFrontOriginAccessIdentityResponse
-- with the minimum fields required to make a request.
deleteCloudFrontOriginAccessIdentityResponse :: DeleteCloudFrontOriginAccessIdentityResponse
-- | See: deleteCloudFrontOriginAccessIdentityResponse smart
-- constructor.
data DeleteCloudFrontOriginAccessIdentityResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentityResponse
instance Data.Data.Data Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentityResponse
instance GHC.Show.Show Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentityResponse
instance GHC.Read.Read Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentityResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentityResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Data.Data.Data Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance GHC.Show.Show Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance GHC.Read.Read Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance GHC.Classes.Eq Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.DeleteCloudFrontOriginAccessIdentity.DeleteCloudFrontOriginAccessIdentityResponse
-- | Update an origin access identity.
module Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity
-- | Creates a value of UpdateCloudFrontOriginAccessIdentity with
-- the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
updateCloudFrontOriginAccessIdentity :: CloudFrontOriginAccessIdentityConfig -> Text -> UpdateCloudFrontOriginAccessIdentity
-- | The request to update an origin access identity.
--
-- See: updateCloudFrontOriginAccessIdentity smart
-- constructor.
data UpdateCloudFrontOriginAccessIdentity
-- | The value of the ETag header that you received when
-- retrieving the identity's configuration. For example:
-- E2QWRUHAPOMQZL .
ucfoaiIfMatch :: Lens' UpdateCloudFrontOriginAccessIdentity (Maybe Text)
-- | The identity's configuration information.
ucfoaiCloudFrontOriginAccessIdentityConfig :: Lens' UpdateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig
-- | The identity's id.
ucfoaiId :: Lens' UpdateCloudFrontOriginAccessIdentity Text
-- | Creates a value of UpdateCloudFrontOriginAccessIdentityResponse
-- with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
updateCloudFrontOriginAccessIdentityResponse :: Int -> UpdateCloudFrontOriginAccessIdentityResponse
-- | The returned result of the corresponding request.
--
-- See: updateCloudFrontOriginAccessIdentityResponse smart
-- constructor.
data UpdateCloudFrontOriginAccessIdentityResponse
-- | The current version of the configuration. For example:
-- E2QWRUHAPOMQZL .
ucfoairsETag :: Lens' UpdateCloudFrontOriginAccessIdentityResponse (Maybe Text)
-- | The origin access identity's information.
ucfoairsCloudFrontOriginAccessIdentity :: Lens' UpdateCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity)
-- |
-- - - | The response status code.
--
ucfoairsResponseStatus :: Lens' UpdateCloudFrontOriginAccessIdentityResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentityResponse
instance Data.Data.Data Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentityResponse
instance GHC.Show.Show Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentityResponse
instance GHC.Read.Read Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentityResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentityResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Data.Data.Data Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance GHC.Show.Show Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance GHC.Read.Read Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance GHC.Classes.Eq Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentity
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UpdateCloudFrontOriginAccessIdentity.UpdateCloudFrontOriginAccessIdentityResponse
-- | Get the information about a distribution.
module Network.AWS.CloudFront.GetDistribution
-- | Creates a value of GetDistribution with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - gdId - The distribution's ID.
--
getDistribution :: Text -> GetDistribution
-- | The request to get a distribution's information.
--
-- See: getDistribution smart constructor.
data GetDistribution
-- | The distribution's ID.
gdId :: Lens' GetDistribution Text
-- | Creates a value of GetDistributionResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - gdrsETag - The current version of the distribution's
-- information. For example: E2QWRUHAPOMQZL .
-- - gdrsDistribution - The distribution's information.
-- - gdrsResponseStatus - -- | The response status code.
--
getDistributionResponse :: Int -> GetDistributionResponse
-- | The returned result of the corresponding request.
--
-- See: getDistributionResponse smart constructor.
data GetDistributionResponse
-- | The current version of the distribution's information. For example:
-- E2QWRUHAPOMQZL .
gdrsETag :: Lens' GetDistributionResponse (Maybe Text)
-- | The distribution's information.
gdrsDistribution :: Lens' GetDistributionResponse (Maybe Distribution)
-- |
-- - - | The response status code.
--
gdrsResponseStatus :: Lens' GetDistributionResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetDistribution.GetDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.GetDistribution.GetDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetDistribution.GetDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetDistribution.GetDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetDistribution.GetDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Data.Data.Data Network.AWS.CloudFront.GetDistribution.GetDistribution
instance GHC.Show.Show Network.AWS.CloudFront.GetDistribution.GetDistribution
instance GHC.Read.Read Network.AWS.CloudFront.GetDistribution.GetDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetDistribution.GetDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetDistribution.GetDistributionResponse
module Network.AWS.CloudFront.Waiters
-- | Polls GetStreamingDistribution every 60 seconds until a
-- successful state is reached. An error is returned after 25 failed
-- checks.
streamingDistributionDeployed :: Wait GetStreamingDistribution
-- | Polls GetDistribution every 60 seconds until a successful state
-- is reached. An error is returned after 25 failed checks.
distributionDeployed :: Wait GetDistribution
-- | Polls GetInvalidation every 20 seconds until a successful state
-- is reached. An error is returned after 60 failed checks.
invalidationCompleted :: Wait GetInvalidation
-- | Create a new streaming distribution with tags.
module Network.AWS.CloudFront.CreateStreamingDistributionWithTags
-- | Creates a value of CreateStreamingDistributionWithTags with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createStreamingDistributionWithTags :: StreamingDistributionConfigWithTags -> CreateStreamingDistributionWithTags
-- | The request to create a new streaming distribution with tags.
--
-- See: createStreamingDistributionWithTags smart
-- constructor.
data CreateStreamingDistributionWithTags
-- | The streaming distribution's configuration information.
csdwtStreamingDistributionConfigWithTags :: Lens' CreateStreamingDistributionWithTags StreamingDistributionConfigWithTags
-- | Creates a value of CreateStreamingDistributionWithTagsResponse
-- with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createStreamingDistributionWithTagsResponse :: Int -> CreateStreamingDistributionWithTagsResponse
-- | The returned result of the corresponding request.
--
-- See: createStreamingDistributionWithTagsResponse smart
-- constructor.
data CreateStreamingDistributionWithTagsResponse
-- | Undocumented member.
csdwtrsETag :: Lens' CreateStreamingDistributionWithTagsResponse (Maybe Text)
-- | The fully qualified URI of the new streaming distribution resource
-- just created. For
-- example:https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8
-- .
csdwtrsLocation :: Lens' CreateStreamingDistributionWithTagsResponse (Maybe Text)
-- | The streaming distribution's information.
csdwtrsStreamingDistribution :: Lens' CreateStreamingDistributionWithTagsResponse (Maybe StreamingDistribution)
-- |
-- - - | The response status code.
--
csdwtrsResponseStatus :: Lens' CreateStreamingDistributionWithTagsResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTagsResponse
instance Data.Data.Data Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTagsResponse
instance GHC.Show.Show Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTagsResponse
instance GHC.Read.Read Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTagsResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTagsResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Data.Data.Data Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance GHC.Show.Show Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance GHC.Read.Read Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTags
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateStreamingDistributionWithTags.CreateStreamingDistributionWithTagsResponse
-- | Get the configuration information about a distribution.
module Network.AWS.CloudFront.GetDistributionConfig
-- | Creates a value of GetDistributionConfig with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - gdcId - The distribution's ID.
--
getDistributionConfig :: Text -> GetDistributionConfig
-- | The request to get a distribution configuration.
--
-- See: getDistributionConfig smart constructor.
data GetDistributionConfig
-- | The distribution's ID.
gdcId :: Lens' GetDistributionConfig Text
-- | Creates a value of GetDistributionConfigResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
getDistributionConfigResponse :: Int -> GetDistributionConfigResponse
-- | The returned result of the corresponding request.
--
-- See: getDistributionConfigResponse smart constructor.
data GetDistributionConfigResponse
-- | The current version of the configuration. For example:
-- E2QWRUHAPOMQZL .
gdcrsETag :: Lens' GetDistributionConfigResponse (Maybe Text)
-- | The distribution's configuration information.
gdcrsDistributionConfig :: Lens' GetDistributionConfigResponse (Maybe DistributionConfig)
-- |
-- - - | The response status code.
--
gdcrsResponseStatus :: Lens' GetDistributionConfigResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfigResponse
instance Data.Data.Data Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfigResponse
instance GHC.Show.Show Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfigResponse
instance GHC.Read.Read Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfigResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfigResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Data.Data.Data Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance GHC.Show.Show Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance GHC.Read.Read Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance GHC.Classes.Eq Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfig
instance Control.DeepSeq.NFData Network.AWS.CloudFront.GetDistributionConfig.GetDistributionConfigResponse
-- | Creates a new web distribution. Send a GET request to the
-- /CloudFront API version /distribution
-- /distribution ID resource.
module Network.AWS.CloudFront.CreateDistribution
-- | Creates a value of CreateDistribution with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createDistribution :: DistributionConfig -> CreateDistribution
-- | The request to create a new distribution.
--
-- See: createDistribution smart constructor.
data CreateDistribution
-- | The distribution's configuration information.
cdDistributionConfig :: Lens' CreateDistribution DistributionConfig
-- | Creates a value of CreateDistributionResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createDistributionResponse :: Int -> CreateDistributionResponse
-- | The returned result of the corresponding request.
--
-- See: createDistributionResponse smart constructor.
data CreateDistributionResponse
-- | The current version of the distribution created.
cdrsETag :: Lens' CreateDistributionResponse (Maybe Text)
-- | The distribution's information.
cdrsDistribution :: Lens' CreateDistributionResponse (Maybe Distribution)
-- | The fully qualified URI of the new distribution resource just created.
-- For example:
-- https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5
-- .
cdrsLocation :: Lens' CreateDistributionResponse (Maybe Text)
-- |
-- - - | The response status code.
--
cdrsResponseStatus :: Lens' CreateDistributionResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateDistribution.CreateDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.CreateDistribution.CreateDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.CreateDistribution.CreateDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.CreateDistribution.CreateDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateDistribution.CreateDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Data.Data.Data Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance GHC.Show.Show Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance GHC.Read.Read Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.CreateDistribution.CreateDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateDistribution.CreateDistributionResponse
-- | Create a new distribution with tags.
module Network.AWS.CloudFront.CreateDistributionWithTags
-- | Creates a value of CreateDistributionWithTags with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createDistributionWithTags :: DistributionConfigWithTags -> CreateDistributionWithTags
-- | The request to create a new distribution with tags.
--
-- See: createDistributionWithTags smart constructor.
data CreateDistributionWithTags
-- | The distribution's configuration information.
cdwtDistributionConfigWithTags :: Lens' CreateDistributionWithTags DistributionConfigWithTags
-- | Creates a value of CreateDistributionWithTagsResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
createDistributionWithTagsResponse :: Int -> CreateDistributionWithTagsResponse
-- | The returned result of the corresponding request.
--
-- See: createDistributionWithTagsResponse smart
-- constructor.
data CreateDistributionWithTagsResponse
-- | The current version of the distribution created.
cdwtrsETag :: Lens' CreateDistributionWithTagsResponse (Maybe Text)
-- | The distribution's information.
cdwtrsDistribution :: Lens' CreateDistributionWithTagsResponse (Maybe Distribution)
-- | The fully qualified URI of the new distribution resource just created.
-- For example:
-- https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5
-- .
cdwtrsLocation :: Lens' CreateDistributionWithTagsResponse (Maybe Text)
-- |
-- - - | The response status code.
--
cdwtrsResponseStatus :: Lens' CreateDistributionWithTagsResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTagsResponse
instance Data.Data.Data Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTagsResponse
instance GHC.Show.Show Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTagsResponse
instance GHC.Read.Read Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTagsResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTagsResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Data.Data.Data Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance GHC.Show.Show Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance GHC.Read.Read Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance GHC.Classes.Eq Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTags
instance Control.DeepSeq.NFData Network.AWS.CloudFront.CreateDistributionWithTags.CreateDistributionWithTagsResponse
-- | List tags for a CloudFront resource.
module Network.AWS.CloudFront.ListTagsForResource
-- | Creates a value of ListTagsForResource with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listTagsForResource :: Text -> ListTagsForResource
-- | The request to list tags for a CloudFront resource.
--
-- See: listTagsForResource smart constructor.
data ListTagsForResource
-- | An ARN of a CloudFront resource.
ltfrResource :: Lens' ListTagsForResource Text
-- | Creates a value of ListTagsForResourceResponse with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
listTagsForResourceResponse :: Int -> Tags -> ListTagsForResourceResponse
-- | The returned result of the corresponding request.
--
-- See: listTagsForResourceResponse smart constructor.
data ListTagsForResourceResponse
-- |
-- - - | The response status code.
--
ltfrrsResponseStatus :: Lens' ListTagsForResourceResponse Int
-- | A complex type that contains zero or more Tag elements.
ltfrrsTags :: Lens' ListTagsForResourceResponse Tags
instance GHC.Generics.Generic Network.AWS.CloudFront.ListTagsForResource.ListTagsForResourceResponse
instance Data.Data.Data Network.AWS.CloudFront.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Show.Show Network.AWS.CloudFront.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Read.Read Network.AWS.CloudFront.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Data.Data.Data Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance GHC.Show.Show Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance GHC.Read.Read Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance GHC.Classes.Eq Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.ListTagsForResource.ListTagsForResource
instance Control.DeepSeq.NFData Network.AWS.CloudFront.ListTagsForResource.ListTagsForResourceResponse
-- | Update a streaming distribution.
module Network.AWS.CloudFront.UpdateStreamingDistribution
-- | Creates a value of UpdateStreamingDistribution with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - usdIfMatch - The value of the ETag header that you
-- received when retrieving the streaming distribution's configuration.
-- For example: E2QWRUHAPOMQZL .
-- - usdStreamingDistributionConfig - The streaming
-- distribution's configuration information.
-- - usdId - The streaming distribution's id.
--
updateStreamingDistribution :: StreamingDistributionConfig -> Text -> UpdateStreamingDistribution
-- | The request to update a streaming distribution.
--
-- See: updateStreamingDistribution smart constructor.
data UpdateStreamingDistribution
-- | The value of the ETag header that you received when
-- retrieving the streaming distribution's configuration. For example:
-- E2QWRUHAPOMQZL .
usdIfMatch :: Lens' UpdateStreamingDistribution (Maybe Text)
-- | The streaming distribution's configuration information.
usdStreamingDistributionConfig :: Lens' UpdateStreamingDistribution StreamingDistributionConfig
-- | The streaming distribution's id.
usdId :: Lens' UpdateStreamingDistribution Text
-- | Creates a value of UpdateStreamingDistributionResponse with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
updateStreamingDistributionResponse :: Int -> UpdateStreamingDistributionResponse
-- | The returned result of the corresponding request.
--
-- See: updateStreamingDistributionResponse smart
-- constructor.
data UpdateStreamingDistributionResponse
-- | The current version of the configuration. For example:
-- E2QWRUHAPOMQZL .
usdrsETag :: Lens' UpdateStreamingDistributionResponse (Maybe Text)
-- | The streaming distribution's information.
usdrsStreamingDistribution :: Lens' UpdateStreamingDistributionResponse (Maybe StreamingDistribution)
-- |
-- - - | The response status code.
--
usdrsResponseStatus :: Lens' UpdateStreamingDistributionResponse Int
instance GHC.Generics.Generic Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Data.Data.Data Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance GHC.Show.Show Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance GHC.Read.Read Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Network.AWS.Data.XML.ToElement Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.UpdateStreamingDistribution.UpdateStreamingDistributionResponse
-- | Delete a streaming distribution. To delete an RTMP distribution using
-- the CloudFront API, perform the following steps.
--
-- To delete an RTMP distribution using the CloudFront API :
--
--
-- - Disable the RTMP distribution.
-- - Submit a GET Streaming Distribution Config request to get
-- the current configuration and the Etag header for the
-- distribution.
-- - Update the XML document that was returned in the response to your
-- GET Streaming Distribution Config request to change the value
-- of Enabled to false .
-- - Submit a PUT Streaming Distribution Config request to
-- update the configuration for your distribution. In the request body,
-- include the XML document that you updated in Step 3. Then set the
-- value of the HTTP If-Match header to the value of the
-- ETag header that CloudFront returned when you submitted the
-- GET Streaming Distribution Config request in Step 2.
-- - Review the response to the PUT Streaming Distribution
-- Config request to confirm that the distribution was successfully
-- disabled.
-- - Submit a GET Streaming Distribution Config request to
-- confirm that your changes have propagated. When propagation is
-- complete, the value of Status is Deployed .
-- - Submit a DELETE Streaming Distribution request. Set the
-- value of the HTTP If-Match header to the value of the
-- ETag header that CloudFront returned when you submitted the
-- GET Streaming Distribution Config request in Step 2.
-- - Review the response to your DELETE Streaming Distribution
-- request to confirm that the distribution was successfully
-- deleted.
--
--
-- For information about deleting a distribution using the CloudFront
-- console, see Deleting a Distribution in the Amazon
-- CloudFront Developer Guide .
module Network.AWS.CloudFront.DeleteStreamingDistribution
-- | Creates a value of DeleteStreamingDistribution with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - dsdIfMatch - The value of the ETag header that you
-- received when you disabled the streaming distribution. For example:
-- E2QWRUHAPOMQZL .
-- - dsdId - The distribution ID.
--
deleteStreamingDistribution :: Text -> DeleteStreamingDistribution
-- | The request to delete a streaming distribution.
--
-- See: deleteStreamingDistribution smart constructor.
data DeleteStreamingDistribution
-- | The value of the ETag header that you received when you
-- disabled the streaming distribution. For example:
-- E2QWRUHAPOMQZL .
dsdIfMatch :: Lens' DeleteStreamingDistribution (Maybe Text)
-- | The distribution ID.
dsdId :: Lens' DeleteStreamingDistribution Text
-- | Creates a value of DeleteStreamingDistributionResponse with the
-- minimum fields required to make a request.
deleteStreamingDistributionResponse :: DeleteStreamingDistributionResponse
-- | See: deleteStreamingDistributionResponse smart
-- constructor.
data DeleteStreamingDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistributionResponse
instance Data.Data.Data Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistributionResponse
instance GHC.Show.Show Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistributionResponse
instance GHC.Read.Read Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistributionResponse
instance GHC.Classes.Eq Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistributionResponse
instance GHC.Generics.Generic Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Data.Data.Data Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance GHC.Show.Show Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance GHC.Read.Read Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance GHC.Classes.Eq Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Network.AWS.Types.AWSRequest Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Data.Hashable.Class.Hashable Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Network.AWS.Data.Path.ToPath Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistribution
instance Control.DeepSeq.NFData Network.AWS.CloudFront.DeleteStreamingDistribution.DeleteStreamingDistributionResponse
-- | Amazon CloudFront is a web service that speeds up distribution of your
-- static and dynamic web content, for example, .html, .css, .php, image,
-- and media files, to end users. CloudFront delivers your content
-- through a worldwide network of edge locations. When an end user
-- requests content that you're serving with CloudFront, the user is
-- routed to the edge location that provides the lowest latency, so
-- content is delivered with the best possible performance. If the
-- content is already in that edge location, CloudFront delivers it
-- immediately. If the content is not currently in that edge location,
-- CloudFront retrieves it from an Amazon S3 bucket or an HTTP server
-- (for example, a web server) that you have identified as the source for
-- the definitive version of your content.
module Network.AWS.CloudFront
-- | API version 2016-09-29 of the Amazon CloudFront SDK
-- configuration.
cloudFront :: Service
-- | Prism for TooManyOriginCustomHeaders' errors.
_TooManyOriginCustomHeaders :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidTagging' errors.
_InvalidTagging :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidErrorCode' errors.
_InvalidErrorCode :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot create more cache behaviors for the distribution.
_TooManyCacheBehaviors :: AsError a => Getting (First ServiceError) a ServiceError
-- | Processing your request would cause you to exceed the maximum number
-- of origin access identities allowed.
_TooManyCloudFrontOriginAccessIdentities :: AsError a => Getting (First ServiceError) a ServiceError
-- | The origin access identity is not valid or doesn't exist.
_InvalidOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for DistributionNotDisabled' errors.
_DistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified streaming distribution does not exist.
_NoSuchStreamingDistribution :: AsError a => Getting (First ServiceError) a ServiceError
-- | The value of Quantity and the size of Items do not
-- match.
_InconsistentQuantities :: AsError a => Getting (First ServiceError) a ServiceError
-- | The argument is invalid.
_InvalidArgument :: AsError a => Getting (First ServiceError) a ServiceError
-- | You have exceeded the maximum number of allowable InProgress
-- invalidation batch requests, or invalidation objects.
_TooManyInvalidationsInProgress :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidWebACLId' errors.
_InvalidWebACLId :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for TooManyQueryStringParameters' errors.
_TooManyQueryStringParameters :: AsError a => Getting (First ServiceError) a ServiceError
-- | Your request contains more CNAMEs than are allowed per distribution.
_TooManyDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified origin access identity does not exist.
_NoSuchCloudFrontOriginAccessIdentity :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for CloudFrontOriginAccessIdentityInUse' errors.
_CloudFrontOriginAccessIdentityInUse :: AsError a => Getting (First ServiceError) a ServiceError
-- | Processing your request would cause you to exceed the maximum number
-- of streaming distributions allowed.
_TooManyStreamingDistributions :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for BatchTooLarge' errors.
_BatchTooLarge :: AsError a => Getting (First ServiceError) a ServiceError
-- | Your request contains more cookie names in the whitelist than are
-- allowed per cache behavior.
_TooManyCookieNamesInWhiteList :: AsError a => Getting (First ServiceError) a ServiceError
-- | 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.
_InvalidForwardCookies :: AsError a => Getting (First ServiceError) a ServiceError
-- | Your request contains more trusted signers than are allowed per
-- distribution.
_TooManyTrustedSigners :: AsError a => Getting (First ServiceError) a ServiceError
-- | The Amazon S3 origin server specified does not refer to a valid Amazon
-- S3 bucket.
_InvalidOrigin :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified invalidation does not exist.
_NoSuchInvalidation :: AsError a => Getting (First ServiceError) a ServiceError
-- | No origin exists with the specified Origin Id .
_NoSuchOrigin :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidTTLOrder' errors.
_InvalidTTLOrder :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for StreamingDistributionNotDisabled' errors.
_StreamingDistributionNotDisabled :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for TooManyHeadersInForwardedValues' errors.
_TooManyHeadersInForwardedValues :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for NoSuchResource' errors.
_NoSuchResource :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for TooManyStreamingDistributionCNAMEs' errors.
_TooManyStreamingDistributionCNAMEs :: AsError a => Getting (First ServiceError) a ServiceError
-- | 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.
_InvalidRequiredProtocol :: AsError a => Getting (First ServiceError) a ServiceError
-- | Processing your request would cause you to exceed the maximum number
-- of distributions allowed.
_TooManyDistributions :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot create anymore custom SSL/TLS certificates.
_TooManyCertificates :: AsError a => Getting (First ServiceError) a ServiceError
-- | The caller reference you attempted to create the distribution with is
-- associated with another distribution.
_DistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidQueryStringParameters' errors.
_InvalidQueryStringParameters :: AsError a => Getting (First ServiceError) a ServiceError
-- | This operation requires a body. Ensure that the body is present and
-- the Content-Type header is set.
_MissingBody :: AsError a => Getting (First ServiceError) a ServiceError
-- | Origin and CallerReference cannot be updated.
_IllegalUpdate :: AsError a => Getting (First ServiceError) a ServiceError
-- | The If-Match version is missing or not valid for the
-- distribution.
_InvalidIfMatchVersion :: AsError a => Getting (First ServiceError) a ServiceError
-- | The precondition given in one or more of the request-header fields
-- evaluated to false .
_PreconditionFailed :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidResponseCode' errors.
_InvalidResponseCode :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidHeadersForS3Origin' errors.
_InvalidHeadersForS3Origin :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for CNAMEAlreadyExists' errors.
_CNAMEAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | One or more of your trusted signers do not exist.
_TrustedSignerDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot specify SSLv3 as the minimum protocol version if you only
-- want to support only clients that support Server Name Indication
-- (SNI).
_InvalidProtocolSettings :: AsError a => Getting (First ServiceError) a ServiceError
-- | 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.
_CloudFrontOriginAccessIdentityAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | You cannot create more origins for the distribution.
_TooManyOrigins :: AsError a => Getting (First ServiceError) a ServiceError
-- | The relative path is too big, is not URL-encoded, or does not begin
-- with a slash (/).
_InvalidRelativePath :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for StreamingDistributionAlreadyExists' errors.
_StreamingDistributionAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidMinimumProtocolVersion' errors.
_InvalidMinimumProtocolVersion :: AsError a => Getting (First ServiceError) a ServiceError
-- | Access denied.
_AccessDenied :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidViewerCertificate' errors.
_InvalidViewerCertificate :: AsError a => Getting (First ServiceError) a ServiceError
-- | The specified distribution does not exist.
_NoSuchDistribution :: AsError a => Getting (First ServiceError) a ServiceError
-- | The default root object file name is too big or contains an invalid
-- character.
_InvalidDefaultRootObject :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidGeoRestrictionParameter' errors.
_InvalidGeoRestrictionParameter :: AsError a => Getting (First ServiceError) a ServiceError
-- | Prism for InvalidLocationCode' errors.
_InvalidLocationCode :: AsError a => Getting (First ServiceError) a ServiceError
-- | Polls GetStreamingDistribution every 60 seconds until a
-- successful state is reached. An error is returned after 25 failed
-- checks.
streamingDistributionDeployed :: Wait GetStreamingDistribution
-- | Polls GetDistribution every 60 seconds until a successful state
-- is reached. An error is returned after 25 failed checks.
distributionDeployed :: Wait GetDistribution
-- | Polls GetInvalidation every 20 seconds until a successful state
-- is reached. An error is returned after 60 failed checks.
invalidationCompleted :: Wait GetInvalidation
data CertificateSource
Acm :: CertificateSource
Cloudfront :: CertificateSource
IAM :: CertificateSource
data GeoRestrictionType
Blacklist :: GeoRestrictionType
None :: GeoRestrictionType
Whitelist :: GeoRestrictionType
data HTTPVersion
HTTP1_1 :: HTTPVersion
HTTP2 :: HTTPVersion
data ItemSelection
ISAll :: ItemSelection
ISNone :: ItemSelection
ISWhitelist :: ItemSelection
data Method
Delete :: Method
Get :: Method
Head :: Method
Options :: Method
Patch :: Method
Post :: Method
Put :: Method
data MinimumProtocolVersion
MPVSSLV3 :: MinimumProtocolVersion
MPVTLSV1 :: MinimumProtocolVersion
data OriginProtocolPolicy
HTTPOnly :: OriginProtocolPolicy
HTTPSOnly :: OriginProtocolPolicy
MatchViewer :: OriginProtocolPolicy
data PriceClass
PriceClass100 :: PriceClass
PriceClass200 :: PriceClass
PriceClassAll :: PriceClass
data SSLProtocol
SSLV3 :: SSLProtocol
TLSV1 :: SSLProtocol
TLSV1_1 :: SSLProtocol
TLSV1_2 :: SSLProtocol
data SSLSupportMethod
SNIOnly :: SSLSupportMethod
VIP :: SSLSupportMethod
data ViewerProtocolPolicy
VPPAllowAll :: ViewerProtocolPolicy
VPPHTTPSOnly :: ViewerProtocolPolicy
VPPRedirectToHTTPS :: ViewerProtocolPolicy
-- | A complex type that lists the AWS accounts, if any, that you included
-- in the TrustedSigners complex type for this distribution.
-- These are the accounts that you want to allow to create signed URLs
-- for private content.
--
-- The Signer complex type lists the AWS account number of the
-- trusted signer or self if the signer is the AWS account that
-- created the distribution. The Signer element also includes
-- the IDs of any active CloudFront key pairs that are associated with
-- the trusted signer's AWS account. If no KeyPairId element
-- appears for a Signer , that signer can't create signed URLs.
--
-- For more information, see Serving Private Content through
-- CloudFront in the Amazon CloudFront Developer Guide .
--
-- See: activeTrustedSigners smart constructor.
data ActiveTrustedSigners
-- | 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 - A complex type that contains one Signer
-- complex type for each trusted signer that is specified in the
-- TrustedSigners complex type. For more information, see
-- ActiveTrustedSigners .
-- - atsEnabled - Enabled is true if any of the AWS
-- accounts listed in the TrustedSigners complex type for this
-- RTMP distribution have active CloudFront key pairs. If not,
-- Enabled is false . For more information, see
-- ActiveTrustedSigners .
-- - atsQuantity - A complex type that contains one
-- Signer complex type for each trusted signer specified in the
-- TrustedSigners complex type. For more information, see
-- ActiveTrustedSigners .
--
activeTrustedSigners :: Bool -> Int -> ActiveTrustedSigners
-- | A complex type that contains one Signer complex type for each
-- trusted signer that is specified in the TrustedSigners
-- complex type. For more information, see ActiveTrustedSigners .
atsItems :: Lens' ActiveTrustedSigners [Signer]
-- | Enabled is true if any of the AWS accounts listed in the
-- TrustedSigners complex type for this RTMP distribution have
-- active CloudFront key pairs. If not, Enabled is
-- false . For more information, see ActiveTrustedSigners
-- .
atsEnabled :: Lens' ActiveTrustedSigners Bool
-- | A complex type that contains one Signer complex type for each
-- trusted signer specified in the TrustedSigners complex type.
-- For more information, see ActiveTrustedSigners .
atsQuantity :: Lens' ActiveTrustedSigners Int
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this distribution.
--
-- See: aliases smart constructor.
data Aliases
-- | Creates a value of Aliases with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - aItems - A complex type that contains the CNAME aliases, if
-- any, that you want to associate with this distribution.
-- - aQuantity - The number of CNAME aliases, if any, that you
-- want to associate with this distribution.
--
aliases :: Int -> Aliases
-- | A complex type that contains the CNAME aliases, if any, that you want
-- to associate with this distribution.
aItems :: Lens' Aliases [Text]
-- | The number of CNAME aliases, if any, that you want to associate with
-- this distribution.
aQuantity :: Lens' Aliases Int
-- | 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 might not
-- want users to have permissions to delete objects from your origin.
--
-- See: allowedMethods smart constructor.
data AllowedMethods
-- | 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 - Undocumented member.
-- - amQuantity - 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 - A complex type that contains the HTTP methods
-- that you want CloudFront to process and forward to your origin.
--
allowedMethods :: Int -> AllowedMethods
-- | Undocumented member.
amCachedMethods :: Lens' AllowedMethods (Maybe CachedMethods)
-- | 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).
amQuantity :: Lens' AllowedMethods Int
-- | A complex type that contains the HTTP methods that you want CloudFront
-- to process and forward to your origin.
amItems :: Lens' AllowedMethods [Method]
-- | A complex type that describes how CloudFront processes requests.
--
-- 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 is never used.
--
-- For the current limit on the number of cache behaviors that you can
-- add to a distribution, see Amazon CloudFront Limits in the
-- AWS General Reference .
--
-- 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.
--
-- For more information about cache behaviors, see Cache Behaviors
-- in the Amazon CloudFront Developer Guide .
--
-- See: cacheBehavior smart constructor.
data 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 - Undocumented member.
-- - cbMaxTTL - The maximum amount of time that you want objects
-- to stay in CloudFront caches 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. For
-- more information, see Specifying How Long Objects and Errors Stay
-- in a CloudFront Edge Cache (Expiration) in the Amazon
-- CloudFront Developer Guide .
-- - cbCompress - Whether you want CloudFront to automatically
-- compress certain files for this cache behavior. If so, specify true;
-- if not, specify false. For more information, see Serving Compressed
-- Files in the Amazon CloudFront Developer Guide .
-- - cbSmoothStreaming - Indicates whether you want to
-- distribute media files in the Microsoft Smooth Streaming format using
-- the origin that is associated with this cache behavior. If so, specify
-- true ; if not, specify false . If you specify
-- true for SmoothStreaming , you can still distribute
-- other content using this cache behavior if the content matches the
-- value of PathPattern .
-- - cbDefaultTTL - The default amount of time that you want
-- objects to stay in CloudFront caches 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. For
-- more information, see Specifying How Long Objects and Errors Stay
-- in a CloudFront Edge Cache (Expiration) in the Amazon
-- CloudFront Developer Guide .
-- - cbPathPattern - The pattern (for example,
-- images/*.jpg ) that specifies which requests to apply the
-- behavior to. When CloudFront receives a viewer 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. For more information, see Path Pattern in the
-- Amazon CloudFront Developer Guide .
-- - cbTargetOriginId - 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 - A complex type that specifies how
-- CloudFront handles query strings and cookies.
-- - cbTrustedSigners - 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, see Serving Private Content through
-- CloudFront in the Amazon 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 - The protocol that viewers can use
-- to access the files in the origin specified by TargetOriginId
-- when a request matches the path pattern in PathPattern . You
-- can specify the following options: * allow-all : Viewers can
-- use HTTP or HTTPS. * redirect-to-https : If a viewer submits
-- an HTTP request, CloudFront returns an HTTP status code of 301 (Moved
-- Permanently) to the viewer along with the HTTPS URL. The viewer then
-- resubmits the request using the new URL. * https-only : If a
-- viewer sends an HTTP request, CloudFront returns an HTTP status code
-- of 403 (Forbidden). For more information about requiring the HTTPS
-- protocol, see Using an HTTPS Connection to Access Your Objects
-- in the Amazon CloudFront Developer Guide .
-- - cbMinTTL - The minimum amount of time that you want objects
-- to stay in CloudFront caches before CloudFront forwards another
-- request to your origin to determine whether the object has been
-- updated. For more information, see Specifying How Long Objects and
-- Errors Stay in a CloudFront Edge Cache (Expiration) in the
-- Amazon Amazon CloudFront Developer Guide . You must specify
-- 0 for MinTTL if you configure CloudFront to forward
-- all headers to your origin (under Headers , if you specify
-- 1 for Quantity and * for Name
-- ).
--
cacheBehavior :: Text -> Text -> ForwardedValues -> TrustedSigners -> ViewerProtocolPolicy -> Integer -> CacheBehavior
-- | Undocumented member.
cbAllowedMethods :: Lens' CacheBehavior (Maybe AllowedMethods)
-- | The maximum amount of time that you want objects to stay in CloudFront
-- caches 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. For more information, see Specifying
-- How Long Objects and Errors Stay in a CloudFront Edge Cache
-- (Expiration) in the Amazon CloudFront Developer Guide .
cbMaxTTL :: Lens' CacheBehavior (Maybe Integer)
-- | Whether you want CloudFront to automatically compress certain files
-- for this cache behavior. If so, specify true; if not, specify false.
-- For more information, see Serving Compressed Files in the
-- Amazon CloudFront Developer Guide .
cbCompress :: Lens' CacheBehavior (Maybe Bool)
-- | Indicates whether you want to distribute media files in the Microsoft
-- Smooth Streaming format using the origin that is associated with this
-- cache behavior. If so, specify true ; if not, specify
-- false . If you specify true for
-- SmoothStreaming , you can still distribute other content
-- using this cache behavior if the content matches the value of
-- PathPattern .
cbSmoothStreaming :: Lens' CacheBehavior (Maybe Bool)
-- | The default amount of time that you want objects to stay in CloudFront
-- caches 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. For more information, see
-- Specifying How Long Objects and Errors Stay in a CloudFront Edge
-- Cache (Expiration) in the Amazon CloudFront Developer Guide
-- .
cbDefaultTTL :: Lens' CacheBehavior (Maybe Integer)
-- | The pattern (for example, images/*.jpg ) that specifies which
-- requests to apply the behavior to. When CloudFront receives a viewer
-- 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. For more information, see Path
-- Pattern in the Amazon CloudFront Developer Guide .
cbPathPattern :: Lens' CacheBehavior Text
-- | 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.
cbTargetOriginId :: Lens' CacheBehavior Text
-- | A complex type that specifies how CloudFront handles query strings and
-- cookies.
cbForwardedValues :: Lens' CacheBehavior ForwardedValues
-- | 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, see
-- Serving Private Content through CloudFront in the Amazon
-- 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.
cbTrustedSigners :: Lens' CacheBehavior TrustedSigners
-- | The protocol that viewers can use to access the files in the origin
-- specified by TargetOriginId when a request matches the path
-- pattern in PathPattern . You can specify the following
-- options: * allow-all : Viewers can use HTTP or HTTPS. *
-- redirect-to-https : If a viewer submits an HTTP request,
-- CloudFront returns an HTTP status code of 301 (Moved Permanently) to
-- the viewer along with the HTTPS URL. The viewer then resubmits the
-- request using the new URL. * https-only : If a viewer sends
-- an HTTP request, CloudFront returns an HTTP status code of 403
-- (Forbidden). For more information about requiring the HTTPS protocol,
-- see Using an HTTPS Connection to Access Your Objects in the
-- Amazon CloudFront Developer Guide .
cbViewerProtocolPolicy :: Lens' CacheBehavior ViewerProtocolPolicy
-- | The minimum amount of time that you want objects to stay in CloudFront
-- caches before CloudFront forwards another request to your origin to
-- determine whether the object has been updated. For more information,
-- see Specifying How Long Objects and Errors Stay in a CloudFront
-- Edge Cache (Expiration) in the Amazon Amazon CloudFront
-- Developer Guide . You must specify 0 for MinTTL
-- if you configure CloudFront to forward all headers to your origin
-- (under Headers , if you specify 1 for
-- Quantity and * for Name ).
cbMinTTL :: Lens' CacheBehavior Integer
-- | A complex type that contains zero or more CacheBehavior
-- elements.
--
-- See: cacheBehaviors smart constructor.
data CacheBehaviors
-- | 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 - Optional: A complex type that contains cache
-- behaviors for this distribution. If Quantity is 0 ,
-- you can omit Items .
-- - cbQuantity - The number of cache behaviors for this
-- distribution.
--
cacheBehaviors :: Int -> CacheBehaviors
-- | Optional: A complex type that contains cache behaviors for this
-- distribution. If Quantity is 0 , you can omit
-- Items .
cbItems :: Lens' CacheBehaviors [CacheBehavior]
-- | The number of cache behaviors for this distribution.
cbQuantity :: Lens' CacheBehaviors Int
-- | 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 Amazon 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.
data CachedMethods
-- | 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 - 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 - A complex type that contains the HTTP methods
-- that you want CloudFront to cache responses to.
--
cachedMethods :: Int -> CachedMethods
-- | 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).
cmQuantity :: Lens' CachedMethods Int
-- | A complex type that contains the HTTP methods that you want CloudFront
-- to cache responses to.
cmItems :: Lens' CachedMethods [Method]
-- | CloudFront origin access identity.
--
-- See: cloudFrontOriginAccessIdentity smart constructor.
data CloudFrontOriginAccessIdentity
-- | 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 - The current
-- configuration information for the identity.
-- - cfoaiId - The ID for the origin access identity. For
-- example: E74FTE3AJFJ256A .
-- - cfoaiS3CanonicalUserId - The Amazon S3 canonical user ID
-- for the origin access identity, used when giving the origin access
-- identity read permission to an object in Amazon S3.
--
cloudFrontOriginAccessIdentity :: Text -> Text -> CloudFrontOriginAccessIdentity
-- | The current configuration information for the identity.
cfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CloudFrontOriginAccessIdentity (Maybe CloudFrontOriginAccessIdentityConfig)
-- | The ID for the origin access identity. For example:
-- E74FTE3AJFJ256A .
cfoaiId :: Lens' CloudFrontOriginAccessIdentity Text
-- | The Amazon S3 canonical user ID for the origin access identity, used
-- when giving the origin access identity read permission to an object in
-- Amazon S3.
cfoaiS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentity Text
-- | Origin access identity configuration. Send a GET request to
-- the /CloudFront API version CloudFrontidentity
-- ID/config resource.
--
-- See: cloudFrontOriginAccessIdentityConfig smart
-- constructor.
data CloudFrontOriginAccessIdentityConfig
-- | 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 - 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
-- already sent in a previous identity request, 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 - Any comments you want to include about the
-- origin access identity.
--
cloudFrontOriginAccessIdentityConfig :: Text -> Text -> CloudFrontOriginAccessIdentityConfig
-- | 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
-- already sent in a previous identity request, 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.
cfoaicCallerReference :: Lens' CloudFrontOriginAccessIdentityConfig Text
-- | Any comments you want to include about the origin access identity.
cfoaicComment :: Lens' CloudFrontOriginAccessIdentityConfig Text
-- | Lists the origin access identities for CloudFront.Send a GET
-- request to the /CloudFront API version
-- origin-access-identitycloudfront resource. The response
-- includes a CloudFrontOriginAccessIdentityList element with
-- zero or more CloudFrontOriginAccessIdentitySummary child
-- elements. By default, your entire list of origin access identities is
-- returned in one single page. If the list is long, you can paginate it
-- using the MaxItems and Marker parameters.
--
-- See: cloudFrontOriginAccessIdentityList smart
-- constructor.
data 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 - A complex type that contains one
-- CloudFrontOriginAccessIdentitySummary element for each origin
-- access identity that was created by the current AWS account.
-- - cfoailNextMarker - 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 - Use this when paginating results to indicate
-- where to begin in your list of origin access identities. The results
-- include identities in the list that occur after the marker. To get the
-- next page of results, set the Marker to the value of the
-- NextMarker from the current page's response (which is also
-- the ID of the last identity on that page).
-- - cfoailMaxItems - The maximum number of origin access
-- identities you want in the response body.
-- - cfoailIsTruncated - 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 - The number of CloudFront origin access
-- identities that were created by the current AWS account.
--
cloudFrontOriginAccessIdentityList :: Text -> Int -> Bool -> Int -> CloudFrontOriginAccessIdentityList
-- | A complex type that contains one
-- CloudFrontOriginAccessIdentitySummary element for each origin
-- access identity that was created by the current AWS account.
cfoailItems :: Lens' CloudFrontOriginAccessIdentityList [CloudFrontOriginAccessIdentitySummary]
-- | 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.
cfoailNextMarker :: Lens' CloudFrontOriginAccessIdentityList (Maybe Text)
-- | Use this when paginating results to indicate where to begin in your
-- list of origin access identities. The results include identities in
-- the list that occur after the marker. To get the next page of results,
-- set the Marker to the value of the NextMarker from
-- the current page's response (which is also the ID of the last identity
-- on that page).
cfoailMarker :: Lens' CloudFrontOriginAccessIdentityList Text
-- | The maximum number of origin access identities you want in the
-- response body.
cfoailMaxItems :: Lens' CloudFrontOriginAccessIdentityList Int
-- | 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.
cfoailIsTruncated :: Lens' CloudFrontOriginAccessIdentityList Bool
-- | The number of CloudFront origin access identities that were created by
-- the current AWS account.
cfoailQuantity :: Lens' CloudFrontOriginAccessIdentityList Int
-- | Summary of the information about a CloudFront origin access identity.
--
-- See: cloudFrontOriginAccessIdentitySummary smart
-- constructor.
data CloudFrontOriginAccessIdentitySummary
-- | 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 - The ID for the origin access identity. For
-- example: E74FTE3AJFJ256A .
-- - cfoaisS3CanonicalUserId - 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 - The comment for this origin access
-- identity, as originally specified when created.
--
cloudFrontOriginAccessIdentitySummary :: Text -> Text -> Text -> CloudFrontOriginAccessIdentitySummary
-- | The ID for the origin access identity. For example:
-- E74FTE3AJFJ256A .
cfoaisId :: Lens' CloudFrontOriginAccessIdentitySummary Text
-- | 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.
cfoaisS3CanonicalUserId :: Lens' CloudFrontOriginAccessIdentitySummary Text
-- | The comment for this origin access identity, as originally specified
-- when created.
cfoaisComment :: Lens' CloudFrontOriginAccessIdentitySummary Text
-- | A complex type that specifies whether you want CloudFront to forward
-- cookies to the origin and, if so, which ones. For more information
-- about forwarding cookies to the origin, see How CloudFront
-- Forwards, Caches, and Logs Cookies in the Amazon CloudFront
-- Developer Guide .
--
-- See: cookieNames smart constructor.
data 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 - A complex type that contains one Name
-- element for each cookie that you want CloudFront to forward to the
-- origin for this cache behavior.
-- - cnQuantity - The number of different cookies that you want
-- CloudFront to forward to the origin for this cache behavior.
--
cookieNames :: Int -> CookieNames
-- | A complex type that contains one Name element for each cookie
-- that you want CloudFront to forward to the origin for this cache
-- behavior.
cnItems :: Lens' CookieNames [Text]
-- | The number of different cookies that you want CloudFront to forward to
-- the origin for this cache behavior.
cnQuantity :: Lens' CookieNames Int
-- | A complex type that specifies whether you want CloudFront to forward
-- cookies to the origin and, if so, which ones. For more information
-- about forwarding cookies to the origin, see How CloudFront
-- Forwards, Caches, and Logs Cookies in the Amazon CloudFront
-- Developer Guide .
--
-- See: cookiePreference smart constructor.
data CookiePreference
-- | 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 - Required if you specify
-- whitelist for the value of Forward: . A complex type
-- that specifies how many different cookies you want CloudFront to
-- forward to the origin for this cache behavior and, if you want to
-- forward selected cookies, the names of those cookies. If you specify
-- all or none for the value of Forward , omit
-- WhitelistedNames . If you change the value of
-- Forward from whitelist to all or none and you don't
-- delete the WhitelistedNames element and its child elements,
-- CloudFront deletes them automatically. For the current limit on the
-- number of cookie names that you can whitelist for each cache behavior,
-- see Amazon CloudFront Limits in the AWS General
-- Reference .
-- - cpForward - Specifies which cookies to forward to the
-- origin for this cache behavior: all, none, or the list of cookies
-- specified in the WhitelistedNames complex type. Amazon S3
-- doesn't process cookies. When the cache behavior is forwarding
-- requests to an Amazon S3 origin, specify none for the Forward
-- element.
--
cookiePreference :: ItemSelection -> CookiePreference
-- | Required if you specify whitelist for the value of
-- Forward: . A complex type that specifies how many different
-- cookies you want CloudFront to forward to the origin for this cache
-- behavior and, if you want to forward selected cookies, the names of
-- those cookies. If you specify all or none for the value of
-- Forward , omit WhitelistedNames . If you change the
-- value of Forward from whitelist to all or none and
-- you don't delete the WhitelistedNames element and its child
-- elements, CloudFront deletes them automatically. For the current limit
-- on the number of cookie names that you can whitelist for each cache
-- behavior, see Amazon CloudFront Limits in the AWS General
-- Reference .
cpWhitelistedNames :: Lens' CookiePreference (Maybe CookieNames)
-- | Specifies which cookies to forward to the origin for this cache
-- behavior: all, none, or the list of cookies specified in the
-- WhitelistedNames complex type. Amazon S3 doesn't process
-- cookies. When the cache behavior is forwarding requests to an Amazon
-- S3 origin, specify none for the Forward element.
cpForward :: Lens' CookiePreference ItemSelection
-- | A complex type that controls:
--
--
-- - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx
-- range with custom error messages before returning the response to the
-- viewer.
-- - How long CloudFront caches HTTP status codes in the 4xx and 5xx
-- range.
--
--
-- For more information about custom error pages, see Customizing
-- Error Responses in the Amazon CloudFront Developer Guide .
--
-- See: customErrorResponse smart constructor.
data CustomErrorResponse
-- | 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 - The path to the custom error page that
-- you want CloudFront to return to a viewer when your origin returns the
-- HTTP status code specified by ErrorCode , for example,
-- 4xx-errors403-forbidden.html . If you want to store
-- your objects and your custom error pages in different locations, your
-- distribution must include a cache behavior for which the following is
-- true: * The value of PathPattern matches the path to your
-- custom error messages. For example, suppose you saved custom error
-- pages for 4xx errors in an Amazon S3 bucket in a directory named
-- /4xx-errors . Your distribution must include a cache behavior
-- for which the path pattern routes requests for your custom error pages
-- to that location, for example, 4xx-errors* . * The
-- value of TargetOriginId specifies the value of the
-- ID element for the origin that contains your custom error
-- pages. If you specify a value for ResponsePagePath , you must
-- also specify a value for ResponseCode . If you don't want to
-- specify a value, include an empty element,
-- ResponsePagePath , in the XML document. We recommend
-- that you store custom error pages in an Amazon S3 bucket. If you store
-- custom error pages on an HTTP server and the server starts to return
-- 5xx errors, CloudFront can't get the files that you want to return to
-- viewers because the origin server is unavailable.
-- - ceResponseCode - The HTTP status code that you want
-- CloudFront to return to the viewer along with the custom error page.
-- There are a variety of reasons that you might want CloudFront to
-- return a status code different from the status code that your origin
-- returned to CloudFront, for example: * Some Internet devices (some
-- firewalls and corporate proxies, for example) intercept HTTP 4xx and
-- 5xx and prevent the response from being returned to the viewer. If you
-- substitute 200 , the response typically won't be intercepted.
-- * If you don't care about distinguishing among different client errors
-- or server errors, you can specify 400 or 500 as the
-- ResponseCode for all 4xx or 5xx errors. * You might want to
-- return a 200 status code (OK) and static website so your
-- customers don't know that your website is down. If you specify a value
-- for ResponseCode , you must also specify a value for
-- ResponsePagePath . If you don't want to specify a value,
-- include an empty element, ResponseCode , in the XML
-- document.
-- - ceErrorCachingMinTTL - The minimum amount of time, in
-- seconds, that you want CloudFront to cache the HTTP status code
-- specified in ErrorCode . When this time period has elapsed,
-- CloudFront queries your origin to see whether the problem that caused
-- the error has been resolved and the requested object is now available.
-- If you don't want to specify a value, include an empty element,
-- ErrorCachingMinTTL , in the XML document. For more
-- information, see Customizing Error Responses in the Amazon
-- CloudFront Developer Guide .
-- - ceErrorCode - The HTTP status code for which you want to
-- specify a custom error page and/or a caching duration.
--
customErrorResponse :: Int -> CustomErrorResponse
-- | The path to the custom error page that you want CloudFront to return
-- to a viewer when your origin returns the HTTP status code specified by
-- ErrorCode , for example,
-- 4xx-errors403-forbidden.html . If you want to store
-- your objects and your custom error pages in different locations, your
-- distribution must include a cache behavior for which the following is
-- true: * The value of PathPattern matches the path to your
-- custom error messages. For example, suppose you saved custom error
-- pages for 4xx errors in an Amazon S3 bucket in a directory named
-- /4xx-errors . Your distribution must include a cache behavior
-- for which the path pattern routes requests for your custom error pages
-- to that location, for example, 4xx-errors* . * The
-- value of TargetOriginId specifies the value of the
-- ID element for the origin that contains your custom error
-- pages. If you specify a value for ResponsePagePath , you must
-- also specify a value for ResponseCode . If you don't want to
-- specify a value, include an empty element,
-- ResponsePagePath , in the XML document. We recommend
-- that you store custom error pages in an Amazon S3 bucket. If you store
-- custom error pages on an HTTP server and the server starts to return
-- 5xx errors, CloudFront can't get the files that you want to return to
-- viewers because the origin server is unavailable.
ceResponsePagePath :: Lens' CustomErrorResponse (Maybe Text)
-- | The HTTP status code that you want CloudFront to return to the viewer
-- along with the custom error page. There are a variety of reasons that
-- you might want CloudFront to return a status code different from the
-- status code that your origin returned to CloudFront, for example: *
-- Some Internet devices (some firewalls and corporate proxies, for
-- example) intercept HTTP 4xx and 5xx and prevent the response from
-- being returned to the viewer. If you substitute 200 , the
-- response typically won't be intercepted. * If you don't care about
-- distinguishing among different client errors or server errors, you can
-- specify 400 or 500 as the ResponseCode for
-- all 4xx or 5xx errors. * You might want to return a 200
-- status code (OK) and static website so your customers don't know that
-- your website is down. If you specify a value for ResponseCode
-- , you must also specify a value for ResponsePagePath . If you
-- don't want to specify a value, include an empty element,
-- ResponseCode , in the XML document.
ceResponseCode :: Lens' CustomErrorResponse (Maybe Text)
-- | The minimum amount of time, in seconds, that you want CloudFront to
-- cache the HTTP status code specified in ErrorCode . When this
-- time period has elapsed, CloudFront queries your origin to see whether
-- the problem that caused the error has been resolved and the requested
-- object is now available. If you don't want to specify a value, include
-- an empty element, ErrorCachingMinTTL , in the XML
-- document. For more information, see Customizing Error Responses
-- in the Amazon CloudFront Developer Guide .
ceErrorCachingMinTTL :: Lens' CustomErrorResponse (Maybe Integer)
-- | The HTTP status code for which you want to specify a custom error page
-- and/or a caching duration.
ceErrorCode :: Lens' CustomErrorResponse Int
-- | A complex type that controls:
--
--
-- - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx
-- range with custom error messages before returning the response to the
-- viewer.
-- - How long CloudFront caches HTTP status codes in the 4xx and 5xx
-- range.
--
--
-- For more information about custom error pages, see Customizing
-- Error Responses in the Amazon CloudFront Developer Guide .
--
-- See: customErrorResponses smart constructor.
data CustomErrorResponses
-- | 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 - A complex type that contains a
-- CustomErrorResponse element for each HTTP status code for
-- which you want to specify a custom error page and/or a caching
-- duration.
-- - cerQuantity - The number of HTTP status codes for which you
-- want to specify a custom error page and/or a caching duration. If
-- Quantity is 0 , you can omit Items .
--
customErrorResponses :: Int -> CustomErrorResponses
-- | A complex type that contains a CustomErrorResponse element
-- for each HTTP status code for which you want to specify a custom error
-- page and/or a caching duration.
cerItems :: Lens' CustomErrorResponses [CustomErrorResponse]
-- | The number of HTTP status codes for which you want to specify a custom
-- error page and/or a caching duration. If Quantity is
-- 0 , you can omit Items .
cerQuantity :: Lens' CustomErrorResponses Int
-- | A complex type that contains the list of Custom Headers for each
-- origin.
--
-- See: customHeaders smart constructor.
data CustomHeaders
-- | 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 - Optional : A list that contains one
-- OriginCustomHeader element for each custom header that you
-- want CloudFront to forward to the origin. If Quantity is 0 ,
-- omit Items .
-- - chQuantity - The number of custom headers, if any, for this
-- distribution.
--
customHeaders :: Int -> CustomHeaders
-- | Optional : A list that contains one OriginCustomHeader
-- element for each custom header that you want CloudFront to forward to
-- the origin. If Quantity is 0 , omit Items .
chItems :: Lens' CustomHeaders [OriginCustomHeader]
-- | The number of custom headers, if any, for this distribution.
chQuantity :: Lens' CustomHeaders Int
-- | A customer origin.
--
-- See: customOriginConfig smart constructor.
data 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 - The SSL/TLS protocols that you want
-- CloudFront to use when communicating with your origin over HTTPS.
-- - cocHTTPPort - The HTTP port the custom origin listens
-- on.
-- - cocHTTPSPort - The HTTPS port the custom origin listens
-- on.
-- - cocOriginProtocolPolicy - The origin protocol policy to
-- apply to your origin.
--
customOriginConfig :: Int -> Int -> OriginProtocolPolicy -> CustomOriginConfig
-- | The SSL/TLS protocols that you want CloudFront to use when
-- communicating with your origin over HTTPS.
cocOriginSSLProtocols :: Lens' CustomOriginConfig (Maybe OriginSSLProtocols)
-- | The HTTP port the custom origin listens on.
cocHTTPPort :: Lens' CustomOriginConfig Int
-- | The HTTPS port the custom origin listens on.
cocHTTPSPort :: Lens' CustomOriginConfig Int
-- | The origin protocol policy to apply to your origin.
cocOriginProtocolPolicy :: Lens' CustomOriginConfig OriginProtocolPolicy
-- | 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.
data DefaultCacheBehavior
-- | 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 - Undocumented member.
-- - dcbMaxTTL - Undocumented member.
-- - dcbCompress - Whether you want CloudFront to automatically
-- compress certain files for this cache behavior. If so, specify
-- true ; if not, specify false . For more information,
-- see Serving Compressed Files in the Amazon CloudFront
-- Developer Guide .
-- - dcbSmoothStreaming - Indicates whether you want to
-- distribute media files in the Microsoft Smooth Streaming format using
-- the origin that is associated with this cache behavior. If so, specify
-- true ; if not, specify false . If you specify
-- true for SmoothStreaming , you can still distribute
-- other content using this cache behavior if the content matches the
-- value of PathPattern .
-- - dcbDefaultTTL - The default amount of time that you want
-- objects to stay in CloudFront caches 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. For
-- more information, see Specifying How Long Objects and Errors Stay
-- in a CloudFront Edge Cache (Expiration) in the Amazon
-- CloudFront Developer Guide .
-- - dcbTargetOriginId - 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 - A complex type that specifies how
-- CloudFront handles query strings and cookies.
-- - dcbTrustedSigners - 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, see Serving Private Content through
-- CloudFront in the Amazon 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 - The protocol that viewers can use
-- to access the files in the origin specified by TargetOriginId
-- when a request matches the path pattern in PathPattern . You
-- can specify the following options: * allow-all : Viewers can
-- use HTTP or HTTPS. * redirect-to-https : If a viewer submits
-- an HTTP request, CloudFront returns an HTTP status code of 301 (Moved
-- Permanently) to the viewer along with the HTTPS URL. The viewer then
-- resubmits the request using the new URL. * https-only : If a
-- viewer sends an HTTP request, CloudFront returns an HTTP status code
-- of 403 (Forbidden). For more information about requiring the HTTPS
-- protocol, see Using an HTTPS Connection to Access Your Objects
-- in the Amazon CloudFront Developer Guide .
-- - dcbMinTTL - The minimum amount of time that you want
-- objects to stay in CloudFront caches before CloudFront forwards
-- another request to your origin to determine whether the object has
-- been updated. For more information, see Specifying How Long Objects
-- and Errors Stay in a CloudFront Edge Cache (Expiration) in the
-- Amazon Amazon CloudFront Developer Guide . You must specify
-- 0 for MinTTL if you configure CloudFront to forward
-- all headers to your origin (under Headers , if you specify
-- 1 for Quantity and * for Name
-- ).
--
defaultCacheBehavior :: Text -> ForwardedValues -> TrustedSigners -> ViewerProtocolPolicy -> Integer -> DefaultCacheBehavior
-- | Undocumented member.
dcbAllowedMethods :: Lens' DefaultCacheBehavior (Maybe AllowedMethods)
-- | Undocumented member.
dcbMaxTTL :: Lens' DefaultCacheBehavior (Maybe Integer)
-- | Whether you want CloudFront to automatically compress certain files
-- for this cache behavior. If so, specify true ; if not,
-- specify false . For more information, see Serving
-- Compressed Files in the Amazon CloudFront Developer Guide .
dcbCompress :: Lens' DefaultCacheBehavior (Maybe Bool)
-- | Indicates whether you want to distribute media files in the Microsoft
-- Smooth Streaming format using the origin that is associated with this
-- cache behavior. If so, specify true ; if not, specify
-- false . If you specify true for
-- SmoothStreaming , you can still distribute other content
-- using this cache behavior if the content matches the value of
-- PathPattern .
dcbSmoothStreaming :: Lens' DefaultCacheBehavior (Maybe Bool)
-- | The default amount of time that you want objects to stay in CloudFront
-- caches 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. For more information, see
-- Specifying How Long Objects and Errors Stay in a CloudFront Edge
-- Cache (Expiration) in the Amazon CloudFront Developer Guide
-- .
dcbDefaultTTL :: Lens' DefaultCacheBehavior (Maybe Integer)
-- | 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.
dcbTargetOriginId :: Lens' DefaultCacheBehavior Text
-- | A complex type that specifies how CloudFront handles query strings and
-- cookies.
dcbForwardedValues :: Lens' DefaultCacheBehavior ForwardedValues
-- | 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, see
-- Serving Private Content through CloudFront in the Amazon
-- 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.
dcbTrustedSigners :: Lens' DefaultCacheBehavior TrustedSigners
-- | The protocol that viewers can use to access the files in the origin
-- specified by TargetOriginId when a request matches the path
-- pattern in PathPattern . You can specify the following
-- options: * allow-all : Viewers can use HTTP or HTTPS. *
-- redirect-to-https : If a viewer submits an HTTP request,
-- CloudFront returns an HTTP status code of 301 (Moved Permanently) to
-- the viewer along with the HTTPS URL. The viewer then resubmits the
-- request using the new URL. * https-only : If a viewer sends
-- an HTTP request, CloudFront returns an HTTP status code of 403
-- (Forbidden). For more information about requiring the HTTPS protocol,
-- see Using an HTTPS Connection to Access Your Objects in the
-- Amazon CloudFront Developer Guide .
dcbViewerProtocolPolicy :: Lens' DefaultCacheBehavior ViewerProtocolPolicy
-- | The minimum amount of time that you want objects to stay in CloudFront
-- caches before CloudFront forwards another request to your origin to
-- determine whether the object has been updated. For more information,
-- see Specifying How Long Objects and Errors Stay in a CloudFront
-- Edge Cache (Expiration) in the Amazon Amazon CloudFront
-- Developer Guide . You must specify 0 for MinTTL
-- if you configure CloudFront to forward all headers to your origin
-- (under Headers , if you specify 1 for
-- Quantity and * for Name ).
dcbMinTTL :: Lens' DefaultCacheBehavior Integer
-- | The distribution's information.
--
-- See: distribution smart constructor.
data 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 - The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
-- - dARN - The ARN (Amazon Resource Name) for the distribution.
-- For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
-- - dStatus - This response element indicates the current
-- status of the distribution. When the status is Deployed , the
-- distribution's information is fully propagated to all CloudFront edge
-- locations.
-- - dLastModifiedTime - The date and time the distribution was
-- last modified.
-- - dInProgressInvalidationBatches - The number of invalidation
-- batches currently in progress.
-- - dDomainName - The domain name corresponding to the
-- distribution. For example: d604721fxaaqy9.cloudfront.net
-- .
-- - dActiveTrustedSigners - 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 - The current configuration information
-- for the distribution. Send a GET request to the
-- /CloudFront API version distribution IDconfig
-- resource.
--
distribution :: Text -> Text -> Text -> UTCTime -> Int -> Text -> ActiveTrustedSigners -> DistributionConfig -> Distribution
-- | The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
dId :: Lens' Distribution Text
-- | The ARN (Amazon Resource Name) for the distribution. For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
dARN :: Lens' Distribution Text
-- | This response element indicates the current status of the
-- distribution. When the status is Deployed , the
-- distribution's information is fully propagated to all CloudFront edge
-- locations.
dStatus :: Lens' Distribution Text
-- | The date and time the distribution was last modified.
dLastModifiedTime :: Lens' Distribution UTCTime
-- | The number of invalidation batches currently in progress.
dInProgressInvalidationBatches :: Lens' Distribution Int
-- | The domain name corresponding to the distribution. For example:
-- d604721fxaaqy9.cloudfront.net .
dDomainName :: Lens' Distribution Text
-- | 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.
dActiveTrustedSigners :: Lens' Distribution ActiveTrustedSigners
-- | The current configuration information for the distribution. Send a
-- GET request to the /CloudFront API version
-- distribution IDconfig resource.
dDistributionConfig :: Lens' Distribution DistributionConfig
-- | A distribution configuration.
--
-- See: distributionConfig smart constructor.
data 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:
--
--
-- - dcHTTPVersion - (Optional) Specify the maximum HTTP version
-- that you want viewers to use to communicate with CloudFront. The
-- default value for new web distributions is http2. Viewers that don't
-- support HTTP2 automatically use an earlier HTTP version. For
-- viewers and CloudFront to use HTTP2, viewers must support TLS 1.2
-- or later, and must support Server Name Identification (SNI). In
-- general, configuring CloudFront to communicate with viewers using
-- HTTP2 reduces latency. You can improve performance by optimizing
-- for HTTP2. For more information, do an Internet search for "http/2
-- optimization."
-- - dcAliases - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this distribution.
-- - dcDefaultRootObject - The object that you want CloudFront
-- to request from your origin (for example, index.html ) when a
-- viewer requests the root URL for your distribution
-- (http://www.example.com ) instead of an object in your
-- distribution
-- (http://www.example.com/product-description.html ).
-- Specifying a default root object avoids exposing the contents of your
-- distribution. Specify only the object name, for example,
-- index.html . Do not add a / before the object name.
-- 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. For more information about the default root object, see
-- Creating a Default Root Object in the Amazon CloudFront
-- Developer Guide .
-- - dcPriceClass - The price class that corresponds with the
-- maximum price that you want to pay for CloudFront service. If you
-- specify PriceClass_All , CloudFront responds to requests for
-- your objects from all CloudFront edge locations. If you specify a
-- price class other than PriceClass_All , CloudFront serves
-- your objects from the CloudFront edge location that has the lowest
-- latency among the edge locations in your price class. Viewers who are
-- in or near regions that are excluded from your specified price class
-- may encounter slower performance. For more information about price
-- classes, see Choosing the Price Class for a CloudFront
-- Distribution in the Amazon CloudFront Developer Guide . For
-- information about CloudFront pricing, including how price classes map
-- to CloudFront regions, see Amazon CloudFront Pricing .
-- - dcCustomErrorResponses - A complex type that controls the
-- following: * Whether CloudFront replaces HTTP status codes in the 4xx
-- and 5xx range with custom error messages before returning the response
-- to the viewer. * How long CloudFront caches HTTP status codes in the
-- 4xx and 5xx range. For more information about custom error pages, see
-- Customizing Error Responses in the Amazon CloudFront
-- Developer Guide .
-- - dcWebACLId - A unique identifier that specifies the AWS WAF
-- web ACL, if any, to associate with this distribution. AWS WAF is a web
-- application firewall that lets you monitor the HTTP and HTTPS requests
-- that are forwarded to CloudFront, and lets you control access to your
-- content. Based on conditions that you specify, such as the IP
-- addresses that requests originate from or the values of query strings,
-- CloudFront responds to requests either with the requested content or
-- with an HTTP 403 status code (Forbidden). You can also configure
-- CloudFront to return a custom error page when a request is blocked.
-- For more information about AWS WAF, see the AWS WAF Developer
-- Guide .
-- - dcViewerCertificate - Undocumented member.
-- - dcRestrictions - Undocumented member.
-- - dcLogging - A complex type that controls whether access
-- logs are written for the distribution. For more information about
-- logging, see Access Logs in the Amazon CloudFront Developer
-- Guide .
-- - dcCacheBehaviors - A complex type that contains zero or
-- more CacheBehavior elements.
-- - dcIsIPV6Enabled - If you want CloudFront to respond to IPv6
-- DNS requests with an IPv6 address for your distribution, specify
-- true . If you specify false , CloudFront responds to
-- IPv6 DNS requests with the DNS response code NOERROR and with
-- no IP addresses. This allows viewers to submit a second request, for
-- an IPv4 address for your distribution. In general, you should enable
-- IPv6 if you have users on IPv6 networks who want to access your
-- content. However, if you're using signed URLs or signed cookies to
-- restrict access to your content, and if you're using a custom policy
-- that includes the IpAddress parameter to restrict the IP
-- addresses that can access your content, do not enable IPv6. If you
-- want to restrict access to some content by IP address and not restrict
-- access to other content (or restrict access but not by IP address),
-- you can create two distributions. For more information, see
-- Creating a Signed URL Using a Custom Policy in the Amazon
-- CloudFront Developer Guide . If you're using an Amazon Route 53
-- alias resource record set to route traffic to your CloudFront
-- distribution, you need to create a second alias resource record set
-- when both of the following are true: * You enable IPv6 for the
-- distribution * You're using alternate domain names in the URLs for
-- your objects For more information, see Routing Traffic to an Amazon
-- CloudFront Web Distribution by Using Your Domain Name in the
-- Amazon Route 53 Developer Guide . If you created a CNAME
-- resource record set, either with Amazon Route 53 or with another DNS
-- service, you don't need to make any changes. A CNAME record will route
-- traffic to your distribution regardless of the IP address format of
-- the viewer request.
-- - dcCallerReference - A unique value (for example, a
-- date-time stamp) that ensures that the request can't be replayed. If
-- the value of CallerReference is new (regardless of the
-- content of the DistributionConfig object), CloudFront creates
-- a new distribution. If CallerReference is a value you already
-- sent in a previous request to create a distribution, and if the
-- content of the DistributionConfig is identical to the
-- original request (ignoring white space), CloudFront returns the same
-- the response that it returned to the original request. If
-- 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 - A complex type that contains information about
-- origins for this distribution.
-- - dcDefaultCacheBehavior - 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 - Any comments you want to include about the
-- distribution. If you don't want to specify a comment, include an empty
-- Comment element. To delete an existing comment, update the
-- distribution configuration and include an empty Comment
-- element. To add or change a comment, update the distribution
-- configuration and specify the new comment.
-- - dcEnabled - 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 and
-- Prefix , the values are automatically deleted.
--
distributionConfig :: Text -> Origins -> DefaultCacheBehavior -> Text -> Bool -> DistributionConfig
-- | (Optional) Specify the maximum HTTP version that you want viewers to
-- use to communicate with CloudFront. The default value for new web
-- distributions is http2. Viewers that don't support HTTP2
-- automatically use an earlier HTTP version. For viewers and CloudFront
-- to use HTTP2, viewers must support TLS 1.2 or later, and must
-- support Server Name Identification (SNI). In general, configuring
-- CloudFront to communicate with viewers using HTTP2 reduces latency.
-- You can improve performance by optimizing for HTTP2. For more
-- information, do an Internet search for "http/2 optimization."
dcHTTPVersion :: Lens' DistributionConfig (Maybe HTTPVersion)
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this distribution.
dcAliases :: Lens' DistributionConfig (Maybe Aliases)
-- | The object that you want CloudFront to request from your origin (for
-- example, index.html ) when a viewer requests the root URL for
-- your distribution (http://www.example.com ) instead of
-- an object in your distribution
-- (http://www.example.com/product-description.html ).
-- Specifying a default root object avoids exposing the contents of your
-- distribution. Specify only the object name, for example,
-- index.html . Do not add a / before the object name.
-- 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. For more information about the default root object, see
-- Creating a Default Root Object in the Amazon CloudFront
-- Developer Guide .
dcDefaultRootObject :: Lens' DistributionConfig (Maybe Text)
-- | The price class that corresponds with the maximum price that you want
-- to pay for CloudFront service. If you specify PriceClass_All
-- , CloudFront responds to requests for your objects from all CloudFront
-- edge locations. If you specify a price class other than
-- PriceClass_All , CloudFront serves your objects from the
-- CloudFront edge location that has the lowest latency among the edge
-- locations in your price class. Viewers who are in or near regions that
-- are excluded from your specified price class may encounter slower
-- performance. For more information about price classes, see Choosing
-- the Price Class for a CloudFront Distribution in the Amazon
-- CloudFront Developer Guide . For information about CloudFront
-- pricing, including how price classes map to CloudFront regions, see
-- Amazon CloudFront Pricing .
dcPriceClass :: Lens' DistributionConfig (Maybe PriceClass)
-- | A complex type that controls the following: * Whether CloudFront
-- replaces HTTP status codes in the 4xx and 5xx range with custom error
-- messages before returning the response to the viewer. * How long
-- CloudFront caches HTTP status codes in the 4xx and 5xx range. For more
-- information about custom error pages, see Customizing Error
-- Responses in the Amazon CloudFront Developer Guide .
dcCustomErrorResponses :: Lens' DistributionConfig (Maybe CustomErrorResponses)
-- | A unique identifier that specifies the AWS WAF web ACL, if any, to
-- associate with this distribution. AWS WAF is a web application
-- firewall that lets you monitor the HTTP and HTTPS requests that are
-- forwarded to CloudFront, and lets you control access to your content.
-- Based on conditions that you specify, such as the IP addresses that
-- requests originate from or the values of query strings, CloudFront
-- responds to requests either with the requested content or with an HTTP
-- 403 status code (Forbidden). You can also configure CloudFront to
-- return a custom error page when a request is blocked. For more
-- information about AWS WAF, see the AWS WAF Developer Guide .
dcWebACLId :: Lens' DistributionConfig (Maybe Text)
-- | Undocumented member.
dcViewerCertificate :: Lens' DistributionConfig (Maybe ViewerCertificate)
-- | Undocumented member.
dcRestrictions :: Lens' DistributionConfig (Maybe Restrictions)
-- | A complex type that controls whether access logs are written for the
-- distribution. For more information about logging, see Access
-- Logs in the Amazon CloudFront Developer Guide .
dcLogging :: Lens' DistributionConfig (Maybe LoggingConfig)
-- | A complex type that contains zero or more CacheBehavior
-- elements.
dcCacheBehaviors :: Lens' DistributionConfig (Maybe CacheBehaviors)
-- | If you want CloudFront to respond to IPv6 DNS requests with an IPv6
-- address for your distribution, specify true . If you specify
-- false , CloudFront responds to IPv6 DNS requests with the DNS
-- response code NOERROR and with no IP addresses. This allows
-- viewers to submit a second request, for an IPv4 address for your
-- distribution. In general, you should enable IPv6 if you have users on
-- IPv6 networks who want to access your content. However, if you're
-- using signed URLs or signed cookies to restrict access to your
-- content, and if you're using a custom policy that includes the
-- IpAddress parameter to restrict the IP addresses that can
-- access your content, do not enable IPv6. If you want to restrict
-- access to some content by IP address and not restrict access to other
-- content (or restrict access but not by IP address), you can create two
-- distributions. For more information, see Creating a Signed URL
-- Using a Custom Policy in the Amazon CloudFront Developer
-- Guide . If you're using an Amazon Route 53 alias resource record
-- set to route traffic to your CloudFront distribution, you need to
-- create a second alias resource record set when both of the following
-- are true: * You enable IPv6 for the distribution * You're using
-- alternate domain names in the URLs for your objects For more
-- information, see Routing Traffic to an Amazon CloudFront Web
-- Distribution by Using Your Domain Name in the Amazon Route 53
-- Developer Guide . If you created a CNAME resource record set,
-- either with Amazon Route 53 or with another DNS service, you don't
-- need to make any changes. A CNAME record will route traffic to your
-- distribution regardless of the IP address format of the viewer
-- request.
dcIsIPV6Enabled :: Lens' DistributionConfig (Maybe Bool)
-- | A unique value (for example, a date-time stamp) that ensures that the
-- request can't be replayed. If the value of CallerReference is
-- new (regardless of the content of the DistributionConfig
-- object), CloudFront creates a new distribution. If
-- CallerReference is a value you already sent in a previous
-- request to create a distribution, and if the content of the
-- DistributionConfig is identical to the original request
-- (ignoring white space), CloudFront returns the same the response that
-- it returned to the original request. If 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.
dcCallerReference :: Lens' DistributionConfig Text
-- | A complex type that contains information about origins for this
-- distribution.
dcOrigins :: Lens' DistributionConfig Origins
-- | 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.
dcDefaultCacheBehavior :: Lens' DistributionConfig DefaultCacheBehavior
-- | Any comments you want to include about the distribution. If you don't
-- want to specify a comment, include an empty Comment element.
-- To delete an existing comment, update the distribution configuration
-- and include an empty Comment element. To add or change a
-- comment, update the distribution configuration and specify the new
-- comment.
dcComment :: Lens' DistributionConfig Text
-- | 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 and Prefix , the values are automatically
-- deleted.
dcEnabled :: Lens' DistributionConfig Bool
-- | A distribution Configuration and a list of tags to be associated with
-- the distribution.
--
-- See: distributionConfigWithTags smart constructor.
data DistributionConfigWithTags
-- | Creates a value of DistributionConfigWithTags with the minimum
-- fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
distributionConfigWithTags :: DistributionConfig -> Tags -> DistributionConfigWithTags
-- | A distribution configuration.
dcwtDistributionConfig :: Lens' DistributionConfigWithTags DistributionConfig
-- | A complex type that contains zero or more Tag elements.
dcwtTags :: Lens' DistributionConfigWithTags Tags
-- | A distribution list.
--
-- See: distributionList smart constructor.
data DistributionList
-- | 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 - A complex type that contains one
-- DistributionSummary element for each distribution that was
-- created by the current AWS account.
-- - dlNextMarker - 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 - The value you provided for the Marker
-- request parameter.
-- - dlMaxItems - The value you provided for the
-- MaxItems request parameter.
-- - dlIsTruncated - 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 - The number of distributions that were created
-- by the current AWS account.
--
distributionList :: Text -> Int -> Bool -> Int -> DistributionList
-- | A complex type that contains one DistributionSummary element
-- for each distribution that was created by the current AWS account.
dlItems :: Lens' DistributionList [DistributionSummary]
-- | 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.
dlNextMarker :: Lens' DistributionList (Maybe Text)
-- | The value you provided for the Marker request parameter.
dlMarker :: Lens' DistributionList Text
-- | The value you provided for the MaxItems request parameter.
dlMaxItems :: Lens' DistributionList Int
-- | 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.
dlIsTruncated :: Lens' DistributionList Bool
-- | The number of distributions that were created by the current AWS
-- account.
dlQuantity :: Lens' DistributionList Int
-- | A summary of the information about a CloudFront distribution.
--
-- See: distributionSummary smart constructor.
data 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 - The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
-- - dsARN - The ARN (Amazon Resource Name) for the
-- distribution. For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
-- - dsStatus - The current status of the distribution. When the
-- status is Deployed , the distribution's information is
-- propagated to all CloudFront edge locations.
-- - dsLastModifiedTime - The date and time the distribution was
-- last modified.
-- - dsDomainName - The domain name that corresponds to the
-- distribution. For example: d604721fxaaqy9.cloudfront.net
-- .
-- - dsAliases - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this distribution.
-- - dsOrigins - A complex type that contains information about
-- origins for this distribution.
-- - dsDefaultCacheBehavior - 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 - A complex type that contains zero or
-- more CacheBehavior elements.
-- - dsCustomErrorResponses - A complex type that contains zero
-- or more CustomErrorResponses elements.
-- - dsComment - The comment originally specified when this
-- distribution was created.
-- - dsPriceClass - Undocumented member.
-- - dsEnabled - Whether the distribution is enabled to accept
-- user requests for content.
-- - dsViewerCertificate - Undocumented member.
-- - dsRestrictions - Undocumented member.
-- - dsWebACLId - The Web ACL Id (if any) associated with the
-- distribution.
-- - dsHTTPVersion - Specify the maximum HTTP version that you
-- want viewers to use to communicate with CloudFront. The default value
-- for new web distributions is http2 . Viewers that don't
-- support HTTP/2 will automatically use an earlier
-- version.
-- - dsIsIPV6Enabled - Whether CloudFront responds to IPv6 DNS
-- requests with an IPv6 address for your distribution.
--
distributionSummary :: Text -> Text -> Text -> UTCTime -> Text -> Aliases -> Origins -> DefaultCacheBehavior -> CacheBehaviors -> CustomErrorResponses -> Text -> PriceClass -> Bool -> ViewerCertificate -> Restrictions -> Text -> HTTPVersion -> Bool -> DistributionSummary
-- | The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
dsId :: Lens' DistributionSummary Text
-- | The ARN (Amazon Resource Name) for the distribution. For example:
-- arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
dsARN :: Lens' DistributionSummary Text
-- | The current status of the distribution. When the status is
-- Deployed , the distribution's information is propagated to
-- all CloudFront edge locations.
dsStatus :: Lens' DistributionSummary Text
-- | The date and time the distribution was last modified.
dsLastModifiedTime :: Lens' DistributionSummary UTCTime
-- | The domain name that corresponds to the distribution. For example:
-- d604721fxaaqy9.cloudfront.net .
dsDomainName :: Lens' DistributionSummary Text
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this distribution.
dsAliases :: Lens' DistributionSummary Aliases
-- | A complex type that contains information about origins for this
-- distribution.
dsOrigins :: Lens' DistributionSummary Origins
-- | 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.
dsDefaultCacheBehavior :: Lens' DistributionSummary DefaultCacheBehavior
-- | A complex type that contains zero or more CacheBehavior
-- elements.
dsCacheBehaviors :: Lens' DistributionSummary CacheBehaviors
-- | A complex type that contains zero or more
-- CustomErrorResponses elements.
dsCustomErrorResponses :: Lens' DistributionSummary CustomErrorResponses
-- | The comment originally specified when this distribution was created.
dsComment :: Lens' DistributionSummary Text
-- | Undocumented member.
dsPriceClass :: Lens' DistributionSummary PriceClass
-- | Whether the distribution is enabled to accept user requests for
-- content.
dsEnabled :: Lens' DistributionSummary Bool
-- | Undocumented member.
dsViewerCertificate :: Lens' DistributionSummary ViewerCertificate
-- | Undocumented member.
dsRestrictions :: Lens' DistributionSummary Restrictions
-- | The Web ACL Id (if any) associated with the distribution.
dsWebACLId :: Lens' DistributionSummary Text
-- | Specify the maximum HTTP version that you want viewers to use to
-- communicate with CloudFront. The default value for new web
-- distributions is http2 . Viewers that don't support
-- HTTP/2 will automatically use an earlier version.
dsHTTPVersion :: Lens' DistributionSummary HTTPVersion
-- | Whether CloudFront responds to IPv6 DNS requests with an IPv6 address
-- for your distribution.
dsIsIPV6Enabled :: Lens' DistributionSummary Bool
-- | A complex type that specifies how CloudFront handles query strings and
-- cookies.
--
-- See: forwardedValues smart constructor.
data ForwardedValues
-- | 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:
--
--
-- - fvQueryStringCacheKeys - A complex type that contains
-- information about the query string parameters that you want CloudFront
-- to use for caching for this cache behavior.
-- - fvHeaders - A complex type that specifies the
-- Headers , if any, that you want CloudFront to vary upon for
-- this cache behavior.
-- - fvQueryString - Indicates whether you want CloudFront to
-- forward query strings to the origin that is associated with this cache
-- behavior and cache based on the query string parameters. CloudFront
-- behavior depends on the value of QueryString and on the
-- values that you specify for QueryStringCacheKeys , if any: If
-- you specify true for QueryString and you don't specify any
-- values for QueryStringCacheKeys , CloudFront forwards all
-- query string parameters to the origin and caches based on all query
-- string parameters. Depending on how many query string parameters and
-- values you have, this can adversely affect performance because
-- CloudFront must forward more requests to the origin. If you specify
-- true for QueryString and you specify one or more values for
-- QueryStringCacheKeys , CloudFront forwards all query string
-- parameters to the origin, but it only caches based on the query string
-- parameters that you specify. If you specify false for
-- QueryString , CloudFront doesn't forward any query string
-- parameters to the origin, and doesn't cache based on query string
-- parameters. For more information, see Configuring CloudFront to
-- Cache Based on Query String Parameters in the Amazon CloudFront
-- Developer Guide .
-- - fvCookies - A complex type that specifies whether you want
-- CloudFront to forward cookies to the origin and, if so, which ones.
-- For more information about forwarding cookies to the origin, see
-- How CloudFront Forwards, Caches, and Logs Cookies in the
-- Amazon CloudFront Developer Guide .
--
forwardedValues :: Bool -> CookiePreference -> ForwardedValues
-- | A complex type that contains information about the query string
-- parameters that you want CloudFront to use for caching for this cache
-- behavior.
fvQueryStringCacheKeys :: Lens' ForwardedValues (Maybe QueryStringCacheKeys)
-- | A complex type that specifies the Headers , if any, that you
-- want CloudFront to vary upon for this cache behavior.
fvHeaders :: Lens' ForwardedValues (Maybe Headers)
-- | Indicates whether you want CloudFront to forward query strings to the
-- origin that is associated with this cache behavior and cache based on
-- the query string parameters. CloudFront behavior depends on the value
-- of QueryString and on the values that you specify for
-- QueryStringCacheKeys , if any: If you specify true for
-- QueryString and you don't specify any values for
-- QueryStringCacheKeys , CloudFront forwards all query string
-- parameters to the origin and caches based on all query string
-- parameters. Depending on how many query string parameters and values
-- you have, this can adversely affect performance because CloudFront
-- must forward more requests to the origin. If you specify true for
-- QueryString and you specify one or more values for
-- QueryStringCacheKeys , CloudFront forwards all query string
-- parameters to the origin, but it only caches based on the query string
-- parameters that you specify. If you specify false for
-- QueryString , CloudFront doesn't forward any query string
-- parameters to the origin, and doesn't cache based on query string
-- parameters. For more information, see Configuring CloudFront to
-- Cache Based on Query String Parameters in the Amazon CloudFront
-- Developer Guide .
fvQueryString :: Lens' ForwardedValues Bool
-- | A complex type that specifies whether you want CloudFront to forward
-- cookies to the origin and, if so, which ones. For more information
-- about forwarding cookies to the origin, see How CloudFront
-- Forwards, Caches, and Logs Cookies in the Amazon CloudFront
-- Developer Guide .
fvCookies :: Lens' ForwardedValues CookiePreference
-- | A complex type that controls the countries in which your content is
-- distributed. CloudFront determines the location of your users using
-- MaxMind GeoIP databases.
--
-- See: geoRestriction smart constructor.
data GeoRestriction
-- | 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 - 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 - 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 - 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
-- .
--
geoRestriction :: GeoRestrictionType -> Int -> GeoRestriction
-- | 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.
grItems :: Lens' GeoRestriction [Text]
-- | 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.
grRestrictionType :: Lens' GeoRestriction GeoRestrictionType
-- | 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 .
grQuantity :: Lens' GeoRestriction Int
-- | 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 specified object based on the header values in viewer
-- requests. 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 cache
-- your content based on values in the Product header.
-- CloudFront forwards the Product header to the origin and
-- caches the response from the origin once for each header value. For
-- more information about caching based on header values, see How
-- CloudFront Forwards and Caches Headers in the Amazon CloudFront
-- Developer Guide .
--
-- See: headers smart constructor.
data Headers
-- | Creates a value of Headers with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - hItems - A complex type that contains one 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 - The number of different headers that you want
-- CloudFront to forward to the origin for this cache behavior. You can
-- configure each cache behavior in a web distribution to do one of the
-- following: * Forward all headers to your origin : Specify
-- 1 for Quantity and * for Name .
-- Important: If you configure CloudFront to forward all headers
-- to your origin, CloudFront doesn't cache the objects associated with
-- this cache behavior. Instead, it sends every request to the origin. *
-- Forward a whitelist of headers you specify : Specify the number
-- of headers that you want to forward, and specify the header names in
-- Name elements. CloudFront caches your objects based on the
-- values in all of the specified headers. CloudFront also forwards the
-- headers that it forwards by default, but it caches your objects based
-- only on the headers that you specify. * Forward only the default
-- headers : Specify 0 for Quantity and omit
-- Items . In this configuration, CloudFront doesn't cache based
-- on the values in the request headers.
--
headers :: Int -> Headers
-- | A complex type that contains one 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 .
hItems :: Lens' Headers [Text]
-- | The number of different headers that you want CloudFront to forward to
-- the origin for this cache behavior. You can configure each cache
-- behavior in a web distribution to do one of the following: *
-- Forward all headers to your origin : Specify 1 for
-- Quantity and * for Name . Important:
-- If you configure CloudFront to forward all headers to your origin,
-- CloudFront doesn't cache the objects associated with this cache
-- behavior. Instead, it sends every request to the origin. * Forward
-- a whitelist of headers you specify : Specify the number of headers
-- that you want to forward, and specify the header names in
-- Name elements. CloudFront caches your objects based on the
-- values in all of the specified headers. CloudFront also forwards the
-- headers that it forwards by default, but it caches your objects based
-- only on the headers that you specify. * Forward only the default
-- headers : Specify 0 for Quantity and omit
-- Items . In this configuration, CloudFront doesn't cache based
-- on the values in the request headers.
hQuantity :: Lens' Headers Int
-- | An invalidation.
--
-- See: invalidation smart constructor.
data Invalidation
-- | 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 - The identifier for the invalidation request. For
-- example: IDFDVBD632BHDS5 .
-- - iStatus - The status of the invalidation request. When the
-- invalidation batch is finished, the status is Completed
-- .
-- - iCreateTime - The date and time the invalidation request
-- was first made.
-- - iInvalidationBatch - The current invalidation information
-- for the batch request.
--
invalidation :: Text -> Text -> UTCTime -> InvalidationBatch -> Invalidation
-- | The identifier for the invalidation request. For example:
-- IDFDVBD632BHDS5 .
iId :: Lens' Invalidation Text
-- | The status of the invalidation request. When the invalidation batch is
-- finished, the status is Completed .
iStatus :: Lens' Invalidation Text
-- | The date and time the invalidation request was first made.
iCreateTime :: Lens' Invalidation UTCTime
-- | The current invalidation information for the batch request.
iInvalidationBatch :: Lens' Invalidation InvalidationBatch
-- | An invalidation batch.
--
-- See: invalidationBatch smart constructor.
data InvalidationBatch
-- | 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 - A complex type that contains information about
-- the objects that you want to invalidate. For more information, see
-- Specifying the Objects to Invalidate in the Amazon
-- CloudFront Developer Guide .
-- - ibCallerReference - A value that you specify to uniquely
-- identify an invalidation request. CloudFront uses the value to prevent
-- you from accidentally resubmitting an identical request. Whenever you
-- create a new invalidation request, you must specify a new value for
-- CallerReference and change other values in the request as
-- applicable. One way to ensure that the value of
-- CallerReference is unique is to use a timestamp ,
-- for example, 20120301090000 . If you make a second
-- invalidation request with the same value for CallerReference
-- , and if the rest of the request is the same, CloudFront doesn't
-- create a new invalidation request. Instead, CloudFront returns
-- information about the invalidation request that you previously created
-- with the same CallerReference . If CallerReference
-- is a value you already sent in a previous invalidation batch request
-- but the content of any Path is different from the original
-- request, CloudFront returns an InvalidationBatchAlreadyExists
-- error.
--
invalidationBatch :: Paths -> Text -> InvalidationBatch
-- | A complex type that contains information about the objects that you
-- want to invalidate. For more information, see Specifying the
-- Objects to Invalidate in the Amazon CloudFront Developer
-- Guide .
ibPaths :: Lens' InvalidationBatch Paths
-- | A value that you specify to uniquely identify an invalidation request.
-- CloudFront uses the value to prevent you from accidentally
-- resubmitting an identical request. Whenever you create a new
-- invalidation request, you must specify a new value for
-- CallerReference and change other values in the request as
-- applicable. One way to ensure that the value of
-- CallerReference is unique is to use a timestamp ,
-- for example, 20120301090000 . If you make a second
-- invalidation request with the same value for CallerReference
-- , and if the rest of the request is the same, CloudFront doesn't
-- create a new invalidation request. Instead, CloudFront returns
-- information about the invalidation request that you previously created
-- with the same CallerReference . If CallerReference
-- is a value you already sent in a previous invalidation batch request
-- but the content of any Path is different from the original
-- request, CloudFront returns an InvalidationBatchAlreadyExists
-- error.
ibCallerReference :: Lens' InvalidationBatch Text
-- | The InvalidationList complex type describes the list of
-- invalidation objects. For more information about invalidation, see
-- Invalidating Objects (Web Distributions Only) in the Amazon
-- CloudFront Developer Guide .
--
-- See: invalidationList smart constructor.
data InvalidationList
-- | 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 - A complex type that contains one
-- InvalidationSummary element for each invalidation batch
-- created by the current AWS account.
-- - ilNextMarker - If IsTruncated is true ,
-- this element is present and contains the value that you can use for
-- the Marker request parameter to continue listing your
-- invalidation batches where they left off.
-- - ilMarker - The value that you provided for the
-- Marker request parameter.
-- - ilMaxItems - The value that you provided for the
-- MaxItems request parameter.
-- - ilIsTruncated - 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 - The number of invalidation batches that were
-- created by the current AWS account.
--
invalidationList :: Text -> Int -> Bool -> Int -> InvalidationList
-- | A complex type that contains one InvalidationSummary element
-- for each invalidation batch created by the current AWS account.
ilItems :: Lens' InvalidationList [InvalidationSummary]
-- | If IsTruncated is true , this element is present and
-- contains the value that you can use for the Marker request
-- parameter to continue listing your invalidation batches where they
-- left off.
ilNextMarker :: Lens' InvalidationList (Maybe Text)
-- | The value that you provided for the Marker request parameter.
ilMarker :: Lens' InvalidationList Text
-- | The value that you provided for the MaxItems request
-- parameter.
ilMaxItems :: Lens' InvalidationList Int
-- | 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.
ilIsTruncated :: Lens' InvalidationList Bool
-- | The number of invalidation batches that were created by the current
-- AWS account.
ilQuantity :: Lens' InvalidationList Int
-- | A summary of an invalidation request.
--
-- See: invalidationSummary smart constructor.
data InvalidationSummary
-- | 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:
--
--
-- - isId - The unique ID for an invalidation request.
-- - isCreateTime - Undocumented member.
-- - isStatus - The status of an invalidation request.
--
invalidationSummary :: Text -> UTCTime -> Text -> InvalidationSummary
-- | The unique ID for an invalidation request.
isId :: Lens' InvalidationSummary Text
-- | Undocumented member.
isCreateTime :: Lens' InvalidationSummary UTCTime
-- | The status of an invalidation request.
isStatus :: Lens' InvalidationSummary Text
-- | A complex type that lists the active CloudFront key pairs, if any,
-- that are associated with AwsAccountNumber .
--
-- For more information, see ActiveTrustedSigners .
--
-- See: keyPairIds smart constructor.
data 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 - A complex type that lists the active CloudFront
-- key pairs, if any, that are associated with AwsAccountNumber
-- . For more information, see ActiveTrustedSigners .
-- - kpiQuantity - The number of active CloudFront key pairs for
-- AwsAccountNumber . For more information, see
-- ActiveTrustedSigners .
--
keyPairIds :: Int -> KeyPairIds
-- | A complex type that lists the active CloudFront key pairs, if any,
-- that are associated with AwsAccountNumber . For more
-- information, see ActiveTrustedSigners .
kpiItems :: Lens' KeyPairIds [Text]
-- | The number of active CloudFront key pairs for
-- AwsAccountNumber . For more information, see
-- ActiveTrustedSigners .
kpiQuantity :: Lens' KeyPairIds Int
-- | A complex type that controls whether access logs are written for the
-- distribution.
--
-- See: loggingConfig smart constructor.
data LoggingConfig
-- | 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 - 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 - 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 - The Amazon S3 bucket to store the access logs
-- in, for example, myawslogbucket.s3.amazonaws.com .
-- - lcPrefix - 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.
--
loggingConfig :: Bool -> Bool -> Text -> Text -> LoggingConfig
-- | 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.
lcEnabled :: Lens' LoggingConfig Bool
-- | 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 .
lcIncludeCookies :: Lens' LoggingConfig Bool
-- | The Amazon S3 bucket to store the access logs in, for example,
-- myawslogbucket.s3.amazonaws.com .
lcBucket :: Lens' LoggingConfig Text
-- | 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.
lcPrefix :: Lens' LoggingConfig Text
-- | 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.
--
-- For the current limit on the number of origins that you can create for
-- a distribution, see Amazon CloudFront Limits in the AWS
-- General Reference .
--
-- See: origin smart constructor.
data Origin
-- | 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 - A complex type that contains names and
-- values for the custom headers that you want.
-- - oCustomOriginConfig - A complex type that contains
-- information about a custom origin. If the origin is an Amazon S3
-- bucket, use the S3OriginConfig element instead.
-- - oS3OriginConfig - A complex type that contains information
-- about the Amazon S3 origin. If the origin is a custom origin, use the
-- CustomOriginConfig element instead.
-- - oOriginPath - 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 , for
-- example, example.com/production . Do not include a /
-- at the end of the directory name. For example, suppose you've
-- specified the following values for your distribution: *
-- DomainName : An Amazon S3 bucket named myawsbucket .
-- * OriginPath : /production * CNAME :
-- example.com When a user enters
-- example.com/index.html in a browser, CloudFront sends a
-- request to Amazon S3 for
-- myawsbucketproductionindex.html . When a user enters
-- example.comacmeindex.html in a browser, CloudFront
-- sends a request to Amazon S3 for
-- myawsbucketproductionacme/index.html .
-- - oId - A unique identifier for the origin. The value of
-- Id must be unique within the distribution. When you specify
-- the value of TargetOriginId for the default cache behavior or
-- for another cache behavior, you indicate the origin to which you want
-- the cache behavior to route requests by specifying the value of the
-- Id element for that origin. When a request matches the path
-- pattern for that cache behavior, CloudFront routes the request to the
-- specified origin. For more information, see Cache Behavior
-- Settings in the Amazon CloudFront Developer Guide .
-- - oDomainName - 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 .
-- Constraints for Amazon S3 origins: * If you configured Amazon S3
-- Transfer Acceleration for your bucket, do not specify the
-- s3-accelerate endpoint for DomainName . * The bucket
-- name must be between 3 and 63 characters long (inclusive). * The
-- bucket name must contain only lowercase characters, numbers, periods,
-- underscores, and dashes. * The bucket name must not contain adjacent
-- periods. 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 . Constraints for custom
-- origins: * DomainName must be a valid DNS name that contains
-- only a-z, A-Z, 0-9, dot (.), hyphen (-), or underscore (_) characters.
-- * The name cannot exceed 128 characters.
--
origin :: Text -> Text -> Origin
-- | A complex type that contains names and values for the custom headers
-- that you want.
oCustomHeaders :: Lens' Origin (Maybe CustomHeaders)
-- | A complex type that contains information about a custom origin. If the
-- origin is an Amazon S3 bucket, use the S3OriginConfig element
-- instead.
oCustomOriginConfig :: Lens' Origin (Maybe CustomOriginConfig)
-- | A complex type that contains information about the Amazon S3 origin.
-- If the origin is a custom origin, use the CustomOriginConfig
-- element instead.
oS3OriginConfig :: Lens' Origin (Maybe S3OriginConfig)
-- | 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 , for example,
-- example.com/production . Do not include a / at the
-- end of the directory name. For example, suppose you've specified the
-- following values for your distribution: * DomainName : An
-- Amazon S3 bucket named myawsbucket . * OriginPath :
-- /production * CNAME : example.com When a
-- user enters example.com/index.html in a browser, CloudFront
-- sends a request to Amazon S3 for
-- myawsbucketproductionindex.html . When a user enters
-- example.comacmeindex.html in a browser, CloudFront
-- sends a request to Amazon S3 for
-- myawsbucketproductionacme/index.html .
oOriginPath :: Lens' Origin (Maybe Text)
-- | A unique identifier for the origin. The value of Id must be
-- unique within the distribution. When you specify the value of
-- TargetOriginId for the default cache behavior or for another
-- cache behavior, you indicate the origin to which you want the cache
-- behavior to route requests by specifying the value of the Id
-- element for that origin. When a request matches the path pattern for
-- that cache behavior, CloudFront routes the request to the specified
-- origin. For more information, see Cache Behavior Settings in
-- the Amazon CloudFront Developer Guide .
oId :: Lens' Origin Text
-- | 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 . Constraints for Amazon S3
-- origins: * If you configured Amazon S3 Transfer Acceleration for your
-- bucket, do not specify the s3-accelerate endpoint for
-- DomainName . * The bucket name must be between 3 and 63
-- characters long (inclusive). * The bucket name must contain only
-- lowercase characters, numbers, periods, underscores, and dashes. * The
-- bucket name must not contain adjacent periods. 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
-- . Constraints for custom origins: * DomainName must be a
-- valid DNS name that contains only a-z, A-Z, 0-9, dot (.), hyphen (-),
-- or underscore (_) characters. * The name cannot exceed 128 characters.
oDomainName :: Lens' Origin Text
-- | A complex type that contains HeaderName and
-- HeaderValue elements, if any, for this distribution.
--
-- See: originCustomHeader smart constructor.
data OriginCustomHeader
-- | 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:
--
--
originCustomHeader :: Text -> Text -> OriginCustomHeader
-- | The name of a header that you want CloudFront to forward to your
-- origin. For more information, see Forwarding Custom Headers to Your
-- Origin (Web Distributions Only) in the Amazon Amazon CloudFront
-- Developer Guide .
ochHeaderName :: Lens' OriginCustomHeader Text
-- | The value for the header that you specified in the HeaderName
-- field.
ochHeaderValue :: Lens' OriginCustomHeader Text
-- | A complex type that contains information about the SSL/TLS protocols
-- that CloudFront can use when establishing an HTTPS connection with
-- your origin.
--
-- See: originSSLProtocols smart constructor.
data OriginSSLProtocols
-- | 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 - The number of SSL/TLS protocols that you want
-- to allow CloudFront to use when establishing an HTTPS connection with
-- this origin.
-- - ospItems - A list that contains allowed SSL/TLS protocols
-- for this distribution.
--
originSSLProtocols :: Int -> OriginSSLProtocols
-- | The number of SSL/TLS protocols that you want to allow CloudFront to
-- use when establishing an HTTPS connection with this origin.
ospQuantity :: Lens' OriginSSLProtocols Int
-- | A list that contains allowed SSL/TLS protocols for this distribution.
ospItems :: Lens' OriginSSLProtocols [SSLProtocol]
-- | A complex type that contains information about origins for this
-- distribution.
--
-- See: origins smart constructor.
data Origins
-- | Creates a value of Origins with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - oItems - A complex type that contains origins for this
-- distribution.
-- - oQuantity - The number of origins for this
-- distribution.
--
origins :: Int -> Origins
-- | A complex type that contains origins for this distribution.
oItems :: Lens' Origins (Maybe (NonEmpty Origin))
-- | The number of origins for this distribution.
oQuantity :: Lens' Origins Int
-- | A complex type that contains information about the objects that you
-- want to invalidate. For more information, see Specifying the
-- Objects to Invalidate in the Amazon CloudFront Developer
-- Guide .
--
-- See: paths smart constructor.
data Paths
-- | Creates a value of Paths with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - pItems - A complex type that contains a list of the paths
-- that you want to invalidate.
-- - pQuantity - The number of objects that you want to
-- invalidate.
--
paths :: Int -> Paths
-- | A complex type that contains a list of the paths that you want to
-- invalidate.
pItems :: Lens' Paths [Text]
-- | The number of objects that you want to invalidate.
pQuantity :: Lens' Paths Int
-- | See: queryStringCacheKeys smart constructor.
data QueryStringCacheKeys
-- | Creates a value of QueryStringCacheKeys with the minimum fields
-- required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - qsckItems - (Optional) A list that contains the query
-- string parameters that you want CloudFront to use as a basis for
-- caching for this cache behavior. If Quantity is 0, you can
-- omit Items .
-- - qsckQuantity - The number of whitelisted query
-- string parameters for this cache behavior.
--
queryStringCacheKeys :: Int -> QueryStringCacheKeys
-- | (Optional) A list that contains the query string parameters that you
-- want CloudFront to use as a basis for caching for this cache behavior.
-- If Quantity is 0, you can omit Items .
qsckItems :: Lens' QueryStringCacheKeys [Text]
-- | The number of whitelisted query string parameters for this
-- cache behavior.
qsckQuantity :: Lens' QueryStringCacheKeys Int
-- | A complex type that identifies ways in which you want to restrict
-- distribution of your content.
--
-- See: restrictions smart constructor.
data Restrictions
-- | 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:
--
--
restrictions :: GeoRestriction -> Restrictions
-- | Undocumented member.
rGeoRestriction :: Lens' Restrictions GeoRestriction
-- | 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.
data S3Origin
-- | 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:
--
--
-- - soDomainName - The DNS name of the Amazon S3 origin.
-- - soOriginAccessIdentity - The CloudFront origin access
-- identity to associate with the RTMP distribution. Use an origin access
-- identity to configure the distribution 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. For more information, see Using an
-- Origin Access Identity to Restrict Access to Your Amazon S3
-- Content in the Amazon Amazon CloudFront Developer Guide
-- .
--
s3Origin :: Text -> Text -> S3Origin
-- | The DNS name of the Amazon S3 origin.
soDomainName :: Lens' S3Origin Text
-- | The CloudFront origin access identity to associate with the RTMP
-- distribution. Use an origin access identity to configure the
-- distribution 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.
-- For more information, see Using an Origin Access Identity to
-- Restrict Access to Your Amazon S3 Content in the Amazon Amazon
-- CloudFront Developer Guide .
soOriginAccessIdentity :: Lens' S3Origin Text
-- | 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.
data S3OriginConfig
-- | 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 - The CloudFront origin access
-- identity to associate with the origin. Use an origin access identity
-- to configure the origin so that viewers can only access objects
-- in an Amazon S3 bucket through CloudFront. The format of the value is:
-- origin-access-identityCloudFrontID-of-origin-access-identity
-- where ID-of-origin-access-identity is the value that
-- CloudFront returned in the ID element when you created the
-- origin access identity. If you want viewers 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.
-- For more information about the origin access identity, see Serving
-- Private Content through CloudFront in the Amazon CloudFront
-- Developer Guide .
--
s3OriginConfig :: Text -> S3OriginConfig
-- | The CloudFront origin access identity to associate with the origin.
-- Use an origin access identity to configure the origin so that viewers
-- can only access objects in an Amazon S3 bucket through
-- CloudFront. The format of the value is:
-- origin-access-identityCloudFrontID-of-origin-access-identity
-- where ID-of-origin-access-identity is the value that
-- CloudFront returned in the ID element when you created the
-- origin access identity. If you want viewers 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.
-- For more information about the origin access identity, see Serving
-- Private Content through CloudFront in the Amazon CloudFront
-- Developer Guide .
socOriginAccessIdentity :: Lens' S3OriginConfig Text
-- | 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.
data Signer
-- | 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 - An AWS account that is included in the
-- TrustedSigners complex type for this RTMP distribution. Valid
-- values include: * self , which is the AWS account used to
-- create the distribution. * An AWS account number.
-- - sKeyPairIds - A complex type that lists the active
-- CloudFront key pairs, if any, that are associated with
-- AwsAccountNumber .
--
signer :: Signer
-- | An AWS account that is included in the TrustedSigners complex
-- type for this RTMP distribution. Valid values include: * self
-- , which is the AWS account used to create the distribution. * An AWS
-- account number.
sAWSAccountNumber :: Lens' Signer (Maybe Text)
-- | A complex type that lists the active CloudFront key pairs, if any,
-- that are associated with AwsAccountNumber .
sKeyPairIds :: Lens' Signer (Maybe KeyPairIds)
-- | A streaming distribution.
--
-- See: streamingDistribution smart constructor.
data StreamingDistribution
-- | 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 - The date and time that the
-- distribution was last modified.
-- - sdId - The identifier for the RTMP distribution. For
-- example: EGTXBD79EXAMPLE .
-- - sdARN - Undocumented member.
-- - sdStatus - The current status of the RTMP distribution.
-- When the status is Deployed , the distribution's information
-- is propagated to all CloudFront edge locations.
-- - sdDomainName - The domain name that corresponds to the
-- streaming distribution. For example:
-- s5c39gqb8ow64r.cloudfront.net .
-- - sdActiveTrustedSigners - A complex type that lists the AWS
-- accounts, if any, that you included in the TrustedSigners
-- complex type for this distribution. These are the accounts that you
-- want to allow to create signed URLs for private content. The
-- Signer complex type lists the AWS account number of the
-- trusted signer or self if the signer is the AWS account that
-- created the distribution. The Signer element also includes
-- the IDs of any active CloudFront key pairs that are associated with
-- the trusted signer's AWS account. If no KeyPairId element
-- appears for a Signer , that signer can't create signed URLs.
-- For more information, see Serving Private Content through
-- CloudFront in the Amazon CloudFront Developer Guide .
-- - sdStreamingDistributionConfig - The current configuration
-- information for the RTMP distribution.
--
streamingDistribution :: Text -> Text -> Text -> Text -> ActiveTrustedSigners -> StreamingDistributionConfig -> StreamingDistribution
-- | The date and time that the distribution was last modified.
sdLastModifiedTime :: Lens' StreamingDistribution (Maybe UTCTime)
-- | The identifier for the RTMP distribution. For example:
-- EGTXBD79EXAMPLE .
sdId :: Lens' StreamingDistribution Text
-- | Undocumented member.
sdARN :: Lens' StreamingDistribution Text
-- | The current status of the RTMP distribution. When the status is
-- Deployed , the distribution's information is propagated to
-- all CloudFront edge locations.
sdStatus :: Lens' StreamingDistribution Text
-- | The domain name that corresponds to the streaming distribution. For
-- example: s5c39gqb8ow64r.cloudfront.net .
sdDomainName :: Lens' StreamingDistribution Text
-- | A complex type that lists the AWS accounts, if any, that you included
-- in the TrustedSigners complex type for this distribution.
-- These are the accounts that you want to allow to create signed URLs
-- for private content. The Signer complex type lists the AWS
-- account number of the trusted signer or self if the signer is
-- the AWS account that created the distribution. The Signer
-- element also includes the IDs of any active CloudFront key pairs that
-- are associated with the trusted signer's AWS account. If no
-- KeyPairId element appears for a Signer , that signer
-- can't create signed URLs. For more information, see Serving Private
-- Content through CloudFront in the Amazon CloudFront Developer
-- Guide .
sdActiveTrustedSigners :: Lens' StreamingDistribution ActiveTrustedSigners
-- | The current configuration information for the RTMP distribution.
sdStreamingDistributionConfig :: Lens' StreamingDistribution StreamingDistributionConfig
-- | The RTMP distribution's configuration information.
--
-- See: streamingDistributionConfig smart constructor.
data 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 - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this streaming
-- distribution.
-- - sdcPriceClass - A complex type that contains information
-- about price class for this streaming distribution.
-- - sdcLogging - A complex type that controls whether access
-- logs are written for the streaming distribution.
-- - sdcCallerReference - A unique number that ensures that 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 that 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 that 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 - A complex type that contains information
-- about the Amazon S3 bucket from which you want CloudFront to get your
-- media files for distribution.
-- - sdcComment - Any comments you want to include about the
-- streaming distribution.
-- - sdcTrustedSigners - A complex type that specifies any AWS
-- accounts that you want to permit to create signed URLs for private
-- content. If you want the distribution to use signed URLs, include this
-- element; if you want the distribution to use public URLs, remove this
-- element. For more information, see Serving Private Content through
-- CloudFront in the Amazon CloudFront Developer Guide .
-- - sdcEnabled - Whether the streaming distribution is enabled
-- to accept user requests for content.
--
streamingDistributionConfig :: Text -> S3Origin -> Text -> TrustedSigners -> Bool -> StreamingDistributionConfig
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this streaming distribution.
sdcAliases :: Lens' StreamingDistributionConfig (Maybe Aliases)
-- | A complex type that contains information about price class for this
-- streaming distribution.
sdcPriceClass :: Lens' StreamingDistributionConfig (Maybe PriceClass)
-- | A complex type that controls whether access logs are written for the
-- streaming distribution.
sdcLogging :: Lens' StreamingDistributionConfig (Maybe StreamingLoggingConfig)
-- | A unique number that ensures that 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
-- that 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 that 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.
sdcCallerReference :: Lens' StreamingDistributionConfig Text
-- | A complex type that contains information about the Amazon S3 bucket
-- from which you want CloudFront to get your media files for
-- distribution.
sdcS3Origin :: Lens' StreamingDistributionConfig S3Origin
-- | Any comments you want to include about the streaming distribution.
sdcComment :: Lens' StreamingDistributionConfig Text
-- | A complex type that specifies any AWS accounts that you want to permit
-- to create signed URLs for private content. If you want the
-- distribution to use signed URLs, include this element; if you want the
-- distribution to use public URLs, remove this element. For more
-- information, see Serving Private Content through CloudFront in
-- the Amazon CloudFront Developer Guide .
sdcTrustedSigners :: Lens' StreamingDistributionConfig TrustedSigners
-- | Whether the streaming distribution is enabled to accept user requests
-- for content.
sdcEnabled :: Lens' StreamingDistributionConfig Bool
-- | A streaming distribution Configuration and a list of tags to be
-- associated with the streaming distribution.
--
-- See: streamingDistributionConfigWithTags smart
-- constructor.
data StreamingDistributionConfigWithTags
-- | Creates a value of StreamingDistributionConfigWithTags with the
-- minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
streamingDistributionConfigWithTags :: StreamingDistributionConfig -> Tags -> StreamingDistributionConfigWithTags
-- | A streaming distribution Configuration.
sdcwtStreamingDistributionConfig :: Lens' StreamingDistributionConfigWithTags StreamingDistributionConfig
-- | A complex type that contains zero or more Tag elements.
sdcwtTags :: Lens' StreamingDistributionConfigWithTags Tags
-- | A streaming distribution list.
--
-- See: streamingDistributionList smart constructor.
data StreamingDistributionList
-- | 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 - A complex type that contains one
-- StreamingDistributionSummary element for each distribution
-- that was created by the current AWS account.
-- - sdlNextMarker - If IsTruncated is true ,
-- this element is present and contains the value you can use for the
-- Marker request parameter to continue listing your RTMP
-- distributions where they left off.
-- - sdlMarker - The value you provided for the Marker
-- request parameter.
-- - sdlMaxItems - The value you provided for the
-- MaxItems request parameter.
-- - sdlIsTruncated - 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 - The number of streaming distributions that
-- were created by the current AWS account.
--
streamingDistributionList :: Text -> Int -> Bool -> Int -> StreamingDistributionList
-- | A complex type that contains one StreamingDistributionSummary
-- element for each distribution that was created by the current AWS
-- account.
sdlItems :: Lens' StreamingDistributionList [StreamingDistributionSummary]
-- | If IsTruncated is true , this element is present and
-- contains the value you can use for the Marker request
-- parameter to continue listing your RTMP distributions where they left
-- off.
sdlNextMarker :: Lens' StreamingDistributionList (Maybe Text)
-- | The value you provided for the Marker request parameter.
sdlMarker :: Lens' StreamingDistributionList Text
-- | The value you provided for the MaxItems request parameter.
sdlMaxItems :: Lens' StreamingDistributionList Int
-- | 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.
sdlIsTruncated :: Lens' StreamingDistributionList Bool
-- | The number of streaming distributions that were created by the current
-- AWS account.
sdlQuantity :: Lens' StreamingDistributionList Int
-- | A summary of the information for an Amazon CloudFront streaming
-- distribution.
--
-- See: streamingDistributionSummary smart constructor.
data 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 - The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
-- - sdsARN - The ARN (Amazon Resource Name) for the streaming
-- distribution. For example:
-- arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
-- - sdsStatus - 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 - The date and time the distribution
-- was last modified.
-- - sdsDomainName - The domain name corresponding to the
-- distribution. For example: d604721fxaaqy9.cloudfront.net
-- .
-- - sdsS3Origin - A complex type that contains information
-- about the Amazon S3 bucket from which you want CloudFront to get your
-- media files for distribution.
-- - sdsAliases - A complex type that contains information about
-- CNAMEs (alternate domain names), if any, for this streaming
-- distribution.
-- - sdsTrustedSigners - 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
-- .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 - The comment originally specified when this
-- distribution was created.
-- - sdsPriceClass - Undocumented member.
-- - sdsEnabled - Whether the distribution is enabled to accept
-- end user requests for content.
--
streamingDistributionSummary :: Text -> Text -> Text -> UTCTime -> Text -> S3Origin -> Aliases -> TrustedSigners -> Text -> PriceClass -> Bool -> StreamingDistributionSummary
-- | The identifier for the distribution. For example:
-- EDFDVBD632BHDS5 .
sdsId :: Lens' StreamingDistributionSummary Text
-- | The ARN (Amazon Resource Name) for the streaming distribution. For
-- example:
-- arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5
-- , where 123456789012 is your AWS account ID.
sdsARN :: Lens' StreamingDistributionSummary Text
-- | Indicates the current status of the distribution. When the status is
-- Deployed , the distribution's information is fully propagated
-- throughout the Amazon CloudFront system.
sdsStatus :: Lens' StreamingDistributionSummary Text
-- | The date and time the distribution was last modified.
sdsLastModifiedTime :: Lens' StreamingDistributionSummary UTCTime
-- | The domain name corresponding to the distribution. For example:
-- d604721fxaaqy9.cloudfront.net .
sdsDomainName :: Lens' StreamingDistributionSummary Text
-- | A complex type that contains information about the Amazon S3 bucket
-- from which you want CloudFront to get your media files for
-- distribution.
sdsS3Origin :: Lens' StreamingDistributionSummary S3Origin
-- | A complex type that contains information about CNAMEs (alternate
-- domain names), if any, for this streaming distribution.
sdsAliases :: Lens' StreamingDistributionSummary Aliases
-- | 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 .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.
sdsTrustedSigners :: Lens' StreamingDistributionSummary TrustedSigners
-- | The comment originally specified when this distribution was created.
sdsComment :: Lens' StreamingDistributionSummary Text
-- | Undocumented member.
sdsPriceClass :: Lens' StreamingDistributionSummary PriceClass
-- | Whether the distribution is enabled to accept end user requests for
-- content.
sdsEnabled :: Lens' StreamingDistributionSummary Bool
-- | A complex type that controls whether access logs are written for this
-- streaming distribution.
--
-- See: streamingLoggingConfig smart constructor.
data StreamingLoggingConfig
-- | 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 - 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 - The Amazon S3 bucket to store the access logs
-- in, for example, myawslogbucket.s3.amazonaws.com .
-- - slcPrefix - 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.
--
streamingLoggingConfig :: Bool -> Text -> Text -> StreamingLoggingConfig
-- | 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.
slcEnabled :: Lens' StreamingLoggingConfig Bool
-- | The Amazon S3 bucket to store the access logs in, for example,
-- myawslogbucket.s3.amazonaws.com .
slcBucket :: Lens' StreamingLoggingConfig Text
-- | 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.
slcPrefix :: Lens' StreamingLoggingConfig Text
-- | A complex type that contains Tag key and Tag value.
--
-- See: tag smart constructor.
data Tag
-- | Creates a value of Tag with the minimum fields required to make
-- a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - tagValue - A string that contains an optional Tag
-- value. The string length should be between 0 and 256 characters. Valid
-- characters include a-z , A-Z , 0-9 , space,
-- and the special characters _ - . : / = + @ .
-- - tagKey - A string that contains Tag key. The
-- string length should be between 1 and 128 characters. Valid characters
-- include a-z , A-Z , 0-9 , space, and the
-- special characters _ - . : / = + @ .
--
tag :: Text -> Tag
-- | A string that contains an optional Tag value. The string
-- length should be between 0 and 256 characters. Valid characters
-- include a-z , A-Z , 0-9 , space, and the
-- special characters _ - . : / = + @ .
tagValue :: Lens' Tag (Maybe Text)
-- | A string that contains Tag key. The string length should be
-- between 1 and 128 characters. Valid characters include a-z ,
-- A-Z , 0-9 , space, and the special characters _
-- - . : / = + @ .
tagKey :: Lens' Tag Text
-- | A complex type that contains zero or more Tag elements.
--
-- See: tagKeys smart constructor.
data TagKeys
-- | Creates a value of TagKeys with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - tkItems - A complex type that contains Tag key
-- elements.
--
tagKeys :: TagKeys
-- | A complex type that contains Tag key elements.
tkItems :: Lens' TagKeys [Text]
-- | A complex type that contains zero or more Tag elements.
--
-- See: tags smart constructor.
data Tags
-- | Creates a value of Tags with the minimum fields required to
-- make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
--
-- - tItems - A complex type that contains Tag
-- elements.
--
tags :: Tags
-- | A complex type that contains Tag elements.
tItems :: Lens' Tags [Tag]
-- | 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, see Serving Private Content through CloudFront in
-- the Amazon 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.
--
-- For more information about updating the distribution configuration,
-- see DistributionConfig .
--
-- See: trustedSigners smart constructor.
data TrustedSigners
-- | 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 - Optional : A complex type that contains
-- trusted signers for this cache behavior. If Quantity is
-- 0 , you can omit Items .
-- - tsEnabled - Specifies whether you want to require viewers
-- to use signed URLs to access the files specified by
-- PathPattern and TargetOriginId .
-- - tsQuantity - The number of trusted signers for this cache
-- behavior.
--
trustedSigners :: Bool -> Int -> TrustedSigners
-- | Optional : A complex type that contains trusted signers for
-- this cache behavior. If Quantity is 0 , you can omit
-- Items .
tsItems :: Lens' TrustedSigners [Text]
-- | Specifies whether you want to require viewers to use signed URLs to
-- access the files specified by PathPattern and
-- TargetOriginId .
tsEnabled :: Lens' TrustedSigners Bool
-- | The number of trusted signers for this cache behavior.
tsQuantity :: Lens' TrustedSigners Int
-- | A complex type that specifies the following:
--
--
-- - Which SSL/TLS certificate to use when viewers request objects
-- using HTTPS
-- - Whether you want CloudFront to use dedicated IP addresses or SNI
-- when you're using alternate domain names in your object names
-- - The minimum protocol version that you want CloudFront to use when
-- communicating with viewers
--
--
-- For more information, see Using an HTTPS Connection to Access Your
-- Objects in the Amazon Amazon CloudFront Developer Guide .
--
-- See: viewerCertificate smart constructor.
data ViewerCertificate
-- | 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 - If you specify a value for
-- ACMCertificateArn or for IAMCertificateId , you must
-- also specify how you want CloudFront to serve HTTPS requests: using a
-- method that works for all clients or one that works for most clients:
-- * 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. * sni-only : CloudFront can
-- 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. If some of your users' browsers don't
-- support SNI, we recommend that you do one of the following: * Use the
-- vip option (dedicated IP addresses) instead of
-- sni-only . * Use the CloudFront SSLTLS certificate instead
-- of a custom certificate. This requires that you use the CloudFront
-- domain name of your distribution in the URLs for your objects, for
-- example, @https:d111111abcdef8.cloudfront.netlogo.png .
-- * If you can control which browser your users use, upgrade the browser
-- to one that supports SNI. * Use HTTP instead of HTTPS. Do not specify
-- a value for SSLSupportMethod if you specified
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate@
-- . For more information, see Using Alternate Domain Names and
-- HTTPS in the Amazon CloudFront Developer Guide .
-- - vcACMCertificateARN - 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 -
-- - vcMinimumProtocolVersion - Specify the minimum version of
-- the SSLTLS protocol that you want CloudFront to use for HTTPS
-- connections between viewers and CloudFront: SSLv3 or
-- TLSv1 . CloudFront serves your objects only to viewers that
-- support SSLTLS version that you specify and later versions. 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 . Note the following: * If
-- you specify
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate,
-- the minimum SSL protocol version is TLSv1 and can't be
-- changed. * If you're using a custom certificate (if you specify a
-- value for ACMCertificateArn or for IAMCertificateId
-- ) and if you're using SNI (if you specify sni-only for
-- SSLSupportMethod ), you must specify TLSv1 for
-- MinimumProtocolVersion .
-- - vcCertificate - Include one of these values to specify the
-- following: * Whether you want viewers to use HTTP or HTTPS to request
-- your objects. * If you want viewers to use HTTPS, whether you're using
-- an alternate domain name such as example.com or the CloudFront domain
-- name for your distribution, such as
-- d111111abcdef8.cloudfront.net . * If you're using an
-- alternate domain name, whether AWS Certificate Manager (ACM) provided
-- the certificate, or you purchased a certificate from a third-party
-- certificate authority and imported it into ACM or uploaded it to the
-- IAM certificate store. You must specify one (and only one) of the
-- three values. Do not specify false for
-- CloudFrontDefaultCertificate . If you want viewers to use
-- HTTP to request your objects : Specify the following value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- In addition, specify allow-all for
-- ViewerProtocolPolicy for all of your cache behaviors. If
-- you want viewers to use HTTPS to request your objects : Choose the
-- type of certificate that you want to use based on whether you're using
-- an alternate domain name for your objects or the CloudFront domain
-- name: * If you're using an alternate domain name, such as
-- example.com : Specify one of the following values, depending on
-- whether ACM provided your certificate or you purchased your
-- certificate from third-party certificate authority: *
-- ACMCertificateArnARN for ACM SSL/TLS
-- certificateACMCertificateArn where ARN for ACM SSLTLS
-- certificate is the ARN for the ACM SSLTLS certificate that you
-- want to use for this distribution. * IAMCertificateIdIAM
-- certificate IDIAMCertificateId where IAM certificate ID is
-- the ID that IAM returned when you added the certificate to the IAM
-- certificate store. If you specify ACMCertificateArn or
-- IAMCertificateId , you must also specify a value for
-- SSLSupportMethod . If you choose to use an ACM certificate or
-- a certificate in the IAM certificate store, we recommend that you use
-- only an alternate domain name in your object URLs
-- (https://example.com/logo.jpg ). If you use the domain
-- name that is associated with your CloudFront distribution
-- (https://d111111abcdef8.cloudfront.net/logo.jpg ) and
-- the viewer supports SNI , then CloudFront behaves normally.
-- However, if the browser does not support SNI, the user's experience
-- depends on the value that you choose for SSLSupportMethod : *
-- vip : The viewer displays a warning because there is a
-- mismatch between the CloudFront domain name and the domain name in
-- your SSLTLS certificate. * sni-only : CloudFront drops the
-- connection with the browser without returning the object. * If
-- you're using the CloudFront domain name for your distribution, such as
-- d111111abcdef8.cloudfront.net : Specify the following
-- value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- If you want viewers to use HTTPS, you must also specify one of
-- the following values in your cache behaviors: *
-- ViewerProtocolPolicyhttps-onlyViewerProtocolPolicy
-- *
-- ViewerProtocolPolicyredirect-to-httpsViewerProtocolPolicy
-- You can also optionally require that CloudFront use HTTPS to
-- communicate with your origin by specifying one of the following values
-- for the applicable origins: *
-- OriginProtocolPolicyhttps-onlyOriginProtocolPolicy
-- *
-- OriginProtocolPolicymatch-viewerOriginProtocolPolicy
-- For more information, see
-- <http:docs.aws.amazon.comAmazonCloudFrontlatestDeveloperGuideSecureConnections.html#CNAMEsAndHTTPS
-- Using Alternate Domain Names and HTTPS> in the Amazon
-- CloudFront Developer Guide/ .
-- - vcIAMCertificateId - 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 - 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 .
--
viewerCertificate :: ViewerCertificate
-- | If you specify a value for ACMCertificateArn or for
-- IAMCertificateId , you must also specify how you want
-- CloudFront to serve HTTPS requests: using a method that works for all
-- clients or one that works for most clients: * 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. * sni-only : CloudFront can 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. If some of your users' browsers don't support SNI, we
-- recommend that you do one of the following: * Use the vip
-- option (dedicated IP addresses) instead of sni-only . * Use
-- the CloudFront SSLTLS certificate instead of a custom certificate.
-- This requires that you use the CloudFront domain name of your
-- distribution in the URLs for your objects, for example,
-- @https:d111111abcdef8.cloudfront.netlogo.png . * If you
-- can control which browser your users use, upgrade the browser to one
-- that supports SNI. * Use HTTP instead of HTTPS. Do not specify a value
-- for SSLSupportMethod if you specified
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate@
-- . For more information, see Using Alternate Domain Names and
-- HTTPS in the Amazon CloudFront Developer Guide .
vcSSLSupportMethod :: Lens' ViewerCertificate (Maybe SSLSupportMethod)
-- | 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 .
vcACMCertificateARN :: Lens' ViewerCertificate (Maybe Text)
vcCertificateSource :: Lens' ViewerCertificate (Maybe CertificateSource)
-- | Specify the minimum version of the SSLTLS protocol that you want
-- CloudFront to use for HTTPS connections between viewers and
-- CloudFront: SSLv3 or TLSv1 . CloudFront serves your
-- objects only to viewers that support SSLTLS version that you
-- specify and later versions. 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
-- . Note the following: * If you specify
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate,
-- the minimum SSL protocol version is TLSv1 and can't be
-- changed. * If you're using a custom certificate (if you specify a
-- value for ACMCertificateArn or for IAMCertificateId
-- ) and if you're using SNI (if you specify sni-only for
-- SSLSupportMethod ), you must specify TLSv1 for
-- MinimumProtocolVersion .
vcMinimumProtocolVersion :: Lens' ViewerCertificate (Maybe MinimumProtocolVersion)
-- | Include one of these values to specify the following: * Whether you
-- want viewers to use HTTP or HTTPS to request your objects. * If you
-- want viewers to use HTTPS, whether you're using an alternate domain
-- name such as example.com or the CloudFront domain name for your
-- distribution, such as d111111abcdef8.cloudfront.net . * If
-- you're using an alternate domain name, whether AWS Certificate Manager
-- (ACM) provided the certificate, or you purchased a certificate from a
-- third-party certificate authority and imported it into ACM or uploaded
-- it to the IAM certificate store. You must specify one (and only one)
-- of the three values. Do not specify false for
-- CloudFrontDefaultCertificate . If you want viewers to use
-- HTTP to request your objects : Specify the following value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- In addition, specify allow-all for
-- ViewerProtocolPolicy for all of your cache behaviors. If
-- you want viewers to use HTTPS to request your objects : Choose the
-- type of certificate that you want to use based on whether you're using
-- an alternate domain name for your objects or the CloudFront domain
-- name: * If you're using an alternate domain name, such as
-- example.com : Specify one of the following values, depending on
-- whether ACM provided your certificate or you purchased your
-- certificate from third-party certificate authority: *
-- ACMCertificateArnARN for ACM SSL/TLS
-- certificateACMCertificateArn where ARN for ACM SSLTLS
-- certificate is the ARN for the ACM SSLTLS certificate that you
-- want to use for this distribution. * IAMCertificateIdIAM
-- certificate IDIAMCertificateId where IAM certificate ID is
-- the ID that IAM returned when you added the certificate to the IAM
-- certificate store. If you specify ACMCertificateArn or
-- IAMCertificateId , you must also specify a value for
-- SSLSupportMethod . If you choose to use an ACM certificate or
-- a certificate in the IAM certificate store, we recommend that you use
-- only an alternate domain name in your object URLs
-- (https://example.com/logo.jpg ). If you use the domain
-- name that is associated with your CloudFront distribution
-- (https://d111111abcdef8.cloudfront.net/logo.jpg ) and
-- the viewer supports SNI , then CloudFront behaves normally.
-- However, if the browser does not support SNI, the user's experience
-- depends on the value that you choose for SSLSupportMethod : *
-- vip : The viewer displays a warning because there is a
-- mismatch between the CloudFront domain name and the domain name in
-- your SSLTLS certificate. * sni-only : CloudFront drops the
-- connection with the browser without returning the object. * If
-- you're using the CloudFront domain name for your distribution, such as
-- d111111abcdef8.cloudfront.net : Specify the following
-- value:
-- CloudFrontDefaultCertificatetrueCloudFrontDefaultCertificate
-- If you want viewers to use HTTPS, you must also specify one of
-- the following values in your cache behaviors: *
-- ViewerProtocolPolicyhttps-onlyViewerProtocolPolicy
-- *
-- ViewerProtocolPolicyredirect-to-httpsViewerProtocolPolicy
-- You can also optionally require that CloudFront use HTTPS to
-- communicate with your origin by specifying one of the following values
-- for the applicable origins: *
-- OriginProtocolPolicyhttps-onlyOriginProtocolPolicy
-- *
-- OriginProtocolPolicymatch-viewerOriginProtocolPolicy
-- For more information, see
-- <http:docs.aws.amazon.comAmazonCloudFrontlatestDeveloperGuideSecureConnections.html#CNAMEsAndHTTPS
-- Using Alternate Domain Names and HTTPS> in the Amazon
-- CloudFront Developer Guide/ .
vcCertificate :: Lens' ViewerCertificate (Maybe Text)
-- | 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 .
vcIAMCertificateId :: Lens' ViewerCertificate (Maybe Text)
-- | 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 .
vcCloudFrontDefaultCertificate :: Lens' ViewerCertificate (Maybe Bool)