module Stratosphere.CloudFront.Distribution.VpcOriginConfigProperty (
VpcOriginConfigProperty(..), mkVpcOriginConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcOriginConfigProperty
=
VpcOriginConfigProperty {VpcOriginConfigProperty -> ()
haddock_workaround_ :: (),
VpcOriginConfigProperty -> Maybe (Value Integer)
originKeepaliveTimeout :: (Prelude.Maybe (Value Prelude.Integer)),
VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: (Prelude.Maybe (Value Prelude.Integer)),
VpcOriginConfigProperty -> Maybe (Value Text)
ownerAccountId :: (Prelude.Maybe (Value Prelude.Text)),
VpcOriginConfigProperty -> Value Text
vpcOriginId :: (Value Prelude.Text)}
deriving stock (VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool
(VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool)
-> (VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool)
-> Eq VpcOriginConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool
== :: VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool
$c/= :: VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool
/= :: VpcOriginConfigProperty -> VpcOriginConfigProperty -> Bool
Prelude.Eq, Int -> VpcOriginConfigProperty -> ShowS
[VpcOriginConfigProperty] -> ShowS
VpcOriginConfigProperty -> String
(Int -> VpcOriginConfigProperty -> ShowS)
-> (VpcOriginConfigProperty -> String)
-> ([VpcOriginConfigProperty] -> ShowS)
-> Show VpcOriginConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcOriginConfigProperty -> ShowS
showsPrec :: Int -> VpcOriginConfigProperty -> ShowS
$cshow :: VpcOriginConfigProperty -> String
show :: VpcOriginConfigProperty -> String
$cshowList :: [VpcOriginConfigProperty] -> ShowS
showList :: [VpcOriginConfigProperty] -> ShowS
Prelude.Show)
mkVpcOriginConfigProperty ::
Value Prelude.Text -> VpcOriginConfigProperty
mkVpcOriginConfigProperty :: Value Text -> VpcOriginConfigProperty
mkVpcOriginConfigProperty Value Text
vpcOriginId
= VpcOriginConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), vpcOriginId :: Value Text
vpcOriginId = Value Text
vpcOriginId,
originKeepaliveTimeout :: Maybe (Value Integer)
originKeepaliveTimeout = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
originReadTimeout :: Maybe (Value Integer)
originReadTimeout = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
ownerAccountId :: Maybe (Value Text)
ownerAccountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcOriginConfigProperty where
toResourceProperties :: VpcOriginConfigProperty -> ResourceProperties
toResourceProperties VpcOriginConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VpcOriginConfigProperty -> ()
originKeepaliveTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
ownerAccountId :: VpcOriginConfigProperty -> Maybe (Value Text)
vpcOriginId :: VpcOriginConfigProperty -> Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFront::Distribution.VpcOriginConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"VpcOriginId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
vpcOriginId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OriginKeepaliveTimeout"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
originKeepaliveTimeout,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OriginReadTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
originReadTimeout,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OwnerAccountId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
ownerAccountId]))}
instance JSON.ToJSON VpcOriginConfigProperty where
toJSON :: VpcOriginConfigProperty -> Value
toJSON VpcOriginConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VpcOriginConfigProperty -> ()
originKeepaliveTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
ownerAccountId :: VpcOriginConfigProperty -> Maybe (Value Text)
vpcOriginId :: VpcOriginConfigProperty -> Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"VpcOriginId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
vpcOriginId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OriginKeepaliveTimeout"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
originKeepaliveTimeout,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OriginReadTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
originReadTimeout,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OwnerAccountId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
ownerAccountId])))
instance Property "OriginKeepaliveTimeout" VpcOriginConfigProperty where
type PropertyType "OriginKeepaliveTimeout" VpcOriginConfigProperty = Value Prelude.Integer
set :: PropertyType "OriginKeepaliveTimeout" VpcOriginConfigProperty
-> VpcOriginConfigProperty -> VpcOriginConfigProperty
set PropertyType "OriginKeepaliveTimeout" VpcOriginConfigProperty
newValue VpcOriginConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VpcOriginConfigProperty -> ()
originKeepaliveTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
ownerAccountId :: VpcOriginConfigProperty -> Maybe (Value Text)
vpcOriginId :: VpcOriginConfigProperty -> Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
= VpcOriginConfigProperty
{originKeepaliveTimeout :: Maybe (Value Integer)
originKeepaliveTimeout = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OriginKeepaliveTimeout" VpcOriginConfigProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
haddock_workaround_ :: ()
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
instance Property "OriginReadTimeout" VpcOriginConfigProperty where
type PropertyType "OriginReadTimeout" VpcOriginConfigProperty = Value Prelude.Integer
set :: PropertyType "OriginReadTimeout" VpcOriginConfigProperty
-> VpcOriginConfigProperty -> VpcOriginConfigProperty
set PropertyType "OriginReadTimeout" VpcOriginConfigProperty
newValue VpcOriginConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VpcOriginConfigProperty -> ()
originKeepaliveTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
ownerAccountId :: VpcOriginConfigProperty -> Maybe (Value Text)
vpcOriginId :: VpcOriginConfigProperty -> Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
= VpcOriginConfigProperty
{originReadTimeout :: Maybe (Value Integer)
originReadTimeout = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OriginReadTimeout" VpcOriginConfigProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
instance Property "OwnerAccountId" VpcOriginConfigProperty where
type PropertyType "OwnerAccountId" VpcOriginConfigProperty = Value Prelude.Text
set :: PropertyType "OwnerAccountId" VpcOriginConfigProperty
-> VpcOriginConfigProperty -> VpcOriginConfigProperty
set PropertyType "OwnerAccountId" VpcOriginConfigProperty
newValue VpcOriginConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VpcOriginConfigProperty -> ()
originKeepaliveTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
ownerAccountId :: VpcOriginConfigProperty -> Maybe (Value Text)
vpcOriginId :: VpcOriginConfigProperty -> Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
= VpcOriginConfigProperty
{ownerAccountId :: Maybe (Value Text)
ownerAccountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OwnerAccountId" VpcOriginConfigProperty
Value Text
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
vpcOriginId :: Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
vpcOriginId :: Value Text
..}
instance Property "VpcOriginId" VpcOriginConfigProperty where
type PropertyType "VpcOriginId" VpcOriginConfigProperty = Value Prelude.Text
set :: PropertyType "VpcOriginId" VpcOriginConfigProperty
-> VpcOriginConfigProperty -> VpcOriginConfigProperty
set PropertyType "VpcOriginId" VpcOriginConfigProperty
newValue VpcOriginConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VpcOriginConfigProperty -> ()
originKeepaliveTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
originReadTimeout :: VpcOriginConfigProperty -> Maybe (Value Integer)
ownerAccountId :: VpcOriginConfigProperty -> Maybe (Value Text)
vpcOriginId :: VpcOriginConfigProperty -> Value Text
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
vpcOriginId :: Value Text
..}
= VpcOriginConfigProperty {vpcOriginId :: Value Text
vpcOriginId = PropertyType "VpcOriginId" VpcOriginConfigProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
haddock_workaround_ :: ()
originKeepaliveTimeout :: Maybe (Value Integer)
originReadTimeout :: Maybe (Value Integer)
ownerAccountId :: Maybe (Value Text)
..}