module Stratosphere.CloudFront.OriginAccessControl.OriginAccessControlConfigProperty (
OriginAccessControlConfigProperty(..),
mkOriginAccessControlConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OriginAccessControlConfigProperty
=
OriginAccessControlConfigProperty {OriginAccessControlConfigProperty -> ()
haddock_workaround_ :: (),
OriginAccessControlConfigProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
OriginAccessControlConfigProperty -> Value Text
name :: (Value Prelude.Text),
OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: (Value Prelude.Text),
OriginAccessControlConfigProperty -> Value Text
signingBehavior :: (Value Prelude.Text),
OriginAccessControlConfigProperty -> Value Text
signingProtocol :: (Value Prelude.Text)}
deriving stock (OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool
(OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool)
-> (OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool)
-> Eq OriginAccessControlConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool
== :: OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool
$c/= :: OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool
/= :: OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty -> Bool
Prelude.Eq, Int -> OriginAccessControlConfigProperty -> ShowS
[OriginAccessControlConfigProperty] -> ShowS
OriginAccessControlConfigProperty -> String
(Int -> OriginAccessControlConfigProperty -> ShowS)
-> (OriginAccessControlConfigProperty -> String)
-> ([OriginAccessControlConfigProperty] -> ShowS)
-> Show OriginAccessControlConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OriginAccessControlConfigProperty -> ShowS
showsPrec :: Int -> OriginAccessControlConfigProperty -> ShowS
$cshow :: OriginAccessControlConfigProperty -> String
show :: OriginAccessControlConfigProperty -> String
$cshowList :: [OriginAccessControlConfigProperty] -> ShowS
showList :: [OriginAccessControlConfigProperty] -> ShowS
Prelude.Show)
mkOriginAccessControlConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> OriginAccessControlConfigProperty
mkOriginAccessControlConfigProperty :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> OriginAccessControlConfigProperty
mkOriginAccessControlConfigProperty
Value Text
name
Value Text
originAccessControlOriginType
Value Text
signingBehavior
Value Text
signingProtocol
= OriginAccessControlConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
originAccessControlOriginType :: Value Text
originAccessControlOriginType = Value Text
originAccessControlOriginType,
signingBehavior :: Value Text
signingBehavior = Value Text
signingBehavior,
signingProtocol :: Value Text
signingProtocol = Value Text
signingProtocol, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OriginAccessControlConfigProperty where
toResourceProperties :: OriginAccessControlConfigProperty -> ResourceProperties
toResourceProperties OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFront::OriginAccessControl.OriginAccessControlConfig",
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
"Name" 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
name,
Key
"OriginAccessControlOriginType"
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
originAccessControlOriginType,
Key
"SigningBehavior" 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
signingBehavior,
Key
"SigningProtocol" 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
signingProtocol]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"Description" (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)
description]))}
instance JSON.ToJSON OriginAccessControlConfigProperty where
toJSON :: OriginAccessControlConfigProperty -> Value
toJSON OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: 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
"Name" 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
name,
Key
"OriginAccessControlOriginType"
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
originAccessControlOriginType,
Key
"SigningBehavior" 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
signingBehavior,
Key
"SigningProtocol" 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
signingProtocol]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"Description" (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)
description])))
instance Property "Description" OriginAccessControlConfigProperty where
type PropertyType "Description" OriginAccessControlConfigProperty = Value Prelude.Text
set :: PropertyType "Description" OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
set PropertyType "Description" OriginAccessControlConfigProperty
newValue OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
= OriginAccessControlConfigProperty
{description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" OriginAccessControlConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
haddock_workaround_ :: ()
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
instance Property "Name" OriginAccessControlConfigProperty where
type PropertyType "Name" OriginAccessControlConfigProperty = Value Prelude.Text
set :: PropertyType "Name" OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
set PropertyType "Name" OriginAccessControlConfigProperty
newValue OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
= OriginAccessControlConfigProperty {name :: Value Text
name = PropertyType "Name" OriginAccessControlConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
instance Property "OriginAccessControlOriginType" OriginAccessControlConfigProperty where
type PropertyType "OriginAccessControlOriginType" OriginAccessControlConfigProperty = Value Prelude.Text
set :: PropertyType
"OriginAccessControlOriginType" OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
set PropertyType
"OriginAccessControlOriginType" OriginAccessControlConfigProperty
newValue OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
= OriginAccessControlConfigProperty
{originAccessControlOriginType :: Value Text
originAccessControlOriginType = PropertyType
"OriginAccessControlOriginType" OriginAccessControlConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
instance Property "SigningBehavior" OriginAccessControlConfigProperty where
type PropertyType "SigningBehavior" OriginAccessControlConfigProperty = Value Prelude.Text
set :: PropertyType "SigningBehavior" OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
set PropertyType "SigningBehavior" OriginAccessControlConfigProperty
newValue OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
= OriginAccessControlConfigProperty
{signingBehavior :: Value Text
signingBehavior = PropertyType "SigningBehavior" OriginAccessControlConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingProtocol :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingProtocol :: Value Text
..}
instance Property "SigningProtocol" OriginAccessControlConfigProperty where
type PropertyType "SigningProtocol" OriginAccessControlConfigProperty = Value Prelude.Text
set :: PropertyType "SigningProtocol" OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
-> OriginAccessControlConfigProperty
set PropertyType "SigningProtocol" OriginAccessControlConfigProperty
newValue OriginAccessControlConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OriginAccessControlConfigProperty -> ()
description :: OriginAccessControlConfigProperty -> Maybe (Value Text)
name :: OriginAccessControlConfigProperty -> Value Text
originAccessControlOriginType :: OriginAccessControlConfigProperty -> Value Text
signingBehavior :: OriginAccessControlConfigProperty -> Value Text
signingProtocol :: OriginAccessControlConfigProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
signingProtocol :: Value Text
..}
= OriginAccessControlConfigProperty
{signingProtocol :: Value Text
signingProtocol = PropertyType "SigningProtocol" OriginAccessControlConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
originAccessControlOriginType :: Value Text
signingBehavior :: Value Text
..}