module Stratosphere.KinesisFirehose.DeliveryStream.DeliveryStreamEncryptionConfigurationInputProperty (
DeliveryStreamEncryptionConfigurationInputProperty(..),
mkDeliveryStreamEncryptionConfigurationInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeliveryStreamEncryptionConfigurationInputProperty
=
DeliveryStreamEncryptionConfigurationInputProperty {DeliveryStreamEncryptionConfigurationInputProperty -> ()
haddock_workaround_ :: (),
DeliveryStreamEncryptionConfigurationInputProperty
-> Maybe (Value Text)
keyARN :: (Prelude.Maybe (Value Prelude.Text)),
DeliveryStreamEncryptionConfigurationInputProperty -> Value Text
keyType :: (Value Prelude.Text)}
deriving stock (DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool
(DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool)
-> (DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool)
-> Eq DeliveryStreamEncryptionConfigurationInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool
== :: DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool
$c/= :: DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool
/= :: DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty -> Bool
Prelude.Eq, Int -> DeliveryStreamEncryptionConfigurationInputProperty -> ShowS
[DeliveryStreamEncryptionConfigurationInputProperty] -> ShowS
DeliveryStreamEncryptionConfigurationInputProperty -> String
(Int
-> DeliveryStreamEncryptionConfigurationInputProperty -> ShowS)
-> (DeliveryStreamEncryptionConfigurationInputProperty -> String)
-> ([DeliveryStreamEncryptionConfigurationInputProperty] -> ShowS)
-> Show DeliveryStreamEncryptionConfigurationInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeliveryStreamEncryptionConfigurationInputProperty -> ShowS
showsPrec :: Int -> DeliveryStreamEncryptionConfigurationInputProperty -> ShowS
$cshow :: DeliveryStreamEncryptionConfigurationInputProperty -> String
show :: DeliveryStreamEncryptionConfigurationInputProperty -> String
$cshowList :: [DeliveryStreamEncryptionConfigurationInputProperty] -> ShowS
showList :: [DeliveryStreamEncryptionConfigurationInputProperty] -> ShowS
Prelude.Show)
mkDeliveryStreamEncryptionConfigurationInputProperty ::
Value Prelude.Text
-> DeliveryStreamEncryptionConfigurationInputProperty
mkDeliveryStreamEncryptionConfigurationInputProperty :: Value Text -> DeliveryStreamEncryptionConfigurationInputProperty
mkDeliveryStreamEncryptionConfigurationInputProperty Value Text
keyType
= DeliveryStreamEncryptionConfigurationInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), keyType :: Value Text
keyType = Value Text
keyType,
keyARN :: Maybe (Value Text)
keyARN = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeliveryStreamEncryptionConfigurationInputProperty where
toResourceProperties :: DeliveryStreamEncryptionConfigurationInputProperty
-> ResourceProperties
toResourceProperties
DeliveryStreamEncryptionConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliveryStreamEncryptionConfigurationInputProperty -> ()
keyARN :: DeliveryStreamEncryptionConfigurationInputProperty
-> Maybe (Value Text)
keyType :: DeliveryStreamEncryptionConfigurationInputProperty -> Value Text
haddock_workaround_ :: ()
keyARN :: Maybe (Value Text)
keyType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.DeliveryStreamEncryptionConfigurationInput",
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
"KeyType" 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
keyType]
([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
"KeyARN" (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)
keyARN]))}
instance JSON.ToJSON DeliveryStreamEncryptionConfigurationInputProperty where
toJSON :: DeliveryStreamEncryptionConfigurationInputProperty -> Value
toJSON DeliveryStreamEncryptionConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliveryStreamEncryptionConfigurationInputProperty -> ()
keyARN :: DeliveryStreamEncryptionConfigurationInputProperty
-> Maybe (Value Text)
keyType :: DeliveryStreamEncryptionConfigurationInputProperty -> Value Text
haddock_workaround_ :: ()
keyARN :: Maybe (Value Text)
keyType :: 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
"KeyType" 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
keyType]
([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
"KeyARN" (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)
keyARN])))
instance Property "KeyARN" DeliveryStreamEncryptionConfigurationInputProperty where
type PropertyType "KeyARN" DeliveryStreamEncryptionConfigurationInputProperty = Value Prelude.Text
set :: PropertyType
"KeyARN" DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty
set
PropertyType
"KeyARN" DeliveryStreamEncryptionConfigurationInputProperty
newValue
DeliveryStreamEncryptionConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliveryStreamEncryptionConfigurationInputProperty -> ()
keyARN :: DeliveryStreamEncryptionConfigurationInputProperty
-> Maybe (Value Text)
keyType :: DeliveryStreamEncryptionConfigurationInputProperty -> Value Text
haddock_workaround_ :: ()
keyARN :: Maybe (Value Text)
keyType :: Value Text
..}
= DeliveryStreamEncryptionConfigurationInputProperty
{keyARN :: Maybe (Value Text)
keyARN = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"KeyARN" DeliveryStreamEncryptionConfigurationInputProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
keyType :: Value Text
haddock_workaround_ :: ()
keyType :: Value Text
..}
instance Property "KeyType" DeliveryStreamEncryptionConfigurationInputProperty where
type PropertyType "KeyType" DeliveryStreamEncryptionConfigurationInputProperty = Value Prelude.Text
set :: PropertyType
"KeyType" DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty
-> DeliveryStreamEncryptionConfigurationInputProperty
set
PropertyType
"KeyType" DeliveryStreamEncryptionConfigurationInputProperty
newValue
DeliveryStreamEncryptionConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeliveryStreamEncryptionConfigurationInputProperty -> ()
keyARN :: DeliveryStreamEncryptionConfigurationInputProperty
-> Maybe (Value Text)
keyType :: DeliveryStreamEncryptionConfigurationInputProperty -> Value Text
haddock_workaround_ :: ()
keyARN :: Maybe (Value Text)
keyType :: Value Text
..}
= DeliveryStreamEncryptionConfigurationInputProperty
{keyType :: Value Text
keyType = PropertyType
"KeyType" DeliveryStreamEncryptionConfigurationInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
keyARN :: Maybe (Value Text)
haddock_workaround_ :: ()
keyARN :: Maybe (Value Text)
..}