module Stratosphere.DevOpsGuru.ResourceCollection.TagCollectionProperty (
TagCollectionProperty(..), mkTagCollectionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TagCollectionProperty
=
TagCollectionProperty {TagCollectionProperty -> ()
haddock_workaround_ :: (),
TagCollectionProperty -> Maybe (Value Text)
appBoundaryKey :: (Prelude.Maybe (Value Prelude.Text)),
TagCollectionProperty -> Maybe (ValueList Text)
tagValues :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (TagCollectionProperty -> TagCollectionProperty -> Bool
(TagCollectionProperty -> TagCollectionProperty -> Bool)
-> (TagCollectionProperty -> TagCollectionProperty -> Bool)
-> Eq TagCollectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagCollectionProperty -> TagCollectionProperty -> Bool
== :: TagCollectionProperty -> TagCollectionProperty -> Bool
$c/= :: TagCollectionProperty -> TagCollectionProperty -> Bool
/= :: TagCollectionProperty -> TagCollectionProperty -> Bool
Prelude.Eq, Int -> TagCollectionProperty -> ShowS
[TagCollectionProperty] -> ShowS
TagCollectionProperty -> String
(Int -> TagCollectionProperty -> ShowS)
-> (TagCollectionProperty -> String)
-> ([TagCollectionProperty] -> ShowS)
-> Show TagCollectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagCollectionProperty -> ShowS
showsPrec :: Int -> TagCollectionProperty -> ShowS
$cshow :: TagCollectionProperty -> String
show :: TagCollectionProperty -> String
$cshowList :: [TagCollectionProperty] -> ShowS
showList :: [TagCollectionProperty] -> ShowS
Prelude.Show)
mkTagCollectionProperty :: TagCollectionProperty
mkTagCollectionProperty :: TagCollectionProperty
mkTagCollectionProperty
= TagCollectionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), appBoundaryKey :: Maybe (Value Text)
appBoundaryKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tagValues :: Maybe (ValueList Text)
tagValues = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TagCollectionProperty where
toResourceProperties :: TagCollectionProperty -> ResourceProperties
toResourceProperties TagCollectionProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagCollectionProperty -> ()
appBoundaryKey :: TagCollectionProperty -> Maybe (Value Text)
tagValues :: TagCollectionProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appBoundaryKey :: Maybe (Value Text)
tagValues :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DevOpsGuru::ResourceCollection.TagCollection",
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
"AppBoundaryKey" (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)
appBoundaryKey,
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
"TagValues" (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)
tagValues])}
instance JSON.ToJSON TagCollectionProperty where
toJSON :: TagCollectionProperty -> Value
toJSON TagCollectionProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagCollectionProperty -> ()
appBoundaryKey :: TagCollectionProperty -> Maybe (Value Text)
tagValues :: TagCollectionProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appBoundaryKey :: Maybe (Value Text)
tagValues :: 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
"AppBoundaryKey" (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)
appBoundaryKey,
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
"TagValues" (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)
tagValues]))
instance Property "AppBoundaryKey" TagCollectionProperty where
type PropertyType "AppBoundaryKey" TagCollectionProperty = Value Prelude.Text
set :: PropertyType "AppBoundaryKey" TagCollectionProperty
-> TagCollectionProperty -> TagCollectionProperty
set PropertyType "AppBoundaryKey" TagCollectionProperty
newValue TagCollectionProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagCollectionProperty -> ()
appBoundaryKey :: TagCollectionProperty -> Maybe (Value Text)
tagValues :: TagCollectionProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appBoundaryKey :: Maybe (Value Text)
tagValues :: Maybe (ValueList Text)
..}
= TagCollectionProperty
{appBoundaryKey :: Maybe (Value Text)
appBoundaryKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AppBoundaryKey" TagCollectionProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
tagValues :: Maybe (ValueList Text)
haddock_workaround_ :: ()
tagValues :: Maybe (ValueList Text)
..}
instance Property "TagValues" TagCollectionProperty where
type PropertyType "TagValues" TagCollectionProperty = ValueList Prelude.Text
set :: PropertyType "TagValues" TagCollectionProperty
-> TagCollectionProperty -> TagCollectionProperty
set PropertyType "TagValues" TagCollectionProperty
newValue TagCollectionProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagCollectionProperty -> ()
appBoundaryKey :: TagCollectionProperty -> Maybe (Value Text)
tagValues :: TagCollectionProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
appBoundaryKey :: Maybe (Value Text)
tagValues :: Maybe (ValueList Text)
..}
= TagCollectionProperty {tagValues :: Maybe (ValueList Text)
tagValues = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TagValues" TagCollectionProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
appBoundaryKey :: Maybe (Value Text)
haddock_workaround_ :: ()
appBoundaryKey :: Maybe (Value Text)
..}