module Stratosphere.ImageBuilder.DistributionConfiguration.SsmParameterConfigurationProperty (
SsmParameterConfigurationProperty(..),
mkSsmParameterConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SsmParameterConfigurationProperty
=
SsmParameterConfigurationProperty {SsmParameterConfigurationProperty -> ()
haddock_workaround_ :: (),
SsmParameterConfigurationProperty -> Maybe (Value Text)
amiAccountId :: (Prelude.Maybe (Value Prelude.Text)),
SsmParameterConfigurationProperty -> Maybe (Value Text)
dataType :: (Prelude.Maybe (Value Prelude.Text)),
SsmParameterConfigurationProperty -> Value Text
parameterName :: (Value Prelude.Text)}
deriving stock (SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool
(SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool)
-> (SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool)
-> Eq SsmParameterConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool
== :: SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool
$c/= :: SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool
/= :: SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty -> Bool
Prelude.Eq, Int -> SsmParameterConfigurationProperty -> ShowS
[SsmParameterConfigurationProperty] -> ShowS
SsmParameterConfigurationProperty -> String
(Int -> SsmParameterConfigurationProperty -> ShowS)
-> (SsmParameterConfigurationProperty -> String)
-> ([SsmParameterConfigurationProperty] -> ShowS)
-> Show SsmParameterConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SsmParameterConfigurationProperty -> ShowS
showsPrec :: Int -> SsmParameterConfigurationProperty -> ShowS
$cshow :: SsmParameterConfigurationProperty -> String
show :: SsmParameterConfigurationProperty -> String
$cshowList :: [SsmParameterConfigurationProperty] -> ShowS
showList :: [SsmParameterConfigurationProperty] -> ShowS
Prelude.Show)
mkSsmParameterConfigurationProperty ::
Value Prelude.Text -> SsmParameterConfigurationProperty
mkSsmParameterConfigurationProperty :: Value Text -> SsmParameterConfigurationProperty
mkSsmParameterConfigurationProperty Value Text
parameterName
= SsmParameterConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), parameterName :: Value Text
parameterName = Value Text
parameterName,
amiAccountId :: Maybe (Value Text)
amiAccountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, dataType :: Maybe (Value Text)
dataType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SsmParameterConfigurationProperty where
toResourceProperties :: SsmParameterConfigurationProperty -> ResourceProperties
toResourceProperties SsmParameterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SsmParameterConfigurationProperty -> ()
amiAccountId :: SsmParameterConfigurationProperty -> Maybe (Value Text)
dataType :: SsmParameterConfigurationProperty -> Maybe (Value Text)
parameterName :: SsmParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
parameterName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::DistributionConfiguration.SsmParameterConfiguration",
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
"ParameterName" 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
parameterName]
([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
"AmiAccountId" (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)
amiAccountId,
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
"DataType" (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)
dataType]))}
instance JSON.ToJSON SsmParameterConfigurationProperty where
toJSON :: SsmParameterConfigurationProperty -> Value
toJSON SsmParameterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SsmParameterConfigurationProperty -> ()
amiAccountId :: SsmParameterConfigurationProperty -> Maybe (Value Text)
dataType :: SsmParameterConfigurationProperty -> Maybe (Value Text)
parameterName :: SsmParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
parameterName :: 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
"ParameterName" 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
parameterName]
([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
"AmiAccountId" (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)
amiAccountId,
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
"DataType" (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)
dataType])))
instance Property "AmiAccountId" SsmParameterConfigurationProperty where
type PropertyType "AmiAccountId" SsmParameterConfigurationProperty = Value Prelude.Text
set :: PropertyType "AmiAccountId" SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty
set PropertyType "AmiAccountId" SsmParameterConfigurationProperty
newValue SsmParameterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SsmParameterConfigurationProperty -> ()
amiAccountId :: SsmParameterConfigurationProperty -> Maybe (Value Text)
dataType :: SsmParameterConfigurationProperty -> Maybe (Value Text)
parameterName :: SsmParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
parameterName :: Value Text
..}
= SsmParameterConfigurationProperty
{amiAccountId :: Maybe (Value Text)
amiAccountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AmiAccountId" SsmParameterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dataType :: Maybe (Value Text)
parameterName :: Value Text
haddock_workaround_ :: ()
dataType :: Maybe (Value Text)
parameterName :: Value Text
..}
instance Property "DataType" SsmParameterConfigurationProperty where
type PropertyType "DataType" SsmParameterConfigurationProperty = Value Prelude.Text
set :: PropertyType "DataType" SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty
set PropertyType "DataType" SsmParameterConfigurationProperty
newValue SsmParameterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SsmParameterConfigurationProperty -> ()
amiAccountId :: SsmParameterConfigurationProperty -> Maybe (Value Text)
dataType :: SsmParameterConfigurationProperty -> Maybe (Value Text)
parameterName :: SsmParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
parameterName :: Value Text
..}
= SsmParameterConfigurationProperty
{dataType :: Maybe (Value Text)
dataType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataType" SsmParameterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
parameterName :: Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
parameterName :: Value Text
..}
instance Property "ParameterName" SsmParameterConfigurationProperty where
type PropertyType "ParameterName" SsmParameterConfigurationProperty = Value Prelude.Text
set :: PropertyType "ParameterName" SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty
-> SsmParameterConfigurationProperty
set PropertyType "ParameterName" SsmParameterConfigurationProperty
newValue SsmParameterConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SsmParameterConfigurationProperty -> ()
amiAccountId :: SsmParameterConfigurationProperty -> Maybe (Value Text)
dataType :: SsmParameterConfigurationProperty -> Maybe (Value Text)
parameterName :: SsmParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
parameterName :: Value Text
..}
= SsmParameterConfigurationProperty {parameterName :: Value Text
parameterName = PropertyType "ParameterName" SsmParameterConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
haddock_workaround_ :: ()
amiAccountId :: Maybe (Value Text)
dataType :: Maybe (Value Text)
..}