module Stratosphere.ServiceCatalogAppRegistry.AttributeGroup (
AttributeGroup(..), mkAttributeGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeGroup
=
AttributeGroup {AttributeGroup -> ()
haddock_workaround_ :: (),
AttributeGroup -> Object
attributes :: JSON.Object,
AttributeGroup -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
AttributeGroup -> Value Text
name :: (Value Prelude.Text),
AttributeGroup -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (AttributeGroup -> AttributeGroup -> Bool
(AttributeGroup -> AttributeGroup -> Bool)
-> (AttributeGroup -> AttributeGroup -> Bool) -> Eq AttributeGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttributeGroup -> AttributeGroup -> Bool
== :: AttributeGroup -> AttributeGroup -> Bool
$c/= :: AttributeGroup -> AttributeGroup -> Bool
/= :: AttributeGroup -> AttributeGroup -> Bool
Prelude.Eq, Int -> AttributeGroup -> ShowS
[AttributeGroup] -> ShowS
AttributeGroup -> String
(Int -> AttributeGroup -> ShowS)
-> (AttributeGroup -> String)
-> ([AttributeGroup] -> ShowS)
-> Show AttributeGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttributeGroup -> ShowS
showsPrec :: Int -> AttributeGroup -> ShowS
$cshow :: AttributeGroup -> String
show :: AttributeGroup -> String
$cshowList :: [AttributeGroup] -> ShowS
showList :: [AttributeGroup] -> ShowS
Prelude.Show)
mkAttributeGroup ::
JSON.Object -> Value Prelude.Text -> AttributeGroup
mkAttributeGroup :: Object -> Value Text -> AttributeGroup
mkAttributeGroup Object
attributes Value Text
name
= AttributeGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributes :: Object
attributes = Object
attributes, name :: Value Text
name = Value Text
name,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AttributeGroup where
toResourceProperties :: AttributeGroup -> ResourceProperties
toResourceProperties AttributeGroup {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: AttributeGroup -> ()
attributes :: AttributeGroup -> Object
description :: AttributeGroup -> Maybe (Value Text)
name :: AttributeGroup -> Value Text
tags :: AttributeGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ServiceCatalogAppRegistry::AttributeGroup",
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
"Attributes" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
attributes, Key
"Name" 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
name]
([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
"Description" (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)
description,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON AttributeGroup where
toJSON :: AttributeGroup -> Value
toJSON AttributeGroup {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: AttributeGroup -> ()
attributes :: AttributeGroup -> Object
description :: AttributeGroup -> Maybe (Value Text)
name :: AttributeGroup -> Value Text
tags :: AttributeGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
= [(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
"Attributes" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
attributes, Key
"Name" 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
name]
([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
"Description" (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)
description,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Attributes" AttributeGroup where
type PropertyType "Attributes" AttributeGroup = JSON.Object
set :: PropertyType "Attributes" AttributeGroup
-> AttributeGroup -> AttributeGroup
set PropertyType "Attributes" AttributeGroup
newValue AttributeGroup {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: AttributeGroup -> ()
attributes :: AttributeGroup -> Object
description :: AttributeGroup -> Maybe (Value Text)
name :: AttributeGroup -> Value Text
tags :: AttributeGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
= AttributeGroup {attributes :: Object
attributes = Object
PropertyType "Attributes" AttributeGroup
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Description" AttributeGroup where
type PropertyType "Description" AttributeGroup = Value Prelude.Text
set :: PropertyType "Description" AttributeGroup
-> AttributeGroup -> AttributeGroup
set PropertyType "Description" AttributeGroup
newValue AttributeGroup {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: AttributeGroup -> ()
attributes :: AttributeGroup -> Object
description :: AttributeGroup -> Maybe (Value Text)
name :: AttributeGroup -> Value Text
tags :: AttributeGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
= AttributeGroup {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" AttributeGroup
Value Text
newValue, Maybe (Map Text (Value Text))
()
Object
Value Text
haddock_workaround_ :: ()
attributes :: Object
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" AttributeGroup where
type PropertyType "Name" AttributeGroup = Value Prelude.Text
set :: PropertyType "Name" AttributeGroup
-> AttributeGroup -> AttributeGroup
set PropertyType "Name" AttributeGroup
newValue AttributeGroup {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: AttributeGroup -> ()
attributes :: AttributeGroup -> Object
description :: AttributeGroup -> Maybe (Value Text)
name :: AttributeGroup -> Value Text
tags :: AttributeGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
= AttributeGroup {name :: Value Text
name = PropertyType "Name" AttributeGroup
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" AttributeGroup where
type PropertyType "Tags" AttributeGroup = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" AttributeGroup
-> AttributeGroup -> AttributeGroup
set PropertyType "Tags" AttributeGroup
newValue AttributeGroup {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: AttributeGroup -> ()
attributes :: AttributeGroup -> Object
description :: AttributeGroup -> Maybe (Value Text)
name :: AttributeGroup -> Value Text
tags :: AttributeGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
= AttributeGroup {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" AttributeGroup
newValue, Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
attributes :: Object
description :: Maybe (Value Text)
name :: Value Text
..}