module Stratosphere.ECS.Service.EBSTagSpecificationProperty (
EBSTagSpecificationProperty(..), mkEBSTagSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data EBSTagSpecificationProperty
=
EBSTagSpecificationProperty {EBSTagSpecificationProperty -> ()
haddock_workaround_ :: (),
EBSTagSpecificationProperty -> Maybe (Value Text)
propagateTags :: (Prelude.Maybe (Value Prelude.Text)),
EBSTagSpecificationProperty -> Value Text
resourceType :: (Value Prelude.Text),
EBSTagSpecificationProperty -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (EBSTagSpecificationProperty -> EBSTagSpecificationProperty -> Bool
(EBSTagSpecificationProperty
-> EBSTagSpecificationProperty -> Bool)
-> (EBSTagSpecificationProperty
-> EBSTagSpecificationProperty -> Bool)
-> Eq EBSTagSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EBSTagSpecificationProperty -> EBSTagSpecificationProperty -> Bool
== :: EBSTagSpecificationProperty -> EBSTagSpecificationProperty -> Bool
$c/= :: EBSTagSpecificationProperty -> EBSTagSpecificationProperty -> Bool
/= :: EBSTagSpecificationProperty -> EBSTagSpecificationProperty -> Bool
Prelude.Eq, Int -> EBSTagSpecificationProperty -> ShowS
[EBSTagSpecificationProperty] -> ShowS
EBSTagSpecificationProperty -> String
(Int -> EBSTagSpecificationProperty -> ShowS)
-> (EBSTagSpecificationProperty -> String)
-> ([EBSTagSpecificationProperty] -> ShowS)
-> Show EBSTagSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EBSTagSpecificationProperty -> ShowS
showsPrec :: Int -> EBSTagSpecificationProperty -> ShowS
$cshow :: EBSTagSpecificationProperty -> String
show :: EBSTagSpecificationProperty -> String
$cshowList :: [EBSTagSpecificationProperty] -> ShowS
showList :: [EBSTagSpecificationProperty] -> ShowS
Prelude.Show)
mkEBSTagSpecificationProperty ::
Value Prelude.Text -> EBSTagSpecificationProperty
mkEBSTagSpecificationProperty :: Value Text -> EBSTagSpecificationProperty
mkEBSTagSpecificationProperty Value Text
resourceType
= EBSTagSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceType :: Value Text
resourceType = Value Text
resourceType,
propagateTags :: Maybe (Value Text)
propagateTags = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EBSTagSpecificationProperty where
toResourceProperties :: EBSTagSpecificationProperty -> ResourceProperties
toResourceProperties EBSTagSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EBSTagSpecificationProperty -> ()
propagateTags :: EBSTagSpecificationProperty -> Maybe (Value Text)
resourceType :: EBSTagSpecificationProperty -> Value Text
tags :: EBSTagSpecificationProperty -> Maybe [Tag]
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::Service.EBSTagSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"ResourceType" 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
resourceType]
([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
"PropagateTags" (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)
propagateTags,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON EBSTagSpecificationProperty where
toJSON :: EBSTagSpecificationProperty -> Value
toJSON EBSTagSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EBSTagSpecificationProperty -> ()
propagateTags :: EBSTagSpecificationProperty -> Maybe (Value Text)
resourceType :: EBSTagSpecificationProperty -> Value Text
tags :: EBSTagSpecificationProperty -> Maybe [Tag]
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
tags :: Maybe [Tag]
..}
= [(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
"ResourceType" 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
resourceType]
([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
"PropagateTags" (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)
propagateTags,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "PropagateTags" EBSTagSpecificationProperty where
type PropertyType "PropagateTags" EBSTagSpecificationProperty = Value Prelude.Text
set :: PropertyType "PropagateTags" EBSTagSpecificationProperty
-> EBSTagSpecificationProperty -> EBSTagSpecificationProperty
set PropertyType "PropagateTags" EBSTagSpecificationProperty
newValue EBSTagSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EBSTagSpecificationProperty -> ()
propagateTags :: EBSTagSpecificationProperty -> Maybe (Value Text)
resourceType :: EBSTagSpecificationProperty -> Value Text
tags :: EBSTagSpecificationProperty -> Maybe [Tag]
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
tags :: Maybe [Tag]
..}
= EBSTagSpecificationProperty
{propagateTags :: Maybe (Value Text)
propagateTags = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PropagateTags" EBSTagSpecificationProperty
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
resourceType :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
resourceType :: Value Text
tags :: Maybe [Tag]
..}
instance Property "ResourceType" EBSTagSpecificationProperty where
type PropertyType "ResourceType" EBSTagSpecificationProperty = Value Prelude.Text
set :: PropertyType "ResourceType" EBSTagSpecificationProperty
-> EBSTagSpecificationProperty -> EBSTagSpecificationProperty
set PropertyType "ResourceType" EBSTagSpecificationProperty
newValue EBSTagSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EBSTagSpecificationProperty -> ()
propagateTags :: EBSTagSpecificationProperty -> Maybe (Value Text)
resourceType :: EBSTagSpecificationProperty -> Value Text
tags :: EBSTagSpecificationProperty -> Maybe [Tag]
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
tags :: Maybe [Tag]
..}
= EBSTagSpecificationProperty {resourceType :: Value Text
resourceType = PropertyType "ResourceType" EBSTagSpecificationProperty
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" EBSTagSpecificationProperty where
type PropertyType "Tags" EBSTagSpecificationProperty = [Tag]
set :: PropertyType "Tags" EBSTagSpecificationProperty
-> EBSTagSpecificationProperty -> EBSTagSpecificationProperty
set PropertyType "Tags" EBSTagSpecificationProperty
newValue EBSTagSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EBSTagSpecificationProperty -> ()
propagateTags :: EBSTagSpecificationProperty -> Maybe (Value Text)
resourceType :: EBSTagSpecificationProperty -> Value Text
tags :: EBSTagSpecificationProperty -> Maybe [Tag]
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
tags :: Maybe [Tag]
..}
= EBSTagSpecificationProperty {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" EBSTagSpecificationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
haddock_workaround_ :: ()
propagateTags :: Maybe (Value Text)
resourceType :: Value Text
..}