{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CloudFront.Types.CacheBehavior where
import Amazonka.CloudFront.Types.AllowedMethods
import Amazonka.CloudFront.Types.ForwardedValues
import Amazonka.CloudFront.Types.FunctionAssociations
import Amazonka.CloudFront.Types.LambdaFunctionAssociations
import Amazonka.CloudFront.Types.TrustedKeyGroups
import Amazonka.CloudFront.Types.TrustedSigners
import Amazonka.CloudFront.Types.ViewerProtocolPolicy
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data CacheBehavior = CacheBehavior'
{ CacheBehavior -> Maybe AllowedMethods
allowedMethods :: Prelude.Maybe AllowedMethods,
CacheBehavior -> Maybe LambdaFunctionAssociations
lambdaFunctionAssociations :: Prelude.Maybe LambdaFunctionAssociations,
CacheBehavior -> Maybe Integer
maxTTL :: Prelude.Maybe Prelude.Integer,
CacheBehavior -> Maybe Integer
minTTL :: Prelude.Maybe Prelude.Integer,
CacheBehavior -> Maybe Bool
compress :: Prelude.Maybe Prelude.Bool,
CacheBehavior -> Maybe Bool
smoothStreaming :: Prelude.Maybe Prelude.Bool,
CacheBehavior -> Maybe TrustedKeyGroups
trustedKeyGroups :: Prelude.Maybe TrustedKeyGroups,
CacheBehavior -> Maybe Text
realtimeLogConfigArn :: Prelude.Maybe Prelude.Text,
CacheBehavior -> Maybe Integer
defaultTTL :: Prelude.Maybe Prelude.Integer,
CacheBehavior -> Maybe ForwardedValues
forwardedValues :: Prelude.Maybe ForwardedValues,
CacheBehavior -> Maybe TrustedSigners
trustedSigners :: Prelude.Maybe TrustedSigners,
CacheBehavior -> Maybe FunctionAssociations
functionAssociations :: Prelude.Maybe FunctionAssociations,
CacheBehavior -> Maybe Text
originRequestPolicyId :: Prelude.Maybe Prelude.Text,
CacheBehavior -> Maybe Text
fieldLevelEncryptionId :: Prelude.Maybe Prelude.Text,
CacheBehavior -> Maybe Text
cachePolicyId :: Prelude.Maybe Prelude.Text,
CacheBehavior -> Text
pathPattern :: Prelude.Text,
CacheBehavior -> Text
targetOriginId :: Prelude.Text,
CacheBehavior -> ViewerProtocolPolicy
viewerProtocolPolicy :: ViewerProtocolPolicy
}
deriving (CacheBehavior -> CacheBehavior -> Bool
(CacheBehavior -> CacheBehavior -> Bool)
-> (CacheBehavior -> CacheBehavior -> Bool) -> Eq CacheBehavior
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CacheBehavior -> CacheBehavior -> Bool
$c/= :: CacheBehavior -> CacheBehavior -> Bool
== :: CacheBehavior -> CacheBehavior -> Bool
$c== :: CacheBehavior -> CacheBehavior -> Bool
Prelude.Eq, ReadPrec [CacheBehavior]
ReadPrec CacheBehavior
Int -> ReadS CacheBehavior
ReadS [CacheBehavior]
(Int -> ReadS CacheBehavior)
-> ReadS [CacheBehavior]
-> ReadPrec CacheBehavior
-> ReadPrec [CacheBehavior]
-> Read CacheBehavior
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CacheBehavior]
$creadListPrec :: ReadPrec [CacheBehavior]
readPrec :: ReadPrec CacheBehavior
$creadPrec :: ReadPrec CacheBehavior
readList :: ReadS [CacheBehavior]
$creadList :: ReadS [CacheBehavior]
readsPrec :: Int -> ReadS CacheBehavior
$creadsPrec :: Int -> ReadS CacheBehavior
Prelude.Read, Int -> CacheBehavior -> ShowS
[CacheBehavior] -> ShowS
CacheBehavior -> String
(Int -> CacheBehavior -> ShowS)
-> (CacheBehavior -> String)
-> ([CacheBehavior] -> ShowS)
-> Show CacheBehavior
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CacheBehavior] -> ShowS
$cshowList :: [CacheBehavior] -> ShowS
show :: CacheBehavior -> String
$cshow :: CacheBehavior -> String
showsPrec :: Int -> CacheBehavior -> ShowS
$cshowsPrec :: Int -> CacheBehavior -> ShowS
Prelude.Show, (forall x. CacheBehavior -> Rep CacheBehavior x)
-> (forall x. Rep CacheBehavior x -> CacheBehavior)
-> Generic CacheBehavior
forall x. Rep CacheBehavior x -> CacheBehavior
forall x. CacheBehavior -> Rep CacheBehavior x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CacheBehavior x -> CacheBehavior
$cfrom :: forall x. CacheBehavior -> Rep CacheBehavior x
Prelude.Generic)
newCacheBehavior ::
Prelude.Text ->
Prelude.Text ->
ViewerProtocolPolicy ->
CacheBehavior
newCacheBehavior :: Text -> Text -> ViewerProtocolPolicy -> CacheBehavior
newCacheBehavior
Text
pPathPattern_
Text
pTargetOriginId_
ViewerProtocolPolicy
pViewerProtocolPolicy_ =
CacheBehavior' :: Maybe AllowedMethods
-> Maybe LambdaFunctionAssociations
-> Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior
CacheBehavior'
{ $sel:allowedMethods:CacheBehavior' :: Maybe AllowedMethods
allowedMethods = Maybe AllowedMethods
forall a. Maybe a
Prelude.Nothing,
$sel:lambdaFunctionAssociations:CacheBehavior' :: Maybe LambdaFunctionAssociations
lambdaFunctionAssociations = Maybe LambdaFunctionAssociations
forall a. Maybe a
Prelude.Nothing,
$sel:maxTTL:CacheBehavior' :: Maybe Integer
maxTTL = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:minTTL:CacheBehavior' :: Maybe Integer
minTTL = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:compress:CacheBehavior' :: Maybe Bool
compress = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:smoothStreaming:CacheBehavior' :: Maybe Bool
smoothStreaming = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:trustedKeyGroups:CacheBehavior' :: Maybe TrustedKeyGroups
trustedKeyGroups = Maybe TrustedKeyGroups
forall a. Maybe a
Prelude.Nothing,
$sel:realtimeLogConfigArn:CacheBehavior' :: Maybe Text
realtimeLogConfigArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTTL:CacheBehavior' :: Maybe Integer
defaultTTL = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:forwardedValues:CacheBehavior' :: Maybe ForwardedValues
forwardedValues = Maybe ForwardedValues
forall a. Maybe a
Prelude.Nothing,
$sel:trustedSigners:CacheBehavior' :: Maybe TrustedSigners
trustedSigners = Maybe TrustedSigners
forall a. Maybe a
Prelude.Nothing,
$sel:functionAssociations:CacheBehavior' :: Maybe FunctionAssociations
functionAssociations = Maybe FunctionAssociations
forall a. Maybe a
Prelude.Nothing,
$sel:originRequestPolicyId:CacheBehavior' :: Maybe Text
originRequestPolicyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fieldLevelEncryptionId:CacheBehavior' :: Maybe Text
fieldLevelEncryptionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cachePolicyId:CacheBehavior' :: Maybe Text
cachePolicyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pathPattern:CacheBehavior' :: Text
pathPattern = Text
pPathPattern_,
$sel:targetOriginId:CacheBehavior' :: Text
targetOriginId = Text
pTargetOriginId_,
$sel:viewerProtocolPolicy:CacheBehavior' :: ViewerProtocolPolicy
viewerProtocolPolicy = ViewerProtocolPolicy
pViewerProtocolPolicy_
}
cacheBehavior_allowedMethods :: Lens.Lens' CacheBehavior (Prelude.Maybe AllowedMethods)
cacheBehavior_allowedMethods :: (Maybe AllowedMethods -> f (Maybe AllowedMethods))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_allowedMethods = (CacheBehavior -> Maybe AllowedMethods)
-> (CacheBehavior -> Maybe AllowedMethods -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
(Maybe AllowedMethods)
(Maybe AllowedMethods)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe AllowedMethods
allowedMethods :: Maybe AllowedMethods
$sel:allowedMethods:CacheBehavior' :: CacheBehavior -> Maybe AllowedMethods
allowedMethods} -> Maybe AllowedMethods
allowedMethods) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe AllowedMethods
a -> CacheBehavior
s {$sel:allowedMethods:CacheBehavior' :: Maybe AllowedMethods
allowedMethods = Maybe AllowedMethods
a} :: CacheBehavior)
cacheBehavior_lambdaFunctionAssociations :: Lens.Lens' CacheBehavior (Prelude.Maybe LambdaFunctionAssociations)
cacheBehavior_lambdaFunctionAssociations :: (Maybe LambdaFunctionAssociations
-> f (Maybe LambdaFunctionAssociations))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_lambdaFunctionAssociations = (CacheBehavior -> Maybe LambdaFunctionAssociations)
-> (CacheBehavior
-> Maybe LambdaFunctionAssociations -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
(Maybe LambdaFunctionAssociations)
(Maybe LambdaFunctionAssociations)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe LambdaFunctionAssociations
lambdaFunctionAssociations :: Maybe LambdaFunctionAssociations
$sel:lambdaFunctionAssociations:CacheBehavior' :: CacheBehavior -> Maybe LambdaFunctionAssociations
lambdaFunctionAssociations} -> Maybe LambdaFunctionAssociations
lambdaFunctionAssociations) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe LambdaFunctionAssociations
a -> CacheBehavior
s {$sel:lambdaFunctionAssociations:CacheBehavior' :: Maybe LambdaFunctionAssociations
lambdaFunctionAssociations = Maybe LambdaFunctionAssociations
a} :: CacheBehavior)
cacheBehavior_maxTTL :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Integer)
cacheBehavior_maxTTL :: (Maybe Integer -> f (Maybe Integer))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_maxTTL = (CacheBehavior -> Maybe Integer)
-> (CacheBehavior -> Maybe Integer -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Integer
maxTTL :: Maybe Integer
$sel:maxTTL:CacheBehavior' :: CacheBehavior -> Maybe Integer
maxTTL} -> Maybe Integer
maxTTL) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Integer
a -> CacheBehavior
s {$sel:maxTTL:CacheBehavior' :: Maybe Integer
maxTTL = Maybe Integer
a} :: CacheBehavior)
cacheBehavior_minTTL :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Integer)
cacheBehavior_minTTL :: (Maybe Integer -> f (Maybe Integer))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_minTTL = (CacheBehavior -> Maybe Integer)
-> (CacheBehavior -> Maybe Integer -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Integer
minTTL :: Maybe Integer
$sel:minTTL:CacheBehavior' :: CacheBehavior -> Maybe Integer
minTTL} -> Maybe Integer
minTTL) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Integer
a -> CacheBehavior
s {$sel:minTTL:CacheBehavior' :: Maybe Integer
minTTL = Maybe Integer
a} :: CacheBehavior)
cacheBehavior_compress :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Bool)
cacheBehavior_compress :: (Maybe Bool -> f (Maybe Bool)) -> CacheBehavior -> f CacheBehavior
cacheBehavior_compress = (CacheBehavior -> Maybe Bool)
-> (CacheBehavior -> Maybe Bool -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Bool
compress :: Maybe Bool
$sel:compress:CacheBehavior' :: CacheBehavior -> Maybe Bool
compress} -> Maybe Bool
compress) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Bool
a -> CacheBehavior
s {$sel:compress:CacheBehavior' :: Maybe Bool
compress = Maybe Bool
a} :: CacheBehavior)
cacheBehavior_smoothStreaming :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Bool)
cacheBehavior_smoothStreaming :: (Maybe Bool -> f (Maybe Bool)) -> CacheBehavior -> f CacheBehavior
cacheBehavior_smoothStreaming = (CacheBehavior -> Maybe Bool)
-> (CacheBehavior -> Maybe Bool -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Bool
smoothStreaming :: Maybe Bool
$sel:smoothStreaming:CacheBehavior' :: CacheBehavior -> Maybe Bool
smoothStreaming} -> Maybe Bool
smoothStreaming) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Bool
a -> CacheBehavior
s {$sel:smoothStreaming:CacheBehavior' :: Maybe Bool
smoothStreaming = Maybe Bool
a} :: CacheBehavior)
cacheBehavior_trustedKeyGroups :: Lens.Lens' CacheBehavior (Prelude.Maybe TrustedKeyGroups)
cacheBehavior_trustedKeyGroups :: (Maybe TrustedKeyGroups -> f (Maybe TrustedKeyGroups))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_trustedKeyGroups = (CacheBehavior -> Maybe TrustedKeyGroups)
-> (CacheBehavior -> Maybe TrustedKeyGroups -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
(Maybe TrustedKeyGroups)
(Maybe TrustedKeyGroups)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe TrustedKeyGroups
trustedKeyGroups :: Maybe TrustedKeyGroups
$sel:trustedKeyGroups:CacheBehavior' :: CacheBehavior -> Maybe TrustedKeyGroups
trustedKeyGroups} -> Maybe TrustedKeyGroups
trustedKeyGroups) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe TrustedKeyGroups
a -> CacheBehavior
s {$sel:trustedKeyGroups:CacheBehavior' :: Maybe TrustedKeyGroups
trustedKeyGroups = Maybe TrustedKeyGroups
a} :: CacheBehavior)
cacheBehavior_realtimeLogConfigArn :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Text)
cacheBehavior_realtimeLogConfigArn :: (Maybe Text -> f (Maybe Text)) -> CacheBehavior -> f CacheBehavior
cacheBehavior_realtimeLogConfigArn = (CacheBehavior -> Maybe Text)
-> (CacheBehavior -> Maybe Text -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Text
realtimeLogConfigArn :: Maybe Text
$sel:realtimeLogConfigArn:CacheBehavior' :: CacheBehavior -> Maybe Text
realtimeLogConfigArn} -> Maybe Text
realtimeLogConfigArn) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Text
a -> CacheBehavior
s {$sel:realtimeLogConfigArn:CacheBehavior' :: Maybe Text
realtimeLogConfigArn = Maybe Text
a} :: CacheBehavior)
cacheBehavior_defaultTTL :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Integer)
cacheBehavior_defaultTTL :: (Maybe Integer -> f (Maybe Integer))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_defaultTTL = (CacheBehavior -> Maybe Integer)
-> (CacheBehavior -> Maybe Integer -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Integer
defaultTTL :: Maybe Integer
$sel:defaultTTL:CacheBehavior' :: CacheBehavior -> Maybe Integer
defaultTTL} -> Maybe Integer
defaultTTL) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Integer
a -> CacheBehavior
s {$sel:defaultTTL:CacheBehavior' :: Maybe Integer
defaultTTL = Maybe Integer
a} :: CacheBehavior)
cacheBehavior_forwardedValues :: Lens.Lens' CacheBehavior (Prelude.Maybe ForwardedValues)
cacheBehavior_forwardedValues :: (Maybe ForwardedValues -> f (Maybe ForwardedValues))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_forwardedValues = (CacheBehavior -> Maybe ForwardedValues)
-> (CacheBehavior -> Maybe ForwardedValues -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
(Maybe ForwardedValues)
(Maybe ForwardedValues)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe ForwardedValues
forwardedValues :: Maybe ForwardedValues
$sel:forwardedValues:CacheBehavior' :: CacheBehavior -> Maybe ForwardedValues
forwardedValues} -> Maybe ForwardedValues
forwardedValues) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe ForwardedValues
a -> CacheBehavior
s {$sel:forwardedValues:CacheBehavior' :: Maybe ForwardedValues
forwardedValues = Maybe ForwardedValues
a} :: CacheBehavior)
cacheBehavior_trustedSigners :: Lens.Lens' CacheBehavior (Prelude.Maybe TrustedSigners)
cacheBehavior_trustedSigners :: (Maybe TrustedSigners -> f (Maybe TrustedSigners))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_trustedSigners = (CacheBehavior -> Maybe TrustedSigners)
-> (CacheBehavior -> Maybe TrustedSigners -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
(Maybe TrustedSigners)
(Maybe TrustedSigners)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe TrustedSigners
trustedSigners :: Maybe TrustedSigners
$sel:trustedSigners:CacheBehavior' :: CacheBehavior -> Maybe TrustedSigners
trustedSigners} -> Maybe TrustedSigners
trustedSigners) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe TrustedSigners
a -> CacheBehavior
s {$sel:trustedSigners:CacheBehavior' :: Maybe TrustedSigners
trustedSigners = Maybe TrustedSigners
a} :: CacheBehavior)
cacheBehavior_functionAssociations :: Lens.Lens' CacheBehavior (Prelude.Maybe FunctionAssociations)
cacheBehavior_functionAssociations :: (Maybe FunctionAssociations -> f (Maybe FunctionAssociations))
-> CacheBehavior -> f CacheBehavior
cacheBehavior_functionAssociations = (CacheBehavior -> Maybe FunctionAssociations)
-> (CacheBehavior -> Maybe FunctionAssociations -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
(Maybe FunctionAssociations)
(Maybe FunctionAssociations)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe FunctionAssociations
functionAssociations :: Maybe FunctionAssociations
$sel:functionAssociations:CacheBehavior' :: CacheBehavior -> Maybe FunctionAssociations
functionAssociations} -> Maybe FunctionAssociations
functionAssociations) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe FunctionAssociations
a -> CacheBehavior
s {$sel:functionAssociations:CacheBehavior' :: Maybe FunctionAssociations
functionAssociations = Maybe FunctionAssociations
a} :: CacheBehavior)
cacheBehavior_originRequestPolicyId :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Text)
cacheBehavior_originRequestPolicyId :: (Maybe Text -> f (Maybe Text)) -> CacheBehavior -> f CacheBehavior
cacheBehavior_originRequestPolicyId = (CacheBehavior -> Maybe Text)
-> (CacheBehavior -> Maybe Text -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Text
originRequestPolicyId :: Maybe Text
$sel:originRequestPolicyId:CacheBehavior' :: CacheBehavior -> Maybe Text
originRequestPolicyId} -> Maybe Text
originRequestPolicyId) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Text
a -> CacheBehavior
s {$sel:originRequestPolicyId:CacheBehavior' :: Maybe Text
originRequestPolicyId = Maybe Text
a} :: CacheBehavior)
cacheBehavior_fieldLevelEncryptionId :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Text)
cacheBehavior_fieldLevelEncryptionId :: (Maybe Text -> f (Maybe Text)) -> CacheBehavior -> f CacheBehavior
cacheBehavior_fieldLevelEncryptionId = (CacheBehavior -> Maybe Text)
-> (CacheBehavior -> Maybe Text -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Text
fieldLevelEncryptionId :: Maybe Text
$sel:fieldLevelEncryptionId:CacheBehavior' :: CacheBehavior -> Maybe Text
fieldLevelEncryptionId} -> Maybe Text
fieldLevelEncryptionId) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Text
a -> CacheBehavior
s {$sel:fieldLevelEncryptionId:CacheBehavior' :: Maybe Text
fieldLevelEncryptionId = Maybe Text
a} :: CacheBehavior)
cacheBehavior_cachePolicyId :: Lens.Lens' CacheBehavior (Prelude.Maybe Prelude.Text)
cacheBehavior_cachePolicyId :: (Maybe Text -> f (Maybe Text)) -> CacheBehavior -> f CacheBehavior
cacheBehavior_cachePolicyId = (CacheBehavior -> Maybe Text)
-> (CacheBehavior -> Maybe Text -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Maybe Text
cachePolicyId :: Maybe Text
$sel:cachePolicyId:CacheBehavior' :: CacheBehavior -> Maybe Text
cachePolicyId} -> Maybe Text
cachePolicyId) (\s :: CacheBehavior
s@CacheBehavior' {} Maybe Text
a -> CacheBehavior
s {$sel:cachePolicyId:CacheBehavior' :: Maybe Text
cachePolicyId = Maybe Text
a} :: CacheBehavior)
cacheBehavior_pathPattern :: Lens.Lens' CacheBehavior Prelude.Text
cacheBehavior_pathPattern :: (Text -> f Text) -> CacheBehavior -> f CacheBehavior
cacheBehavior_pathPattern = (CacheBehavior -> Text)
-> (CacheBehavior -> Text -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Text
pathPattern :: Text
$sel:pathPattern:CacheBehavior' :: CacheBehavior -> Text
pathPattern} -> Text
pathPattern) (\s :: CacheBehavior
s@CacheBehavior' {} Text
a -> CacheBehavior
s {$sel:pathPattern:CacheBehavior' :: Text
pathPattern = Text
a} :: CacheBehavior)
cacheBehavior_targetOriginId :: Lens.Lens' CacheBehavior Prelude.Text
cacheBehavior_targetOriginId :: (Text -> f Text) -> CacheBehavior -> f CacheBehavior
cacheBehavior_targetOriginId = (CacheBehavior -> Text)
-> (CacheBehavior -> Text -> CacheBehavior)
-> Lens CacheBehavior CacheBehavior Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {Text
targetOriginId :: Text
$sel:targetOriginId:CacheBehavior' :: CacheBehavior -> Text
targetOriginId} -> Text
targetOriginId) (\s :: CacheBehavior
s@CacheBehavior' {} Text
a -> CacheBehavior
s {$sel:targetOriginId:CacheBehavior' :: Text
targetOriginId = Text
a} :: CacheBehavior)
cacheBehavior_viewerProtocolPolicy :: Lens.Lens' CacheBehavior ViewerProtocolPolicy
cacheBehavior_viewerProtocolPolicy :: (ViewerProtocolPolicy -> f ViewerProtocolPolicy)
-> CacheBehavior -> f CacheBehavior
cacheBehavior_viewerProtocolPolicy = (CacheBehavior -> ViewerProtocolPolicy)
-> (CacheBehavior -> ViewerProtocolPolicy -> CacheBehavior)
-> Lens
CacheBehavior
CacheBehavior
ViewerProtocolPolicy
ViewerProtocolPolicy
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheBehavior' {ViewerProtocolPolicy
viewerProtocolPolicy :: ViewerProtocolPolicy
$sel:viewerProtocolPolicy:CacheBehavior' :: CacheBehavior -> ViewerProtocolPolicy
viewerProtocolPolicy} -> ViewerProtocolPolicy
viewerProtocolPolicy) (\s :: CacheBehavior
s@CacheBehavior' {} ViewerProtocolPolicy
a -> CacheBehavior
s {$sel:viewerProtocolPolicy:CacheBehavior' :: ViewerProtocolPolicy
viewerProtocolPolicy = ViewerProtocolPolicy
a} :: CacheBehavior)
instance Core.FromXML CacheBehavior where
parseXML :: [Node] -> Either String CacheBehavior
parseXML [Node]
x =
Maybe AllowedMethods
-> Maybe LambdaFunctionAssociations
-> Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior
CacheBehavior'
(Maybe AllowedMethods
-> Maybe LambdaFunctionAssociations
-> Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe AllowedMethods)
-> Either
String
(Maybe LambdaFunctionAssociations
-> Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe AllowedMethods)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AllowedMethods")
Either
String
(Maybe LambdaFunctionAssociations
-> Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe LambdaFunctionAssociations)
-> Either
String
(Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe LambdaFunctionAssociations)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LambdaFunctionAssociations")
Either
String
(Maybe Integer
-> Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Integer)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxTTL")
Either
String
(Maybe Integer
-> Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Integer)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MinTTL")
Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Compress")
Either
String
(Maybe Bool
-> Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Bool)
-> Either
String
(Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SmoothStreaming")
Either
String
(Maybe TrustedKeyGroups
-> Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe TrustedKeyGroups)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe TrustedKeyGroups)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TrustedKeyGroups")
Either
String
(Maybe Text
-> Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"RealtimeLogConfigArn")
Either
String
(Maybe Integer
-> Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Integer)
-> Either
String
(Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Integer)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DefaultTTL")
Either
String
(Maybe ForwardedValues
-> Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe ForwardedValues)
-> Either
String
(Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ForwardedValues)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ForwardedValues")
Either
String
(Maybe TrustedSigners
-> Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe TrustedSigners)
-> Either
String
(Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe TrustedSigners)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TrustedSigners")
Either
String
(Maybe FunctionAssociations
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe FunctionAssociations)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe FunctionAssociations)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FunctionAssociations")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"OriginRequestPolicyId")
Either
String
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> ViewerProtocolPolicy
-> CacheBehavior)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Text -> Text -> ViewerProtocolPolicy -> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FieldLevelEncryptionId")
Either
String
(Maybe Text
-> Text -> Text -> ViewerProtocolPolicy -> CacheBehavior)
-> Either String (Maybe Text)
-> Either
String (Text -> Text -> ViewerProtocolPolicy -> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CachePolicyId")
Either
String (Text -> Text -> ViewerProtocolPolicy -> CacheBehavior)
-> Either String Text
-> Either String (Text -> ViewerProtocolPolicy -> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"PathPattern")
Either String (Text -> ViewerProtocolPolicy -> CacheBehavior)
-> Either String Text
-> Either String (ViewerProtocolPolicy -> CacheBehavior)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"TargetOriginId")
Either String (ViewerProtocolPolicy -> CacheBehavior)
-> Either String ViewerProtocolPolicy
-> Either String CacheBehavior
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ViewerProtocolPolicy
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"ViewerProtocolPolicy")
instance Prelude.Hashable CacheBehavior
instance Prelude.NFData CacheBehavior
instance Core.ToXML CacheBehavior where
toXML :: CacheBehavior -> XML
toXML CacheBehavior' {Maybe Bool
Maybe Integer
Maybe Text
Maybe FunctionAssociations
Maybe LambdaFunctionAssociations
Maybe AllowedMethods
Maybe ForwardedValues
Maybe TrustedKeyGroups
Maybe TrustedSigners
Text
ViewerProtocolPolicy
viewerProtocolPolicy :: ViewerProtocolPolicy
targetOriginId :: Text
pathPattern :: Text
cachePolicyId :: Maybe Text
fieldLevelEncryptionId :: Maybe Text
originRequestPolicyId :: Maybe Text
functionAssociations :: Maybe FunctionAssociations
trustedSigners :: Maybe TrustedSigners
forwardedValues :: Maybe ForwardedValues
defaultTTL :: Maybe Integer
realtimeLogConfigArn :: Maybe Text
trustedKeyGroups :: Maybe TrustedKeyGroups
smoothStreaming :: Maybe Bool
compress :: Maybe Bool
minTTL :: Maybe Integer
maxTTL :: Maybe Integer
lambdaFunctionAssociations :: Maybe LambdaFunctionAssociations
allowedMethods :: Maybe AllowedMethods
$sel:viewerProtocolPolicy:CacheBehavior' :: CacheBehavior -> ViewerProtocolPolicy
$sel:targetOriginId:CacheBehavior' :: CacheBehavior -> Text
$sel:pathPattern:CacheBehavior' :: CacheBehavior -> Text
$sel:cachePolicyId:CacheBehavior' :: CacheBehavior -> Maybe Text
$sel:fieldLevelEncryptionId:CacheBehavior' :: CacheBehavior -> Maybe Text
$sel:originRequestPolicyId:CacheBehavior' :: CacheBehavior -> Maybe Text
$sel:functionAssociations:CacheBehavior' :: CacheBehavior -> Maybe FunctionAssociations
$sel:trustedSigners:CacheBehavior' :: CacheBehavior -> Maybe TrustedSigners
$sel:forwardedValues:CacheBehavior' :: CacheBehavior -> Maybe ForwardedValues
$sel:defaultTTL:CacheBehavior' :: CacheBehavior -> Maybe Integer
$sel:realtimeLogConfigArn:CacheBehavior' :: CacheBehavior -> Maybe Text
$sel:trustedKeyGroups:CacheBehavior' :: CacheBehavior -> Maybe TrustedKeyGroups
$sel:smoothStreaming:CacheBehavior' :: CacheBehavior -> Maybe Bool
$sel:compress:CacheBehavior' :: CacheBehavior -> Maybe Bool
$sel:minTTL:CacheBehavior' :: CacheBehavior -> Maybe Integer
$sel:maxTTL:CacheBehavior' :: CacheBehavior -> Maybe Integer
$sel:lambdaFunctionAssociations:CacheBehavior' :: CacheBehavior -> Maybe LambdaFunctionAssociations
$sel:allowedMethods:CacheBehavior' :: CacheBehavior -> Maybe AllowedMethods
..} =
[XML] -> XML
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ Name
"AllowedMethods" Name -> Maybe AllowedMethods -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe AllowedMethods
allowedMethods,
Name
"LambdaFunctionAssociations"
Name -> Maybe LambdaFunctionAssociations -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe LambdaFunctionAssociations
lambdaFunctionAssociations,
Name
"MaxTTL" Name -> Maybe Integer -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Integer
maxTTL,
Name
"MinTTL" Name -> Maybe Integer -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Integer
minTTL,
Name
"Compress" Name -> Maybe Bool -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Bool
compress,
Name
"SmoothStreaming" Name -> Maybe Bool -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Bool
smoothStreaming,
Name
"TrustedKeyGroups" Name -> Maybe TrustedKeyGroups -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe TrustedKeyGroups
trustedKeyGroups,
Name
"RealtimeLogConfigArn" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
realtimeLogConfigArn,
Name
"DefaultTTL" Name -> Maybe Integer -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Integer
defaultTTL,
Name
"ForwardedValues" Name -> Maybe ForwardedValues -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe ForwardedValues
forwardedValues,
Name
"TrustedSigners" Name -> Maybe TrustedSigners -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe TrustedSigners
trustedSigners,
Name
"FunctionAssociations" Name -> Maybe FunctionAssociations -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe FunctionAssociations
functionAssociations,
Name
"OriginRequestPolicyId"
Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
originRequestPolicyId,
Name
"FieldLevelEncryptionId"
Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
fieldLevelEncryptionId,
Name
"CachePolicyId" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
cachePolicyId,
Name
"PathPattern" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
pathPattern,
Name
"TargetOriginId" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
targetOriginId,
Name
"ViewerProtocolPolicy" Name -> ViewerProtocolPolicy -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= ViewerProtocolPolicy
viewerProtocolPolicy
]