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