module Stratosphere.ResourceGroups.Group.ConfigurationParameterProperty (
ConfigurationParameterProperty(..),
mkConfigurationParameterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationParameterProperty
=
ConfigurationParameterProperty {ConfigurationParameterProperty -> ()
haddock_workaround_ :: (),
ConfigurationParameterProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
ConfigurationParameterProperty -> Maybe (ValueList Text)
values :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool
(ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool)
-> (ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool)
-> Eq ConfigurationParameterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool
== :: ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool
$c/= :: ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool
/= :: ConfigurationParameterProperty
-> ConfigurationParameterProperty -> Bool
Prelude.Eq, Int -> ConfigurationParameterProperty -> ShowS
[ConfigurationParameterProperty] -> ShowS
ConfigurationParameterProperty -> String
(Int -> ConfigurationParameterProperty -> ShowS)
-> (ConfigurationParameterProperty -> String)
-> ([ConfigurationParameterProperty] -> ShowS)
-> Show ConfigurationParameterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationParameterProperty -> ShowS
showsPrec :: Int -> ConfigurationParameterProperty -> ShowS
$cshow :: ConfigurationParameterProperty -> String
show :: ConfigurationParameterProperty -> String
$cshowList :: [ConfigurationParameterProperty] -> ShowS
showList :: [ConfigurationParameterProperty] -> ShowS
Prelude.Show)
mkConfigurationParameterProperty :: ConfigurationParameterProperty
mkConfigurationParameterProperty :: ConfigurationParameterProperty
mkConfigurationParameterProperty
= ConfigurationParameterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
values :: Maybe (ValueList Text)
values = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationParameterProperty where
toResourceProperties :: ConfigurationParameterProperty -> ResourceProperties
toResourceProperties ConfigurationParameterProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationParameterProperty -> ()
name :: ConfigurationParameterProperty -> Maybe (Value Text)
values :: ConfigurationParameterProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ResourceGroups::Group.ConfigurationParameter",
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
"Name" (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)
name,
Key -> ValueList 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
"Values" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
values])}
instance JSON.ToJSON ConfigurationParameterProperty where
toJSON :: ConfigurationParameterProperty -> Value
toJSON ConfigurationParameterProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationParameterProperty -> ()
name :: ConfigurationParameterProperty -> Maybe (Value Text)
values :: ConfigurationParameterProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
values :: Maybe (ValueList 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
"Name" (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)
name,
Key -> ValueList 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
"Values" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
values]))
instance Property "Name" ConfigurationParameterProperty where
type PropertyType "Name" ConfigurationParameterProperty = Value Prelude.Text
set :: PropertyType "Name" ConfigurationParameterProperty
-> ConfigurationParameterProperty -> ConfigurationParameterProperty
set PropertyType "Name" ConfigurationParameterProperty
newValue ConfigurationParameterProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationParameterProperty -> ()
name :: ConfigurationParameterProperty -> Maybe (Value Text)
values :: ConfigurationParameterProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= ConfigurationParameterProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" ConfigurationParameterProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
values :: Maybe (ValueList Text)
haddock_workaround_ :: ()
values :: Maybe (ValueList Text)
..}
instance Property "Values" ConfigurationParameterProperty where
type PropertyType "Values" ConfigurationParameterProperty = ValueList Prelude.Text
set :: PropertyType "Values" ConfigurationParameterProperty
-> ConfigurationParameterProperty -> ConfigurationParameterProperty
set PropertyType "Values" ConfigurationParameterProperty
newValue ConfigurationParameterProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationParameterProperty -> ()
name :: ConfigurationParameterProperty -> Maybe (Value Text)
values :: ConfigurationParameterProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= ConfigurationParameterProperty
{values :: Maybe (ValueList Text)
values = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Values" ConfigurationParameterProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}