module Stratosphere.IdentityStore.Group (
        Group(..), mkGroup
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Group
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html>
    Group {Group -> ()
haddock_workaround_ :: (),
           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-description>
           Group -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-displayname>
           Group -> Value Text
displayName :: (Value Prelude.Text),
           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-identitystoreid>
           Group -> Value Text
identityStoreId :: (Value Prelude.Text)}
  deriving stock (Group -> Group -> Bool
(Group -> Group -> Bool) -> (Group -> Group -> Bool) -> Eq Group
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Group -> Group -> Bool
== :: Group -> Group -> Bool
$c/= :: Group -> Group -> Bool
/= :: Group -> Group -> Bool
Prelude.Eq, Int -> Group -> ShowS
[Group] -> ShowS
Group -> String
(Int -> Group -> ShowS)
-> (Group -> String) -> ([Group] -> ShowS) -> Show Group
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Group -> ShowS
showsPrec :: Int -> Group -> ShowS
$cshow :: Group -> String
show :: Group -> String
$cshowList :: [Group] -> ShowS
showList :: [Group] -> ShowS
Prelude.Show)
mkGroup :: Value Prelude.Text -> Value Prelude.Text -> Group
mkGroup :: Value Text -> Value Text -> Group
mkGroup Value Text
displayName Value Text
identityStoreId
  = Group
      {haddock_workaround_ :: ()
haddock_workaround_ = (), displayName :: Value Text
displayName = Value Text
displayName,
       identityStoreId :: Value Text
identityStoreId = Value Text
identityStoreId, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Group where
  toResourceProperties :: Group -> ResourceProperties
toResourceProperties Group {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Group -> ()
description :: Group -> Maybe (Value Text)
displayName :: Group -> Value Text
identityStoreId :: Group -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
identityStoreId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IdentityStore::Group",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"DisplayName" 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
displayName,
                            Key
"IdentityStoreId" 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
identityStoreId]
                           ([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]))}
instance JSON.ToJSON Group where
  toJSON :: Group -> Value
toJSON Group {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Group -> ()
description :: Group -> Maybe (Value Text)
displayName :: Group -> Value Text
identityStoreId :: Group -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
identityStoreId :: 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
"DisplayName" 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
displayName,
               Key
"IdentityStoreId" 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
identityStoreId]
              ([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])))
instance Property "Description" Group where
  type PropertyType "Description" Group = Value Prelude.Text
  set :: PropertyType "Description" Group -> Group -> Group
set PropertyType "Description" Group
newValue Group {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Group -> ()
description :: Group -> Maybe (Value Text)
displayName :: Group -> Value Text
identityStoreId :: Group -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
identityStoreId :: Value Text
..}
    = Group {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" Group
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
displayName :: Value Text
identityStoreId :: Value Text
haddock_workaround_ :: ()
displayName :: Value Text
identityStoreId :: Value Text
..}
instance Property "DisplayName" Group where
  type PropertyType "DisplayName" Group = Value Prelude.Text
  set :: PropertyType "DisplayName" Group -> Group -> Group
set PropertyType "DisplayName" Group
newValue Group {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Group -> ()
description :: Group -> Maybe (Value Text)
displayName :: Group -> Value Text
identityStoreId :: Group -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
identityStoreId :: Value Text
..} = Group {displayName :: Value Text
displayName = PropertyType "DisplayName" Group
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
identityStoreId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
identityStoreId :: Value Text
..}
instance Property "IdentityStoreId" Group where
  type PropertyType "IdentityStoreId" Group = Value Prelude.Text
  set :: PropertyType "IdentityStoreId" Group -> Group -> Group
set PropertyType "IdentityStoreId" Group
newValue Group {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Group -> ()
description :: Group -> Maybe (Value Text)
displayName :: Group -> Value Text
identityStoreId :: Group -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
identityStoreId :: Value Text
..} = Group {identityStoreId :: Value Text
identityStoreId = PropertyType "IdentityStoreId" Group
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Value Text
..}