module Stratosphere.ECS.Cluster.ManagedStorageConfigurationProperty (
ManagedStorageConfigurationProperty(..),
mkManagedStorageConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ManagedStorageConfigurationProperty
=
ManagedStorageConfigurationProperty {ManagedStorageConfigurationProperty -> ()
haddock_workaround_ :: (),
ManagedStorageConfigurationProperty -> Maybe (Value Text)
fargateEphemeralStorageKmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
ManagedStorageConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool
(ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool)
-> (ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool)
-> Eq ManagedStorageConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool
== :: ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool
$c/= :: ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool
/= :: ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty -> Bool
Prelude.Eq, Int -> ManagedStorageConfigurationProperty -> ShowS
[ManagedStorageConfigurationProperty] -> ShowS
ManagedStorageConfigurationProperty -> String
(Int -> ManagedStorageConfigurationProperty -> ShowS)
-> (ManagedStorageConfigurationProperty -> String)
-> ([ManagedStorageConfigurationProperty] -> ShowS)
-> Show ManagedStorageConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ManagedStorageConfigurationProperty -> ShowS
showsPrec :: Int -> ManagedStorageConfigurationProperty -> ShowS
$cshow :: ManagedStorageConfigurationProperty -> String
show :: ManagedStorageConfigurationProperty -> String
$cshowList :: [ManagedStorageConfigurationProperty] -> ShowS
showList :: [ManagedStorageConfigurationProperty] -> ShowS
Prelude.Show)
mkManagedStorageConfigurationProperty ::
ManagedStorageConfigurationProperty
mkManagedStorageConfigurationProperty :: ManagedStorageConfigurationProperty
mkManagedStorageConfigurationProperty
= ManagedStorageConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
fargateEphemeralStorageKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ManagedStorageConfigurationProperty where
toResourceProperties :: ManagedStorageConfigurationProperty -> ResourceProperties
toResourceProperties ManagedStorageConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ManagedStorageConfigurationProperty -> ()
fargateEphemeralStorageKmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::Cluster.ManagedStorageConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"FargateEphemeralStorageKmsKeyId"
(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)
fargateEphemeralStorageKmsKeyId,
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
"KmsKeyId" (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)
kmsKeyId])}
instance JSON.ToJSON ManagedStorageConfigurationProperty where
toJSON :: ManagedStorageConfigurationProperty -> Value
toJSON ManagedStorageConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ManagedStorageConfigurationProperty -> ()
fargateEphemeralStorageKmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"FargateEphemeralStorageKmsKeyId"
(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)
fargateEphemeralStorageKmsKeyId,
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
"KmsKeyId" (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)
kmsKeyId]))
instance Property "FargateEphemeralStorageKmsKeyId" ManagedStorageConfigurationProperty where
type PropertyType "FargateEphemeralStorageKmsKeyId" ManagedStorageConfigurationProperty = Value Prelude.Text
set :: PropertyType
"FargateEphemeralStorageKmsKeyId"
ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty
set PropertyType
"FargateEphemeralStorageKmsKeyId"
ManagedStorageConfigurationProperty
newValue ManagedStorageConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ManagedStorageConfigurationProperty -> ()
fargateEphemeralStorageKmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
= ManagedStorageConfigurationProperty
{fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
fargateEphemeralStorageKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"FargateEphemeralStorageKmsKeyId"
ManagedStorageConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}
instance Property "KmsKeyId" ManagedStorageConfigurationProperty where
type PropertyType "KmsKeyId" ManagedStorageConfigurationProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty
-> ManagedStorageConfigurationProperty
set PropertyType "KmsKeyId" ManagedStorageConfigurationProperty
newValue ManagedStorageConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ManagedStorageConfigurationProperty -> ()
fargateEphemeralStorageKmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: ManagedStorageConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}
= ManagedStorageConfigurationProperty
{kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" ManagedStorageConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
fargateEphemeralStorageKmsKeyId :: Maybe (Value Text)
..}