module Stratosphere.Cognito.UserPoolUser (
        module Exports, UserPoolUser(..), mkUserPoolUser
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Cognito.UserPoolUser.AttributeTypeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserPoolUser
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html>
    UserPoolUser {UserPoolUser -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-clientmetadata>
                  UserPoolUser -> Maybe (Map Text (Value Text))
clientMetadata :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-desireddeliverymediums>
                  UserPoolUser -> Maybe (ValueList Text)
desiredDeliveryMediums :: (Prelude.Maybe (ValueList Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-forcealiascreation>
                  UserPoolUser -> Maybe (Value Bool)
forceAliasCreation :: (Prelude.Maybe (Value Prelude.Bool)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-messageaction>
                  UserPoolUser -> Maybe (Value Text)
messageAction :: (Prelude.Maybe (Value Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-userattributes>
                  UserPoolUser -> Maybe [AttributeTypeProperty]
userAttributes :: (Prelude.Maybe [AttributeTypeProperty]),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-userpoolid>
                  UserPoolUser -> Value Text
userPoolId :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-username>
                  UserPoolUser -> Maybe (Value Text)
username :: (Prelude.Maybe (Value Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-validationdata>
                  UserPoolUser -> Maybe [AttributeTypeProperty]
validationData :: (Prelude.Maybe [AttributeTypeProperty])}
  deriving stock (UserPoolUser -> UserPoolUser -> Bool
(UserPoolUser -> UserPoolUser -> Bool)
-> (UserPoolUser -> UserPoolUser -> Bool) -> Eq UserPoolUser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserPoolUser -> UserPoolUser -> Bool
== :: UserPoolUser -> UserPoolUser -> Bool
$c/= :: UserPoolUser -> UserPoolUser -> Bool
/= :: UserPoolUser -> UserPoolUser -> Bool
Prelude.Eq, Int -> UserPoolUser -> ShowS
[UserPoolUser] -> ShowS
UserPoolUser -> String
(Int -> UserPoolUser -> ShowS)
-> (UserPoolUser -> String)
-> ([UserPoolUser] -> ShowS)
-> Show UserPoolUser
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserPoolUser -> ShowS
showsPrec :: Int -> UserPoolUser -> ShowS
$cshow :: UserPoolUser -> String
show :: UserPoolUser -> String
$cshowList :: [UserPoolUser] -> ShowS
showList :: [UserPoolUser] -> ShowS
Prelude.Show)
mkUserPoolUser :: Value Prelude.Text -> UserPoolUser
mkUserPoolUser :: Value Text -> UserPoolUser
mkUserPoolUser Value Text
userPoolId
  = UserPoolUser
      {haddock_workaround_ :: ()
haddock_workaround_ = (), userPoolId :: Value Text
userPoolId = Value Text
userPoolId,
       clientMetadata :: Maybe (Map Text (Value Text))
clientMetadata = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
       desiredDeliveryMediums :: Maybe (ValueList Text)
desiredDeliveryMediums = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       forceAliasCreation :: Maybe (Value Bool)
forceAliasCreation = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       messageAction :: Maybe (Value Text)
messageAction = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, userAttributes :: Maybe [AttributeTypeProperty]
userAttributes = Maybe [AttributeTypeProperty]
forall a. Maybe a
Prelude.Nothing,
       username :: Maybe (Value Text)
username = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, validationData :: Maybe [AttributeTypeProperty]
validationData = Maybe [AttributeTypeProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UserPoolUser where
  toResourceProperties :: UserPoolUser -> ResourceProperties
toResourceProperties UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Cognito::UserPoolUser",
         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
"UserPoolId" 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
userPoolId]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"ClientMetadata" (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))
clientMetadata,
                               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
"DesiredDeliveryMediums"
                                 (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)
desiredDeliveryMediums,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ForceAliasCreation" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
forceAliasCreation,
                               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
"MessageAction" (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)
messageAction,
                               Key -> [AttributeTypeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserAttributes" ([AttributeTypeProperty] -> (Key, Value))
-> Maybe [AttributeTypeProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AttributeTypeProperty]
userAttributes,
                               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
"Username" (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)
username,
                               Key -> [AttributeTypeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ValidationData" ([AttributeTypeProperty] -> (Key, Value))
-> Maybe [AttributeTypeProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AttributeTypeProperty]
validationData]))}
instance JSON.ToJSON UserPoolUser where
  toJSON :: UserPoolUser -> Value
toJSON UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = [(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
"UserPoolId" 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
userPoolId]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"ClientMetadata" (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))
clientMetadata,
                  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
"DesiredDeliveryMediums"
                    (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)
desiredDeliveryMediums,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ForceAliasCreation" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
forceAliasCreation,
                  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
"MessageAction" (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)
messageAction,
                  Key -> [AttributeTypeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserAttributes" ([AttributeTypeProperty] -> (Key, Value))
-> Maybe [AttributeTypeProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AttributeTypeProperty]
userAttributes,
                  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
"Username" (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)
username,
                  Key -> [AttributeTypeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ValidationData" ([AttributeTypeProperty] -> (Key, Value))
-> Maybe [AttributeTypeProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AttributeTypeProperty]
validationData])))
instance Property "ClientMetadata" UserPoolUser where
  type PropertyType "ClientMetadata" UserPoolUser = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "ClientMetadata" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "ClientMetadata" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {clientMetadata :: Maybe (Map Text (Value Text))
clientMetadata = 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 "ClientMetadata" UserPoolUser
newValue, Maybe [AttributeTypeProperty]
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "DesiredDeliveryMediums" UserPoolUser where
  type PropertyType "DesiredDeliveryMediums" UserPoolUser = ValueList Prelude.Text
  set :: PropertyType "DesiredDeliveryMediums" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "DesiredDeliveryMediums" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {desiredDeliveryMediums :: Maybe (ValueList Text)
desiredDeliveryMediums = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DesiredDeliveryMediums" UserPoolUser
ValueList Text
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "ForceAliasCreation" UserPoolUser where
  type PropertyType "ForceAliasCreation" UserPoolUser = Value Prelude.Bool
  set :: PropertyType "ForceAliasCreation" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "ForceAliasCreation" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {forceAliasCreation :: Maybe (Value Bool)
forceAliasCreation = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ForceAliasCreation" UserPoolUser
Value Bool
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "MessageAction" UserPoolUser where
  type PropertyType "MessageAction" UserPoolUser = Value Prelude.Text
  set :: PropertyType "MessageAction" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "MessageAction" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {messageAction :: Maybe (Value Text)
messageAction = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MessageAction" UserPoolUser
Value Text
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "UserAttributes" UserPoolUser where
  type PropertyType "UserAttributes" UserPoolUser = [AttributeTypeProperty]
  set :: PropertyType "UserAttributes" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "UserAttributes" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {userAttributes :: Maybe [AttributeTypeProperty]
userAttributes = [AttributeTypeProperty] -> Maybe [AttributeTypeProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AttributeTypeProperty]
PropertyType "UserAttributes" UserPoolUser
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "UserPoolId" UserPoolUser where
  type PropertyType "UserPoolId" UserPoolUser = Value Prelude.Text
  set :: PropertyType "UserPoolId" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "UserPoolId" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {userPoolId :: Value Text
userPoolId = PropertyType "UserPoolId" UserPoolUser
Value Text
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "Username" UserPoolUser where
  type PropertyType "Username" UserPoolUser = Value Prelude.Text
  set :: PropertyType "Username" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "Username" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {username :: Maybe (Value Text)
username = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Username" UserPoolUser
Value Text
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
validationData :: Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
validationData :: Maybe [AttributeTypeProperty]
..}
instance Property "ValidationData" UserPoolUser where
  type PropertyType "ValidationData" UserPoolUser = [AttributeTypeProperty]
  set :: PropertyType "ValidationData" UserPoolUser
-> UserPoolUser -> UserPoolUser
set PropertyType "ValidationData" UserPoolUser
newValue UserPoolUser {Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUser -> ()
clientMetadata :: UserPoolUser -> Maybe (Map Text (Value Text))
desiredDeliveryMediums :: UserPoolUser -> Maybe (ValueList Text)
forceAliasCreation :: UserPoolUser -> Maybe (Value Bool)
messageAction :: UserPoolUser -> Maybe (Value Text)
userAttributes :: UserPoolUser -> Maybe [AttributeTypeProperty]
userPoolId :: UserPoolUser -> Value Text
username :: UserPoolUser -> Maybe (Value Text)
validationData :: UserPoolUser -> Maybe [AttributeTypeProperty]
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
validationData :: Maybe [AttributeTypeProperty]
..}
    = UserPoolUser {validationData :: Maybe [AttributeTypeProperty]
validationData = [AttributeTypeProperty] -> Maybe [AttributeTypeProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AttributeTypeProperty]
PropertyType "ValidationData" UserPoolUser
newValue, Maybe [AttributeTypeProperty]
Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
haddock_workaround_ :: ()
clientMetadata :: Maybe (Map Text (Value Text))
desiredDeliveryMediums :: Maybe (ValueList Text)
forceAliasCreation :: Maybe (Value Bool)
messageAction :: Maybe (Value Text)
userAttributes :: Maybe [AttributeTypeProperty]
userPoolId :: Value Text
username :: Maybe (Value Text)
..}