module Stratosphere.ResourceGroups.Group.ConfigurationItemProperty (
module Exports, ConfigurationItemProperty(..),
mkConfigurationItemProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ResourceGroups.Group.ConfigurationParameterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationItemProperty
=
ConfigurationItemProperty {ConfigurationItemProperty -> ()
haddock_workaround_ :: (),
ConfigurationItemProperty -> Maybe [ConfigurationParameterProperty]
parameters :: (Prelude.Maybe [ConfigurationParameterProperty]),
ConfigurationItemProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ConfigurationItemProperty -> ConfigurationItemProperty -> Bool
(ConfigurationItemProperty -> ConfigurationItemProperty -> Bool)
-> (ConfigurationItemProperty -> ConfigurationItemProperty -> Bool)
-> Eq ConfigurationItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationItemProperty -> ConfigurationItemProperty -> Bool
== :: ConfigurationItemProperty -> ConfigurationItemProperty -> Bool
$c/= :: ConfigurationItemProperty -> ConfigurationItemProperty -> Bool
/= :: ConfigurationItemProperty -> ConfigurationItemProperty -> Bool
Prelude.Eq, Int -> ConfigurationItemProperty -> ShowS
[ConfigurationItemProperty] -> ShowS
ConfigurationItemProperty -> String
(Int -> ConfigurationItemProperty -> ShowS)
-> (ConfigurationItemProperty -> String)
-> ([ConfigurationItemProperty] -> ShowS)
-> Show ConfigurationItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationItemProperty -> ShowS
showsPrec :: Int -> ConfigurationItemProperty -> ShowS
$cshow :: ConfigurationItemProperty -> String
show :: ConfigurationItemProperty -> String
$cshowList :: [ConfigurationItemProperty] -> ShowS
showList :: [ConfigurationItemProperty] -> ShowS
Prelude.Show)
mkConfigurationItemProperty :: ConfigurationItemProperty
mkConfigurationItemProperty :: ConfigurationItemProperty
mkConfigurationItemProperty
= ConfigurationItemProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), parameters :: Maybe [ConfigurationParameterProperty]
parameters = Maybe [ConfigurationParameterProperty]
forall a. Maybe a
Prelude.Nothing,
type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationItemProperty where
toResourceProperties :: ConfigurationItemProperty -> ResourceProperties
toResourceProperties ConfigurationItemProperty {Maybe [ConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationItemProperty -> ()
parameters :: ConfigurationItemProperty -> Maybe [ConfigurationParameterProperty]
type' :: ConfigurationItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe [ConfigurationParameterProperty]
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ResourceGroups::Group.ConfigurationItem",
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 -> [ConfigurationParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" ([ConfigurationParameterProperty] -> (Key, Value))
-> Maybe [ConfigurationParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConfigurationParameterProperty]
parameters,
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
"Type" (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)
type'])}
instance JSON.ToJSON ConfigurationItemProperty where
toJSON :: ConfigurationItemProperty -> Value
toJSON ConfigurationItemProperty {Maybe [ConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationItemProperty -> ()
parameters :: ConfigurationItemProperty -> Maybe [ConfigurationParameterProperty]
type' :: ConfigurationItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe [ConfigurationParameterProperty]
type' :: 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 -> [ConfigurationParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" ([ConfigurationParameterProperty] -> (Key, Value))
-> Maybe [ConfigurationParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConfigurationParameterProperty]
parameters,
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
"Type" (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)
type']))
instance Property "Parameters" ConfigurationItemProperty where
type PropertyType "Parameters" ConfigurationItemProperty = [ConfigurationParameterProperty]
set :: PropertyType "Parameters" ConfigurationItemProperty
-> ConfigurationItemProperty -> ConfigurationItemProperty
set PropertyType "Parameters" ConfigurationItemProperty
newValue ConfigurationItemProperty {Maybe [ConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationItemProperty -> ()
parameters :: ConfigurationItemProperty -> Maybe [ConfigurationParameterProperty]
type' :: ConfigurationItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe [ConfigurationParameterProperty]
type' :: Maybe (Value Text)
..}
= ConfigurationItemProperty
{parameters :: Maybe [ConfigurationParameterProperty]
parameters = [ConfigurationParameterProperty]
-> Maybe [ConfigurationParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ConfigurationParameterProperty]
PropertyType "Parameters" ConfigurationItemProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
instance Property "Type" ConfigurationItemProperty where
type PropertyType "Type" ConfigurationItemProperty = Value Prelude.Text
set :: PropertyType "Type" ConfigurationItemProperty
-> ConfigurationItemProperty -> ConfigurationItemProperty
set PropertyType "Type" ConfigurationItemProperty
newValue ConfigurationItemProperty {Maybe [ConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationItemProperty -> ()
parameters :: ConfigurationItemProperty -> Maybe [ConfigurationParameterProperty]
type' :: ConfigurationItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe [ConfigurationParameterProperty]
type' :: Maybe (Value Text)
..}
= ConfigurationItemProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" ConfigurationItemProperty
Value Text
newValue, Maybe [ConfigurationParameterProperty]
()
haddock_workaround_ :: ()
parameters :: Maybe [ConfigurationParameterProperty]
haddock_workaround_ :: ()
parameters :: Maybe [ConfigurationParameterProperty]
..}