module Stratosphere.CloudFront.PublicKey.PublicKeyConfigProperty (
PublicKeyConfigProperty(..), mkPublicKeyConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PublicKeyConfigProperty
=
PublicKeyConfigProperty {PublicKeyConfigProperty -> ()
haddock_workaround_ :: (),
PublicKeyConfigProperty -> Value Text
callerReference :: (Value Prelude.Text),
:: (Prelude.Maybe (Value Prelude.Text)),
PublicKeyConfigProperty -> Value Text
encodedKey :: (Value Prelude.Text),
PublicKeyConfigProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool
(PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool)
-> (PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool)
-> Eq PublicKeyConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool
== :: PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool
$c/= :: PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool
/= :: PublicKeyConfigProperty -> PublicKeyConfigProperty -> Bool
Prelude.Eq, Int -> PublicKeyConfigProperty -> ShowS
[PublicKeyConfigProperty] -> ShowS
PublicKeyConfigProperty -> String
(Int -> PublicKeyConfigProperty -> ShowS)
-> (PublicKeyConfigProperty -> String)
-> ([PublicKeyConfigProperty] -> ShowS)
-> Show PublicKeyConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PublicKeyConfigProperty -> ShowS
showsPrec :: Int -> PublicKeyConfigProperty -> ShowS
$cshow :: PublicKeyConfigProperty -> String
show :: PublicKeyConfigProperty -> String
$cshowList :: [PublicKeyConfigProperty] -> ShowS
showList :: [PublicKeyConfigProperty] -> ShowS
Prelude.Show)
mkPublicKeyConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> PublicKeyConfigProperty
mkPublicKeyConfigProperty :: Value Text -> Value Text -> Value Text -> PublicKeyConfigProperty
mkPublicKeyConfigProperty Value Text
callerReference Value Text
encodedKey Value Text
name
= PublicKeyConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), callerReference :: Value Text
callerReference = Value Text
callerReference,
encodedKey :: Value Text
encodedKey = Value Text
encodedKey, name :: Value Text
name = Value Text
name, comment :: Maybe (Value Text)
comment = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PublicKeyConfigProperty where
toResourceProperties :: PublicKeyConfigProperty -> ResourceProperties
toResourceProperties PublicKeyConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PublicKeyConfigProperty -> ()
callerReference :: PublicKeyConfigProperty -> Value Text
comment :: PublicKeyConfigProperty -> Maybe (Value Text)
encodedKey :: PublicKeyConfigProperty -> Value Text
name :: PublicKeyConfigProperty -> Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFront::PublicKey.PublicKeyConfig",
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
"CallerReference" 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
callerReference,
Key
"EncodedKey" 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
encodedKey, 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]
([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
"Comment" (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)
comment]))}
instance JSON.ToJSON PublicKeyConfigProperty where
toJSON :: PublicKeyConfigProperty -> Value
toJSON PublicKeyConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PublicKeyConfigProperty -> ()
callerReference :: PublicKeyConfigProperty -> Value Text
comment :: PublicKeyConfigProperty -> Maybe (Value Text)
encodedKey :: PublicKeyConfigProperty -> Value Text
name :: PublicKeyConfigProperty -> Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: 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
"CallerReference" 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
callerReference,
Key
"EncodedKey" 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
encodedKey, 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]
([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
"Comment" (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)
comment])))
instance Property "CallerReference" PublicKeyConfigProperty where
type PropertyType "CallerReference" PublicKeyConfigProperty = Value Prelude.Text
set :: PropertyType "CallerReference" PublicKeyConfigProperty
-> PublicKeyConfigProperty -> PublicKeyConfigProperty
set PropertyType "CallerReference" PublicKeyConfigProperty
newValue PublicKeyConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PublicKeyConfigProperty -> ()
callerReference :: PublicKeyConfigProperty -> Value Text
comment :: PublicKeyConfigProperty -> Maybe (Value Text)
encodedKey :: PublicKeyConfigProperty -> Value Text
name :: PublicKeyConfigProperty -> Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
..}
= PublicKeyConfigProperty {callerReference :: Value Text
callerReference = PropertyType "CallerReference" PublicKeyConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
haddock_workaround_ :: ()
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
..}
instance Property "Comment" PublicKeyConfigProperty where
type PropertyType "Comment" PublicKeyConfigProperty = Value Prelude.Text
set :: PropertyType "Comment" PublicKeyConfigProperty
-> PublicKeyConfigProperty -> PublicKeyConfigProperty
set PropertyType "Comment" PublicKeyConfigProperty
newValue PublicKeyConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PublicKeyConfigProperty -> ()
callerReference :: PublicKeyConfigProperty -> Value Text
comment :: PublicKeyConfigProperty -> Maybe (Value Text)
encodedKey :: PublicKeyConfigProperty -> Value Text
name :: PublicKeyConfigProperty -> Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
..}
= PublicKeyConfigProperty {comment :: Maybe (Value Text)
comment = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Comment" PublicKeyConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
encodedKey :: Value Text
name :: Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
encodedKey :: Value Text
name :: Value Text
..}
instance Property "EncodedKey" PublicKeyConfigProperty where
type PropertyType "EncodedKey" PublicKeyConfigProperty = Value Prelude.Text
set :: PropertyType "EncodedKey" PublicKeyConfigProperty
-> PublicKeyConfigProperty -> PublicKeyConfigProperty
set PropertyType "EncodedKey" PublicKeyConfigProperty
newValue PublicKeyConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PublicKeyConfigProperty -> ()
callerReference :: PublicKeyConfigProperty -> Value Text
comment :: PublicKeyConfigProperty -> Maybe (Value Text)
encodedKey :: PublicKeyConfigProperty -> Value Text
name :: PublicKeyConfigProperty -> Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
..}
= PublicKeyConfigProperty {encodedKey :: Value Text
encodedKey = PropertyType "EncodedKey" PublicKeyConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
name :: Value Text
..}
instance Property "Name" PublicKeyConfigProperty where
type PropertyType "Name" PublicKeyConfigProperty = Value Prelude.Text
set :: PropertyType "Name" PublicKeyConfigProperty
-> PublicKeyConfigProperty -> PublicKeyConfigProperty
set PropertyType "Name" PublicKeyConfigProperty
newValue PublicKeyConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PublicKeyConfigProperty -> ()
callerReference :: PublicKeyConfigProperty -> Value Text
comment :: PublicKeyConfigProperty -> Maybe (Value Text)
encodedKey :: PublicKeyConfigProperty -> Value Text
name :: PublicKeyConfigProperty -> Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
name :: Value Text
..}
= PublicKeyConfigProperty {name :: Value Text
name = PropertyType "Name" PublicKeyConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
haddock_workaround_ :: ()
callerReference :: Value Text
comment :: Maybe (Value Text)
encodedKey :: Value Text
..}