module Stratosphere.AppSync.GraphQLApi.CognitoUserPoolConfigProperty (
CognitoUserPoolConfigProperty(..), mkCognitoUserPoolConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CognitoUserPoolConfigProperty
=
CognitoUserPoolConfigProperty {CognitoUserPoolConfigProperty -> ()
haddock_workaround_ :: (),
CognitoUserPoolConfigProperty -> Maybe (Value Text)
appIdClientRegex :: (Prelude.Maybe (Value Prelude.Text)),
CognitoUserPoolConfigProperty -> Maybe (Value Text)
awsRegion :: (Prelude.Maybe (Value Prelude.Text)),
CognitoUserPoolConfigProperty -> Maybe (Value Text)
userPoolId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool
(CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool)
-> (CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool)
-> Eq CognitoUserPoolConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool
== :: CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool
$c/= :: CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool
/= :: CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> Bool
Prelude.Eq, Int -> CognitoUserPoolConfigProperty -> ShowS
[CognitoUserPoolConfigProperty] -> ShowS
CognitoUserPoolConfigProperty -> String
(Int -> CognitoUserPoolConfigProperty -> ShowS)
-> (CognitoUserPoolConfigProperty -> String)
-> ([CognitoUserPoolConfigProperty] -> ShowS)
-> Show CognitoUserPoolConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CognitoUserPoolConfigProperty -> ShowS
showsPrec :: Int -> CognitoUserPoolConfigProperty -> ShowS
$cshow :: CognitoUserPoolConfigProperty -> String
show :: CognitoUserPoolConfigProperty -> String
$cshowList :: [CognitoUserPoolConfigProperty] -> ShowS
showList :: [CognitoUserPoolConfigProperty] -> ShowS
Prelude.Show)
mkCognitoUserPoolConfigProperty :: CognitoUserPoolConfigProperty
mkCognitoUserPoolConfigProperty :: CognitoUserPoolConfigProperty
mkCognitoUserPoolConfigProperty
= CognitoUserPoolConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), appIdClientRegex :: Maybe (Value Text)
appIdClientRegex = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
awsRegion :: Maybe (Value Text)
awsRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, userPoolId :: Maybe (Value Text)
userPoolId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CognitoUserPoolConfigProperty where
toResourceProperties :: CognitoUserPoolConfigProperty -> ResourceProperties
toResourceProperties CognitoUserPoolConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: CognitoUserPoolConfigProperty -> ()
appIdClientRegex :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
awsRegion :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
userPoolId :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppSync::GraphQLApi.CognitoUserPoolConfig",
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
"AppIdClientRegex" (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)
appIdClientRegex,
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
"AwsRegion" (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)
awsRegion,
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
"UserPoolId" (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)
userPoolId])}
instance JSON.ToJSON CognitoUserPoolConfigProperty where
toJSON :: CognitoUserPoolConfigProperty -> Value
toJSON CognitoUserPoolConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: CognitoUserPoolConfigProperty -> ()
appIdClientRegex :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
awsRegion :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
userPoolId :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value 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
"AppIdClientRegex" (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)
appIdClientRegex,
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
"AwsRegion" (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)
awsRegion,
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
"UserPoolId" (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)
userPoolId]))
instance Property "AppIdClientRegex" CognitoUserPoolConfigProperty where
type PropertyType "AppIdClientRegex" CognitoUserPoolConfigProperty = Value Prelude.Text
set :: PropertyType "AppIdClientRegex" CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> CognitoUserPoolConfigProperty
set PropertyType "AppIdClientRegex" CognitoUserPoolConfigProperty
newValue CognitoUserPoolConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: CognitoUserPoolConfigProperty -> ()
appIdClientRegex :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
awsRegion :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
userPoolId :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
..}
= CognitoUserPoolConfigProperty
{appIdClientRegex :: Maybe (Value Text)
appIdClientRegex = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AppIdClientRegex" CognitoUserPoolConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
..}
instance Property "AwsRegion" CognitoUserPoolConfigProperty where
type PropertyType "AwsRegion" CognitoUserPoolConfigProperty = Value Prelude.Text
set :: PropertyType "AwsRegion" CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> CognitoUserPoolConfigProperty
set PropertyType "AwsRegion" CognitoUserPoolConfigProperty
newValue CognitoUserPoolConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: CognitoUserPoolConfigProperty -> ()
appIdClientRegex :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
awsRegion :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
userPoolId :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
..}
= CognitoUserPoolConfigProperty
{awsRegion :: Maybe (Value Text)
awsRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AwsRegion" CognitoUserPoolConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
..}
instance Property "UserPoolId" CognitoUserPoolConfigProperty where
type PropertyType "UserPoolId" CognitoUserPoolConfigProperty = Value Prelude.Text
set :: PropertyType "UserPoolId" CognitoUserPoolConfigProperty
-> CognitoUserPoolConfigProperty -> CognitoUserPoolConfigProperty
set PropertyType "UserPoolId" CognitoUserPoolConfigProperty
newValue CognitoUserPoolConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: CognitoUserPoolConfigProperty -> ()
appIdClientRegex :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
awsRegion :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
userPoolId :: CognitoUserPoolConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
userPoolId :: Maybe (Value Text)
..}
= CognitoUserPoolConfigProperty
{userPoolId :: Maybe (Value Text)
userPoolId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserPoolId" CognitoUserPoolConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
appIdClientRegex :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
..}