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