module Stratosphere.VerifiedPermissions.IdentitySource.CognitoGroupConfigurationProperty (
CognitoGroupConfigurationProperty(..),
mkCognitoGroupConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CognitoGroupConfigurationProperty
=
CognitoGroupConfigurationProperty {CognitoGroupConfigurationProperty -> ()
haddock_workaround_ :: (),
CognitoGroupConfigurationProperty -> Value Text
groupEntityType :: (Value Prelude.Text)}
deriving stock (CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool
(CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool)
-> (CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool)
-> Eq CognitoGroupConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool
== :: CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool
$c/= :: CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool
/= :: CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty -> Bool
Prelude.Eq, Int -> CognitoGroupConfigurationProperty -> ShowS
[CognitoGroupConfigurationProperty] -> ShowS
CognitoGroupConfigurationProperty -> String
(Int -> CognitoGroupConfigurationProperty -> ShowS)
-> (CognitoGroupConfigurationProperty -> String)
-> ([CognitoGroupConfigurationProperty] -> ShowS)
-> Show CognitoGroupConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CognitoGroupConfigurationProperty -> ShowS
showsPrec :: Int -> CognitoGroupConfigurationProperty -> ShowS
$cshow :: CognitoGroupConfigurationProperty -> String
show :: CognitoGroupConfigurationProperty -> String
$cshowList :: [CognitoGroupConfigurationProperty] -> ShowS
showList :: [CognitoGroupConfigurationProperty] -> ShowS
Prelude.Show)
mkCognitoGroupConfigurationProperty ::
Value Prelude.Text -> CognitoGroupConfigurationProperty
mkCognitoGroupConfigurationProperty :: Value Text -> CognitoGroupConfigurationProperty
mkCognitoGroupConfigurationProperty Value Text
groupEntityType
= CognitoGroupConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), groupEntityType :: Value Text
groupEntityType = Value Text
groupEntityType}
instance ToResourceProperties CognitoGroupConfigurationProperty where
toResourceProperties :: CognitoGroupConfigurationProperty -> ResourceProperties
toResourceProperties CognitoGroupConfigurationProperty {()
Value Text
haddock_workaround_ :: CognitoGroupConfigurationProperty -> ()
groupEntityType :: CognitoGroupConfigurationProperty -> Value Text
haddock_workaround_ :: ()
groupEntityType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::VerifiedPermissions::IdentitySource.CognitoGroupConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"GroupEntityType" 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
groupEntityType]}
instance JSON.ToJSON CognitoGroupConfigurationProperty where
toJSON :: CognitoGroupConfigurationProperty -> Value
toJSON CognitoGroupConfigurationProperty {()
Value Text
haddock_workaround_ :: CognitoGroupConfigurationProperty -> ()
groupEntityType :: CognitoGroupConfigurationProperty -> Value Text
haddock_workaround_ :: ()
groupEntityType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"GroupEntityType" 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
groupEntityType]
instance Property "GroupEntityType" CognitoGroupConfigurationProperty where
type PropertyType "GroupEntityType" CognitoGroupConfigurationProperty = Value Prelude.Text
set :: PropertyType "GroupEntityType" CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty
-> CognitoGroupConfigurationProperty
set PropertyType "GroupEntityType" CognitoGroupConfigurationProperty
newValue CognitoGroupConfigurationProperty {()
Value Text
haddock_workaround_ :: CognitoGroupConfigurationProperty -> ()
groupEntityType :: CognitoGroupConfigurationProperty -> Value Text
haddock_workaround_ :: ()
groupEntityType :: Value Text
..}
= CognitoGroupConfigurationProperty
{groupEntityType :: Value Text
groupEntityType = PropertyType "GroupEntityType" CognitoGroupConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}