packages feed

amazonka-cognito-idp 1.4.5 → 1.5.0

raw patch · 146 files changed

+10621/−3797 lines, 146 filesdep ~amazonka-cognito-idpdep ~amazonka-coredep ~amazonka-testPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-cognito-idp, amazonka-core, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp.AdminConfirmSignUp
- Network.AWS.CognitoIdentityProvider.AdminCreateUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminCreateUser.AdminCreateUser
- Network.AWS.CognitoIdentityProvider.AdminCreateUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminCreateUser.AdminCreateUserResponse
- Network.AWS.CognitoIdentityProvider.AdminDeleteUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminDeleteUser.AdminDeleteUser
- Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes.AdminDeleteUserAttributes
- Network.AWS.CognitoIdentityProvider.AdminDisableUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminDisableUser.AdminDisableUser
- Network.AWS.CognitoIdentityProvider.AdminEnableUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminEnableUser.AdminEnableUser
- Network.AWS.CognitoIdentityProvider.AdminForgetDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminForgetDevice.AdminForgetDevice
- Network.AWS.CognitoIdentityProvider.AdminGetDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminGetDevice.AdminGetDevice
- Network.AWS.CognitoIdentityProvider.AdminGetDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminGetDevice.AdminGetDeviceResponse
- Network.AWS.CognitoIdentityProvider.AdminGetUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminGetUser.AdminGetUser
- Network.AWS.CognitoIdentityProvider.AdminGetUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminGetUser.AdminGetUserResponse
- Network.AWS.CognitoIdentityProvider.AdminInitiateAuth: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminInitiateAuth.AdminInitiateAuth
- Network.AWS.CognitoIdentityProvider.AdminInitiateAuth: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminInitiateAuth.AdminInitiateAuthResponse
- Network.AWS.CognitoIdentityProvider.AdminListDevices: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminListDevices.AdminListDevices
- Network.AWS.CognitoIdentityProvider.AdminListDevices: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminListDevices.AdminListDevicesResponse
- Network.AWS.CognitoIdentityProvider.AdminResetUserPassword: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminResetUserPassword.AdminResetUserPassword
- Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge.AdminRespondToAuthChallenge
- Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge.AdminRespondToAuthChallengeResponse
- Network.AWS.CognitoIdentityProvider.AdminSetUserSettings: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminSetUserSettings.AdminSetUserSettings
- Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus.AdminUpdateDeviceStatus
- Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes.AdminUpdateUserAttributes
- Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut.AdminUserGlobalSignOut
- Network.AWS.CognitoIdentityProvider.ChangePassword: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ChangePassword.ChangePassword
- Network.AWS.CognitoIdentityProvider.ConfirmDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ConfirmDevice.ConfirmDevice
- Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword.ConfirmForgotPassword
- Network.AWS.CognitoIdentityProvider.ConfirmSignUp: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ConfirmSignUp.ConfirmSignUp
- Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateUserPoolClient.CreateUserPoolClientResponse
- Network.AWS.CognitoIdentityProvider.DeleteUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteUser.DeleteUser
- Network.AWS.CognitoIdentityProvider.DeleteUserAttributes: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteUserAttributes.DeleteUserAttributes
- Network.AWS.CognitoIdentityProvider.DeleteUserPoolClient: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteUserPoolClient.DeleteUserPoolClient
- Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient: desClientId :: Lens' DescribeUserPoolClient Text
- Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient: desUserPoolId :: Lens' DescribeUserPoolClient Text
- Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient.DescribeUserPoolClient
- Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient.DescribeUserPoolClientResponse
- Network.AWS.CognitoIdentityProvider.ForgetDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ForgetDevice.ForgetDevice
- Network.AWS.CognitoIdentityProvider.ForgotPassword: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ForgotPassword.ForgotPassword
- Network.AWS.CognitoIdentityProvider.GetDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetDevice.GetDevice
- Network.AWS.CognitoIdentityProvider.GetDevice: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetDevice.GetDeviceResponse
- Network.AWS.CognitoIdentityProvider.GetUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetUser.GetUser
- Network.AWS.CognitoIdentityProvider.GetUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetUser.GetUserResponse
- Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode.GetUserAttributeVerificationCode
- Network.AWS.CognitoIdentityProvider.GlobalSignOut: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GlobalSignOut.GlobalSignOut
- Network.AWS.CognitoIdentityProvider.InitiateAuth: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.InitiateAuth.InitiateAuth
- Network.AWS.CognitoIdentityProvider.InitiateAuth: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.InitiateAuth.InitiateAuthResponse
- Network.AWS.CognitoIdentityProvider.ListDevices: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListDevices.ListDevices
- Network.AWS.CognitoIdentityProvider.ListDevices: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListDevices.ListDevicesResponse
- Network.AWS.CognitoIdentityProvider.ListUserPoolClients: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListUserPoolClients.ListUserPoolClientsResponse
- Network.AWS.CognitoIdentityProvider.ListUsers: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListUsers.ListUsersResponse
- Network.AWS.CognitoIdentityProvider.ResendConfirmationCode: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ResendConfirmationCode.ResendConfirmationCode
- Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge.RespondToAuthChallenge
- Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge.RespondToAuthChallengeResponse
- Network.AWS.CognitoIdentityProvider.SetUserSettings: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.SetUserSettings.SetUserSettings
- Network.AWS.CognitoIdentityProvider.SignUp: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.SignUp.SignUp
- Network.AWS.CognitoIdentityProvider.UpdateDeviceStatus: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateDeviceStatus.UpdateDeviceStatus
- Network.AWS.CognitoIdentityProvider.UpdateUserAttributes: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateUserAttributes.UpdateUserAttributes
- Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient.UpdateUserPoolClient
- Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient.UpdateUserPoolClientResponse
- Network.AWS.CognitoIdentityProvider.VerifyUserAttribute: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.VerifyUserAttribute.VerifyUserAttribute
+ Network.AWS.CognitoIdentityProvider: ClientCredentials :: OAuthFlowType
+ Network.AWS.CognitoIdentityProvider: Code :: OAuthFlowType
+ Network.AWS.CognitoIdentityProvider: ConfirmWithCode :: DefaultEmailOptionType
+ Network.AWS.CognitoIdentityProvider: ConfirmWithLink :: DefaultEmailOptionType
+ Network.AWS.CognitoIdentityProvider: DSTActive :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider: DSTCreating :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider: DSTDeleting :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider: DSTFailed :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider: DSTUpdating :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider: Facebook :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider: Google :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider: Implicit :: OAuthFlowType
+ Network.AWS.CognitoIdentityProvider: LoginWithAmazon :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider: Saml :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider: UATEmail :: UsernameAttributeType
+ Network.AWS.CognitoIdentityProvider: UATPhoneNumber :: UsernameAttributeType
+ Network.AWS.CognitoIdentityProvider: _DuplicateProviderException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider: _GroupExistsException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider: _InvalidOAuthFlowException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider: _ScopeDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider: _UnsupportedIdentityProviderException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider: _UserPoolTaggingException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider: data DefaultEmailOptionType
+ Network.AWS.CognitoIdentityProvider: data DomainDescriptionType
+ Network.AWS.CognitoIdentityProvider: data DomainStatusType
+ Network.AWS.CognitoIdentityProvider: data GroupType
+ Network.AWS.CognitoIdentityProvider: data IdentityProviderType
+ Network.AWS.CognitoIdentityProvider: data IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider: data OAuthFlowType
+ Network.AWS.CognitoIdentityProvider: data ProviderDescription
+ Network.AWS.CognitoIdentityProvider: data ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider: data ResourceServerScopeType
+ Network.AWS.CognitoIdentityProvider: data ResourceServerType
+ Network.AWS.CognitoIdentityProvider: data UICustomizationType
+ Network.AWS.CognitoIdentityProvider: data UsernameAttributeType
+ Network.AWS.CognitoIdentityProvider: data VerificationMessageTemplateType
+ Network.AWS.CognitoIdentityProvider: ddtAWSAccountId :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: ddtCloudFrontDistribution :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: ddtDomain :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: ddtS3Bucket :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: ddtStatus :: Lens' DomainDescriptionType (Maybe DomainStatusType)
+ Network.AWS.CognitoIdentityProvider: ddtUserPoolId :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: ddtVersion :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: domainDescriptionType :: DomainDescriptionType
+ Network.AWS.CognitoIdentityProvider: groupType :: GroupType
+ Network.AWS.CognitoIdentityProvider: gtCreationDate :: Lens' GroupType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: gtDescription :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: gtGroupName :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: gtLastModifiedDate :: Lens' GroupType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: gtPrecedence :: Lens' GroupType (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider: gtRoleARN :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: gtUserPoolId :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: identityProviderType :: IdentityProviderType
+ Network.AWS.CognitoIdentityProvider: iptAttributeMapping :: Lens' IdentityProviderType (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider: iptCreationDate :: Lens' IdentityProviderType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: iptIdpIdentifiers :: Lens' IdentityProviderType [Text]
+ Network.AWS.CognitoIdentityProvider: iptLastModifiedDate :: Lens' IdentityProviderType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: iptProviderDetails :: Lens' IdentityProviderType (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider: iptProviderName :: Lens' IdentityProviderType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: iptProviderType :: Lens' IdentityProviderType (Maybe IdentityProviderTypeType)
+ Network.AWS.CognitoIdentityProvider: iptUserPoolId :: Lens' IdentityProviderType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: pdCreationDate :: Lens' ProviderDescription (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: pdLastModifiedDate :: Lens' ProviderDescription (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: pdProviderName :: Lens' ProviderDescription (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: pdProviderType :: Lens' ProviderDescription (Maybe IdentityProviderTypeType)
+ Network.AWS.CognitoIdentityProvider: providerDescription :: ProviderDescription
+ Network.AWS.CognitoIdentityProvider: providerUserIdentifierType :: ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider: puitProviderAttributeName :: Lens' ProviderUserIdentifierType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: puitProviderAttributeValue :: Lens' ProviderUserIdentifierType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: puitProviderName :: Lens' ProviderUserIdentifierType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: resourceServerScopeType :: Text -> Text -> ResourceServerScopeType
+ Network.AWS.CognitoIdentityProvider: resourceServerType :: ResourceServerType
+ Network.AWS.CognitoIdentityProvider: rsstScopeDescription :: Lens' ResourceServerScopeType Text
+ Network.AWS.CognitoIdentityProvider: rsstScopeName :: Lens' ResourceServerScopeType Text
+ Network.AWS.CognitoIdentityProvider: rstIdentifier :: Lens' ResourceServerType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: rstName :: Lens' ResourceServerType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: rstScopes :: Lens' ResourceServerType [ResourceServerScopeType]
+ Network.AWS.CognitoIdentityProvider: rstUserPoolId :: Lens' ResourceServerType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: uICustomizationType :: UICustomizationType
+ Network.AWS.CognitoIdentityProvider: uictCSS :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: uictCSSVersion :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: uictClientId :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: uictCreationDate :: Lens' UICustomizationType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: uictImageURL :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: uictLastModifiedDate :: Lens' UICustomizationType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider: uictUserPoolId :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: upctAllowedOAuthFlows :: Lens' UserPoolClientType [OAuthFlowType]
+ Network.AWS.CognitoIdentityProvider: upctAllowedOAuthFlowsUserPoolClient :: Lens' UserPoolClientType (Maybe Bool)
+ Network.AWS.CognitoIdentityProvider: upctAllowedOAuthScopes :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider: upctCallbackURLs :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider: upctDefaultRedirectURI :: Lens' UserPoolClientType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: upctLogoutURLs :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider: upctSupportedIdentityProviders :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider: uptUserPoolTags :: Lens' UserPoolType (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider: uptUsernameAttributes :: Lens' UserPoolType [UsernameAttributeType]
+ Network.AWS.CognitoIdentityProvider: uptVerificationMessageTemplate :: Lens' UserPoolType (Maybe VerificationMessageTemplateType)
+ Network.AWS.CognitoIdentityProvider: verificationMessageTemplateType :: VerificationMessageTemplateType
+ Network.AWS.CognitoIdentityProvider: vmttDefaultEmailOption :: Lens' VerificationMessageTemplateType (Maybe DefaultEmailOptionType)
+ Network.AWS.CognitoIdentityProvider: vmttEmailMessage :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: vmttEmailMessageByLink :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: vmttEmailSubject :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: vmttEmailSubjectByLink :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider: vmttSmsMessage :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: aautgGroupName :: Lens' AdminAddUserToGroup Text
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: aautgUserPoolId :: Lens' AdminAddUserToGroup Text
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: aautgUsername :: Lens' AdminAddUserToGroup Text
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: adminAddUserToGroup :: Text -> Text -> Text -> AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: adminAddUserToGroupResponse :: AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: data AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: data AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup.AdminAddUserToGroup
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: adminDisableProviderForUser :: Text -> ProviderUserIdentifierType -> AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: adminDisableProviderForUserResponse :: Int -> AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: adpfuUser :: Lens' AdminDisableProviderForUser ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: adpfuUserPoolId :: Lens' AdminDisableProviderForUser Text
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: adpfursResponseStatus :: Lens' AdminDisableProviderForUserResponse Int
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: data AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: data AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser.AdminDisableProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: adminLinkProviderForUser :: Text -> ProviderUserIdentifierType -> ProviderUserIdentifierType -> AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: adminLinkProviderForUserResponse :: Int -> AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: alpfuDestinationUser :: Lens' AdminLinkProviderForUser ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: alpfuSourceUser :: Lens' AdminLinkProviderForUser ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: alpfuUserPoolId :: Lens' AdminLinkProviderForUser Text
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: alpfursResponseStatus :: Lens' AdminLinkProviderForUserResponse Int
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: data AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: data AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser.AdminLinkProviderForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: adminListGroupsForUser :: Text -> Text -> AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: adminListGroupsForUserResponse :: Int -> AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfuLimit :: Lens' AdminListGroupsForUser (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfuNextToken :: Lens' AdminListGroupsForUser (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfuUserPoolId :: Lens' AdminListGroupsForUser Text
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfuUsername :: Lens' AdminListGroupsForUser Text
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfursGroups :: Lens' AdminListGroupsForUserResponse [GroupType]
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfursNextToken :: Lens' AdminListGroupsForUserResponse (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: algfursResponseStatus :: Lens' AdminListGroupsForUserResponse Int
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: data AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: data AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUserResponse
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser.AdminListGroupsForUser
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: adminRemoveUserFromGroup :: Text -> Text -> Text -> AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: adminRemoveUserFromGroupResponse :: AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: arufgGroupName :: Lens' AdminRemoveUserFromGroup Text
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: arufgUserPoolId :: Lens' AdminRemoveUserFromGroup Text
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: arufgUsername :: Lens' AdminRemoveUserFromGroup Text
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: data AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: data AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroupResponse
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup.AdminRemoveUserFromGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgDescription :: Lens' CreateGroup (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgGroupName :: Lens' CreateGroup Text
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgPrecedence :: Lens' CreateGroup (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgRoleARN :: Lens' CreateGroup (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgUserPoolId :: Lens' CreateGroup Text
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgrsGroup :: Lens' CreateGroupResponse (Maybe GroupType)
+ Network.AWS.CognitoIdentityProvider.CreateGroup: cgrsResponseStatus :: Lens' CreateGroupResponse Int
+ Network.AWS.CognitoIdentityProvider.CreateGroup: createGroup :: Text -> Text -> CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: createGroupResponse :: Int -> CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: data CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: data CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroupResponse
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.CreateGroup.CreateGroup
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: cipAttributeMapping :: Lens' CreateIdentityProvider (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: cipIdpIdentifiers :: Lens' CreateIdentityProvider [Text]
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: cipProviderDetails :: Lens' CreateIdentityProvider (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: cipProviderName :: Lens' CreateIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: cipProviderType :: Lens' CreateIdentityProvider IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: cipUserPoolId :: Lens' CreateIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: ciprsIdentityProvider :: Lens' CreateIdentityProviderResponse IdentityProviderType
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: ciprsResponseStatus :: Lens' CreateIdentityProviderResponse Int
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: createIdentityProvider :: Text -> Text -> IdentityProviderTypeType -> CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: createIdentityProviderResponse :: Int -> IdentityProviderType -> CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: data CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: data CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateIdentityProvider: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.CreateIdentityProvider.CreateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: createResourceServer :: Text -> Text -> Text -> CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: createResourceServerResponse :: Int -> ResourceServerType -> CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: crsIdentifier :: Lens' CreateResourceServer Text
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: crsName :: Lens' CreateResourceServer Text
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: crsScopes :: Lens' CreateResourceServer [ResourceServerScopeType]
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: crsUserPoolId :: Lens' CreateResourceServer Text
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: crsrsResourceServer :: Lens' CreateResourceServerResponse ResourceServerType
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: crsrsResponseStatus :: Lens' CreateResourceServerResponse Int
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: data CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: data CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateResourceServer: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.CreateResourceServer.CreateResourceServer
+ Network.AWS.CognitoIdentityProvider.CreateUserPool: cupUserPoolTags :: Lens' CreateUserPool (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.CreateUserPool: cupUsernameAttributes :: Lens' CreateUserPool [UsernameAttributeType]
+ Network.AWS.CognitoIdentityProvider.CreateUserPool: cupVerificationMessageTemplate :: Lens' CreateUserPool (Maybe VerificationMessageTemplateType)
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcAllowedOAuthFlows :: Lens' CreateUserPoolClient [OAuthFlowType]
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcAllowedOAuthFlowsUserPoolClient :: Lens' CreateUserPoolClient (Maybe Bool)
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcAllowedOAuthScopes :: Lens' CreateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcCallbackURLs :: Lens' CreateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcDefaultRedirectURI :: Lens' CreateUserPoolClient (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcLogoutURLs :: Lens' CreateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolClient: cupcSupportedIdentityProviders :: Lens' CreateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: createUserPoolDomain :: Text -> Text -> CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: createUserPoolDomainResponse :: Int -> CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: cupdDomain :: Lens' CreateUserPoolDomain Text
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: cupdUserPoolId :: Lens' CreateUserPoolDomain Text
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: cupdrsResponseStatus :: Lens' CreateUserPoolDomainResponse Int
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: data CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: data CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain.CreateUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: data DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: data DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: deleteGroup :: Text -> Text -> DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: deleteGroupResponse :: DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: dgGroupName :: Lens' DeleteGroup Text
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: dgUserPoolId :: Lens' DeleteGroup Text
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroupResponse
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DeleteGroup.DeleteGroup
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: data DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: data DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: delProviderName :: Lens' DeleteIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: delUserPoolId :: Lens' DeleteIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: deleteIdentityProvider :: Text -> Text -> DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: deleteIdentityProviderResponse :: DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider.DeleteIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: data DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: data DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: deleteResourceServer :: Text -> Text -> DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: deleteResourceServerResponse :: DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: drsIdentifier :: Lens' DeleteResourceServer Text
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: drsUserPoolId :: Lens' DeleteResourceServer Text
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteResourceServer: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DeleteResourceServer.DeleteResourceServer
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: data DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: data DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: deleteUserPoolDomain :: Text -> Text -> DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: deleteUserPoolDomainResponse :: Int -> DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: dupdDomain :: Lens' DeleteUserPoolDomain Text
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: dupdUserPoolId :: Lens' DeleteUserPoolDomain Text
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: dupdrsResponseStatus :: Lens' DeleteUserPoolDomainResponse Int
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain.DeleteUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: data DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: data DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: describeIdentityProvider :: Text -> Text -> DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: describeIdentityProviderResponse :: Int -> IdentityProviderType -> DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: dipProviderName :: Lens' DescribeIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: dipUserPoolId :: Lens' DescribeIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: diprsIdentityProvider :: Lens' DescribeIdentityProviderResponse IdentityProviderType
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: diprsResponseStatus :: Lens' DescribeIdentityProviderResponse Int
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider.DescribeIdentityProvider
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: data DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: data DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: desIdentifier :: Lens' DescribeResourceServer Text
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: desUserPoolId :: Lens' DescribeResourceServer Text
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: describeResourceServer :: Text -> Text -> DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: describeResourceServerResponse :: Int -> ResourceServerType -> DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: drsrsResourceServer :: Lens' DescribeResourceServerResponse ResourceServerType
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: drsrsResponseStatus :: Lens' DescribeResourceServerResponse Int
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeResourceServer: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DescribeResourceServer.DescribeResourceServer
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient: dupcuClientId :: Lens' DescribeUserPoolClient Text
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient: dupcuUserPoolId :: Lens' DescribeUserPoolClient Text
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: dDomain :: Lens' DescribeUserPoolDomain Text
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: data DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: data DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: describeUserPoolDomain :: Text -> DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: describeUserPoolDomainResponse :: Int -> DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: drsDomainDescription :: Lens' DescribeUserPoolDomainResponse (Maybe DomainDescriptionType)
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: drsResponseStatus :: Lens' DescribeUserPoolDomainResponse Int
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomainResponse
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain.DescribeUserPoolDomain
+ Network.AWS.CognitoIdentityProvider.GetGroup: data GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: data GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: getGroup :: Text -> Text -> GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: getGroupResponse :: Int -> GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: ggGroupName :: Lens' GetGroup Text
+ Network.AWS.CognitoIdentityProvider.GetGroup: ggUserPoolId :: Lens' GetGroup Text
+ Network.AWS.CognitoIdentityProvider.GetGroup: ggrsGroup :: Lens' GetGroupResponse (Maybe GroupType)
+ Network.AWS.CognitoIdentityProvider.GetGroup: ggrsResponseStatus :: Lens' GetGroupResponse Int
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.GetGroup.GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.GetGroup.GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.GetGroup.GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.GetGroup.GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetGroup.GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.GetGroup.GetGroupResponse
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.GetGroup.GetGroup
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: data GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: data GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: getIdentityProviderByIdentifier :: Text -> Text -> GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: getIdentityProviderByIdentifierResponse :: Int -> IdentityProviderType -> GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: gipbiIdpIdentifier :: Lens' GetIdentityProviderByIdentifier Text
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: gipbiUserPoolId :: Lens' GetIdentityProviderByIdentifier Text
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: gipbirsIdentityProvider :: Lens' GetIdentityProviderByIdentifierResponse IdentityProviderType
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: gipbirsResponseStatus :: Lens' GetIdentityProviderByIdentifierResponse Int
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifierResponse
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier.GetIdentityProviderByIdentifier
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: data GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: data GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: getUICustomization :: Text -> GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: getUICustomizationResponse :: Int -> UICustomizationType -> GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: guicClientId :: Lens' GetUICustomization (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: guicUserPoolId :: Lens' GetUICustomization Text
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: guicrsResponseStatus :: Lens' GetUICustomizationResponse Int
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: guicrsUICustomization :: Lens' GetUICustomizationResponse UICustomizationType
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.GetUICustomization: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.GetUICustomization.GetUICustomization
+ Network.AWS.CognitoIdentityProvider.ListGroups: data ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: data ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListGroups.ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListGroups.ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListGroups.ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListGroups.ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListGroups.ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListGroups.ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.ListGroups.ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: lgLimit :: Lens' ListGroups (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.ListGroups: lgNextToken :: Lens' ListGroups (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListGroups: lgUserPoolId :: Lens' ListGroups Text
+ Network.AWS.CognitoIdentityProvider.ListGroups: lgrsGroups :: Lens' ListGroupsResponse [GroupType]
+ Network.AWS.CognitoIdentityProvider.ListGroups: lgrsNextToken :: Lens' ListGroupsResponse (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListGroups: lgrsResponseStatus :: Lens' ListGroupsResponse Int
+ Network.AWS.CognitoIdentityProvider.ListGroups: listGroups :: Text -> ListGroups
+ Network.AWS.CognitoIdentityProvider.ListGroups: listGroupsResponse :: Int -> ListGroupsResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: data ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: data ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.ListIdentityProviders.ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: lipMaxResults :: Lens' ListIdentityProviders (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: lipNextToken :: Lens' ListIdentityProviders (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: lipUserPoolId :: Lens' ListIdentityProviders Text
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: liprsNextToken :: Lens' ListIdentityProvidersResponse (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: liprsProviders :: Lens' ListIdentityProvidersResponse [ProviderDescription]
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: liprsResponseStatus :: Lens' ListIdentityProvidersResponse Int
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: listIdentityProviders :: Text -> ListIdentityProviders
+ Network.AWS.CognitoIdentityProvider.ListIdentityProviders: listIdentityProvidersResponse :: Int -> ListIdentityProvidersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: data ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: data ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.ListResourceServers.ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: listResourceServers :: Text -> ListResourceServers
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: listResourceServersResponse :: Int -> ListResourceServersResponse
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: lrsMaxResults :: Lens' ListResourceServers (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: lrsNextToken :: Lens' ListResourceServers (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: lrsUserPoolId :: Lens' ListResourceServers Text
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: lrsrsNextToken :: Lens' ListResourceServersResponse (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: lrsrsResourceServers :: Lens' ListResourceServersResponse [ResourceServerType]
+ Network.AWS.CognitoIdentityProvider.ListResourceServers: lrsrsResponseStatus :: Lens' ListResourceServersResponse Int
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: data ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: data ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.ListUsersInGroup.ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: listUsersInGroup :: Text -> Text -> ListUsersInGroup
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: listUsersInGroupResponse :: Int -> ListUsersInGroupResponse
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigGroupName :: Lens' ListUsersInGroup Text
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigLimit :: Lens' ListUsersInGroup (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigNextToken :: Lens' ListUsersInGroup (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigUserPoolId :: Lens' ListUsersInGroup Text
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigrsNextToken :: Lens' ListUsersInGroupResponse (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigrsResponseStatus :: Lens' ListUsersInGroupResponse Int
+ Network.AWS.CognitoIdentityProvider.ListUsersInGroup: luigrsUsers :: Lens' ListUsersInGroupResponse [UserType]
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: data SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: data SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.SetUICustomization.SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: setUICustomization :: Text -> SetUICustomization
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: setUICustomizationResponse :: Int -> UICustomizationType -> SetUICustomizationResponse
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: suicCSS :: Lens' SetUICustomization (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: suicClientId :: Lens' SetUICustomization (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: suicImageFile :: Lens' SetUICustomization (Maybe ByteString)
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: suicUserPoolId :: Lens' SetUICustomization Text
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: suicrsResponseStatus :: Lens' SetUICustomizationResponse Int
+ Network.AWS.CognitoIdentityProvider.SetUICustomization: suicrsUICustomization :: Lens' SetUICustomizationResponse UICustomizationType
+ Network.AWS.CognitoIdentityProvider.SignUp: sursUserSub :: Lens' SignUpResponse Text
+ Network.AWS.CognitoIdentityProvider.Types: ClientCredentials :: OAuthFlowType
+ Network.AWS.CognitoIdentityProvider.Types: Code :: OAuthFlowType
+ Network.AWS.CognitoIdentityProvider.Types: ConfirmWithCode :: DefaultEmailOptionType
+ Network.AWS.CognitoIdentityProvider.Types: ConfirmWithLink :: DefaultEmailOptionType
+ Network.AWS.CognitoIdentityProvider.Types: DSTActive :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider.Types: DSTCreating :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider.Types: DSTDeleting :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider.Types: DSTFailed :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider.Types: DSTUpdating :: DomainStatusType
+ Network.AWS.CognitoIdentityProvider.Types: Facebook :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider.Types: Google :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider.Types: Implicit :: OAuthFlowType
+ Network.AWS.CognitoIdentityProvider.Types: LoginWithAmazon :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider.Types: Saml :: IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider.Types: UATEmail :: UsernameAttributeType
+ Network.AWS.CognitoIdentityProvider.Types: UATPhoneNumber :: UsernameAttributeType
+ Network.AWS.CognitoIdentityProvider.Types: _DuplicateProviderException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider.Types: _GroupExistsException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider.Types: _InvalidOAuthFlowException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider.Types: _ScopeDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider.Types: _UnsupportedIdentityProviderException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider.Types: _UserPoolTaggingException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.CognitoIdentityProvider.Types: data DefaultEmailOptionType
+ Network.AWS.CognitoIdentityProvider.Types: data DomainDescriptionType
+ Network.AWS.CognitoIdentityProvider.Types: data DomainStatusType
+ Network.AWS.CognitoIdentityProvider.Types: data GroupType
+ Network.AWS.CognitoIdentityProvider.Types: data IdentityProviderType
+ Network.AWS.CognitoIdentityProvider.Types: data IdentityProviderTypeType
+ Network.AWS.CognitoIdentityProvider.Types: data OAuthFlowType
+ Network.AWS.CognitoIdentityProvider.Types: data ProviderDescription
+ Network.AWS.CognitoIdentityProvider.Types: data ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider.Types: data ResourceServerScopeType
+ Network.AWS.CognitoIdentityProvider.Types: data ResourceServerType
+ Network.AWS.CognitoIdentityProvider.Types: data UICustomizationType
+ Network.AWS.CognitoIdentityProvider.Types: data UsernameAttributeType
+ Network.AWS.CognitoIdentityProvider.Types: data VerificationMessageTemplateType
+ Network.AWS.CognitoIdentityProvider.Types: ddtAWSAccountId :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: ddtCloudFrontDistribution :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: ddtDomain :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: ddtS3Bucket :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: ddtStatus :: Lens' DomainDescriptionType (Maybe DomainStatusType)
+ Network.AWS.CognitoIdentityProvider.Types: ddtUserPoolId :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: ddtVersion :: Lens' DomainDescriptionType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: domainDescriptionType :: DomainDescriptionType
+ Network.AWS.CognitoIdentityProvider.Types: groupType :: GroupType
+ Network.AWS.CognitoIdentityProvider.Types: gtCreationDate :: Lens' GroupType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: gtDescription :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: gtGroupName :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: gtLastModifiedDate :: Lens' GroupType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: gtPrecedence :: Lens' GroupType (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.Types: gtRoleARN :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: gtUserPoolId :: Lens' GroupType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: identityProviderType :: IdentityProviderType
+ Network.AWS.CognitoIdentityProvider.Types: iptAttributeMapping :: Lens' IdentityProviderType (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.Types: iptCreationDate :: Lens' IdentityProviderType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: iptIdpIdentifiers :: Lens' IdentityProviderType [Text]
+ Network.AWS.CognitoIdentityProvider.Types: iptLastModifiedDate :: Lens' IdentityProviderType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: iptProviderDetails :: Lens' IdentityProviderType (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.Types: iptProviderName :: Lens' IdentityProviderType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: iptProviderType :: Lens' IdentityProviderType (Maybe IdentityProviderTypeType)
+ Network.AWS.CognitoIdentityProvider.Types: iptUserPoolId :: Lens' IdentityProviderType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: pdCreationDate :: Lens' ProviderDescription (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: pdLastModifiedDate :: Lens' ProviderDescription (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: pdProviderName :: Lens' ProviderDescription (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: pdProviderType :: Lens' ProviderDescription (Maybe IdentityProviderTypeType)
+ Network.AWS.CognitoIdentityProvider.Types: providerDescription :: ProviderDescription
+ Network.AWS.CognitoIdentityProvider.Types: providerUserIdentifierType :: ProviderUserIdentifierType
+ Network.AWS.CognitoIdentityProvider.Types: puitProviderAttributeName :: Lens' ProviderUserIdentifierType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: puitProviderAttributeValue :: Lens' ProviderUserIdentifierType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: puitProviderName :: Lens' ProviderUserIdentifierType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: resourceServerScopeType :: Text -> Text -> ResourceServerScopeType
+ Network.AWS.CognitoIdentityProvider.Types: resourceServerType :: ResourceServerType
+ Network.AWS.CognitoIdentityProvider.Types: rsstScopeDescription :: Lens' ResourceServerScopeType Text
+ Network.AWS.CognitoIdentityProvider.Types: rsstScopeName :: Lens' ResourceServerScopeType Text
+ Network.AWS.CognitoIdentityProvider.Types: rstIdentifier :: Lens' ResourceServerType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: rstName :: Lens' ResourceServerType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: rstScopes :: Lens' ResourceServerType [ResourceServerScopeType]
+ Network.AWS.CognitoIdentityProvider.Types: rstUserPoolId :: Lens' ResourceServerType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: uICustomizationType :: UICustomizationType
+ Network.AWS.CognitoIdentityProvider.Types: uictCSS :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: uictCSSVersion :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: uictClientId :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: uictCreationDate :: Lens' UICustomizationType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: uictImageURL :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: uictLastModifiedDate :: Lens' UICustomizationType (Maybe UTCTime)
+ Network.AWS.CognitoIdentityProvider.Types: uictUserPoolId :: Lens' UICustomizationType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: upctAllowedOAuthFlows :: Lens' UserPoolClientType [OAuthFlowType]
+ Network.AWS.CognitoIdentityProvider.Types: upctAllowedOAuthFlowsUserPoolClient :: Lens' UserPoolClientType (Maybe Bool)
+ Network.AWS.CognitoIdentityProvider.Types: upctAllowedOAuthScopes :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider.Types: upctCallbackURLs :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider.Types: upctDefaultRedirectURI :: Lens' UserPoolClientType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: upctLogoutURLs :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider.Types: upctSupportedIdentityProviders :: Lens' UserPoolClientType [Text]
+ Network.AWS.CognitoIdentityProvider.Types: uptUserPoolTags :: Lens' UserPoolType (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.Types: uptUsernameAttributes :: Lens' UserPoolType [UsernameAttributeType]
+ Network.AWS.CognitoIdentityProvider.Types: uptVerificationMessageTemplate :: Lens' UserPoolType (Maybe VerificationMessageTemplateType)
+ Network.AWS.CognitoIdentityProvider.Types: verificationMessageTemplateType :: VerificationMessageTemplateType
+ Network.AWS.CognitoIdentityProvider.Types: vmttDefaultEmailOption :: Lens' VerificationMessageTemplateType (Maybe DefaultEmailOptionType)
+ Network.AWS.CognitoIdentityProvider.Types: vmttEmailMessage :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: vmttEmailMessageByLink :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: vmttEmailSubject :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: vmttEmailSubjectByLink :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.Types: vmttSmsMessage :: Lens' VerificationMessageTemplateType (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: data UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: data UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.UpdateGroup.UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugDescription :: Lens' UpdateGroup (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugGroupName :: Lens' UpdateGroup Text
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugPrecedence :: Lens' UpdateGroup (Maybe Natural)
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugRoleARN :: Lens' UpdateGroup (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugUserPoolId :: Lens' UpdateGroup Text
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugrsGroup :: Lens' UpdateGroupResponse (Maybe GroupType)
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: ugrsResponseStatus :: Lens' UpdateGroupResponse Int
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: updateGroup :: Text -> Text -> UpdateGroup
+ Network.AWS.CognitoIdentityProvider.UpdateGroup: updateGroupResponse :: Int -> UpdateGroupResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: data UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: data UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider.UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uipAttributeMapping :: Lens' UpdateIdentityProvider (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uipIdpIdentifiers :: Lens' UpdateIdentityProvider [Text]
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uipProviderDetails :: Lens' UpdateIdentityProvider (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uipProviderName :: Lens' UpdateIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uipUserPoolId :: Lens' UpdateIdentityProvider Text
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uiprsIdentityProvider :: Lens' UpdateIdentityProviderResponse IdentityProviderType
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: uiprsResponseStatus :: Lens' UpdateIdentityProviderResponse Int
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: updateIdentityProvider :: Text -> Text -> UpdateIdentityProvider
+ Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider: updateIdentityProviderResponse :: Int -> IdentityProviderType -> UpdateIdentityProviderResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: data UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: data UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Control.DeepSeq.NFData Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Data.Data.Data Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Data.Hashable.Class.Hashable Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Classes.Eq Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Generics.Generic Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Read.Read Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance GHC.Show.Show Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Network.AWS.Data.Path.ToPath Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Network.AWS.Data.Query.ToQuery Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: instance Network.AWS.Types.AWSRequest Network.AWS.CognitoIdentityProvider.UpdateResourceServer.UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: updateResourceServer :: Text -> Text -> Text -> UpdateResourceServer
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: updateResourceServerResponse :: Int -> ResourceServerType -> UpdateResourceServerResponse
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: ursIdentifier :: Lens' UpdateResourceServer Text
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: ursName :: Lens' UpdateResourceServer Text
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: ursScopes :: Lens' UpdateResourceServer [ResourceServerScopeType]
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: ursUserPoolId :: Lens' UpdateResourceServer Text
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: ursrsResourceServer :: Lens' UpdateResourceServerResponse ResourceServerType
+ Network.AWS.CognitoIdentityProvider.UpdateResourceServer: ursrsResponseStatus :: Lens' UpdateResourceServerResponse Int
+ Network.AWS.CognitoIdentityProvider.UpdateUserPool: uupUserPoolTags :: Lens' UpdateUserPool (HashMap Text Text)
+ Network.AWS.CognitoIdentityProvider.UpdateUserPool: uupVerificationMessageTemplate :: Lens' UpdateUserPool (Maybe VerificationMessageTemplateType)
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcAllowedOAuthFlows :: Lens' UpdateUserPoolClient [OAuthFlowType]
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcAllowedOAuthFlowsUserPoolClient :: Lens' UpdateUserPoolClient (Maybe Bool)
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcAllowedOAuthScopes :: Lens' UpdateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcCallbackURLs :: Lens' UpdateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcDefaultRedirectURI :: Lens' UpdateUserPoolClient (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcLogoutURLs :: Lens' UpdateUserPoolClient [Text]
+ Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient: uupcSupportedIdentityProviders :: Lens' UpdateUserPoolClient [Text]
- Network.AWS.CognitoIdentityProvider.ChangePassword: changePassword :: Text -> Text -> ChangePassword
+ Network.AWS.CognitoIdentityProvider.ChangePassword: changePassword :: Text -> Text -> Text -> ChangePassword
- Network.AWS.CognitoIdentityProvider.ChangePassword: cpAccessToken :: Lens' ChangePassword (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.ChangePassword: cpAccessToken :: Lens' ChangePassword Text
- Network.AWS.CognitoIdentityProvider.DeleteUser: deleteUser :: DeleteUser
+ Network.AWS.CognitoIdentityProvider.DeleteUser: deleteUser :: Text -> DeleteUser
- Network.AWS.CognitoIdentityProvider.DeleteUser: duAccessToken :: Lens' DeleteUser (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.DeleteUser: duAccessToken :: Lens' DeleteUser Text
- Network.AWS.CognitoIdentityProvider.DeleteUserAttributes: deleteUserAttributes :: DeleteUserAttributes
+ Network.AWS.CognitoIdentityProvider.DeleteUserAttributes: deleteUserAttributes :: Text -> DeleteUserAttributes
- Network.AWS.CognitoIdentityProvider.DeleteUserAttributes: duaAccessToken :: Lens' DeleteUserAttributes (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.DeleteUserAttributes: duaAccessToken :: Lens' DeleteUserAttributes Text
- Network.AWS.CognitoIdentityProvider.GetUser: getUser :: GetUser
+ Network.AWS.CognitoIdentityProvider.GetUser: getUser :: Text -> GetUser
- Network.AWS.CognitoIdentityProvider.GetUser: guAccessToken :: Lens' GetUser (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.GetUser: guAccessToken :: Lens' GetUser Text
- Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode: getUserAttributeVerificationCode :: Text -> GetUserAttributeVerificationCode
+ Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode: getUserAttributeVerificationCode :: Text -> Text -> GetUserAttributeVerificationCode
- Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode: guavcAccessToken :: Lens' GetUserAttributeVerificationCode (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode: guavcAccessToken :: Lens' GetUserAttributeVerificationCode Text
- Network.AWS.CognitoIdentityProvider.GlobalSignOut: globalSignOut :: GlobalSignOut
+ Network.AWS.CognitoIdentityProvider.GlobalSignOut: globalSignOut :: Text -> GlobalSignOut
- Network.AWS.CognitoIdentityProvider.GlobalSignOut: gsoAccessToken :: Lens' GlobalSignOut (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.GlobalSignOut: gsoAccessToken :: Lens' GlobalSignOut Text
- Network.AWS.CognitoIdentityProvider.SignUp: signUpResponse :: Int -> SignUpResponse
+ Network.AWS.CognitoIdentityProvider.SignUp: signUpResponse :: Int -> Bool -> Text -> SignUpResponse
- Network.AWS.CognitoIdentityProvider.SignUp: sursUserConfirmed :: Lens' SignUpResponse (Maybe Bool)
+ Network.AWS.CognitoIdentityProvider.SignUp: sursUserConfirmed :: Lens' SignUpResponse Bool
- Network.AWS.CognitoIdentityProvider.UpdateUserAttributes: updateUserAttributes :: UpdateUserAttributes
+ Network.AWS.CognitoIdentityProvider.UpdateUserAttributes: updateUserAttributes :: Text -> UpdateUserAttributes
- Network.AWS.CognitoIdentityProvider.UpdateUserAttributes: uuaAccessToken :: Lens' UpdateUserAttributes (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.UpdateUserAttributes: uuaAccessToken :: Lens' UpdateUserAttributes Text
- Network.AWS.CognitoIdentityProvider.VerifyUserAttribute: verifyUserAttribute :: Text -> Text -> VerifyUserAttribute
+ Network.AWS.CognitoIdentityProvider.VerifyUserAttribute: verifyUserAttribute :: Text -> Text -> Text -> VerifyUserAttribute
- Network.AWS.CognitoIdentityProvider.VerifyUserAttribute: vuaAccessToken :: Lens' VerifyUserAttribute (Maybe Text)
+ Network.AWS.CognitoIdentityProvider.VerifyUserAttribute: vuaAccessToken :: Lens' VerifyUserAttribute Text

Files

README.md view
@@ -8,7 +8,7 @@  ## Version -`1.4.5`+`1.5.0`   ## Description
amazonka-cognito-idp.cabal view
@@ -1,13 +1,13 @@ name:                  amazonka-cognito-idp-version:               1.4.5+version:               1.5.0 synopsis:              Amazon Cognito Identity Provider SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues-license:               OtherLicense+license:               MPL-2.0 license-file:          LICENSE author:                Brendan Hay-maintainer:            Brendan Hay <brendan.g.hay@gmail.com>-copyright:             Copyright (c) 2013-2016 Brendan Hay+maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>+copyright:             Copyright (c) 2013-2017 Brendan Hay category:              Network, AWS, Cloud, Distributed Computing build-type:            Simple cabal-version:         >= 1.10@@ -29,29 +29,39 @@     to get started.  source-repository head-    type:     git-    location: git://github.com/brendanhay/amazonka.git+    type:              git+    location:          git://github.com/brendanhay/amazonka.git+    subdir:            amazonka-cognito-idp  library     default-language:  Haskell2010     hs-source-dirs:    src gen -    ghc-options:       -Wall+    ghc-options:+        -Wall+        -fwarn-incomplete-uni-patterns+        -fwarn-incomplete-record-updates+        -funbox-strict-fields      exposed-modules:           Network.AWS.CognitoIdentityProvider         , Network.AWS.CognitoIdentityProvider.AddCustomAttributes+        , Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup         , Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp         , Network.AWS.CognitoIdentityProvider.AdminCreateUser         , Network.AWS.CognitoIdentityProvider.AdminDeleteUser         , Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes+        , Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser         , Network.AWS.CognitoIdentityProvider.AdminDisableUser         , Network.AWS.CognitoIdentityProvider.AdminEnableUser         , Network.AWS.CognitoIdentityProvider.AdminForgetDevice         , Network.AWS.CognitoIdentityProvider.AdminGetDevice         , Network.AWS.CognitoIdentityProvider.AdminGetUser         , Network.AWS.CognitoIdentityProvider.AdminInitiateAuth+        , Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser         , Network.AWS.CognitoIdentityProvider.AdminListDevices+        , Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser+        , Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup         , Network.AWS.CognitoIdentityProvider.AdminResetUserPassword         , Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge         , Network.AWS.CognitoIdentityProvider.AdminSetUserSettings@@ -62,37 +72,59 @@         , Network.AWS.CognitoIdentityProvider.ConfirmDevice         , Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword         , Network.AWS.CognitoIdentityProvider.ConfirmSignUp+        , Network.AWS.CognitoIdentityProvider.CreateGroup+        , Network.AWS.CognitoIdentityProvider.CreateIdentityProvider+        , Network.AWS.CognitoIdentityProvider.CreateResourceServer         , Network.AWS.CognitoIdentityProvider.CreateUserImportJob         , Network.AWS.CognitoIdentityProvider.CreateUserPool         , Network.AWS.CognitoIdentityProvider.CreateUserPoolClient+        , Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain+        , Network.AWS.CognitoIdentityProvider.DeleteGroup+        , Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider+        , Network.AWS.CognitoIdentityProvider.DeleteResourceServer         , Network.AWS.CognitoIdentityProvider.DeleteUser         , Network.AWS.CognitoIdentityProvider.DeleteUserAttributes         , Network.AWS.CognitoIdentityProvider.DeleteUserPool         , Network.AWS.CognitoIdentityProvider.DeleteUserPoolClient+        , Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain+        , Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider+        , Network.AWS.CognitoIdentityProvider.DescribeResourceServer         , Network.AWS.CognitoIdentityProvider.DescribeUserImportJob         , Network.AWS.CognitoIdentityProvider.DescribeUserPool         , Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient+        , Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain         , Network.AWS.CognitoIdentityProvider.ForgetDevice         , Network.AWS.CognitoIdentityProvider.ForgotPassword         , Network.AWS.CognitoIdentityProvider.GetCSVHeader         , Network.AWS.CognitoIdentityProvider.GetDevice+        , Network.AWS.CognitoIdentityProvider.GetGroup+        , Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier+        , Network.AWS.CognitoIdentityProvider.GetUICustomization         , Network.AWS.CognitoIdentityProvider.GetUser         , Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode         , Network.AWS.CognitoIdentityProvider.GlobalSignOut         , Network.AWS.CognitoIdentityProvider.InitiateAuth         , Network.AWS.CognitoIdentityProvider.ListDevices+        , Network.AWS.CognitoIdentityProvider.ListGroups+        , Network.AWS.CognitoIdentityProvider.ListIdentityProviders+        , Network.AWS.CognitoIdentityProvider.ListResourceServers         , Network.AWS.CognitoIdentityProvider.ListUserImportJobs         , Network.AWS.CognitoIdentityProvider.ListUserPoolClients         , Network.AWS.CognitoIdentityProvider.ListUserPools         , Network.AWS.CognitoIdentityProvider.ListUsers+        , Network.AWS.CognitoIdentityProvider.ListUsersInGroup         , Network.AWS.CognitoIdentityProvider.ResendConfirmationCode         , Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge+        , Network.AWS.CognitoIdentityProvider.SetUICustomization         , Network.AWS.CognitoIdentityProvider.SetUserSettings         , Network.AWS.CognitoIdentityProvider.SignUp         , Network.AWS.CognitoIdentityProvider.StartUserImportJob         , Network.AWS.CognitoIdentityProvider.StopUserImportJob         , Network.AWS.CognitoIdentityProvider.Types         , Network.AWS.CognitoIdentityProvider.UpdateDeviceStatus+        , Network.AWS.CognitoIdentityProvider.UpdateGroup+        , Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider+        , Network.AWS.CognitoIdentityProvider.UpdateResourceServer         , Network.AWS.CognitoIdentityProvider.UpdateUserAttributes         , Network.AWS.CognitoIdentityProvider.UpdateUserPool         , Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient@@ -104,7 +136,7 @@         , Network.AWS.CognitoIdentityProvider.Types.Sum      build-depends:-          amazonka-core == 1.4.5.*+          amazonka-core == 1.5.0.*         , base          >= 4.7     && < 5  test-suite amazonka-cognito-idp-test@@ -124,9 +156,9 @@         , Test.AWS.CognitoIdentityProvider.Internal      build-depends:-          amazonka-core == 1.4.5.*-        , amazonka-test == 1.4.5.*-        , amazonka-cognito-idp == 1.4.5.*+          amazonka-core == 1.5.0.*+        , amazonka-test == 1.5.0.*+        , amazonka-cognito-idp         , base         , bytestring         , tasty
+ fixture/AdminAddUserToGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/AdminAddUserToGroupResponse.proto view
+ fixture/AdminDisableProviderForUser.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/AdminDisableProviderForUserResponse.proto view
+ fixture/AdminLinkProviderForUser.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/AdminLinkProviderForUserResponse.proto view
+ fixture/AdminListGroupsForUser.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/AdminListGroupsForUserResponse.proto view
+ fixture/AdminRemoveUserFromGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/AdminRemoveUserFromGroupResponse.proto view
+ fixture/CreateGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateGroupResponse.proto view
+ fixture/CreateIdentityProvider.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateIdentityProviderResponse.proto view
+ fixture/CreateResourceServer.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateResourceServerResponse.proto view
+ fixture/CreateUserPoolDomain.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateUserPoolDomainResponse.proto view
+ fixture/DeleteGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteGroupResponse.proto view
+ fixture/DeleteIdentityProvider.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteIdentityProviderResponse.proto view
+ fixture/DeleteResourceServer.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteResourceServerResponse.proto view
+ fixture/DeleteUserPoolDomain.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteUserPoolDomainResponse.proto view
+ fixture/DescribeIdentityProvider.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DescribeIdentityProviderResponse.proto view
+ fixture/DescribeResourceServer.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DescribeResourceServerResponse.proto view
+ fixture/DescribeUserPoolDomain.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DescribeUserPoolDomainResponse.proto view
+ fixture/GetGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetGroupResponse.proto view
+ fixture/GetIdentityProviderByIdentifier.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetIdentityProviderByIdentifierResponse.proto view
+ fixture/GetUICustomization.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetUICustomizationResponse.proto view
+ fixture/ListGroups.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListGroupsResponse.proto view
+ fixture/ListIdentityProviders.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListIdentityProvidersResponse.proto view
+ fixture/ListResourceServers.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListResourceServersResponse.proto view
+ fixture/ListUsersInGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListUsersInGroupResponse.proto view
+ fixture/SetUICustomization.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/SetUICustomizationResponse.proto view
+ fixture/UpdateGroup.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateGroupResponse.proto view
+ fixture/UpdateIdentityProvider.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateIdentityProviderResponse.proto view
+ fixture/UpdateResourceServer.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cognito-idp/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cognito-idp.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateResourceServerResponse.proto view
gen/Network/AWS/CognitoIdentityProvider.hs view
@@ -5,16 +5,16 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Using the Amazon Cognito Your User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.+-- Using the Amazon Cognito User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies. -- ----- This API reference provides information about user pools in Amazon Cognito Your User Pools.+-- This API reference provides information about user pools in Amazon Cognito User Pools. -- -- For more information, see the Amazon Cognito Documentation. --@@ -41,6 +41,9 @@     -- ** InvalidEmailRoleAccessPolicyException     , _InvalidEmailRoleAccessPolicyException +    -- ** UnsupportedIdentityProviderException+    , _UnsupportedIdentityProviderException+     -- ** UserNotFoundException     , _UserNotFoundException @@ -59,6 +62,9 @@     -- ** InvalidSmsRoleAccessPolicyException     , _InvalidSmsRoleAccessPolicyException +    -- ** InvalidOAuthFlowException+    , _InvalidOAuthFlowException+     -- ** CodeMismatchException     , _CodeMismatchException @@ -68,6 +74,9 @@     -- ** InvalidSmsRoleTrustRelationshipException     , _InvalidSmsRoleTrustRelationshipException +    -- ** UserPoolTaggingException+    , _UserPoolTaggingException+     -- ** TooManyRequestsException     , _TooManyRequestsException @@ -89,9 +98,15 @@     -- ** UserNotConfirmedException     , _UserNotConfirmedException +    -- ** GroupExistsException+    , _GroupExistsException+     -- ** CodeDeliveryFailureException     , _CodeDeliveryFailureException +    -- ** ScopeDoesNotExistException+    , _ScopeDoesNotExistException+     -- ** ResourceNotFoundException     , _ResourceNotFoundException @@ -101,6 +116,9 @@     -- ** AliasExistsException     , _AliasExistsException +    -- ** DuplicateProviderException+    , _DuplicateProviderException+     -- ** LimitExceededException     , _LimitExceededException @@ -122,9 +140,15 @@     -- ** UpdateUserPool     , module Network.AWS.CognitoIdentityProvider.UpdateUserPool +    -- ** DeleteUserPoolDomain+    , module Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain+     -- ** AdminInitiateAuth     , module Network.AWS.CognitoIdentityProvider.AdminInitiateAuth +    -- ** AdminLinkProviderForUser+    , module Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser+     -- ** AdminEnableUser     , module Network.AWS.CognitoIdentityProvider.AdminEnableUser @@ -152,12 +176,18 @@     -- ** ListUserImportJobs     , module Network.AWS.CognitoIdentityProvider.ListUserImportJobs +    -- ** DescribeIdentityProvider+    , module Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider+     -- ** ListUsers     , module Network.AWS.CognitoIdentityProvider.ListUsers      -- ** AdminDeleteUserAttributes     , module Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes +    -- ** DescribeUserPoolDomain+    , module Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain+     -- ** AdminUpdateUserAttributes     , module Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes @@ -167,6 +197,12 @@     -- ** AdminUserGlobalSignOut     , module Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut +    -- ** ListUsersInGroup+    , module Network.AWS.CognitoIdentityProvider.ListUsersInGroup++    -- ** AdminDisableProviderForUser+    , module Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser+     -- ** ForgotPassword     , module Network.AWS.CognitoIdentityProvider.ForgotPassword @@ -176,21 +212,42 @@     -- ** InitiateAuth     , module Network.AWS.CognitoIdentityProvider.InitiateAuth +    -- ** AdminListGroupsForUser+    , module Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser+     -- ** AdminConfirmSignUp     , module Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp      -- ** StartUserImportJob     , module Network.AWS.CognitoIdentityProvider.StartUserImportJob +    -- ** CreateIdentityProvider+    , module Network.AWS.CognitoIdentityProvider.CreateIdentityProvider++    -- ** SetUICustomization+    , module Network.AWS.CognitoIdentityProvider.SetUICustomization++    -- ** ListIdentityProviders+    , module Network.AWS.CognitoIdentityProvider.ListIdentityProviders+     -- ** GetDevice     , module Network.AWS.CognitoIdentityProvider.GetDevice      -- ** SignUp     , module Network.AWS.CognitoIdentityProvider.SignUp +    -- ** DeleteResourceServer+    , module Network.AWS.CognitoIdentityProvider.DeleteResourceServer++    -- ** UpdateResourceServer+    , module Network.AWS.CognitoIdentityProvider.UpdateResourceServer+     -- ** ChangePassword     , module Network.AWS.CognitoIdentityProvider.ChangePassword +    -- ** CreateUserPoolDomain+    , module Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain+     -- ** RespondToAuthChallenge     , module Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge @@ -200,6 +257,12 @@     -- ** AdminGetDevice     , module Network.AWS.CognitoIdentityProvider.AdminGetDevice +    -- ** GetIdentityProviderByIdentifier+    , module Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier++    -- ** AdminRemoveUserFromGroup+    , module Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup+     -- ** ConfirmSignUp     , module Network.AWS.CognitoIdentityProvider.ConfirmSignUp @@ -215,6 +278,9 @@     -- ** GetUser     , module Network.AWS.CognitoIdentityProvider.GetUser +    -- ** GetUICustomization+    , module Network.AWS.CognitoIdentityProvider.GetUICustomization+     -- ** GetCSVHeader     , module Network.AWS.CognitoIdentityProvider.GetCSVHeader @@ -224,6 +290,9 @@     -- ** AdminForgetDevice     , module Network.AWS.CognitoIdentityProvider.AdminForgetDevice +    -- ** DescribeResourceServer+    , module Network.AWS.CognitoIdentityProvider.DescribeResourceServer+     -- ** AdminUpdateDeviceStatus     , module Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus @@ -254,15 +323,42 @@     -- ** CreateUserPoolClient     , module Network.AWS.CognitoIdentityProvider.CreateUserPoolClient +    -- ** CreateResourceServer+    , module Network.AWS.CognitoIdentityProvider.CreateResourceServer++    -- ** CreateGroup+    , module Network.AWS.CognitoIdentityProvider.CreateGroup++    -- ** AdminAddUserToGroup+    , module Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup+     -- ** StopUserImportJob     , module Network.AWS.CognitoIdentityProvider.StopUserImportJob      -- ** DescribeUserImportJob     , module Network.AWS.CognitoIdentityProvider.DescribeUserImportJob +    -- ** DeleteGroup+    , module Network.AWS.CognitoIdentityProvider.DeleteGroup++    -- ** UpdateGroup+    , module Network.AWS.CognitoIdentityProvider.UpdateGroup+     -- ** GlobalSignOut     , module Network.AWS.CognitoIdentityProvider.GlobalSignOut +    -- ** ListGroups+    , module Network.AWS.CognitoIdentityProvider.ListGroups++    -- ** UpdateIdentityProvider+    , module Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider++    -- ** DeleteIdentityProvider+    , module Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider++    -- ** ListResourceServers+    , module Network.AWS.CognitoIdentityProvider.ListResourceServers+     -- ** AdminRespondToAuthChallenge     , module Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge @@ -278,6 +374,9 @@     -- ** ResendConfirmationCode     , module Network.AWS.CognitoIdentityProvider.ResendConfirmationCode +    -- ** GetGroup+    , module Network.AWS.CognitoIdentityProvider.GetGroup+     -- ** AdminSetUserSettings     , module Network.AWS.CognitoIdentityProvider.AdminSetUserSettings @@ -298,18 +397,30 @@     -- ** ChallengeNameType     , ChallengeNameType (..) +    -- ** DefaultEmailOptionType+    , DefaultEmailOptionType (..)+     -- ** DeliveryMediumType     , DeliveryMediumType (..)      -- ** DeviceRememberedStatusType     , DeviceRememberedStatusType (..) +    -- ** DomainStatusType+    , DomainStatusType (..)+     -- ** ExplicitAuthFlowsType     , ExplicitAuthFlowsType (..) +    -- ** IdentityProviderTypeType+    , IdentityProviderTypeType (..)+     -- ** MessageActionType     , MessageActionType (..) +    -- ** OAuthFlowType+    , OAuthFlowType (..)+     -- ** StatusType     , StatusType (..) @@ -322,6 +433,9 @@     -- ** UserStatusType     , UserStatusType (..) +    -- ** UsernameAttributeType+    , UsernameAttributeType (..)+     -- ** VerifiedAttributeType     , VerifiedAttributeType (..) @@ -376,12 +490,46 @@     , dtDeviceKey     , dtDeviceLastAuthenticatedDate +    -- ** DomainDescriptionType+    , DomainDescriptionType+    , domainDescriptionType+    , ddtStatus+    , ddtCloudFrontDistribution+    , ddtUserPoolId+    , ddtDomain+    , ddtAWSAccountId+    , ddtVersion+    , ddtS3Bucket+     -- ** EmailConfigurationType     , EmailConfigurationType     , emailConfigurationType     , ectSourceARN     , ectReplyToEmailAddress +    -- ** GroupType+    , GroupType+    , groupType+    , gtLastModifiedDate+    , gtUserPoolId+    , gtCreationDate+    , gtPrecedence+    , gtGroupName+    , gtDescription+    , gtRoleARN++    -- ** IdentityProviderType+    , IdentityProviderType+    , identityProviderType+    , iptLastModifiedDate+    , iptUserPoolId+    , iptProviderType+    , iptCreationDate+    , iptIdpIdentifiers+    , iptAttributeMapping+    , iptProviderDetails+    , iptProviderName+     -- ** LambdaConfigType     , LambdaConfigType     , lambdaConfigType@@ -428,6 +576,35 @@     , pptMinimumLength     , pptRequireSymbols +    -- ** ProviderDescription+    , ProviderDescription+    , providerDescription+    , pdLastModifiedDate+    , pdProviderType+    , pdCreationDate+    , pdProviderName++    -- ** ProviderUserIdentifierType+    , ProviderUserIdentifierType+    , providerUserIdentifierType+    , puitProviderAttributeValue+    , puitProviderAttributeName+    , puitProviderName++    -- ** ResourceServerScopeType+    , ResourceServerScopeType+    , resourceServerScopeType+    , rsstScopeName+    , rsstScopeDescription++    -- ** ResourceServerType+    , ResourceServerType+    , resourceServerType+    , rstUserPoolId+    , rstIdentifier+    , rstScopes+    , rstName+     -- ** SchemaAttributeType     , SchemaAttributeType     , schemaAttributeType@@ -451,6 +628,17 @@     , sactMaxLength     , sactMinLength +    -- ** UICustomizationType+    , UICustomizationType+    , uICustomizationType+    , uictClientId+    , uictLastModifiedDate+    , uictUserPoolId+    , uictCSS+    , uictCSSVersion+    , uictImageURL+    , uictCreationDate+     -- ** UserImportJobType     , UserImportJobType     , userImportJobType@@ -483,11 +671,18 @@     , upctExplicitAuthFlows     , upctClientSecret     , upctLastModifiedDate+    , upctSupportedIdentityProviders+    , upctLogoutURLs+    , upctAllowedOAuthFlowsUserPoolClient     , upctUserPoolId+    , upctDefaultRedirectURI     , upctWriteAttributes     , upctCreationDate     , upctReadAttributes+    , upctAllowedOAuthScopes+    , upctAllowedOAuthFlows     , upctClientName+    , upctCallbackURLs      -- ** UserPoolDescriptionType     , UserPoolDescriptionType@@ -508,13 +703,16 @@     , UserPoolType     , userPoolType     , uptStatus+    , uptUserPoolTags     , uptEmailConfigurationFailure     , uptLastModifiedDate+    , uptVerificationMessageTemplate     , uptEstimatedNumberOfUsers     , uptEmailVerificationMessage     , uptSmsAuthenticationMessage     , uptSchemaAttributes     , uptEmailVerificationSubject+    , uptUsernameAttributes     , uptAliasAttributes     , uptEmailConfiguration     , uptSmsVerificationMessage@@ -540,66 +738,103 @@     , utAttributes     , utMFAOptions     , utUserLastModifiedDate++    -- ** VerificationMessageTemplateType+    , VerificationMessageTemplateType+    , verificationMessageTemplateType+    , vmttDefaultEmailOption+    , vmttEmailSubject+    , vmttEmailSubjectByLink+    , vmttSmsMessage+    , vmttEmailMessageByLink+    , vmttEmailMessage     ) where -import           Network.AWS.CognitoIdentityProvider.AddCustomAttributes-import           Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp-import           Network.AWS.CognitoIdentityProvider.AdminCreateUser-import           Network.AWS.CognitoIdentityProvider.AdminDeleteUser-import           Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes-import           Network.AWS.CognitoIdentityProvider.AdminDisableUser-import           Network.AWS.CognitoIdentityProvider.AdminEnableUser-import           Network.AWS.CognitoIdentityProvider.AdminForgetDevice-import           Network.AWS.CognitoIdentityProvider.AdminGetDevice-import           Network.AWS.CognitoIdentityProvider.AdminGetUser-import           Network.AWS.CognitoIdentityProvider.AdminInitiateAuth-import           Network.AWS.CognitoIdentityProvider.AdminListDevices-import           Network.AWS.CognitoIdentityProvider.AdminResetUserPassword-import           Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge-import           Network.AWS.CognitoIdentityProvider.AdminSetUserSettings-import           Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus-import           Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes-import           Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut-import           Network.AWS.CognitoIdentityProvider.ChangePassword-import           Network.AWS.CognitoIdentityProvider.ConfirmDevice-import           Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword-import           Network.AWS.CognitoIdentityProvider.ConfirmSignUp-import           Network.AWS.CognitoIdentityProvider.CreateUserImportJob-import           Network.AWS.CognitoIdentityProvider.CreateUserPool-import           Network.AWS.CognitoIdentityProvider.CreateUserPoolClient-import           Network.AWS.CognitoIdentityProvider.DeleteUser-import           Network.AWS.CognitoIdentityProvider.DeleteUserAttributes-import           Network.AWS.CognitoIdentityProvider.DeleteUserPool-import           Network.AWS.CognitoIdentityProvider.DeleteUserPoolClient-import           Network.AWS.CognitoIdentityProvider.DescribeUserImportJob-import           Network.AWS.CognitoIdentityProvider.DescribeUserPool-import           Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient-import           Network.AWS.CognitoIdentityProvider.ForgetDevice-import           Network.AWS.CognitoIdentityProvider.ForgotPassword-import           Network.AWS.CognitoIdentityProvider.GetCSVHeader-import           Network.AWS.CognitoIdentityProvider.GetDevice-import           Network.AWS.CognitoIdentityProvider.GetUser-import           Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode-import           Network.AWS.CognitoIdentityProvider.GlobalSignOut-import           Network.AWS.CognitoIdentityProvider.InitiateAuth-import           Network.AWS.CognitoIdentityProvider.ListDevices-import           Network.AWS.CognitoIdentityProvider.ListUserImportJobs-import           Network.AWS.CognitoIdentityProvider.ListUserPoolClients-import           Network.AWS.CognitoIdentityProvider.ListUserPools-import           Network.AWS.CognitoIdentityProvider.ListUsers-import           Network.AWS.CognitoIdentityProvider.ResendConfirmationCode-import           Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge-import           Network.AWS.CognitoIdentityProvider.SetUserSettings-import           Network.AWS.CognitoIdentityProvider.SignUp-import           Network.AWS.CognitoIdentityProvider.StartUserImportJob-import           Network.AWS.CognitoIdentityProvider.StopUserImportJob-import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.UpdateDeviceStatus-import           Network.AWS.CognitoIdentityProvider.UpdateUserAttributes-import           Network.AWS.CognitoIdentityProvider.UpdateUserPool-import           Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient-import           Network.AWS.CognitoIdentityProvider.VerifyUserAttribute-import           Network.AWS.CognitoIdentityProvider.Waiters+import Network.AWS.CognitoIdentityProvider.AddCustomAttributes+import Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup+import Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp+import Network.AWS.CognitoIdentityProvider.AdminCreateUser+import Network.AWS.CognitoIdentityProvider.AdminDeleteUser+import Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes+import Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser+import Network.AWS.CognitoIdentityProvider.AdminDisableUser+import Network.AWS.CognitoIdentityProvider.AdminEnableUser+import Network.AWS.CognitoIdentityProvider.AdminForgetDevice+import Network.AWS.CognitoIdentityProvider.AdminGetDevice+import Network.AWS.CognitoIdentityProvider.AdminGetUser+import Network.AWS.CognitoIdentityProvider.AdminInitiateAuth+import Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser+import Network.AWS.CognitoIdentityProvider.AdminListDevices+import Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser+import Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup+import Network.AWS.CognitoIdentityProvider.AdminResetUserPassword+import Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge+import Network.AWS.CognitoIdentityProvider.AdminSetUserSettings+import Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus+import Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes+import Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut+import Network.AWS.CognitoIdentityProvider.ChangePassword+import Network.AWS.CognitoIdentityProvider.ConfirmDevice+import Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword+import Network.AWS.CognitoIdentityProvider.ConfirmSignUp+import Network.AWS.CognitoIdentityProvider.CreateGroup+import Network.AWS.CognitoIdentityProvider.CreateIdentityProvider+import Network.AWS.CognitoIdentityProvider.CreateResourceServer+import Network.AWS.CognitoIdentityProvider.CreateUserImportJob+import Network.AWS.CognitoIdentityProvider.CreateUserPool+import Network.AWS.CognitoIdentityProvider.CreateUserPoolClient+import Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain+import Network.AWS.CognitoIdentityProvider.DeleteGroup+import Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider+import Network.AWS.CognitoIdentityProvider.DeleteResourceServer+import Network.AWS.CognitoIdentityProvider.DeleteUser+import Network.AWS.CognitoIdentityProvider.DeleteUserAttributes+import Network.AWS.CognitoIdentityProvider.DeleteUserPool+import Network.AWS.CognitoIdentityProvider.DeleteUserPoolClient+import Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain+import Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider+import Network.AWS.CognitoIdentityProvider.DescribeResourceServer+import Network.AWS.CognitoIdentityProvider.DescribeUserImportJob+import Network.AWS.CognitoIdentityProvider.DescribeUserPool+import Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient+import Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain+import Network.AWS.CognitoIdentityProvider.ForgetDevice+import Network.AWS.CognitoIdentityProvider.ForgotPassword+import Network.AWS.CognitoIdentityProvider.GetCSVHeader+import Network.AWS.CognitoIdentityProvider.GetDevice+import Network.AWS.CognitoIdentityProvider.GetGroup+import Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier+import Network.AWS.CognitoIdentityProvider.GetUICustomization+import Network.AWS.CognitoIdentityProvider.GetUser+import Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode+import Network.AWS.CognitoIdentityProvider.GlobalSignOut+import Network.AWS.CognitoIdentityProvider.InitiateAuth+import Network.AWS.CognitoIdentityProvider.ListDevices+import Network.AWS.CognitoIdentityProvider.ListGroups+import Network.AWS.CognitoIdentityProvider.ListIdentityProviders+import Network.AWS.CognitoIdentityProvider.ListResourceServers+import Network.AWS.CognitoIdentityProvider.ListUserImportJobs+import Network.AWS.CognitoIdentityProvider.ListUserPoolClients+import Network.AWS.CognitoIdentityProvider.ListUserPools+import Network.AWS.CognitoIdentityProvider.ListUsers+import Network.AWS.CognitoIdentityProvider.ListUsersInGroup+import Network.AWS.CognitoIdentityProvider.ResendConfirmationCode+import Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge+import Network.AWS.CognitoIdentityProvider.SetUICustomization+import Network.AWS.CognitoIdentityProvider.SetUserSettings+import Network.AWS.CognitoIdentityProvider.SignUp+import Network.AWS.CognitoIdentityProvider.StartUserImportJob+import Network.AWS.CognitoIdentityProvider.StopUserImportJob+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.UpdateDeviceStatus+import Network.AWS.CognitoIdentityProvider.UpdateGroup+import Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider+import Network.AWS.CognitoIdentityProvider.UpdateResourceServer+import Network.AWS.CognitoIdentityProvider.UpdateUserAttributes+import Network.AWS.CognitoIdentityProvider.UpdateUserPool+import Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient+import Network.AWS.CognitoIdentityProvider.VerifyUserAttribute+import Network.AWS.CognitoIdentityProvider.Waiters  {- $errors Error matchers are designed for use with the functions provided by
gen/Network/AWS/CognitoIdentityProvider/AddCustomAttributes.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AddCustomAttributes--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , acarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to add custom attributes. --@@ -50,10 +50,11 @@ -- -- /See:/ 'addCustomAttributes' smart constructor. data AddCustomAttributes = AddCustomAttributes'-    { _acaUserPoolId       :: !Text-    , _acaCustomAttributes :: !(List1 SchemaAttributeType)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _acaUserPoolId       :: !Text+  , _acaCustomAttributes :: !(List1 SchemaAttributeType)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AddCustomAttributes' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +67,12 @@     -> NonEmpty SchemaAttributeType -- ^ 'acaCustomAttributes'     -> AddCustomAttributes addCustomAttributes pUserPoolId_ pCustomAttributes_ =-    AddCustomAttributes'-    { _acaUserPoolId = pUserPoolId_-    , _acaCustomAttributes = _List1 # pCustomAttributes_-    }+  AddCustomAttributes'+  { _acaUserPoolId = pUserPoolId_+  , _acaCustomAttributes = _List1 # pCustomAttributes_+  } + -- | The user pool ID for the user pool where you want to add custom attributes. acaUserPoolId :: Lens' AddCustomAttributes Text acaUserPoolId = lens _acaUserPoolId (\ s a -> s{_acaUserPoolId = a});@@ -88,9 +90,9 @@               (\ s h x ->                  AddCustomAttributesResponse' <$> (pure (fromEnum s))) -instance Hashable AddCustomAttributes+instance Hashable AddCustomAttributes where -instance NFData AddCustomAttributes+instance NFData AddCustomAttributes where  instance ToHeaders AddCustomAttributes where         toHeaders@@ -121,9 +123,10 @@ -- -- /See:/ 'addCustomAttributesResponse' smart constructor. newtype AddCustomAttributesResponse = AddCustomAttributesResponse'-    { _acarsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _acarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AddCustomAttributesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -133,12 +136,11 @@     :: Int -- ^ 'acarsResponseStatus'     -> AddCustomAttributesResponse addCustomAttributesResponse pResponseStatus_ =-    AddCustomAttributesResponse'-    { _acarsResponseStatus = pResponseStatus_-    }+  AddCustomAttributesResponse' {_acarsResponseStatus = pResponseStatus_} + -- | -- | The response status code. acarsResponseStatus :: Lens' AddCustomAttributesResponse Int acarsResponseStatus = lens _acarsResponseStatus (\ s a -> s{_acarsResponseStatus = a}); -instance NFData AddCustomAttributesResponse+instance NFData AddCustomAttributesResponse where
+ gen/Network/AWS/CognitoIdentityProvider/AdminAddUserToGroup.hs view
@@ -0,0 +1,137 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds the specified user to the specified group.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.AdminAddUserToGroup+    (+    -- * Creating a Request+      adminAddUserToGroup+    , AdminAddUserToGroup+    -- * Request Lenses+    , aautgUserPoolId+    , aautgUsername+    , aautgGroupName++    -- * Destructuring the Response+    , adminAddUserToGroupResponse+    , AdminAddUserToGroupResponse+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'adminAddUserToGroup' smart constructor.+data AdminAddUserToGroup = AdminAddUserToGroup'+  { _aautgUserPoolId :: !Text+  , _aautgUsername   :: !(Sensitive Text)+  , _aautgGroupName  :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminAddUserToGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aautgUserPoolId' - The user pool ID for the user pool.+--+-- * 'aautgUsername' - The username for the user.+--+-- * 'aautgGroupName' - The group name.+adminAddUserToGroup+    :: Text -- ^ 'aautgUserPoolId'+    -> Text -- ^ 'aautgUsername'+    -> Text -- ^ 'aautgGroupName'+    -> AdminAddUserToGroup+adminAddUserToGroup pUserPoolId_ pUsername_ pGroupName_ =+  AdminAddUserToGroup'+  { _aautgUserPoolId = pUserPoolId_+  , _aautgUsername = _Sensitive # pUsername_+  , _aautgGroupName = pGroupName_+  }+++-- | The user pool ID for the user pool.+aautgUserPoolId :: Lens' AdminAddUserToGroup Text+aautgUserPoolId = lens _aautgUserPoolId (\ s a -> s{_aautgUserPoolId = a});++-- | The username for the user.+aautgUsername :: Lens' AdminAddUserToGroup Text+aautgUsername = lens _aautgUsername (\ s a -> s{_aautgUsername = a}) . _Sensitive;++-- | The group name.+aautgGroupName :: Lens' AdminAddUserToGroup Text+aautgGroupName = lens _aautgGroupName (\ s a -> s{_aautgGroupName = a});++instance AWSRequest AdminAddUserToGroup where+        type Rs AdminAddUserToGroup =+             AdminAddUserToGroupResponse+        request = postJSON cognitoIdentityProvider+        response = receiveNull AdminAddUserToGroupResponse'++instance Hashable AdminAddUserToGroup where++instance NFData AdminAddUserToGroup where++instance ToHeaders AdminAddUserToGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.AdminAddUserToGroup"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AdminAddUserToGroup where+        toJSON AdminAddUserToGroup'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _aautgUserPoolId),+                  Just ("Username" .= _aautgUsername),+                  Just ("GroupName" .= _aautgGroupName)])++instance ToPath AdminAddUserToGroup where+        toPath = const "/"++instance ToQuery AdminAddUserToGroup where+        toQuery = const mempty++-- | /See:/ 'adminAddUserToGroupResponse' smart constructor.+data AdminAddUserToGroupResponse =+  AdminAddUserToGroupResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminAddUserToGroupResponse' with the minimum fields required to make a request.+--+adminAddUserToGroupResponse+    :: AdminAddUserToGroupResponse+adminAddUserToGroupResponse = AdminAddUserToGroupResponse'+++instance NFData AdminAddUserToGroupResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminConfirmSignUp.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Confirms user registration as an admin without using a confirmation code. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminConfirmSignUp     (     -- * Creating a Request@@ -37,12 +39,12 @@     , acsursResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to confirm user registration. --@@ -50,10 +52,11 @@ -- -- /See:/ 'adminConfirmSignUp' smart constructor. data AdminConfirmSignUp = AdminConfirmSignUp'-    { _acsuUserPoolId :: !Text-    , _acsuUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _acsuUserPoolId :: !Text+  , _acsuUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminConfirmSignUp' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +69,10 @@     -> Text -- ^ 'acsuUsername'     -> AdminConfirmSignUp adminConfirmSignUp pUserPoolId_ pUsername_ =-    AdminConfirmSignUp'-    { _acsuUserPoolId = pUserPoolId_-    , _acsuUsername = _Sensitive # pUsername_-    }+  AdminConfirmSignUp'+  {_acsuUserPoolId = pUserPoolId_, _acsuUsername = _Sensitive # pUsername_} + -- | The user pool ID for which you want to confirm user registration. acsuUserPoolId :: Lens' AdminConfirmSignUp Text acsuUserPoolId = lens _acsuUserPoolId (\ s a -> s{_acsuUserPoolId = a});@@ -88,9 +90,9 @@               (\ s h x ->                  AdminConfirmSignUpResponse' <$> (pure (fromEnum s))) -instance Hashable AdminConfirmSignUp+instance Hashable AdminConfirmSignUp where -instance NFData AdminConfirmSignUp+instance NFData AdminConfirmSignUp where  instance ToHeaders AdminConfirmSignUp where         toHeaders@@ -121,9 +123,10 @@ -- -- /See:/ 'adminConfirmSignUpResponse' smart constructor. newtype AdminConfirmSignUpResponse = AdminConfirmSignUpResponse'-    { _acsursResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _acsursResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminConfirmSignUpResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -133,12 +136,11 @@     :: Int -- ^ 'acsursResponseStatus'     -> AdminConfirmSignUpResponse adminConfirmSignUpResponse pResponseStatus_ =-    AdminConfirmSignUpResponse'-    { _acsursResponseStatus = pResponseStatus_-    }+  AdminConfirmSignUpResponse' {_acsursResponseStatus = pResponseStatus_} + -- | -- | The response status code. acsursResponseStatus :: Lens' AdminConfirmSignUpResponse Int acsursResponseStatus = lens _acsursResponseStatus (\ s a -> s{_acsursResponseStatus = a}); -instance NFData AdminConfirmSignUpResponse+instance NFData AdminConfirmSignUpResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminCreateUser.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminCreateUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a new user in the specified user pool and sends a welcome message via email or phone (SMS). This message is based on a template that you configured in your call to CreateUserPool or UpdateUserPool. This template includes your custom sign-up instructions and placeholders for user name and temporary password.+-- Creates a new user in the specified user pool and sends a welcome message via email or phone (SMS). This message is based on a template that you configured in your call to <API_CreateUserPool.html CreateUserPool> or <API_UpdateUserPool.html UpdateUserPool> . This template includes your custom sign-up instructions and placeholders for user name and temporary password. -- -- -- Requires developer credentials.@@ -46,12 +46,12 @@     , acursResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to create a user in the specified user pool. --@@ -59,29 +59,30 @@ -- -- /See:/ 'adminCreateUser' smart constructor. data AdminCreateUser = AdminCreateUser'-    { _acuTemporaryPassword      :: !(Maybe (Sensitive Text))-    , _acuForceAliasCreation     :: !(Maybe Bool)-    , _acuDesiredDeliveryMediums :: !(Maybe [DeliveryMediumType])-    , _acuMessageAction          :: !(Maybe MessageActionType)-    , _acuUserAttributes         :: !(Maybe [AttributeType])-    , _acuValidationData         :: !(Maybe [AttributeType])-    , _acuUserPoolId             :: !Text-    , _acuUsername               :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _acuTemporaryPassword      :: !(Maybe (Sensitive Text))+  , _acuForceAliasCreation     :: !(Maybe Bool)+  , _acuDesiredDeliveryMediums :: !(Maybe [DeliveryMediumType])+  , _acuMessageAction          :: !(Maybe MessageActionType)+  , _acuUserAttributes         :: !(Maybe [AttributeType])+  , _acuValidationData         :: !(Maybe [AttributeType])+  , _acuUserPoolId             :: !Text+  , _acuUsername               :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminCreateUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'acuTemporaryPassword' - The user's temporary password. This password must conform to the password policy that you specified when you created the user pool. The temporary password is valid only once. To complete the Admin Create User flow, the user must enter the temporary password in the sign-in page along with a new password to be used in all future sign-ins. This parameter is not required. If you do not specify a value, Amazon Cognito generates one for you. The temporary password can only be used until the user account expiration limit that you specified when you created the user pool. To reset the account after that time limit, you must call AdminCreateUser again, specifying "RESEND" for the MessageAction parameter.+-- * 'acuTemporaryPassword' - The user's temporary password. This password must conform to the password policy that you specified when you created the user pool. The temporary password is valid only once. To complete the Admin Create User flow, the user must enter the temporary password in the sign-in page along with a new password to be used in all future sign-ins. This parameter is not required. If you do not specify a value, Amazon Cognito generates one for you. The temporary password can only be used until the user account expiration limit that you specified when you created the user pool. To reset the account after that time limit, you must call @AdminCreateUser@ again, specifying @"RESEND"@ for the @MessageAction@ parameter. ----- * 'acuForceAliasCreation' - This parameter is only used if the phone_number_verified or email_verified attribute is set to True. Otherwise, it is ignored. If this parameter is set to True and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. If this parameter is set to False, the API throws an AliasExistsException error if the alias already exists. The default value is False.+-- * 'acuForceAliasCreation' - This parameter is only used if the @phone_number_verified@ or @email_verified@ attribute is set to @True@ . Otherwise, it is ignored. If this parameter is set to @True@ and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. If this parameter is set to @False@ , the API throws an @AliasExistsException@ error if the alias already exists. The default value is @False@ . ----- * 'acuDesiredDeliveryMediums' - Specify "EMAIL" if email will be used to send the welcome message. Specify "SMS" if the phone number will be used. The default value is "SMS". More than one value can be specified.+-- * 'acuDesiredDeliveryMediums' - Specify @"EMAIL"@ if email will be used to send the welcome message. Specify @"SMS"@ if the phone number will be used. The default value is @"SMS"@ . More than one value can be specified. ----- * 'acuMessageAction' - Set to "RESEND" to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to "SUPPRESS" to suppress sending the message. Only one value can be specified.+-- * 'acuMessageAction' - Set to @"RESEND"@ to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to @"SUPPRESS"@ to suppress sending the message. Only one value can be specified. ----- * 'acuUserAttributes' - An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. You can create a user without specifying any attributes other than Username. However, any attributes that you specify as required (in CreateUserPool or in the __Attributes__ tab of the console) must be supplied either by you (in your call to AdminCreateUser) or by the user (when he or she signs up in response to your welcome message). To send a message inviting the user to sign up, you must specify the user's email address or phone number. This can be done in your call to AdminCreateUser or in the __Users__ tab of the Amazon Cognito console for managing your user pools. In your call to AdminCreateUser, you can set the email_verified attribute to True, and you can set the phone_number_verified attribute to True. (You cannot do this by calling other operations such as AdminUpdateUserAttributes.)     * __email__ : The email address of the user to whom the message that contains the code and username will be sent. Required if the email_verified attribute is set to True, or if "EMAIL" is specified in the DesiredDeliveryMediums parameter.     * __phone_number__ : The phone number of the user to whom the message that contains the code and username will be sent. Required if the phone_number_verified attribute is set to True, or if "SMS" is specified in the DesiredDeliveryMediums parameter.+-- * 'acuUserAttributes' - An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. You can create a user without specifying any attributes other than @Username@ . However, any attributes that you specify as required (in <API_CreateUserPool.html CreateUserPool> or in the __Attributes__ tab of the console) must be supplied either by you (in your call to @AdminCreateUser@ ) or by the user (when he or she signs up in response to your welcome message). For custom attributes, you must prepend the @custom:@ prefix to the attribute name. To send a message inviting the user to sign up, you must specify the user's email address or phone number. This can be done in your call to AdminCreateUser or in the __Users__ tab of the Amazon Cognito console for managing your user pools. In your call to @AdminCreateUser@ , you can set the @email_verified@ attribute to @True@ , and you can set the @phone_number_verified@ attribute to @True@ . (You can also do this by calling <API_AdminUpdateUserAttributes.html AdminUpdateUserAttributes> .)     * __email__ : The email address of the user to whom the message that contains the code and username will be sent. Required if the @email_verified@ attribute is set to @True@ , or if @"EMAIL"@ is specified in the @DesiredDeliveryMediums@ parameter.     * __phone_number__ : The phone number of the user to whom the message that contains the code and username will be sent. Required if the @phone_number_verified@ attribute is set to @True@ , or if @"SMS"@ is specified in the @DesiredDeliveryMediums@ parameter. -- -- * 'acuValidationData' - The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. For example, you might choose to allow or disallow user sign-up based on the user's domain. To configure custom validation, you must create a Pre Sign-up Lambda trigger for the user pool as described in the Amazon Cognito Developer Guide. The Lambda trigger receives the validation data and uses it in the validation process. The user's validation data is not persisted. --@@ -93,34 +94,35 @@     -> Text -- ^ 'acuUsername'     -> AdminCreateUser adminCreateUser pUserPoolId_ pUsername_ =-    AdminCreateUser'-    { _acuTemporaryPassword = Nothing-    , _acuForceAliasCreation = Nothing-    , _acuDesiredDeliveryMediums = Nothing-    , _acuMessageAction = Nothing-    , _acuUserAttributes = Nothing-    , _acuValidationData = Nothing-    , _acuUserPoolId = pUserPoolId_-    , _acuUsername = _Sensitive # pUsername_-    }+  AdminCreateUser'+  { _acuTemporaryPassword = Nothing+  , _acuForceAliasCreation = Nothing+  , _acuDesiredDeliveryMediums = Nothing+  , _acuMessageAction = Nothing+  , _acuUserAttributes = Nothing+  , _acuValidationData = Nothing+  , _acuUserPoolId = pUserPoolId_+  , _acuUsername = _Sensitive # pUsername_+  } --- | The user's temporary password. This password must conform to the password policy that you specified when you created the user pool. The temporary password is valid only once. To complete the Admin Create User flow, the user must enter the temporary password in the sign-in page along with a new password to be used in all future sign-ins. This parameter is not required. If you do not specify a value, Amazon Cognito generates one for you. The temporary password can only be used until the user account expiration limit that you specified when you created the user pool. To reset the account after that time limit, you must call AdminCreateUser again, specifying "RESEND" for the MessageAction parameter.++-- | The user's temporary password. This password must conform to the password policy that you specified when you created the user pool. The temporary password is valid only once. To complete the Admin Create User flow, the user must enter the temporary password in the sign-in page along with a new password to be used in all future sign-ins. This parameter is not required. If you do not specify a value, Amazon Cognito generates one for you. The temporary password can only be used until the user account expiration limit that you specified when you created the user pool. To reset the account after that time limit, you must call @AdminCreateUser@ again, specifying @"RESEND"@ for the @MessageAction@ parameter. acuTemporaryPassword :: Lens' AdminCreateUser (Maybe Text) acuTemporaryPassword = lens _acuTemporaryPassword (\ s a -> s{_acuTemporaryPassword = a}) . mapping _Sensitive; --- | This parameter is only used if the phone_number_verified or email_verified attribute is set to True. Otherwise, it is ignored. If this parameter is set to True and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. If this parameter is set to False, the API throws an AliasExistsException error if the alias already exists. The default value is False.+-- | This parameter is only used if the @phone_number_verified@ or @email_verified@ attribute is set to @True@ . Otherwise, it is ignored. If this parameter is set to @True@ and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. If this parameter is set to @False@ , the API throws an @AliasExistsException@ error if the alias already exists. The default value is @False@ . acuForceAliasCreation :: Lens' AdminCreateUser (Maybe Bool) acuForceAliasCreation = lens _acuForceAliasCreation (\ s a -> s{_acuForceAliasCreation = a}); --- | Specify "EMAIL" if email will be used to send the welcome message. Specify "SMS" if the phone number will be used. The default value is "SMS". More than one value can be specified.+-- | Specify @"EMAIL"@ if email will be used to send the welcome message. Specify @"SMS"@ if the phone number will be used. The default value is @"SMS"@ . More than one value can be specified. acuDesiredDeliveryMediums :: Lens' AdminCreateUser [DeliveryMediumType] acuDesiredDeliveryMediums = lens _acuDesiredDeliveryMediums (\ s a -> s{_acuDesiredDeliveryMediums = a}) . _Default . _Coerce; --- | Set to "RESEND" to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to "SUPPRESS" to suppress sending the message. Only one value can be specified.+-- | Set to @"RESEND"@ to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to @"SUPPRESS"@ to suppress sending the message. Only one value can be specified. acuMessageAction :: Lens' AdminCreateUser (Maybe MessageActionType) acuMessageAction = lens _acuMessageAction (\ s a -> s{_acuMessageAction = a}); --- | An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. You can create a user without specifying any attributes other than Username. However, any attributes that you specify as required (in CreateUserPool or in the __Attributes__ tab of the console) must be supplied either by you (in your call to AdminCreateUser) or by the user (when he or she signs up in response to your welcome message). To send a message inviting the user to sign up, you must specify the user's email address or phone number. This can be done in your call to AdminCreateUser or in the __Users__ tab of the Amazon Cognito console for managing your user pools. In your call to AdminCreateUser, you can set the email_verified attribute to True, and you can set the phone_number_verified attribute to True. (You cannot do this by calling other operations such as AdminUpdateUserAttributes.)     * __email__ : The email address of the user to whom the message that contains the code and username will be sent. Required if the email_verified attribute is set to True, or if "EMAIL" is specified in the DesiredDeliveryMediums parameter.     * __phone_number__ : The phone number of the user to whom the message that contains the code and username will be sent. Required if the phone_number_verified attribute is set to True, or if "SMS" is specified in the DesiredDeliveryMediums parameter.+-- | An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. You can create a user without specifying any attributes other than @Username@ . However, any attributes that you specify as required (in <API_CreateUserPool.html CreateUserPool> or in the __Attributes__ tab of the console) must be supplied either by you (in your call to @AdminCreateUser@ ) or by the user (when he or she signs up in response to your welcome message). For custom attributes, you must prepend the @custom:@ prefix to the attribute name. To send a message inviting the user to sign up, you must specify the user's email address or phone number. This can be done in your call to AdminCreateUser or in the __Users__ tab of the Amazon Cognito console for managing your user pools. In your call to @AdminCreateUser@ , you can set the @email_verified@ attribute to @True@ , and you can set the @phone_number_verified@ attribute to @True@ . (You can also do this by calling <API_AdminUpdateUserAttributes.html AdminUpdateUserAttributes> .)     * __email__ : The email address of the user to whom the message that contains the code and username will be sent. Required if the @email_verified@ attribute is set to @True@ , or if @"EMAIL"@ is specified in the @DesiredDeliveryMediums@ parameter.     * __phone_number__ : The phone number of the user to whom the message that contains the code and username will be sent. Required if the @phone_number_verified@ attribute is set to @True@ , or if @"SMS"@ is specified in the @DesiredDeliveryMediums@ parameter. acuUserAttributes :: Lens' AdminCreateUser [AttributeType] acuUserAttributes = lens _acuUserAttributes (\ s a -> s{_acuUserAttributes = a}) . _Default . _Coerce; @@ -145,9 +147,9 @@                  AdminCreateUserResponse' <$>                    (x .?> "User") <*> (pure (fromEnum s))) -instance Hashable AdminCreateUser+instance Hashable AdminCreateUser where -instance NFData AdminCreateUser+instance NFData AdminCreateUser where  instance ToHeaders AdminCreateUser where         toHeaders@@ -185,27 +187,27 @@ -- -- /See:/ 'adminCreateUserResponse' smart constructor. data AdminCreateUserResponse = AdminCreateUserResponse'-    { _acursUser           :: !(Maybe UserType)-    , _acursResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _acursUser           :: !(Maybe UserType)+  , _acursResponseStatus :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminCreateUserResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'acursUser' - The user returned in the request to create a new user.+-- * 'acursUser' - The newly created user. -- -- * 'acursResponseStatus' - -- | The response status code. adminCreateUserResponse     :: Int -- ^ 'acursResponseStatus'     -> AdminCreateUserResponse adminCreateUserResponse pResponseStatus_ =-    AdminCreateUserResponse'-    { _acursUser = Nothing-    , _acursResponseStatus = pResponseStatus_-    }+  AdminCreateUserResponse'+  {_acursUser = Nothing, _acursResponseStatus = pResponseStatus_} --- | The user returned in the request to create a new user.++-- | The newly created user. acursUser :: Lens' AdminCreateUserResponse (Maybe UserType) acursUser = lens _acursUser (\ s a -> s{_acursUser = a}); @@ -213,4 +215,4 @@ acursResponseStatus :: Lens' AdminCreateUserResponse Int acursResponseStatus = lens _acursResponseStatus (\ s a -> s{_acursResponseStatus = a}); -instance NFData AdminCreateUserResponse+instance NFData AdminCreateUserResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminDeleteUser.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminDeleteUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Deletes a user as an administrator. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminDeleteUser     (     -- * Creating a Request@@ -35,12 +37,12 @@     , AdminDeleteUserResponse     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to delete a user as an administrator. --@@ -48,10 +50,11 @@ -- -- /See:/ 'adminDeleteUser' smart constructor. data AdminDeleteUser = AdminDeleteUser'-    { _aUserPoolId :: !Text-    , _aUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aUserPoolId :: !Text+  , _aUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminDeleteUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -64,11 +67,10 @@     -> Text -- ^ 'aUsername'     -> AdminDeleteUser adminDeleteUser pUserPoolId_ pUsername_ =-    AdminDeleteUser'-    { _aUserPoolId = pUserPoolId_-    , _aUsername = _Sensitive # pUsername_-    }+  AdminDeleteUser'+  {_aUserPoolId = pUserPoolId_, _aUsername = _Sensitive # pUsername_} + -- | The user pool ID for the user pool where you want to delete the user. aUserPoolId :: Lens' AdminDeleteUser Text aUserPoolId = lens _aUserPoolId (\ s a -> s{_aUserPoolId = a});@@ -82,9 +84,9 @@         request = postJSON cognitoIdentityProvider         response = receiveNull AdminDeleteUserResponse' -instance Hashable AdminDeleteUser+instance Hashable AdminDeleteUser where -instance NFData AdminDeleteUser+instance NFData AdminDeleteUser where  instance ToHeaders AdminDeleteUser where         toHeaders@@ -111,13 +113,15 @@  -- | /See:/ 'adminDeleteUserResponse' smart constructor. data AdminDeleteUserResponse =-    AdminDeleteUserResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  AdminDeleteUserResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminDeleteUserResponse' with the minimum fields required to make a request. -- adminDeleteUserResponse     :: AdminDeleteUserResponse adminDeleteUserResponse = AdminDeleteUserResponse' -instance NFData AdminDeleteUserResponse++instance NFData AdminDeleteUserResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminDeleteUserAttributes.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Deletes the user attributes in a user pool as an administrator. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminDeleteUserAttributes     (     -- * Creating a Request@@ -38,12 +40,12 @@     , aduarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to delete user attributes as an administrator. --@@ -51,11 +53,12 @@ -- -- /See:/ 'adminDeleteUserAttributes' smart constructor. data AdminDeleteUserAttributes = AdminDeleteUserAttributes'-    { _aduaUserPoolId         :: !Text-    , _aduaUsername           :: !(Sensitive Text)-    , _aduaUserAttributeNames :: ![Text]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aduaUserPoolId         :: !Text+  , _aduaUsername           :: !(Sensitive Text)+  , _aduaUserAttributeNames :: ![Text]+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminDeleteUserAttributes' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -64,18 +67,19 @@ -- -- * 'aduaUsername' - The user name of the user from which you would like to delete attributes. ----- * 'aduaUserAttributeNames' - An array of strings representing the user attribute names you wish to delete.+-- * 'aduaUserAttributeNames' - An array of strings representing the user attribute names you wish to delete. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. adminDeleteUserAttributes     :: Text -- ^ 'aduaUserPoolId'     -> Text -- ^ 'aduaUsername'     -> AdminDeleteUserAttributes adminDeleteUserAttributes pUserPoolId_ pUsername_ =-    AdminDeleteUserAttributes'-    { _aduaUserPoolId = pUserPoolId_-    , _aduaUsername = _Sensitive # pUsername_-    , _aduaUserAttributeNames = mempty-    }+  AdminDeleteUserAttributes'+  { _aduaUserPoolId = pUserPoolId_+  , _aduaUsername = _Sensitive # pUsername_+  , _aduaUserAttributeNames = mempty+  } + -- | The user pool ID for the user pool where you want to delete user attributes. aduaUserPoolId :: Lens' AdminDeleteUserAttributes Text aduaUserPoolId = lens _aduaUserPoolId (\ s a -> s{_aduaUserPoolId = a});@@ -84,7 +88,7 @@ aduaUsername :: Lens' AdminDeleteUserAttributes Text aduaUsername = lens _aduaUsername (\ s a -> s{_aduaUsername = a}) . _Sensitive; --- | An array of strings representing the user attribute names you wish to delete.+-- | An array of strings representing the user attribute names you wish to delete. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. aduaUserAttributeNames :: Lens' AdminDeleteUserAttributes [Text] aduaUserAttributeNames = lens _aduaUserAttributeNames (\ s a -> s{_aduaUserAttributeNames = a}) . _Coerce; @@ -98,9 +102,9 @@                  AdminDeleteUserAttributesResponse' <$>                    (pure (fromEnum s))) -instance Hashable AdminDeleteUserAttributes+instance Hashable AdminDeleteUserAttributes where -instance NFData AdminDeleteUserAttributes+instance NFData AdminDeleteUserAttributes where  instance ToHeaders AdminDeleteUserAttributes where         toHeaders@@ -133,9 +137,10 @@ -- -- /See:/ 'adminDeleteUserAttributesResponse' smart constructor. newtype AdminDeleteUserAttributesResponse = AdminDeleteUserAttributesResponse'-    { _aduarsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aduarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminDeleteUserAttributesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -145,12 +150,12 @@     :: Int -- ^ 'aduarsResponseStatus'     -> AdminDeleteUserAttributesResponse adminDeleteUserAttributesResponse pResponseStatus_ =-    AdminDeleteUserAttributesResponse'-    { _aduarsResponseStatus = pResponseStatus_-    }+  AdminDeleteUserAttributesResponse' {_aduarsResponseStatus = pResponseStatus_} + -- | -- | The response status code. aduarsResponseStatus :: Lens' AdminDeleteUserAttributesResponse Int aduarsResponseStatus = lens _aduarsResponseStatus (\ s a -> s{_aduarsResponseStatus = a});  instance NFData AdminDeleteUserAttributesResponse+         where
+ gen/Network/AWS/CognitoIdentityProvider/AdminDisableProviderForUser.hs view
@@ -0,0 +1,149 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disables the user from signing in with the specified external (SAML or social) identity provider. If the user to disable is a Cognito User Pools native username + password user, they are not permitted to use their password to sign-in. If the user to disable is a linked external IdP user, any link between that user and an existing user is removed. The next time the external user (no longer attached to the previously linked @DestinationUser@ ) signs in, they must create a new user account. See <API_AdminLinkProviderForUser.html AdminLinkProviderForUser> .+--+--+-- This action is enabled only for admin access and requires developer credentials.+--+-- The @ProviderName@ must match the value specified when creating an IdP for the pool.+--+-- To disable a native username + password user, the @ProviderName@ value must be @Cognito@ and the @ProviderAttributeName@ must be @Cognito_Subject@ , with the @ProviderAttributeValue@ being the name that is used in the user pool for the user.+--+-- The @ProviderAttributeName@ must always be @Cognito_Subject@ for social identity providers. The @ProviderAttributeValue@ must always be the exact subject that was used when the user was originally linked as a source user.+--+-- For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign-in, the @ProviderAttributeName@ and @ProviderAttributeValue@ must be the same values that were used for the @SourceUser@ when the identities were originally linked in the <API_AdminLinkProviderForUser.html AdminLinkProviderForUser> call. (If the linking was done with @ProviderAttributeName@ set to @Cognito_Subject@ , the same applies here). However, if the user has already signed in, the @ProviderAttributeName@ must be @Cognito_Subject@ and @ProviderAttributeValue@ must be the subject of the SAML assertion.+--+module Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser+    (+    -- * Creating a Request+      adminDisableProviderForUser+    , AdminDisableProviderForUser+    -- * Request Lenses+    , adpfuUserPoolId+    , adpfuUser++    -- * Destructuring the Response+    , adminDisableProviderForUserResponse+    , AdminDisableProviderForUserResponse+    -- * Response Lenses+    , adpfursResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'adminDisableProviderForUser' smart constructor.+data AdminDisableProviderForUser = AdminDisableProviderForUser'+  { _adpfuUserPoolId :: !Text+  , _adpfuUser       :: !ProviderUserIdentifierType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminDisableProviderForUser' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'adpfuUserPoolId' - The user pool ID for the user pool.+--+-- * 'adpfuUser' - The user to be disabled.+adminDisableProviderForUser+    :: Text -- ^ 'adpfuUserPoolId'+    -> ProviderUserIdentifierType -- ^ 'adpfuUser'+    -> AdminDisableProviderForUser+adminDisableProviderForUser pUserPoolId_ pUser_ =+  AdminDisableProviderForUser'+  {_adpfuUserPoolId = pUserPoolId_, _adpfuUser = pUser_}+++-- | The user pool ID for the user pool.+adpfuUserPoolId :: Lens' AdminDisableProviderForUser Text+adpfuUserPoolId = lens _adpfuUserPoolId (\ s a -> s{_adpfuUserPoolId = a});++-- | The user to be disabled.+adpfuUser :: Lens' AdminDisableProviderForUser ProviderUserIdentifierType+adpfuUser = lens _adpfuUser (\ s a -> s{_adpfuUser = a});++instance AWSRequest AdminDisableProviderForUser where+        type Rs AdminDisableProviderForUser =+             AdminDisableProviderForUserResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveEmpty+              (\ s h x ->+                 AdminDisableProviderForUserResponse' <$>+                   (pure (fromEnum s)))++instance Hashable AdminDisableProviderForUser where++instance NFData AdminDisableProviderForUser where++instance ToHeaders AdminDisableProviderForUser where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.AdminDisableProviderForUser"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AdminDisableProviderForUser where+        toJSON AdminDisableProviderForUser'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _adpfuUserPoolId),+                  Just ("User" .= _adpfuUser)])++instance ToPath AdminDisableProviderForUser where+        toPath = const "/"++instance ToQuery AdminDisableProviderForUser where+        toQuery = const mempty++-- | /See:/ 'adminDisableProviderForUserResponse' smart constructor.+newtype AdminDisableProviderForUserResponse = AdminDisableProviderForUserResponse'+  { _adpfursResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminDisableProviderForUserResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'adpfursResponseStatus' - -- | The response status code.+adminDisableProviderForUserResponse+    :: Int -- ^ 'adpfursResponseStatus'+    -> AdminDisableProviderForUserResponse+adminDisableProviderForUserResponse pResponseStatus_ =+  AdminDisableProviderForUserResponse'+  {_adpfursResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+adpfursResponseStatus :: Lens' AdminDisableProviderForUserResponse Int+adpfursResponseStatus = lens _adpfursResponseStatus (\ s a -> s{_adpfursResponseStatus = a});++instance NFData AdminDisableProviderForUserResponse+         where
gen/Network/AWS/CognitoIdentityProvider/AdminDisableUser.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminDisableUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Disables the specified user as an administrator. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminDisableUser     (     -- * Creating a Request@@ -37,12 +39,12 @@     , adursResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to disable any user as an administrator. --@@ -50,10 +52,11 @@ -- -- /See:/ 'adminDisableUser' smart constructor. data AdminDisableUser = AdminDisableUser'-    { _aduUserPoolId :: !Text-    , _aduUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aduUserPoolId :: !Text+  , _aduUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminDisableUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +69,10 @@     -> Text -- ^ 'aduUsername'     -> AdminDisableUser adminDisableUser pUserPoolId_ pUsername_ =-    AdminDisableUser'-    { _aduUserPoolId = pUserPoolId_-    , _aduUsername = _Sensitive # pUsername_-    }+  AdminDisableUser'+  {_aduUserPoolId = pUserPoolId_, _aduUsername = _Sensitive # pUsername_} + -- | The user pool ID for the user pool where you want to disable the user. aduUserPoolId :: Lens' AdminDisableUser Text aduUserPoolId = lens _aduUserPoolId (\ s a -> s{_aduUserPoolId = a});@@ -87,9 +89,9 @@               (\ s h x ->                  AdminDisableUserResponse' <$> (pure (fromEnum s))) -instance Hashable AdminDisableUser+instance Hashable AdminDisableUser where -instance NFData AdminDisableUser+instance NFData AdminDisableUser where  instance ToHeaders AdminDisableUser where         toHeaders@@ -120,9 +122,10 @@ -- -- /See:/ 'adminDisableUserResponse' smart constructor. newtype AdminDisableUserResponse = AdminDisableUserResponse'-    { _adursResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _adursResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminDisableUserResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -132,12 +135,11 @@     :: Int -- ^ 'adursResponseStatus'     -> AdminDisableUserResponse adminDisableUserResponse pResponseStatus_ =-    AdminDisableUserResponse'-    { _adursResponseStatus = pResponseStatus_-    }+  AdminDisableUserResponse' {_adursResponseStatus = pResponseStatus_} + -- | -- | The response status code. adursResponseStatus :: Lens' AdminDisableUserResponse Int adursResponseStatus = lens _adursResponseStatus (\ s a -> s{_adursResponseStatus = a}); -instance NFData AdminDisableUserResponse+instance NFData AdminDisableUserResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminEnableUser.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminEnableUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Enables the specified user as an administrator. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminEnableUser     (     -- * Creating a Request@@ -37,12 +39,12 @@     , aeursResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request that enables the user as an administrator. --@@ -50,32 +52,32 @@ -- -- /See:/ 'adminEnableUser' smart constructor. data AdminEnableUser = AdminEnableUser'-    { _aeuUserPoolId :: !Text-    , _aeuUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aeuUserPoolId :: !Text+  , _aeuUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminEnableUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'aeuUserPoolId' - The user pool ID for the user pool where you want to enable the user. ----- * 'aeuUsername' - The user name of the user you wish to ebable.+-- * 'aeuUsername' - The user name of the user you wish to enable. adminEnableUser     :: Text -- ^ 'aeuUserPoolId'     -> Text -- ^ 'aeuUsername'     -> AdminEnableUser adminEnableUser pUserPoolId_ pUsername_ =-    AdminEnableUser'-    { _aeuUserPoolId = pUserPoolId_-    , _aeuUsername = _Sensitive # pUsername_-    }+  AdminEnableUser'+  {_aeuUserPoolId = pUserPoolId_, _aeuUsername = _Sensitive # pUsername_} + -- | The user pool ID for the user pool where you want to enable the user. aeuUserPoolId :: Lens' AdminEnableUser Text aeuUserPoolId = lens _aeuUserPoolId (\ s a -> s{_aeuUserPoolId = a}); --- | The user name of the user you wish to ebable.+-- | The user name of the user you wish to enable. aeuUsername :: Lens' AdminEnableUser Text aeuUsername = lens _aeuUsername (\ s a -> s{_aeuUsername = a}) . _Sensitive; @@ -87,9 +89,9 @@               (\ s h x ->                  AdminEnableUserResponse' <$> (pure (fromEnum s))) -instance Hashable AdminEnableUser+instance Hashable AdminEnableUser where -instance NFData AdminEnableUser+instance NFData AdminEnableUser where  instance ToHeaders AdminEnableUser where         toHeaders@@ -120,9 +122,10 @@ -- -- /See:/ 'adminEnableUserResponse' smart constructor. newtype AdminEnableUserResponse = AdminEnableUserResponse'-    { _aeursResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aeursResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminEnableUserResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -132,12 +135,11 @@     :: Int -- ^ 'aeursResponseStatus'     -> AdminEnableUserResponse adminEnableUserResponse pResponseStatus_ =-    AdminEnableUserResponse'-    { _aeursResponseStatus = pResponseStatus_-    }+  AdminEnableUserResponse' {_aeursResponseStatus = pResponseStatus_} + -- | -- | The response status code. aeursResponseStatus :: Lens' AdminEnableUserResponse Int aeursResponseStatus = lens _aeursResponseStatus (\ s a -> s{_aeursResponseStatus = a}); -instance NFData AdminEnableUserResponse+instance NFData AdminEnableUserResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminForgetDevice.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminForgetDevice--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Forgets the device, as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminForgetDevice     (     -- * Creating a Request@@ -36,12 +38,12 @@     , AdminForgetDeviceResponse     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Sends the forgot device request, as an administrator. --@@ -49,11 +51,12 @@ -- -- /See:/ 'adminForgetDevice' smart constructor. data AdminForgetDevice = AdminForgetDevice'-    { _afdUserPoolId :: !Text-    , _afdUsername   :: !(Sensitive Text)-    , _afdDeviceKey  :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _afdUserPoolId :: !Text+  , _afdUsername   :: !(Sensitive Text)+  , _afdDeviceKey  :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminForgetDevice' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -69,12 +72,13 @@     -> Text -- ^ 'afdDeviceKey'     -> AdminForgetDevice adminForgetDevice pUserPoolId_ pUsername_ pDeviceKey_ =-    AdminForgetDevice'-    { _afdUserPoolId = pUserPoolId_-    , _afdUsername = _Sensitive # pUsername_-    , _afdDeviceKey = pDeviceKey_-    }+  AdminForgetDevice'+  { _afdUserPoolId = pUserPoolId_+  , _afdUsername = _Sensitive # pUsername_+  , _afdDeviceKey = pDeviceKey_+  } + -- | The user pool ID. afdUserPoolId :: Lens' AdminForgetDevice Text afdUserPoolId = lens _afdUserPoolId (\ s a -> s{_afdUserPoolId = a});@@ -92,9 +96,9 @@         request = postJSON cognitoIdentityProvider         response = receiveNull AdminForgetDeviceResponse' -instance Hashable AdminForgetDevice+instance Hashable AdminForgetDevice where -instance NFData AdminForgetDevice+instance NFData AdminForgetDevice where  instance ToHeaders AdminForgetDevice where         toHeaders@@ -122,13 +126,15 @@  -- | /See:/ 'adminForgetDeviceResponse' smart constructor. data AdminForgetDeviceResponse =-    AdminForgetDeviceResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  AdminForgetDeviceResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminForgetDeviceResponse' with the minimum fields required to make a request. -- adminForgetDeviceResponse     :: AdminForgetDeviceResponse adminForgetDeviceResponse = AdminForgetDeviceResponse' -instance NFData AdminForgetDeviceResponse++instance NFData AdminForgetDeviceResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminGetDevice.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminGetDevice--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets the device, as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminGetDevice     (     -- * Creating a Request@@ -39,12 +41,12 @@     , agdrsDevice     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to get the device, as an administrator. --@@ -52,11 +54,12 @@ -- -- /See:/ 'adminGetDevice' smart constructor. data AdminGetDevice = AdminGetDevice'-    { _agdDeviceKey  :: !Text-    , _agdUserPoolId :: !Text-    , _agdUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _agdDeviceKey  :: !Text+  , _agdUserPoolId :: !Text+  , _agdUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminGetDevice' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -72,12 +75,13 @@     -> Text -- ^ 'agdUsername'     -> AdminGetDevice adminGetDevice pDeviceKey_ pUserPoolId_ pUsername_ =-    AdminGetDevice'-    { _agdDeviceKey = pDeviceKey_-    , _agdUserPoolId = pUserPoolId_-    , _agdUsername = _Sensitive # pUsername_-    }+  AdminGetDevice'+  { _agdDeviceKey = pDeviceKey_+  , _agdUserPoolId = pUserPoolId_+  , _agdUsername = _Sensitive # pUsername_+  } + -- | The device key. agdDeviceKey :: Lens' AdminGetDevice Text agdDeviceKey = lens _agdDeviceKey (\ s a -> s{_agdDeviceKey = a});@@ -99,9 +103,9 @@                  AdminGetDeviceResponse' <$>                    (pure (fromEnum s)) <*> (x .:> "Device")) -instance Hashable AdminGetDevice+instance Hashable AdminGetDevice where -instance NFData AdminGetDevice+instance NFData AdminGetDevice where  instance ToHeaders AdminGetDevice where         toHeaders@@ -133,10 +137,11 @@ -- -- /See:/ 'adminGetDeviceResponse' smart constructor. data AdminGetDeviceResponse = AdminGetDeviceResponse'-    { _agdrsResponseStatus :: !Int-    , _agdrsDevice         :: !DeviceType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _agdrsResponseStatus :: !Int+  , _agdrsDevice         :: !DeviceType+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminGetDeviceResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -149,11 +154,10 @@     -> DeviceType -- ^ 'agdrsDevice'     -> AdminGetDeviceResponse adminGetDeviceResponse pResponseStatus_ pDevice_ =-    AdminGetDeviceResponse'-    { _agdrsResponseStatus = pResponseStatus_-    , _agdrsDevice = pDevice_-    }+  AdminGetDeviceResponse'+  {_agdrsResponseStatus = pResponseStatus_, _agdrsDevice = pDevice_} + -- | -- | The response status code. agdrsResponseStatus :: Lens' AdminGetDeviceResponse Int agdrsResponseStatus = lens _agdrsResponseStatus (\ s a -> s{_agdrsResponseStatus = a});@@ -162,4 +166,4 @@ agdrsDevice :: Lens' AdminGetDeviceResponse DeviceType agdrsDevice = lens _agdrsDevice (\ s a -> s{_agdrsDevice = a}); -instance NFData AdminGetDeviceResponse+instance NFData AdminGetDeviceResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminGetUser.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminGetUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets the specified user by user name in a user pool as an administrator. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminGetUser     (     -- * Creating a Request@@ -44,12 +46,12 @@     , agursUsername     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to get the specified user as an administrator. --@@ -57,10 +59,11 @@ -- -- /See:/ 'adminGetUser' smart constructor. data AdminGetUser = AdminGetUser'-    { _aguUserPoolId :: !Text-    , _aguUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aguUserPoolId :: !Text+  , _aguUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminGetUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -73,11 +76,10 @@     -> Text -- ^ 'aguUsername'     -> AdminGetUser adminGetUser pUserPoolId_ pUsername_ =-    AdminGetUser'-    { _aguUserPoolId = pUserPoolId_-    , _aguUsername = _Sensitive # pUsername_-    }+  AdminGetUser'+  {_aguUserPoolId = pUserPoolId_, _aguUsername = _Sensitive # pUsername_} + -- | The user pool ID for the user pool where you want to get information about the user. aguUserPoolId :: Lens' AdminGetUser Text aguUserPoolId = lens _aguUserPoolId (\ s a -> s{_aguUserPoolId = a});@@ -101,9 +103,9 @@                      <*> (pure (fromEnum s))                      <*> (x .:> "Username")) -instance Hashable AdminGetUser+instance Hashable AdminGetUser where -instance NFData AdminGetUser+instance NFData AdminGetUser where  instance ToHeaders AdminGetUser where         toHeaders@@ -134,16 +136,17 @@ -- -- /See:/ 'adminGetUserResponse' smart constructor. data AdminGetUserResponse = AdminGetUserResponse'-    { _agursEnabled              :: !(Maybe Bool)-    , _agursUserStatus           :: !(Maybe UserStatusType)-    , _agursUserAttributes       :: !(Maybe [AttributeType])-    , _agursUserCreateDate       :: !(Maybe POSIX)-    , _agursMFAOptions           :: !(Maybe [MFAOptionType])-    , _agursUserLastModifiedDate :: !(Maybe POSIX)-    , _agursResponseStatus       :: !Int-    , _agursUsername             :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _agursEnabled              :: !(Maybe Bool)+  , _agursUserStatus           :: !(Maybe UserStatusType)+  , _agursUserAttributes       :: !(Maybe [AttributeType])+  , _agursUserCreateDate       :: !(Maybe POSIX)+  , _agursMFAOptions           :: !(Maybe [MFAOptionType])+  , _agursUserLastModifiedDate :: !(Maybe POSIX)+  , _agursResponseStatus       :: !Int+  , _agursUsername             :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminGetUserResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -168,17 +171,18 @@     -> Text -- ^ 'agursUsername'     -> AdminGetUserResponse adminGetUserResponse pResponseStatus_ pUsername_ =-    AdminGetUserResponse'-    { _agursEnabled = Nothing-    , _agursUserStatus = Nothing-    , _agursUserAttributes = Nothing-    , _agursUserCreateDate = Nothing-    , _agursMFAOptions = Nothing-    , _agursUserLastModifiedDate = Nothing-    , _agursResponseStatus = pResponseStatus_-    , _agursUsername = _Sensitive # pUsername_-    }+  AdminGetUserResponse'+  { _agursEnabled = Nothing+  , _agursUserStatus = Nothing+  , _agursUserAttributes = Nothing+  , _agursUserCreateDate = Nothing+  , _agursMFAOptions = Nothing+  , _agursUserLastModifiedDate = Nothing+  , _agursResponseStatus = pResponseStatus_+  , _agursUsername = _Sensitive # pUsername_+  } + -- | Indicates that the status is enabled. agursEnabled :: Lens' AdminGetUserResponse (Maybe Bool) agursEnabled = lens _agursEnabled (\ s a -> s{_agursEnabled = a});@@ -211,4 +215,4 @@ agursUsername :: Lens' AdminGetUserResponse Text agursUsername = lens _agursUsername (\ s a -> s{_agursUsername = a}) . _Sensitive; -instance NFData AdminGetUserResponse+instance NFData AdminGetUserResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminInitiateAuth.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminInitiateAuth--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Initiates the authentication flow, as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminInitiateAuth     (     -- * Creating a Request@@ -44,12 +46,12 @@     , aiarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Initiates the authorization request, as an administrator. --@@ -57,45 +59,47 @@ -- -- /See:/ 'adminInitiateAuth' smart constructor. data AdminInitiateAuth = AdminInitiateAuth'-    { _aiaClientMetadata :: !(Maybe (Map Text Text))-    , _aiaAuthParameters :: !(Maybe (Map Text Text))-    , _aiaUserPoolId     :: !Text-    , _aiaClientId       :: !(Sensitive Text)-    , _aiaAuthFlow       :: !AuthFlowType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aiaClientMetadata :: !(Maybe (Map Text Text))+  , _aiaAuthParameters :: !(Maybe (Map Text Text))+  , _aiaUserPoolId     :: !Text+  , _aiaClientId       :: !(Sensitive Text)+  , _aiaAuthFlow       :: !AuthFlowType+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminInitiateAuth' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'aiaClientMetadata' - The client app metadata.+-- * 'aiaClientMetadata' - This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication. ----- * 'aiaAuthParameters' - The authentication parameters.+-- * 'aiaAuthParameters' - The authentication parameters. These are inputs corresponding to the @AuthFlow@ that you are invoking. The required values depend on the value of @AuthFlow@ :     * For @USER_SRP_AUTH@ : @USERNAME@ (required), @SRP_A@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @DEVICE_KEY@      * For @REFRESH_TOKEN_AUTH/REFRESH_TOKEN@ : @USERNAME@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @REFRESH_TOKEN@ (required), @DEVICE_KEY@      * For @ADMIN_NO_SRP_AUTH@ : @USERNAME@ (required), @SECRET_HASH@ (if app client is configured with client secret), @PASSWORD@ (required), @DEVICE_KEY@      * For @CUSTOM_AUTH@ : @USERNAME@ (required), @SECRET_HASH@ (if app client is configured with client secret), @DEVICE_KEY@ -- -- * 'aiaUserPoolId' - The ID of the Amazon Cognito user pool. ----- * 'aiaClientId' - The client app ID.+-- * 'aiaClientId' - The app client ID. ----- * 'aiaAuthFlow' - The authentication flow.+-- * 'aiaAuthFlow' - The authentication flow for this call to execute. The API action will depend on this value. For example:     * @REFRESH_TOKEN_AUTH@ will take in a valid refresh token and return new tokens.     * @USER_SRP_AUTH@ will take in @USERNAME@ and @SRP_A@ and return the SRP variables to be used for next challenge execution. Valid values include:     * @USER_SRP_AUTH@ : Authentication flow for the Secure Remote Password (SRP) protocol.     * @REFRESH_TOKEN_AUTH@ /@REFRESH_TOKEN@ : Authentication flow for refreshing the access token and ID token by supplying a valid refresh token.     * @CUSTOM_AUTH@ : Custom authentication flow.     * @ADMIN_NO_SRP_AUTH@ : Non-SRP authentication flow; you can pass in the USERNAME and PASSWORD directly if the flow is enabled for calling the app client. adminInitiateAuth     :: Text -- ^ 'aiaUserPoolId'     -> Text -- ^ 'aiaClientId'     -> AuthFlowType -- ^ 'aiaAuthFlow'     -> AdminInitiateAuth adminInitiateAuth pUserPoolId_ pClientId_ pAuthFlow_ =-    AdminInitiateAuth'-    { _aiaClientMetadata = Nothing-    , _aiaAuthParameters = Nothing-    , _aiaUserPoolId = pUserPoolId_-    , _aiaClientId = _Sensitive # pClientId_-    , _aiaAuthFlow = pAuthFlow_-    }+  AdminInitiateAuth'+  { _aiaClientMetadata = Nothing+  , _aiaAuthParameters = Nothing+  , _aiaUserPoolId = pUserPoolId_+  , _aiaClientId = _Sensitive # pClientId_+  , _aiaAuthFlow = pAuthFlow_+  } --- | The client app metadata.++-- | This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication. aiaClientMetadata :: Lens' AdminInitiateAuth (HashMap Text Text) aiaClientMetadata = lens _aiaClientMetadata (\ s a -> s{_aiaClientMetadata = a}) . _Default . _Map; --- | The authentication parameters.+-- | The authentication parameters. These are inputs corresponding to the @AuthFlow@ that you are invoking. The required values depend on the value of @AuthFlow@ :     * For @USER_SRP_AUTH@ : @USERNAME@ (required), @SRP_A@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @DEVICE_KEY@      * For @REFRESH_TOKEN_AUTH/REFRESH_TOKEN@ : @USERNAME@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @REFRESH_TOKEN@ (required), @DEVICE_KEY@      * For @ADMIN_NO_SRP_AUTH@ : @USERNAME@ (required), @SECRET_HASH@ (if app client is configured with client secret), @PASSWORD@ (required), @DEVICE_KEY@      * For @CUSTOM_AUTH@ : @USERNAME@ (required), @SECRET_HASH@ (if app client is configured with client secret), @DEVICE_KEY@ aiaAuthParameters :: Lens' AdminInitiateAuth (HashMap Text Text) aiaAuthParameters = lens _aiaAuthParameters (\ s a -> s{_aiaAuthParameters = a}) . _Default . _Map; @@ -103,11 +107,11 @@ aiaUserPoolId :: Lens' AdminInitiateAuth Text aiaUserPoolId = lens _aiaUserPoolId (\ s a -> s{_aiaUserPoolId = a}); --- | The client app ID.+-- | The app client ID. aiaClientId :: Lens' AdminInitiateAuth Text aiaClientId = lens _aiaClientId (\ s a -> s{_aiaClientId = a}) . _Sensitive; --- | The authentication flow.+-- | The authentication flow for this call to execute. The API action will depend on this value. For example:     * @REFRESH_TOKEN_AUTH@ will take in a valid refresh token and return new tokens.     * @USER_SRP_AUTH@ will take in @USERNAME@ and @SRP_A@ and return the SRP variables to be used for next challenge execution. Valid values include:     * @USER_SRP_AUTH@ : Authentication flow for the Secure Remote Password (SRP) protocol.     * @REFRESH_TOKEN_AUTH@ /@REFRESH_TOKEN@ : Authentication flow for refreshing the access token and ID token by supplying a valid refresh token.     * @CUSTOM_AUTH@ : Custom authentication flow.     * @ADMIN_NO_SRP_AUTH@ : Non-SRP authentication flow; you can pass in the USERNAME and PASSWORD directly if the flow is enabled for calling the app client. aiaAuthFlow :: Lens' AdminInitiateAuth AuthFlowType aiaAuthFlow = lens _aiaAuthFlow (\ s a -> s{_aiaAuthFlow = a}); @@ -124,9 +128,9 @@                      <*> (x .?> "Session")                      <*> (pure (fromEnum s))) -instance Hashable AdminInitiateAuth+instance Hashable AdminInitiateAuth where -instance NFData AdminInitiateAuth+instance NFData AdminInitiateAuth where  instance ToHeaders AdminInitiateAuth where         toHeaders@@ -160,51 +164,53 @@ -- -- /See:/ 'adminInitiateAuthResponse' smart constructor. data AdminInitiateAuthResponse = AdminInitiateAuthResponse'-    { _aiarsChallengeName        :: !(Maybe ChallengeNameType)-    , _aiarsChallengeParameters  :: !(Maybe (Map Text Text))-    , _aiarsAuthenticationResult :: !(Maybe AuthenticationResultType)-    , _aiarsSession              :: !(Maybe Text)-    , _aiarsResponseStatus       :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aiarsChallengeName        :: !(Maybe ChallengeNameType)+  , _aiarsChallengeParameters  :: !(Maybe (Map Text Text))+  , _aiarsAuthenticationResult :: !(Maybe AuthenticationResultType)+  , _aiarsSession              :: !(Maybe Text)+  , _aiarsResponseStatus       :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminInitiateAuthResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'aiarsChallengeName' - The name of the challenge.+-- * 'aiarsChallengeName' - The name of the challenge which you are responding to with this call. This is returned to you in the @AdminInitiateAuth@ response if you need to pass another challenge.     * @SMS_MFA@ : Next challenge is to supply an @SMS_MFA_CODE@ , delivered via SMS.     * @PASSWORD_VERIFIER@ : Next challenge is to supply @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , and @TIMESTAMP@ after the client-side SRP calculations.     * @CUSTOM_CHALLENGE@ : This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.     * @DEVICE_SRP_AUTH@ : If device tracking was enabled on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.     * @DEVICE_PASSWORD_VERIFIER@ : Similar to @PASSWORD_VERIFIER@ , but for devices only.     * @ADMIN_NO_SRP_AUTH@ : This is returned if you need to authenticate with @USERNAME@ and @PASSWORD@ directly. An app client must be enabled to use this flow.     * @NEW_PASSWORD_REQUIRED@ : For users which are required to change their passwords after successful first login. This challenge should be passed with @NEW_PASSWORD@ and any other required attributes. ----- * 'aiarsChallengeParameters' - The challenge parameters.+-- * 'aiarsChallengeParameters' - The challenge parameters. These are returned to you in the @AdminInitiateAuth@ response if you need to pass another challenge. The responses in this parameter should be used to compute inputs to the next call (@AdminRespondToAuthChallenge@ ). All challenges require @USERNAME@ and @SECRET_HASH@ (if applicable). The value of the @USER_IF_FOR_SRP@ attribute will be the user's actual username, not an alias (such as email address or phone number), even if you specified an alias in your call to @AdminInitiateAuth@ . This is because, in the @AdminRespondToAuthChallenge@ API @ChallengeResponses@ , the @USERNAME@ attribute cannot be an alias. ----- * 'aiarsAuthenticationResult' - The result of the authentication response.+-- * 'aiarsAuthenticationResult' - The result of the authentication response. This is only returned if the caller does not need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, @ChallengeName@ , @ChallengeParameters@ , and @Session@ are returned. ----- * 'aiarsSession' - The session.+-- * 'aiarsSession' - The session which should be passed both ways in challenge-response calls to the service. If @AdminInitiateAuth@ or @AdminRespondToAuthChallenge@ API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @AdminRespondToAuthChallenge@ API call. -- -- * 'aiarsResponseStatus' - -- | The response status code. adminInitiateAuthResponse     :: Int -- ^ 'aiarsResponseStatus'     -> AdminInitiateAuthResponse adminInitiateAuthResponse pResponseStatus_ =-    AdminInitiateAuthResponse'-    { _aiarsChallengeName = Nothing-    , _aiarsChallengeParameters = Nothing-    , _aiarsAuthenticationResult = Nothing-    , _aiarsSession = Nothing-    , _aiarsResponseStatus = pResponseStatus_-    }+  AdminInitiateAuthResponse'+  { _aiarsChallengeName = Nothing+  , _aiarsChallengeParameters = Nothing+  , _aiarsAuthenticationResult = Nothing+  , _aiarsSession = Nothing+  , _aiarsResponseStatus = pResponseStatus_+  } --- | The name of the challenge.++-- | The name of the challenge which you are responding to with this call. This is returned to you in the @AdminInitiateAuth@ response if you need to pass another challenge.     * @SMS_MFA@ : Next challenge is to supply an @SMS_MFA_CODE@ , delivered via SMS.     * @PASSWORD_VERIFIER@ : Next challenge is to supply @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , and @TIMESTAMP@ after the client-side SRP calculations.     * @CUSTOM_CHALLENGE@ : This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.     * @DEVICE_SRP_AUTH@ : If device tracking was enabled on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.     * @DEVICE_PASSWORD_VERIFIER@ : Similar to @PASSWORD_VERIFIER@ , but for devices only.     * @ADMIN_NO_SRP_AUTH@ : This is returned if you need to authenticate with @USERNAME@ and @PASSWORD@ directly. An app client must be enabled to use this flow.     * @NEW_PASSWORD_REQUIRED@ : For users which are required to change their passwords after successful first login. This challenge should be passed with @NEW_PASSWORD@ and any other required attributes. aiarsChallengeName :: Lens' AdminInitiateAuthResponse (Maybe ChallengeNameType) aiarsChallengeName = lens _aiarsChallengeName (\ s a -> s{_aiarsChallengeName = a}); --- | The challenge parameters.+-- | The challenge parameters. These are returned to you in the @AdminInitiateAuth@ response if you need to pass another challenge. The responses in this parameter should be used to compute inputs to the next call (@AdminRespondToAuthChallenge@ ). All challenges require @USERNAME@ and @SECRET_HASH@ (if applicable). The value of the @USER_IF_FOR_SRP@ attribute will be the user's actual username, not an alias (such as email address or phone number), even if you specified an alias in your call to @AdminInitiateAuth@ . This is because, in the @AdminRespondToAuthChallenge@ API @ChallengeResponses@ , the @USERNAME@ attribute cannot be an alias. aiarsChallengeParameters :: Lens' AdminInitiateAuthResponse (HashMap Text Text) aiarsChallengeParameters = lens _aiarsChallengeParameters (\ s a -> s{_aiarsChallengeParameters = a}) . _Default . _Map; --- | The result of the authentication response.+-- | The result of the authentication response. This is only returned if the caller does not need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, @ChallengeName@ , @ChallengeParameters@ , and @Session@ are returned. aiarsAuthenticationResult :: Lens' AdminInitiateAuthResponse (Maybe AuthenticationResultType) aiarsAuthenticationResult = lens _aiarsAuthenticationResult (\ s a -> s{_aiarsAuthenticationResult = a}); --- | The session.+-- | The session which should be passed both ways in challenge-response calls to the service. If @AdminInitiateAuth@ or @AdminRespondToAuthChallenge@ API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @AdminRespondToAuthChallenge@ API call. aiarsSession :: Lens' AdminInitiateAuthResponse (Maybe Text) aiarsSession = lens _aiarsSession (\ s a -> s{_aiarsSession = a}); @@ -212,4 +218,4 @@ aiarsResponseStatus :: Lens' AdminInitiateAuthResponse Int aiarsResponseStatus = lens _aiarsResponseStatus (\ s a -> s{_aiarsResponseStatus = a}); -instance NFData AdminInitiateAuthResponse+instance NFData AdminInitiateAuthResponse where
+ gen/Network/AWS/CognitoIdentityProvider/AdminLinkProviderForUser.hs view
@@ -0,0 +1,159 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Links an existing user account in a user pool (@DestinationUser@ ) to an identity from an external identity provider (@SourceUser@ ) based on a specified attribute name and value from the external identity provider. This allows you to create a link from the existing user account to an external federated user identity that has not yet been used to sign in, so that the federated user identity can be used to sign in as the existing user account.+--+--+-- For example, if there is an existing user with a username and password, this API links that user to a federated user identity, so that when the federated user identity is used, the user signs in as the existing user account.+--+-- /Important:/ Because this API allows a user with an external federated identity to sign in as an existing user in the user pool, it is critical that it only be used with external identity providers and provider attributes that have been trusted by the application owner.+--+-- See also <API_AdminDisableProviderForUser.html AdminDisableProviderForUser> .+--+-- This action is enabled only for admin access and requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.AdminLinkProviderForUser+    (+    -- * Creating a Request+      adminLinkProviderForUser+    , AdminLinkProviderForUser+    -- * Request Lenses+    , alpfuUserPoolId+    , alpfuDestinationUser+    , alpfuSourceUser++    -- * Destructuring the Response+    , adminLinkProviderForUserResponse+    , AdminLinkProviderForUserResponse+    -- * Response Lenses+    , alpfursResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'adminLinkProviderForUser' smart constructor.+data AdminLinkProviderForUser = AdminLinkProviderForUser'+  { _alpfuUserPoolId      :: !Text+  , _alpfuDestinationUser :: !ProviderUserIdentifierType+  , _alpfuSourceUser      :: !ProviderUserIdentifierType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminLinkProviderForUser' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'alpfuUserPoolId' - The user pool ID for the user pool.+--+-- * 'alpfuDestinationUser' - The existing user in the user pool to be linked to the external identity provider user account. Can be a native (Username + Password) Cognito User Pools user or a federated user (for example, a SAML or Facebook user). If the user doesn't exist, an exception is thrown. This is the user that is returned when the new user (with the linked identity provider attribute) signs in. The @ProviderAttributeValue@ for the @DestinationUser@ must match the username for the user in the user pool. The @ProviderAttributeName@ will always be ignored.+--+-- * 'alpfuSourceUser' - An external identity provider account for a user who does not currently exist yet in the user pool. This user must be a federated user (for example, a SAML or Facebook user), not another native user. If the @SourceUser@ is a federated social identity provider user (Facebook, Google, or Login with Amazon), you must set the @ProviderAttributeName@ to @Cognito_Subject@ . For social identity providers, the @ProviderName@ will be @Facebook@ , @Google@ , or @LoginWithAmazon@ , and Cognito will automatically parse the Facebook, Google, and Login with Amazon tokens for @id@ , @sub@ , and @user_id@ , respectively. The @ProviderAttributeValue@ for the user must be the same value as the @id@ , @sub@ , or @user_id@ value found in the social identity provider token. For SAML, the @ProviderAttributeName@ can be any value that matches a claim in the SAML assertion. If you wish to link SAML users based on the subject of the SAML assertion, you should map the subject to a claim through the SAML identity provider and submit that claim name as the @ProviderAttributeName@ . If you set @ProviderAttributeName@ to @Cognito_Subject@ , Cognito will automatically parse the default unique identifier found in the subject from the SAML token.+adminLinkProviderForUser+    :: Text -- ^ 'alpfuUserPoolId'+    -> ProviderUserIdentifierType -- ^ 'alpfuDestinationUser'+    -> ProviderUserIdentifierType -- ^ 'alpfuSourceUser'+    -> AdminLinkProviderForUser+adminLinkProviderForUser pUserPoolId_ pDestinationUser_ pSourceUser_ =+  AdminLinkProviderForUser'+  { _alpfuUserPoolId = pUserPoolId_+  , _alpfuDestinationUser = pDestinationUser_+  , _alpfuSourceUser = pSourceUser_+  }+++-- | The user pool ID for the user pool.+alpfuUserPoolId :: Lens' AdminLinkProviderForUser Text+alpfuUserPoolId = lens _alpfuUserPoolId (\ s a -> s{_alpfuUserPoolId = a});++-- | The existing user in the user pool to be linked to the external identity provider user account. Can be a native (Username + Password) Cognito User Pools user or a federated user (for example, a SAML or Facebook user). If the user doesn't exist, an exception is thrown. This is the user that is returned when the new user (with the linked identity provider attribute) signs in. The @ProviderAttributeValue@ for the @DestinationUser@ must match the username for the user in the user pool. The @ProviderAttributeName@ will always be ignored.+alpfuDestinationUser :: Lens' AdminLinkProviderForUser ProviderUserIdentifierType+alpfuDestinationUser = lens _alpfuDestinationUser (\ s a -> s{_alpfuDestinationUser = a});++-- | An external identity provider account for a user who does not currently exist yet in the user pool. This user must be a federated user (for example, a SAML or Facebook user), not another native user. If the @SourceUser@ is a federated social identity provider user (Facebook, Google, or Login with Amazon), you must set the @ProviderAttributeName@ to @Cognito_Subject@ . For social identity providers, the @ProviderName@ will be @Facebook@ , @Google@ , or @LoginWithAmazon@ , and Cognito will automatically parse the Facebook, Google, and Login with Amazon tokens for @id@ , @sub@ , and @user_id@ , respectively. The @ProviderAttributeValue@ for the user must be the same value as the @id@ , @sub@ , or @user_id@ value found in the social identity provider token. For SAML, the @ProviderAttributeName@ can be any value that matches a claim in the SAML assertion. If you wish to link SAML users based on the subject of the SAML assertion, you should map the subject to a claim through the SAML identity provider and submit that claim name as the @ProviderAttributeName@ . If you set @ProviderAttributeName@ to @Cognito_Subject@ , Cognito will automatically parse the default unique identifier found in the subject from the SAML token.+alpfuSourceUser :: Lens' AdminLinkProviderForUser ProviderUserIdentifierType+alpfuSourceUser = lens _alpfuSourceUser (\ s a -> s{_alpfuSourceUser = a});++instance AWSRequest AdminLinkProviderForUser where+        type Rs AdminLinkProviderForUser =+             AdminLinkProviderForUserResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveEmpty+              (\ s h x ->+                 AdminLinkProviderForUserResponse' <$>+                   (pure (fromEnum s)))++instance Hashable AdminLinkProviderForUser where++instance NFData AdminLinkProviderForUser where++instance ToHeaders AdminLinkProviderForUser where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.AdminLinkProviderForUser"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AdminLinkProviderForUser where+        toJSON AdminLinkProviderForUser'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _alpfuUserPoolId),+                  Just ("DestinationUser" .= _alpfuDestinationUser),+                  Just ("SourceUser" .= _alpfuSourceUser)])++instance ToPath AdminLinkProviderForUser where+        toPath = const "/"++instance ToQuery AdminLinkProviderForUser where+        toQuery = const mempty++-- | /See:/ 'adminLinkProviderForUserResponse' smart constructor.+newtype AdminLinkProviderForUserResponse = AdminLinkProviderForUserResponse'+  { _alpfursResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminLinkProviderForUserResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'alpfursResponseStatus' - -- | The response status code.+adminLinkProviderForUserResponse+    :: Int -- ^ 'alpfursResponseStatus'+    -> AdminLinkProviderForUserResponse+adminLinkProviderForUserResponse pResponseStatus_ =+  AdminLinkProviderForUserResponse' {_alpfursResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+alpfursResponseStatus :: Lens' AdminLinkProviderForUserResponse Int+alpfursResponseStatus = lens _alpfursResponseStatus (\ s a -> s{_alpfursResponseStatus = a});++instance NFData AdminLinkProviderForUserResponse+         where
gen/Network/AWS/CognitoIdentityProvider/AdminListDevices.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminListDevices--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Lists devices, as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminListDevices     (     -- * Creating a Request@@ -41,12 +43,12 @@     , aldrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to list devices, as an administrator. --@@ -54,12 +56,13 @@ -- -- /See:/ 'adminListDevices' smart constructor. data AdminListDevices = AdminListDevices'-    { _aldPaginationToken :: !(Maybe Text)-    , _aldLimit           :: !(Maybe Nat)-    , _aldUserPoolId      :: !Text-    , _aldUsername        :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aldPaginationToken :: !(Maybe Text)+  , _aldLimit           :: !(Maybe Nat)+  , _aldUserPoolId      :: !Text+  , _aldUsername        :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminListDevices' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -76,13 +79,14 @@     -> Text -- ^ 'aldUsername'     -> AdminListDevices adminListDevices pUserPoolId_ pUsername_ =-    AdminListDevices'-    { _aldPaginationToken = Nothing-    , _aldLimit = Nothing-    , _aldUserPoolId = pUserPoolId_-    , _aldUsername = _Sensitive # pUsername_-    }+  AdminListDevices'+  { _aldPaginationToken = Nothing+  , _aldLimit = Nothing+  , _aldUserPoolId = pUserPoolId_+  , _aldUsername = _Sensitive # pUsername_+  } + -- | The pagination token. aldPaginationToken :: Lens' AdminListDevices (Maybe Text) aldPaginationToken = lens _aldPaginationToken (\ s a -> s{_aldPaginationToken = a});@@ -110,9 +114,9 @@                      (x .?> "Devices" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable AdminListDevices+instance Hashable AdminListDevices where -instance NFData AdminListDevices+instance NFData AdminListDevices where  instance ToHeaders AdminListDevices where         toHeaders@@ -145,11 +149,12 @@ -- -- /See:/ 'adminListDevicesResponse' smart constructor. data AdminListDevicesResponse = AdminListDevicesResponse'-    { _aldrsPaginationToken :: !(Maybe Text)-    , _aldrsDevices         :: !(Maybe [DeviceType])-    , _aldrsResponseStatus  :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aldrsPaginationToken :: !(Maybe Text)+  , _aldrsDevices         :: !(Maybe [DeviceType])+  , _aldrsResponseStatus  :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminListDevicesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -163,12 +168,13 @@     :: Int -- ^ 'aldrsResponseStatus'     -> AdminListDevicesResponse adminListDevicesResponse pResponseStatus_ =-    AdminListDevicesResponse'-    { _aldrsPaginationToken = Nothing-    , _aldrsDevices = Nothing-    , _aldrsResponseStatus = pResponseStatus_-    }+  AdminListDevicesResponse'+  { _aldrsPaginationToken = Nothing+  , _aldrsDevices = Nothing+  , _aldrsResponseStatus = pResponseStatus_+  } + -- | The pagination token. aldrsPaginationToken :: Lens' AdminListDevicesResponse (Maybe Text) aldrsPaginationToken = lens _aldrsPaginationToken (\ s a -> s{_aldrsPaginationToken = a});@@ -181,4 +187,4 @@ aldrsResponseStatus :: Lens' AdminListDevicesResponse Int aldrsResponseStatus = lens _aldrsResponseStatus (\ s a -> s{_aldrsResponseStatus = a}); -instance NFData AdminListDevicesResponse+instance NFData AdminListDevicesResponse where
+ gen/Network/AWS/CognitoIdentityProvider/AdminListGroupsForUser.hs view
@@ -0,0 +1,182 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the groups that the user belongs to.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser+    (+    -- * Creating a Request+      adminListGroupsForUser+    , AdminListGroupsForUser+    -- * Request Lenses+    , algfuNextToken+    , algfuLimit+    , algfuUsername+    , algfuUserPoolId++    -- * Destructuring the Response+    , adminListGroupsForUserResponse+    , AdminListGroupsForUserResponse+    -- * Response Lenses+    , algfursGroups+    , algfursNextToken+    , algfursResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'adminListGroupsForUser' smart constructor.+data AdminListGroupsForUser = AdminListGroupsForUser'+  { _algfuNextToken  :: !(Maybe Text)+  , _algfuLimit      :: !(Maybe Nat)+  , _algfuUsername   :: !(Sensitive Text)+  , _algfuUserPoolId :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminListGroupsForUser' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'algfuNextToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+--+-- * 'algfuLimit' - The limit of the request to list groups.+--+-- * 'algfuUsername' - The username for the user.+--+-- * 'algfuUserPoolId' - The user pool ID for the user pool.+adminListGroupsForUser+    :: Text -- ^ 'algfuUsername'+    -> Text -- ^ 'algfuUserPoolId'+    -> AdminListGroupsForUser+adminListGroupsForUser pUsername_ pUserPoolId_ =+  AdminListGroupsForUser'+  { _algfuNextToken = Nothing+  , _algfuLimit = Nothing+  , _algfuUsername = _Sensitive # pUsername_+  , _algfuUserPoolId = pUserPoolId_+  }+++-- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+algfuNextToken :: Lens' AdminListGroupsForUser (Maybe Text)+algfuNextToken = lens _algfuNextToken (\ s a -> s{_algfuNextToken = a});++-- | The limit of the request to list groups.+algfuLimit :: Lens' AdminListGroupsForUser (Maybe Natural)+algfuLimit = lens _algfuLimit (\ s a -> s{_algfuLimit = a}) . mapping _Nat;++-- | The username for the user.+algfuUsername :: Lens' AdminListGroupsForUser Text+algfuUsername = lens _algfuUsername (\ s a -> s{_algfuUsername = a}) . _Sensitive;++-- | The user pool ID for the user pool.+algfuUserPoolId :: Lens' AdminListGroupsForUser Text+algfuUserPoolId = lens _algfuUserPoolId (\ s a -> s{_algfuUserPoolId = a});++instance AWSRequest AdminListGroupsForUser where+        type Rs AdminListGroupsForUser =+             AdminListGroupsForUserResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 AdminListGroupsForUserResponse' <$>+                   (x .?> "Groups" .!@ mempty) <*> (x .?> "NextToken")+                     <*> (pure (fromEnum s)))++instance Hashable AdminListGroupsForUser where++instance NFData AdminListGroupsForUser where++instance ToHeaders AdminListGroupsForUser where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.AdminListGroupsForUser"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AdminListGroupsForUser where+        toJSON AdminListGroupsForUser'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _algfuNextToken,+                  ("Limit" .=) <$> _algfuLimit,+                  Just ("Username" .= _algfuUsername),+                  Just ("UserPoolId" .= _algfuUserPoolId)])++instance ToPath AdminListGroupsForUser where+        toPath = const "/"++instance ToQuery AdminListGroupsForUser where+        toQuery = const mempty++-- | /See:/ 'adminListGroupsForUserResponse' smart constructor.+data AdminListGroupsForUserResponse = AdminListGroupsForUserResponse'+  { _algfursGroups         :: !(Maybe [GroupType])+  , _algfursNextToken      :: !(Maybe Text)+  , _algfursResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminListGroupsForUserResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'algfursGroups' - The groups that the user belongs to.+--+-- * 'algfursNextToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+--+-- * 'algfursResponseStatus' - -- | The response status code.+adminListGroupsForUserResponse+    :: Int -- ^ 'algfursResponseStatus'+    -> AdminListGroupsForUserResponse+adminListGroupsForUserResponse pResponseStatus_ =+  AdminListGroupsForUserResponse'+  { _algfursGroups = Nothing+  , _algfursNextToken = Nothing+  , _algfursResponseStatus = pResponseStatus_+  }+++-- | The groups that the user belongs to.+algfursGroups :: Lens' AdminListGroupsForUserResponse [GroupType]+algfursGroups = lens _algfursGroups (\ s a -> s{_algfursGroups = a}) . _Default . _Coerce;++-- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+algfursNextToken :: Lens' AdminListGroupsForUserResponse (Maybe Text)+algfursNextToken = lens _algfursNextToken (\ s a -> s{_algfursNextToken = a});++-- | -- | The response status code.+algfursResponseStatus :: Lens' AdminListGroupsForUserResponse Int+algfursResponseStatus = lens _algfursResponseStatus (\ s a -> s{_algfursResponseStatus = a});++instance NFData AdminListGroupsForUserResponse where
+ gen/Network/AWS/CognitoIdentityProvider/AdminRemoveUserFromGroup.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes the specified user from the specified group.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.AdminRemoveUserFromGroup+    (+    -- * Creating a Request+      adminRemoveUserFromGroup+    , AdminRemoveUserFromGroup+    -- * Request Lenses+    , arufgUserPoolId+    , arufgUsername+    , arufgGroupName++    -- * Destructuring the Response+    , adminRemoveUserFromGroupResponse+    , AdminRemoveUserFromGroupResponse+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'adminRemoveUserFromGroup' smart constructor.+data AdminRemoveUserFromGroup = AdminRemoveUserFromGroup'+  { _arufgUserPoolId :: !Text+  , _arufgUsername   :: !(Sensitive Text)+  , _arufgGroupName  :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminRemoveUserFromGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'arufgUserPoolId' - The user pool ID for the user pool.+--+-- * 'arufgUsername' - The username for the user.+--+-- * 'arufgGroupName' - The group name.+adminRemoveUserFromGroup+    :: Text -- ^ 'arufgUserPoolId'+    -> Text -- ^ 'arufgUsername'+    -> Text -- ^ 'arufgGroupName'+    -> AdminRemoveUserFromGroup+adminRemoveUserFromGroup pUserPoolId_ pUsername_ pGroupName_ =+  AdminRemoveUserFromGroup'+  { _arufgUserPoolId = pUserPoolId_+  , _arufgUsername = _Sensitive # pUsername_+  , _arufgGroupName = pGroupName_+  }+++-- | The user pool ID for the user pool.+arufgUserPoolId :: Lens' AdminRemoveUserFromGroup Text+arufgUserPoolId = lens _arufgUserPoolId (\ s a -> s{_arufgUserPoolId = a});++-- | The username for the user.+arufgUsername :: Lens' AdminRemoveUserFromGroup Text+arufgUsername = lens _arufgUsername (\ s a -> s{_arufgUsername = a}) . _Sensitive;++-- | The group name.+arufgGroupName :: Lens' AdminRemoveUserFromGroup Text+arufgGroupName = lens _arufgGroupName (\ s a -> s{_arufgGroupName = a});++instance AWSRequest AdminRemoveUserFromGroup where+        type Rs AdminRemoveUserFromGroup =+             AdminRemoveUserFromGroupResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveNull AdminRemoveUserFromGroupResponse'++instance Hashable AdminRemoveUserFromGroup where++instance NFData AdminRemoveUserFromGroup where++instance ToHeaders AdminRemoveUserFromGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.AdminRemoveUserFromGroup"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AdminRemoveUserFromGroup where+        toJSON AdminRemoveUserFromGroup'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _arufgUserPoolId),+                  Just ("Username" .= _arufgUsername),+                  Just ("GroupName" .= _arufgGroupName)])++instance ToPath AdminRemoveUserFromGroup where+        toPath = const "/"++instance ToQuery AdminRemoveUserFromGroup where+        toQuery = const mempty++-- | /See:/ 'adminRemoveUserFromGroupResponse' smart constructor.+data AdminRemoveUserFromGroupResponse =+  AdminRemoveUserFromGroupResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminRemoveUserFromGroupResponse' with the minimum fields required to make a request.+--+adminRemoveUserFromGroupResponse+    :: AdminRemoveUserFromGroupResponse+adminRemoveUserFromGroupResponse = AdminRemoveUserFromGroupResponse'+++instance NFData AdminRemoveUserFromGroupResponse+         where
gen/Network/AWS/CognitoIdentityProvider/AdminResetUserPassword.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminResetUserPassword--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -23,6 +23,8 @@ -- -- When a developer calls this API, the current password is invalidated, so it must be changed. If a user tries to sign in after the API is called, the app will get a PasswordResetRequiredException exception back and should direct the user down the flow to reset the password, which is the same as the forgot password flow. In addition, if the user pool has phone verification selected and a verified phone number exists for the user, or if email verification is selected and a verified email exists for the user, calling this API will also result in sending a message to the end user with the code to change their password. --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminResetUserPassword     (     -- * Creating a Request@@ -39,12 +41,12 @@     , aruprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to reset a user's password as an administrator. --@@ -52,10 +54,11 @@ -- -- /See:/ 'adminResetUserPassword' smart constructor. data AdminResetUserPassword = AdminResetUserPassword'-    { _arupUserPoolId :: !Text-    , _arupUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _arupUserPoolId :: !Text+  , _arupUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminResetUserPassword' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -68,11 +71,10 @@     -> Text -- ^ 'arupUsername'     -> AdminResetUserPassword adminResetUserPassword pUserPoolId_ pUsername_ =-    AdminResetUserPassword'-    { _arupUserPoolId = pUserPoolId_-    , _arupUsername = _Sensitive # pUsername_-    }+  AdminResetUserPassword'+  {_arupUserPoolId = pUserPoolId_, _arupUsername = _Sensitive # pUsername_} + -- | The user pool ID for the user pool where you want to reset the user's password. arupUserPoolId :: Lens' AdminResetUserPassword Text arupUserPoolId = lens _arupUserPoolId (\ s a -> s{_arupUserPoolId = a});@@ -91,9 +93,9 @@                  AdminResetUserPasswordResponse' <$>                    (pure (fromEnum s))) -instance Hashable AdminResetUserPassword+instance Hashable AdminResetUserPassword where -instance NFData AdminResetUserPassword+instance NFData AdminResetUserPassword where  instance ToHeaders AdminResetUserPassword where         toHeaders@@ -124,9 +126,10 @@ -- -- /See:/ 'adminResetUserPasswordResponse' smart constructor. newtype AdminResetUserPasswordResponse = AdminResetUserPasswordResponse'-    { _aruprsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _aruprsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminResetUserPasswordResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -136,12 +139,11 @@     :: Int -- ^ 'aruprsResponseStatus'     -> AdminResetUserPasswordResponse adminResetUserPasswordResponse pResponseStatus_ =-    AdminResetUserPasswordResponse'-    { _aruprsResponseStatus = pResponseStatus_-    }+  AdminResetUserPasswordResponse' {_aruprsResponseStatus = pResponseStatus_} + -- | -- | The response status code. aruprsResponseStatus :: Lens' AdminResetUserPasswordResponse Int aruprsResponseStatus = lens _aruprsResponseStatus (\ s a -> s{_aruprsResponseStatus = a}); -instance NFData AdminResetUserPasswordResponse+instance NFData AdminResetUserPasswordResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminRespondToAuthChallenge.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Responds to an authentication challenge, as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminRespondToAuthChallenge     (     -- * Creating a Request@@ -44,12 +46,12 @@     , artacrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The request to respond to the authentication challenge, as an administrator. --@@ -57,45 +59,47 @@ -- -- /See:/ 'adminRespondToAuthChallenge' smart constructor. data AdminRespondToAuthChallenge = AdminRespondToAuthChallenge'-    { _artacChallengeResponses :: !(Maybe (Map Text Text))-    , _artacSession            :: !(Maybe Text)-    , _artacUserPoolId         :: !Text-    , _artacClientId           :: !(Sensitive Text)-    , _artacChallengeName      :: !ChallengeNameType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _artacChallengeResponses :: !(Maybe (Map Text Text))+  , _artacSession            :: !(Maybe Text)+  , _artacUserPoolId         :: !Text+  , _artacClientId           :: !(Sensitive Text)+  , _artacChallengeName      :: !ChallengeNameType+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminRespondToAuthChallenge' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'artacChallengeResponses' - The challenge response.+-- * 'artacChallengeResponses' - The challenge responses. These are inputs corresponding to the value of @ChallengeName@ , for example:     * @SMS_MFA@ : @SMS_MFA_CODE@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @PASSWORD_VERIFIER@ : @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , @TIMESTAMP@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @ADMIN_NO_SRP_AUTH@ : @PASSWORD@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).      * @NEW_PASSWORD_REQUIRED@ : @NEW_PASSWORD@ , any other required attributes, @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).  The value of the @USERNAME@ attribute must be the user's actual username, not an alias (such as email address or phone number). To make this easier, the @AdminInitiateAuth@ response includes the actual username value in the @USERNAMEUSER_ID_FOR_SRP@ attribute, even if you specified an alias in your call to @AdminInitiateAuth@ . ----- * 'artacSession' - The session.+-- * 'artacSession' - The session which should be passed both ways in challenge-response calls to the service. If @InitiateAuth@ or @RespondToAuthChallenge@ API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. -- -- * 'artacUserPoolId' - The ID of the Amazon Cognito user pool. ----- * 'artacClientId' - The client ID.+-- * 'artacClientId' - The app client ID. ----- * 'artacChallengeName' - The name of the challenge.+-- * 'artacChallengeName' - The challenge name. For more information, see <API_AdminInitiateAuth.html AdminInitiateAuth> . adminRespondToAuthChallenge     :: Text -- ^ 'artacUserPoolId'     -> Text -- ^ 'artacClientId'     -> ChallengeNameType -- ^ 'artacChallengeName'     -> AdminRespondToAuthChallenge adminRespondToAuthChallenge pUserPoolId_ pClientId_ pChallengeName_ =-    AdminRespondToAuthChallenge'-    { _artacChallengeResponses = Nothing-    , _artacSession = Nothing-    , _artacUserPoolId = pUserPoolId_-    , _artacClientId = _Sensitive # pClientId_-    , _artacChallengeName = pChallengeName_-    }+  AdminRespondToAuthChallenge'+  { _artacChallengeResponses = Nothing+  , _artacSession = Nothing+  , _artacUserPoolId = pUserPoolId_+  , _artacClientId = _Sensitive # pClientId_+  , _artacChallengeName = pChallengeName_+  } --- | The challenge response.++-- | The challenge responses. These are inputs corresponding to the value of @ChallengeName@ , for example:     * @SMS_MFA@ : @SMS_MFA_CODE@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @PASSWORD_VERIFIER@ : @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , @TIMESTAMP@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @ADMIN_NO_SRP_AUTH@ : @PASSWORD@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).      * @NEW_PASSWORD_REQUIRED@ : @NEW_PASSWORD@ , any other required attributes, @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).  The value of the @USERNAME@ attribute must be the user's actual username, not an alias (such as email address or phone number). To make this easier, the @AdminInitiateAuth@ response includes the actual username value in the @USERNAMEUSER_ID_FOR_SRP@ attribute, even if you specified an alias in your call to @AdminInitiateAuth@ . artacChallengeResponses :: Lens' AdminRespondToAuthChallenge (HashMap Text Text) artacChallengeResponses = lens _artacChallengeResponses (\ s a -> s{_artacChallengeResponses = a}) . _Default . _Map; --- | The session.+-- | The session which should be passed both ways in challenge-response calls to the service. If @InitiateAuth@ or @RespondToAuthChallenge@ API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. artacSession :: Lens' AdminRespondToAuthChallenge (Maybe Text) artacSession = lens _artacSession (\ s a -> s{_artacSession = a}); @@ -103,11 +107,11 @@ artacUserPoolId :: Lens' AdminRespondToAuthChallenge Text artacUserPoolId = lens _artacUserPoolId (\ s a -> s{_artacUserPoolId = a}); --- | The client ID.+-- | The app client ID. artacClientId :: Lens' AdminRespondToAuthChallenge Text artacClientId = lens _artacClientId (\ s a -> s{_artacClientId = a}) . _Sensitive; --- | The name of the challenge.+-- | The challenge name. For more information, see <API_AdminInitiateAuth.html AdminInitiateAuth> . artacChallengeName :: Lens' AdminRespondToAuthChallenge ChallengeNameType artacChallengeName = lens _artacChallengeName (\ s a -> s{_artacChallengeName = a}); @@ -125,9 +129,9 @@                      <*> (x .?> "Session")                      <*> (pure (fromEnum s))) -instance Hashable AdminRespondToAuthChallenge+instance Hashable AdminRespondToAuthChallenge where -instance NFData AdminRespondToAuthChallenge+instance NFData AdminRespondToAuthChallenge where  instance ToHeaders AdminRespondToAuthChallenge where         toHeaders@@ -162,43 +166,45 @@ -- -- /See:/ 'adminRespondToAuthChallengeResponse' smart constructor. data AdminRespondToAuthChallengeResponse = AdminRespondToAuthChallengeResponse'-    { _artacrsChallengeName        :: !(Maybe ChallengeNameType)-    , _artacrsChallengeParameters  :: !(Maybe (Map Text Text))-    , _artacrsAuthenticationResult :: !(Maybe AuthenticationResultType)-    , _artacrsSession              :: !(Maybe Text)-    , _artacrsResponseStatus       :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _artacrsChallengeName        :: !(Maybe ChallengeNameType)+  , _artacrsChallengeParameters  :: !(Maybe (Map Text Text))+  , _artacrsAuthenticationResult :: !(Maybe AuthenticationResultType)+  , _artacrsSession              :: !(Maybe Text)+  , _artacrsResponseStatus       :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminRespondToAuthChallengeResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'artacrsChallengeName' - The name of the challenge.+-- * 'artacrsChallengeName' - The name of the challenge. For more information, see <API_AdminInitiateAuth.html AdminInitiateAuth> . ----- * 'artacrsChallengeParameters' - The challenge parameters.+-- * 'artacrsChallengeParameters' - The challenge parameters. For more information, see <API_AdminInitiateAuth.html AdminInitiateAuth> . -- -- * 'artacrsAuthenticationResult' - The result returned by the server in response to the authentication request. ----- * 'artacrsSession' - The session.+-- * 'artacrsSession' - The session which should be passed both ways in challenge-response calls to the service. If the <API_InitiateAuth.html InitiateAuth> or <API_RespondToAuthChallenge.html RespondToAuthChallenge> API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. -- -- * 'artacrsResponseStatus' - -- | The response status code. adminRespondToAuthChallengeResponse     :: Int -- ^ 'artacrsResponseStatus'     -> AdminRespondToAuthChallengeResponse adminRespondToAuthChallengeResponse pResponseStatus_ =-    AdminRespondToAuthChallengeResponse'-    { _artacrsChallengeName = Nothing-    , _artacrsChallengeParameters = Nothing-    , _artacrsAuthenticationResult = Nothing-    , _artacrsSession = Nothing-    , _artacrsResponseStatus = pResponseStatus_-    }+  AdminRespondToAuthChallengeResponse'+  { _artacrsChallengeName = Nothing+  , _artacrsChallengeParameters = Nothing+  , _artacrsAuthenticationResult = Nothing+  , _artacrsSession = Nothing+  , _artacrsResponseStatus = pResponseStatus_+  } --- | The name of the challenge.++-- | The name of the challenge. For more information, see <API_AdminInitiateAuth.html AdminInitiateAuth> . artacrsChallengeName :: Lens' AdminRespondToAuthChallengeResponse (Maybe ChallengeNameType) artacrsChallengeName = lens _artacrsChallengeName (\ s a -> s{_artacrsChallengeName = a}); --- | The challenge parameters.+-- | The challenge parameters. For more information, see <API_AdminInitiateAuth.html AdminInitiateAuth> . artacrsChallengeParameters :: Lens' AdminRespondToAuthChallengeResponse (HashMap Text Text) artacrsChallengeParameters = lens _artacrsChallengeParameters (\ s a -> s{_artacrsChallengeParameters = a}) . _Default . _Map; @@ -206,7 +212,7 @@ artacrsAuthenticationResult :: Lens' AdminRespondToAuthChallengeResponse (Maybe AuthenticationResultType) artacrsAuthenticationResult = lens _artacrsAuthenticationResult (\ s a -> s{_artacrsAuthenticationResult = a}); --- | The session.+-- | The session which should be passed both ways in challenge-response calls to the service. If the <API_InitiateAuth.html InitiateAuth> or <API_RespondToAuthChallenge.html RespondToAuthChallenge> API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. artacrsSession :: Lens' AdminRespondToAuthChallengeResponse (Maybe Text) artacrsSession = lens _artacrsSession (\ s a -> s{_artacrsSession = a}); @@ -215,3 +221,4 @@ artacrsResponseStatus = lens _artacrsResponseStatus (\ s a -> s{_artacrsResponseStatus = a});  instance NFData AdminRespondToAuthChallengeResponse+         where
gen/Network/AWS/CognitoIdentityProvider/AdminSetUserSettings.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminSetUserSettings--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Sets all the user settings for a specified user name. Works on any user. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminSetUserSettings     (     -- * Creating a Request@@ -38,12 +40,12 @@     , asusrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to set user settings as an administrator. --@@ -51,11 +53,12 @@ -- -- /See:/ 'adminSetUserSettings' smart constructor. data AdminSetUserSettings = AdminSetUserSettings'-    { _asusUserPoolId :: !Text-    , _asusUsername   :: !(Sensitive Text)-    , _asusMFAOptions :: ![MFAOptionType]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _asusUserPoolId :: !Text+  , _asusUsername   :: !(Sensitive Text)+  , _asusMFAOptions :: ![MFAOptionType]+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminSetUserSettings' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -70,12 +73,13 @@     -> Text -- ^ 'asusUsername'     -> AdminSetUserSettings adminSetUserSettings pUserPoolId_ pUsername_ =-    AdminSetUserSettings'-    { _asusUserPoolId = pUserPoolId_-    , _asusUsername = _Sensitive # pUsername_-    , _asusMFAOptions = mempty-    }+  AdminSetUserSettings'+  { _asusUserPoolId = pUserPoolId_+  , _asusUsername = _Sensitive # pUsername_+  , _asusMFAOptions = mempty+  } + -- | The user pool ID for the user pool where you want to set the user's settings, such as MFA options. asusUserPoolId :: Lens' AdminSetUserSettings Text asusUserPoolId = lens _asusUserPoolId (\ s a -> s{_asusUserPoolId = a});@@ -98,9 +102,9 @@                  AdminSetUserSettingsResponse' <$>                    (pure (fromEnum s))) -instance Hashable AdminSetUserSettings+instance Hashable AdminSetUserSettings where -instance NFData AdminSetUserSettings+instance NFData AdminSetUserSettings where  instance ToHeaders AdminSetUserSettings where         toHeaders@@ -132,9 +136,10 @@ -- -- /See:/ 'adminSetUserSettingsResponse' smart constructor. newtype AdminSetUserSettingsResponse = AdminSetUserSettingsResponse'-    { _asusrsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _asusrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminSetUserSettingsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -144,12 +149,11 @@     :: Int -- ^ 'asusrsResponseStatus'     -> AdminSetUserSettingsResponse adminSetUserSettingsResponse pResponseStatus_ =-    AdminSetUserSettingsResponse'-    { _asusrsResponseStatus = pResponseStatus_-    }+  AdminSetUserSettingsResponse' {_asusrsResponseStatus = pResponseStatus_} + -- | -- | The response status code. asusrsResponseStatus :: Lens' AdminSetUserSettingsResponse Int asusrsResponseStatus = lens _asusrsResponseStatus (\ s a -> s{_asusrsResponseStatus = a}); -instance NFData AdminSetUserSettingsResponse+instance NFData AdminSetUserSettingsResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminUpdateDeviceStatus.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Updates the device status as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminUpdateDeviceStatus     (     -- * Creating a Request@@ -39,12 +41,12 @@     , audsrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The request to update the device status, as an administrator. --@@ -52,19 +54,20 @@ -- -- /See:/ 'adminUpdateDeviceStatus' smart constructor. data AdminUpdateDeviceStatus = AdminUpdateDeviceStatus'-    { _audsDeviceRememberedStatus :: !(Maybe DeviceRememberedStatusType)-    , _audsUserPoolId             :: !Text-    , _audsUsername               :: !(Sensitive Text)-    , _audsDeviceKey              :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _audsDeviceRememberedStatus :: !(Maybe DeviceRememberedStatusType)+  , _audsUserPoolId             :: !Text+  , _audsUsername               :: !(Sensitive Text)+  , _audsDeviceKey              :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminUpdateDeviceStatus' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'audsDeviceRememberedStatus' - The status indicating whether a device has been remembered or not. ----- * 'audsUserPoolId' - The user pool ID>+-- * 'audsUserPoolId' - The user pool ID. -- -- * 'audsUsername' - The user name. --@@ -75,18 +78,19 @@     -> Text -- ^ 'audsDeviceKey'     -> AdminUpdateDeviceStatus adminUpdateDeviceStatus pUserPoolId_ pUsername_ pDeviceKey_ =-    AdminUpdateDeviceStatus'-    { _audsDeviceRememberedStatus = Nothing-    , _audsUserPoolId = pUserPoolId_-    , _audsUsername = _Sensitive # pUsername_-    , _audsDeviceKey = pDeviceKey_-    }+  AdminUpdateDeviceStatus'+  { _audsDeviceRememberedStatus = Nothing+  , _audsUserPoolId = pUserPoolId_+  , _audsUsername = _Sensitive # pUsername_+  , _audsDeviceKey = pDeviceKey_+  } + -- | The status indicating whether a device has been remembered or not. audsDeviceRememberedStatus :: Lens' AdminUpdateDeviceStatus (Maybe DeviceRememberedStatusType) audsDeviceRememberedStatus = lens _audsDeviceRememberedStatus (\ s a -> s{_audsDeviceRememberedStatus = a}); --- | The user pool ID>+-- | The user pool ID. audsUserPoolId :: Lens' AdminUpdateDeviceStatus Text audsUserPoolId = lens _audsUserPoolId (\ s a -> s{_audsUserPoolId = a}); @@ -108,9 +112,9 @@                  AdminUpdateDeviceStatusResponse' <$>                    (pure (fromEnum s))) -instance Hashable AdminUpdateDeviceStatus+instance Hashable AdminUpdateDeviceStatus where -instance NFData AdminUpdateDeviceStatus+instance NFData AdminUpdateDeviceStatus where  instance ToHeaders AdminUpdateDeviceStatus where         toHeaders@@ -144,9 +148,10 @@ -- -- /See:/ 'adminUpdateDeviceStatusResponse' smart constructor. newtype AdminUpdateDeviceStatusResponse = AdminUpdateDeviceStatusResponse'-    { _audsrsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _audsrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminUpdateDeviceStatusResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -156,12 +161,11 @@     :: Int -- ^ 'audsrsResponseStatus'     -> AdminUpdateDeviceStatusResponse adminUpdateDeviceStatusResponse pResponseStatus_ =-    AdminUpdateDeviceStatusResponse'-    { _audsrsResponseStatus = pResponseStatus_-    }+  AdminUpdateDeviceStatusResponse' {_audsrsResponseStatus = pResponseStatus_} + -- | -- | The response status code. audsrsResponseStatus :: Lens' AdminUpdateDeviceStatusResponse Int audsrsResponseStatus = lens _audsrsResponseStatus (\ s a -> s{_audsrsResponseStatus = a}); -instance NFData AdminUpdateDeviceStatusResponse+instance NFData AdminUpdateDeviceStatusResponse where
gen/Network/AWS/CognitoIdentityProvider/AdminUpdateUserAttributes.hs view
@@ -12,15 +12,21 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user. -- --+-- For custom attributes, you must prepend the @custom:@ prefix to the attribute name.+--+-- In addition to updating user attributes, this API can also be used to mark phone and email as verified.+--+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminUpdateUserAttributes     (     -- * Creating a Request@@ -38,12 +44,12 @@     , auuarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to update the user's attributes as an administrator. --@@ -51,11 +57,12 @@ -- -- /See:/ 'adminUpdateUserAttributes' smart constructor. data AdminUpdateUserAttributes = AdminUpdateUserAttributes'-    { _auuaUserPoolId     :: !Text-    , _auuaUsername       :: !(Sensitive Text)-    , _auuaUserAttributes :: ![AttributeType]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _auuaUserPoolId     :: !Text+  , _auuaUsername       :: !(Sensitive Text)+  , _auuaUserAttributes :: ![AttributeType]+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminUpdateUserAttributes' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -64,18 +71,19 @@ -- -- * 'auuaUsername' - The user name of the user for whom you want to update user attributes. ----- * 'auuaUserAttributes' - An array of name-value pairs representing user attributes.+-- * 'auuaUserAttributes' - An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. adminUpdateUserAttributes     :: Text -- ^ 'auuaUserPoolId'     -> Text -- ^ 'auuaUsername'     -> AdminUpdateUserAttributes adminUpdateUserAttributes pUserPoolId_ pUsername_ =-    AdminUpdateUserAttributes'-    { _auuaUserPoolId = pUserPoolId_-    , _auuaUsername = _Sensitive # pUsername_-    , _auuaUserAttributes = mempty-    }+  AdminUpdateUserAttributes'+  { _auuaUserPoolId = pUserPoolId_+  , _auuaUsername = _Sensitive # pUsername_+  , _auuaUserAttributes = mempty+  } + -- | The user pool ID for the user pool where you want to update user attributes. auuaUserPoolId :: Lens' AdminUpdateUserAttributes Text auuaUserPoolId = lens _auuaUserPoolId (\ s a -> s{_auuaUserPoolId = a});@@ -84,7 +92,7 @@ auuaUsername :: Lens' AdminUpdateUserAttributes Text auuaUsername = lens _auuaUsername (\ s a -> s{_auuaUsername = a}) . _Sensitive; --- | An array of name-value pairs representing user attributes.+-- | An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. auuaUserAttributes :: Lens' AdminUpdateUserAttributes [AttributeType] auuaUserAttributes = lens _auuaUserAttributes (\ s a -> s{_auuaUserAttributes = a}) . _Coerce; @@ -98,9 +106,9 @@                  AdminUpdateUserAttributesResponse' <$>                    (pure (fromEnum s))) -instance Hashable AdminUpdateUserAttributes+instance Hashable AdminUpdateUserAttributes where -instance NFData AdminUpdateUserAttributes+instance NFData AdminUpdateUserAttributes where  instance ToHeaders AdminUpdateUserAttributes where         toHeaders@@ -132,9 +140,10 @@ -- -- /See:/ 'adminUpdateUserAttributesResponse' smart constructor. newtype AdminUpdateUserAttributesResponse = AdminUpdateUserAttributesResponse'-    { _auuarsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _auuarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminUpdateUserAttributesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -144,12 +153,12 @@     :: Int -- ^ 'auuarsResponseStatus'     -> AdminUpdateUserAttributesResponse adminUpdateUserAttributesResponse pResponseStatus_ =-    AdminUpdateUserAttributesResponse'-    { _auuarsResponseStatus = pResponseStatus_-    }+  AdminUpdateUserAttributesResponse' {_auuarsResponseStatus = pResponseStatus_} + -- | -- | The response status code. auuarsResponseStatus :: Lens' AdminUpdateUserAttributesResponse Int auuarsResponseStatus = lens _auuarsResponseStatus (\ s a -> s{_auuarsResponseStatus = a});  instance NFData AdminUpdateUserAttributesResponse+         where
gen/Network/AWS/CognitoIdentityProvider/AdminUserGlobalSignOut.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Signs out users from all devices, as an administrator. -- --+-- Requires developer credentials.+-- module Network.AWS.CognitoIdentityProvider.AdminUserGlobalSignOut     (     -- * Creating a Request@@ -37,12 +39,12 @@     , augsorsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The request to sign out of all devices, as an administrator. --@@ -50,10 +52,11 @@ -- -- /See:/ 'adminUserGlobalSignOut' smart constructor. data AdminUserGlobalSignOut = AdminUserGlobalSignOut'-    { _augsoUserPoolId :: !Text-    , _augsoUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _augsoUserPoolId :: !Text+  , _augsoUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminUserGlobalSignOut' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +69,10 @@     -> Text -- ^ 'augsoUsername'     -> AdminUserGlobalSignOut adminUserGlobalSignOut pUserPoolId_ pUsername_ =-    AdminUserGlobalSignOut'-    { _augsoUserPoolId = pUserPoolId_-    , _augsoUsername = _Sensitive # pUsername_-    }+  AdminUserGlobalSignOut'+  {_augsoUserPoolId = pUserPoolId_, _augsoUsername = _Sensitive # pUsername_} + -- | The user pool ID. augsoUserPoolId :: Lens' AdminUserGlobalSignOut Text augsoUserPoolId = lens _augsoUserPoolId (\ s a -> s{_augsoUserPoolId = a});@@ -89,9 +91,9 @@                  AdminUserGlobalSignOutResponse' <$>                    (pure (fromEnum s))) -instance Hashable AdminUserGlobalSignOut+instance Hashable AdminUserGlobalSignOut where -instance NFData AdminUserGlobalSignOut+instance NFData AdminUserGlobalSignOut where  instance ToHeaders AdminUserGlobalSignOut where         toHeaders@@ -122,9 +124,10 @@ -- -- /See:/ 'adminUserGlobalSignOutResponse' smart constructor. newtype AdminUserGlobalSignOutResponse = AdminUserGlobalSignOutResponse'-    { _augsorsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _augsorsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'AdminUserGlobalSignOutResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -134,12 +137,11 @@     :: Int -- ^ 'augsorsResponseStatus'     -> AdminUserGlobalSignOutResponse adminUserGlobalSignOutResponse pResponseStatus_ =-    AdminUserGlobalSignOutResponse'-    { _augsorsResponseStatus = pResponseStatus_-    }+  AdminUserGlobalSignOutResponse' {_augsorsResponseStatus = pResponseStatus_} + -- | -- | The response status code. augsorsResponseStatus :: Lens' AdminUserGlobalSignOutResponse Int augsorsResponseStatus = lens _augsorsResponseStatus (\ s a -> s{_augsorsResponseStatus = a}); -instance NFData AdminUserGlobalSignOutResponse+instance NFData AdminUserGlobalSignOutResponse where
gen/Network/AWS/CognitoIdentityProvider/ChangePassword.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ChangePassword--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,9 +27,9 @@       changePassword     , ChangePassword     -- * Request Lenses-    , cpAccessToken     , cpPreviousPassword     , cpProposedPassword+    , cpAccessToken      -- * Destructuring the Response     , changePasswordResponse@@ -38,12 +38,12 @@     , cprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to change a user password. --@@ -51,34 +51,33 @@ -- -- /See:/ 'changePassword' smart constructor. data ChangePassword = ChangePassword'-    { _cpAccessToken      :: !(Maybe (Sensitive Text))-    , _cpPreviousPassword :: !(Sensitive Text)-    , _cpProposedPassword :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cpPreviousPassword :: !(Sensitive Text)+  , _cpProposedPassword :: !(Sensitive Text)+  , _cpAccessToken      :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ChangePassword' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cpAccessToken' - The access token in the change password request.--- -- * 'cpPreviousPassword' - The old password in the change password request. -- -- * 'cpProposedPassword' - The new password in the change password request.+--+-- * 'cpAccessToken' - The access token in the change password request. changePassword     :: Text -- ^ 'cpPreviousPassword'     -> Text -- ^ 'cpProposedPassword'+    -> Text -- ^ 'cpAccessToken'     -> ChangePassword-changePassword pPreviousPassword_ pProposedPassword_ =-    ChangePassword'-    { _cpAccessToken = Nothing-    , _cpPreviousPassword = _Sensitive # pPreviousPassword_-    , _cpProposedPassword = _Sensitive # pProposedPassword_-    }+changePassword pPreviousPassword_ pProposedPassword_ pAccessToken_ =+  ChangePassword'+  { _cpPreviousPassword = _Sensitive # pPreviousPassword_+  , _cpProposedPassword = _Sensitive # pProposedPassword_+  , _cpAccessToken = _Sensitive # pAccessToken_+  } --- | The access token in the change password request.-cpAccessToken :: Lens' ChangePassword (Maybe Text)-cpAccessToken = lens _cpAccessToken (\ s a -> s{_cpAccessToken = a}) . mapping _Sensitive;  -- | The old password in the change password request. cpPreviousPassword :: Lens' ChangePassword Text@@ -88,6 +87,10 @@ cpProposedPassword :: Lens' ChangePassword Text cpProposedPassword = lens _cpProposedPassword (\ s a -> s{_cpProposedPassword = a}) . _Sensitive; +-- | The access token in the change password request.+cpAccessToken :: Lens' ChangePassword Text+cpAccessToken = lens _cpAccessToken (\ s a -> s{_cpAccessToken = a}) . _Sensitive;+ instance AWSRequest ChangePassword where         type Rs ChangePassword = ChangePasswordResponse         request = postJSON cognitoIdentityProvider@@ -96,9 +99,9 @@               (\ s h x ->                  ChangePasswordResponse' <$> (pure (fromEnum s))) -instance Hashable ChangePassword+instance Hashable ChangePassword where -instance NFData ChangePassword+instance NFData ChangePassword where  instance ToHeaders ChangePassword where         toHeaders@@ -114,9 +117,9 @@         toJSON ChangePassword'{..}           = object               (catMaybes-                 [("AccessToken" .=) <$> _cpAccessToken,-                  Just ("PreviousPassword" .= _cpPreviousPassword),-                  Just ("ProposedPassword" .= _cpProposedPassword)])+                 [Just ("PreviousPassword" .= _cpPreviousPassword),+                  Just ("ProposedPassword" .= _cpProposedPassword),+                  Just ("AccessToken" .= _cpAccessToken)])  instance ToPath ChangePassword where         toPath = const "/"@@ -130,9 +133,10 @@ -- -- /See:/ 'changePasswordResponse' smart constructor. newtype ChangePasswordResponse = ChangePasswordResponse'-    { _cprsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cprsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ChangePasswordResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -142,12 +146,11 @@     :: Int -- ^ 'cprsResponseStatus'     -> ChangePasswordResponse changePasswordResponse pResponseStatus_ =-    ChangePasswordResponse'-    { _cprsResponseStatus = pResponseStatus_-    }+  ChangePasswordResponse' {_cprsResponseStatus = pResponseStatus_} + -- | -- | The response status code. cprsResponseStatus :: Lens' ChangePasswordResponse Int cprsResponseStatus = lens _cprsResponseStatus (\ s a -> s{_cprsResponseStatus = a}); -instance NFData ChangePasswordResponse+instance NFData ChangePasswordResponse where
gen/Network/AWS/CognitoIdentityProvider/ConfirmDevice.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ConfirmDevice--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Confirms tracking of the device. This API call is the call that beings device tracking.+-- Confirms tracking of the device. This API call is the call that begins device tracking. -- -- module Network.AWS.CognitoIdentityProvider.ConfirmDevice@@ -40,12 +40,12 @@     , cdrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Confirms the device request. --@@ -53,12 +53,13 @@ -- -- /See:/ 'confirmDevice' smart constructor. data ConfirmDevice = ConfirmDevice'-    { _cdDeviceSecretVerifierConfig :: !(Maybe DeviceSecretVerifierConfigType)-    , _cdDeviceName                 :: !(Maybe Text)-    , _cdAccessToken                :: !(Sensitive Text)-    , _cdDeviceKey                  :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cdDeviceSecretVerifierConfig :: !(Maybe DeviceSecretVerifierConfigType)+  , _cdDeviceName                 :: !(Maybe Text)+  , _cdAccessToken                :: !(Sensitive Text)+  , _cdDeviceKey                  :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ConfirmDevice' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -75,13 +76,14 @@     -> Text -- ^ 'cdDeviceKey'     -> ConfirmDevice confirmDevice pAccessToken_ pDeviceKey_ =-    ConfirmDevice'-    { _cdDeviceSecretVerifierConfig = Nothing-    , _cdDeviceName = Nothing-    , _cdAccessToken = _Sensitive # pAccessToken_-    , _cdDeviceKey = pDeviceKey_-    }+  ConfirmDevice'+  { _cdDeviceSecretVerifierConfig = Nothing+  , _cdDeviceName = Nothing+  , _cdAccessToken = _Sensitive # pAccessToken_+  , _cdDeviceKey = pDeviceKey_+  } + -- | The configuration of the device secret verifier. cdDeviceSecretVerifierConfig :: Lens' ConfirmDevice (Maybe DeviceSecretVerifierConfigType) cdDeviceSecretVerifierConfig = lens _cdDeviceSecretVerifierConfig (\ s a -> s{_cdDeviceSecretVerifierConfig = a});@@ -108,9 +110,9 @@                    (x .?> "UserConfirmationNecessary") <*>                      (pure (fromEnum s))) -instance Hashable ConfirmDevice+instance Hashable ConfirmDevice where -instance NFData ConfirmDevice+instance NFData ConfirmDevice where  instance ToHeaders ConfirmDevice where         toHeaders@@ -144,10 +146,11 @@ -- -- /See:/ 'confirmDeviceResponse' smart constructor. data ConfirmDeviceResponse = ConfirmDeviceResponse'-    { _cdrsUserConfirmationNecessary :: !(Maybe Bool)-    , _cdrsResponseStatus            :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cdrsUserConfirmationNecessary :: !(Maybe Bool)+  , _cdrsResponseStatus            :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ConfirmDeviceResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -159,11 +162,12 @@     :: Int -- ^ 'cdrsResponseStatus'     -> ConfirmDeviceResponse confirmDeviceResponse pResponseStatus_ =-    ConfirmDeviceResponse'-    { _cdrsUserConfirmationNecessary = Nothing-    , _cdrsResponseStatus = pResponseStatus_-    }+  ConfirmDeviceResponse'+  { _cdrsUserConfirmationNecessary = Nothing+  , _cdrsResponseStatus = pResponseStatus_+  } + -- | Indicates whether the user confirmation is necessary to confirm the device response. cdrsUserConfirmationNecessary :: Lens' ConfirmDeviceResponse (Maybe Bool) cdrsUserConfirmationNecessary = lens _cdrsUserConfirmationNecessary (\ s a -> s{_cdrsUserConfirmationNecessary = a});@@ -172,4 +176,4 @@ cdrsResponseStatus :: Lens' ConfirmDeviceResponse Int cdrsResponseStatus = lens _cdrsResponseStatus (\ s a -> s{_cdrsResponseStatus = a}); -instance NFData ConfirmDeviceResponse+instance NFData ConfirmDeviceResponse where
gen/Network/AWS/CognitoIdentityProvider/ConfirmForgotPassword.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Allows a user to enter a code provided when they reset their password to update their password.+-- Allows a user to enter a confirmation code to reset a forgotten password. -- -- module Network.AWS.CognitoIdentityProvider.ConfirmForgotPassword@@ -40,12 +40,12 @@     , cfprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The request representing the confirmation for a password reset. --@@ -53,26 +53,27 @@ -- -- /See:/ 'confirmForgotPassword' smart constructor. data ConfirmForgotPassword = ConfirmForgotPassword'-    { _cfpSecretHash       :: !(Maybe (Sensitive Text))-    , _cfpClientId         :: !(Sensitive Text)-    , _cfpUsername         :: !(Sensitive Text)-    , _cfpConfirmationCode :: !Text-    , _cfpPassword         :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cfpSecretHash       :: !(Maybe (Sensitive Text))+  , _cfpClientId         :: !(Sensitive Text)+  , _cfpUsername         :: !(Sensitive Text)+  , _cfpConfirmationCode :: !Text+  , _cfpPassword         :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ConfirmForgotPassword' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'cfpSecretHash' - A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. ----- * 'cfpClientId' - The ID of the client associated with the user pool.+-- * 'cfpClientId' - The app client ID of the app associated with the user pool. -- -- * 'cfpUsername' - The user name of the user for whom you want to enter a code to retrieve a forgotten password. ----- * 'cfpConfirmationCode' - The confirmation code sent by a user's request to retrieve a forgotten password.+-- * 'cfpConfirmationCode' - The confirmation code sent by a user's request to retrieve a forgotten password. For more information, see <API_ForgotPassword.html ForgotPassword> ----- * 'cfpPassword' - The password sent by sent by a user's request to retrieve a forgotten password.+-- * 'cfpPassword' - The password sent by a user's request to retrieve a forgotten password. confirmForgotPassword     :: Text -- ^ 'cfpClientId'     -> Text -- ^ 'cfpUsername'@@ -80,19 +81,20 @@     -> Text -- ^ 'cfpPassword'     -> ConfirmForgotPassword confirmForgotPassword pClientId_ pUsername_ pConfirmationCode_ pPassword_ =-    ConfirmForgotPassword'-    { _cfpSecretHash = Nothing-    , _cfpClientId = _Sensitive # pClientId_-    , _cfpUsername = _Sensitive # pUsername_-    , _cfpConfirmationCode = pConfirmationCode_-    , _cfpPassword = _Sensitive # pPassword_-    }+  ConfirmForgotPassword'+  { _cfpSecretHash = Nothing+  , _cfpClientId = _Sensitive # pClientId_+  , _cfpUsername = _Sensitive # pUsername_+  , _cfpConfirmationCode = pConfirmationCode_+  , _cfpPassword = _Sensitive # pPassword_+  } + -- | A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. cfpSecretHash :: Lens' ConfirmForgotPassword (Maybe Text) cfpSecretHash = lens _cfpSecretHash (\ s a -> s{_cfpSecretHash = a}) . mapping _Sensitive; --- | The ID of the client associated with the user pool.+-- | The app client ID of the app associated with the user pool. cfpClientId :: Lens' ConfirmForgotPassword Text cfpClientId = lens _cfpClientId (\ s a -> s{_cfpClientId = a}) . _Sensitive; @@ -100,11 +102,11 @@ cfpUsername :: Lens' ConfirmForgotPassword Text cfpUsername = lens _cfpUsername (\ s a -> s{_cfpUsername = a}) . _Sensitive; --- | The confirmation code sent by a user's request to retrieve a forgotten password.+-- | The confirmation code sent by a user's request to retrieve a forgotten password. For more information, see <API_ForgotPassword.html ForgotPassword> cfpConfirmationCode :: Lens' ConfirmForgotPassword Text cfpConfirmationCode = lens _cfpConfirmationCode (\ s a -> s{_cfpConfirmationCode = a}); --- | The password sent by sent by a user's request to retrieve a forgotten password.+-- | The password sent by a user's request to retrieve a forgotten password. cfpPassword :: Lens' ConfirmForgotPassword Text cfpPassword = lens _cfpPassword (\ s a -> s{_cfpPassword = a}) . _Sensitive; @@ -118,9 +120,9 @@                  ConfirmForgotPasswordResponse' <$>                    (pure (fromEnum s))) -instance Hashable ConfirmForgotPassword+instance Hashable ConfirmForgotPassword where -instance NFData ConfirmForgotPassword+instance NFData ConfirmForgotPassword where  instance ToHeaders ConfirmForgotPassword where         toHeaders@@ -154,9 +156,10 @@ -- -- /See:/ 'confirmForgotPasswordResponse' smart constructor. newtype ConfirmForgotPasswordResponse = ConfirmForgotPasswordResponse'-    { _cfprsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cfprsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ConfirmForgotPasswordResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -166,12 +169,11 @@     :: Int -- ^ 'cfprsResponseStatus'     -> ConfirmForgotPasswordResponse confirmForgotPasswordResponse pResponseStatus_ =-    ConfirmForgotPasswordResponse'-    { _cfprsResponseStatus = pResponseStatus_-    }+  ConfirmForgotPasswordResponse' {_cfprsResponseStatus = pResponseStatus_} + -- | -- | The response status code. cfprsResponseStatus :: Lens' ConfirmForgotPasswordResponse Int cfprsResponseStatus = lens _cfprsResponseStatus (\ s a -> s{_cfprsResponseStatus = a}); -instance NFData ConfirmForgotPasswordResponse+instance NFData ConfirmForgotPasswordResponse where
gen/Network/AWS/CognitoIdentityProvider/ConfirmSignUp.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ConfirmSignUp--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , csursResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to confirm registration of a user. --@@ -53,22 +53,23 @@ -- -- /See:/ 'confirmSignUp' smart constructor. data ConfirmSignUp = ConfirmSignUp'-    { _csuForceAliasCreation :: !(Maybe Bool)-    , _csuSecretHash         :: !(Maybe (Sensitive Text))-    , _csuClientId           :: !(Sensitive Text)-    , _csuUsername           :: !(Sensitive Text)-    , _csuConfirmationCode   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _csuForceAliasCreation :: !(Maybe Bool)+  , _csuSecretHash         :: !(Maybe (Sensitive Text))+  , _csuClientId           :: !(Sensitive Text)+  , _csuUsername           :: !(Sensitive Text)+  , _csuConfirmationCode   :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ConfirmSignUp' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'csuForceAliasCreation' - Boolean to be specified to force user confirmation irrespective of existing alias. By default set to False. If this parameter is set to True and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to False, the API will throw an __AliasExistsException__ error.+-- * 'csuForceAliasCreation' - Boolean to be specified to force user confirmation irrespective of existing alias. By default set to @False@ . If this parameter is set to @True@ and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to @False@ , the API will throw an __AliasExistsException__ error. -- -- * 'csuSecretHash' - A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. ----- * 'csuClientId' - The ID of the client associated with the user pool.+-- * 'csuClientId' - The ID of the app client associated with the user pool. -- -- * 'csuUsername' - The user name of the user whose registration you wish to confirm. --@@ -79,15 +80,16 @@     -> Text -- ^ 'csuConfirmationCode'     -> ConfirmSignUp confirmSignUp pClientId_ pUsername_ pConfirmationCode_ =-    ConfirmSignUp'-    { _csuForceAliasCreation = Nothing-    , _csuSecretHash = Nothing-    , _csuClientId = _Sensitive # pClientId_-    , _csuUsername = _Sensitive # pUsername_-    , _csuConfirmationCode = pConfirmationCode_-    }+  ConfirmSignUp'+  { _csuForceAliasCreation = Nothing+  , _csuSecretHash = Nothing+  , _csuClientId = _Sensitive # pClientId_+  , _csuUsername = _Sensitive # pUsername_+  , _csuConfirmationCode = pConfirmationCode_+  } --- | Boolean to be specified to force user confirmation irrespective of existing alias. By default set to False. If this parameter is set to True and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to False, the API will throw an __AliasExistsException__ error.++-- | Boolean to be specified to force user confirmation irrespective of existing alias. By default set to @False@ . If this parameter is set to @True@ and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to @False@ , the API will throw an __AliasExistsException__ error. csuForceAliasCreation :: Lens' ConfirmSignUp (Maybe Bool) csuForceAliasCreation = lens _csuForceAliasCreation (\ s a -> s{_csuForceAliasCreation = a}); @@ -95,7 +97,7 @@ csuSecretHash :: Lens' ConfirmSignUp (Maybe Text) csuSecretHash = lens _csuSecretHash (\ s a -> s{_csuSecretHash = a}) . mapping _Sensitive; --- | The ID of the client associated with the user pool.+-- | The ID of the app client associated with the user pool. csuClientId :: Lens' ConfirmSignUp Text csuClientId = lens _csuClientId (\ s a -> s{_csuClientId = a}) . _Sensitive; @@ -115,9 +117,9 @@               (\ s h x ->                  ConfirmSignUpResponse' <$> (pure (fromEnum s))) -instance Hashable ConfirmSignUp+instance Hashable ConfirmSignUp where -instance NFData ConfirmSignUp+instance NFData ConfirmSignUp where  instance ToHeaders ConfirmSignUp where         toHeaders@@ -152,9 +154,10 @@ -- -- /See:/ 'confirmSignUpResponse' smart constructor. newtype ConfirmSignUpResponse = ConfirmSignUpResponse'-    { _csursResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _csursResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ConfirmSignUpResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -164,12 +167,11 @@     :: Int -- ^ 'csursResponseStatus'     -> ConfirmSignUpResponse confirmSignUpResponse pResponseStatus_ =-    ConfirmSignUpResponse'-    { _csursResponseStatus = pResponseStatus_-    }+  ConfirmSignUpResponse' {_csursResponseStatus = pResponseStatus_} + -- | -- | The response status code. csursResponseStatus :: Lens' ConfirmSignUpResponse Int csursResponseStatus = lens _csursResponseStatus (\ s a -> s{_csursResponseStatus = a}); -instance NFData ConfirmSignUpResponse+instance NFData ConfirmSignUpResponse where
+ gen/Network/AWS/CognitoIdentityProvider/CreateGroup.hs view
@@ -0,0 +1,179 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.CreateGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new group in the specified user pool.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.CreateGroup+    (+    -- * Creating a Request+      createGroup+    , CreateGroup+    -- * Request Lenses+    , cgPrecedence+    , cgDescription+    , cgRoleARN+    , cgGroupName+    , cgUserPoolId++    -- * Destructuring the Response+    , createGroupResponse+    , CreateGroupResponse+    -- * Response Lenses+    , cgrsGroup+    , cgrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createGroup' smart constructor.+data CreateGroup = CreateGroup'+  { _cgPrecedence  :: !(Maybe Nat)+  , _cgDescription :: !(Maybe Text)+  , _cgRoleARN     :: !(Maybe Text)+  , _cgGroupName   :: !Text+  , _cgUserPoolId  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cgPrecedence' - A nonnegative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower @Precedence@ values take precedence over groups with higher or null @Precedence@ values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN will be used in the @cognito:roles@ and @cognito:preferred_role@ claims in the user's tokens. Two groups can have the same @Precedence@ value. If this happens, neither group takes precedence over the other. If two groups with the same @Precedence@ have the same role ARN, that role is used in the @cognito:preferred_role@ claim in tokens for users in each group. If the two groups have different role ARNs, the @cognito:preferred_role@ claim is not set in users' tokens. The default @Precedence@ value is null.+--+-- * 'cgDescription' - A string containing the description of the group.+--+-- * 'cgRoleARN' - The role ARN for the group.+--+-- * 'cgGroupName' - The name of the group. Must be unique.+--+-- * 'cgUserPoolId' - The user pool ID for the user pool.+createGroup+    :: Text -- ^ 'cgGroupName'+    -> Text -- ^ 'cgUserPoolId'+    -> CreateGroup+createGroup pGroupName_ pUserPoolId_ =+  CreateGroup'+  { _cgPrecedence = Nothing+  , _cgDescription = Nothing+  , _cgRoleARN = Nothing+  , _cgGroupName = pGroupName_+  , _cgUserPoolId = pUserPoolId_+  }+++-- | A nonnegative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower @Precedence@ values take precedence over groups with higher or null @Precedence@ values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN will be used in the @cognito:roles@ and @cognito:preferred_role@ claims in the user's tokens. Two groups can have the same @Precedence@ value. If this happens, neither group takes precedence over the other. If two groups with the same @Precedence@ have the same role ARN, that role is used in the @cognito:preferred_role@ claim in tokens for users in each group. If the two groups have different role ARNs, the @cognito:preferred_role@ claim is not set in users' tokens. The default @Precedence@ value is null.+cgPrecedence :: Lens' CreateGroup (Maybe Natural)+cgPrecedence = lens _cgPrecedence (\ s a -> s{_cgPrecedence = a}) . mapping _Nat;++-- | A string containing the description of the group.+cgDescription :: Lens' CreateGroup (Maybe Text)+cgDescription = lens _cgDescription (\ s a -> s{_cgDescription = a});++-- | The role ARN for the group.+cgRoleARN :: Lens' CreateGroup (Maybe Text)+cgRoleARN = lens _cgRoleARN (\ s a -> s{_cgRoleARN = a});++-- | The name of the group. Must be unique.+cgGroupName :: Lens' CreateGroup Text+cgGroupName = lens _cgGroupName (\ s a -> s{_cgGroupName = a});++-- | The user pool ID for the user pool.+cgUserPoolId :: Lens' CreateGroup Text+cgUserPoolId = lens _cgUserPoolId (\ s a -> s{_cgUserPoolId = a});++instance AWSRequest CreateGroup where+        type Rs CreateGroup = CreateGroupResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 CreateGroupResponse' <$>+                   (x .?> "Group") <*> (pure (fromEnum s)))++instance Hashable CreateGroup where++instance NFData CreateGroup where++instance ToHeaders CreateGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.CreateGroup" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateGroup where+        toJSON CreateGroup'{..}+          = object+              (catMaybes+                 [("Precedence" .=) <$> _cgPrecedence,+                  ("Description" .=) <$> _cgDescription,+                  ("RoleArn" .=) <$> _cgRoleARN,+                  Just ("GroupName" .= _cgGroupName),+                  Just ("UserPoolId" .= _cgUserPoolId)])++instance ToPath CreateGroup where+        toPath = const "/"++instance ToQuery CreateGroup where+        toQuery = const mempty++-- | /See:/ 'createGroupResponse' smart constructor.+data CreateGroupResponse = CreateGroupResponse'+  { _cgrsGroup          :: !(Maybe GroupType)+  , _cgrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateGroupResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cgrsGroup' - The group object for the group.+--+-- * 'cgrsResponseStatus' - -- | The response status code.+createGroupResponse+    :: Int -- ^ 'cgrsResponseStatus'+    -> CreateGroupResponse+createGroupResponse pResponseStatus_ =+  CreateGroupResponse'+  {_cgrsGroup = Nothing, _cgrsResponseStatus = pResponseStatus_}+++-- | The group object for the group.+cgrsGroup :: Lens' CreateGroupResponse (Maybe GroupType)+cgrsGroup = lens _cgrsGroup (\ s a -> s{_cgrsGroup = a});++-- | -- | The response status code.+cgrsResponseStatus :: Lens' CreateGroupResponse Int+cgrsResponseStatus = lens _cgrsResponseStatus (\ s a -> s{_cgrsResponseStatus = a});++instance NFData CreateGroupResponse where
+ gen/Network/AWS/CognitoIdentityProvider/CreateIdentityProvider.hs view
@@ -0,0 +1,192 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.CreateIdentityProvider+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates an identity provider for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.CreateIdentityProvider+    (+    -- * Creating a Request+      createIdentityProvider+    , CreateIdentityProvider+    -- * Request Lenses+    , cipIdpIdentifiers+    , cipAttributeMapping+    , cipUserPoolId+    , cipProviderName+    , cipProviderType+    , cipProviderDetails++    -- * Destructuring the Response+    , createIdentityProviderResponse+    , CreateIdentityProviderResponse+    -- * Response Lenses+    , ciprsResponseStatus+    , ciprsIdentityProvider+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createIdentityProvider' smart constructor.+data CreateIdentityProvider = CreateIdentityProvider'+  { _cipIdpIdentifiers   :: !(Maybe [Text])+  , _cipAttributeMapping :: !(Maybe (Map Text Text))+  , _cipUserPoolId       :: !Text+  , _cipProviderName     :: !Text+  , _cipProviderType     :: !IdentityProviderTypeType+  , _cipProviderDetails  :: !(Map Text Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateIdentityProvider' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cipIdpIdentifiers' - A list of identity provider identifiers.+--+-- * 'cipAttributeMapping' - A mapping of identity provider attributes to standard and custom user pool attributes.+--+-- * 'cipUserPoolId' - The user pool ID.+--+-- * 'cipProviderName' - The identity provider name.+--+-- * 'cipProviderType' - The identity provider type.+--+-- * 'cipProviderDetails' - The identity provider details, such as @MetadataURL@ and @MetadataFile@ .+createIdentityProvider+    :: Text -- ^ 'cipUserPoolId'+    -> Text -- ^ 'cipProviderName'+    -> IdentityProviderTypeType -- ^ 'cipProviderType'+    -> CreateIdentityProvider+createIdentityProvider pUserPoolId_ pProviderName_ pProviderType_ =+  CreateIdentityProvider'+  { _cipIdpIdentifiers = Nothing+  , _cipAttributeMapping = Nothing+  , _cipUserPoolId = pUserPoolId_+  , _cipProviderName = pProviderName_+  , _cipProviderType = pProviderType_+  , _cipProviderDetails = mempty+  }+++-- | A list of identity provider identifiers.+cipIdpIdentifiers :: Lens' CreateIdentityProvider [Text]+cipIdpIdentifiers = lens _cipIdpIdentifiers (\ s a -> s{_cipIdpIdentifiers = a}) . _Default . _Coerce;++-- | A mapping of identity provider attributes to standard and custom user pool attributes.+cipAttributeMapping :: Lens' CreateIdentityProvider (HashMap Text Text)+cipAttributeMapping = lens _cipAttributeMapping (\ s a -> s{_cipAttributeMapping = a}) . _Default . _Map;++-- | The user pool ID.+cipUserPoolId :: Lens' CreateIdentityProvider Text+cipUserPoolId = lens _cipUserPoolId (\ s a -> s{_cipUserPoolId = a});++-- | The identity provider name.+cipProviderName :: Lens' CreateIdentityProvider Text+cipProviderName = lens _cipProviderName (\ s a -> s{_cipProviderName = a});++-- | The identity provider type.+cipProviderType :: Lens' CreateIdentityProvider IdentityProviderTypeType+cipProviderType = lens _cipProviderType (\ s a -> s{_cipProviderType = a});++-- | The identity provider details, such as @MetadataURL@ and @MetadataFile@ .+cipProviderDetails :: Lens' CreateIdentityProvider (HashMap Text Text)+cipProviderDetails = lens _cipProviderDetails (\ s a -> s{_cipProviderDetails = a}) . _Map;++instance AWSRequest CreateIdentityProvider where+        type Rs CreateIdentityProvider =+             CreateIdentityProviderResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 CreateIdentityProviderResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "IdentityProvider"))++instance Hashable CreateIdentityProvider where++instance NFData CreateIdentityProvider where++instance ToHeaders CreateIdentityProvider where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.CreateIdentityProvider"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateIdentityProvider where+        toJSON CreateIdentityProvider'{..}+          = object+              (catMaybes+                 [("IdpIdentifiers" .=) <$> _cipIdpIdentifiers,+                  ("AttributeMapping" .=) <$> _cipAttributeMapping,+                  Just ("UserPoolId" .= _cipUserPoolId),+                  Just ("ProviderName" .= _cipProviderName),+                  Just ("ProviderType" .= _cipProviderType),+                  Just ("ProviderDetails" .= _cipProviderDetails)])++instance ToPath CreateIdentityProvider where+        toPath = const "/"++instance ToQuery CreateIdentityProvider where+        toQuery = const mempty++-- | /See:/ 'createIdentityProviderResponse' smart constructor.+data CreateIdentityProviderResponse = CreateIdentityProviderResponse'+  { _ciprsResponseStatus   :: !Int+  , _ciprsIdentityProvider :: !IdentityProviderType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateIdentityProviderResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ciprsResponseStatus' - -- | The response status code.+--+-- * 'ciprsIdentityProvider' - The newly created identity provider object.+createIdentityProviderResponse+    :: Int -- ^ 'ciprsResponseStatus'+    -> IdentityProviderType -- ^ 'ciprsIdentityProvider'+    -> CreateIdentityProviderResponse+createIdentityProviderResponse pResponseStatus_ pIdentityProvider_ =+  CreateIdentityProviderResponse'+  { _ciprsResponseStatus = pResponseStatus_+  , _ciprsIdentityProvider = pIdentityProvider_+  }+++-- | -- | The response status code.+ciprsResponseStatus :: Lens' CreateIdentityProviderResponse Int+ciprsResponseStatus = lens _ciprsResponseStatus (\ s a -> s{_ciprsResponseStatus = a});++-- | The newly created identity provider object.+ciprsIdentityProvider :: Lens' CreateIdentityProviderResponse IdentityProviderType+ciprsIdentityProvider = lens _ciprsIdentityProvider (\ s a -> s{_ciprsIdentityProvider = a});++instance NFData CreateIdentityProviderResponse where
+ gen/Network/AWS/CognitoIdentityProvider/CreateResourceServer.hs view
@@ -0,0 +1,172 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.CreateResourceServer+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new OAuth2.0 resource server and defines custom scopes in it.+--+--+module Network.AWS.CognitoIdentityProvider.CreateResourceServer+    (+    -- * Creating a Request+      createResourceServer+    , CreateResourceServer+    -- * Request Lenses+    , crsScopes+    , crsUserPoolId+    , crsIdentifier+    , crsName++    -- * Destructuring the Response+    , createResourceServerResponse+    , CreateResourceServerResponse+    -- * Response Lenses+    , crsrsResponseStatus+    , crsrsResourceServer+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createResourceServer' smart constructor.+data CreateResourceServer = CreateResourceServer'+  { _crsScopes     :: !(Maybe [ResourceServerScopeType])+  , _crsUserPoolId :: !Text+  , _crsIdentifier :: !Text+  , _crsName       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateResourceServer' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'crsScopes' - A list of scopes. Each scope is map, where the keys are @name@ and @description@ .+--+-- * 'crsUserPoolId' - The user pool ID for the user pool.+--+-- * 'crsIdentifier' - A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example, @https://my-weather-api.example.com@ .+--+-- * 'crsName' - A friendly name for the resource server.+createResourceServer+    :: Text -- ^ 'crsUserPoolId'+    -> Text -- ^ 'crsIdentifier'+    -> Text -- ^ 'crsName'+    -> CreateResourceServer+createResourceServer pUserPoolId_ pIdentifier_ pName_ =+  CreateResourceServer'+  { _crsScopes = Nothing+  , _crsUserPoolId = pUserPoolId_+  , _crsIdentifier = pIdentifier_+  , _crsName = pName_+  }+++-- | A list of scopes. Each scope is map, where the keys are @name@ and @description@ .+crsScopes :: Lens' CreateResourceServer [ResourceServerScopeType]+crsScopes = lens _crsScopes (\ s a -> s{_crsScopes = a}) . _Default . _Coerce;++-- | The user pool ID for the user pool.+crsUserPoolId :: Lens' CreateResourceServer Text+crsUserPoolId = lens _crsUserPoolId (\ s a -> s{_crsUserPoolId = a});++-- | A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example, @https://my-weather-api.example.com@ .+crsIdentifier :: Lens' CreateResourceServer Text+crsIdentifier = lens _crsIdentifier (\ s a -> s{_crsIdentifier = a});++-- | A friendly name for the resource server.+crsName :: Lens' CreateResourceServer Text+crsName = lens _crsName (\ s a -> s{_crsName = a});++instance AWSRequest CreateResourceServer where+        type Rs CreateResourceServer =+             CreateResourceServerResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 CreateResourceServerResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "ResourceServer"))++instance Hashable CreateResourceServer where++instance NFData CreateResourceServer where++instance ToHeaders CreateResourceServer where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.CreateResourceServer"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateResourceServer where+        toJSON CreateResourceServer'{..}+          = object+              (catMaybes+                 [("Scopes" .=) <$> _crsScopes,+                  Just ("UserPoolId" .= _crsUserPoolId),+                  Just ("Identifier" .= _crsIdentifier),+                  Just ("Name" .= _crsName)])++instance ToPath CreateResourceServer where+        toPath = const "/"++instance ToQuery CreateResourceServer where+        toQuery = const mempty++-- | /See:/ 'createResourceServerResponse' smart constructor.+data CreateResourceServerResponse = CreateResourceServerResponse'+  { _crsrsResponseStatus :: !Int+  , _crsrsResourceServer :: !ResourceServerType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateResourceServerResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'crsrsResponseStatus' - -- | The response status code.+--+-- * 'crsrsResourceServer' - The newly created resource server.+createResourceServerResponse+    :: Int -- ^ 'crsrsResponseStatus'+    -> ResourceServerType -- ^ 'crsrsResourceServer'+    -> CreateResourceServerResponse+createResourceServerResponse pResponseStatus_ pResourceServer_ =+  CreateResourceServerResponse'+  { _crsrsResponseStatus = pResponseStatus_+  , _crsrsResourceServer = pResourceServer_+  }+++-- | -- | The response status code.+crsrsResponseStatus :: Lens' CreateResourceServerResponse Int+crsrsResponseStatus = lens _crsrsResponseStatus (\ s a -> s{_crsrsResponseStatus = a});++-- | The newly created resource server.+crsrsResourceServer :: Lens' CreateResourceServerResponse ResourceServerType+crsrsResourceServer = lens _crsrsResourceServer (\ s a -> s{_crsrsResourceServer = a});++instance NFData CreateResourceServerResponse where
gen/Network/AWS/CognitoIdentityProvider/CreateUserImportJob.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.CreateUserImportJob--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , cuijrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to create the user import job. --@@ -52,11 +52,12 @@ -- -- /See:/ 'createUserImportJob' smart constructor. data CreateUserImportJob = CreateUserImportJob'-    { _cuijJobName               :: !Text-    , _cuijUserPoolId            :: !Text-    , _cuijCloudWatchLogsRoleARN :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cuijJobName               :: !Text+  , _cuijUserPoolId            :: !Text+  , _cuijCloudWatchLogsRoleARN :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUserImportJob' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -72,12 +73,13 @@     -> Text -- ^ 'cuijCloudWatchLogsRoleARN'     -> CreateUserImportJob createUserImportJob pJobName_ pUserPoolId_ pCloudWatchLogsRoleARN_ =-    CreateUserImportJob'-    { _cuijJobName = pJobName_-    , _cuijUserPoolId = pUserPoolId_-    , _cuijCloudWatchLogsRoleARN = pCloudWatchLogsRoleARN_-    }+  CreateUserImportJob'+  { _cuijJobName = pJobName_+  , _cuijUserPoolId = pUserPoolId_+  , _cuijCloudWatchLogsRoleARN = pCloudWatchLogsRoleARN_+  } + -- | The job name for the user import job. cuijJobName :: Lens' CreateUserImportJob Text cuijJobName = lens _cuijJobName (\ s a -> s{_cuijJobName = a});@@ -100,9 +102,9 @@                  CreateUserImportJobResponse' <$>                    (x .?> "UserImportJob") <*> (pure (fromEnum s))) -instance Hashable CreateUserImportJob+instance Hashable CreateUserImportJob where -instance NFData CreateUserImportJob+instance NFData CreateUserImportJob where  instance ToHeaders CreateUserImportJob where         toHeaders@@ -136,10 +138,11 @@ -- -- /See:/ 'createUserImportJobResponse' smart constructor. data CreateUserImportJobResponse = CreateUserImportJobResponse'-    { _cuijrsUserImportJob  :: !(Maybe UserImportJobType)-    , _cuijrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cuijrsUserImportJob  :: !(Maybe UserImportJobType)+  , _cuijrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUserImportJobResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -151,11 +154,10 @@     :: Int -- ^ 'cuijrsResponseStatus'     -> CreateUserImportJobResponse createUserImportJobResponse pResponseStatus_ =-    CreateUserImportJobResponse'-    { _cuijrsUserImportJob = Nothing-    , _cuijrsResponseStatus = pResponseStatus_-    }+  CreateUserImportJobResponse'+  {_cuijrsUserImportJob = Nothing, _cuijrsResponseStatus = pResponseStatus_} + -- | The job object that represents the user import job. cuijrsUserImportJob :: Lens' CreateUserImportJobResponse (Maybe UserImportJobType) cuijrsUserImportJob = lens _cuijrsUserImportJob (\ s a -> s{_cuijrsUserImportJob = a});@@ -164,4 +166,4 @@ cuijrsResponseStatus :: Lens' CreateUserImportJobResponse Int cuijrsResponseStatus = lens _cuijrsResponseStatus (\ s a -> s{_cuijrsResponseStatus = a}); -instance NFData CreateUserImportJobResponse+instance NFData CreateUserImportJobResponse where
gen/Network/AWS/CognitoIdentityProvider/CreateUserPool.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.CreateUserPool--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,9 +27,12 @@       createUserPool     , CreateUserPool     -- * Request Lenses+    , cupUserPoolTags+    , cupVerificationMessageTemplate     , cupEmailVerificationMessage     , cupSmsAuthenticationMessage     , cupEmailVerificationSubject+    , cupUsernameAttributes     , cupAliasAttributes     , cupSchema     , cupEmailConfiguration@@ -51,12 +54,12 @@     , cuprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to create a user pool. --@@ -64,33 +67,43 @@ -- -- /See:/ 'createUserPool' smart constructor. data CreateUserPool = CreateUserPool'-    { _cupEmailVerificationMessage :: !(Maybe Text)-    , _cupSmsAuthenticationMessage :: !(Maybe Text)-    , _cupEmailVerificationSubject :: !(Maybe Text)-    , _cupAliasAttributes          :: !(Maybe [AliasAttributeType])-    , _cupSchema                   :: !(Maybe (List1 SchemaAttributeType))-    , _cupEmailConfiguration       :: !(Maybe EmailConfigurationType)-    , _cupSmsVerificationMessage   :: !(Maybe Text)-    , _cupMFAConfiguration         :: !(Maybe UserPoolMFAType)-    , _cupLambdaConfig             :: !(Maybe LambdaConfigType)-    , _cupSmsConfiguration         :: !(Maybe SmsConfigurationType)-    , _cupAdminCreateUserConfig    :: !(Maybe AdminCreateUserConfigType)-    , _cupDeviceConfiguration      :: !(Maybe DeviceConfigurationType)-    , _cupAutoVerifiedAttributes   :: !(Maybe [VerifiedAttributeType])-    , _cupPolicies                 :: !(Maybe UserPoolPolicyType)-    , _cupPoolName                 :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cupUserPoolTags                :: !(Maybe (Map Text Text))+  , _cupVerificationMessageTemplate :: !(Maybe VerificationMessageTemplateType)+  , _cupEmailVerificationMessage    :: !(Maybe Text)+  , _cupSmsAuthenticationMessage    :: !(Maybe Text)+  , _cupEmailVerificationSubject    :: !(Maybe Text)+  , _cupUsernameAttributes          :: !(Maybe [UsernameAttributeType])+  , _cupAliasAttributes             :: !(Maybe [AliasAttributeType])+  , _cupSchema                      :: !(Maybe (List1 SchemaAttributeType))+  , _cupEmailConfiguration          :: !(Maybe EmailConfigurationType)+  , _cupSmsVerificationMessage      :: !(Maybe Text)+  , _cupMFAConfiguration            :: !(Maybe UserPoolMFAType)+  , _cupLambdaConfig                :: !(Maybe LambdaConfigType)+  , _cupSmsConfiguration            :: !(Maybe SmsConfigurationType)+  , _cupAdminCreateUserConfig       :: !(Maybe AdminCreateUserConfigType)+  , _cupDeviceConfiguration         :: !(Maybe DeviceConfigurationType)+  , _cupAutoVerifiedAttributes      :: !(Maybe [VerifiedAttributeType])+  , _cupPolicies                    :: !(Maybe UserPoolPolicyType)+  , _cupPoolName                    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUserPool' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'cupUserPoolTags' - The cost allocation tags for the user pool. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html Adding Cost Allocation Tags to Your User Pool>+--+-- * 'cupVerificationMessageTemplate' - The template for the verification message that the user sees when the app requests permission to access the user's information.+-- -- * 'cupEmailVerificationMessage' - A string representing the email verification message. -- -- * 'cupSmsAuthenticationMessage' - A string representing the SMS authentication message. -- -- * 'cupEmailVerificationSubject' - A string representing the email verification subject. --+-- * 'cupUsernameAttributes' - Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.+-- -- * 'cupAliasAttributes' - Attributes supported as an alias for this user pool. Possible values: __phone_number__ , __email__ , or __preferred_username__ . -- -- * 'cupSchema' - An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.@@ -105,7 +118,7 @@ -- -- * 'cupSmsConfiguration' - The SMS configuration. ----- * 'cupAdminCreateUserConfig' - The configuration for AdminCreateUser requests.+-- * 'cupAdminCreateUserConfig' - The configuration for @AdminCreateUser@ requests. -- -- * 'cupDeviceConfiguration' - The device configuration. --@@ -118,24 +131,36 @@     :: Text -- ^ 'cupPoolName'     -> CreateUserPool createUserPool pPoolName_ =-    CreateUserPool'-    { _cupEmailVerificationMessage = Nothing-    , _cupSmsAuthenticationMessage = Nothing-    , _cupEmailVerificationSubject = Nothing-    , _cupAliasAttributes = Nothing-    , _cupSchema = Nothing-    , _cupEmailConfiguration = Nothing-    , _cupSmsVerificationMessage = Nothing-    , _cupMFAConfiguration = Nothing-    , _cupLambdaConfig = Nothing-    , _cupSmsConfiguration = Nothing-    , _cupAdminCreateUserConfig = Nothing-    , _cupDeviceConfiguration = Nothing-    , _cupAutoVerifiedAttributes = Nothing-    , _cupPolicies = Nothing-    , _cupPoolName = pPoolName_-    }+  CreateUserPool'+  { _cupUserPoolTags = Nothing+  , _cupVerificationMessageTemplate = Nothing+  , _cupEmailVerificationMessage = Nothing+  , _cupSmsAuthenticationMessage = Nothing+  , _cupEmailVerificationSubject = Nothing+  , _cupUsernameAttributes = Nothing+  , _cupAliasAttributes = Nothing+  , _cupSchema = Nothing+  , _cupEmailConfiguration = Nothing+  , _cupSmsVerificationMessage = Nothing+  , _cupMFAConfiguration = Nothing+  , _cupLambdaConfig = Nothing+  , _cupSmsConfiguration = Nothing+  , _cupAdminCreateUserConfig = Nothing+  , _cupDeviceConfiguration = Nothing+  , _cupAutoVerifiedAttributes = Nothing+  , _cupPolicies = Nothing+  , _cupPoolName = pPoolName_+  } ++-- | The cost allocation tags for the user pool. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html Adding Cost Allocation Tags to Your User Pool>+cupUserPoolTags :: Lens' CreateUserPool (HashMap Text Text)+cupUserPoolTags = lens _cupUserPoolTags (\ s a -> s{_cupUserPoolTags = a}) . _Default . _Map;++-- | The template for the verification message that the user sees when the app requests permission to access the user's information.+cupVerificationMessageTemplate :: Lens' CreateUserPool (Maybe VerificationMessageTemplateType)+cupVerificationMessageTemplate = lens _cupVerificationMessageTemplate (\ s a -> s{_cupVerificationMessageTemplate = a});+ -- | A string representing the email verification message. cupEmailVerificationMessage :: Lens' CreateUserPool (Maybe Text) cupEmailVerificationMessage = lens _cupEmailVerificationMessage (\ s a -> s{_cupEmailVerificationMessage = a});@@ -148,6 +173,10 @@ cupEmailVerificationSubject :: Lens' CreateUserPool (Maybe Text) cupEmailVerificationSubject = lens _cupEmailVerificationSubject (\ s a -> s{_cupEmailVerificationSubject = a}); +-- | Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.+cupUsernameAttributes :: Lens' CreateUserPool [UsernameAttributeType]+cupUsernameAttributes = lens _cupUsernameAttributes (\ s a -> s{_cupUsernameAttributes = a}) . _Default . _Coerce;+ -- | Attributes supported as an alias for this user pool. Possible values: __phone_number__ , __email__ , or __preferred_username__ . cupAliasAttributes :: Lens' CreateUserPool [AliasAttributeType] cupAliasAttributes = lens _cupAliasAttributes (\ s a -> s{_cupAliasAttributes = a}) . _Default . _Coerce;@@ -176,7 +205,7 @@ cupSmsConfiguration :: Lens' CreateUserPool (Maybe SmsConfigurationType) cupSmsConfiguration = lens _cupSmsConfiguration (\ s a -> s{_cupSmsConfiguration = a}); --- | The configuration for AdminCreateUser requests.+-- | The configuration for @AdminCreateUser@ requests. cupAdminCreateUserConfig :: Lens' CreateUserPool (Maybe AdminCreateUserConfigType) cupAdminCreateUserConfig = lens _cupAdminCreateUserConfig (\ s a -> s{_cupAdminCreateUserConfig = a}); @@ -205,9 +234,9 @@                  CreateUserPoolResponse' <$>                    (x .?> "UserPool") <*> (pure (fromEnum s))) -instance Hashable CreateUserPool+instance Hashable CreateUserPool where -instance NFData CreateUserPool+instance NFData CreateUserPool where  instance ToHeaders CreateUserPool where         toHeaders@@ -223,12 +252,16 @@         toJSON CreateUserPool'{..}           = object               (catMaybes-                 [("EmailVerificationMessage" .=) <$>+                 [("UserPoolTags" .=) <$> _cupUserPoolTags,+                  ("VerificationMessageTemplate" .=) <$>+                    _cupVerificationMessageTemplate,+                  ("EmailVerificationMessage" .=) <$>                     _cupEmailVerificationMessage,                   ("SmsAuthenticationMessage" .=) <$>                     _cupSmsAuthenticationMessage,                   ("EmailVerificationSubject" .=) <$>                     _cupEmailVerificationSubject,+                  ("UsernameAttributes" .=) <$> _cupUsernameAttributes,                   ("AliasAttributes" .=) <$> _cupAliasAttributes,                   ("Schema" .=) <$> _cupSchema,                   ("EmailConfiguration" .=) <$> _cupEmailConfiguration,@@ -258,10 +291,11 @@ -- -- /See:/ 'createUserPoolResponse' smart constructor. data CreateUserPoolResponse = CreateUserPoolResponse'-    { _cuprsUserPool       :: !(Maybe UserPoolType)-    , _cuprsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cuprsUserPool       :: !(Maybe UserPoolType)+  , _cuprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUserPoolResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -273,11 +307,10 @@     :: Int -- ^ 'cuprsResponseStatus'     -> CreateUserPoolResponse createUserPoolResponse pResponseStatus_ =-    CreateUserPoolResponse'-    { _cuprsUserPool = Nothing-    , _cuprsResponseStatus = pResponseStatus_-    }+  CreateUserPoolResponse'+  {_cuprsUserPool = Nothing, _cuprsResponseStatus = pResponseStatus_} + -- | A container for the user pool details. cuprsUserPool :: Lens' CreateUserPoolResponse (Maybe UserPoolType) cuprsUserPool = lens _cuprsUserPool (\ s a -> s{_cuprsUserPool = a});@@ -286,4 +319,4 @@ cuprsResponseStatus :: Lens' CreateUserPoolResponse Int cuprsResponseStatus = lens _cuprsResponseStatus (\ s a -> s{_cuprsResponseStatus = a}); -instance NFData CreateUserPoolResponse+instance NFData CreateUserPoolResponse where
gen/Network/AWS/CognitoIdentityProvider/CreateUserPoolClient.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.CreateUserPoolClient--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -29,9 +29,16 @@     -- * Request Lenses     , cupcRefreshTokenValidity     , cupcExplicitAuthFlows+    , cupcSupportedIdentityProviders+    , cupcLogoutURLs+    , cupcAllowedOAuthFlowsUserPoolClient     , cupcGenerateSecret+    , cupcDefaultRedirectURI     , cupcWriteAttributes     , cupcReadAttributes+    , cupcAllowedOAuthScopes+    , cupcAllowedOAuthFlows+    , cupcCallbackURLs     , cupcUserPoolId     , cupcClientName @@ -43,12 +50,12 @@     , cupcrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to create a user pool client. --@@ -56,29 +63,51 @@ -- -- /See:/ 'createUserPoolClient' smart constructor. data CreateUserPoolClient = CreateUserPoolClient'-    { _cupcRefreshTokenValidity :: !(Maybe Nat)-    , _cupcExplicitAuthFlows    :: !(Maybe [ExplicitAuthFlowsType])-    , _cupcGenerateSecret       :: !(Maybe Bool)-    , _cupcWriteAttributes      :: !(Maybe [Text])-    , _cupcReadAttributes       :: !(Maybe [Text])-    , _cupcUserPoolId           :: !Text-    , _cupcClientName           :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cupcRefreshTokenValidity            :: !(Maybe Nat)+  , _cupcExplicitAuthFlows               :: !(Maybe [ExplicitAuthFlowsType])+  , _cupcSupportedIdentityProviders      :: !(Maybe [Text])+  , _cupcLogoutURLs                      :: !(Maybe [Text])+  , _cupcAllowedOAuthFlowsUserPoolClient :: !(Maybe Bool)+  , _cupcGenerateSecret                  :: !(Maybe Bool)+  , _cupcDefaultRedirectURI              :: !(Maybe Text)+  , _cupcWriteAttributes                 :: !(Maybe [Text])+  , _cupcReadAttributes                  :: !(Maybe [Text])+  , _cupcAllowedOAuthScopes              :: !(Maybe [Text])+  , _cupcAllowedOAuthFlows               :: !(Maybe [OAuthFlowType])+  , _cupcCallbackURLs                    :: !(Maybe [Text])+  , _cupcUserPoolId                      :: !Text+  , _cupcClientName                      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUserPoolClient' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cupcRefreshTokenValidity' - Refreshes the token validity.+-- * 'cupcRefreshTokenValidity' - The time limit, in days, after which the refresh token is no longer valid and cannot be used. -- -- * 'cupcExplicitAuthFlows' - The explicit authentication flows. --+-- * 'cupcSupportedIdentityProviders' - A list of provider names for the identity providers that are supported on this client.+--+-- * 'cupcLogoutURLs' - A list of allowed logout URLs for the identity providers.+--+-- * 'cupcAllowedOAuthFlowsUserPoolClient' - Set to @True@ if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.+-- -- * 'cupcGenerateSecret' - Boolean to specify whether you want to generate a secret for the user pool client being created. --+-- * 'cupcDefaultRedirectURI' - The default redirect URI. Must be in the @CallbackURLs@ list.+-- -- * 'cupcWriteAttributes' - The write attributes. -- -- * 'cupcReadAttributes' - The read attributes. --+-- * 'cupcAllowedOAuthScopes' - A list of allowed @OAuth@ scopes. Currently supported values are @"phone"@ , @"email"@ , @"openid"@ , and @"Cognito"@ .+--+-- * 'cupcAllowedOAuthFlows' - Set to @code@ to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to @token@ to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.+--+-- * 'cupcCallbackURLs' - A list of allowed callback URLs for the identity providers.+-- -- * 'cupcUserPoolId' - The user pool ID for the user pool where you want to create a user pool client. -- -- * 'cupcClientName' - The client name for the user pool client you would like to create.@@ -87,17 +116,25 @@     -> Text -- ^ 'cupcClientName'     -> CreateUserPoolClient createUserPoolClient pUserPoolId_ pClientName_ =-    CreateUserPoolClient'-    { _cupcRefreshTokenValidity = Nothing-    , _cupcExplicitAuthFlows = Nothing-    , _cupcGenerateSecret = Nothing-    , _cupcWriteAttributes = Nothing-    , _cupcReadAttributes = Nothing-    , _cupcUserPoolId = pUserPoolId_-    , _cupcClientName = pClientName_-    }+  CreateUserPoolClient'+  { _cupcRefreshTokenValidity = Nothing+  , _cupcExplicitAuthFlows = Nothing+  , _cupcSupportedIdentityProviders = Nothing+  , _cupcLogoutURLs = Nothing+  , _cupcAllowedOAuthFlowsUserPoolClient = Nothing+  , _cupcGenerateSecret = Nothing+  , _cupcDefaultRedirectURI = Nothing+  , _cupcWriteAttributes = Nothing+  , _cupcReadAttributes = Nothing+  , _cupcAllowedOAuthScopes = Nothing+  , _cupcAllowedOAuthFlows = Nothing+  , _cupcCallbackURLs = Nothing+  , _cupcUserPoolId = pUserPoolId_+  , _cupcClientName = pClientName_+  } --- | Refreshes the token validity.++-- | The time limit, in days, after which the refresh token is no longer valid and cannot be used. cupcRefreshTokenValidity :: Lens' CreateUserPoolClient (Maybe Natural) cupcRefreshTokenValidity = lens _cupcRefreshTokenValidity (\ s a -> s{_cupcRefreshTokenValidity = a}) . mapping _Nat; @@ -105,10 +142,26 @@ cupcExplicitAuthFlows :: Lens' CreateUserPoolClient [ExplicitAuthFlowsType] cupcExplicitAuthFlows = lens _cupcExplicitAuthFlows (\ s a -> s{_cupcExplicitAuthFlows = a}) . _Default . _Coerce; +-- | A list of provider names for the identity providers that are supported on this client.+cupcSupportedIdentityProviders :: Lens' CreateUserPoolClient [Text]+cupcSupportedIdentityProviders = lens _cupcSupportedIdentityProviders (\ s a -> s{_cupcSupportedIdentityProviders = a}) . _Default . _Coerce;++-- | A list of allowed logout URLs for the identity providers.+cupcLogoutURLs :: Lens' CreateUserPoolClient [Text]+cupcLogoutURLs = lens _cupcLogoutURLs (\ s a -> s{_cupcLogoutURLs = a}) . _Default . _Coerce;++-- | Set to @True@ if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.+cupcAllowedOAuthFlowsUserPoolClient :: Lens' CreateUserPoolClient (Maybe Bool)+cupcAllowedOAuthFlowsUserPoolClient = lens _cupcAllowedOAuthFlowsUserPoolClient (\ s a -> s{_cupcAllowedOAuthFlowsUserPoolClient = a});+ -- | Boolean to specify whether you want to generate a secret for the user pool client being created. cupcGenerateSecret :: Lens' CreateUserPoolClient (Maybe Bool) cupcGenerateSecret = lens _cupcGenerateSecret (\ s a -> s{_cupcGenerateSecret = a}); +-- | The default redirect URI. Must be in the @CallbackURLs@ list.+cupcDefaultRedirectURI :: Lens' CreateUserPoolClient (Maybe Text)+cupcDefaultRedirectURI = lens _cupcDefaultRedirectURI (\ s a -> s{_cupcDefaultRedirectURI = a});+ -- | The write attributes. cupcWriteAttributes :: Lens' CreateUserPoolClient [Text] cupcWriteAttributes = lens _cupcWriteAttributes (\ s a -> s{_cupcWriteAttributes = a}) . _Default . _Coerce;@@ -117,6 +170,18 @@ cupcReadAttributes :: Lens' CreateUserPoolClient [Text] cupcReadAttributes = lens _cupcReadAttributes (\ s a -> s{_cupcReadAttributes = a}) . _Default . _Coerce; +-- | A list of allowed @OAuth@ scopes. Currently supported values are @"phone"@ , @"email"@ , @"openid"@ , and @"Cognito"@ .+cupcAllowedOAuthScopes :: Lens' CreateUserPoolClient [Text]+cupcAllowedOAuthScopes = lens _cupcAllowedOAuthScopes (\ s a -> s{_cupcAllowedOAuthScopes = a}) . _Default . _Coerce;++-- | Set to @code@ to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to @token@ to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.+cupcAllowedOAuthFlows :: Lens' CreateUserPoolClient [OAuthFlowType]+cupcAllowedOAuthFlows = lens _cupcAllowedOAuthFlows (\ s a -> s{_cupcAllowedOAuthFlows = a}) . _Default . _Coerce;++-- | A list of allowed callback URLs for the identity providers.+cupcCallbackURLs :: Lens' CreateUserPoolClient [Text]+cupcCallbackURLs = lens _cupcCallbackURLs (\ s a -> s{_cupcCallbackURLs = a}) . _Default . _Coerce;+ -- | The user pool ID for the user pool where you want to create a user pool client. cupcUserPoolId :: Lens' CreateUserPoolClient Text cupcUserPoolId = lens _cupcUserPoolId (\ s a -> s{_cupcUserPoolId = a});@@ -135,9 +200,9 @@                  CreateUserPoolClientResponse' <$>                    (x .?> "UserPoolClient") <*> (pure (fromEnum s))) -instance Hashable CreateUserPoolClient+instance Hashable CreateUserPoolClient where -instance NFData CreateUserPoolClient+instance NFData CreateUserPoolClient where  instance ToHeaders CreateUserPoolClient where         toHeaders@@ -156,9 +221,20 @@                  [("RefreshTokenValidity" .=) <$>                     _cupcRefreshTokenValidity,                   ("ExplicitAuthFlows" .=) <$> _cupcExplicitAuthFlows,+                  ("SupportedIdentityProviders" .=) <$>+                    _cupcSupportedIdentityProviders,+                  ("LogoutURLs" .=) <$> _cupcLogoutURLs,+                  ("AllowedOAuthFlowsUserPoolClient" .=) <$>+                    _cupcAllowedOAuthFlowsUserPoolClient,                   ("GenerateSecret" .=) <$> _cupcGenerateSecret,+                  ("DefaultRedirectURI" .=) <$>+                    _cupcDefaultRedirectURI,                   ("WriteAttributes" .=) <$> _cupcWriteAttributes,                   ("ReadAttributes" .=) <$> _cupcReadAttributes,+                  ("AllowedOAuthScopes" .=) <$>+                    _cupcAllowedOAuthScopes,+                  ("AllowedOAuthFlows" .=) <$> _cupcAllowedOAuthFlows,+                  ("CallbackURLs" .=) <$> _cupcCallbackURLs,                   Just ("UserPoolId" .= _cupcUserPoolId),                   Just ("ClientName" .= _cupcClientName)]) @@ -174,10 +250,11 @@ -- -- /See:/ 'createUserPoolClientResponse' smart constructor. data CreateUserPoolClientResponse = CreateUserPoolClientResponse'-    { _cupcrsUserPoolClient :: !(Maybe UserPoolClientType)-    , _cupcrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cupcrsUserPoolClient :: !(Maybe UserPoolClientType)+  , _cupcrsResponseStatus :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUserPoolClientResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -189,11 +266,10 @@     :: Int -- ^ 'cupcrsResponseStatus'     -> CreateUserPoolClientResponse createUserPoolClientResponse pResponseStatus_ =-    CreateUserPoolClientResponse'-    { _cupcrsUserPoolClient = Nothing-    , _cupcrsResponseStatus = pResponseStatus_-    }+  CreateUserPoolClientResponse'+  {_cupcrsUserPoolClient = Nothing, _cupcrsResponseStatus = pResponseStatus_} + -- | The user pool client that was just created. cupcrsUserPoolClient :: Lens' CreateUserPoolClientResponse (Maybe UserPoolClientType) cupcrsUserPoolClient = lens _cupcrsUserPoolClient (\ s a -> s{_cupcrsUserPoolClient = a});@@ -202,4 +278,4 @@ cupcrsResponseStatus :: Lens' CreateUserPoolClientResponse Int cupcrsResponseStatus = lens _cupcrsResponseStatus (\ s a -> s{_cupcrsResponseStatus = a}); -instance NFData CreateUserPoolClientResponse+instance NFData CreateUserPoolClientResponse where
+ gen/Network/AWS/CognitoIdentityProvider/CreateUserPoolDomain.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new domain for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.CreateUserPoolDomain+    (+    -- * Creating a Request+      createUserPoolDomain+    , CreateUserPoolDomain+    -- * Request Lenses+    , cupdDomain+    , cupdUserPoolId++    -- * Destructuring the Response+    , createUserPoolDomainResponse+    , CreateUserPoolDomainResponse+    -- * Response Lenses+    , cupdrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createUserPoolDomain' smart constructor.+data CreateUserPoolDomain = CreateUserPoolDomain'+  { _cupdDomain     :: !Text+  , _cupdUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateUserPoolDomain' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cupdDomain' - The domain string.+--+-- * 'cupdUserPoolId' - The user pool ID.+createUserPoolDomain+    :: Text -- ^ 'cupdDomain'+    -> Text -- ^ 'cupdUserPoolId'+    -> CreateUserPoolDomain+createUserPoolDomain pDomain_ pUserPoolId_ =+  CreateUserPoolDomain' {_cupdDomain = pDomain_, _cupdUserPoolId = pUserPoolId_}+++-- | The domain string.+cupdDomain :: Lens' CreateUserPoolDomain Text+cupdDomain = lens _cupdDomain (\ s a -> s{_cupdDomain = a});++-- | The user pool ID.+cupdUserPoolId :: Lens' CreateUserPoolDomain Text+cupdUserPoolId = lens _cupdUserPoolId (\ s a -> s{_cupdUserPoolId = a});++instance AWSRequest CreateUserPoolDomain where+        type Rs CreateUserPoolDomain =+             CreateUserPoolDomainResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveEmpty+              (\ s h x ->+                 CreateUserPoolDomainResponse' <$>+                   (pure (fromEnum s)))++instance Hashable CreateUserPoolDomain where++instance NFData CreateUserPoolDomain where++instance ToHeaders CreateUserPoolDomain where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.CreateUserPoolDomain"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateUserPoolDomain where+        toJSON CreateUserPoolDomain'{..}+          = object+              (catMaybes+                 [Just ("Domain" .= _cupdDomain),+                  Just ("UserPoolId" .= _cupdUserPoolId)])++instance ToPath CreateUserPoolDomain where+        toPath = const "/"++instance ToQuery CreateUserPoolDomain where+        toQuery = const mempty++-- | /See:/ 'createUserPoolDomainResponse' smart constructor.+newtype CreateUserPoolDomainResponse = CreateUserPoolDomainResponse'+  { _cupdrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateUserPoolDomainResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cupdrsResponseStatus' - -- | The response status code.+createUserPoolDomainResponse+    :: Int -- ^ 'cupdrsResponseStatus'+    -> CreateUserPoolDomainResponse+createUserPoolDomainResponse pResponseStatus_ =+  CreateUserPoolDomainResponse' {_cupdrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+cupdrsResponseStatus :: Lens' CreateUserPoolDomainResponse Int+cupdrsResponseStatus = lens _cupdrsResponseStatus (\ s a -> s{_cupdrsResponseStatus = a});++instance NFData CreateUserPoolDomainResponse where
+ gen/Network/AWS/CognitoIdentityProvider/DeleteGroup.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DeleteGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a group. Currently only groups with no members can be deleted.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.DeleteGroup+    (+    -- * Creating a Request+      deleteGroup+    , DeleteGroup+    -- * Request Lenses+    , dgGroupName+    , dgUserPoolId++    -- * Destructuring the Response+    , deleteGroupResponse+    , DeleteGroupResponse+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteGroup' smart constructor.+data DeleteGroup = DeleteGroup'+  { _dgGroupName  :: !Text+  , _dgUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dgGroupName' - The name of the group.+--+-- * 'dgUserPoolId' - The user pool ID for the user pool.+deleteGroup+    :: Text -- ^ 'dgGroupName'+    -> Text -- ^ 'dgUserPoolId'+    -> DeleteGroup+deleteGroup pGroupName_ pUserPoolId_ =+  DeleteGroup' {_dgGroupName = pGroupName_, _dgUserPoolId = pUserPoolId_}+++-- | The name of the group.+dgGroupName :: Lens' DeleteGroup Text+dgGroupName = lens _dgGroupName (\ s a -> s{_dgGroupName = a});++-- | The user pool ID for the user pool.+dgUserPoolId :: Lens' DeleteGroup Text+dgUserPoolId = lens _dgUserPoolId (\ s a -> s{_dgUserPoolId = a});++instance AWSRequest DeleteGroup where+        type Rs DeleteGroup = DeleteGroupResponse+        request = postJSON cognitoIdentityProvider+        response = receiveNull DeleteGroupResponse'++instance Hashable DeleteGroup where++instance NFData DeleteGroup where++instance ToHeaders DeleteGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DeleteGroup" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteGroup where+        toJSON DeleteGroup'{..}+          = object+              (catMaybes+                 [Just ("GroupName" .= _dgGroupName),+                  Just ("UserPoolId" .= _dgUserPoolId)])++instance ToPath DeleteGroup where+        toPath = const "/"++instance ToQuery DeleteGroup where+        toQuery = const mempty++-- | /See:/ 'deleteGroupResponse' smart constructor.+data DeleteGroupResponse =+  DeleteGroupResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteGroupResponse' with the minimum fields required to make a request.+--+deleteGroupResponse+    :: DeleteGroupResponse+deleteGroupResponse = DeleteGroupResponse'+++instance NFData DeleteGroupResponse where
+ gen/Network/AWS/CognitoIdentityProvider/DeleteIdentityProvider.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an identity provider for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.DeleteIdentityProvider+    (+    -- * Creating a Request+      deleteIdentityProvider+    , DeleteIdentityProvider+    -- * Request Lenses+    , delUserPoolId+    , delProviderName++    -- * Destructuring the Response+    , deleteIdentityProviderResponse+    , DeleteIdentityProviderResponse+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteIdentityProvider' smart constructor.+data DeleteIdentityProvider = DeleteIdentityProvider'+  { _delUserPoolId   :: !Text+  , _delProviderName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteIdentityProvider' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'delUserPoolId' - The user pool ID.+--+-- * 'delProviderName' - The identity provider name.+deleteIdentityProvider+    :: Text -- ^ 'delUserPoolId'+    -> Text -- ^ 'delProviderName'+    -> DeleteIdentityProvider+deleteIdentityProvider pUserPoolId_ pProviderName_ =+  DeleteIdentityProvider'+  {_delUserPoolId = pUserPoolId_, _delProviderName = pProviderName_}+++-- | The user pool ID.+delUserPoolId :: Lens' DeleteIdentityProvider Text+delUserPoolId = lens _delUserPoolId (\ s a -> s{_delUserPoolId = a});++-- | The identity provider name.+delProviderName :: Lens' DeleteIdentityProvider Text+delProviderName = lens _delProviderName (\ s a -> s{_delProviderName = a});++instance AWSRequest DeleteIdentityProvider where+        type Rs DeleteIdentityProvider =+             DeleteIdentityProviderResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveNull DeleteIdentityProviderResponse'++instance Hashable DeleteIdentityProvider where++instance NFData DeleteIdentityProvider where++instance ToHeaders DeleteIdentityProvider where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DeleteIdentityProvider"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteIdentityProvider where+        toJSON DeleteIdentityProvider'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _delUserPoolId),+                  Just ("ProviderName" .= _delProviderName)])++instance ToPath DeleteIdentityProvider where+        toPath = const "/"++instance ToQuery DeleteIdentityProvider where+        toQuery = const mempty++-- | /See:/ 'deleteIdentityProviderResponse' smart constructor.+data DeleteIdentityProviderResponse =+  DeleteIdentityProviderResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteIdentityProviderResponse' with the minimum fields required to make a request.+--+deleteIdentityProviderResponse+    :: DeleteIdentityProviderResponse+deleteIdentityProviderResponse = DeleteIdentityProviderResponse'+++instance NFData DeleteIdentityProviderResponse where
+ gen/Network/AWS/CognitoIdentityProvider/DeleteResourceServer.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DeleteResourceServer+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a resource server.+--+--+module Network.AWS.CognitoIdentityProvider.DeleteResourceServer+    (+    -- * Creating a Request+      deleteResourceServer+    , DeleteResourceServer+    -- * Request Lenses+    , drsUserPoolId+    , drsIdentifier++    -- * Destructuring the Response+    , deleteResourceServerResponse+    , DeleteResourceServerResponse+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteResourceServer' smart constructor.+data DeleteResourceServer = DeleteResourceServer'+  { _drsUserPoolId :: !Text+  , _drsIdentifier :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteResourceServer' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsUserPoolId' - The user pool ID for the user pool that hosts the resource server.+--+-- * 'drsIdentifier' - The identifier for the resource server.+deleteResourceServer+    :: Text -- ^ 'drsUserPoolId'+    -> Text -- ^ 'drsIdentifier'+    -> DeleteResourceServer+deleteResourceServer pUserPoolId_ pIdentifier_ =+  DeleteResourceServer'+  {_drsUserPoolId = pUserPoolId_, _drsIdentifier = pIdentifier_}+++-- | The user pool ID for the user pool that hosts the resource server.+drsUserPoolId :: Lens' DeleteResourceServer Text+drsUserPoolId = lens _drsUserPoolId (\ s a -> s{_drsUserPoolId = a});++-- | The identifier for the resource server.+drsIdentifier :: Lens' DeleteResourceServer Text+drsIdentifier = lens _drsIdentifier (\ s a -> s{_drsIdentifier = a});++instance AWSRequest DeleteResourceServer where+        type Rs DeleteResourceServer =+             DeleteResourceServerResponse+        request = postJSON cognitoIdentityProvider+        response = receiveNull DeleteResourceServerResponse'++instance Hashable DeleteResourceServer where++instance NFData DeleteResourceServer where++instance ToHeaders DeleteResourceServer where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DeleteResourceServer"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteResourceServer where+        toJSON DeleteResourceServer'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _drsUserPoolId),+                  Just ("Identifier" .= _drsIdentifier)])++instance ToPath DeleteResourceServer where+        toPath = const "/"++instance ToQuery DeleteResourceServer where+        toQuery = const mempty++-- | /See:/ 'deleteResourceServerResponse' smart constructor.+data DeleteResourceServerResponse =+  DeleteResourceServerResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteResourceServerResponse' with the minimum fields required to make a request.+--+deleteResourceServerResponse+    :: DeleteResourceServerResponse+deleteResourceServerResponse = DeleteResourceServerResponse'+++instance NFData DeleteResourceServerResponse where
gen/Network/AWS/CognitoIdentityProvider/DeleteUser.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DeleteUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Allows a user to delete one's self.+-- Allows a user to delete himself or herself. -- -- module Network.AWS.CognitoIdentityProvider.DeleteUser@@ -34,12 +34,12 @@     , DeleteUserResponse     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to delete a user. --@@ -47,33 +47,34 @@ -- -- /See:/ 'deleteUser' smart constructor. newtype DeleteUser = DeleteUser'-    { _duAccessToken :: Maybe (Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _duAccessToken :: Sensitive Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'duAccessToken' - The access token from a request to delete a user. deleteUser-    :: DeleteUser-deleteUser =-    DeleteUser'-    { _duAccessToken = Nothing-    }+    :: Text -- ^ 'duAccessToken'+    -> DeleteUser+deleteUser pAccessToken_ =+  DeleteUser' {_duAccessToken = _Sensitive # pAccessToken_} + -- | The access token from a request to delete a user.-duAccessToken :: Lens' DeleteUser (Maybe Text)-duAccessToken = lens _duAccessToken (\ s a -> s{_duAccessToken = a}) . mapping _Sensitive;+duAccessToken :: Lens' DeleteUser Text+duAccessToken = lens _duAccessToken (\ s a -> s{_duAccessToken = a}) . _Sensitive;  instance AWSRequest DeleteUser where         type Rs DeleteUser = DeleteUserResponse         request = postJSON cognitoIdentityProvider         response = receiveNull DeleteUserResponse' -instance Hashable DeleteUser+instance Hashable DeleteUser where -instance NFData DeleteUser+instance NFData DeleteUser where  instance ToHeaders DeleteUser where         toHeaders@@ -88,7 +89,7 @@ instance ToJSON DeleteUser where         toJSON DeleteUser'{..}           = object-              (catMaybes [("AccessToken" .=) <$> _duAccessToken])+              (catMaybes [Just ("AccessToken" .= _duAccessToken)])  instance ToPath DeleteUser where         toPath = const "/"@@ -98,13 +99,15 @@  -- | /See:/ 'deleteUserResponse' smart constructor. data DeleteUserResponse =-    DeleteUserResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteUserResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserResponse' with the minimum fields required to make a request. -- deleteUserResponse     :: DeleteUserResponse deleteUserResponse = DeleteUserResponse' -instance NFData DeleteUserResponse++instance NFData DeleteUserResponse where
gen/Network/AWS/CognitoIdentityProvider/DeleteUserAttributes.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DeleteUserAttributes--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,8 +27,8 @@       deleteUserAttributes     , DeleteUserAttributes     -- * Request Lenses-    , duaAccessToken     , duaUserAttributeNames+    , duaAccessToken      -- * Destructuring the Response     , deleteUserAttributesResponse@@ -37,12 +37,12 @@     , duarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to delete user attributes. --@@ -50,33 +50,36 @@ -- -- /See:/ 'deleteUserAttributes' smart constructor. data DeleteUserAttributes = DeleteUserAttributes'-    { _duaAccessToken        :: !(Maybe (Sensitive Text))-    , _duaUserAttributeNames :: ![Text]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _duaUserAttributeNames :: ![Text]+  , _duaAccessToken        :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserAttributes' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'duaAccessToken' - The access token used in the request to delete user attributes.+-- * 'duaUserAttributeNames' - An array of strings representing the user attribute names you wish to delete. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. ----- * 'duaUserAttributeNames' - An array of strings representing the user attribute names you wish to delete.+-- * 'duaAccessToken' - The access token used in the request to delete user attributes. deleteUserAttributes-    :: DeleteUserAttributes-deleteUserAttributes =-    DeleteUserAttributes'-    { _duaAccessToken = Nothing-    , _duaUserAttributeNames = mempty-    }+    :: Text -- ^ 'duaAccessToken'+    -> DeleteUserAttributes+deleteUserAttributes pAccessToken_ =+  DeleteUserAttributes'+  { _duaUserAttributeNames = mempty+  , _duaAccessToken = _Sensitive # pAccessToken_+  } --- | The access token used in the request to delete user attributes.-duaAccessToken :: Lens' DeleteUserAttributes (Maybe Text)-duaAccessToken = lens _duaAccessToken (\ s a -> s{_duaAccessToken = a}) . mapping _Sensitive; --- | An array of strings representing the user attribute names you wish to delete.+-- | An array of strings representing the user attribute names you wish to delete. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. duaUserAttributeNames :: Lens' DeleteUserAttributes [Text] duaUserAttributeNames = lens _duaUserAttributeNames (\ s a -> s{_duaUserAttributeNames = a}) . _Coerce; +-- | The access token used in the request to delete user attributes.+duaAccessToken :: Lens' DeleteUserAttributes Text+duaAccessToken = lens _duaAccessToken (\ s a -> s{_duaAccessToken = a}) . _Sensitive;+ instance AWSRequest DeleteUserAttributes where         type Rs DeleteUserAttributes =              DeleteUserAttributesResponse@@ -87,9 +90,9 @@                  DeleteUserAttributesResponse' <$>                    (pure (fromEnum s))) -instance Hashable DeleteUserAttributes+instance Hashable DeleteUserAttributes where -instance NFData DeleteUserAttributes+instance NFData DeleteUserAttributes where  instance ToHeaders DeleteUserAttributes where         toHeaders@@ -105,9 +108,9 @@         toJSON DeleteUserAttributes'{..}           = object               (catMaybes-                 [("AccessToken" .=) <$> _duaAccessToken,-                  Just-                    ("UserAttributeNames" .= _duaUserAttributeNames)])+                 [Just+                    ("UserAttributeNames" .= _duaUserAttributeNames),+                  Just ("AccessToken" .= _duaAccessToken)])  instance ToPath DeleteUserAttributes where         toPath = const "/"@@ -121,9 +124,10 @@ -- -- /See:/ 'deleteUserAttributesResponse' smart constructor. newtype DeleteUserAttributesResponse = DeleteUserAttributesResponse'-    { _duarsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _duarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserAttributesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -133,12 +137,11 @@     :: Int -- ^ 'duarsResponseStatus'     -> DeleteUserAttributesResponse deleteUserAttributesResponse pResponseStatus_ =-    DeleteUserAttributesResponse'-    { _duarsResponseStatus = pResponseStatus_-    }+  DeleteUserAttributesResponse' {_duarsResponseStatus = pResponseStatus_} + -- | -- | The response status code. duarsResponseStatus :: Lens' DeleteUserAttributesResponse Int duarsResponseStatus = lens _duarsResponseStatus (\ s a -> s{_duarsResponseStatus = a}); -instance NFData DeleteUserAttributesResponse+instance NFData DeleteUserAttributesResponse where
gen/Network/AWS/CognitoIdentityProvider/DeleteUserPool.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DeleteUserPool--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,12 +34,12 @@     , DeleteUserPoolResponse     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to delete a user pool. --@@ -47,9 +47,10 @@ -- -- /See:/ 'deleteUserPool' smart constructor. newtype DeleteUserPool = DeleteUserPool'-    { _dupUserPoolId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dupUserPoolId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserPool' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -58,11 +59,9 @@ deleteUserPool     :: Text -- ^ 'dupUserPoolId'     -> DeleteUserPool-deleteUserPool pUserPoolId_ =-    DeleteUserPool'-    { _dupUserPoolId = pUserPoolId_-    }+deleteUserPool pUserPoolId_ = DeleteUserPool' {_dupUserPoolId = pUserPoolId_} + -- | The user pool ID for the user pool you want to delete. dupUserPoolId :: Lens' DeleteUserPool Text dupUserPoolId = lens _dupUserPoolId (\ s a -> s{_dupUserPoolId = a});@@ -72,9 +71,9 @@         request = postJSON cognitoIdentityProvider         response = receiveNull DeleteUserPoolResponse' -instance Hashable DeleteUserPool+instance Hashable DeleteUserPool where -instance NFData DeleteUserPool+instance NFData DeleteUserPool where  instance ToHeaders DeleteUserPool where         toHeaders@@ -99,13 +98,15 @@  -- | /See:/ 'deleteUserPoolResponse' smart constructor. data DeleteUserPoolResponse =-    DeleteUserPoolResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteUserPoolResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserPoolResponse' with the minimum fields required to make a request. -- deleteUserPoolResponse     :: DeleteUserPoolResponse deleteUserPoolResponse = DeleteUserPoolResponse' -instance NFData DeleteUserPoolResponse++instance NFData DeleteUserPoolResponse where
gen/Network/AWS/CognitoIdentityProvider/DeleteUserPoolClient.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DeleteUserPoolClient--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteUserPoolClientResponse     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to delete a user pool client. --@@ -48,32 +48,32 @@ -- -- /See:/ 'deleteUserPoolClient' smart constructor. data DeleteUserPoolClient = DeleteUserPoolClient'-    { _dupcUserPoolId :: !Text-    , _dupcClientId   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dupcUserPoolId :: !Text+  , _dupcClientId   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserPoolClient' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'dupcUserPoolId' - The user pool ID for the user pool where you want to delete the client. ----- * 'dupcClientId' - The ID of the client associated with the user pool.+-- * 'dupcClientId' - The app client ID of the app associated with the user pool. deleteUserPoolClient     :: Text -- ^ 'dupcUserPoolId'     -> Text -- ^ 'dupcClientId'     -> DeleteUserPoolClient deleteUserPoolClient pUserPoolId_ pClientId_ =-    DeleteUserPoolClient'-    { _dupcUserPoolId = pUserPoolId_-    , _dupcClientId = _Sensitive # pClientId_-    }+  DeleteUserPoolClient'+  {_dupcUserPoolId = pUserPoolId_, _dupcClientId = _Sensitive # pClientId_} + -- | The user pool ID for the user pool where you want to delete the client. dupcUserPoolId :: Lens' DeleteUserPoolClient Text dupcUserPoolId = lens _dupcUserPoolId (\ s a -> s{_dupcUserPoolId = a}); --- | The ID of the client associated with the user pool.+-- | The app client ID of the app associated with the user pool. dupcClientId :: Lens' DeleteUserPoolClient Text dupcClientId = lens _dupcClientId (\ s a -> s{_dupcClientId = a}) . _Sensitive; @@ -83,9 +83,9 @@         request = postJSON cognitoIdentityProvider         response = receiveNull DeleteUserPoolClientResponse' -instance Hashable DeleteUserPoolClient+instance Hashable DeleteUserPoolClient where -instance NFData DeleteUserPoolClient+instance NFData DeleteUserPoolClient where  instance ToHeaders DeleteUserPoolClient where         toHeaders@@ -112,13 +112,15 @@  -- | /See:/ 'deleteUserPoolClientResponse' smart constructor. data DeleteUserPoolClientResponse =-    DeleteUserPoolClientResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteUserPoolClientResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUserPoolClientResponse' with the minimum fields required to make a request. -- deleteUserPoolClientResponse     :: DeleteUserPoolClientResponse deleteUserPoolClientResponse = DeleteUserPoolClientResponse' -instance NFData DeleteUserPoolClientResponse++instance NFData DeleteUserPoolClientResponse where
+ gen/Network/AWS/CognitoIdentityProvider/DeleteUserPoolDomain.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a domain for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.DeleteUserPoolDomain+    (+    -- * Creating a Request+      deleteUserPoolDomain+    , DeleteUserPoolDomain+    -- * Request Lenses+    , dupdDomain+    , dupdUserPoolId++    -- * Destructuring the Response+    , deleteUserPoolDomainResponse+    , DeleteUserPoolDomainResponse+    -- * Response Lenses+    , dupdrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteUserPoolDomain' smart constructor.+data DeleteUserPoolDomain = DeleteUserPoolDomain'+  { _dupdDomain     :: !Text+  , _dupdUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteUserPoolDomain' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dupdDomain' - The domain string.+--+-- * 'dupdUserPoolId' - The user pool ID.+deleteUserPoolDomain+    :: Text -- ^ 'dupdDomain'+    -> Text -- ^ 'dupdUserPoolId'+    -> DeleteUserPoolDomain+deleteUserPoolDomain pDomain_ pUserPoolId_ =+  DeleteUserPoolDomain' {_dupdDomain = pDomain_, _dupdUserPoolId = pUserPoolId_}+++-- | The domain string.+dupdDomain :: Lens' DeleteUserPoolDomain Text+dupdDomain = lens _dupdDomain (\ s a -> s{_dupdDomain = a});++-- | The user pool ID.+dupdUserPoolId :: Lens' DeleteUserPoolDomain Text+dupdUserPoolId = lens _dupdUserPoolId (\ s a -> s{_dupdUserPoolId = a});++instance AWSRequest DeleteUserPoolDomain where+        type Rs DeleteUserPoolDomain =+             DeleteUserPoolDomainResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveEmpty+              (\ s h x ->+                 DeleteUserPoolDomainResponse' <$>+                   (pure (fromEnum s)))++instance Hashable DeleteUserPoolDomain where++instance NFData DeleteUserPoolDomain where++instance ToHeaders DeleteUserPoolDomain where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DeleteUserPoolDomain"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteUserPoolDomain where+        toJSON DeleteUserPoolDomain'{..}+          = object+              (catMaybes+                 [Just ("Domain" .= _dupdDomain),+                  Just ("UserPoolId" .= _dupdUserPoolId)])++instance ToPath DeleteUserPoolDomain where+        toPath = const "/"++instance ToQuery DeleteUserPoolDomain where+        toQuery = const mempty++-- | /See:/ 'deleteUserPoolDomainResponse' smart constructor.+newtype DeleteUserPoolDomainResponse = DeleteUserPoolDomainResponse'+  { _dupdrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteUserPoolDomainResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dupdrsResponseStatus' - -- | The response status code.+deleteUserPoolDomainResponse+    :: Int -- ^ 'dupdrsResponseStatus'+    -> DeleteUserPoolDomainResponse+deleteUserPoolDomainResponse pResponseStatus_ =+  DeleteUserPoolDomainResponse' {_dupdrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+dupdrsResponseStatus :: Lens' DeleteUserPoolDomainResponse Int+dupdrsResponseStatus = lens _dupdrsResponseStatus (\ s a -> s{_dupdrsResponseStatus = a});++instance NFData DeleteUserPoolDomainResponse where
+ gen/Network/AWS/CognitoIdentityProvider/DescribeIdentityProvider.hs view
@@ -0,0 +1,150 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a specific identity provider.+--+--+module Network.AWS.CognitoIdentityProvider.DescribeIdentityProvider+    (+    -- * Creating a Request+      describeIdentityProvider+    , DescribeIdentityProvider+    -- * Request Lenses+    , dipUserPoolId+    , dipProviderName++    -- * Destructuring the Response+    , describeIdentityProviderResponse+    , DescribeIdentityProviderResponse+    -- * Response Lenses+    , diprsResponseStatus+    , diprsIdentityProvider+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeIdentityProvider' smart constructor.+data DescribeIdentityProvider = DescribeIdentityProvider'+  { _dipUserPoolId   :: !Text+  , _dipProviderName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeIdentityProvider' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dipUserPoolId' - The user pool ID.+--+-- * 'dipProviderName' - The identity provider name.+describeIdentityProvider+    :: Text -- ^ 'dipUserPoolId'+    -> Text -- ^ 'dipProviderName'+    -> DescribeIdentityProvider+describeIdentityProvider pUserPoolId_ pProviderName_ =+  DescribeIdentityProvider'+  {_dipUserPoolId = pUserPoolId_, _dipProviderName = pProviderName_}+++-- | The user pool ID.+dipUserPoolId :: Lens' DescribeIdentityProvider Text+dipUserPoolId = lens _dipUserPoolId (\ s a -> s{_dipUserPoolId = a});++-- | The identity provider name.+dipProviderName :: Lens' DescribeIdentityProvider Text+dipProviderName = lens _dipProviderName (\ s a -> s{_dipProviderName = a});++instance AWSRequest DescribeIdentityProvider where+        type Rs DescribeIdentityProvider =+             DescribeIdentityProviderResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 DescribeIdentityProviderResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "IdentityProvider"))++instance Hashable DescribeIdentityProvider where++instance NFData DescribeIdentityProvider where++instance ToHeaders DescribeIdentityProvider where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DescribeIdentityProvider"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeIdentityProvider where+        toJSON DescribeIdentityProvider'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _dipUserPoolId),+                  Just ("ProviderName" .= _dipProviderName)])++instance ToPath DescribeIdentityProvider where+        toPath = const "/"++instance ToQuery DescribeIdentityProvider where+        toQuery = const mempty++-- | /See:/ 'describeIdentityProviderResponse' smart constructor.+data DescribeIdentityProviderResponse = DescribeIdentityProviderResponse'+  { _diprsResponseStatus   :: !Int+  , _diprsIdentityProvider :: !IdentityProviderType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeIdentityProviderResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'diprsResponseStatus' - -- | The response status code.+--+-- * 'diprsIdentityProvider' - The identity provider that was deleted.+describeIdentityProviderResponse+    :: Int -- ^ 'diprsResponseStatus'+    -> IdentityProviderType -- ^ 'diprsIdentityProvider'+    -> DescribeIdentityProviderResponse+describeIdentityProviderResponse pResponseStatus_ pIdentityProvider_ =+  DescribeIdentityProviderResponse'+  { _diprsResponseStatus = pResponseStatus_+  , _diprsIdentityProvider = pIdentityProvider_+  }+++-- | -- | The response status code.+diprsResponseStatus :: Lens' DescribeIdentityProviderResponse Int+diprsResponseStatus = lens _diprsResponseStatus (\ s a -> s{_diprsResponseStatus = a});++-- | The identity provider that was deleted.+diprsIdentityProvider :: Lens' DescribeIdentityProviderResponse IdentityProviderType+diprsIdentityProvider = lens _diprsIdentityProvider (\ s a -> s{_diprsIdentityProvider = a});++instance NFData DescribeIdentityProviderResponse+         where
+ gen/Network/AWS/CognitoIdentityProvider/DescribeResourceServer.hs view
@@ -0,0 +1,149 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DescribeResourceServer+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Describes a resource server.+--+--+module Network.AWS.CognitoIdentityProvider.DescribeResourceServer+    (+    -- * Creating a Request+      describeResourceServer+    , DescribeResourceServer+    -- * Request Lenses+    , desUserPoolId+    , desIdentifier++    -- * Destructuring the Response+    , describeResourceServerResponse+    , DescribeResourceServerResponse+    -- * Response Lenses+    , drsrsResponseStatus+    , drsrsResourceServer+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeResourceServer' smart constructor.+data DescribeResourceServer = DescribeResourceServer'+  { _desUserPoolId :: !Text+  , _desIdentifier :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeResourceServer' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'desUserPoolId' - The user pool ID for the user pool that hosts the resource server.+--+-- * 'desIdentifier' - The identifier for the resource server+describeResourceServer+    :: Text -- ^ 'desUserPoolId'+    -> Text -- ^ 'desIdentifier'+    -> DescribeResourceServer+describeResourceServer pUserPoolId_ pIdentifier_ =+  DescribeResourceServer'+  {_desUserPoolId = pUserPoolId_, _desIdentifier = pIdentifier_}+++-- | The user pool ID for the user pool that hosts the resource server.+desUserPoolId :: Lens' DescribeResourceServer Text+desUserPoolId = lens _desUserPoolId (\ s a -> s{_desUserPoolId = a});++-- | The identifier for the resource server+desIdentifier :: Lens' DescribeResourceServer Text+desIdentifier = lens _desIdentifier (\ s a -> s{_desIdentifier = a});++instance AWSRequest DescribeResourceServer where+        type Rs DescribeResourceServer =+             DescribeResourceServerResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 DescribeResourceServerResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "ResourceServer"))++instance Hashable DescribeResourceServer where++instance NFData DescribeResourceServer where++instance ToHeaders DescribeResourceServer where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DescribeResourceServer"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeResourceServer where+        toJSON DescribeResourceServer'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _desUserPoolId),+                  Just ("Identifier" .= _desIdentifier)])++instance ToPath DescribeResourceServer where+        toPath = const "/"++instance ToQuery DescribeResourceServer where+        toQuery = const mempty++-- | /See:/ 'describeResourceServerResponse' smart constructor.+data DescribeResourceServerResponse = DescribeResourceServerResponse'+  { _drsrsResponseStatus :: !Int+  , _drsrsResourceServer :: !ResourceServerType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeResourceServerResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsrsResponseStatus' - -- | The response status code.+--+-- * 'drsrsResourceServer' - The resource server.+describeResourceServerResponse+    :: Int -- ^ 'drsrsResponseStatus'+    -> ResourceServerType -- ^ 'drsrsResourceServer'+    -> DescribeResourceServerResponse+describeResourceServerResponse pResponseStatus_ pResourceServer_ =+  DescribeResourceServerResponse'+  { _drsrsResponseStatus = pResponseStatus_+  , _drsrsResourceServer = pResourceServer_+  }+++-- | -- | The response status code.+drsrsResponseStatus :: Lens' DescribeResourceServerResponse Int+drsrsResponseStatus = lens _drsrsResponseStatus (\ s a -> s{_drsrsResponseStatus = a});++-- | The resource server.+drsrsResourceServer :: Lens' DescribeResourceServerResponse ResourceServerType+drsrsResourceServer = lens _drsrsResourceServer (\ s a -> s{_drsrsResourceServer = a});++instance NFData DescribeResourceServerResponse where
gen/Network/AWS/CognitoIdentityProvider/DescribeUserImportJob.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DescribeUserImportJob--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , duijrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to describe the user import job. --@@ -51,10 +51,11 @@ -- -- /See:/ 'describeUserImportJob' smart constructor. data DescribeUserImportJob = DescribeUserImportJob'-    { _duijUserPoolId :: !Text-    , _duijJobId      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _duijUserPoolId :: !Text+  , _duijJobId      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DescribeUserImportJob' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -67,11 +68,9 @@     -> Text -- ^ 'duijJobId'     -> DescribeUserImportJob describeUserImportJob pUserPoolId_ pJobId_ =-    DescribeUserImportJob'-    { _duijUserPoolId = pUserPoolId_-    , _duijJobId = pJobId_-    }+  DescribeUserImportJob' {_duijUserPoolId = pUserPoolId_, _duijJobId = pJobId_} + -- | The user pool ID for the user pool that the users are being imported into. duijUserPoolId :: Lens' DescribeUserImportJob Text duijUserPoolId = lens _duijUserPoolId (\ s a -> s{_duijUserPoolId = a});@@ -90,9 +89,9 @@                  DescribeUserImportJobResponse' <$>                    (x .?> "UserImportJob") <*> (pure (fromEnum s))) -instance Hashable DescribeUserImportJob+instance Hashable DescribeUserImportJob where -instance NFData DescribeUserImportJob+instance NFData DescribeUserImportJob where  instance ToHeaders DescribeUserImportJob where         toHeaders@@ -123,10 +122,11 @@ -- -- /See:/ 'describeUserImportJobResponse' smart constructor. data DescribeUserImportJobResponse = DescribeUserImportJobResponse'-    { _duijrsUserImportJob  :: !(Maybe UserImportJobType)-    , _duijrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _duijrsUserImportJob  :: !(Maybe UserImportJobType)+  , _duijrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DescribeUserImportJobResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -138,11 +138,10 @@     :: Int -- ^ 'duijrsResponseStatus'     -> DescribeUserImportJobResponse describeUserImportJobResponse pResponseStatus_ =-    DescribeUserImportJobResponse'-    { _duijrsUserImportJob = Nothing-    , _duijrsResponseStatus = pResponseStatus_-    }+  DescribeUserImportJobResponse'+  {_duijrsUserImportJob = Nothing, _duijrsResponseStatus = pResponseStatus_} + -- | The job object that represents the user import job. duijrsUserImportJob :: Lens' DescribeUserImportJobResponse (Maybe UserImportJobType) duijrsUserImportJob = lens _duijrsUserImportJob (\ s a -> s{_duijrsUserImportJob = a});@@ -151,4 +150,4 @@ duijrsResponseStatus :: Lens' DescribeUserImportJobResponse Int duijrsResponseStatus = lens _duijrsResponseStatus (\ s a -> s{_duijrsResponseStatus = a}); -instance NFData DescribeUserImportJobResponse+instance NFData DescribeUserImportJobResponse where
gen/Network/AWS/CognitoIdentityProvider/DescribeUserPool.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DescribeUserPool--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , duprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to describe the user pool. --@@ -50,9 +50,10 @@ -- -- /See:/ 'describeUserPool' smart constructor. newtype DescribeUserPool = DescribeUserPool'-    { _dUserPoolId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dUserPoolId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DescribeUserPool' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -61,11 +62,9 @@ describeUserPool     :: Text -- ^ 'dUserPoolId'     -> DescribeUserPool-describeUserPool pUserPoolId_ =-    DescribeUserPool'-    { _dUserPoolId = pUserPoolId_-    }+describeUserPool pUserPoolId_ = DescribeUserPool' {_dUserPoolId = pUserPoolId_} + -- | The user pool ID for the user pool you want to describe. dUserPoolId :: Lens' DescribeUserPool Text dUserPoolId = lens _dUserPoolId (\ s a -> s{_dUserPoolId = a});@@ -79,9 +78,9 @@                  DescribeUserPoolResponse' <$>                    (x .?> "UserPool") <*> (pure (fromEnum s))) -instance Hashable DescribeUserPool+instance Hashable DescribeUserPool where -instance NFData DescribeUserPool+instance NFData DescribeUserPool where  instance ToHeaders DescribeUserPool where         toHeaders@@ -110,10 +109,11 @@ -- -- /See:/ 'describeUserPoolResponse' smart constructor. data DescribeUserPoolResponse = DescribeUserPoolResponse'-    { _duprsUserPool       :: !(Maybe UserPoolType)-    , _duprsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _duprsUserPool       :: !(Maybe UserPoolType)+  , _duprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DescribeUserPoolResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -125,11 +125,10 @@     :: Int -- ^ 'duprsResponseStatus'     -> DescribeUserPoolResponse describeUserPoolResponse pResponseStatus_ =-    DescribeUserPoolResponse'-    { _duprsUserPool = Nothing-    , _duprsResponseStatus = pResponseStatus_-    }+  DescribeUserPoolResponse'+  {_duprsUserPool = Nothing, _duprsResponseStatus = pResponseStatus_} + -- | The container of metadata returned by the server to describe the pool. duprsUserPool :: Lens' DescribeUserPoolResponse (Maybe UserPoolType) duprsUserPool = lens _duprsUserPool (\ s a -> s{_duprsUserPool = a});@@ -138,4 +137,4 @@ duprsResponseStatus :: Lens' DescribeUserPoolResponse Int duprsResponseStatus = lens _duprsResponseStatus (\ s a -> s{_duprsResponseStatus = a}); -instance NFData DescribeUserPoolResponse+instance NFData DescribeUserPoolResponse where
gen/Network/AWS/CognitoIdentityProvider/DescribeUserPoolClient.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.DescribeUserPoolClient--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,8 +27,8 @@       describeUserPoolClient     , DescribeUserPoolClient     -- * Request Lenses-    , desUserPoolId-    , desClientId+    , dupcuUserPoolId+    , dupcuClientId      -- * Destructuring the Response     , describeUserPoolClientResponse@@ -38,12 +38,12 @@     , dupcrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to describe a user pool client. --@@ -51,34 +51,34 @@ -- -- /See:/ 'describeUserPoolClient' smart constructor. data DescribeUserPoolClient = DescribeUserPoolClient'-    { _desUserPoolId :: !Text-    , _desClientId   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dupcuUserPoolId :: !Text+  , _dupcuClientId   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'DescribeUserPoolClient' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'desUserPoolId' - The user pool ID for the user pool you want to describe.+-- * 'dupcuUserPoolId' - The user pool ID for the user pool you want to describe. ----- * 'desClientId' - The ID of the client associated with the user pool.+-- * 'dupcuClientId' - The app client ID of the app associated with the user pool. describeUserPoolClient-    :: Text -- ^ 'desUserPoolId'-    -> Text -- ^ 'desClientId'+    :: Text -- ^ 'dupcuUserPoolId'+    -> Text -- ^ 'dupcuClientId'     -> DescribeUserPoolClient describeUserPoolClient pUserPoolId_ pClientId_ =-    DescribeUserPoolClient'-    { _desUserPoolId = pUserPoolId_-    , _desClientId = _Sensitive # pClientId_-    }+  DescribeUserPoolClient'+  {_dupcuUserPoolId = pUserPoolId_, _dupcuClientId = _Sensitive # pClientId_} + -- | The user pool ID for the user pool you want to describe.-desUserPoolId :: Lens' DescribeUserPoolClient Text-desUserPoolId = lens _desUserPoolId (\ s a -> s{_desUserPoolId = a});+dupcuUserPoolId :: Lens' DescribeUserPoolClient Text+dupcuUserPoolId = lens _dupcuUserPoolId (\ s a -> s{_dupcuUserPoolId = a}); --- | The ID of the client associated with the user pool.-desClientId :: Lens' DescribeUserPoolClient Text-desClientId = lens _desClientId (\ s a -> s{_desClientId = a}) . _Sensitive;+-- | The app client ID of the app associated with the user pool.+dupcuClientId :: Lens' DescribeUserPoolClient Text+dupcuClientId = lens _dupcuClientId (\ s a -> s{_dupcuClientId = a}) . _Sensitive;  instance AWSRequest DescribeUserPoolClient where         type Rs DescribeUserPoolClient =@@ -90,9 +90,9 @@                  DescribeUserPoolClientResponse' <$>                    (x .?> "UserPoolClient") <*> (pure (fromEnum s))) -instance Hashable DescribeUserPoolClient+instance Hashable DescribeUserPoolClient where -instance NFData DescribeUserPoolClient+instance NFData DescribeUserPoolClient where  instance ToHeaders DescribeUserPoolClient where         toHeaders@@ -108,8 +108,8 @@         toJSON DescribeUserPoolClient'{..}           = object               (catMaybes-                 [Just ("UserPoolId" .= _desUserPoolId),-                  Just ("ClientId" .= _desClientId)])+                 [Just ("UserPoolId" .= _dupcuUserPoolId),+                  Just ("ClientId" .= _dupcuClientId)])  instance ToPath DescribeUserPoolClient where         toPath = const "/"@@ -123,10 +123,11 @@ -- -- /See:/ 'describeUserPoolClientResponse' smart constructor. data DescribeUserPoolClientResponse = DescribeUserPoolClientResponse'-    { _dupcrsUserPoolClient :: !(Maybe UserPoolClientType)-    , _dupcrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dupcrsUserPoolClient :: !(Maybe UserPoolClientType)+  , _dupcrsResponseStatus :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'DescribeUserPoolClientResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -138,11 +139,10 @@     :: Int -- ^ 'dupcrsResponseStatus'     -> DescribeUserPoolClientResponse describeUserPoolClientResponse pResponseStatus_ =-    DescribeUserPoolClientResponse'-    { _dupcrsUserPoolClient = Nothing-    , _dupcrsResponseStatus = pResponseStatus_-    }+  DescribeUserPoolClientResponse'+  {_dupcrsUserPoolClient = Nothing, _dupcrsResponseStatus = pResponseStatus_} + -- | The user pool client from a server response to describe the user pool client. dupcrsUserPoolClient :: Lens' DescribeUserPoolClientResponse (Maybe UserPoolClientType) dupcrsUserPoolClient = lens _dupcrsUserPoolClient (\ s a -> s{_dupcrsUserPoolClient = a});@@ -151,4 +151,4 @@ dupcrsResponseStatus :: Lens' DescribeUserPoolClientResponse Int dupcrsResponseStatus = lens _dupcrsResponseStatus (\ s a -> s{_dupcrsResponseStatus = a}); -instance NFData DescribeUserPoolClientResponse+instance NFData DescribeUserPoolClientResponse where
+ gen/Network/AWS/CognitoIdentityProvider/DescribeUserPoolDomain.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a domain.+--+--+module Network.AWS.CognitoIdentityProvider.DescribeUserPoolDomain+    (+    -- * Creating a Request+      describeUserPoolDomain+    , DescribeUserPoolDomain+    -- * Request Lenses+    , dDomain++    -- * Destructuring the Response+    , describeUserPoolDomainResponse+    , DescribeUserPoolDomainResponse+    -- * Response Lenses+    , drsDomainDescription+    , drsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeUserPoolDomain' smart constructor.+newtype DescribeUserPoolDomain = DescribeUserPoolDomain'+  { _dDomain :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeUserPoolDomain' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dDomain' - The domain string.+describeUserPoolDomain+    :: Text -- ^ 'dDomain'+    -> DescribeUserPoolDomain+describeUserPoolDomain pDomain_ = DescribeUserPoolDomain' {_dDomain = pDomain_}+++-- | The domain string.+dDomain :: Lens' DescribeUserPoolDomain Text+dDomain = lens _dDomain (\ s a -> s{_dDomain = a});++instance AWSRequest DescribeUserPoolDomain where+        type Rs DescribeUserPoolDomain =+             DescribeUserPoolDomainResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 DescribeUserPoolDomainResponse' <$>+                   (x .?> "DomainDescription") <*> (pure (fromEnum s)))++instance Hashable DescribeUserPoolDomain where++instance NFData DescribeUserPoolDomain where++instance ToHeaders DescribeUserPoolDomain where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.DescribeUserPoolDomain"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeUserPoolDomain where+        toJSON DescribeUserPoolDomain'{..}+          = object (catMaybes [Just ("Domain" .= _dDomain)])++instance ToPath DescribeUserPoolDomain where+        toPath = const "/"++instance ToQuery DescribeUserPoolDomain where+        toQuery = const mempty++-- | /See:/ 'describeUserPoolDomainResponse' smart constructor.+data DescribeUserPoolDomainResponse = DescribeUserPoolDomainResponse'+  { _drsDomainDescription :: !(Maybe DomainDescriptionType)+  , _drsResponseStatus    :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeUserPoolDomainResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsDomainDescription' - A domain description object containing information about the domain.+--+-- * 'drsResponseStatus' - -- | The response status code.+describeUserPoolDomainResponse+    :: Int -- ^ 'drsResponseStatus'+    -> DescribeUserPoolDomainResponse+describeUserPoolDomainResponse pResponseStatus_ =+  DescribeUserPoolDomainResponse'+  {_drsDomainDescription = Nothing, _drsResponseStatus = pResponseStatus_}+++-- | A domain description object containing information about the domain.+drsDomainDescription :: Lens' DescribeUserPoolDomainResponse (Maybe DomainDescriptionType)+drsDomainDescription = lens _drsDomainDescription (\ s a -> s{_drsDomainDescription = a});++-- | -- | The response status code.+drsResponseStatus :: Lens' DescribeUserPoolDomainResponse Int+drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a});++instance NFData DescribeUserPoolDomainResponse where
gen/Network/AWS/CognitoIdentityProvider/ForgetDevice.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ForgetDevice--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , ForgetDeviceResponse     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to forget the device. --@@ -48,10 +48,11 @@ -- -- /See:/ 'forgetDevice' smart constructor. data ForgetDevice = ForgetDevice'-    { _fdAccessToken :: !(Maybe (Sensitive Text))-    , _fdDeviceKey   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _fdAccessToken :: !(Maybe (Sensitive Text))+  , _fdDeviceKey   :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ForgetDevice' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -63,11 +64,9 @@     :: Text -- ^ 'fdDeviceKey'     -> ForgetDevice forgetDevice pDeviceKey_ =-    ForgetDevice'-    { _fdAccessToken = Nothing-    , _fdDeviceKey = pDeviceKey_-    }+  ForgetDevice' {_fdAccessToken = Nothing, _fdDeviceKey = pDeviceKey_} + -- | The access token for the forgotten device request. fdAccessToken :: Lens' ForgetDevice (Maybe Text) fdAccessToken = lens _fdAccessToken (\ s a -> s{_fdAccessToken = a}) . mapping _Sensitive;@@ -81,9 +80,9 @@         request = postJSON cognitoIdentityProvider         response = receiveNull ForgetDeviceResponse' -instance Hashable ForgetDevice+instance Hashable ForgetDevice where -instance NFData ForgetDevice+instance NFData ForgetDevice where  instance ToHeaders ForgetDevice where         toHeaders@@ -110,13 +109,15 @@  -- | /See:/ 'forgetDeviceResponse' smart constructor. data ForgetDeviceResponse =-    ForgetDeviceResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  ForgetDeviceResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ForgetDeviceResponse' with the minimum fields required to make a request. -- forgetDeviceResponse     :: ForgetDeviceResponse forgetDeviceResponse = ForgetDeviceResponse' -instance NFData ForgetDeviceResponse++instance NFData ForgetDeviceResponse where
gen/Network/AWS/CognitoIdentityProvider/ForgotPassword.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ForgotPassword--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves the password for the specified client ID or username.+-- Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user's password. For the @Username@ parameter, you can use the username or user alias. If a verified phone number exists for the user, the confirmation code is sent to the phone number. Otherwise, if a verified email exists, the confirmation code is sent to the email. If neither a verified phone number nor a verified email exists, @InvalidParameterException@ is thrown. To use the confirmation code for resetting the password, call <API_ConfirmForgotPassword.html ConfirmForgotPassword> . -- -- module Network.AWS.CognitoIdentityProvider.ForgotPassword@@ -39,12 +39,12 @@     , fprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to reset a user's password. --@@ -52,11 +52,12 @@ -- -- /See:/ 'forgotPassword' smart constructor. data ForgotPassword = ForgotPassword'-    { _fpSecretHash :: !(Maybe (Sensitive Text))-    , _fpClientId   :: !(Sensitive Text)-    , _fpUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _fpSecretHash :: !(Maybe (Sensitive Text))+  , _fpClientId   :: !(Sensitive Text)+  , _fpUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ForgotPassword' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -71,12 +72,13 @@     -> Text -- ^ 'fpUsername'     -> ForgotPassword forgotPassword pClientId_ pUsername_ =-    ForgotPassword'-    { _fpSecretHash = Nothing-    , _fpClientId = _Sensitive # pClientId_-    , _fpUsername = _Sensitive # pUsername_-    }+  ForgotPassword'+  { _fpSecretHash = Nothing+  , _fpClientId = _Sensitive # pClientId_+  , _fpUsername = _Sensitive # pUsername_+  } + -- | A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. fpSecretHash :: Lens' ForgotPassword (Maybe Text) fpSecretHash = lens _fpSecretHash (\ s a -> s{_fpSecretHash = a}) . mapping _Sensitive;@@ -99,9 +101,9 @@                    (x .?> "CodeDeliveryDetails") <*>                      (pure (fromEnum s))) -instance Hashable ForgotPassword+instance Hashable ForgotPassword where -instance NFData ForgotPassword+instance NFData ForgotPassword where  instance ToHeaders ForgotPassword where         toHeaders@@ -133,10 +135,11 @@ -- -- /See:/ 'forgotPasswordResponse' smart constructor. data ForgotPasswordResponse = ForgotPasswordResponse'-    { _fprsCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)-    , _fprsResponseStatus      :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _fprsCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)+  , _fprsResponseStatus      :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ForgotPasswordResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -148,11 +151,10 @@     :: Int -- ^ 'fprsResponseStatus'     -> ForgotPasswordResponse forgotPasswordResponse pResponseStatus_ =-    ForgotPasswordResponse'-    { _fprsCodeDeliveryDetails = Nothing-    , _fprsResponseStatus = pResponseStatus_-    }+  ForgotPasswordResponse'+  {_fprsCodeDeliveryDetails = Nothing, _fprsResponseStatus = pResponseStatus_} + -- | The code delivery details returned by the server in response to the request to reset a password. fprsCodeDeliveryDetails :: Lens' ForgotPasswordResponse (Maybe CodeDeliveryDetailsType) fprsCodeDeliveryDetails = lens _fprsCodeDeliveryDetails (\ s a -> s{_fprsCodeDeliveryDetails = a});@@ -161,4 +163,4 @@ fprsResponseStatus :: Lens' ForgotPasswordResponse Int fprsResponseStatus = lens _fprsResponseStatus (\ s a -> s{_fprsResponseStatus = a}); -instance NFData ForgotPasswordResponse+instance NFData ForgotPasswordResponse where
gen/Network/AWS/CognitoIdentityProvider/GetCSVHeader.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.GetCSVHeader--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , gchrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to get the header information for the .csv file for the user import job. --@@ -51,9 +51,10 @@ -- -- /See:/ 'getCSVHeader' smart constructor. newtype GetCSVHeader = GetCSVHeader'-    { _gchUserPoolId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gchUserPoolId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetCSVHeader' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -62,11 +63,9 @@ getCSVHeader     :: Text -- ^ 'gchUserPoolId'     -> GetCSVHeader-getCSVHeader pUserPoolId_ =-    GetCSVHeader'-    { _gchUserPoolId = pUserPoolId_-    }+getCSVHeader pUserPoolId_ = GetCSVHeader' {_gchUserPoolId = pUserPoolId_} + -- | The user pool ID for the user pool that the users are to be imported into. gchUserPoolId :: Lens' GetCSVHeader Text gchUserPoolId = lens _gchUserPoolId (\ s a -> s{_gchUserPoolId = a});@@ -82,9 +81,9 @@                      (x .?> "CSVHeader" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable GetCSVHeader+instance Hashable GetCSVHeader where -instance NFData GetCSVHeader+instance NFData GetCSVHeader where  instance ToHeaders GetCSVHeader where         toHeaders@@ -113,11 +112,12 @@ -- -- /See:/ 'getCSVHeaderResponse' smart constructor. data GetCSVHeaderResponse = GetCSVHeaderResponse'-    { _gchrsUserPoolId     :: !(Maybe Text)-    , _gchrsCSVHeader      :: !(Maybe [Text])-    , _gchrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gchrsUserPoolId     :: !(Maybe Text)+  , _gchrsCSVHeader      :: !(Maybe [Text])+  , _gchrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetCSVHeaderResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -131,12 +131,13 @@     :: Int -- ^ 'gchrsResponseStatus'     -> GetCSVHeaderResponse getCSVHeaderResponse pResponseStatus_ =-    GetCSVHeaderResponse'-    { _gchrsUserPoolId = Nothing-    , _gchrsCSVHeader = Nothing-    , _gchrsResponseStatus = pResponseStatus_-    }+  GetCSVHeaderResponse'+  { _gchrsUserPoolId = Nothing+  , _gchrsCSVHeader = Nothing+  , _gchrsResponseStatus = pResponseStatus_+  } + -- | The user pool ID for the user pool that the users are to be imported into. gchrsUserPoolId :: Lens' GetCSVHeaderResponse (Maybe Text) gchrsUserPoolId = lens _gchrsUserPoolId (\ s a -> s{_gchrsUserPoolId = a});@@ -149,4 +150,4 @@ gchrsResponseStatus :: Lens' GetCSVHeaderResponse Int gchrsResponseStatus = lens _gchrsResponseStatus (\ s a -> s{_gchrsResponseStatus = a}); -instance NFData GetCSVHeaderResponse+instance NFData GetCSVHeaderResponse where
gen/Network/AWS/CognitoIdentityProvider/GetDevice.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.GetDevice--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , gdrsDevice     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to get the device. --@@ -51,10 +51,11 @@ -- -- /See:/ 'getDevice' smart constructor. data GetDevice = GetDevice'-    { _gdAccessToken :: !(Maybe (Sensitive Text))-    , _gdDeviceKey   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdAccessToken :: !(Maybe (Sensitive Text))+  , _gdDeviceKey   :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDevice' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +67,9 @@     :: Text -- ^ 'gdDeviceKey'     -> GetDevice getDevice pDeviceKey_ =-    GetDevice'-    { _gdAccessToken = Nothing-    , _gdDeviceKey = pDeviceKey_-    }+  GetDevice' {_gdAccessToken = Nothing, _gdDeviceKey = pDeviceKey_} + -- | The access token. gdAccessToken :: Lens' GetDevice (Maybe Text) gdAccessToken = lens _gdAccessToken (\ s a -> s{_gdAccessToken = a}) . mapping _Sensitive;@@ -88,9 +87,9 @@                  GetDeviceResponse' <$>                    (pure (fromEnum s)) <*> (x .:> "Device")) -instance Hashable GetDevice+instance Hashable GetDevice where -instance NFData GetDevice+instance NFData GetDevice where  instance ToHeaders GetDevice where         toHeaders@@ -121,10 +120,11 @@ -- -- /See:/ 'getDeviceResponse' smart constructor. data GetDeviceResponse = GetDeviceResponse'-    { _gdrsResponseStatus :: !Int-    , _gdrsDevice         :: !DeviceType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdrsResponseStatus :: !Int+  , _gdrsDevice         :: !DeviceType+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDeviceResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -137,11 +137,10 @@     -> DeviceType -- ^ 'gdrsDevice'     -> GetDeviceResponse getDeviceResponse pResponseStatus_ pDevice_ =-    GetDeviceResponse'-    { _gdrsResponseStatus = pResponseStatus_-    , _gdrsDevice = pDevice_-    }+  GetDeviceResponse'+  {_gdrsResponseStatus = pResponseStatus_, _gdrsDevice = pDevice_} + -- | -- | The response status code. gdrsResponseStatus :: Lens' GetDeviceResponse Int gdrsResponseStatus = lens _gdrsResponseStatus (\ s a -> s{_gdrsResponseStatus = a});@@ -150,4 +149,4 @@ gdrsDevice :: Lens' GetDeviceResponse DeviceType gdrsDevice = lens _gdrsDevice (\ s a -> s{_gdrsDevice = a}); -instance NFData GetDeviceResponse+instance NFData GetDeviceResponse where
+ gen/Network/AWS/CognitoIdentityProvider/GetGroup.hs view
@@ -0,0 +1,146 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.GetGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets a group.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.GetGroup+    (+    -- * Creating a Request+      getGroup+    , GetGroup+    -- * Request Lenses+    , ggGroupName+    , ggUserPoolId++    -- * Destructuring the Response+    , getGroupResponse+    , GetGroupResponse+    -- * Response Lenses+    , ggrsGroup+    , ggrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getGroup' smart constructor.+data GetGroup = GetGroup'+  { _ggGroupName  :: !Text+  , _ggUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ggGroupName' - The name of the group.+--+-- * 'ggUserPoolId' - The user pool ID for the user pool.+getGroup+    :: Text -- ^ 'ggGroupName'+    -> Text -- ^ 'ggUserPoolId'+    -> GetGroup+getGroup pGroupName_ pUserPoolId_ =+  GetGroup' {_ggGroupName = pGroupName_, _ggUserPoolId = pUserPoolId_}+++-- | The name of the group.+ggGroupName :: Lens' GetGroup Text+ggGroupName = lens _ggGroupName (\ s a -> s{_ggGroupName = a});++-- | The user pool ID for the user pool.+ggUserPoolId :: Lens' GetGroup Text+ggUserPoolId = lens _ggUserPoolId (\ s a -> s{_ggUserPoolId = a});++instance AWSRequest GetGroup where+        type Rs GetGroup = GetGroupResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 GetGroupResponse' <$>+                   (x .?> "Group") <*> (pure (fromEnum s)))++instance Hashable GetGroup where++instance NFData GetGroup where++instance ToHeaders GetGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.GetGroup" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetGroup where+        toJSON GetGroup'{..}+          = object+              (catMaybes+                 [Just ("GroupName" .= _ggGroupName),+                  Just ("UserPoolId" .= _ggUserPoolId)])++instance ToPath GetGroup where+        toPath = const "/"++instance ToQuery GetGroup where+        toQuery = const mempty++-- | /See:/ 'getGroupResponse' smart constructor.+data GetGroupResponse = GetGroupResponse'+  { _ggrsGroup          :: !(Maybe GroupType)+  , _ggrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetGroupResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ggrsGroup' - The group object for the group.+--+-- * 'ggrsResponseStatus' - -- | The response status code.+getGroupResponse+    :: Int -- ^ 'ggrsResponseStatus'+    -> GetGroupResponse+getGroupResponse pResponseStatus_ =+  GetGroupResponse'+  {_ggrsGroup = Nothing, _ggrsResponseStatus = pResponseStatus_}+++-- | The group object for the group.+ggrsGroup :: Lens' GetGroupResponse (Maybe GroupType)+ggrsGroup = lens _ggrsGroup (\ s a -> s{_ggrsGroup = a});++-- | -- | The response status code.+ggrsResponseStatus :: Lens' GetGroupResponse Int+ggrsResponseStatus = lens _ggrsResponseStatus (\ s a -> s{_ggrsResponseStatus = a});++instance NFData GetGroupResponse where
+ gen/Network/AWS/CognitoIdentityProvider/GetIdentityProviderByIdentifier.hs view
@@ -0,0 +1,155 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the specified identity provider.+--+--+module Network.AWS.CognitoIdentityProvider.GetIdentityProviderByIdentifier+    (+    -- * Creating a Request+      getIdentityProviderByIdentifier+    , GetIdentityProviderByIdentifier+    -- * Request Lenses+    , gipbiUserPoolId+    , gipbiIdpIdentifier++    -- * Destructuring the Response+    , getIdentityProviderByIdentifierResponse+    , GetIdentityProviderByIdentifierResponse+    -- * Response Lenses+    , gipbirsResponseStatus+    , gipbirsIdentityProvider+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getIdentityProviderByIdentifier' smart constructor.+data GetIdentityProviderByIdentifier = GetIdentityProviderByIdentifier'+  { _gipbiUserPoolId    :: !Text+  , _gipbiIdpIdentifier :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetIdentityProviderByIdentifier' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gipbiUserPoolId' - The user pool ID.+--+-- * 'gipbiIdpIdentifier' - The identity provider ID.+getIdentityProviderByIdentifier+    :: Text -- ^ 'gipbiUserPoolId'+    -> Text -- ^ 'gipbiIdpIdentifier'+    -> GetIdentityProviderByIdentifier+getIdentityProviderByIdentifier pUserPoolId_ pIdpIdentifier_ =+  GetIdentityProviderByIdentifier'+  {_gipbiUserPoolId = pUserPoolId_, _gipbiIdpIdentifier = pIdpIdentifier_}+++-- | The user pool ID.+gipbiUserPoolId :: Lens' GetIdentityProviderByIdentifier Text+gipbiUserPoolId = lens _gipbiUserPoolId (\ s a -> s{_gipbiUserPoolId = a});++-- | The identity provider ID.+gipbiIdpIdentifier :: Lens' GetIdentityProviderByIdentifier Text+gipbiIdpIdentifier = lens _gipbiIdpIdentifier (\ s a -> s{_gipbiIdpIdentifier = a});++instance AWSRequest GetIdentityProviderByIdentifier+         where+        type Rs GetIdentityProviderByIdentifier =+             GetIdentityProviderByIdentifierResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 GetIdentityProviderByIdentifierResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "IdentityProvider"))++instance Hashable GetIdentityProviderByIdentifier+         where++instance NFData GetIdentityProviderByIdentifier where++instance ToHeaders GetIdentityProviderByIdentifier+         where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.GetIdentityProviderByIdentifier"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetIdentityProviderByIdentifier where+        toJSON GetIdentityProviderByIdentifier'{..}+          = object+              (catMaybes+                 [Just ("UserPoolId" .= _gipbiUserPoolId),+                  Just ("IdpIdentifier" .= _gipbiIdpIdentifier)])++instance ToPath GetIdentityProviderByIdentifier where+        toPath = const "/"++instance ToQuery GetIdentityProviderByIdentifier+         where+        toQuery = const mempty++-- | /See:/ 'getIdentityProviderByIdentifierResponse' smart constructor.+data GetIdentityProviderByIdentifierResponse = GetIdentityProviderByIdentifierResponse'+  { _gipbirsResponseStatus   :: !Int+  , _gipbirsIdentityProvider :: !IdentityProviderType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetIdentityProviderByIdentifierResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gipbirsResponseStatus' - -- | The response status code.+--+-- * 'gipbirsIdentityProvider' - The identity provider object.+getIdentityProviderByIdentifierResponse+    :: Int -- ^ 'gipbirsResponseStatus'+    -> IdentityProviderType -- ^ 'gipbirsIdentityProvider'+    -> GetIdentityProviderByIdentifierResponse+getIdentityProviderByIdentifierResponse pResponseStatus_ pIdentityProvider_ =+  GetIdentityProviderByIdentifierResponse'+  { _gipbirsResponseStatus = pResponseStatus_+  , _gipbirsIdentityProvider = pIdentityProvider_+  }+++-- | -- | The response status code.+gipbirsResponseStatus :: Lens' GetIdentityProviderByIdentifierResponse Int+gipbirsResponseStatus = lens _gipbirsResponseStatus (\ s a -> s{_gipbirsResponseStatus = a});++-- | The identity provider object.+gipbirsIdentityProvider :: Lens' GetIdentityProviderByIdentifierResponse IdentityProviderType+gipbirsIdentityProvider = lens _gipbirsIdentityProvider (\ s a -> s{_gipbirsIdentityProvider = a});++instance NFData+           GetIdentityProviderByIdentifierResponse+         where
+ gen/Network/AWS/CognitoIdentityProvider/GetUICustomization.hs view
@@ -0,0 +1,147 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.GetUICustomization+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the UI Customization information for a particular app client's app UI, if there is something set. If nothing is set for the particular client, but there is an existing pool level customization (app @clientId@ will be @ALL@ ), then that is returned. If nothing is present, then an empty shape is returned.+--+--+module Network.AWS.CognitoIdentityProvider.GetUICustomization+    (+    -- * Creating a Request+      getUICustomization+    , GetUICustomization+    -- * Request Lenses+    , guicClientId+    , guicUserPoolId++    -- * Destructuring the Response+    , getUICustomizationResponse+    , GetUICustomizationResponse+    -- * Response Lenses+    , guicrsResponseStatus+    , guicrsUICustomization+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getUICustomization' smart constructor.+data GetUICustomization = GetUICustomization'+  { _guicClientId   :: !(Maybe (Sensitive Text))+  , _guicUserPoolId :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetUICustomization' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'guicClientId' - The client ID for the client app.+--+-- * 'guicUserPoolId' - The user pool ID for the user pool.+getUICustomization+    :: Text -- ^ 'guicUserPoolId'+    -> GetUICustomization+getUICustomization pUserPoolId_ =+  GetUICustomization' {_guicClientId = Nothing, _guicUserPoolId = pUserPoolId_}+++-- | The client ID for the client app.+guicClientId :: Lens' GetUICustomization (Maybe Text)+guicClientId = lens _guicClientId (\ s a -> s{_guicClientId = a}) . mapping _Sensitive;++-- | The user pool ID for the user pool.+guicUserPoolId :: Lens' GetUICustomization Text+guicUserPoolId = lens _guicUserPoolId (\ s a -> s{_guicUserPoolId = a});++instance AWSRequest GetUICustomization where+        type Rs GetUICustomization =+             GetUICustomizationResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 GetUICustomizationResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "UICustomization"))++instance Hashable GetUICustomization where++instance NFData GetUICustomization where++instance ToHeaders GetUICustomization where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.GetUICustomization"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetUICustomization where+        toJSON GetUICustomization'{..}+          = object+              (catMaybes+                 [("ClientId" .=) <$> _guicClientId,+                  Just ("UserPoolId" .= _guicUserPoolId)])++instance ToPath GetUICustomization where+        toPath = const "/"++instance ToQuery GetUICustomization where+        toQuery = const mempty++-- | /See:/ 'getUICustomizationResponse' smart constructor.+data GetUICustomizationResponse = GetUICustomizationResponse'+  { _guicrsResponseStatus  :: !Int+  , _guicrsUICustomization :: !UICustomizationType+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetUICustomizationResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'guicrsResponseStatus' - -- | The response status code.+--+-- * 'guicrsUICustomization' - The UI customization information.+getUICustomizationResponse+    :: Int -- ^ 'guicrsResponseStatus'+    -> UICustomizationType -- ^ 'guicrsUICustomization'+    -> GetUICustomizationResponse+getUICustomizationResponse pResponseStatus_ pUICustomization_ =+  GetUICustomizationResponse'+  { _guicrsResponseStatus = pResponseStatus_+  , _guicrsUICustomization = pUICustomization_+  }+++-- | -- | The response status code.+guicrsResponseStatus :: Lens' GetUICustomizationResponse Int+guicrsResponseStatus = lens _guicrsResponseStatus (\ s a -> s{_guicrsResponseStatus = a});++-- | The UI customization information.+guicrsUICustomization :: Lens' GetUICustomizationResponse UICustomizationType+guicrsUICustomization = lens _guicrsUICustomization (\ s a -> s{_guicrsUICustomization = a});++instance NFData GetUICustomizationResponse where
gen/Network/AWS/CognitoIdentityProvider/GetUser.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.GetUser--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , gursUserAttributes     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to get information about the user. --@@ -52,24 +52,24 @@ -- -- /See:/ 'getUser' smart constructor. newtype GetUser = GetUser'-    { _guAccessToken :: Maybe (Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _guAccessToken :: Sensitive Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUser' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'guAccessToken' - The access token returned by the server response to get information about the user. getUser-    :: GetUser-getUser =-    GetUser'-    { _guAccessToken = Nothing-    }+    :: Text -- ^ 'guAccessToken'+    -> GetUser+getUser pAccessToken_ = GetUser' {_guAccessToken = _Sensitive # pAccessToken_} + -- | The access token returned by the server response to get information about the user.-guAccessToken :: Lens' GetUser (Maybe Text)-guAccessToken = lens _guAccessToken (\ s a -> s{_guAccessToken = a}) . mapping _Sensitive;+guAccessToken :: Lens' GetUser Text+guAccessToken = lens _guAccessToken (\ s a -> s{_guAccessToken = a}) . _Sensitive;  instance AWSRequest GetUser where         type Rs GetUser = GetUserResponse@@ -83,9 +83,9 @@                      <*> (x .:> "Username")                      <*> (x .?> "UserAttributes" .!@ mempty)) -instance Hashable GetUser+instance Hashable GetUser where -instance NFData GetUser+instance NFData GetUser where  instance ToHeaders GetUser where         toHeaders@@ -100,7 +100,7 @@ instance ToJSON GetUser where         toJSON GetUser'{..}           = object-              (catMaybes [("AccessToken" .=) <$> _guAccessToken])+              (catMaybes [Just ("AccessToken" .= _guAccessToken)])  instance ToPath GetUser where         toPath = const "/"@@ -114,12 +114,13 @@ -- -- /See:/ 'getUserResponse' smart constructor. data GetUserResponse = GetUserResponse'-    { _gursMFAOptions     :: !(Maybe [MFAOptionType])-    , _gursResponseStatus :: !Int-    , _gursUsername       :: !(Sensitive Text)-    , _gursUserAttributes :: ![AttributeType]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gursMFAOptions     :: !(Maybe [MFAOptionType])+  , _gursResponseStatus :: !Int+  , _gursUsername       :: !(Sensitive Text)+  , _gursUserAttributes :: ![AttributeType]+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUserResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -130,19 +131,20 @@ -- -- * 'gursUsername' - The user name of the user you wish to retrieve from the get user request. ----- * 'gursUserAttributes' - An array of name-value pairs representing user attributes.+-- * 'gursUserAttributes' - An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. getUserResponse     :: Int -- ^ 'gursResponseStatus'     -> Text -- ^ 'gursUsername'     -> GetUserResponse getUserResponse pResponseStatus_ pUsername_ =-    GetUserResponse'-    { _gursMFAOptions = Nothing-    , _gursResponseStatus = pResponseStatus_-    , _gursUsername = _Sensitive # pUsername_-    , _gursUserAttributes = mempty-    }+  GetUserResponse'+  { _gursMFAOptions = Nothing+  , _gursResponseStatus = pResponseStatus_+  , _gursUsername = _Sensitive # pUsername_+  , _gursUserAttributes = mempty+  } + -- | Specifies the options for MFA (e.g., email or phone number). gursMFAOptions :: Lens' GetUserResponse [MFAOptionType] gursMFAOptions = lens _gursMFAOptions (\ s a -> s{_gursMFAOptions = a}) . _Default . _Coerce;@@ -155,8 +157,8 @@ gursUsername :: Lens' GetUserResponse Text gursUsername = lens _gursUsername (\ s a -> s{_gursUsername = a}) . _Sensitive; --- | An array of name-value pairs representing user attributes.+-- | An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. gursUserAttributes :: Lens' GetUserResponse [AttributeType] gursUserAttributes = lens _gursUserAttributes (\ s a -> s{_gursUserAttributes = a}) . _Coerce; -instance NFData GetUserResponse+instance NFData GetUserResponse where
gen/Network/AWS/CognitoIdentityProvider/GetUserAttributeVerificationCode.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.GetUserAttributeVerificationCode--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , guavcrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to get user attribute verification. --@@ -51,10 +51,11 @@ -- -- /See:/ 'getUserAttributeVerificationCode' smart constructor. data GetUserAttributeVerificationCode = GetUserAttributeVerificationCode'-    { _guavcAccessToken   :: !(Maybe (Sensitive Text))-    , _guavcAttributeName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _guavcAccessToken   :: !(Sensitive Text)+  , _guavcAttributeName :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUserAttributeVerificationCode' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -63,17 +64,19 @@ -- -- * 'guavcAttributeName' - The attribute name returned by the server response to get the user attribute verification code. getUserAttributeVerificationCode-    :: Text -- ^ 'guavcAttributeName'+    :: Text -- ^ 'guavcAccessToken'+    -> Text -- ^ 'guavcAttributeName'     -> GetUserAttributeVerificationCode-getUserAttributeVerificationCode pAttributeName_ =-    GetUserAttributeVerificationCode'-    { _guavcAccessToken = Nothing-    , _guavcAttributeName = pAttributeName_-    }+getUserAttributeVerificationCode pAccessToken_ pAttributeName_ =+  GetUserAttributeVerificationCode'+  { _guavcAccessToken = _Sensitive # pAccessToken_+  , _guavcAttributeName = pAttributeName_+  } + -- | The access token returned by the server response to get the user attribute verification code.-guavcAccessToken :: Lens' GetUserAttributeVerificationCode (Maybe Text)-guavcAccessToken = lens _guavcAccessToken (\ s a -> s{_guavcAccessToken = a}) . mapping _Sensitive;+guavcAccessToken :: Lens' GetUserAttributeVerificationCode Text+guavcAccessToken = lens _guavcAccessToken (\ s a -> s{_guavcAccessToken = a}) . _Sensitive;  -- | The attribute name returned by the server response to get the user attribute verification code. guavcAttributeName :: Lens' GetUserAttributeVerificationCode Text@@ -92,8 +95,10 @@                      (pure (fromEnum s)))  instance Hashable GetUserAttributeVerificationCode+         where  instance NFData GetUserAttributeVerificationCode+         where  instance ToHeaders GetUserAttributeVerificationCode          where@@ -111,7 +116,7 @@         toJSON GetUserAttributeVerificationCode'{..}           = object               (catMaybes-                 [("AccessToken" .=) <$> _guavcAccessToken,+                 [Just ("AccessToken" .= _guavcAccessToken),                   Just ("AttributeName" .= _guavcAttributeName)])  instance ToPath GetUserAttributeVerificationCode@@ -128,10 +133,11 @@ -- -- /See:/ 'getUserAttributeVerificationCodeResponse' smart constructor. data GetUserAttributeVerificationCodeResponse = GetUserAttributeVerificationCodeResponse'-    { _guavcrsCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)-    , _guavcrsResponseStatus      :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _guavcrsCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)+  , _guavcrsResponseStatus      :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUserAttributeVerificationCodeResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -143,11 +149,12 @@     :: Int -- ^ 'guavcrsResponseStatus'     -> GetUserAttributeVerificationCodeResponse getUserAttributeVerificationCodeResponse pResponseStatus_ =-    GetUserAttributeVerificationCodeResponse'-    { _guavcrsCodeDeliveryDetails = Nothing-    , _guavcrsResponseStatus = pResponseStatus_-    }+  GetUserAttributeVerificationCodeResponse'+  { _guavcrsCodeDeliveryDetails = Nothing+  , _guavcrsResponseStatus = pResponseStatus_+  } + -- | The code delivery details returned by the server in response to the request to get the user attribute verification code. guavcrsCodeDeliveryDetails :: Lens' GetUserAttributeVerificationCodeResponse (Maybe CodeDeliveryDetailsType) guavcrsCodeDeliveryDetails = lens _guavcrsCodeDeliveryDetails (\ s a -> s{_guavcrsCodeDeliveryDetails = a});@@ -157,4 +164,5 @@ guavcrsResponseStatus = lens _guavcrsResponseStatus (\ s a -> s{_guavcrsResponseStatus = a});  instance NFData-         GetUserAttributeVerificationCodeResponse+           GetUserAttributeVerificationCodeResponse+         where
gen/Network/AWS/CognitoIdentityProvider/GlobalSignOut.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.GlobalSignOut--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -36,12 +36,12 @@     , gsorsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to sign out all devices. --@@ -49,24 +49,25 @@ -- -- /See:/ 'globalSignOut' smart constructor. newtype GlobalSignOut = GlobalSignOut'-    { _gsoAccessToken :: Maybe (Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gsoAccessToken :: Sensitive Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GlobalSignOut' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'gsoAccessToken' - The access token. globalSignOut-    :: GlobalSignOut-globalSignOut =-    GlobalSignOut'-    { _gsoAccessToken = Nothing-    }+    :: Text -- ^ 'gsoAccessToken'+    -> GlobalSignOut+globalSignOut pAccessToken_ =+  GlobalSignOut' {_gsoAccessToken = _Sensitive # pAccessToken_} + -- | The access token.-gsoAccessToken :: Lens' GlobalSignOut (Maybe Text)-gsoAccessToken = lens _gsoAccessToken (\ s a -> s{_gsoAccessToken = a}) . mapping _Sensitive;+gsoAccessToken :: Lens' GlobalSignOut Text+gsoAccessToken = lens _gsoAccessToken (\ s a -> s{_gsoAccessToken = a}) . _Sensitive;  instance AWSRequest GlobalSignOut where         type Rs GlobalSignOut = GlobalSignOutResponse@@ -76,9 +77,9 @@               (\ s h x ->                  GlobalSignOutResponse' <$> (pure (fromEnum s))) -instance Hashable GlobalSignOut+instance Hashable GlobalSignOut where -instance NFData GlobalSignOut+instance NFData GlobalSignOut where  instance ToHeaders GlobalSignOut where         toHeaders@@ -93,7 +94,7 @@ instance ToJSON GlobalSignOut where         toJSON GlobalSignOut'{..}           = object-              (catMaybes [("AccessToken" .=) <$> _gsoAccessToken])+              (catMaybes [Just ("AccessToken" .= _gsoAccessToken)])  instance ToPath GlobalSignOut where         toPath = const "/"@@ -107,9 +108,10 @@ -- -- /See:/ 'globalSignOutResponse' smart constructor. newtype GlobalSignOutResponse = GlobalSignOutResponse'-    { _gsorsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gsorsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GlobalSignOutResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -119,12 +121,11 @@     :: Int -- ^ 'gsorsResponseStatus'     -> GlobalSignOutResponse globalSignOutResponse pResponseStatus_ =-    GlobalSignOutResponse'-    { _gsorsResponseStatus = pResponseStatus_-    }+  GlobalSignOutResponse' {_gsorsResponseStatus = pResponseStatus_} + -- | -- | The response status code. gsorsResponseStatus :: Lens' GlobalSignOutResponse Int gsorsResponseStatus = lens _gsorsResponseStatus (\ s a -> s{_gsorsResponseStatus = a}); -instance NFData GlobalSignOutResponse+instance NFData GlobalSignOutResponse where
gen/Network/AWS/CognitoIdentityProvider/InitiateAuth.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.InitiateAuth--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,12 +43,12 @@     , iarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Initiates the authentication request. --@@ -56,48 +56,50 @@ -- -- /See:/ 'initiateAuth' smart constructor. data InitiateAuth = InitiateAuth'-    { _iaClientMetadata :: !(Maybe (Map Text Text))-    , _iaAuthParameters :: !(Maybe (Map Text Text))-    , _iaAuthFlow       :: !AuthFlowType-    , _iaClientId       :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _iaClientMetadata :: !(Maybe (Map Text Text))+  , _iaAuthParameters :: !(Maybe (Map Text Text))+  , _iaAuthFlow       :: !AuthFlowType+  , _iaClientId       :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'InitiateAuth' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'iaClientMetadata' - The client app's metadata.+-- * 'iaClientMetadata' - This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication. ----- * 'iaAuthParameters' - The authentication parameters.+-- * 'iaAuthParameters' - The authentication parameters. These are inputs corresponding to the @AuthFlow@ that you are invoking. The required values depend on the value of @AuthFlow@ :     * For @USER_SRP_AUTH@ : @USERNAME@ (required), @SRP_A@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @DEVICE_KEY@      * For @REFRESH_TOKEN_AUTH/REFRESH_TOKEN@ : @USERNAME@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @REFRESH_TOKEN@ (required), @DEVICE_KEY@      * For @CUSTOM_AUTH@ : @USERNAME@ (required), @SECRET_HASH@ (if app client is configured with client secret), @DEVICE_KEY@ ----- * 'iaAuthFlow' - The authentication flow.+-- * 'iaAuthFlow' - The authentication flow for this call to execute. The API action will depend on this value. For example:      * @REFRESH_TOKEN_AUTH@ will take in a valid refresh token and return new tokens.     * @USER_SRP_AUTH@ will take in @USERNAME@ and @SRP_A@ and return the SRP variables to be used for next challenge execution. Valid values include:     * @USER_SRP_AUTH@ : Authentication flow for the Secure Remote Password (SRP) protocol.     * @REFRESH_TOKEN_AUTH@ /@REFRESH_TOKEN@ : Authentication flow for refreshing the access token and ID token by supplying a valid refresh token.     * @CUSTOM_AUTH@ : Custom authentication flow. @ADMIN_NO_SRP_AUTH@ is not a valid value. ----- * 'iaClientId' - The client ID.+-- * 'iaClientId' - The app client ID. initiateAuth     :: AuthFlowType -- ^ 'iaAuthFlow'     -> Text -- ^ 'iaClientId'     -> InitiateAuth initiateAuth pAuthFlow_ pClientId_ =-    InitiateAuth'-    { _iaClientMetadata = Nothing-    , _iaAuthParameters = Nothing-    , _iaAuthFlow = pAuthFlow_-    , _iaClientId = _Sensitive # pClientId_-    }+  InitiateAuth'+  { _iaClientMetadata = Nothing+  , _iaAuthParameters = Nothing+  , _iaAuthFlow = pAuthFlow_+  , _iaClientId = _Sensitive # pClientId_+  } --- | The client app's metadata.++-- | This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication. iaClientMetadata :: Lens' InitiateAuth (HashMap Text Text) iaClientMetadata = lens _iaClientMetadata (\ s a -> s{_iaClientMetadata = a}) . _Default . _Map; --- | The authentication parameters.+-- | The authentication parameters. These are inputs corresponding to the @AuthFlow@ that you are invoking. The required values depend on the value of @AuthFlow@ :     * For @USER_SRP_AUTH@ : @USERNAME@ (required), @SRP_A@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @DEVICE_KEY@      * For @REFRESH_TOKEN_AUTH/REFRESH_TOKEN@ : @USERNAME@ (required), @SECRET_HASH@ (required if the app client is configured with a client secret), @REFRESH_TOKEN@ (required), @DEVICE_KEY@      * For @CUSTOM_AUTH@ : @USERNAME@ (required), @SECRET_HASH@ (if app client is configured with client secret), @DEVICE_KEY@ iaAuthParameters :: Lens' InitiateAuth (HashMap Text Text) iaAuthParameters = lens _iaAuthParameters (\ s a -> s{_iaAuthParameters = a}) . _Default . _Map; --- | The authentication flow.+-- | The authentication flow for this call to execute. The API action will depend on this value. For example:      * @REFRESH_TOKEN_AUTH@ will take in a valid refresh token and return new tokens.     * @USER_SRP_AUTH@ will take in @USERNAME@ and @SRP_A@ and return the SRP variables to be used for next challenge execution. Valid values include:     * @USER_SRP_AUTH@ : Authentication flow for the Secure Remote Password (SRP) protocol.     * @REFRESH_TOKEN_AUTH@ /@REFRESH_TOKEN@ : Authentication flow for refreshing the access token and ID token by supplying a valid refresh token.     * @CUSTOM_AUTH@ : Custom authentication flow. @ADMIN_NO_SRP_AUTH@ is not a valid value. iaAuthFlow :: Lens' InitiateAuth AuthFlowType iaAuthFlow = lens _iaAuthFlow (\ s a -> s{_iaAuthFlow = a}); --- | The client ID.+-- | The app client ID. iaClientId :: Lens' InitiateAuth Text iaClientId = lens _iaClientId (\ s a -> s{_iaClientId = a}) . _Sensitive; @@ -114,9 +116,9 @@                      <*> (x .?> "Session")                      <*> (pure (fromEnum s))) -instance Hashable InitiateAuth+instance Hashable InitiateAuth where -instance NFData InitiateAuth+instance NFData InitiateAuth where  instance ToHeaders InitiateAuth where         toHeaders@@ -149,51 +151,53 @@ -- -- /See:/ 'initiateAuthResponse' smart constructor. data InitiateAuthResponse = InitiateAuthResponse'-    { _iarsChallengeName        :: !(Maybe ChallengeNameType)-    , _iarsChallengeParameters  :: !(Maybe (Map Text Text))-    , _iarsAuthenticationResult :: !(Maybe AuthenticationResultType)-    , _iarsSession              :: !(Maybe Text)-    , _iarsResponseStatus       :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _iarsChallengeName        :: !(Maybe ChallengeNameType)+  , _iarsChallengeParameters  :: !(Maybe (Map Text Text))+  , _iarsAuthenticationResult :: !(Maybe AuthenticationResultType)+  , _iarsSession              :: !(Maybe Text)+  , _iarsResponseStatus       :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'InitiateAuthResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'iarsChallengeName' - The name of the challenge.+-- * 'iarsChallengeName' - The name of the challenge which you are responding to with this call. This is returned to you in the @AdminInitiateAuth@ response if you need to pass another challenge. Valid values include the following. Note that all of these challenges require @USERNAME@ and @SECRET_HASH@ (if applicable) in the parameters.     * @SMS_MFA@ : Next challenge is to supply an @SMS_MFA_CODE@ , delivered via SMS.     * @PASSWORD_VERIFIER@ : Next challenge is to supply @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , and @TIMESTAMP@ after the client-side SRP calculations.     * @CUSTOM_CHALLENGE@ : This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.     * @DEVICE_SRP_AUTH@ : If device tracking was enabled on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.     * @DEVICE_PASSWORD_VERIFIER@ : Similar to @PASSWORD_VERIFIER@ , but for devices only.     * @NEW_PASSWORD_REQUIRED@ : For users which are required to change their passwords after successful first login. This challenge should be passed with @NEW_PASSWORD@ and any other required attributes. ----- * 'iarsChallengeParameters' - The challenge parameters.+-- * 'iarsChallengeParameters' - The challenge parameters. These are returned to you in the @InitiateAuth@ response if you need to pass another challenge. The responses in this parameter should be used to compute inputs to the next call (@RespondToAuthChallenge@ ).  All challenges require @USERNAME@ and @SECRET_HASH@ (if applicable). ----- * 'iarsAuthenticationResult' - The result returned by the server in response to the request to initiate authentication.+-- * 'iarsAuthenticationResult' - The result of the authentication response. This is only returned if the caller does not need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, @ChallengeName@ , @ChallengeParameters@ , and @Session@ are returned. ----- * 'iarsSession' - The session.+-- * 'iarsSession' - The session which should be passed both ways in challenge-response calls to the service. If the <API_InitiateAuth.html InitiateAuth> or <API_RespondToAuthChallenge.html RespondToAuthChallenge> API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. -- -- * 'iarsResponseStatus' - -- | The response status code. initiateAuthResponse     :: Int -- ^ 'iarsResponseStatus'     -> InitiateAuthResponse initiateAuthResponse pResponseStatus_ =-    InitiateAuthResponse'-    { _iarsChallengeName = Nothing-    , _iarsChallengeParameters = Nothing-    , _iarsAuthenticationResult = Nothing-    , _iarsSession = Nothing-    , _iarsResponseStatus = pResponseStatus_-    }+  InitiateAuthResponse'+  { _iarsChallengeName = Nothing+  , _iarsChallengeParameters = Nothing+  , _iarsAuthenticationResult = Nothing+  , _iarsSession = Nothing+  , _iarsResponseStatus = pResponseStatus_+  } --- | The name of the challenge.++-- | The name of the challenge which you are responding to with this call. This is returned to you in the @AdminInitiateAuth@ response if you need to pass another challenge. Valid values include the following. Note that all of these challenges require @USERNAME@ and @SECRET_HASH@ (if applicable) in the parameters.     * @SMS_MFA@ : Next challenge is to supply an @SMS_MFA_CODE@ , delivered via SMS.     * @PASSWORD_VERIFIER@ : Next challenge is to supply @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , and @TIMESTAMP@ after the client-side SRP calculations.     * @CUSTOM_CHALLENGE@ : This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.     * @DEVICE_SRP_AUTH@ : If device tracking was enabled on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.     * @DEVICE_PASSWORD_VERIFIER@ : Similar to @PASSWORD_VERIFIER@ , but for devices only.     * @NEW_PASSWORD_REQUIRED@ : For users which are required to change their passwords after successful first login. This challenge should be passed with @NEW_PASSWORD@ and any other required attributes. iarsChallengeName :: Lens' InitiateAuthResponse (Maybe ChallengeNameType) iarsChallengeName = lens _iarsChallengeName (\ s a -> s{_iarsChallengeName = a}); --- | The challenge parameters.+-- | The challenge parameters. These are returned to you in the @InitiateAuth@ response if you need to pass another challenge. The responses in this parameter should be used to compute inputs to the next call (@RespondToAuthChallenge@ ).  All challenges require @USERNAME@ and @SECRET_HASH@ (if applicable). iarsChallengeParameters :: Lens' InitiateAuthResponse (HashMap Text Text) iarsChallengeParameters = lens _iarsChallengeParameters (\ s a -> s{_iarsChallengeParameters = a}) . _Default . _Map; --- | The result returned by the server in response to the request to initiate authentication.+-- | The result of the authentication response. This is only returned if the caller does not need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, @ChallengeName@ , @ChallengeParameters@ , and @Session@ are returned. iarsAuthenticationResult :: Lens' InitiateAuthResponse (Maybe AuthenticationResultType) iarsAuthenticationResult = lens _iarsAuthenticationResult (\ s a -> s{_iarsAuthenticationResult = a}); --- | The session.+-- | The session which should be passed both ways in challenge-response calls to the service. If the <API_InitiateAuth.html InitiateAuth> or <API_RespondToAuthChallenge.html RespondToAuthChallenge> API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. iarsSession :: Lens' InitiateAuthResponse (Maybe Text) iarsSession = lens _iarsSession (\ s a -> s{_iarsSession = a}); @@ -201,4 +205,4 @@ iarsResponseStatus :: Lens' InitiateAuthResponse Int iarsResponseStatus = lens _iarsResponseStatus (\ s a -> s{_iarsResponseStatus = a}); -instance NFData InitiateAuthResponse+instance NFData InitiateAuthResponse where
gen/Network/AWS/CognitoIdentityProvider/ListDevices.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ListDevices--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , ldrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to list the devices. --@@ -53,11 +53,12 @@ -- -- /See:/ 'listDevices' smart constructor. data ListDevices = ListDevices'-    { _ldPaginationToken :: !(Maybe Text)-    , _ldLimit           :: !(Maybe Nat)-    , _ldAccessToken     :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ldPaginationToken :: !(Maybe Text)+  , _ldLimit           :: !(Maybe Nat)+  , _ldAccessToken     :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListDevices' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -71,12 +72,13 @@     :: Text -- ^ 'ldAccessToken'     -> ListDevices listDevices pAccessToken_ =-    ListDevices'-    { _ldPaginationToken = Nothing-    , _ldLimit = Nothing-    , _ldAccessToken = _Sensitive # pAccessToken_-    }+  ListDevices'+  { _ldPaginationToken = Nothing+  , _ldLimit = Nothing+  , _ldAccessToken = _Sensitive # pAccessToken_+  } + -- | The pagination token for the list request. ldPaginationToken :: Lens' ListDevices (Maybe Text) ldPaginationToken = lens _ldPaginationToken (\ s a -> s{_ldPaginationToken = a});@@ -100,9 +102,9 @@                      (x .?> "Devices" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable ListDevices+instance Hashable ListDevices where -instance NFData ListDevices+instance NFData ListDevices where  instance ToHeaders ListDevices where         toHeaders@@ -134,11 +136,12 @@ -- -- /See:/ 'listDevicesResponse' smart constructor. data ListDevicesResponse = ListDevicesResponse'-    { _ldrsPaginationToken :: !(Maybe Text)-    , _ldrsDevices         :: !(Maybe [DeviceType])-    , _ldrsResponseStatus  :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ldrsPaginationToken :: !(Maybe Text)+  , _ldrsDevices         :: !(Maybe [DeviceType])+  , _ldrsResponseStatus  :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListDevicesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -152,12 +155,13 @@     :: Int -- ^ 'ldrsResponseStatus'     -> ListDevicesResponse listDevicesResponse pResponseStatus_ =-    ListDevicesResponse'-    { _ldrsPaginationToken = Nothing-    , _ldrsDevices = Nothing-    , _ldrsResponseStatus = pResponseStatus_-    }+  ListDevicesResponse'+  { _ldrsPaginationToken = Nothing+  , _ldrsDevices = Nothing+  , _ldrsResponseStatus = pResponseStatus_+  } + -- | The pagination token for the list device response. ldrsPaginationToken :: Lens' ListDevicesResponse (Maybe Text) ldrsPaginationToken = lens _ldrsPaginationToken (\ s a -> s{_ldrsPaginationToken = a});@@ -170,4 +174,4 @@ ldrsResponseStatus :: Lens' ListDevicesResponse Int ldrsResponseStatus = lens _ldrsResponseStatus (\ s a -> s{_ldrsResponseStatus = a}); -instance NFData ListDevicesResponse+instance NFData ListDevicesResponse where
+ gen/Network/AWS/CognitoIdentityProvider/ListGroups.hs view
@@ -0,0 +1,167 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.ListGroups+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the groups associated with a user pool.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.ListGroups+    (+    -- * Creating a Request+      listGroups+    , ListGroups+    -- * Request Lenses+    , lgNextToken+    , lgLimit+    , lgUserPoolId++    -- * Destructuring the Response+    , listGroupsResponse+    , ListGroupsResponse+    -- * Response Lenses+    , lgrsGroups+    , lgrsNextToken+    , lgrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listGroups' smart constructor.+data ListGroups = ListGroups'+  { _lgNextToken  :: !(Maybe Text)+  , _lgLimit      :: !(Maybe Nat)+  , _lgUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListGroups' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lgNextToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+--+-- * 'lgLimit' - The limit of the request to list groups.+--+-- * 'lgUserPoolId' - The user pool ID for the user pool.+listGroups+    :: Text -- ^ 'lgUserPoolId'+    -> ListGroups+listGroups pUserPoolId_ =+  ListGroups'+  {_lgNextToken = Nothing, _lgLimit = Nothing, _lgUserPoolId = pUserPoolId_}+++-- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+lgNextToken :: Lens' ListGroups (Maybe Text)+lgNextToken = lens _lgNextToken (\ s a -> s{_lgNextToken = a});++-- | The limit of the request to list groups.+lgLimit :: Lens' ListGroups (Maybe Natural)+lgLimit = lens _lgLimit (\ s a -> s{_lgLimit = a}) . mapping _Nat;++-- | The user pool ID for the user pool.+lgUserPoolId :: Lens' ListGroups Text+lgUserPoolId = lens _lgUserPoolId (\ s a -> s{_lgUserPoolId = a});++instance AWSRequest ListGroups where+        type Rs ListGroups = ListGroupsResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 ListGroupsResponse' <$>+                   (x .?> "Groups" .!@ mempty) <*> (x .?> "NextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListGroups where++instance NFData ListGroups where++instance ToHeaders ListGroups where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.ListGroups" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListGroups where+        toJSON ListGroups'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lgNextToken,+                  ("Limit" .=) <$> _lgLimit,+                  Just ("UserPoolId" .= _lgUserPoolId)])++instance ToPath ListGroups where+        toPath = const "/"++instance ToQuery ListGroups where+        toQuery = const mempty++-- | /See:/ 'listGroupsResponse' smart constructor.+data ListGroupsResponse = ListGroupsResponse'+  { _lgrsGroups         :: !(Maybe [GroupType])+  , _lgrsNextToken      :: !(Maybe Text)+  , _lgrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListGroupsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lgrsGroups' - The group objects for the groups.+--+-- * 'lgrsNextToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+--+-- * 'lgrsResponseStatus' - -- | The response status code.+listGroupsResponse+    :: Int -- ^ 'lgrsResponseStatus'+    -> ListGroupsResponse+listGroupsResponse pResponseStatus_ =+  ListGroupsResponse'+  { _lgrsGroups = Nothing+  , _lgrsNextToken = Nothing+  , _lgrsResponseStatus = pResponseStatus_+  }+++-- | The group objects for the groups.+lgrsGroups :: Lens' ListGroupsResponse [GroupType]+lgrsGroups = lens _lgrsGroups (\ s a -> s{_lgrsGroups = a}) . _Default . _Coerce;++-- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+lgrsNextToken :: Lens' ListGroupsResponse (Maybe Text)+lgrsNextToken = lens _lgrsNextToken (\ s a -> s{_lgrsNextToken = a});++-- | -- | The response status code.+lgrsResponseStatus :: Lens' ListGroupsResponse Int+lgrsResponseStatus = lens _lgrsResponseStatus (\ s a -> s{_lgrsResponseStatus = a});++instance NFData ListGroupsResponse where
+ gen/Network/AWS/CognitoIdentityProvider/ListIdentityProviders.hs view
@@ -0,0 +1,169 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.ListIdentityProviders+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists information about all identity providers for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.ListIdentityProviders+    (+    -- * Creating a Request+      listIdentityProviders+    , ListIdentityProviders+    -- * Request Lenses+    , lipNextToken+    , lipMaxResults+    , lipUserPoolId++    -- * Destructuring the Response+    , listIdentityProvidersResponse+    , ListIdentityProvidersResponse+    -- * Response Lenses+    , liprsNextToken+    , liprsResponseStatus+    , liprsProviders+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listIdentityProviders' smart constructor.+data ListIdentityProviders = ListIdentityProviders'+  { _lipNextToken  :: !(Maybe Text)+  , _lipMaxResults :: !(Maybe Nat)+  , _lipUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListIdentityProviders' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lipNextToken' - A pagination token.+--+-- * 'lipMaxResults' - The maximum number of identity providers to return.+--+-- * 'lipUserPoolId' - The user pool ID.+listIdentityProviders+    :: Text -- ^ 'lipUserPoolId'+    -> ListIdentityProviders+listIdentityProviders pUserPoolId_ =+  ListIdentityProviders'+  { _lipNextToken = Nothing+  , _lipMaxResults = Nothing+  , _lipUserPoolId = pUserPoolId_+  }+++-- | A pagination token.+lipNextToken :: Lens' ListIdentityProviders (Maybe Text)+lipNextToken = lens _lipNextToken (\ s a -> s{_lipNextToken = a});++-- | The maximum number of identity providers to return.+lipMaxResults :: Lens' ListIdentityProviders (Maybe Natural)+lipMaxResults = lens _lipMaxResults (\ s a -> s{_lipMaxResults = a}) . mapping _Nat;++-- | The user pool ID.+lipUserPoolId :: Lens' ListIdentityProviders Text+lipUserPoolId = lens _lipUserPoolId (\ s a -> s{_lipUserPoolId = a});++instance AWSRequest ListIdentityProviders where+        type Rs ListIdentityProviders =+             ListIdentityProvidersResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 ListIdentityProvidersResponse' <$>+                   (x .?> "NextToken") <*> (pure (fromEnum s)) <*>+                     (x .?> "Providers" .!@ mempty))++instance Hashable ListIdentityProviders where++instance NFData ListIdentityProviders where++instance ToHeaders ListIdentityProviders where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.ListIdentityProviders"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListIdentityProviders where+        toJSON ListIdentityProviders'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lipNextToken,+                  ("MaxResults" .=) <$> _lipMaxResults,+                  Just ("UserPoolId" .= _lipUserPoolId)])++instance ToPath ListIdentityProviders where+        toPath = const "/"++instance ToQuery ListIdentityProviders where+        toQuery = const mempty++-- | /See:/ 'listIdentityProvidersResponse' smart constructor.+data ListIdentityProvidersResponse = ListIdentityProvidersResponse'+  { _liprsNextToken      :: !(Maybe Text)+  , _liprsResponseStatus :: !Int+  , _liprsProviders      :: ![ProviderDescription]+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListIdentityProvidersResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'liprsNextToken' - A pagination token.+--+-- * 'liprsResponseStatus' - -- | The response status code.+--+-- * 'liprsProviders' - A list of identity provider objects.+listIdentityProvidersResponse+    :: Int -- ^ 'liprsResponseStatus'+    -> ListIdentityProvidersResponse+listIdentityProvidersResponse pResponseStatus_ =+  ListIdentityProvidersResponse'+  { _liprsNextToken = Nothing+  , _liprsResponseStatus = pResponseStatus_+  , _liprsProviders = mempty+  }+++-- | A pagination token.+liprsNextToken :: Lens' ListIdentityProvidersResponse (Maybe Text)+liprsNextToken = lens _liprsNextToken (\ s a -> s{_liprsNextToken = a});++-- | -- | The response status code.+liprsResponseStatus :: Lens' ListIdentityProvidersResponse Int+liprsResponseStatus = lens _liprsResponseStatus (\ s a -> s{_liprsResponseStatus = a});++-- | A list of identity provider objects.+liprsProviders :: Lens' ListIdentityProvidersResponse [ProviderDescription]+liprsProviders = lens _liprsProviders (\ s a -> s{_liprsProviders = a}) . _Coerce;++instance NFData ListIdentityProvidersResponse where
+ gen/Network/AWS/CognitoIdentityProvider/ListResourceServers.hs view
@@ -0,0 +1,169 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.ListResourceServers+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the resource servers for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.ListResourceServers+    (+    -- * Creating a Request+      listResourceServers+    , ListResourceServers+    -- * Request Lenses+    , lrsNextToken+    , lrsMaxResults+    , lrsUserPoolId++    -- * Destructuring the Response+    , listResourceServersResponse+    , ListResourceServersResponse+    -- * Response Lenses+    , lrsrsNextToken+    , lrsrsResponseStatus+    , lrsrsResourceServers+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listResourceServers' smart constructor.+data ListResourceServers = ListResourceServers'+  { _lrsNextToken  :: !(Maybe Text)+  , _lrsMaxResults :: !(Maybe Nat)+  , _lrsUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListResourceServers' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lrsNextToken' - A pagination token.+--+-- * 'lrsMaxResults' - The maximum number of resource servers to return.+--+-- * 'lrsUserPoolId' - The user pool ID for the user pool.+listResourceServers+    :: Text -- ^ 'lrsUserPoolId'+    -> ListResourceServers+listResourceServers pUserPoolId_ =+  ListResourceServers'+  { _lrsNextToken = Nothing+  , _lrsMaxResults = Nothing+  , _lrsUserPoolId = pUserPoolId_+  }+++-- | A pagination token.+lrsNextToken :: Lens' ListResourceServers (Maybe Text)+lrsNextToken = lens _lrsNextToken (\ s a -> s{_lrsNextToken = a});++-- | The maximum number of resource servers to return.+lrsMaxResults :: Lens' ListResourceServers (Maybe Natural)+lrsMaxResults = lens _lrsMaxResults (\ s a -> s{_lrsMaxResults = a}) . mapping _Nat;++-- | The user pool ID for the user pool.+lrsUserPoolId :: Lens' ListResourceServers Text+lrsUserPoolId = lens _lrsUserPoolId (\ s a -> s{_lrsUserPoolId = a});++instance AWSRequest ListResourceServers where+        type Rs ListResourceServers =+             ListResourceServersResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 ListResourceServersResponse' <$>+                   (x .?> "NextToken") <*> (pure (fromEnum s)) <*>+                     (x .?> "ResourceServers" .!@ mempty))++instance Hashable ListResourceServers where++instance NFData ListResourceServers where++instance ToHeaders ListResourceServers where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.ListResourceServers"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListResourceServers where+        toJSON ListResourceServers'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lrsNextToken,+                  ("MaxResults" .=) <$> _lrsMaxResults,+                  Just ("UserPoolId" .= _lrsUserPoolId)])++instance ToPath ListResourceServers where+        toPath = const "/"++instance ToQuery ListResourceServers where+        toQuery = const mempty++-- | /See:/ 'listResourceServersResponse' smart constructor.+data ListResourceServersResponse = ListResourceServersResponse'+  { _lrsrsNextToken       :: !(Maybe Text)+  , _lrsrsResponseStatus  :: !Int+  , _lrsrsResourceServers :: ![ResourceServerType]+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListResourceServersResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lrsrsNextToken' - A pagination token.+--+-- * 'lrsrsResponseStatus' - -- | The response status code.+--+-- * 'lrsrsResourceServers' - The resource servers.+listResourceServersResponse+    :: Int -- ^ 'lrsrsResponseStatus'+    -> ListResourceServersResponse+listResourceServersResponse pResponseStatus_ =+  ListResourceServersResponse'+  { _lrsrsNextToken = Nothing+  , _lrsrsResponseStatus = pResponseStatus_+  , _lrsrsResourceServers = mempty+  }+++-- | A pagination token.+lrsrsNextToken :: Lens' ListResourceServersResponse (Maybe Text)+lrsrsNextToken = lens _lrsrsNextToken (\ s a -> s{_lrsrsNextToken = a});++-- | -- | The response status code.+lrsrsResponseStatus :: Lens' ListResourceServersResponse Int+lrsrsResponseStatus = lens _lrsrsResponseStatus (\ s a -> s{_lrsrsResponseStatus = a});++-- | The resource servers.+lrsrsResourceServers :: Lens' ListResourceServersResponse [ResourceServerType]+lrsrsResourceServers = lens _lrsrsResourceServers (\ s a -> s{_lrsrsResourceServers = a}) . _Coerce;++instance NFData ListResourceServersResponse where
gen/Network/AWS/CognitoIdentityProvider/ListUserImportJobs.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ListUserImportJobs--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , luijrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to list the user import jobs. --@@ -53,16 +53,17 @@ -- -- /See:/ 'listUserImportJobs' smart constructor. data ListUserImportJobs = ListUserImportJobs'-    { _luijPaginationToken :: !(Maybe Text)-    , _luijUserPoolId      :: !Text-    , _luijMaxResults      :: !Nat-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _luijPaginationToken :: !(Maybe Text)+  , _luijUserPoolId      :: !Text+  , _luijMaxResults      :: !Nat+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUserImportJobs' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'luijPaginationToken' - An identifier that was returned from the previous call to ListUserImportJobs, which can be used to return the next set of import jobs in the list.+-- * 'luijPaginationToken' - An identifier that was returned from the previous call to @ListUserImportJobs@ , which can be used to return the next set of import jobs in the list. -- -- * 'luijUserPoolId' - The user pool ID for the user pool that the users are being imported into. --@@ -72,13 +73,14 @@     -> Natural -- ^ 'luijMaxResults'     -> ListUserImportJobs listUserImportJobs pUserPoolId_ pMaxResults_ =-    ListUserImportJobs'-    { _luijPaginationToken = Nothing-    , _luijUserPoolId = pUserPoolId_-    , _luijMaxResults = _Nat # pMaxResults_-    }+  ListUserImportJobs'+  { _luijPaginationToken = Nothing+  , _luijUserPoolId = pUserPoolId_+  , _luijMaxResults = _Nat # pMaxResults_+  } --- | An identifier that was returned from the previous call to ListUserImportJobs, which can be used to return the next set of import jobs in the list.++-- | An identifier that was returned from the previous call to @ListUserImportJobs@ , which can be used to return the next set of import jobs in the list. luijPaginationToken :: Lens' ListUserImportJobs (Maybe Text) luijPaginationToken = lens _luijPaginationToken (\ s a -> s{_luijPaginationToken = a}); @@ -102,9 +104,9 @@                      (x .?> "UserImportJobs")                      <*> (pure (fromEnum s))) -instance Hashable ListUserImportJobs+instance Hashable ListUserImportJobs where -instance NFData ListUserImportJobs+instance NFData ListUserImportJobs where  instance ToHeaders ListUserImportJobs where         toHeaders@@ -136,11 +138,12 @@ -- -- /See:/ 'listUserImportJobsResponse' smart constructor. data ListUserImportJobsResponse = ListUserImportJobsResponse'-    { _luijrsPaginationToken :: !(Maybe Text)-    , _luijrsUserImportJobs  :: !(Maybe (List1 UserImportJobType))-    , _luijrsResponseStatus  :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _luijrsPaginationToken :: !(Maybe Text)+  , _luijrsUserImportJobs  :: !(Maybe (List1 UserImportJobType))+  , _luijrsResponseStatus  :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUserImportJobsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -154,12 +157,13 @@     :: Int -- ^ 'luijrsResponseStatus'     -> ListUserImportJobsResponse listUserImportJobsResponse pResponseStatus_ =-    ListUserImportJobsResponse'-    { _luijrsPaginationToken = Nothing-    , _luijrsUserImportJobs = Nothing-    , _luijrsResponseStatus = pResponseStatus_-    }+  ListUserImportJobsResponse'+  { _luijrsPaginationToken = Nothing+  , _luijrsUserImportJobs = Nothing+  , _luijrsResponseStatus = pResponseStatus_+  } + -- | An identifier that can be used to return the next set of user import jobs in the list. luijrsPaginationToken :: Lens' ListUserImportJobsResponse (Maybe Text) luijrsPaginationToken = lens _luijrsPaginationToken (\ s a -> s{_luijrsPaginationToken = a});@@ -172,4 +176,4 @@ luijrsResponseStatus :: Lens' ListUserImportJobsResponse Int luijrsResponseStatus = lens _luijrsResponseStatus (\ s a -> s{_luijrsResponseStatus = a}); -instance NFData ListUserImportJobsResponse+instance NFData ListUserImportJobsResponse where
gen/Network/AWS/CognitoIdentityProvider/ListUserPoolClients.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ListUserPoolClients--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , lupcrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to list the user pool clients. --@@ -53,11 +53,12 @@ -- -- /See:/ 'listUserPoolClients' smart constructor. data ListUserPoolClients = ListUserPoolClients'-    { _lupcNextToken  :: !(Maybe Text)-    , _lupcMaxResults :: !(Maybe Nat)-    , _lupcUserPoolId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _lupcNextToken  :: !(Maybe Text)+  , _lupcMaxResults :: !(Maybe Nat)+  , _lupcUserPoolId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUserPoolClients' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -71,12 +72,13 @@     :: Text -- ^ 'lupcUserPoolId'     -> ListUserPoolClients listUserPoolClients pUserPoolId_ =-    ListUserPoolClients'-    { _lupcNextToken = Nothing-    , _lupcMaxResults = Nothing-    , _lupcUserPoolId = pUserPoolId_-    }+  ListUserPoolClients'+  { _lupcNextToken = Nothing+  , _lupcMaxResults = Nothing+  , _lupcUserPoolId = pUserPoolId_+  } + -- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. lupcNextToken :: Lens' ListUserPoolClients (Maybe Text) lupcNextToken = lens _lupcNextToken (\ s a -> s{_lupcNextToken = a});@@ -101,9 +103,9 @@                      (x .?> "UserPoolClients" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable ListUserPoolClients+instance Hashable ListUserPoolClients where -instance NFData ListUserPoolClients+instance NFData ListUserPoolClients where  instance ToHeaders ListUserPoolClients where         toHeaders@@ -135,11 +137,12 @@ -- -- /See:/ 'listUserPoolClientsResponse' smart constructor. data ListUserPoolClientsResponse = ListUserPoolClientsResponse'-    { _lupcrsNextToken       :: !(Maybe Text)-    , _lupcrsUserPoolClients :: !(Maybe [UserPoolClientDescription])-    , _lupcrsResponseStatus  :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _lupcrsNextToken       :: !(Maybe Text)+  , _lupcrsUserPoolClients :: !(Maybe [UserPoolClientDescription])+  , _lupcrsResponseStatus  :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUserPoolClientsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -153,12 +156,13 @@     :: Int -- ^ 'lupcrsResponseStatus'     -> ListUserPoolClientsResponse listUserPoolClientsResponse pResponseStatus_ =-    ListUserPoolClientsResponse'-    { _lupcrsNextToken = Nothing-    , _lupcrsUserPoolClients = Nothing-    , _lupcrsResponseStatus = pResponseStatus_-    }+  ListUserPoolClientsResponse'+  { _lupcrsNextToken = Nothing+  , _lupcrsUserPoolClients = Nothing+  , _lupcrsResponseStatus = pResponseStatus_+  } + -- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. lupcrsNextToken :: Lens' ListUserPoolClientsResponse (Maybe Text) lupcrsNextToken = lens _lupcrsNextToken (\ s a -> s{_lupcrsNextToken = a});@@ -171,4 +175,4 @@ lupcrsResponseStatus :: Lens' ListUserPoolClientsResponse Int lupcrsResponseStatus = lens _lupcrsResponseStatus (\ s a -> s{_lupcrsResponseStatus = a}); -instance NFData ListUserPoolClientsResponse+instance NFData ListUserPoolClientsResponse where
gen/Network/AWS/CognitoIdentityProvider/ListUserPools.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ListUserPools--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , luprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to list user pools. --@@ -52,10 +52,11 @@ -- -- /See:/ 'listUserPools' smart constructor. data ListUserPools = ListUserPools'-    { _lupNextToken  :: !(Maybe Text)-    , _lupMaxResults :: !Nat-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _lupNextToken  :: !(Maybe Text)+  , _lupMaxResults :: !Nat+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUserPools' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -67,11 +68,9 @@     :: Natural -- ^ 'lupMaxResults'     -> ListUserPools listUserPools pMaxResults_ =-    ListUserPools'-    { _lupNextToken = Nothing-    , _lupMaxResults = _Nat # pMaxResults_-    }+  ListUserPools' {_lupNextToken = Nothing, _lupMaxResults = _Nat # pMaxResults_} + -- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. lupNextToken :: Lens' ListUserPools (Maybe Text) lupNextToken = lens _lupNextToken (\ s a -> s{_lupNextToken = a});@@ -91,9 +90,9 @@                      (x .?> "NextToken")                      <*> (pure (fromEnum s))) -instance Hashable ListUserPools+instance Hashable ListUserPools where -instance NFData ListUserPools+instance NFData ListUserPools where  instance ToHeaders ListUserPools where         toHeaders@@ -124,11 +123,12 @@ -- -- /See:/ 'listUserPoolsResponse' smart constructor. data ListUserPoolsResponse = ListUserPoolsResponse'-    { _luprsUserPools      :: !(Maybe [UserPoolDescriptionType])-    , _luprsNextToken      :: !(Maybe Text)-    , _luprsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _luprsUserPools      :: !(Maybe [UserPoolDescriptionType])+  , _luprsNextToken      :: !(Maybe Text)+  , _luprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUserPoolsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -142,12 +142,13 @@     :: Int -- ^ 'luprsResponseStatus'     -> ListUserPoolsResponse listUserPoolsResponse pResponseStatus_ =-    ListUserPoolsResponse'-    { _luprsUserPools = Nothing-    , _luprsNextToken = Nothing-    , _luprsResponseStatus = pResponseStatus_-    }+  ListUserPoolsResponse'+  { _luprsUserPools = Nothing+  , _luprsNextToken = Nothing+  , _luprsResponseStatus = pResponseStatus_+  } + -- | The user pools from the response to list users. luprsUserPools :: Lens' ListUserPoolsResponse [UserPoolDescriptionType] luprsUserPools = lens _luprsUserPools (\ s a -> s{_luprsUserPools = a}) . _Default . _Coerce;@@ -160,4 +161,4 @@ luprsResponseStatus :: Lens' ListUserPoolsResponse Int luprsResponseStatus = lens _luprsResponseStatus (\ s a -> s{_luprsResponseStatus = a}); -instance NFData ListUserPoolsResponse+instance NFData ListUserPoolsResponse where
gen/Network/AWS/CognitoIdentityProvider/ListUsers.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ListUsers--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , lursResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to list users. --@@ -55,55 +55,57 @@ -- -- /See:/ 'listUsers' smart constructor. data ListUsers = ListUsers'-    { _luPaginationToken :: !(Maybe Text)-    , _luAttributesToGet :: !(Maybe [Text])-    , _luLimit           :: !(Maybe Nat)-    , _luFilter          :: !(Maybe Text)-    , _luUserPoolId      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _luPaginationToken :: !(Maybe Text)+  , _luAttributesToGet :: !(Maybe [Text])+  , _luLimit           :: !(Maybe Nat)+  , _luFilter          :: !(Maybe Text)+  , _luUserPoolId      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUsers' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'luPaginationToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. ----- * 'luAttributesToGet' - The attributes to get from the request to list users.+-- * 'luAttributesToGet' - An array of strings, where each string is the name of a user attribute to be returned for each user in the search results. If the array is empty, all attributes are returned. ----- * 'luLimit' - The limit of the request to list users.+-- * 'luLimit' - Maximum number of users to be returned. ----- * 'luFilter' - The filter for the list users request.+-- * 'luFilter' - A filter string of the form "/AttributeName/ /Filter-Type/ "/AttributeValue/ "". Quotation marks within the filter string must be escaped using the backslash (\) character. For example, "@family_name@ = \"Reddy\"".     * /AttributeName/ : The name of the attribute to search for. You can only search for one attribute at a time.     * /Filter-Type/ : For an exact match, use =, for example, "@given_name@ = \"Jon\"". For a prefix ("starts with") match, use ^=, for example, "@given_name@ ^= \"Jon\"".      * /AttributeValue/ : The attribute value that must be matched for each user. If the filter string is empty, @ListUsers@ returns all users in the user pool. You can only search for the following standard attributes:     * @username@ (case-sensitive)     * @email@      * @phone_number@      * @name@      * @given_name@      * @family_name@      * @preferred_username@      * @cognito:user_status@ (called __Enabled__ in the Console) (case-sensitive)     * @status@ (case-insensitive) Custom attributes are not searchable. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-using-listusers-api Searching for Users Using the ListUsers API> and <http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-listusers-api-examples Examples of Using the ListUsers API> in the /Amazon Cognito Developer Guide/ . ----- * 'luUserPoolId' - The user pool ID for which you want to list users.+-- * 'luUserPoolId' - The user pool ID for the user pool on which the search should be performed. listUsers     :: Text -- ^ 'luUserPoolId'     -> ListUsers listUsers pUserPoolId_ =-    ListUsers'-    { _luPaginationToken = Nothing-    , _luAttributesToGet = Nothing-    , _luLimit = Nothing-    , _luFilter = Nothing-    , _luUserPoolId = pUserPoolId_-    }+  ListUsers'+  { _luPaginationToken = Nothing+  , _luAttributesToGet = Nothing+  , _luLimit = Nothing+  , _luFilter = Nothing+  , _luUserPoolId = pUserPoolId_+  } + -- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. luPaginationToken :: Lens' ListUsers (Maybe Text) luPaginationToken = lens _luPaginationToken (\ s a -> s{_luPaginationToken = a}); --- | The attributes to get from the request to list users.+-- | An array of strings, where each string is the name of a user attribute to be returned for each user in the search results. If the array is empty, all attributes are returned. luAttributesToGet :: Lens' ListUsers [Text] luAttributesToGet = lens _luAttributesToGet (\ s a -> s{_luAttributesToGet = a}) . _Default . _Coerce; --- | The limit of the request to list users.+-- | Maximum number of users to be returned. luLimit :: Lens' ListUsers (Maybe Natural) luLimit = lens _luLimit (\ s a -> s{_luLimit = a}) . mapping _Nat; --- | The filter for the list users request.+-- | A filter string of the form "/AttributeName/ /Filter-Type/ "/AttributeValue/ "". Quotation marks within the filter string must be escaped using the backslash (\) character. For example, "@family_name@ = \"Reddy\"".     * /AttributeName/ : The name of the attribute to search for. You can only search for one attribute at a time.     * /Filter-Type/ : For an exact match, use =, for example, "@given_name@ = \"Jon\"". For a prefix ("starts with") match, use ^=, for example, "@given_name@ ^= \"Jon\"".      * /AttributeValue/ : The attribute value that must be matched for each user. If the filter string is empty, @ListUsers@ returns all users in the user pool. You can only search for the following standard attributes:     * @username@ (case-sensitive)     * @email@      * @phone_number@      * @name@      * @given_name@      * @family_name@      * @preferred_username@      * @cognito:user_status@ (called __Enabled__ in the Console) (case-sensitive)     * @status@ (case-insensitive) Custom attributes are not searchable. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-using-listusers-api Searching for Users Using the ListUsers API> and <http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-listusers-api-examples Examples of Using the ListUsers API> in the /Amazon Cognito Developer Guide/ . luFilter :: Lens' ListUsers (Maybe Text) luFilter = lens _luFilter (\ s a -> s{_luFilter = a}); --- | The user pool ID for which you want to list users.+-- | The user pool ID for the user pool on which the search should be performed. luUserPoolId :: Lens' ListUsers Text luUserPoolId = lens _luUserPoolId (\ s a -> s{_luUserPoolId = a}); @@ -118,9 +120,9 @@                      (x .?> "Users" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable ListUsers+instance Hashable ListUsers where -instance NFData ListUsers+instance NFData ListUsers where  instance ToHeaders ListUsers where         toHeaders@@ -154,11 +156,12 @@ -- -- /See:/ 'listUsersResponse' smart constructor. data ListUsersResponse = ListUsersResponse'-    { _lursPaginationToken :: !(Maybe Text)-    , _lursUsers           :: !(Maybe [UserType])-    , _lursResponseStatus  :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _lursPaginationToken :: !(Maybe Text)+  , _lursUsers           :: !(Maybe [UserType])+  , _lursResponseStatus  :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ListUsersResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -172,12 +175,13 @@     :: Int -- ^ 'lursResponseStatus'     -> ListUsersResponse listUsersResponse pResponseStatus_ =-    ListUsersResponse'-    { _lursPaginationToken = Nothing-    , _lursUsers = Nothing-    , _lursResponseStatus = pResponseStatus_-    }+  ListUsersResponse'+  { _lursPaginationToken = Nothing+  , _lursUsers = Nothing+  , _lursResponseStatus = pResponseStatus_+  } + -- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. lursPaginationToken :: Lens' ListUsersResponse (Maybe Text) lursPaginationToken = lens _lursPaginationToken (\ s a -> s{_lursPaginationToken = a});@@ -190,4 +194,4 @@ lursResponseStatus :: Lens' ListUsersResponse Int lursResponseStatus = lens _lursResponseStatus (\ s a -> s{_lursResponseStatus = a}); -instance NFData ListUsersResponse+instance NFData ListUsersResponse where
+ gen/Network/AWS/CognitoIdentityProvider/ListUsersInGroup.hs view
@@ -0,0 +1,181 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.ListUsersInGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the users in the specified group.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.ListUsersInGroup+    (+    -- * Creating a Request+      listUsersInGroup+    , ListUsersInGroup+    -- * Request Lenses+    , luigNextToken+    , luigLimit+    , luigUserPoolId+    , luigGroupName++    -- * Destructuring the Response+    , listUsersInGroupResponse+    , ListUsersInGroupResponse+    -- * Response Lenses+    , luigrsUsers+    , luigrsNextToken+    , luigrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listUsersInGroup' smart constructor.+data ListUsersInGroup = ListUsersInGroup'+  { _luigNextToken  :: !(Maybe Text)+  , _luigLimit      :: !(Maybe Nat)+  , _luigUserPoolId :: !Text+  , _luigGroupName  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListUsersInGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'luigNextToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+--+-- * 'luigLimit' - The limit of the request to list users.+--+-- * 'luigUserPoolId' - The user pool ID for the user pool.+--+-- * 'luigGroupName' - The name of the group.+listUsersInGroup+    :: Text -- ^ 'luigUserPoolId'+    -> Text -- ^ 'luigGroupName'+    -> ListUsersInGroup+listUsersInGroup pUserPoolId_ pGroupName_ =+  ListUsersInGroup'+  { _luigNextToken = Nothing+  , _luigLimit = Nothing+  , _luigUserPoolId = pUserPoolId_+  , _luigGroupName = pGroupName_+  }+++-- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+luigNextToken :: Lens' ListUsersInGroup (Maybe Text)+luigNextToken = lens _luigNextToken (\ s a -> s{_luigNextToken = a});++-- | The limit of the request to list users.+luigLimit :: Lens' ListUsersInGroup (Maybe Natural)+luigLimit = lens _luigLimit (\ s a -> s{_luigLimit = a}) . mapping _Nat;++-- | The user pool ID for the user pool.+luigUserPoolId :: Lens' ListUsersInGroup Text+luigUserPoolId = lens _luigUserPoolId (\ s a -> s{_luigUserPoolId = a});++-- | The name of the group.+luigGroupName :: Lens' ListUsersInGroup Text+luigGroupName = lens _luigGroupName (\ s a -> s{_luigGroupName = a});++instance AWSRequest ListUsersInGroup where+        type Rs ListUsersInGroup = ListUsersInGroupResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 ListUsersInGroupResponse' <$>+                   (x .?> "Users" .!@ mempty) <*> (x .?> "NextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListUsersInGroup where++instance NFData ListUsersInGroup where++instance ToHeaders ListUsersInGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.ListUsersInGroup"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListUsersInGroup where+        toJSON ListUsersInGroup'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _luigNextToken,+                  ("Limit" .=) <$> _luigLimit,+                  Just ("UserPoolId" .= _luigUserPoolId),+                  Just ("GroupName" .= _luigGroupName)])++instance ToPath ListUsersInGroup where+        toPath = const "/"++instance ToQuery ListUsersInGroup where+        toQuery = const mempty++-- | /See:/ 'listUsersInGroupResponse' smart constructor.+data ListUsersInGroupResponse = ListUsersInGroupResponse'+  { _luigrsUsers          :: !(Maybe [UserType])+  , _luigrsNextToken      :: !(Maybe Text)+  , _luigrsResponseStatus :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListUsersInGroupResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'luigrsUsers' - The users returned in the request to list users.+--+-- * 'luigrsNextToken' - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+--+-- * 'luigrsResponseStatus' - -- | The response status code.+listUsersInGroupResponse+    :: Int -- ^ 'luigrsResponseStatus'+    -> ListUsersInGroupResponse+listUsersInGroupResponse pResponseStatus_ =+  ListUsersInGroupResponse'+  { _luigrsUsers = Nothing+  , _luigrsNextToken = Nothing+  , _luigrsResponseStatus = pResponseStatus_+  }+++-- | The users returned in the request to list users.+luigrsUsers :: Lens' ListUsersInGroupResponse [UserType]+luigrsUsers = lens _luigrsUsers (\ s a -> s{_luigrsUsers = a}) . _Default . _Coerce;++-- | An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.+luigrsNextToken :: Lens' ListUsersInGroupResponse (Maybe Text)+luigrsNextToken = lens _luigrsNextToken (\ s a -> s{_luigrsNextToken = a});++-- | -- | The response status code.+luigrsResponseStatus :: Lens' ListUsersInGroupResponse Int+luigrsResponseStatus = lens _luigrsResponseStatus (\ s a -> s{_luigrsResponseStatus = a});++instance NFData ListUsersInGroupResponse where
gen/Network/AWS/CognitoIdentityProvider/ResendConfirmationCode.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.ResendConfirmationCode--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , rccrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to resend the confirmation code. --@@ -52,11 +52,12 @@ -- -- /See:/ 'resendConfirmationCode' smart constructor. data ResendConfirmationCode = ResendConfirmationCode'-    { _rccSecretHash :: !(Maybe (Sensitive Text))-    , _rccClientId   :: !(Sensitive Text)-    , _rccUsername   :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _rccSecretHash :: !(Maybe (Sensitive Text))+  , _rccClientId   :: !(Sensitive Text)+  , _rccUsername   :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ResendConfirmationCode' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -71,12 +72,13 @@     -> Text -- ^ 'rccUsername'     -> ResendConfirmationCode resendConfirmationCode pClientId_ pUsername_ =-    ResendConfirmationCode'-    { _rccSecretHash = Nothing-    , _rccClientId = _Sensitive # pClientId_-    , _rccUsername = _Sensitive # pUsername_-    }+  ResendConfirmationCode'+  { _rccSecretHash = Nothing+  , _rccClientId = _Sensitive # pClientId_+  , _rccUsername = _Sensitive # pUsername_+  } + -- | A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. rccSecretHash :: Lens' ResendConfirmationCode (Maybe Text) rccSecretHash = lens _rccSecretHash (\ s a -> s{_rccSecretHash = a}) . mapping _Sensitive;@@ -100,9 +102,9 @@                    (x .?> "CodeDeliveryDetails") <*>                      (pure (fromEnum s))) -instance Hashable ResendConfirmationCode+instance Hashable ResendConfirmationCode where -instance NFData ResendConfirmationCode+instance NFData ResendConfirmationCode where  instance ToHeaders ResendConfirmationCode where         toHeaders@@ -134,10 +136,11 @@ -- -- /See:/ 'resendConfirmationCodeResponse' smart constructor. data ResendConfirmationCodeResponse = ResendConfirmationCodeResponse'-    { _rccrsCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)-    , _rccrsResponseStatus      :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _rccrsCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)+  , _rccrsResponseStatus      :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ResendConfirmationCodeResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -149,11 +152,10 @@     :: Int -- ^ 'rccrsResponseStatus'     -> ResendConfirmationCodeResponse resendConfirmationCodeResponse pResponseStatus_ =-    ResendConfirmationCodeResponse'-    { _rccrsCodeDeliveryDetails = Nothing-    , _rccrsResponseStatus = pResponseStatus_-    }+  ResendConfirmationCodeResponse'+  {_rccrsCodeDeliveryDetails = Nothing, _rccrsResponseStatus = pResponseStatus_} + -- | The code delivery details returned by the server in response to the request to resend the confirmation code. rccrsCodeDeliveryDetails :: Lens' ResendConfirmationCodeResponse (Maybe CodeDeliveryDetailsType) rccrsCodeDeliveryDetails = lens _rccrsCodeDeliveryDetails (\ s a -> s{_rccrsCodeDeliveryDetails = a});@@ -162,4 +164,4 @@ rccrsResponseStatus :: Lens' ResendConfirmationCodeResponse Int rccrsResponseStatus = lens _rccrsResponseStatus (\ s a -> s{_rccrsResponseStatus = a}); -instance NFData ResendConfirmationCodeResponse+instance NFData ResendConfirmationCodeResponse where
gen/Network/AWS/CognitoIdentityProvider/RespondToAuthChallenge.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.RespondToAuthChallenge--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,12 +43,12 @@     , rtacrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The request to respond to an authentication challenge. --@@ -56,48 +56,50 @@ -- -- /See:/ 'respondToAuthChallenge' smart constructor. data RespondToAuthChallenge = RespondToAuthChallenge'-    { _rtacChallengeResponses :: !(Maybe (Map Text Text))-    , _rtacSession            :: !(Maybe Text)-    , _rtacClientId           :: !(Sensitive Text)-    , _rtacChallengeName      :: !ChallengeNameType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _rtacChallengeResponses :: !(Maybe (Map Text Text))+  , _rtacSession            :: !(Maybe Text)+  , _rtacClientId           :: !(Sensitive Text)+  , _rtacChallengeName      :: !ChallengeNameType+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'RespondToAuthChallenge' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rtacChallengeResponses' - The responses to the authentication challenge.+-- * 'rtacChallengeResponses' - The challenge responses. These are inputs corresponding to the value of @ChallengeName@ , for example:     * @SMS_MFA@ : @SMS_MFA_CODE@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @PASSWORD_VERIFIER@ : @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , @TIMESTAMP@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @NEW_PASSWORD_REQUIRED@ : @NEW_PASSWORD@ , any other required attributes, @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret). ----- * 'rtacSession' - The session.+-- * 'rtacSession' - The session which should be passed both ways in challenge-response calls to the service. If @InitiateAuth@ or @RespondToAuthChallenge@ API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. ----- * 'rtacClientId' - The client ID.+-- * 'rtacClientId' - The app client ID. ----- * 'rtacChallengeName' - The name of the challenge.+-- * 'rtacChallengeName' - The challenge name. For more information, see <API_InitiateAuth.html InitiateAuth> . @ADMIN_NO_SRP_AUTH@ is not a valid value. respondToAuthChallenge     :: Text -- ^ 'rtacClientId'     -> ChallengeNameType -- ^ 'rtacChallengeName'     -> RespondToAuthChallenge respondToAuthChallenge pClientId_ pChallengeName_ =-    RespondToAuthChallenge'-    { _rtacChallengeResponses = Nothing-    , _rtacSession = Nothing-    , _rtacClientId = _Sensitive # pClientId_-    , _rtacChallengeName = pChallengeName_-    }+  RespondToAuthChallenge'+  { _rtacChallengeResponses = Nothing+  , _rtacSession = Nothing+  , _rtacClientId = _Sensitive # pClientId_+  , _rtacChallengeName = pChallengeName_+  } --- | The responses to the authentication challenge.++-- | The challenge responses. These are inputs corresponding to the value of @ChallengeName@ , for example:     * @SMS_MFA@ : @SMS_MFA_CODE@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @PASSWORD_VERIFIER@ : @PASSWORD_CLAIM_SIGNATURE@ , @PASSWORD_CLAIM_SECRET_BLOCK@ , @TIMESTAMP@ , @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret).     * @NEW_PASSWORD_REQUIRED@ : @NEW_PASSWORD@ , any other required attributes, @USERNAME@ , @SECRET_HASH@ (if app client is configured with client secret). rtacChallengeResponses :: Lens' RespondToAuthChallenge (HashMap Text Text) rtacChallengeResponses = lens _rtacChallengeResponses (\ s a -> s{_rtacChallengeResponses = a}) . _Default . _Map; --- | The session.+-- | The session which should be passed both ways in challenge-response calls to the service. If @InitiateAuth@ or @RespondToAuthChallenge@ API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. rtacSession :: Lens' RespondToAuthChallenge (Maybe Text) rtacSession = lens _rtacSession (\ s a -> s{_rtacSession = a}); --- | The client ID.+-- | The app client ID. rtacClientId :: Lens' RespondToAuthChallenge Text rtacClientId = lens _rtacClientId (\ s a -> s{_rtacClientId = a}) . _Sensitive; --- | The name of the challenge.+-- | The challenge name. For more information, see <API_InitiateAuth.html InitiateAuth> . @ADMIN_NO_SRP_AUTH@ is not a valid value. rtacChallengeName :: Lens' RespondToAuthChallenge ChallengeNameType rtacChallengeName = lens _rtacChallengeName (\ s a -> s{_rtacChallengeName = a}); @@ -115,9 +117,9 @@                      <*> (x .?> "Session")                      <*> (pure (fromEnum s))) -instance Hashable RespondToAuthChallenge+instance Hashable RespondToAuthChallenge where -instance NFData RespondToAuthChallenge+instance NFData RespondToAuthChallenge where  instance ToHeaders RespondToAuthChallenge where         toHeaders@@ -151,43 +153,45 @@ -- -- /See:/ 'respondToAuthChallengeResponse' smart constructor. data RespondToAuthChallengeResponse = RespondToAuthChallengeResponse'-    { _rtacrsChallengeName        :: !(Maybe ChallengeNameType)-    , _rtacrsChallengeParameters  :: !(Maybe (Map Text Text))-    , _rtacrsAuthenticationResult :: !(Maybe AuthenticationResultType)-    , _rtacrsSession              :: !(Maybe Text)-    , _rtacrsResponseStatus       :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _rtacrsChallengeName        :: !(Maybe ChallengeNameType)+  , _rtacrsChallengeParameters  :: !(Maybe (Map Text Text))+  , _rtacrsAuthenticationResult :: !(Maybe AuthenticationResultType)+  , _rtacrsSession              :: !(Maybe Text)+  , _rtacrsResponseStatus       :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'RespondToAuthChallengeResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rtacrsChallengeName' - The challenge name.+-- * 'rtacrsChallengeName' - The challenge name. For more information, see <API_InitiateAuth.html InitiateAuth> . ----- * 'rtacrsChallengeParameters' - The challenge parameters.+-- * 'rtacrsChallengeParameters' - The challenge parameters. For more information, see <API_InitiateAuth.html InitiateAuth> . -- -- * 'rtacrsAuthenticationResult' - The result returned by the server in response to the request to respond to the authentication challenge. ----- * 'rtacrsSession' - The session.+-- * 'rtacrsSession' - The session which should be passed both ways in challenge-response calls to the service. If the <API_InitiateAuth.html InitiateAuth> or <API_RespondToAuthChallenge.html RespondToAuthChallenge> API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. -- -- * 'rtacrsResponseStatus' - -- | The response status code. respondToAuthChallengeResponse     :: Int -- ^ 'rtacrsResponseStatus'     -> RespondToAuthChallengeResponse respondToAuthChallengeResponse pResponseStatus_ =-    RespondToAuthChallengeResponse'-    { _rtacrsChallengeName = Nothing-    , _rtacrsChallengeParameters = Nothing-    , _rtacrsAuthenticationResult = Nothing-    , _rtacrsSession = Nothing-    , _rtacrsResponseStatus = pResponseStatus_-    }+  RespondToAuthChallengeResponse'+  { _rtacrsChallengeName = Nothing+  , _rtacrsChallengeParameters = Nothing+  , _rtacrsAuthenticationResult = Nothing+  , _rtacrsSession = Nothing+  , _rtacrsResponseStatus = pResponseStatus_+  } --- | The challenge name.++-- | The challenge name. For more information, see <API_InitiateAuth.html InitiateAuth> . rtacrsChallengeName :: Lens' RespondToAuthChallengeResponse (Maybe ChallengeNameType) rtacrsChallengeName = lens _rtacrsChallengeName (\ s a -> s{_rtacrsChallengeName = a}); --- | The challenge parameters.+-- | The challenge parameters. For more information, see <API_InitiateAuth.html InitiateAuth> . rtacrsChallengeParameters :: Lens' RespondToAuthChallengeResponse (HashMap Text Text) rtacrsChallengeParameters = lens _rtacrsChallengeParameters (\ s a -> s{_rtacrsChallengeParameters = a}) . _Default . _Map; @@ -195,7 +199,7 @@ rtacrsAuthenticationResult :: Lens' RespondToAuthChallengeResponse (Maybe AuthenticationResultType) rtacrsAuthenticationResult = lens _rtacrsAuthenticationResult (\ s a -> s{_rtacrsAuthenticationResult = a}); --- | The session.+-- | The session which should be passed both ways in challenge-response calls to the service. If the <API_InitiateAuth.html InitiateAuth> or <API_RespondToAuthChallenge.html RespondToAuthChallenge> API call determines that the caller needs to go through another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next @RespondToAuthChallenge@ API call. rtacrsSession :: Lens' RespondToAuthChallengeResponse (Maybe Text) rtacrsSession = lens _rtacrsSession (\ s a -> s{_rtacrsSession = a}); @@ -203,4 +207,4 @@ rtacrsResponseStatus :: Lens' RespondToAuthChallengeResponse Int rtacrsResponseStatus = lens _rtacrsResponseStatus (\ s a -> s{_rtacrsResponseStatus = a}); -instance NFData RespondToAuthChallengeResponse+instance NFData RespondToAuthChallengeResponse where
+ gen/Network/AWS/CognitoIdentityProvider/SetUICustomization.hs view
@@ -0,0 +1,172 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.SetUICustomization+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the UI customization information for a user pool's built-in app UI.+--+--+-- You can specify app UI customization settings for a single client (with a specific @clientId@ ) or for all clients (by setting the @clientId@ to @ALL@ ). If you specify @ALL@ , the default configuration will be used for every client that has no UI customization set previously. If you specify UI customization settings for a particular client, it will no longer fall back to the @ALL@ configuration.+--+module Network.AWS.CognitoIdentityProvider.SetUICustomization+    (+    -- * Creating a Request+      setUICustomization+    , SetUICustomization+    -- * Request Lenses+    , suicClientId+    , suicCSS+    , suicImageFile+    , suicUserPoolId++    -- * Destructuring the Response+    , setUICustomizationResponse+    , SetUICustomizationResponse+    -- * Response Lenses+    , suicrsResponseStatus+    , suicrsUICustomization+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'setUICustomization' smart constructor.+data SetUICustomization = SetUICustomization'+  { _suicClientId   :: !(Maybe (Sensitive Text))+  , _suicCSS        :: !(Maybe Text)+  , _suicImageFile  :: !(Maybe Base64)+  , _suicUserPoolId :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SetUICustomization' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'suicClientId' - The client ID for the client app.+--+-- * 'suicCSS' - The CSS values in the UI customization.+--+-- * 'suicImageFile' - The uploaded logo image for the UI customization.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+--+-- * 'suicUserPoolId' - The user pool ID for the user pool.+setUICustomization+    :: Text -- ^ 'suicUserPoolId'+    -> SetUICustomization+setUICustomization pUserPoolId_ =+  SetUICustomization'+  { _suicClientId = Nothing+  , _suicCSS = Nothing+  , _suicImageFile = Nothing+  , _suicUserPoolId = pUserPoolId_+  }+++-- | The client ID for the client app.+suicClientId :: Lens' SetUICustomization (Maybe Text)+suicClientId = lens _suicClientId (\ s a -> s{_suicClientId = a}) . mapping _Sensitive;++-- | The CSS values in the UI customization.+suicCSS :: Lens' SetUICustomization (Maybe Text)+suicCSS = lens _suicCSS (\ s a -> s{_suicCSS = a});++-- | The uploaded logo image for the UI customization.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+suicImageFile :: Lens' SetUICustomization (Maybe ByteString)+suicImageFile = lens _suicImageFile (\ s a -> s{_suicImageFile = a}) . mapping _Base64;++-- | The user pool ID for the user pool.+suicUserPoolId :: Lens' SetUICustomization Text+suicUserPoolId = lens _suicUserPoolId (\ s a -> s{_suicUserPoolId = a});++instance AWSRequest SetUICustomization where+        type Rs SetUICustomization =+             SetUICustomizationResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 SetUICustomizationResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "UICustomization"))++instance Hashable SetUICustomization where++instance NFData SetUICustomization where++instance ToHeaders SetUICustomization where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.SetUICustomization"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON SetUICustomization where+        toJSON SetUICustomization'{..}+          = object+              (catMaybes+                 [("ClientId" .=) <$> _suicClientId,+                  ("CSS" .=) <$> _suicCSS,+                  ("ImageFile" .=) <$> _suicImageFile,+                  Just ("UserPoolId" .= _suicUserPoolId)])++instance ToPath SetUICustomization where+        toPath = const "/"++instance ToQuery SetUICustomization where+        toQuery = const mempty++-- | /See:/ 'setUICustomizationResponse' smart constructor.+data SetUICustomizationResponse = SetUICustomizationResponse'+  { _suicrsResponseStatus  :: !Int+  , _suicrsUICustomization :: !UICustomizationType+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SetUICustomizationResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'suicrsResponseStatus' - -- | The response status code.+--+-- * 'suicrsUICustomization' - The UI customization information.+setUICustomizationResponse+    :: Int -- ^ 'suicrsResponseStatus'+    -> UICustomizationType -- ^ 'suicrsUICustomization'+    -> SetUICustomizationResponse+setUICustomizationResponse pResponseStatus_ pUICustomization_ =+  SetUICustomizationResponse'+  { _suicrsResponseStatus = pResponseStatus_+  , _suicrsUICustomization = pUICustomization_+  }+++-- | -- | The response status code.+suicrsResponseStatus :: Lens' SetUICustomizationResponse Int+suicrsResponseStatus = lens _suicrsResponseStatus (\ s a -> s{_suicrsResponseStatus = a});++-- | The UI customization information.+suicrsUICustomization :: Lens' SetUICustomizationResponse UICustomizationType+suicrsUICustomization = lens _suicrsUICustomization (\ s a -> s{_suicrsUICustomization = a});++instance NFData SetUICustomizationResponse where
gen/Network/AWS/CognitoIdentityProvider/SetUserSettings.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.SetUserSettings--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , susrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to set user settings. --@@ -50,10 +50,11 @@ -- -- /See:/ 'setUserSettings' smart constructor. data SetUserSettings = SetUserSettings'-    { _susAccessToken :: !(Sensitive Text)-    , _susMFAOptions  :: ![MFAOptionType]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _susAccessToken :: !(Sensitive Text)+  , _susMFAOptions  :: ![MFAOptionType]+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'SetUserSettings' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -65,11 +66,10 @@     :: Text -- ^ 'susAccessToken'     -> SetUserSettings setUserSettings pAccessToken_ =-    SetUserSettings'-    { _susAccessToken = _Sensitive # pAccessToken_-    , _susMFAOptions = mempty-    }+  SetUserSettings'+  {_susAccessToken = _Sensitive # pAccessToken_, _susMFAOptions = mempty} + -- | The access token for the set user settings request. susAccessToken :: Lens' SetUserSettings Text susAccessToken = lens _susAccessToken (\ s a -> s{_susAccessToken = a}) . _Sensitive;@@ -86,9 +86,9 @@               (\ s h x ->                  SetUserSettingsResponse' <$> (pure (fromEnum s))) -instance Hashable SetUserSettings+instance Hashable SetUserSettings where -instance NFData SetUserSettings+instance NFData SetUserSettings where  instance ToHeaders SetUserSettings where         toHeaders@@ -119,9 +119,10 @@ -- -- /See:/ 'setUserSettingsResponse' smart constructor. newtype SetUserSettingsResponse = SetUserSettingsResponse'-    { _susrsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _susrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'SetUserSettingsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -131,12 +132,11 @@     :: Int -- ^ 'susrsResponseStatus'     -> SetUserSettingsResponse setUserSettingsResponse pResponseStatus_ =-    SetUserSettingsResponse'-    { _susrsResponseStatus = pResponseStatus_-    }+  SetUserSettingsResponse' {_susrsResponseStatus = pResponseStatus_} + -- | -- | The response status code. susrsResponseStatus :: Lens' SetUserSettingsResponse Int susrsResponseStatus = lens _susrsResponseStatus (\ s a -> s{_susrsResponseStatus = a}); -instance NFData SetUserSettingsResponse+instance NFData SetUserSettingsResponse where
gen/Network/AWS/CognitoIdentityProvider/SignUp.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.SignUp--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,17 +38,18 @@     , signUpResponse     , SignUpResponse     -- * Response Lenses-    , sursUserConfirmed     , sursCodeDeliveryDetails     , sursResponseStatus+    , sursUserConfirmed+    , sursUserSub     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to register a user. --@@ -56,19 +57,20 @@ -- -- /See:/ 'signUp' smart constructor. data SignUp = SignUp'-    { _suUserAttributes :: !(Maybe [AttributeType])-    , _suSecretHash     :: !(Maybe (Sensitive Text))-    , _suValidationData :: !(Maybe [AttributeType])-    , _suClientId       :: !(Sensitive Text)-    , _suUsername       :: !(Sensitive Text)-    , _suPassword       :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _suUserAttributes :: !(Maybe [AttributeType])+  , _suSecretHash     :: !(Maybe (Sensitive Text))+  , _suValidationData :: !(Maybe [AttributeType])+  , _suClientId       :: !(Sensitive Text)+  , _suUsername       :: !(Sensitive Text)+  , _suPassword       :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'SignUp' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'suUserAttributes' - An array of name-value pairs representing user attributes.+-- * 'suUserAttributes' - An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. -- -- * 'suSecretHash' - A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. --@@ -85,16 +87,17 @@     -> Text -- ^ 'suPassword'     -> SignUp signUp pClientId_ pUsername_ pPassword_ =-    SignUp'-    { _suUserAttributes = Nothing-    , _suSecretHash = Nothing-    , _suValidationData = Nothing-    , _suClientId = _Sensitive # pClientId_-    , _suUsername = _Sensitive # pUsername_-    , _suPassword = _Sensitive # pPassword_-    }+  SignUp'+  { _suUserAttributes = Nothing+  , _suSecretHash = Nothing+  , _suValidationData = Nothing+  , _suClientId = _Sensitive # pClientId_+  , _suUsername = _Sensitive # pUsername_+  , _suPassword = _Sensitive # pPassword_+  } --- | An array of name-value pairs representing user attributes.++-- | An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. suUserAttributes :: Lens' SignUp [AttributeType] suUserAttributes = lens _suUserAttributes (\ s a -> s{_suUserAttributes = a}) . _Default . _Coerce; @@ -125,13 +128,13 @@           = receiveJSON               (\ s h x ->                  SignUpResponse' <$>-                   (x .?> "UserConfirmed") <*>-                     (x .?> "CodeDeliveryDetails")-                     <*> (pure (fromEnum s)))+                   (x .?> "CodeDeliveryDetails") <*> (pure (fromEnum s))+                     <*> (x .:> "UserConfirmed")+                     <*> (x .:> "UserSub")) -instance Hashable SignUp+instance Hashable SignUp where -instance NFData SignUp+instance NFData SignUp where  instance ToHeaders SignUp where         toHeaders@@ -166,33 +169,37 @@ -- -- /See:/ 'signUpResponse' smart constructor. data SignUpResponse = SignUpResponse'-    { _sursUserConfirmed       :: !(Maybe Bool)-    , _sursCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)-    , _sursResponseStatus      :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _sursCodeDeliveryDetails :: !(Maybe CodeDeliveryDetailsType)+  , _sursResponseStatus      :: !Int+  , _sursUserConfirmed       :: !Bool+  , _sursUserSub             :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'SignUpResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sursUserConfirmed' - A response from the server indicating that a user registration has been confirmed.--- -- * 'sursCodeDeliveryDetails' - The code delivery details returned by the server response to the user registration request. -- -- * 'sursResponseStatus' - -- | The response status code.+--+-- * 'sursUserConfirmed' - A response from the server indicating that a user registration has been confirmed.+--+-- * 'sursUserSub' - The UUID of the authenticated user. This is not the same as @username@ . signUpResponse     :: Int -- ^ 'sursResponseStatus'+    -> Bool -- ^ 'sursUserConfirmed'+    -> Text -- ^ 'sursUserSub'     -> SignUpResponse-signUpResponse pResponseStatus_ =-    SignUpResponse'-    { _sursUserConfirmed = Nothing-    , _sursCodeDeliveryDetails = Nothing-    , _sursResponseStatus = pResponseStatus_-    }+signUpResponse pResponseStatus_ pUserConfirmed_ pUserSub_ =+  SignUpResponse'+  { _sursCodeDeliveryDetails = Nothing+  , _sursResponseStatus = pResponseStatus_+  , _sursUserConfirmed = pUserConfirmed_+  , _sursUserSub = pUserSub_+  } --- | A response from the server indicating that a user registration has been confirmed.-sursUserConfirmed :: Lens' SignUpResponse (Maybe Bool)-sursUserConfirmed = lens _sursUserConfirmed (\ s a -> s{_sursUserConfirmed = a});  -- | The code delivery details returned by the server response to the user registration request. sursCodeDeliveryDetails :: Lens' SignUpResponse (Maybe CodeDeliveryDetailsType)@@ -202,4 +209,12 @@ sursResponseStatus :: Lens' SignUpResponse Int sursResponseStatus = lens _sursResponseStatus (\ s a -> s{_sursResponseStatus = a}); -instance NFData SignUpResponse+-- | A response from the server indicating that a user registration has been confirmed.+sursUserConfirmed :: Lens' SignUpResponse Bool+sursUserConfirmed = lens _sursUserConfirmed (\ s a -> s{_sursUserConfirmed = a});++-- | The UUID of the authenticated user. This is not the same as @username@ .+sursUserSub :: Lens' SignUpResponse Text+sursUserSub = lens _sursUserSub (\ s a -> s{_sursUserSub = a});++instance NFData SignUpResponse where
gen/Network/AWS/CognitoIdentityProvider/StartUserImportJob.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.StartUserImportJob--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , suijrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to start the user import job. --@@ -51,10 +51,11 @@ -- -- /See:/ 'startUserImportJob' smart constructor. data StartUserImportJob = StartUserImportJob'-    { _suijUserPoolId :: !Text-    , _suijJobId      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _suijUserPoolId :: !Text+  , _suijJobId      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'StartUserImportJob' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -67,11 +68,9 @@     -> Text -- ^ 'suijJobId'     -> StartUserImportJob startUserImportJob pUserPoolId_ pJobId_ =-    StartUserImportJob'-    { _suijUserPoolId = pUserPoolId_-    , _suijJobId = pJobId_-    }+  StartUserImportJob' {_suijUserPoolId = pUserPoolId_, _suijJobId = pJobId_} + -- | The user pool ID for the user pool that the users are being imported into. suijUserPoolId :: Lens' StartUserImportJob Text suijUserPoolId = lens _suijUserPoolId (\ s a -> s{_suijUserPoolId = a});@@ -90,9 +89,9 @@                  StartUserImportJobResponse' <$>                    (x .?> "UserImportJob") <*> (pure (fromEnum s))) -instance Hashable StartUserImportJob+instance Hashable StartUserImportJob where -instance NFData StartUserImportJob+instance NFData StartUserImportJob where  instance ToHeaders StartUserImportJob where         toHeaders@@ -123,10 +122,11 @@ -- -- /See:/ 'startUserImportJobResponse' smart constructor. data StartUserImportJobResponse = StartUserImportJobResponse'-    { _suijrsUserImportJob  :: !(Maybe UserImportJobType)-    , _suijrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _suijrsUserImportJob  :: !(Maybe UserImportJobType)+  , _suijrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'StartUserImportJobResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -138,11 +138,10 @@     :: Int -- ^ 'suijrsResponseStatus'     -> StartUserImportJobResponse startUserImportJobResponse pResponseStatus_ =-    StartUserImportJobResponse'-    { _suijrsUserImportJob = Nothing-    , _suijrsResponseStatus = pResponseStatus_-    }+  StartUserImportJobResponse'+  {_suijrsUserImportJob = Nothing, _suijrsResponseStatus = pResponseStatus_} + -- | The job object that represents the user import job. suijrsUserImportJob :: Lens' StartUserImportJobResponse (Maybe UserImportJobType) suijrsUserImportJob = lens _suijrsUserImportJob (\ s a -> s{_suijrsUserImportJob = a});@@ -151,4 +150,4 @@ suijrsResponseStatus :: Lens' StartUserImportJobResponse Int suijrsResponseStatus = lens _suijrsResponseStatus (\ s a -> s{_suijrsResponseStatus = a}); -instance NFData StartUserImportJobResponse+instance NFData StartUserImportJobResponse where
gen/Network/AWS/CognitoIdentityProvider/StopUserImportJob.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.StopUserImportJob--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , srsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to stop the user import job. --@@ -51,10 +51,11 @@ -- -- /See:/ 'stopUserImportJob' smart constructor. data StopUserImportJob = StopUserImportJob'-    { _sUserPoolId :: !Text-    , _sJobId      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _sUserPoolId :: !Text+  , _sJobId      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'StopUserImportJob' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -67,11 +68,9 @@     -> Text -- ^ 'sJobId'     -> StopUserImportJob stopUserImportJob pUserPoolId_ pJobId_ =-    StopUserImportJob'-    { _sUserPoolId = pUserPoolId_-    , _sJobId = pJobId_-    }+  StopUserImportJob' {_sUserPoolId = pUserPoolId_, _sJobId = pJobId_} + -- | The user pool ID for the user pool that the users are being imported into. sUserPoolId :: Lens' StopUserImportJob Text sUserPoolId = lens _sUserPoolId (\ s a -> s{_sUserPoolId = a});@@ -89,9 +88,9 @@                  StopUserImportJobResponse' <$>                    (x .?> "UserImportJob") <*> (pure (fromEnum s))) -instance Hashable StopUserImportJob+instance Hashable StopUserImportJob where -instance NFData StopUserImportJob+instance NFData StopUserImportJob where  instance ToHeaders StopUserImportJob where         toHeaders@@ -122,10 +121,11 @@ -- -- /See:/ 'stopUserImportJobResponse' smart constructor. data StopUserImportJobResponse = StopUserImportJobResponse'-    { _srsUserImportJob  :: !(Maybe UserImportJobType)-    , _srsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _srsUserImportJob  :: !(Maybe UserImportJobType)+  , _srsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'StopUserImportJobResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -137,11 +137,10 @@     :: Int -- ^ 'srsResponseStatus'     -> StopUserImportJobResponse stopUserImportJobResponse pResponseStatus_ =-    StopUserImportJobResponse'-    { _srsUserImportJob = Nothing-    , _srsResponseStatus = pResponseStatus_-    }+  StopUserImportJobResponse'+  {_srsUserImportJob = Nothing, _srsResponseStatus = pResponseStatus_} + -- | The job object that represents the user import job. srsUserImportJob :: Lens' StopUserImportJobResponse (Maybe UserImportJobType) srsUserImportJob = lens _srsUserImportJob (\ s a -> s{_srsUserImportJob = a});@@ -150,4 +149,4 @@ srsResponseStatus :: Lens' StopUserImportJobResponse Int srsResponseStatus = lens _srsResponseStatus (\ s a -> s{_srsResponseStatus = a}); -instance NFData StopUserImportJobResponse+instance NFData StopUserImportJobResponse where
gen/Network/AWS/CognitoIdentityProvider/Types.hs view
@@ -4,9 +4,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.Types--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -21,15 +21,18 @@     , _InvalidParameterException     , _InvalidLambdaResponseException     , _InvalidEmailRoleAccessPolicyException+    , _UnsupportedIdentityProviderException     , _UserNotFoundException     , _UnexpectedLambdaException     , _NotAuthorizedException     , _InternalErrorException     , _InvalidUserPoolConfigurationException     , _InvalidSmsRoleAccessPolicyException+    , _InvalidOAuthFlowException     , _CodeMismatchException     , _UserImportInProgressException     , _InvalidSmsRoleTrustRelationshipException+    , _UserPoolTaggingException     , _TooManyRequestsException     , _ConcurrentModificationException     , _UserLambdaValidationException@@ -37,10 +40,13 @@     , _ExpiredCodeException     , _TooManyFailedAttemptsException     , _UserNotConfirmedException+    , _GroupExistsException     , _CodeDeliveryFailureException+    , _ScopeDoesNotExistException     , _ResourceNotFoundException     , _MFAMethodNotFoundException     , _AliasExistsException+    , _DuplicateProviderException     , _LimitExceededException     , _InvalidPasswordException     , _UsernameExistsException@@ -57,18 +63,30 @@     -- * ChallengeNameType     , ChallengeNameType (..) +    -- * DefaultEmailOptionType+    , DefaultEmailOptionType (..)+     -- * DeliveryMediumType     , DeliveryMediumType (..)      -- * DeviceRememberedStatusType     , DeviceRememberedStatusType (..) +    -- * DomainStatusType+    , DomainStatusType (..)+     -- * ExplicitAuthFlowsType     , ExplicitAuthFlowsType (..) +    -- * IdentityProviderTypeType+    , IdentityProviderTypeType (..)+     -- * MessageActionType     , MessageActionType (..) +    -- * OAuthFlowType+    , OAuthFlowType (..)+     -- * StatusType     , StatusType (..) @@ -81,6 +99,9 @@     -- * UserStatusType     , UserStatusType (..) +    -- * UsernameAttributeType+    , UsernameAttributeType (..)+     -- * VerifiedAttributeType     , VerifiedAttributeType (..) @@ -135,12 +156,46 @@     , dtDeviceKey     , dtDeviceLastAuthenticatedDate +    -- * DomainDescriptionType+    , DomainDescriptionType+    , domainDescriptionType+    , ddtStatus+    , ddtCloudFrontDistribution+    , ddtUserPoolId+    , ddtDomain+    , ddtAWSAccountId+    , ddtVersion+    , ddtS3Bucket+     -- * EmailConfigurationType     , EmailConfigurationType     , emailConfigurationType     , ectSourceARN     , ectReplyToEmailAddress +    -- * GroupType+    , GroupType+    , groupType+    , gtLastModifiedDate+    , gtUserPoolId+    , gtCreationDate+    , gtPrecedence+    , gtGroupName+    , gtDescription+    , gtRoleARN++    -- * IdentityProviderType+    , IdentityProviderType+    , identityProviderType+    , iptLastModifiedDate+    , iptUserPoolId+    , iptProviderType+    , iptCreationDate+    , iptIdpIdentifiers+    , iptAttributeMapping+    , iptProviderDetails+    , iptProviderName+     -- * LambdaConfigType     , LambdaConfigType     , lambdaConfigType@@ -187,6 +242,35 @@     , pptMinimumLength     , pptRequireSymbols +    -- * ProviderDescription+    , ProviderDescription+    , providerDescription+    , pdLastModifiedDate+    , pdProviderType+    , pdCreationDate+    , pdProviderName++    -- * ProviderUserIdentifierType+    , ProviderUserIdentifierType+    , providerUserIdentifierType+    , puitProviderAttributeValue+    , puitProviderAttributeName+    , puitProviderName++    -- * ResourceServerScopeType+    , ResourceServerScopeType+    , resourceServerScopeType+    , rsstScopeName+    , rsstScopeDescription++    -- * ResourceServerType+    , ResourceServerType+    , resourceServerType+    , rstUserPoolId+    , rstIdentifier+    , rstScopes+    , rstName+     -- * SchemaAttributeType     , SchemaAttributeType     , schemaAttributeType@@ -210,6 +294,17 @@     , sactMaxLength     , sactMinLength +    -- * UICustomizationType+    , UICustomizationType+    , uICustomizationType+    , uictClientId+    , uictLastModifiedDate+    , uictUserPoolId+    , uictCSS+    , uictCSSVersion+    , uictImageURL+    , uictCreationDate+     -- * UserImportJobType     , UserImportJobType     , userImportJobType@@ -242,11 +337,18 @@     , upctExplicitAuthFlows     , upctClientSecret     , upctLastModifiedDate+    , upctSupportedIdentityProviders+    , upctLogoutURLs+    , upctAllowedOAuthFlowsUserPoolClient     , upctUserPoolId+    , upctDefaultRedirectURI     , upctWriteAttributes     , upctCreationDate     , upctReadAttributes+    , upctAllowedOAuthScopes+    , upctAllowedOAuthFlows     , upctClientName+    , upctCallbackURLs      -- * UserPoolDescriptionType     , UserPoolDescriptionType@@ -267,13 +369,16 @@     , UserPoolType     , userPoolType     , uptStatus+    , uptUserPoolTags     , uptEmailConfigurationFailure     , uptLastModifiedDate+    , uptVerificationMessageTemplate     , uptEstimatedNumberOfUsers     , uptEmailVerificationMessage     , uptSmsAuthenticationMessage     , uptSchemaAttributes     , uptEmailVerificationSubject+    , uptUsernameAttributes     , uptAliasAttributes     , uptEmailConfiguration     , uptSmsVerificationMessage@@ -299,40 +404,52 @@     , utAttributes     , utMFAOptions     , utUserLastModifiedDate++    -- * VerificationMessageTemplateType+    , VerificationMessageTemplateType+    , verificationMessageTemplateType+    , vmttDefaultEmailOption+    , vmttEmailSubject+    , vmttEmailSubjectByLink+    , vmttSmsMessage+    , vmttEmailMessageByLink+    , vmttEmailMessage     ) where -import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.CognitoIdentityProvider.Types.Sum-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Sign.V4+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.CognitoIdentityProvider.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Sign.V4  -- | API version @2016-04-18@ of the Amazon Cognito Identity Provider SDK configuration. cognitoIdentityProvider :: Service cognitoIdentityProvider =-    Service-    { _svcAbbrev = "CognitoIdentityProvider"-    , _svcSigner = v4-    , _svcPrefix = "cognito-idp"-    , _svcVersion = "2016-04-18"-    , _svcEndpoint = defaultEndpoint cognitoIdentityProvider-    , _svcTimeout = Just 70-    , _svcCheck = statusSuccess-    , _svcError = parseJSONError "CognitoIdentityProvider"-    , _svcRetry = retry-    }+  Service+  { _svcAbbrev = "CognitoIdentityProvider"+  , _svcSigner = v4+  , _svcPrefix = "cognito-idp"+  , _svcVersion = "2016-04-18"+  , _svcEndpoint = defaultEndpoint cognitoIdentityProvider+  , _svcTimeout = Just 70+  , _svcCheck = statusSuccess+  , _svcError = parseJSONError "CognitoIdentityProvider"+  , _svcRetry = retry+  }   where     retry =-        Exponential-        { _retryBase = 5.0e-2-        , _retryGrowth = 2-        , _retryAttempts = 5-        , _retryCheck = check-        }+      Exponential+      { _retryBase = 5.0e-2+      , _retryGrowth = 2+      , _retryAttempts = 5+      , _retryCheck = check+      }     check e+      | has (hasCode "ThrottledException" . hasStatus 400) e =+        Just "throttled_exception"       | has (hasStatus 429) e = Just "too_many_requests"       | has (hasCode "ThrottlingException" . hasStatus 400) e =-          Just "throttling_exception"+        Just "throttling_exception"       | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"       | has (hasStatus 504) e = Just "gateway_timeout"       | has (hasStatus 502) e = Just "bad_gateway"@@ -341,188 +458,285 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing + -- | The request failed because the user is in an unsupported state. -- -- _UnsupportedUserStateException :: AsError a => Getting (First ServiceError) a ServiceError _UnsupportedUserStateException =-    _ServiceError . hasCode "UnsupportedUserStateException"+  _MatchServiceError cognitoIdentityProvider "UnsupportedUserStateException" + -- | This exception is thrown when a password reset is required. -- -- _PasswordResetRequiredException :: AsError a => Getting (First ServiceError) a ServiceError _PasswordResetRequiredException =-    _ServiceError . hasCode "PasswordResetRequiredException"+  _MatchServiceError cognitoIdentityProvider "PasswordResetRequiredException" + -- | This exception is thrown when the Amazon Cognito service encounters an invalid parameter. -- -- _InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidParameterException =-    _ServiceError . hasCode "InvalidParameterException"+  _MatchServiceError cognitoIdentityProvider "InvalidParameterException" + -- | This exception is thrown when the Amazon Cognito service encounters an invalid AWS Lambda response. -- -- _InvalidLambdaResponseException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidLambdaResponseException =-    _ServiceError . hasCode "InvalidLambdaResponseException"+  _MatchServiceError cognitoIdentityProvider "InvalidLambdaResponseException" + -- | This exception is thrown when Amazon Cognito is not allowed to use your email identity. HTTP status code: 400. -- -- _InvalidEmailRoleAccessPolicyException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidEmailRoleAccessPolicyException =-    _ServiceError . hasCode "InvalidEmailRoleAccessPolicyException"+  _MatchServiceError+    cognitoIdentityProvider+    "InvalidEmailRoleAccessPolicyException" ++-- | This exception is thrown when the specified identifier is not supported.+--+--+_UnsupportedIdentityProviderException :: AsError a => Getting (First ServiceError) a ServiceError+_UnsupportedIdentityProviderException =+  _MatchServiceError+    cognitoIdentityProvider+    "UnsupportedIdentityProviderException"++ -- | This exception is thrown when a user is not found. -- -- _UserNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError-_UserNotFoundException = _ServiceError . hasCode "UserNotFoundException"+_UserNotFoundException =+  _MatchServiceError cognitoIdentityProvider "UserNotFoundException" --- | This exception gets thrown when the Amazon Cognito service encounters an unexpected exception with the AWS Lambda service.++-- | This exception is thrown when the Amazon Cognito service encounters an unexpected exception with the AWS Lambda service. -- -- _UnexpectedLambdaException :: AsError a => Getting (First ServiceError) a ServiceError _UnexpectedLambdaException =-    _ServiceError . hasCode "UnexpectedLambdaException"+  _MatchServiceError cognitoIdentityProvider "UnexpectedLambdaException" --- | This exception gets thrown when a user is not authorized.++-- | This exception is thrown when a user is not authorized. -- -- _NotAuthorizedException :: AsError a => Getting (First ServiceError) a ServiceError-_NotAuthorizedException = _ServiceError . hasCode "NotAuthorizedException"+_NotAuthorizedException =+  _MatchServiceError cognitoIdentityProvider "NotAuthorizedException" + -- | This exception is thrown when Amazon Cognito encounters an internal error. -- -- _InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError-_InternalErrorException = _ServiceError . hasCode "InternalErrorException"+_InternalErrorException =+  _MatchServiceError cognitoIdentityProvider "InternalErrorException" + -- | This exception is thrown when the user pool configuration is invalid. -- -- _InvalidUserPoolConfigurationException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidUserPoolConfigurationException =-    _ServiceError . hasCode "InvalidUserPoolConfigurationException"+  _MatchServiceError+    cognitoIdentityProvider+    "InvalidUserPoolConfigurationException" + -- | This exception is returned when the role provided for SMS configuration does not have permission to publish using Amazon SNS. -- -- _InvalidSmsRoleAccessPolicyException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidSmsRoleAccessPolicyException =-    _ServiceError . hasCode "InvalidSmsRoleAccessPolicyException"+  _MatchServiceError+    cognitoIdentityProvider+    "InvalidSmsRoleAccessPolicyException" ++-- | This exception is thrown when the specified OAuth flow is invalid.+--+--+_InvalidOAuthFlowException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidOAuthFlowException =+  _MatchServiceError cognitoIdentityProvider "InvalidOAuthFlowException"++ -- | This exception is thrown if the provided code does not match what the server was expecting. -- -- _CodeMismatchException :: AsError a => Getting (First ServiceError) a ServiceError-_CodeMismatchException = _ServiceError . hasCode "CodeMismatchException"+_CodeMismatchException =+  _MatchServiceError cognitoIdentityProvider "CodeMismatchException" + -- | This exception is thrown when you are trying to modify a user pool while a user import job is in progress for that pool. -- -- _UserImportInProgressException :: AsError a => Getting (First ServiceError) a ServiceError _UserImportInProgressException =-    _ServiceError . hasCode "UserImportInProgressException"+  _MatchServiceError cognitoIdentityProvider "UserImportInProgressException" + -- | This exception is thrown when the trust relationship is invalid for the role provided for SMS configuration. This can happen if you do not trust __cognito-idp.amazonaws.com__ or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool. -- -- _InvalidSmsRoleTrustRelationshipException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidSmsRoleTrustRelationshipException =-    _ServiceError . hasCode "InvalidSmsRoleTrustRelationshipException"+  _MatchServiceError+    cognitoIdentityProvider+    "InvalidSmsRoleTrustRelationshipException" --- | This exception gets thrown when the user has made too many requests for a given operation.++-- | This exception is thrown when a user pool tag cannot be set or updated. -- --+_UserPoolTaggingException :: AsError a => Getting (First ServiceError) a ServiceError+_UserPoolTaggingException =+  _MatchServiceError cognitoIdentityProvider "UserPoolTaggingException"+++-- | This exception is thrown when the user has made too many requests for a given operation.+--+-- _TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError-_TooManyRequestsException = _ServiceError . hasCode "TooManyRequestsException"+_TooManyRequestsException =+  _MatchServiceError cognitoIdentityProvider "TooManyRequestsException" + -- | This exception is thrown if two or more modifications are happening concurrently. -- -- _ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError _ConcurrentModificationException =-    _ServiceError . hasCode "ConcurrentModificationException"+  _MatchServiceError cognitoIdentityProvider "ConcurrentModificationException" --- | This exception gets thrown when the Amazon Cognito service encounters a user validation exception with the AWS Lambda service.++-- | This exception is thrown when the Amazon Cognito service encounters a user validation exception with the AWS Lambda service. -- -- _UserLambdaValidationException :: AsError a => Getting (First ServiceError) a ServiceError _UserLambdaValidationException =-    _ServiceError . hasCode "UserLambdaValidationException"+  _MatchServiceError cognitoIdentityProvider "UserLambdaValidationException" + -- | This exception is thrown when a precondition is not met. -- -- _PreconditionNotMetException :: AsError a => Getting (First ServiceError) a ServiceError _PreconditionNotMetException =-    _ServiceError . hasCode "PreconditionNotMetException"+  _MatchServiceError cognitoIdentityProvider "PreconditionNotMetException" + -- | This exception is thrown if a code has expired. -- -- _ExpiredCodeException :: AsError a => Getting (First ServiceError) a ServiceError-_ExpiredCodeException = _ServiceError . hasCode "ExpiredCodeException"+_ExpiredCodeException =+  _MatchServiceError cognitoIdentityProvider "ExpiredCodeException" --- | This exception gets thrown when the user has made too many failed attempts for a given action (e.g., sign in).++-- | This exception is thrown when the user has made too many failed attempts for a given action (e.g., sign in). -- -- _TooManyFailedAttemptsException :: AsError a => Getting (First ServiceError) a ServiceError _TooManyFailedAttemptsException =-    _ServiceError . hasCode "TooManyFailedAttemptsException"+  _MatchServiceError cognitoIdentityProvider "TooManyFailedAttemptsException" + -- | This exception is thrown when a user is not confirmed successfully. -- -- _UserNotConfirmedException :: AsError a => Getting (First ServiceError) a ServiceError _UserNotConfirmedException =-    _ServiceError . hasCode "UserNotConfirmedException"+  _MatchServiceError cognitoIdentityProvider "UserNotConfirmedException" ++-- | This exception is thrown when Amazon Cognito encounters a group that already exists in the user pool.+--+--+_GroupExistsException :: AsError a => Getting (First ServiceError) a ServiceError+_GroupExistsException =+  _MatchServiceError cognitoIdentityProvider "GroupExistsException"++ -- | This exception is thrown when a verification code fails to deliver successfully. -- -- _CodeDeliveryFailureException :: AsError a => Getting (First ServiceError) a ServiceError _CodeDeliveryFailureException =-    _ServiceError . hasCode "CodeDeliveryFailureException"+  _MatchServiceError cognitoIdentityProvider "CodeDeliveryFailureException" ++-- | This exception is thrown when the specified scope does not exist.+--+--+_ScopeDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError+_ScopeDoesNotExistException =+  _MatchServiceError cognitoIdentityProvider "ScopeDoesNotExistException"++ -- | This exception is thrown when the Amazon Cognito service cannot find the requested resource. -- -- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceNotFoundException =-    _ServiceError . hasCode "ResourceNotFoundException"+  _MatchServiceError cognitoIdentityProvider "ResourceNotFoundException" + -- | This exception is thrown when Amazon Cognito cannot find a multi-factor authentication (MFA) method. -- -- _MFAMethodNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _MFAMethodNotFoundException =-    _ServiceError . hasCode "MFAMethodNotFoundException"+  _MatchServiceError cognitoIdentityProvider "MFAMethodNotFoundException" + -- | This exception is thrown when a user tries to confirm the account with an email or phone number that has already been supplied as an alias from a different account. This exception tells user that an account with this email or phone already exists. -- -- _AliasExistsException :: AsError a => Getting (First ServiceError) a ServiceError-_AliasExistsException = _ServiceError . hasCode "AliasExistsException"+_AliasExistsException =+  _MatchServiceError cognitoIdentityProvider "AliasExistsException" ++-- | This exception is thrown when the provider is already supported by the user pool.+--+--+_DuplicateProviderException :: AsError a => Getting (First ServiceError) a ServiceError+_DuplicateProviderException =+  _MatchServiceError cognitoIdentityProvider "DuplicateProviderException"++ -- | This exception is thrown when a user exceeds the limit for a requested AWS resource. -- -- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError-_LimitExceededException = _ServiceError . hasCode "LimitExceededException"+_LimitExceededException =+  _MatchServiceError cognitoIdentityProvider "LimitExceededException" + -- | This exception is thrown when the Amazon Cognito service encounters an invalid password. -- -- _InvalidPasswordException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidPasswordException = _ServiceError . hasCode "InvalidPasswordException"+_InvalidPasswordException =+  _MatchServiceError cognitoIdentityProvider "InvalidPasswordException" + -- | This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool. -- -- _UsernameExistsException :: AsError a => Getting (First ServiceError) a ServiceError-_UsernameExistsException = _ServiceError . hasCode "UsernameExistsException"+_UsernameExistsException =+  _MatchServiceError cognitoIdentityProvider "UsernameExistsException"+
gen/Network/AWS/CognitoIdentityProvider/Types/Product.hs view
@@ -9,1847 +9,2676 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.Types.Product--- Copyright   : (c) 2013-2016 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CognitoIdentityProvider.Types.Product where--import           Network.AWS.CognitoIdentityProvider.Types.Sum-import           Network.AWS.Lens-import           Network.AWS.Prelude---- | The type of configuration for creating a new user profile.------------ /See:/ 'adminCreateUserConfigType' smart constructor.-data AdminCreateUserConfigType = AdminCreateUserConfigType'-    { _acuctAllowAdminCreateUserOnly  :: !(Maybe Bool)-    , _acuctUnusedAccountValidityDays :: !(Maybe Nat)-    , _acuctInviteMessageTemplate     :: !(Maybe MessageTemplateType)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'AdminCreateUserConfigType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'acuctAllowAdminCreateUserOnly' - Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.------ * 'acuctUnusedAccountValidityDays' - The user account expiration limit, in days, after which the account is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying "RESEND" for the MessageAction parameter.------ * 'acuctInviteMessageTemplate' - The message template to be used for the welcome message to new users.-adminCreateUserConfigType-    :: AdminCreateUserConfigType-adminCreateUserConfigType =-    AdminCreateUserConfigType'-    { _acuctAllowAdminCreateUserOnly = Nothing-    , _acuctUnusedAccountValidityDays = Nothing-    , _acuctInviteMessageTemplate = Nothing-    }---- | Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.-acuctAllowAdminCreateUserOnly :: Lens' AdminCreateUserConfigType (Maybe Bool)-acuctAllowAdminCreateUserOnly = lens _acuctAllowAdminCreateUserOnly (\ s a -> s{_acuctAllowAdminCreateUserOnly = a});---- | The user account expiration limit, in days, after which the account is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying "RESEND" for the MessageAction parameter.-acuctUnusedAccountValidityDays :: Lens' AdminCreateUserConfigType (Maybe Natural)-acuctUnusedAccountValidityDays = lens _acuctUnusedAccountValidityDays (\ s a -> s{_acuctUnusedAccountValidityDays = a}) . mapping _Nat;---- | The message template to be used for the welcome message to new users.-acuctInviteMessageTemplate :: Lens' AdminCreateUserConfigType (Maybe MessageTemplateType)-acuctInviteMessageTemplate = lens _acuctInviteMessageTemplate (\ s a -> s{_acuctInviteMessageTemplate = a});--instance FromJSON AdminCreateUserConfigType where-        parseJSON-          = withObject "AdminCreateUserConfigType"-              (\ x ->-                 AdminCreateUserConfigType' <$>-                   (x .:? "AllowAdminCreateUserOnly") <*>-                     (x .:? "UnusedAccountValidityDays")-                     <*> (x .:? "InviteMessageTemplate"))--instance Hashable AdminCreateUserConfigType--instance NFData AdminCreateUserConfigType--instance ToJSON AdminCreateUserConfigType where-        toJSON AdminCreateUserConfigType'{..}-          = object-              (catMaybes-                 [("AllowAdminCreateUserOnly" .=) <$>-                    _acuctAllowAdminCreateUserOnly,-                  ("UnusedAccountValidityDays" .=) <$>-                    _acuctUnusedAccountValidityDays,-                  ("InviteMessageTemplate" .=) <$>-                    _acuctInviteMessageTemplate])---- | Specifies whether the attribute is standard or custom.------------ /See:/ 'attributeType' smart constructor.-data AttributeType = AttributeType'-    { _atValue :: !(Maybe (Sensitive Text))-    , _atName  :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'AttributeType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atValue' - The value of the attribute.------ * 'atName' - The name of the attribute.-attributeType-    :: Text -- ^ 'atName'-    -> AttributeType-attributeType pName_ =-    AttributeType'-    { _atValue = Nothing-    , _atName = pName_-    }---- | The value of the attribute.-atValue :: Lens' AttributeType (Maybe Text)-atValue = lens _atValue (\ s a -> s{_atValue = a}) . mapping _Sensitive;---- | The name of the attribute.-atName :: Lens' AttributeType Text-atName = lens _atName (\ s a -> s{_atName = a});--instance FromJSON AttributeType where-        parseJSON-          = withObject "AttributeType"-              (\ x ->-                 AttributeType' <$> (x .:? "Value") <*> (x .: "Name"))--instance Hashable AttributeType--instance NFData AttributeType--instance ToJSON AttributeType where-        toJSON AttributeType'{..}-          = object-              (catMaybes-                 [("Value" .=) <$> _atValue,-                  Just ("Name" .= _atName)])---- | The result type of the authentication result.------------ /See:/ 'authenticationResultType' smart constructor.-data AuthenticationResultType = AuthenticationResultType'-    { _artAccessToken       :: !(Maybe (Sensitive Text))-    , _artRefreshToken      :: !(Maybe (Sensitive Text))-    , _artNewDeviceMetadata :: !(Maybe NewDeviceMetadataType)-    , _artExpiresIn         :: !(Maybe Int)-    , _artTokenType         :: !(Maybe Text)-    , _artIdToken           :: !(Maybe (Sensitive Text))-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'AuthenticationResultType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'artAccessToken' - The access token of the authentication result.------ * 'artRefreshToken' - The refresh token of the authentication result.------ * 'artNewDeviceMetadata' - The new device metadata from an authentication result.------ * 'artExpiresIn' - The expiration period of the authentication result.------ * 'artTokenType' - The token type of the authentication result.------ * 'artIdToken' - The ID token of the authentication result.-authenticationResultType-    :: AuthenticationResultType-authenticationResultType =-    AuthenticationResultType'-    { _artAccessToken = Nothing-    , _artRefreshToken = Nothing-    , _artNewDeviceMetadata = Nothing-    , _artExpiresIn = Nothing-    , _artTokenType = Nothing-    , _artIdToken = Nothing-    }---- | The access token of the authentication result.-artAccessToken :: Lens' AuthenticationResultType (Maybe Text)-artAccessToken = lens _artAccessToken (\ s a -> s{_artAccessToken = a}) . mapping _Sensitive;---- | The refresh token of the authentication result.-artRefreshToken :: Lens' AuthenticationResultType (Maybe Text)-artRefreshToken = lens _artRefreshToken (\ s a -> s{_artRefreshToken = a}) . mapping _Sensitive;---- | The new device metadata from an authentication result.-artNewDeviceMetadata :: Lens' AuthenticationResultType (Maybe NewDeviceMetadataType)-artNewDeviceMetadata = lens _artNewDeviceMetadata (\ s a -> s{_artNewDeviceMetadata = a});---- | The expiration period of the authentication result.-artExpiresIn :: Lens' AuthenticationResultType (Maybe Int)-artExpiresIn = lens _artExpiresIn (\ s a -> s{_artExpiresIn = a});---- | The token type of the authentication result.-artTokenType :: Lens' AuthenticationResultType (Maybe Text)-artTokenType = lens _artTokenType (\ s a -> s{_artTokenType = a});---- | The ID token of the authentication result.-artIdToken :: Lens' AuthenticationResultType (Maybe Text)-artIdToken = lens _artIdToken (\ s a -> s{_artIdToken = a}) . mapping _Sensitive;--instance FromJSON AuthenticationResultType where-        parseJSON-          = withObject "AuthenticationResultType"-              (\ x ->-                 AuthenticationResultType' <$>-                   (x .:? "AccessToken") <*> (x .:? "RefreshToken") <*>-                     (x .:? "NewDeviceMetadata")-                     <*> (x .:? "ExpiresIn")-                     <*> (x .:? "TokenType")-                     <*> (x .:? "IdToken"))--instance Hashable AuthenticationResultType--instance NFData AuthenticationResultType---- | The type of code delivery details being returned from the server.------------ /See:/ 'codeDeliveryDetailsType' smart constructor.-data CodeDeliveryDetailsType = CodeDeliveryDetailsType'-    { _cddtDestination    :: !(Maybe Text)-    , _cddtDeliveryMedium :: !(Maybe DeliveryMediumType)-    , _cddtAttributeName  :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CodeDeliveryDetailsType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cddtDestination' - The destination for the code delivery details.------ * 'cddtDeliveryMedium' - The delivery medium (email message or phone number).------ * 'cddtAttributeName' - The name of the attribute in the code delivery details type.-codeDeliveryDetailsType-    :: CodeDeliveryDetailsType-codeDeliveryDetailsType =-    CodeDeliveryDetailsType'-    { _cddtDestination = Nothing-    , _cddtDeliveryMedium = Nothing-    , _cddtAttributeName = Nothing-    }---- | The destination for the code delivery details.-cddtDestination :: Lens' CodeDeliveryDetailsType (Maybe Text)-cddtDestination = lens _cddtDestination (\ s a -> s{_cddtDestination = a});---- | The delivery medium (email message or phone number).-cddtDeliveryMedium :: Lens' CodeDeliveryDetailsType (Maybe DeliveryMediumType)-cddtDeliveryMedium = lens _cddtDeliveryMedium (\ s a -> s{_cddtDeliveryMedium = a});---- | The name of the attribute in the code delivery details type.-cddtAttributeName :: Lens' CodeDeliveryDetailsType (Maybe Text)-cddtAttributeName = lens _cddtAttributeName (\ s a -> s{_cddtAttributeName = a});--instance FromJSON CodeDeliveryDetailsType where-        parseJSON-          = withObject "CodeDeliveryDetailsType"-              (\ x ->-                 CodeDeliveryDetailsType' <$>-                   (x .:? "Destination") <*> (x .:? "DeliveryMedium")-                     <*> (x .:? "AttributeName"))--instance Hashable CodeDeliveryDetailsType--instance NFData CodeDeliveryDetailsType---- | The type of configuration for the user pool's device tracking.------------ /See:/ 'deviceConfigurationType' smart constructor.-data DeviceConfigurationType = DeviceConfigurationType'-    { _dctChallengeRequiredOnNewDevice     :: !(Maybe Bool)-    , _dctDeviceOnlyRememberedOnUserPrompt :: !(Maybe Bool)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DeviceConfigurationType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dctChallengeRequiredOnNewDevice' - Indicates whether a challenge is required on a new device. Only applicable to a new device.------ * 'dctDeviceOnlyRememberedOnUserPrompt' - If true, a device is only remembered on user prompt.-deviceConfigurationType-    :: DeviceConfigurationType-deviceConfigurationType =-    DeviceConfigurationType'-    { _dctChallengeRequiredOnNewDevice = Nothing-    , _dctDeviceOnlyRememberedOnUserPrompt = Nothing-    }---- | Indicates whether a challenge is required on a new device. Only applicable to a new device.-dctChallengeRequiredOnNewDevice :: Lens' DeviceConfigurationType (Maybe Bool)-dctChallengeRequiredOnNewDevice = lens _dctChallengeRequiredOnNewDevice (\ s a -> s{_dctChallengeRequiredOnNewDevice = a});---- | If true, a device is only remembered on user prompt.-dctDeviceOnlyRememberedOnUserPrompt :: Lens' DeviceConfigurationType (Maybe Bool)-dctDeviceOnlyRememberedOnUserPrompt = lens _dctDeviceOnlyRememberedOnUserPrompt (\ s a -> s{_dctDeviceOnlyRememberedOnUserPrompt = a});--instance FromJSON DeviceConfigurationType where-        parseJSON-          = withObject "DeviceConfigurationType"-              (\ x ->-                 DeviceConfigurationType' <$>-                   (x .:? "ChallengeRequiredOnNewDevice") <*>-                     (x .:? "DeviceOnlyRememberedOnUserPrompt"))--instance Hashable DeviceConfigurationType--instance NFData DeviceConfigurationType--instance ToJSON DeviceConfigurationType where-        toJSON DeviceConfigurationType'{..}-          = object-              (catMaybes-                 [("ChallengeRequiredOnNewDevice" .=) <$>-                    _dctChallengeRequiredOnNewDevice,-                  ("DeviceOnlyRememberedOnUserPrompt" .=) <$>-                    _dctDeviceOnlyRememberedOnUserPrompt])---- | The device verifier against which it will be authenticated.------------ /See:/ 'deviceSecretVerifierConfigType' smart constructor.-data DeviceSecretVerifierConfigType = DeviceSecretVerifierConfigType'-    { _dsvctPasswordVerifier :: !(Maybe Text)-    , _dsvctSalt             :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DeviceSecretVerifierConfigType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dsvctPasswordVerifier' - The password verifier.------ * 'dsvctSalt' - The salt.-deviceSecretVerifierConfigType-    :: DeviceSecretVerifierConfigType-deviceSecretVerifierConfigType =-    DeviceSecretVerifierConfigType'-    { _dsvctPasswordVerifier = Nothing-    , _dsvctSalt = Nothing-    }---- | The password verifier.-dsvctPasswordVerifier :: Lens' DeviceSecretVerifierConfigType (Maybe Text)-dsvctPasswordVerifier = lens _dsvctPasswordVerifier (\ s a -> s{_dsvctPasswordVerifier = a});---- | The salt.-dsvctSalt :: Lens' DeviceSecretVerifierConfigType (Maybe Text)-dsvctSalt = lens _dsvctSalt (\ s a -> s{_dsvctSalt = a});--instance Hashable DeviceSecretVerifierConfigType--instance NFData DeviceSecretVerifierConfigType--instance ToJSON DeviceSecretVerifierConfigType where-        toJSON DeviceSecretVerifierConfigType'{..}-          = object-              (catMaybes-                 [("PasswordVerifier" .=) <$> _dsvctPasswordVerifier,-                  ("Salt" .=) <$> _dsvctSalt])---- | The device type.------------ /See:/ 'deviceType' smart constructor.-data DeviceType = DeviceType'-    { _dtDeviceLastModifiedDate      :: !(Maybe POSIX)-    , _dtDeviceCreateDate            :: !(Maybe POSIX)-    , _dtDeviceAttributes            :: !(Maybe [AttributeType])-    , _dtDeviceKey                   :: !(Maybe Text)-    , _dtDeviceLastAuthenticatedDate :: !(Maybe POSIX)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DeviceType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtDeviceLastModifiedDate' - The last modified date of the device.------ * 'dtDeviceCreateDate' - The creation date of the device.------ * 'dtDeviceAttributes' - The device attributes.------ * 'dtDeviceKey' - The device key.------ * 'dtDeviceLastAuthenticatedDate' - The date in which the device was last authenticated.-deviceType-    :: DeviceType-deviceType =-    DeviceType'-    { _dtDeviceLastModifiedDate = Nothing-    , _dtDeviceCreateDate = Nothing-    , _dtDeviceAttributes = Nothing-    , _dtDeviceKey = Nothing-    , _dtDeviceLastAuthenticatedDate = Nothing-    }---- | The last modified date of the device.-dtDeviceLastModifiedDate :: Lens' DeviceType (Maybe UTCTime)-dtDeviceLastModifiedDate = lens _dtDeviceLastModifiedDate (\ s a -> s{_dtDeviceLastModifiedDate = a}) . mapping _Time;---- | The creation date of the device.-dtDeviceCreateDate :: Lens' DeviceType (Maybe UTCTime)-dtDeviceCreateDate = lens _dtDeviceCreateDate (\ s a -> s{_dtDeviceCreateDate = a}) . mapping _Time;---- | The device attributes.-dtDeviceAttributes :: Lens' DeviceType [AttributeType]-dtDeviceAttributes = lens _dtDeviceAttributes (\ s a -> s{_dtDeviceAttributes = a}) . _Default . _Coerce;---- | The device key.-dtDeviceKey :: Lens' DeviceType (Maybe Text)-dtDeviceKey = lens _dtDeviceKey (\ s a -> s{_dtDeviceKey = a});---- | The date in which the device was last authenticated.-dtDeviceLastAuthenticatedDate :: Lens' DeviceType (Maybe UTCTime)-dtDeviceLastAuthenticatedDate = lens _dtDeviceLastAuthenticatedDate (\ s a -> s{_dtDeviceLastAuthenticatedDate = a}) . mapping _Time;--instance FromJSON DeviceType where-        parseJSON-          = withObject "DeviceType"-              (\ x ->-                 DeviceType' <$>-                   (x .:? "DeviceLastModifiedDate") <*>-                     (x .:? "DeviceCreateDate")-                     <*> (x .:? "DeviceAttributes" .!= mempty)-                     <*> (x .:? "DeviceKey")-                     <*> (x .:? "DeviceLastAuthenticatedDate"))--instance Hashable DeviceType--instance NFData DeviceType---- | The email configuration type.------------ /See:/ 'emailConfigurationType' smart constructor.-data EmailConfigurationType = EmailConfigurationType'-    { _ectSourceARN           :: !(Maybe Text)-    , _ectReplyToEmailAddress :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'EmailConfigurationType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ectSourceARN' - The Amazon Resource Name (ARN) of the email source.------ * 'ectReplyToEmailAddress' - The REPLY-TO email address.-emailConfigurationType-    :: EmailConfigurationType-emailConfigurationType =-    EmailConfigurationType'-    { _ectSourceARN = Nothing-    , _ectReplyToEmailAddress = Nothing-    }---- | The Amazon Resource Name (ARN) of the email source.-ectSourceARN :: Lens' EmailConfigurationType (Maybe Text)-ectSourceARN = lens _ectSourceARN (\ s a -> s{_ectSourceARN = a});---- | The REPLY-TO email address.-ectReplyToEmailAddress :: Lens' EmailConfigurationType (Maybe Text)-ectReplyToEmailAddress = lens _ectReplyToEmailAddress (\ s a -> s{_ectReplyToEmailAddress = a});--instance FromJSON EmailConfigurationType where-        parseJSON-          = withObject "EmailConfigurationType"-              (\ x ->-                 EmailConfigurationType' <$>-                   (x .:? "SourceArn") <*>-                     (x .:? "ReplyToEmailAddress"))--instance Hashable EmailConfigurationType--instance NFData EmailConfigurationType--instance ToJSON EmailConfigurationType where-        toJSON EmailConfigurationType'{..}-          = object-              (catMaybes-                 [("SourceArn" .=) <$> _ectSourceARN,-                  ("ReplyToEmailAddress" .=) <$>-                    _ectReplyToEmailAddress])---- | Specifies the type of configuration for AWS Lambda triggers.------------ /See:/ 'lambdaConfigType' smart constructor.-data LambdaConfigType = LambdaConfigType'-    { _lctPreAuthentication           :: !(Maybe Text)-    , _lctCreateAuthChallenge         :: !(Maybe Text)-    , _lctVerifyAuthChallengeResponse :: !(Maybe Text)-    , _lctPostAuthentication          :: !(Maybe Text)-    , _lctCustomMessage               :: !(Maybe Text)-    , _lctDefineAuthChallenge         :: !(Maybe Text)-    , _lctPostConfirmation            :: !(Maybe Text)-    , _lctPreSignUp                   :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'LambdaConfigType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lctPreAuthentication' - A pre-authentication AWS Lambda trigger.------ * 'lctCreateAuthChallenge' - Creates an authentication challenge.------ * 'lctVerifyAuthChallengeResponse' - Verifies the authentication challenge response.------ * 'lctPostAuthentication' - A post-authentication AWS Lambda trigger.------ * 'lctCustomMessage' - A custom Message AWS Lambda trigger.------ * 'lctDefineAuthChallenge' - Defines the authentication challenge.------ * 'lctPostConfirmation' - A post-confirmation AWS Lambda trigger.------ * 'lctPreSignUp' - A pre-registration AWS Lambda trigger.-lambdaConfigType-    :: LambdaConfigType-lambdaConfigType =-    LambdaConfigType'-    { _lctPreAuthentication = Nothing-    , _lctCreateAuthChallenge = Nothing-    , _lctVerifyAuthChallengeResponse = Nothing-    , _lctPostAuthentication = Nothing-    , _lctCustomMessage = Nothing-    , _lctDefineAuthChallenge = Nothing-    , _lctPostConfirmation = Nothing-    , _lctPreSignUp = Nothing-    }---- | A pre-authentication AWS Lambda trigger.-lctPreAuthentication :: Lens' LambdaConfigType (Maybe Text)-lctPreAuthentication = lens _lctPreAuthentication (\ s a -> s{_lctPreAuthentication = a});---- | Creates an authentication challenge.-lctCreateAuthChallenge :: Lens' LambdaConfigType (Maybe Text)-lctCreateAuthChallenge = lens _lctCreateAuthChallenge (\ s a -> s{_lctCreateAuthChallenge = a});---- | Verifies the authentication challenge response.-lctVerifyAuthChallengeResponse :: Lens' LambdaConfigType (Maybe Text)-lctVerifyAuthChallengeResponse = lens _lctVerifyAuthChallengeResponse (\ s a -> s{_lctVerifyAuthChallengeResponse = a});---- | A post-authentication AWS Lambda trigger.-lctPostAuthentication :: Lens' LambdaConfigType (Maybe Text)-lctPostAuthentication = lens _lctPostAuthentication (\ s a -> s{_lctPostAuthentication = a});---- | A custom Message AWS Lambda trigger.-lctCustomMessage :: Lens' LambdaConfigType (Maybe Text)-lctCustomMessage = lens _lctCustomMessage (\ s a -> s{_lctCustomMessage = a});---- | Defines the authentication challenge.-lctDefineAuthChallenge :: Lens' LambdaConfigType (Maybe Text)-lctDefineAuthChallenge = lens _lctDefineAuthChallenge (\ s a -> s{_lctDefineAuthChallenge = a});---- | A post-confirmation AWS Lambda trigger.-lctPostConfirmation :: Lens' LambdaConfigType (Maybe Text)-lctPostConfirmation = lens _lctPostConfirmation (\ s a -> s{_lctPostConfirmation = a});---- | A pre-registration AWS Lambda trigger.-lctPreSignUp :: Lens' LambdaConfigType (Maybe Text)-lctPreSignUp = lens _lctPreSignUp (\ s a -> s{_lctPreSignUp = a});--instance FromJSON LambdaConfigType where-        parseJSON-          = withObject "LambdaConfigType"-              (\ x ->-                 LambdaConfigType' <$>-                   (x .:? "PreAuthentication") <*>-                     (x .:? "CreateAuthChallenge")-                     <*> (x .:? "VerifyAuthChallengeResponse")-                     <*> (x .:? "PostAuthentication")-                     <*> (x .:? "CustomMessage")-                     <*> (x .:? "DefineAuthChallenge")-                     <*> (x .:? "PostConfirmation")-                     <*> (x .:? "PreSignUp"))--instance Hashable LambdaConfigType--instance NFData LambdaConfigType--instance ToJSON LambdaConfigType where-        toJSON LambdaConfigType'{..}-          = object-              (catMaybes-                 [("PreAuthentication" .=) <$> _lctPreAuthentication,-                  ("CreateAuthChallenge" .=) <$>-                    _lctCreateAuthChallenge,-                  ("VerifyAuthChallengeResponse" .=) <$>-                    _lctVerifyAuthChallengeResponse,-                  ("PostAuthentication" .=) <$> _lctPostAuthentication,-                  ("CustomMessage" .=) <$> _lctCustomMessage,-                  ("DefineAuthChallenge" .=) <$>-                    _lctDefineAuthChallenge,-                  ("PostConfirmation" .=) <$> _lctPostConfirmation,-                  ("PreSignUp" .=) <$> _lctPreSignUp])---- | Specifies the different settings for multi-factor authentication (MFA).------------ /See:/ 'mfaOptionType' smart constructor.-data MFAOptionType = MFAOptionType'-    { _motDeliveryMedium :: !(Maybe DeliveryMediumType)-    , _motAttributeName  :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'MFAOptionType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'motDeliveryMedium' - The delivery medium (email message or SMS message) to send the MFA code.------ * 'motAttributeName' - The attribute name of the MFA option type.-mfaOptionType-    :: MFAOptionType-mfaOptionType =-    MFAOptionType'-    { _motDeliveryMedium = Nothing-    , _motAttributeName = Nothing-    }---- | The delivery medium (email message or SMS message) to send the MFA code.-motDeliveryMedium :: Lens' MFAOptionType (Maybe DeliveryMediumType)-motDeliveryMedium = lens _motDeliveryMedium (\ s a -> s{_motDeliveryMedium = a});---- | The attribute name of the MFA option type.-motAttributeName :: Lens' MFAOptionType (Maybe Text)-motAttributeName = lens _motAttributeName (\ s a -> s{_motAttributeName = a});--instance FromJSON MFAOptionType where-        parseJSON-          = withObject "MFAOptionType"-              (\ x ->-                 MFAOptionType' <$>-                   (x .:? "DeliveryMedium") <*> (x .:? "AttributeName"))--instance Hashable MFAOptionType--instance NFData MFAOptionType--instance ToJSON MFAOptionType where-        toJSON MFAOptionType'{..}-          = object-              (catMaybes-                 [("DeliveryMedium" .=) <$> _motDeliveryMedium,-                  ("AttributeName" .=) <$> _motAttributeName])---- | The message template structure.------------ /See:/ 'messageTemplateType' smart constructor.-data MessageTemplateType = MessageTemplateType'-    { _mttEmailSubject :: !(Maybe Text)-    , _mttSMSMessage   :: !(Maybe Text)-    , _mttEmailMessage :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'MessageTemplateType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mttEmailSubject' - The subject line for email messages.------ * 'mttSMSMessage' - The message template for SMS messages.------ * 'mttEmailMessage' - The message template for email messages.-messageTemplateType-    :: MessageTemplateType-messageTemplateType =-    MessageTemplateType'-    { _mttEmailSubject = Nothing-    , _mttSMSMessage = Nothing-    , _mttEmailMessage = Nothing-    }---- | The subject line for email messages.-mttEmailSubject :: Lens' MessageTemplateType (Maybe Text)-mttEmailSubject = lens _mttEmailSubject (\ s a -> s{_mttEmailSubject = a});---- | The message template for SMS messages.-mttSMSMessage :: Lens' MessageTemplateType (Maybe Text)-mttSMSMessage = lens _mttSMSMessage (\ s a -> s{_mttSMSMessage = a});---- | The message template for email messages.-mttEmailMessage :: Lens' MessageTemplateType (Maybe Text)-mttEmailMessage = lens _mttEmailMessage (\ s a -> s{_mttEmailMessage = a});--instance FromJSON MessageTemplateType where-        parseJSON-          = withObject "MessageTemplateType"-              (\ x ->-                 MessageTemplateType' <$>-                   (x .:? "EmailSubject") <*> (x .:? "SMSMessage") <*>-                     (x .:? "EmailMessage"))--instance Hashable MessageTemplateType--instance NFData MessageTemplateType--instance ToJSON MessageTemplateType where-        toJSON MessageTemplateType'{..}-          = object-              (catMaybes-                 [("EmailSubject" .=) <$> _mttEmailSubject,-                  ("SMSMessage" .=) <$> _mttSMSMessage,-                  ("EmailMessage" .=) <$> _mttEmailMessage])---- | The new device metadata type.------------ /See:/ 'newDeviceMetadataType' smart constructor.-data NewDeviceMetadataType = NewDeviceMetadataType'-    { _ndmtDeviceGroupKey :: !(Maybe Text)-    , _ndmtDeviceKey      :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'NewDeviceMetadataType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ndmtDeviceGroupKey' - The device group key.------ * 'ndmtDeviceKey' - The device key.-newDeviceMetadataType-    :: NewDeviceMetadataType-newDeviceMetadataType =-    NewDeviceMetadataType'-    { _ndmtDeviceGroupKey = Nothing-    , _ndmtDeviceKey = Nothing-    }---- | The device group key.-ndmtDeviceGroupKey :: Lens' NewDeviceMetadataType (Maybe Text)-ndmtDeviceGroupKey = lens _ndmtDeviceGroupKey (\ s a -> s{_ndmtDeviceGroupKey = a});---- | The device key.-ndmtDeviceKey :: Lens' NewDeviceMetadataType (Maybe Text)-ndmtDeviceKey = lens _ndmtDeviceKey (\ s a -> s{_ndmtDeviceKey = a});--instance FromJSON NewDeviceMetadataType where-        parseJSON-          = withObject "NewDeviceMetadataType"-              (\ x ->-                 NewDeviceMetadataType' <$>-                   (x .:? "DeviceGroupKey") <*> (x .:? "DeviceKey"))--instance Hashable NewDeviceMetadataType--instance NFData NewDeviceMetadataType---- | The minimum and maximum value of an attribute that is of the number data type.------------ /See:/ 'numberAttributeConstraintsType' smart constructor.-data NumberAttributeConstraintsType = NumberAttributeConstraintsType'-    { _nactMaxValue :: !(Maybe Text)-    , _nactMinValue :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'NumberAttributeConstraintsType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'nactMaxValue' - The maximum value of an attribute that is of the number data type.------ * 'nactMinValue' - The minimum value of an attribute that is of the number data type.-numberAttributeConstraintsType-    :: NumberAttributeConstraintsType-numberAttributeConstraintsType =-    NumberAttributeConstraintsType'-    { _nactMaxValue = Nothing-    , _nactMinValue = Nothing-    }---- | The maximum value of an attribute that is of the number data type.-nactMaxValue :: Lens' NumberAttributeConstraintsType (Maybe Text)-nactMaxValue = lens _nactMaxValue (\ s a -> s{_nactMaxValue = a});---- | The minimum value of an attribute that is of the number data type.-nactMinValue :: Lens' NumberAttributeConstraintsType (Maybe Text)-nactMinValue = lens _nactMinValue (\ s a -> s{_nactMinValue = a});--instance FromJSON NumberAttributeConstraintsType-         where-        parseJSON-          = withObject "NumberAttributeConstraintsType"-              (\ x ->-                 NumberAttributeConstraintsType' <$>-                   (x .:? "MaxValue") <*> (x .:? "MinValue"))--instance Hashable NumberAttributeConstraintsType--instance NFData NumberAttributeConstraintsType--instance ToJSON NumberAttributeConstraintsType where-        toJSON NumberAttributeConstraintsType'{..}-          = object-              (catMaybes-                 [("MaxValue" .=) <$> _nactMaxValue,-                  ("MinValue" .=) <$> _nactMinValue])---- | The password policy type.------------ /See:/ 'passwordPolicyType' smart constructor.-data PasswordPolicyType = PasswordPolicyType'-    { _pptRequireNumbers   :: !(Maybe Bool)-    , _pptRequireUppercase :: !(Maybe Bool)-    , _pptRequireLowercase :: !(Maybe Bool)-    , _pptMinimumLength    :: !(Maybe Nat)-    , _pptRequireSymbols   :: !(Maybe Bool)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'PasswordPolicyType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pptRequireNumbers' - In the password policy that you have set, refers to whether you have required users to use at least one number in their password.------ * 'pptRequireUppercase' - In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.------ * 'pptRequireLowercase' - In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.------ * 'pptMinimumLength' - The minimum length of the password policy that you have set. Cannot be less than 6.------ * 'pptRequireSymbols' - In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.-passwordPolicyType-    :: PasswordPolicyType-passwordPolicyType =-    PasswordPolicyType'-    { _pptRequireNumbers = Nothing-    , _pptRequireUppercase = Nothing-    , _pptRequireLowercase = Nothing-    , _pptMinimumLength = Nothing-    , _pptRequireSymbols = Nothing-    }---- | In the password policy that you have set, refers to whether you have required users to use at least one number in their password.-pptRequireNumbers :: Lens' PasswordPolicyType (Maybe Bool)-pptRequireNumbers = lens _pptRequireNumbers (\ s a -> s{_pptRequireNumbers = a});---- | In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.-pptRequireUppercase :: Lens' PasswordPolicyType (Maybe Bool)-pptRequireUppercase = lens _pptRequireUppercase (\ s a -> s{_pptRequireUppercase = a});---- | In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.-pptRequireLowercase :: Lens' PasswordPolicyType (Maybe Bool)-pptRequireLowercase = lens _pptRequireLowercase (\ s a -> s{_pptRequireLowercase = a});---- | The minimum length of the password policy that you have set. Cannot be less than 6.-pptMinimumLength :: Lens' PasswordPolicyType (Maybe Natural)-pptMinimumLength = lens _pptMinimumLength (\ s a -> s{_pptMinimumLength = a}) . mapping _Nat;---- | In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.-pptRequireSymbols :: Lens' PasswordPolicyType (Maybe Bool)-pptRequireSymbols = lens _pptRequireSymbols (\ s a -> s{_pptRequireSymbols = a});--instance FromJSON PasswordPolicyType where-        parseJSON-          = withObject "PasswordPolicyType"-              (\ x ->-                 PasswordPolicyType' <$>-                   (x .:? "RequireNumbers") <*>-                     (x .:? "RequireUppercase")-                     <*> (x .:? "RequireLowercase")-                     <*> (x .:? "MinimumLength")-                     <*> (x .:? "RequireSymbols"))--instance Hashable PasswordPolicyType--instance NFData PasswordPolicyType--instance ToJSON PasswordPolicyType where-        toJSON PasswordPolicyType'{..}-          = object-              (catMaybes-                 [("RequireNumbers" .=) <$> _pptRequireNumbers,-                  ("RequireUppercase" .=) <$> _pptRequireUppercase,-                  ("RequireLowercase" .=) <$> _pptRequireLowercase,-                  ("MinimumLength" .=) <$> _pptMinimumLength,-                  ("RequireSymbols" .=) <$> _pptRequireSymbols])---- | Contains information about the schema attribute.------------ /See:/ 'schemaAttributeType' smart constructor.-data SchemaAttributeType = SchemaAttributeType'-    { _satNumberAttributeConstraints :: !(Maybe NumberAttributeConstraintsType)-    , _satRequired                   :: !(Maybe Bool)-    , _satAttributeDataType          :: !(Maybe AttributeDataType)-    , _satStringAttributeConstraints :: !(Maybe StringAttributeConstraintsType)-    , _satName                       :: !(Maybe Text)-    , _satDeveloperOnlyAttribute     :: !(Maybe Bool)-    , _satMutable                    :: !(Maybe Bool)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'SchemaAttributeType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'satNumberAttributeConstraints' - Specifies the constraints for an attribute of the number type.------ * 'satRequired' - Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.------ * 'satAttributeDataType' - The attribute data type.------ * 'satStringAttributeConstraints' - Specifies the constraints for an attribute of the string type.------ * 'satName' - A schema attribute of the name type.------ * 'satDeveloperOnlyAttribute' - Specifies whether the attribute type is developer only.------ * 'satMutable' - Specifies whether the attribute can be changed once it has been created.-schemaAttributeType-    :: SchemaAttributeType-schemaAttributeType =-    SchemaAttributeType'-    { _satNumberAttributeConstraints = Nothing-    , _satRequired = Nothing-    , _satAttributeDataType = Nothing-    , _satStringAttributeConstraints = Nothing-    , _satName = Nothing-    , _satDeveloperOnlyAttribute = Nothing-    , _satMutable = Nothing-    }---- | Specifies the constraints for an attribute of the number type.-satNumberAttributeConstraints :: Lens' SchemaAttributeType (Maybe NumberAttributeConstraintsType)-satNumberAttributeConstraints = lens _satNumberAttributeConstraints (\ s a -> s{_satNumberAttributeConstraints = a});---- | Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.-satRequired :: Lens' SchemaAttributeType (Maybe Bool)-satRequired = lens _satRequired (\ s a -> s{_satRequired = a});---- | The attribute data type.-satAttributeDataType :: Lens' SchemaAttributeType (Maybe AttributeDataType)-satAttributeDataType = lens _satAttributeDataType (\ s a -> s{_satAttributeDataType = a});---- | Specifies the constraints for an attribute of the string type.-satStringAttributeConstraints :: Lens' SchemaAttributeType (Maybe StringAttributeConstraintsType)-satStringAttributeConstraints = lens _satStringAttributeConstraints (\ s a -> s{_satStringAttributeConstraints = a});---- | A schema attribute of the name type.-satName :: Lens' SchemaAttributeType (Maybe Text)-satName = lens _satName (\ s a -> s{_satName = a});---- | Specifies whether the attribute type is developer only.-satDeveloperOnlyAttribute :: Lens' SchemaAttributeType (Maybe Bool)-satDeveloperOnlyAttribute = lens _satDeveloperOnlyAttribute (\ s a -> s{_satDeveloperOnlyAttribute = a});---- | Specifies whether the attribute can be changed once it has been created.-satMutable :: Lens' SchemaAttributeType (Maybe Bool)-satMutable = lens _satMutable (\ s a -> s{_satMutable = a});--instance FromJSON SchemaAttributeType where-        parseJSON-          = withObject "SchemaAttributeType"-              (\ x ->-                 SchemaAttributeType' <$>-                   (x .:? "NumberAttributeConstraints") <*>-                     (x .:? "Required")-                     <*> (x .:? "AttributeDataType")-                     <*> (x .:? "StringAttributeConstraints")-                     <*> (x .:? "Name")-                     <*> (x .:? "DeveloperOnlyAttribute")-                     <*> (x .:? "Mutable"))--instance Hashable SchemaAttributeType--instance NFData SchemaAttributeType--instance ToJSON SchemaAttributeType where-        toJSON SchemaAttributeType'{..}-          = object-              (catMaybes-                 [("NumberAttributeConstraints" .=) <$>-                    _satNumberAttributeConstraints,-                  ("Required" .=) <$> _satRequired,-                  ("AttributeDataType" .=) <$> _satAttributeDataType,-                  ("StringAttributeConstraints" .=) <$>-                    _satStringAttributeConstraints,-                  ("Name" .=) <$> _satName,-                  ("DeveloperOnlyAttribute" .=) <$>-                    _satDeveloperOnlyAttribute,-                  ("Mutable" .=) <$> _satMutable])---- | The SMS configuratoin type.------------ /See:/ 'smsConfigurationType' smart constructor.-data SmsConfigurationType = SmsConfigurationType'-    { _sctExternalId   :: !(Maybe Text)-    , _sctSNSCallerARN :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'SmsConfigurationType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sctExternalId' - The external ID.------ * 'sctSNSCallerARN' - The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.-smsConfigurationType-    :: Text -- ^ 'sctSNSCallerARN'-    -> SmsConfigurationType-smsConfigurationType pSNSCallerARN_ =-    SmsConfigurationType'-    { _sctExternalId = Nothing-    , _sctSNSCallerARN = pSNSCallerARN_-    }---- | The external ID.-sctExternalId :: Lens' SmsConfigurationType (Maybe Text)-sctExternalId = lens _sctExternalId (\ s a -> s{_sctExternalId = a});---- | The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.-sctSNSCallerARN :: Lens' SmsConfigurationType Text-sctSNSCallerARN = lens _sctSNSCallerARN (\ s a -> s{_sctSNSCallerARN = a});--instance FromJSON SmsConfigurationType where-        parseJSON-          = withObject "SmsConfigurationType"-              (\ x ->-                 SmsConfigurationType' <$>-                   (x .:? "ExternalId") <*> (x .: "SnsCallerArn"))--instance Hashable SmsConfigurationType--instance NFData SmsConfigurationType--instance ToJSON SmsConfigurationType where-        toJSON SmsConfigurationType'{..}-          = object-              (catMaybes-                 [("ExternalId" .=) <$> _sctExternalId,-                  Just ("SnsCallerArn" .= _sctSNSCallerARN)])---- | The type of constraints associated with an attribute of the string type.------------ /See:/ 'stringAttributeConstraintsType' smart constructor.-data StringAttributeConstraintsType = StringAttributeConstraintsType'-    { _sactMaxLength :: !(Maybe Text)-    , _sactMinLength :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StringAttributeConstraintsType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sactMaxLength' - The maximum length of an attribute value of the string type.------ * 'sactMinLength' - The minimum length of an attribute value of the string type.-stringAttributeConstraintsType-    :: StringAttributeConstraintsType-stringAttributeConstraintsType =-    StringAttributeConstraintsType'-    { _sactMaxLength = Nothing-    , _sactMinLength = Nothing-    }---- | The maximum length of an attribute value of the string type.-sactMaxLength :: Lens' StringAttributeConstraintsType (Maybe Text)-sactMaxLength = lens _sactMaxLength (\ s a -> s{_sactMaxLength = a});---- | The minimum length of an attribute value of the string type.-sactMinLength :: Lens' StringAttributeConstraintsType (Maybe Text)-sactMinLength = lens _sactMinLength (\ s a -> s{_sactMinLength = a});--instance FromJSON StringAttributeConstraintsType-         where-        parseJSON-          = withObject "StringAttributeConstraintsType"-              (\ x ->-                 StringAttributeConstraintsType' <$>-                   (x .:? "MaxLength") <*> (x .:? "MinLength"))--instance Hashable StringAttributeConstraintsType--instance NFData StringAttributeConstraintsType--instance ToJSON StringAttributeConstraintsType where-        toJSON StringAttributeConstraintsType'{..}-          = object-              (catMaybes-                 [("MaxLength" .=) <$> _sactMaxLength,-                  ("MinLength" .=) <$> _sactMinLength])---- | The user import job type.------------ /See:/ 'userImportJobType' smart constructor.-data UserImportJobType = UserImportJobType'-    { _uijtStatus                :: !(Maybe UserImportJobStatusType)-    , _uijtSkippedUsers          :: !(Maybe Integer)-    , _uijtJobId                 :: !(Maybe Text)-    , _uijtUserPoolId            :: !(Maybe Text)-    , _uijtJobName               :: !(Maybe Text)-    , _uijtPreSignedURL          :: !(Maybe Text)-    , _uijtFailedUsers           :: !(Maybe Integer)-    , _uijtStartDate             :: !(Maybe POSIX)-    , _uijtCompletionMessage     :: !(Maybe Text)-    , _uijtCreationDate          :: !(Maybe POSIX)-    , _uijtCompletionDate        :: !(Maybe POSIX)-    , _uijtCloudWatchLogsRoleARN :: !(Maybe Text)-    , _uijtImportedUsers         :: !(Maybe Integer)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserImportJobType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uijtStatus' - The status of the user import job. One of the following:     * Created - The job was created but not started.     * Pending - A transition state. You have started the job, but it has not begun importing users yet.     * InProgress - The job has started, and users are being imported.     * Stopping - You have stopped the job, but the job has not stopped importing users yet.     * Stopped - You have stopped the job, and the job has stopped importing users.     * Succeeded - The job has completed successfully.     * Failed - The job has stopped due to an error.     * Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job cannot be started.------ * 'uijtSkippedUsers' - The number of users that were skipped.------ * 'uijtJobId' - The job ID for the user import job.------ * 'uijtUserPoolId' - The user pool ID for the user pool that the users are being imported into.------ * 'uijtJobName' - The job name for the user import job.------ * 'uijtPreSignedURL' - The pre-signed URL to be used to upload the .csv file.------ * 'uijtFailedUsers' - The number of users that could not be imported.------ * 'uijtStartDate' - The date when the user import job was started.------ * 'uijtCompletionMessage' - The message returned when the user import job is completed.------ * 'uijtCreationDate' - The date when the user import job was created.------ * 'uijtCompletionDate' - The date when the user imoprt job was completed.------ * 'uijtCloudWatchLogsRoleARN' - The role ARN for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.------ * 'uijtImportedUsers' - The number of users that were successfully imported.-userImportJobType-    :: UserImportJobType-userImportJobType =-    UserImportJobType'-    { _uijtStatus = Nothing-    , _uijtSkippedUsers = Nothing-    , _uijtJobId = Nothing-    , _uijtUserPoolId = Nothing-    , _uijtJobName = Nothing-    , _uijtPreSignedURL = Nothing-    , _uijtFailedUsers = Nothing-    , _uijtStartDate = Nothing-    , _uijtCompletionMessage = Nothing-    , _uijtCreationDate = Nothing-    , _uijtCompletionDate = Nothing-    , _uijtCloudWatchLogsRoleARN = Nothing-    , _uijtImportedUsers = Nothing-    }---- | The status of the user import job. One of the following:     * Created - The job was created but not started.     * Pending - A transition state. You have started the job, but it has not begun importing users yet.     * InProgress - The job has started, and users are being imported.     * Stopping - You have stopped the job, but the job has not stopped importing users yet.     * Stopped - You have stopped the job, and the job has stopped importing users.     * Succeeded - The job has completed successfully.     * Failed - The job has stopped due to an error.     * Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job cannot be started.-uijtStatus :: Lens' UserImportJobType (Maybe UserImportJobStatusType)-uijtStatus = lens _uijtStatus (\ s a -> s{_uijtStatus = a});---- | The number of users that were skipped.-uijtSkippedUsers :: Lens' UserImportJobType (Maybe Integer)-uijtSkippedUsers = lens _uijtSkippedUsers (\ s a -> s{_uijtSkippedUsers = a});---- | The job ID for the user import job.-uijtJobId :: Lens' UserImportJobType (Maybe Text)-uijtJobId = lens _uijtJobId (\ s a -> s{_uijtJobId = a});---- | The user pool ID for the user pool that the users are being imported into.-uijtUserPoolId :: Lens' UserImportJobType (Maybe Text)-uijtUserPoolId = lens _uijtUserPoolId (\ s a -> s{_uijtUserPoolId = a});---- | The job name for the user import job.-uijtJobName :: Lens' UserImportJobType (Maybe Text)-uijtJobName = lens _uijtJobName (\ s a -> s{_uijtJobName = a});---- | The pre-signed URL to be used to upload the .csv file.-uijtPreSignedURL :: Lens' UserImportJobType (Maybe Text)-uijtPreSignedURL = lens _uijtPreSignedURL (\ s a -> s{_uijtPreSignedURL = a});---- | The number of users that could not be imported.-uijtFailedUsers :: Lens' UserImportJobType (Maybe Integer)-uijtFailedUsers = lens _uijtFailedUsers (\ s a -> s{_uijtFailedUsers = a});---- | The date when the user import job was started.-uijtStartDate :: Lens' UserImportJobType (Maybe UTCTime)-uijtStartDate = lens _uijtStartDate (\ s a -> s{_uijtStartDate = a}) . mapping _Time;---- | The message returned when the user import job is completed.-uijtCompletionMessage :: Lens' UserImportJobType (Maybe Text)-uijtCompletionMessage = lens _uijtCompletionMessage (\ s a -> s{_uijtCompletionMessage = a});---- | The date when the user import job was created.-uijtCreationDate :: Lens' UserImportJobType (Maybe UTCTime)-uijtCreationDate = lens _uijtCreationDate (\ s a -> s{_uijtCreationDate = a}) . mapping _Time;---- | The date when the user imoprt job was completed.-uijtCompletionDate :: Lens' UserImportJobType (Maybe UTCTime)-uijtCompletionDate = lens _uijtCompletionDate (\ s a -> s{_uijtCompletionDate = a}) . mapping _Time;---- | The role ARN for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.-uijtCloudWatchLogsRoleARN :: Lens' UserImportJobType (Maybe Text)-uijtCloudWatchLogsRoleARN = lens _uijtCloudWatchLogsRoleARN (\ s a -> s{_uijtCloudWatchLogsRoleARN = a});---- | The number of users that were successfully imported.-uijtImportedUsers :: Lens' UserImportJobType (Maybe Integer)-uijtImportedUsers = lens _uijtImportedUsers (\ s a -> s{_uijtImportedUsers = a});--instance FromJSON UserImportJobType where-        parseJSON-          = withObject "UserImportJobType"-              (\ x ->-                 UserImportJobType' <$>-                   (x .:? "Status") <*> (x .:? "SkippedUsers") <*>-                     (x .:? "JobId")-                     <*> (x .:? "UserPoolId")-                     <*> (x .:? "JobName")-                     <*> (x .:? "PreSignedUrl")-                     <*> (x .:? "FailedUsers")-                     <*> (x .:? "StartDate")-                     <*> (x .:? "CompletionMessage")-                     <*> (x .:? "CreationDate")-                     <*> (x .:? "CompletionDate")-                     <*> (x .:? "CloudWatchLogsRoleArn")-                     <*> (x .:? "ImportedUsers"))--instance Hashable UserImportJobType--instance NFData UserImportJobType---- | The description of the user poool client.------------ /See:/ 'userPoolClientDescription' smart constructor.-data UserPoolClientDescription = UserPoolClientDescription'-    { _upcdClientId   :: !(Maybe (Sensitive Text))-    , _upcdUserPoolId :: !(Maybe Text)-    , _upcdClientName :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserPoolClientDescription' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'upcdClientId' - The ID of the client associated with the user pool.------ * 'upcdUserPoolId' - The user pool ID for the user pool where you want to describe the user pool client.------ * 'upcdClientName' - The client name from the user pool client description.-userPoolClientDescription-    :: UserPoolClientDescription-userPoolClientDescription =-    UserPoolClientDescription'-    { _upcdClientId = Nothing-    , _upcdUserPoolId = Nothing-    , _upcdClientName = Nothing-    }---- | The ID of the client associated with the user pool.-upcdClientId :: Lens' UserPoolClientDescription (Maybe Text)-upcdClientId = lens _upcdClientId (\ s a -> s{_upcdClientId = a}) . mapping _Sensitive;---- | The user pool ID for the user pool where you want to describe the user pool client.-upcdUserPoolId :: Lens' UserPoolClientDescription (Maybe Text)-upcdUserPoolId = lens _upcdUserPoolId (\ s a -> s{_upcdUserPoolId = a});---- | The client name from the user pool client description.-upcdClientName :: Lens' UserPoolClientDescription (Maybe Text)-upcdClientName = lens _upcdClientName (\ s a -> s{_upcdClientName = a});--instance FromJSON UserPoolClientDescription where-        parseJSON-          = withObject "UserPoolClientDescription"-              (\ x ->-                 UserPoolClientDescription' <$>-                   (x .:? "ClientId") <*> (x .:? "UserPoolId") <*>-                     (x .:? "ClientName"))--instance Hashable UserPoolClientDescription--instance NFData UserPoolClientDescription---- | A user pool of the client type.------------ /See:/ 'userPoolClientType' smart constructor.-data UserPoolClientType = UserPoolClientType'-    { _upctRefreshTokenValidity :: !(Maybe Nat)-    , _upctClientId             :: !(Maybe (Sensitive Text))-    , _upctExplicitAuthFlows    :: !(Maybe [ExplicitAuthFlowsType])-    , _upctClientSecret         :: !(Maybe (Sensitive Text))-    , _upctLastModifiedDate     :: !(Maybe POSIX)-    , _upctUserPoolId           :: !(Maybe Text)-    , _upctWriteAttributes      :: !(Maybe [Text])-    , _upctCreationDate         :: !(Maybe POSIX)-    , _upctReadAttributes       :: !(Maybe [Text])-    , _upctClientName           :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserPoolClientType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'upctRefreshTokenValidity' - The validity of the refresh token.------ * 'upctClientId' - The ID of the client associated with the user pool.------ * 'upctExplicitAuthFlows' - The explicit authentication flows.------ * 'upctClientSecret' - The client secret from the user pool request of the client type.------ * 'upctLastModifiedDate' - The last modified date from the user pool request of the client type.------ * 'upctUserPoolId' - The user pool ID for the user pool client.------ * 'upctWriteAttributes' - The writeable attributes.------ * 'upctCreationDate' - The creation date from the user pool request of the client type.------ * 'upctReadAttributes' - The Read-only attributes.------ * 'upctClientName' - The client name from the user pool request of the client type.-userPoolClientType-    :: UserPoolClientType-userPoolClientType =-    UserPoolClientType'-    { _upctRefreshTokenValidity = Nothing-    , _upctClientId = Nothing-    , _upctExplicitAuthFlows = Nothing-    , _upctClientSecret = Nothing-    , _upctLastModifiedDate = Nothing-    , _upctUserPoolId = Nothing-    , _upctWriteAttributes = Nothing-    , _upctCreationDate = Nothing-    , _upctReadAttributes = Nothing-    , _upctClientName = Nothing-    }---- | The validity of the refresh token.-upctRefreshTokenValidity :: Lens' UserPoolClientType (Maybe Natural)-upctRefreshTokenValidity = lens _upctRefreshTokenValidity (\ s a -> s{_upctRefreshTokenValidity = a}) . mapping _Nat;---- | The ID of the client associated with the user pool.-upctClientId :: Lens' UserPoolClientType (Maybe Text)-upctClientId = lens _upctClientId (\ s a -> s{_upctClientId = a}) . mapping _Sensitive;---- | The explicit authentication flows.-upctExplicitAuthFlows :: Lens' UserPoolClientType [ExplicitAuthFlowsType]-upctExplicitAuthFlows = lens _upctExplicitAuthFlows (\ s a -> s{_upctExplicitAuthFlows = a}) . _Default . _Coerce;---- | The client secret from the user pool request of the client type.-upctClientSecret :: Lens' UserPoolClientType (Maybe Text)-upctClientSecret = lens _upctClientSecret (\ s a -> s{_upctClientSecret = a}) . mapping _Sensitive;---- | The last modified date from the user pool request of the client type.-upctLastModifiedDate :: Lens' UserPoolClientType (Maybe UTCTime)-upctLastModifiedDate = lens _upctLastModifiedDate (\ s a -> s{_upctLastModifiedDate = a}) . mapping _Time;---- | The user pool ID for the user pool client.-upctUserPoolId :: Lens' UserPoolClientType (Maybe Text)-upctUserPoolId = lens _upctUserPoolId (\ s a -> s{_upctUserPoolId = a});---- | The writeable attributes.-upctWriteAttributes :: Lens' UserPoolClientType [Text]-upctWriteAttributes = lens _upctWriteAttributes (\ s a -> s{_upctWriteAttributes = a}) . _Default . _Coerce;---- | The creation date from the user pool request of the client type.-upctCreationDate :: Lens' UserPoolClientType (Maybe UTCTime)-upctCreationDate = lens _upctCreationDate (\ s a -> s{_upctCreationDate = a}) . mapping _Time;---- | The Read-only attributes.-upctReadAttributes :: Lens' UserPoolClientType [Text]-upctReadAttributes = lens _upctReadAttributes (\ s a -> s{_upctReadAttributes = a}) . _Default . _Coerce;---- | The client name from the user pool request of the client type.-upctClientName :: Lens' UserPoolClientType (Maybe Text)-upctClientName = lens _upctClientName (\ s a -> s{_upctClientName = a});--instance FromJSON UserPoolClientType where-        parseJSON-          = withObject "UserPoolClientType"-              (\ x ->-                 UserPoolClientType' <$>-                   (x .:? "RefreshTokenValidity") <*> (x .:? "ClientId")-                     <*> (x .:? "ExplicitAuthFlows" .!= mempty)-                     <*> (x .:? "ClientSecret")-                     <*> (x .:? "LastModifiedDate")-                     <*> (x .:? "UserPoolId")-                     <*> (x .:? "WriteAttributes" .!= mempty)-                     <*> (x .:? "CreationDate")-                     <*> (x .:? "ReadAttributes" .!= mempty)-                     <*> (x .:? "ClientName"))--instance Hashable UserPoolClientType--instance NFData UserPoolClientType---- | A user pool description.------------ /See:/ 'userPoolDescriptionType' smart constructor.-data UserPoolDescriptionType = UserPoolDescriptionType'-    { _updtStatus           :: !(Maybe StatusType)-    , _updtLastModifiedDate :: !(Maybe POSIX)-    , _updtName             :: !(Maybe Text)-    , _updtId               :: !(Maybe Text)-    , _updtCreationDate     :: !(Maybe POSIX)-    , _updtLambdaConfig     :: !(Maybe LambdaConfigType)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserPoolDescriptionType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'updtStatus' - The user pool status in a user pool description.------ * 'updtLastModifiedDate' - The last modified date in a user pool description.------ * 'updtName' - The name in a user pool description.------ * 'updtId' - The ID in a user pool description.------ * 'updtCreationDate' - The creation date in a user pool description.------ * 'updtLambdaConfig' - The AWS Lambda configuration information in a user pool description.-userPoolDescriptionType-    :: UserPoolDescriptionType-userPoolDescriptionType =-    UserPoolDescriptionType'-    { _updtStatus = Nothing-    , _updtLastModifiedDate = Nothing-    , _updtName = Nothing-    , _updtId = Nothing-    , _updtCreationDate = Nothing-    , _updtLambdaConfig = Nothing-    }---- | The user pool status in a user pool description.-updtStatus :: Lens' UserPoolDescriptionType (Maybe StatusType)-updtStatus = lens _updtStatus (\ s a -> s{_updtStatus = a});---- | The last modified date in a user pool description.-updtLastModifiedDate :: Lens' UserPoolDescriptionType (Maybe UTCTime)-updtLastModifiedDate = lens _updtLastModifiedDate (\ s a -> s{_updtLastModifiedDate = a}) . mapping _Time;---- | The name in a user pool description.-updtName :: Lens' UserPoolDescriptionType (Maybe Text)-updtName = lens _updtName (\ s a -> s{_updtName = a});---- | The ID in a user pool description.-updtId :: Lens' UserPoolDescriptionType (Maybe Text)-updtId = lens _updtId (\ s a -> s{_updtId = a});---- | The creation date in a user pool description.-updtCreationDate :: Lens' UserPoolDescriptionType (Maybe UTCTime)-updtCreationDate = lens _updtCreationDate (\ s a -> s{_updtCreationDate = a}) . mapping _Time;---- | The AWS Lambda configuration information in a user pool description.-updtLambdaConfig :: Lens' UserPoolDescriptionType (Maybe LambdaConfigType)-updtLambdaConfig = lens _updtLambdaConfig (\ s a -> s{_updtLambdaConfig = a});--instance FromJSON UserPoolDescriptionType where-        parseJSON-          = withObject "UserPoolDescriptionType"-              (\ x ->-                 UserPoolDescriptionType' <$>-                   (x .:? "Status") <*> (x .:? "LastModifiedDate") <*>-                     (x .:? "Name")-                     <*> (x .:? "Id")-                     <*> (x .:? "CreationDate")-                     <*> (x .:? "LambdaConfig"))--instance Hashable UserPoolDescriptionType--instance NFData UserPoolDescriptionType---- | The type of policy in a user pool.------------ /See:/ 'userPoolPolicyType' smart constructor.-newtype UserPoolPolicyType = UserPoolPolicyType'-    { _upptPasswordPolicy :: Maybe PasswordPolicyType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserPoolPolicyType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'upptPasswordPolicy' - A container with information about the user pool password policy.-userPoolPolicyType-    :: UserPoolPolicyType-userPoolPolicyType =-    UserPoolPolicyType'-    { _upptPasswordPolicy = Nothing-    }---- | A container with information about the user pool password policy.-upptPasswordPolicy :: Lens' UserPoolPolicyType (Maybe PasswordPolicyType)-upptPasswordPolicy = lens _upptPasswordPolicy (\ s a -> s{_upptPasswordPolicy = a});--instance FromJSON UserPoolPolicyType where-        parseJSON-          = withObject "UserPoolPolicyType"-              (\ x ->-                 UserPoolPolicyType' <$> (x .:? "PasswordPolicy"))--instance Hashable UserPoolPolicyType--instance NFData UserPoolPolicyType--instance ToJSON UserPoolPolicyType where-        toJSON UserPoolPolicyType'{..}-          = object-              (catMaybes-                 [("PasswordPolicy" .=) <$> _upptPasswordPolicy])---- | A container with information about the user pool type.------------ /See:/ 'userPoolType' smart constructor.-data UserPoolType = UserPoolType'-    { _uptStatus                    :: !(Maybe StatusType)-    , _uptEmailConfigurationFailure :: !(Maybe Text)-    , _uptLastModifiedDate          :: !(Maybe POSIX)-    , _uptEstimatedNumberOfUsers    :: !(Maybe Int)-    , _uptEmailVerificationMessage  :: !(Maybe Text)-    , _uptSmsAuthenticationMessage  :: !(Maybe Text)-    , _uptSchemaAttributes          :: !(Maybe (List1 SchemaAttributeType))-    , _uptEmailVerificationSubject  :: !(Maybe Text)-    , _uptAliasAttributes           :: !(Maybe [AliasAttributeType])-    , _uptEmailConfiguration        :: !(Maybe EmailConfigurationType)-    , _uptSmsVerificationMessage    :: !(Maybe Text)-    , _uptName                      :: !(Maybe Text)-    , _uptMFAConfiguration          :: !(Maybe UserPoolMFAType)-    , _uptId                        :: !(Maybe Text)-    , _uptSmsConfigurationFailure   :: !(Maybe Text)-    , _uptCreationDate              :: !(Maybe POSIX)-    , _uptLambdaConfig              :: !(Maybe LambdaConfigType)-    , _uptSmsConfiguration          :: !(Maybe SmsConfigurationType)-    , _uptAdminCreateUserConfig     :: !(Maybe AdminCreateUserConfigType)-    , _uptDeviceConfiguration       :: !(Maybe DeviceConfigurationType)-    , _uptAutoVerifiedAttributes    :: !(Maybe [VerifiedAttributeType])-    , _uptPolicies                  :: !(Maybe UserPoolPolicyType)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserPoolType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uptStatus' - The status of a user pool.------ * 'uptEmailConfigurationFailure' - The reason why the email configuration cannot send the messages to your users.------ * 'uptLastModifiedDate' - The last modified date of a user pool.------ * 'uptEstimatedNumberOfUsers' - A number estimating the size of the user pool.------ * 'uptEmailVerificationMessage' - The contents of the email verification message.------ * 'uptSmsAuthenticationMessage' - The contents of the SMS authentication message.------ * 'uptSchemaAttributes' - A container with the schema attributes of a user pool.------ * 'uptEmailVerificationSubject' - The subject of the email verification message.------ * 'uptAliasAttributes' - Specifies the attributes that are aliased in a user pool.------ * 'uptEmailConfiguration' - The email configuration.------ * 'uptSmsVerificationMessage' - The contents of the SMS verification message.------ * 'uptName' - The name of the user pool.------ * 'uptMFAConfiguration' - Can be one of the following values:     * @OFF@ - MFA tokens are not required and cannot be specified during user registration.     * @ON@ - MFA tokens are required for all user registrations. You can only specify required when you are initially creating a user pool.     * @OPTIONAL@ - Users have the option when registering to create an MFA token.------ * 'uptId' - The ID of the user pool.------ * 'uptSmsConfigurationFailure' - The reason why the SMS configuration cannot send the message(s) to your users.------ * 'uptCreationDate' - The creation date of a user pool.------ * 'uptLambdaConfig' - A container describing the AWS Lambda triggers associated with a user pool.------ * 'uptSmsConfiguration' - The SMS configuration.------ * 'uptAdminCreateUserConfig' - The configuration for AdminCreateUser requests.------ * 'uptDeviceConfiguration' - The device configuration.------ * 'uptAutoVerifiedAttributes' - Specifies the attributes that are auto-verified in a user pool.------ * 'uptPolicies' - A container describing the policies associated with a user pool.-userPoolType-    :: UserPoolType-userPoolType =-    UserPoolType'-    { _uptStatus = Nothing-    , _uptEmailConfigurationFailure = Nothing-    , _uptLastModifiedDate = Nothing-    , _uptEstimatedNumberOfUsers = Nothing-    , _uptEmailVerificationMessage = Nothing-    , _uptSmsAuthenticationMessage = Nothing-    , _uptSchemaAttributes = Nothing-    , _uptEmailVerificationSubject = Nothing-    , _uptAliasAttributes = Nothing-    , _uptEmailConfiguration = Nothing-    , _uptSmsVerificationMessage = Nothing-    , _uptName = Nothing-    , _uptMFAConfiguration = Nothing-    , _uptId = Nothing-    , _uptSmsConfigurationFailure = Nothing-    , _uptCreationDate = Nothing-    , _uptLambdaConfig = Nothing-    , _uptSmsConfiguration = Nothing-    , _uptAdminCreateUserConfig = Nothing-    , _uptDeviceConfiguration = Nothing-    , _uptAutoVerifiedAttributes = Nothing-    , _uptPolicies = Nothing-    }---- | The status of a user pool.-uptStatus :: Lens' UserPoolType (Maybe StatusType)-uptStatus = lens _uptStatus (\ s a -> s{_uptStatus = a});---- | The reason why the email configuration cannot send the messages to your users.-uptEmailConfigurationFailure :: Lens' UserPoolType (Maybe Text)-uptEmailConfigurationFailure = lens _uptEmailConfigurationFailure (\ s a -> s{_uptEmailConfigurationFailure = a});---- | The last modified date of a user pool.-uptLastModifiedDate :: Lens' UserPoolType (Maybe UTCTime)-uptLastModifiedDate = lens _uptLastModifiedDate (\ s a -> s{_uptLastModifiedDate = a}) . mapping _Time;---- | A number estimating the size of the user pool.-uptEstimatedNumberOfUsers :: Lens' UserPoolType (Maybe Int)-uptEstimatedNumberOfUsers = lens _uptEstimatedNumberOfUsers (\ s a -> s{_uptEstimatedNumberOfUsers = a});---- | The contents of the email verification message.-uptEmailVerificationMessage :: Lens' UserPoolType (Maybe Text)-uptEmailVerificationMessage = lens _uptEmailVerificationMessage (\ s a -> s{_uptEmailVerificationMessage = a});---- | The contents of the SMS authentication message.-uptSmsAuthenticationMessage :: Lens' UserPoolType (Maybe Text)-uptSmsAuthenticationMessage = lens _uptSmsAuthenticationMessage (\ s a -> s{_uptSmsAuthenticationMessage = a});---- | A container with the schema attributes of a user pool.-uptSchemaAttributes :: Lens' UserPoolType (Maybe (NonEmpty SchemaAttributeType))-uptSchemaAttributes = lens _uptSchemaAttributes (\ s a -> s{_uptSchemaAttributes = a}) . mapping _List1;---- | The subject of the email verification message.-uptEmailVerificationSubject :: Lens' UserPoolType (Maybe Text)-uptEmailVerificationSubject = lens _uptEmailVerificationSubject (\ s a -> s{_uptEmailVerificationSubject = a});---- | Specifies the attributes that are aliased in a user pool.-uptAliasAttributes :: Lens' UserPoolType [AliasAttributeType]-uptAliasAttributes = lens _uptAliasAttributes (\ s a -> s{_uptAliasAttributes = a}) . _Default . _Coerce;---- | The email configuration.-uptEmailConfiguration :: Lens' UserPoolType (Maybe EmailConfigurationType)-uptEmailConfiguration = lens _uptEmailConfiguration (\ s a -> s{_uptEmailConfiguration = a});---- | The contents of the SMS verification message.-uptSmsVerificationMessage :: Lens' UserPoolType (Maybe Text)-uptSmsVerificationMessage = lens _uptSmsVerificationMessage (\ s a -> s{_uptSmsVerificationMessage = a});---- | The name of the user pool.-uptName :: Lens' UserPoolType (Maybe Text)-uptName = lens _uptName (\ s a -> s{_uptName = a});---- | Can be one of the following values:     * @OFF@ - MFA tokens are not required and cannot be specified during user registration.     * @ON@ - MFA tokens are required for all user registrations. You can only specify required when you are initially creating a user pool.     * @OPTIONAL@ - Users have the option when registering to create an MFA token.-uptMFAConfiguration :: Lens' UserPoolType (Maybe UserPoolMFAType)-uptMFAConfiguration = lens _uptMFAConfiguration (\ s a -> s{_uptMFAConfiguration = a});---- | The ID of the user pool.-uptId :: Lens' UserPoolType (Maybe Text)-uptId = lens _uptId (\ s a -> s{_uptId = a});---- | The reason why the SMS configuration cannot send the message(s) to your users.-uptSmsConfigurationFailure :: Lens' UserPoolType (Maybe Text)-uptSmsConfigurationFailure = lens _uptSmsConfigurationFailure (\ s a -> s{_uptSmsConfigurationFailure = a});---- | The creation date of a user pool.-uptCreationDate :: Lens' UserPoolType (Maybe UTCTime)-uptCreationDate = lens _uptCreationDate (\ s a -> s{_uptCreationDate = a}) . mapping _Time;---- | A container describing the AWS Lambda triggers associated with a user pool.-uptLambdaConfig :: Lens' UserPoolType (Maybe LambdaConfigType)-uptLambdaConfig = lens _uptLambdaConfig (\ s a -> s{_uptLambdaConfig = a});---- | The SMS configuration.-uptSmsConfiguration :: Lens' UserPoolType (Maybe SmsConfigurationType)-uptSmsConfiguration = lens _uptSmsConfiguration (\ s a -> s{_uptSmsConfiguration = a});---- | The configuration for AdminCreateUser requests.-uptAdminCreateUserConfig :: Lens' UserPoolType (Maybe AdminCreateUserConfigType)-uptAdminCreateUserConfig = lens _uptAdminCreateUserConfig (\ s a -> s{_uptAdminCreateUserConfig = a});---- | The device configuration.-uptDeviceConfiguration :: Lens' UserPoolType (Maybe DeviceConfigurationType)-uptDeviceConfiguration = lens _uptDeviceConfiguration (\ s a -> s{_uptDeviceConfiguration = a});---- | Specifies the attributes that are auto-verified in a user pool.-uptAutoVerifiedAttributes :: Lens' UserPoolType [VerifiedAttributeType]-uptAutoVerifiedAttributes = lens _uptAutoVerifiedAttributes (\ s a -> s{_uptAutoVerifiedAttributes = a}) . _Default . _Coerce;---- | A container describing the policies associated with a user pool.-uptPolicies :: Lens' UserPoolType (Maybe UserPoolPolicyType)-uptPolicies = lens _uptPolicies (\ s a -> s{_uptPolicies = a});--instance FromJSON UserPoolType where-        parseJSON-          = withObject "UserPoolType"-              (\ x ->-                 UserPoolType' <$>-                   (x .:? "Status") <*>-                     (x .:? "EmailConfigurationFailure")-                     <*> (x .:? "LastModifiedDate")-                     <*> (x .:? "EstimatedNumberOfUsers")-                     <*> (x .:? "EmailVerificationMessage")-                     <*> (x .:? "SmsAuthenticationMessage")-                     <*> (x .:? "SchemaAttributes")-                     <*> (x .:? "EmailVerificationSubject")-                     <*> (x .:? "AliasAttributes" .!= mempty)-                     <*> (x .:? "EmailConfiguration")-                     <*> (x .:? "SmsVerificationMessage")-                     <*> (x .:? "Name")-                     <*> (x .:? "MfaConfiguration")-                     <*> (x .:? "Id")-                     <*> (x .:? "SmsConfigurationFailure")-                     <*> (x .:? "CreationDate")-                     <*> (x .:? "LambdaConfig")-                     <*> (x .:? "SmsConfiguration")-                     <*> (x .:? "AdminCreateUserConfig")-                     <*> (x .:? "DeviceConfiguration")-                     <*> (x .:? "AutoVerifiedAttributes" .!= mempty)-                     <*> (x .:? "Policies"))--instance Hashable UserPoolType--instance NFData UserPoolType---- | The user type.------------ /See:/ 'userType' smart constructor.-data UserType = UserType'-    { _utEnabled              :: !(Maybe Bool)-    , _utUserStatus           :: !(Maybe UserStatusType)-    , _utUsername             :: !(Maybe (Sensitive Text))-    , _utUserCreateDate       :: !(Maybe POSIX)-    , _utAttributes           :: !(Maybe [AttributeType])-    , _utMFAOptions           :: !(Maybe [MFAOptionType])-    , _utUserLastModifiedDate :: !(Maybe POSIX)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UserType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'utEnabled' - Specifies whether the user is enabled.------ * 'utUserStatus' - The user status. Can be one of the following:     * UNCONFIRMED - User has been created but not confirmed.     * CONFIRMED - User has been confirmed.     * ARCHIVED - User is no longer active.     * COMPROMISED - User is disabled due to a potential security threat.     * UNKNOWN - User status is not known.------ * 'utUsername' - The user name of the user you wish to describe.------ * 'utUserCreateDate' - The creation date of the user.------ * 'utAttributes' - A container with information about the user type attributes.------ * 'utMFAOptions' - The MFA options for the user.------ * 'utUserLastModifiedDate' - The last modified date of the user.-userType-    :: UserType-userType =-    UserType'-    { _utEnabled = Nothing-    , _utUserStatus = Nothing-    , _utUsername = Nothing-    , _utUserCreateDate = Nothing-    , _utAttributes = Nothing-    , _utMFAOptions = Nothing-    , _utUserLastModifiedDate = Nothing-    }---- | Specifies whether the user is enabled.-utEnabled :: Lens' UserType (Maybe Bool)-utEnabled = lens _utEnabled (\ s a -> s{_utEnabled = a});---- | The user status. Can be one of the following:     * UNCONFIRMED - User has been created but not confirmed.     * CONFIRMED - User has been confirmed.     * ARCHIVED - User is no longer active.     * COMPROMISED - User is disabled due to a potential security threat.     * UNKNOWN - User status is not known.-utUserStatus :: Lens' UserType (Maybe UserStatusType)-utUserStatus = lens _utUserStatus (\ s a -> s{_utUserStatus = a});---- | The user name of the user you wish to describe.-utUsername :: Lens' UserType (Maybe Text)-utUsername = lens _utUsername (\ s a -> s{_utUsername = a}) . mapping _Sensitive;---- | The creation date of the user.-utUserCreateDate :: Lens' UserType (Maybe UTCTime)-utUserCreateDate = lens _utUserCreateDate (\ s a -> s{_utUserCreateDate = a}) . mapping _Time;---- | A container with information about the user type attributes.-utAttributes :: Lens' UserType [AttributeType]-utAttributes = lens _utAttributes (\ s a -> s{_utAttributes = a}) . _Default . _Coerce;---- | The MFA options for the user.-utMFAOptions :: Lens' UserType [MFAOptionType]-utMFAOptions = lens _utMFAOptions (\ s a -> s{_utMFAOptions = a}) . _Default . _Coerce;---- | The last modified date of the user.-utUserLastModifiedDate :: Lens' UserType (Maybe UTCTime)-utUserLastModifiedDate = lens _utUserLastModifiedDate (\ s a -> s{_utUserLastModifiedDate = a}) . mapping _Time;--instance FromJSON UserType where-        parseJSON-          = withObject "UserType"-              (\ x ->-                 UserType' <$>-                   (x .:? "Enabled") <*> (x .:? "UserStatus") <*>-                     (x .:? "Username")-                     <*> (x .:? "UserCreateDate")-                     <*> (x .:? "Attributes" .!= mempty)-                     <*> (x .:? "MFAOptions" .!= mempty)-                     <*> (x .:? "UserLastModifiedDate"))--instance Hashable UserType--instance NFData UserType+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.CognitoIdentityProvider.Types.Product where++import Network.AWS.CognitoIdentityProvider.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude++-- | The type of configuration for creating a new user profile.+--+--+--+-- /See:/ 'adminCreateUserConfigType' smart constructor.+data AdminCreateUserConfigType = AdminCreateUserConfigType'+  { _acuctAllowAdminCreateUserOnly  :: !(Maybe Bool)+  , _acuctUnusedAccountValidityDays :: !(Maybe Nat)+  , _acuctInviteMessageTemplate     :: !(Maybe MessageTemplateType)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AdminCreateUserConfigType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'acuctAllowAdminCreateUserOnly' - Set to @True@ if only the administrator is allowed to create user profiles. Set to @False@ if users can sign themselves up via an app.+--+-- * 'acuctUnusedAccountValidityDays' - The user account expiration limit, in days, after which the account is no longer usable. To reset the account after that time limit, you must call @AdminCreateUser@ again, specifying @"RESEND"@ for the @MessageAction@ parameter. The default value for this parameter is 7.+--+-- * 'acuctInviteMessageTemplate' - The message template to be used for the welcome message to new users.+adminCreateUserConfigType+    :: AdminCreateUserConfigType+adminCreateUserConfigType =+  AdminCreateUserConfigType'+  { _acuctAllowAdminCreateUserOnly = Nothing+  , _acuctUnusedAccountValidityDays = Nothing+  , _acuctInviteMessageTemplate = Nothing+  }+++-- | Set to @True@ if only the administrator is allowed to create user profiles. Set to @False@ if users can sign themselves up via an app.+acuctAllowAdminCreateUserOnly :: Lens' AdminCreateUserConfigType (Maybe Bool)+acuctAllowAdminCreateUserOnly = lens _acuctAllowAdminCreateUserOnly (\ s a -> s{_acuctAllowAdminCreateUserOnly = a});++-- | The user account expiration limit, in days, after which the account is no longer usable. To reset the account after that time limit, you must call @AdminCreateUser@ again, specifying @"RESEND"@ for the @MessageAction@ parameter. The default value for this parameter is 7.+acuctUnusedAccountValidityDays :: Lens' AdminCreateUserConfigType (Maybe Natural)+acuctUnusedAccountValidityDays = lens _acuctUnusedAccountValidityDays (\ s a -> s{_acuctUnusedAccountValidityDays = a}) . mapping _Nat;++-- | The message template to be used for the welcome message to new users.+acuctInviteMessageTemplate :: Lens' AdminCreateUserConfigType (Maybe MessageTemplateType)+acuctInviteMessageTemplate = lens _acuctInviteMessageTemplate (\ s a -> s{_acuctInviteMessageTemplate = a});++instance FromJSON AdminCreateUserConfigType where+        parseJSON+          = withObject "AdminCreateUserConfigType"+              (\ x ->+                 AdminCreateUserConfigType' <$>+                   (x .:? "AllowAdminCreateUserOnly") <*>+                     (x .:? "UnusedAccountValidityDays")+                     <*> (x .:? "InviteMessageTemplate"))++instance Hashable AdminCreateUserConfigType where++instance NFData AdminCreateUserConfigType where++instance ToJSON AdminCreateUserConfigType where+        toJSON AdminCreateUserConfigType'{..}+          = object+              (catMaybes+                 [("AllowAdminCreateUserOnly" .=) <$>+                    _acuctAllowAdminCreateUserOnly,+                  ("UnusedAccountValidityDays" .=) <$>+                    _acuctUnusedAccountValidityDays,+                  ("InviteMessageTemplate" .=) <$>+                    _acuctInviteMessageTemplate])++-- | Specifies whether the attribute is standard or custom.+--+--+--+-- /See:/ 'attributeType' smart constructor.+data AttributeType = AttributeType'+  { _atValue :: !(Maybe (Sensitive Text))+  , _atName  :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AttributeType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atValue' - The value of the attribute.+--+-- * 'atName' - The name of the attribute.+attributeType+    :: Text -- ^ 'atName'+    -> AttributeType+attributeType pName_ = AttributeType' {_atValue = Nothing, _atName = pName_}+++-- | The value of the attribute.+atValue :: Lens' AttributeType (Maybe Text)+atValue = lens _atValue (\ s a -> s{_atValue = a}) . mapping _Sensitive;++-- | The name of the attribute.+atName :: Lens' AttributeType Text+atName = lens _atName (\ s a -> s{_atName = a});++instance FromJSON AttributeType where+        parseJSON+          = withObject "AttributeType"+              (\ x ->+                 AttributeType' <$> (x .:? "Value") <*> (x .: "Name"))++instance Hashable AttributeType where++instance NFData AttributeType where++instance ToJSON AttributeType where+        toJSON AttributeType'{..}+          = object+              (catMaybes+                 [("Value" .=) <$> _atValue,+                  Just ("Name" .= _atName)])++-- | The result type of the authentication result.+--+--+--+-- /See:/ 'authenticationResultType' smart constructor.+data AuthenticationResultType = AuthenticationResultType'+  { _artAccessToken       :: !(Maybe (Sensitive Text))+  , _artRefreshToken      :: !(Maybe (Sensitive Text))+  , _artNewDeviceMetadata :: !(Maybe NewDeviceMetadataType)+  , _artExpiresIn         :: !(Maybe Int)+  , _artTokenType         :: !(Maybe Text)+  , _artIdToken           :: !(Maybe (Sensitive Text))+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AuthenticationResultType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'artAccessToken' - The access token of the authentication result.+--+-- * 'artRefreshToken' - The refresh token of the authentication result.+--+-- * 'artNewDeviceMetadata' - The new device metadata from an authentication result.+--+-- * 'artExpiresIn' - The expiration period of the authentication result.+--+-- * 'artTokenType' - The token type of the authentication result.+--+-- * 'artIdToken' - The ID token of the authentication result.+authenticationResultType+    :: AuthenticationResultType+authenticationResultType =+  AuthenticationResultType'+  { _artAccessToken = Nothing+  , _artRefreshToken = Nothing+  , _artNewDeviceMetadata = Nothing+  , _artExpiresIn = Nothing+  , _artTokenType = Nothing+  , _artIdToken = Nothing+  }+++-- | The access token of the authentication result.+artAccessToken :: Lens' AuthenticationResultType (Maybe Text)+artAccessToken = lens _artAccessToken (\ s a -> s{_artAccessToken = a}) . mapping _Sensitive;++-- | The refresh token of the authentication result.+artRefreshToken :: Lens' AuthenticationResultType (Maybe Text)+artRefreshToken = lens _artRefreshToken (\ s a -> s{_artRefreshToken = a}) . mapping _Sensitive;++-- | The new device metadata from an authentication result.+artNewDeviceMetadata :: Lens' AuthenticationResultType (Maybe NewDeviceMetadataType)+artNewDeviceMetadata = lens _artNewDeviceMetadata (\ s a -> s{_artNewDeviceMetadata = a});++-- | The expiration period of the authentication result.+artExpiresIn :: Lens' AuthenticationResultType (Maybe Int)+artExpiresIn = lens _artExpiresIn (\ s a -> s{_artExpiresIn = a});++-- | The token type of the authentication result.+artTokenType :: Lens' AuthenticationResultType (Maybe Text)+artTokenType = lens _artTokenType (\ s a -> s{_artTokenType = a});++-- | The ID token of the authentication result.+artIdToken :: Lens' AuthenticationResultType (Maybe Text)+artIdToken = lens _artIdToken (\ s a -> s{_artIdToken = a}) . mapping _Sensitive;++instance FromJSON AuthenticationResultType where+        parseJSON+          = withObject "AuthenticationResultType"+              (\ x ->+                 AuthenticationResultType' <$>+                   (x .:? "AccessToken") <*> (x .:? "RefreshToken") <*>+                     (x .:? "NewDeviceMetadata")+                     <*> (x .:? "ExpiresIn")+                     <*> (x .:? "TokenType")+                     <*> (x .:? "IdToken"))++instance Hashable AuthenticationResultType where++instance NFData AuthenticationResultType where++-- | The type of code delivery details being returned from the server.+--+--+--+-- /See:/ 'codeDeliveryDetailsType' smart constructor.+data CodeDeliveryDetailsType = CodeDeliveryDetailsType'+  { _cddtDestination    :: !(Maybe Text)+  , _cddtDeliveryMedium :: !(Maybe DeliveryMediumType)+  , _cddtAttributeName  :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CodeDeliveryDetailsType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cddtDestination' - The destination for the code delivery details.+--+-- * 'cddtDeliveryMedium' - The delivery medium (email message or phone number).+--+-- * 'cddtAttributeName' - The name of the attribute in the code delivery details type.+codeDeliveryDetailsType+    :: CodeDeliveryDetailsType+codeDeliveryDetailsType =+  CodeDeliveryDetailsType'+  { _cddtDestination = Nothing+  , _cddtDeliveryMedium = Nothing+  , _cddtAttributeName = Nothing+  }+++-- | The destination for the code delivery details.+cddtDestination :: Lens' CodeDeliveryDetailsType (Maybe Text)+cddtDestination = lens _cddtDestination (\ s a -> s{_cddtDestination = a});++-- | The delivery medium (email message or phone number).+cddtDeliveryMedium :: Lens' CodeDeliveryDetailsType (Maybe DeliveryMediumType)+cddtDeliveryMedium = lens _cddtDeliveryMedium (\ s a -> s{_cddtDeliveryMedium = a});++-- | The name of the attribute in the code delivery details type.+cddtAttributeName :: Lens' CodeDeliveryDetailsType (Maybe Text)+cddtAttributeName = lens _cddtAttributeName (\ s a -> s{_cddtAttributeName = a});++instance FromJSON CodeDeliveryDetailsType where+        parseJSON+          = withObject "CodeDeliveryDetailsType"+              (\ x ->+                 CodeDeliveryDetailsType' <$>+                   (x .:? "Destination") <*> (x .:? "DeliveryMedium")+                     <*> (x .:? "AttributeName"))++instance Hashable CodeDeliveryDetailsType where++instance NFData CodeDeliveryDetailsType where++-- | The type of configuration for the user pool's device tracking.+--+--+--+-- /See:/ 'deviceConfigurationType' smart constructor.+data DeviceConfigurationType = DeviceConfigurationType'+  { _dctChallengeRequiredOnNewDevice     :: !(Maybe Bool)+  , _dctDeviceOnlyRememberedOnUserPrompt :: !(Maybe Bool)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeviceConfigurationType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dctChallengeRequiredOnNewDevice' - Indicates whether a challenge is required on a new device. Only applicable to a new device.+--+-- * 'dctDeviceOnlyRememberedOnUserPrompt' - If true, a device is only remembered on user prompt.+deviceConfigurationType+    :: DeviceConfigurationType+deviceConfigurationType =+  DeviceConfigurationType'+  { _dctChallengeRequiredOnNewDevice = Nothing+  , _dctDeviceOnlyRememberedOnUserPrompt = Nothing+  }+++-- | Indicates whether a challenge is required on a new device. Only applicable to a new device.+dctChallengeRequiredOnNewDevice :: Lens' DeviceConfigurationType (Maybe Bool)+dctChallengeRequiredOnNewDevice = lens _dctChallengeRequiredOnNewDevice (\ s a -> s{_dctChallengeRequiredOnNewDevice = a});++-- | If true, a device is only remembered on user prompt.+dctDeviceOnlyRememberedOnUserPrompt :: Lens' DeviceConfigurationType (Maybe Bool)+dctDeviceOnlyRememberedOnUserPrompt = lens _dctDeviceOnlyRememberedOnUserPrompt (\ s a -> s{_dctDeviceOnlyRememberedOnUserPrompt = a});++instance FromJSON DeviceConfigurationType where+        parseJSON+          = withObject "DeviceConfigurationType"+              (\ x ->+                 DeviceConfigurationType' <$>+                   (x .:? "ChallengeRequiredOnNewDevice") <*>+                     (x .:? "DeviceOnlyRememberedOnUserPrompt"))++instance Hashable DeviceConfigurationType where++instance NFData DeviceConfigurationType where++instance ToJSON DeviceConfigurationType where+        toJSON DeviceConfigurationType'{..}+          = object+              (catMaybes+                 [("ChallengeRequiredOnNewDevice" .=) <$>+                    _dctChallengeRequiredOnNewDevice,+                  ("DeviceOnlyRememberedOnUserPrompt" .=) <$>+                    _dctDeviceOnlyRememberedOnUserPrompt])++-- | The device verifier against which it will be authenticated.+--+--+--+-- /See:/ 'deviceSecretVerifierConfigType' smart constructor.+data DeviceSecretVerifierConfigType = DeviceSecretVerifierConfigType'+  { _dsvctPasswordVerifier :: !(Maybe Text)+  , _dsvctSalt             :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeviceSecretVerifierConfigType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dsvctPasswordVerifier' - The password verifier.+--+-- * 'dsvctSalt' - The salt.+deviceSecretVerifierConfigType+    :: DeviceSecretVerifierConfigType+deviceSecretVerifierConfigType =+  DeviceSecretVerifierConfigType'+  {_dsvctPasswordVerifier = Nothing, _dsvctSalt = Nothing}+++-- | The password verifier.+dsvctPasswordVerifier :: Lens' DeviceSecretVerifierConfigType (Maybe Text)+dsvctPasswordVerifier = lens _dsvctPasswordVerifier (\ s a -> s{_dsvctPasswordVerifier = a});++-- | The salt.+dsvctSalt :: Lens' DeviceSecretVerifierConfigType (Maybe Text)+dsvctSalt = lens _dsvctSalt (\ s a -> s{_dsvctSalt = a});++instance Hashable DeviceSecretVerifierConfigType+         where++instance NFData DeviceSecretVerifierConfigType where++instance ToJSON DeviceSecretVerifierConfigType where+        toJSON DeviceSecretVerifierConfigType'{..}+          = object+              (catMaybes+                 [("PasswordVerifier" .=) <$> _dsvctPasswordVerifier,+                  ("Salt" .=) <$> _dsvctSalt])++-- | The device type.+--+--+--+-- /See:/ 'deviceType' smart constructor.+data DeviceType = DeviceType'+  { _dtDeviceLastModifiedDate      :: !(Maybe POSIX)+  , _dtDeviceCreateDate            :: !(Maybe POSIX)+  , _dtDeviceAttributes            :: !(Maybe [AttributeType])+  , _dtDeviceKey                   :: !(Maybe Text)+  , _dtDeviceLastAuthenticatedDate :: !(Maybe POSIX)+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeviceType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtDeviceLastModifiedDate' - The last modified date of the device.+--+-- * 'dtDeviceCreateDate' - The creation date of the device.+--+-- * 'dtDeviceAttributes' - The device attributes.+--+-- * 'dtDeviceKey' - The device key.+--+-- * 'dtDeviceLastAuthenticatedDate' - The date in which the device was last authenticated.+deviceType+    :: DeviceType+deviceType =+  DeviceType'+  { _dtDeviceLastModifiedDate = Nothing+  , _dtDeviceCreateDate = Nothing+  , _dtDeviceAttributes = Nothing+  , _dtDeviceKey = Nothing+  , _dtDeviceLastAuthenticatedDate = Nothing+  }+++-- | The last modified date of the device.+dtDeviceLastModifiedDate :: Lens' DeviceType (Maybe UTCTime)+dtDeviceLastModifiedDate = lens _dtDeviceLastModifiedDate (\ s a -> s{_dtDeviceLastModifiedDate = a}) . mapping _Time;++-- | The creation date of the device.+dtDeviceCreateDate :: Lens' DeviceType (Maybe UTCTime)+dtDeviceCreateDate = lens _dtDeviceCreateDate (\ s a -> s{_dtDeviceCreateDate = a}) . mapping _Time;++-- | The device attributes.+dtDeviceAttributes :: Lens' DeviceType [AttributeType]+dtDeviceAttributes = lens _dtDeviceAttributes (\ s a -> s{_dtDeviceAttributes = a}) . _Default . _Coerce;++-- | The device key.+dtDeviceKey :: Lens' DeviceType (Maybe Text)+dtDeviceKey = lens _dtDeviceKey (\ s a -> s{_dtDeviceKey = a});++-- | The date in which the device was last authenticated.+dtDeviceLastAuthenticatedDate :: Lens' DeviceType (Maybe UTCTime)+dtDeviceLastAuthenticatedDate = lens _dtDeviceLastAuthenticatedDate (\ s a -> s{_dtDeviceLastAuthenticatedDate = a}) . mapping _Time;++instance FromJSON DeviceType where+        parseJSON+          = withObject "DeviceType"+              (\ x ->+                 DeviceType' <$>+                   (x .:? "DeviceLastModifiedDate") <*>+                     (x .:? "DeviceCreateDate")+                     <*> (x .:? "DeviceAttributes" .!= mempty)+                     <*> (x .:? "DeviceKey")+                     <*> (x .:? "DeviceLastAuthenticatedDate"))++instance Hashable DeviceType where++instance NFData DeviceType where++-- | A container for information about a domain.+--+--+--+-- /See:/ 'domainDescriptionType' smart constructor.+data DomainDescriptionType = DomainDescriptionType'+  { _ddtStatus                 :: !(Maybe DomainStatusType)+  , _ddtCloudFrontDistribution :: !(Maybe Text)+  , _ddtUserPoolId             :: !(Maybe Text)+  , _ddtDomain                 :: !(Maybe Text)+  , _ddtAWSAccountId           :: !(Maybe Text)+  , _ddtVersion                :: !(Maybe Text)+  , _ddtS3Bucket               :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DomainDescriptionType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ddtStatus' - The domain status.+--+-- * 'ddtCloudFrontDistribution' - The ARN of the CloudFront distribution.+--+-- * 'ddtUserPoolId' - The user pool ID.+--+-- * 'ddtDomain' - The domain string.+--+-- * 'ddtAWSAccountId' - The AWS account ID for the user pool owner.+--+-- * 'ddtVersion' - The app version.+--+-- * 'ddtS3Bucket' - The S3 bucket where the static files for this domain are stored.+domainDescriptionType+    :: DomainDescriptionType+domainDescriptionType =+  DomainDescriptionType'+  { _ddtStatus = Nothing+  , _ddtCloudFrontDistribution = Nothing+  , _ddtUserPoolId = Nothing+  , _ddtDomain = Nothing+  , _ddtAWSAccountId = Nothing+  , _ddtVersion = Nothing+  , _ddtS3Bucket = Nothing+  }+++-- | The domain status.+ddtStatus :: Lens' DomainDescriptionType (Maybe DomainStatusType)+ddtStatus = lens _ddtStatus (\ s a -> s{_ddtStatus = a});++-- | The ARN of the CloudFront distribution.+ddtCloudFrontDistribution :: Lens' DomainDescriptionType (Maybe Text)+ddtCloudFrontDistribution = lens _ddtCloudFrontDistribution (\ s a -> s{_ddtCloudFrontDistribution = a});++-- | The user pool ID.+ddtUserPoolId :: Lens' DomainDescriptionType (Maybe Text)+ddtUserPoolId = lens _ddtUserPoolId (\ s a -> s{_ddtUserPoolId = a});++-- | The domain string.+ddtDomain :: Lens' DomainDescriptionType (Maybe Text)+ddtDomain = lens _ddtDomain (\ s a -> s{_ddtDomain = a});++-- | The AWS account ID for the user pool owner.+ddtAWSAccountId :: Lens' DomainDescriptionType (Maybe Text)+ddtAWSAccountId = lens _ddtAWSAccountId (\ s a -> s{_ddtAWSAccountId = a});++-- | The app version.+ddtVersion :: Lens' DomainDescriptionType (Maybe Text)+ddtVersion = lens _ddtVersion (\ s a -> s{_ddtVersion = a});++-- | The S3 bucket where the static files for this domain are stored.+ddtS3Bucket :: Lens' DomainDescriptionType (Maybe Text)+ddtS3Bucket = lens _ddtS3Bucket (\ s a -> s{_ddtS3Bucket = a});++instance FromJSON DomainDescriptionType where+        parseJSON+          = withObject "DomainDescriptionType"+              (\ x ->+                 DomainDescriptionType' <$>+                   (x .:? "Status") <*> (x .:? "CloudFrontDistribution")+                     <*> (x .:? "UserPoolId")+                     <*> (x .:? "Domain")+                     <*> (x .:? "AWSAccountId")+                     <*> (x .:? "Version")+                     <*> (x .:? "S3Bucket"))++instance Hashable DomainDescriptionType where++instance NFData DomainDescriptionType where++-- | The email configuration type.+--+--+--+-- /See:/ 'emailConfigurationType' smart constructor.+data EmailConfigurationType = EmailConfigurationType'+  { _ectSourceARN           :: !(Maybe Text)+  , _ectReplyToEmailAddress :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'EmailConfigurationType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ectSourceARN' - The Amazon Resource Name (ARN) of the email source.+--+-- * 'ectReplyToEmailAddress' - The REPLY-TO email address.+emailConfigurationType+    :: EmailConfigurationType+emailConfigurationType =+  EmailConfigurationType'+  {_ectSourceARN = Nothing, _ectReplyToEmailAddress = Nothing}+++-- | The Amazon Resource Name (ARN) of the email source.+ectSourceARN :: Lens' EmailConfigurationType (Maybe Text)+ectSourceARN = lens _ectSourceARN (\ s a -> s{_ectSourceARN = a});++-- | The REPLY-TO email address.+ectReplyToEmailAddress :: Lens' EmailConfigurationType (Maybe Text)+ectReplyToEmailAddress = lens _ectReplyToEmailAddress (\ s a -> s{_ectReplyToEmailAddress = a});++instance FromJSON EmailConfigurationType where+        parseJSON+          = withObject "EmailConfigurationType"+              (\ x ->+                 EmailConfigurationType' <$>+                   (x .:? "SourceArn") <*>+                     (x .:? "ReplyToEmailAddress"))++instance Hashable EmailConfigurationType where++instance NFData EmailConfigurationType where++instance ToJSON EmailConfigurationType where+        toJSON EmailConfigurationType'{..}+          = object+              (catMaybes+                 [("SourceArn" .=) <$> _ectSourceARN,+                  ("ReplyToEmailAddress" .=) <$>+                    _ectReplyToEmailAddress])++-- | The group type.+--+--+--+-- /See:/ 'groupType' smart constructor.+data GroupType = GroupType'+  { _gtLastModifiedDate :: !(Maybe POSIX)+  , _gtUserPoolId       :: !(Maybe Text)+  , _gtCreationDate     :: !(Maybe POSIX)+  , _gtPrecedence       :: !(Maybe Nat)+  , _gtGroupName        :: !(Maybe Text)+  , _gtDescription      :: !(Maybe Text)+  , _gtRoleARN          :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GroupType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gtLastModifiedDate' - The date the group was last modified.+--+-- * 'gtUserPoolId' - The user pool ID for the user pool.+--+-- * 'gtCreationDate' - The date the group was created.+--+-- * 'gtPrecedence' - A nonnegative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. If a user belongs to two or more groups, it is the group with the highest precedence whose role ARN will be used in the @cognito:roles@ and @cognito:preferred_role@ claims in the user's tokens. Groups with higher @Precedence@ values take precedence over groups with lower @Precedence@ values or with null @Precedence@ values. Two groups can have the same @Precedence@ value. If this happens, neither group takes precedence over the other. If two groups with the same @Precedence@ have the same role ARN, that role is used in the @cognito:preferred_role@ claim in tokens for users in each group. If the two groups have different role ARNs, the @cognito:preferred_role@ claim is not set in users' tokens. The default @Precedence@ value is null.+--+-- * 'gtGroupName' - The name of the group.+--+-- * 'gtDescription' - A string containing the description of the group.+--+-- * 'gtRoleARN' - The role ARN for the group.+groupType+    :: GroupType+groupType =+  GroupType'+  { _gtLastModifiedDate = Nothing+  , _gtUserPoolId = Nothing+  , _gtCreationDate = Nothing+  , _gtPrecedence = Nothing+  , _gtGroupName = Nothing+  , _gtDescription = Nothing+  , _gtRoleARN = Nothing+  }+++-- | The date the group was last modified.+gtLastModifiedDate :: Lens' GroupType (Maybe UTCTime)+gtLastModifiedDate = lens _gtLastModifiedDate (\ s a -> s{_gtLastModifiedDate = a}) . mapping _Time;++-- | The user pool ID for the user pool.+gtUserPoolId :: Lens' GroupType (Maybe Text)+gtUserPoolId = lens _gtUserPoolId (\ s a -> s{_gtUserPoolId = a});++-- | The date the group was created.+gtCreationDate :: Lens' GroupType (Maybe UTCTime)+gtCreationDate = lens _gtCreationDate (\ s a -> s{_gtCreationDate = a}) . mapping _Time;++-- | A nonnegative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. If a user belongs to two or more groups, it is the group with the highest precedence whose role ARN will be used in the @cognito:roles@ and @cognito:preferred_role@ claims in the user's tokens. Groups with higher @Precedence@ values take precedence over groups with lower @Precedence@ values or with null @Precedence@ values. Two groups can have the same @Precedence@ value. If this happens, neither group takes precedence over the other. If two groups with the same @Precedence@ have the same role ARN, that role is used in the @cognito:preferred_role@ claim in tokens for users in each group. If the two groups have different role ARNs, the @cognito:preferred_role@ claim is not set in users' tokens. The default @Precedence@ value is null.+gtPrecedence :: Lens' GroupType (Maybe Natural)+gtPrecedence = lens _gtPrecedence (\ s a -> s{_gtPrecedence = a}) . mapping _Nat;++-- | The name of the group.+gtGroupName :: Lens' GroupType (Maybe Text)+gtGroupName = lens _gtGroupName (\ s a -> s{_gtGroupName = a});++-- | A string containing the description of the group.+gtDescription :: Lens' GroupType (Maybe Text)+gtDescription = lens _gtDescription (\ s a -> s{_gtDescription = a});++-- | The role ARN for the group.+gtRoleARN :: Lens' GroupType (Maybe Text)+gtRoleARN = lens _gtRoleARN (\ s a -> s{_gtRoleARN = a});++instance FromJSON GroupType where+        parseJSON+          = withObject "GroupType"+              (\ x ->+                 GroupType' <$>+                   (x .:? "LastModifiedDate") <*> (x .:? "UserPoolId")+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "Precedence")+                     <*> (x .:? "GroupName")+                     <*> (x .:? "Description")+                     <*> (x .:? "RoleArn"))++instance Hashable GroupType where++instance NFData GroupType where++-- | A container for information about an identity provider.+--+--+--+-- /See:/ 'identityProviderType' smart constructor.+data IdentityProviderType = IdentityProviderType'+  { _iptLastModifiedDate :: !(Maybe POSIX)+  , _iptUserPoolId       :: !(Maybe Text)+  , _iptProviderType     :: !(Maybe IdentityProviderTypeType)+  , _iptCreationDate     :: !(Maybe POSIX)+  , _iptIdpIdentifiers   :: !(Maybe [Text])+  , _iptAttributeMapping :: !(Maybe (Map Text Text))+  , _iptProviderDetails  :: !(Maybe (Map Text Text))+  , _iptProviderName     :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'IdentityProviderType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'iptLastModifiedDate' - The date the identity provider was last modified.+--+-- * 'iptUserPoolId' - The user pool ID.+--+-- * 'iptProviderType' - The identity provider type.+--+-- * 'iptCreationDate' - The date the identity provider was created.+--+-- * 'iptIdpIdentifiers' - A list of identity provider identifiers.+--+-- * 'iptAttributeMapping' - A mapping of identity provider attributes to standard and custom user pool attributes.+--+-- * 'iptProviderDetails' - The identity provider details, such as @MetadataURL@ and @MetadataFile@ .+--+-- * 'iptProviderName' - The identity provider name.+identityProviderType+    :: IdentityProviderType+identityProviderType =+  IdentityProviderType'+  { _iptLastModifiedDate = Nothing+  , _iptUserPoolId = Nothing+  , _iptProviderType = Nothing+  , _iptCreationDate = Nothing+  , _iptIdpIdentifiers = Nothing+  , _iptAttributeMapping = Nothing+  , _iptProviderDetails = Nothing+  , _iptProviderName = Nothing+  }+++-- | The date the identity provider was last modified.+iptLastModifiedDate :: Lens' IdentityProviderType (Maybe UTCTime)+iptLastModifiedDate = lens _iptLastModifiedDate (\ s a -> s{_iptLastModifiedDate = a}) . mapping _Time;++-- | The user pool ID.+iptUserPoolId :: Lens' IdentityProviderType (Maybe Text)+iptUserPoolId = lens _iptUserPoolId (\ s a -> s{_iptUserPoolId = a});++-- | The identity provider type.+iptProviderType :: Lens' IdentityProviderType (Maybe IdentityProviderTypeType)+iptProviderType = lens _iptProviderType (\ s a -> s{_iptProviderType = a});++-- | The date the identity provider was created.+iptCreationDate :: Lens' IdentityProviderType (Maybe UTCTime)+iptCreationDate = lens _iptCreationDate (\ s a -> s{_iptCreationDate = a}) . mapping _Time;++-- | A list of identity provider identifiers.+iptIdpIdentifiers :: Lens' IdentityProviderType [Text]+iptIdpIdentifiers = lens _iptIdpIdentifiers (\ s a -> s{_iptIdpIdentifiers = a}) . _Default . _Coerce;++-- | A mapping of identity provider attributes to standard and custom user pool attributes.+iptAttributeMapping :: Lens' IdentityProviderType (HashMap Text Text)+iptAttributeMapping = lens _iptAttributeMapping (\ s a -> s{_iptAttributeMapping = a}) . _Default . _Map;++-- | The identity provider details, such as @MetadataURL@ and @MetadataFile@ .+iptProviderDetails :: Lens' IdentityProviderType (HashMap Text Text)+iptProviderDetails = lens _iptProviderDetails (\ s a -> s{_iptProviderDetails = a}) . _Default . _Map;++-- | The identity provider name.+iptProviderName :: Lens' IdentityProviderType (Maybe Text)+iptProviderName = lens _iptProviderName (\ s a -> s{_iptProviderName = a});++instance FromJSON IdentityProviderType where+        parseJSON+          = withObject "IdentityProviderType"+              (\ x ->+                 IdentityProviderType' <$>+                   (x .:? "LastModifiedDate") <*> (x .:? "UserPoolId")+                     <*> (x .:? "ProviderType")+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "IdpIdentifiers" .!= mempty)+                     <*> (x .:? "AttributeMapping" .!= mempty)+                     <*> (x .:? "ProviderDetails" .!= mempty)+                     <*> (x .:? "ProviderName"))++instance Hashable IdentityProviderType where++instance NFData IdentityProviderType where++-- | Specifies the type of configuration for AWS Lambda triggers.+--+--+--+-- /See:/ 'lambdaConfigType' smart constructor.+data LambdaConfigType = LambdaConfigType'+  { _lctPreAuthentication           :: !(Maybe Text)+  , _lctCreateAuthChallenge         :: !(Maybe Text)+  , _lctVerifyAuthChallengeResponse :: !(Maybe Text)+  , _lctPostAuthentication          :: !(Maybe Text)+  , _lctCustomMessage               :: !(Maybe Text)+  , _lctDefineAuthChallenge         :: !(Maybe Text)+  , _lctPostConfirmation            :: !(Maybe Text)+  , _lctPreSignUp                   :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'LambdaConfigType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lctPreAuthentication' - A pre-authentication AWS Lambda trigger.+--+-- * 'lctCreateAuthChallenge' - Creates an authentication challenge.+--+-- * 'lctVerifyAuthChallengeResponse' - Verifies the authentication challenge response.+--+-- * 'lctPostAuthentication' - A post-authentication AWS Lambda trigger.+--+-- * 'lctCustomMessage' - A custom Message AWS Lambda trigger.+--+-- * 'lctDefineAuthChallenge' - Defines the authentication challenge.+--+-- * 'lctPostConfirmation' - A post-confirmation AWS Lambda trigger.+--+-- * 'lctPreSignUp' - A pre-registration AWS Lambda trigger.+lambdaConfigType+    :: LambdaConfigType+lambdaConfigType =+  LambdaConfigType'+  { _lctPreAuthentication = Nothing+  , _lctCreateAuthChallenge = Nothing+  , _lctVerifyAuthChallengeResponse = Nothing+  , _lctPostAuthentication = Nothing+  , _lctCustomMessage = Nothing+  , _lctDefineAuthChallenge = Nothing+  , _lctPostConfirmation = Nothing+  , _lctPreSignUp = Nothing+  }+++-- | A pre-authentication AWS Lambda trigger.+lctPreAuthentication :: Lens' LambdaConfigType (Maybe Text)+lctPreAuthentication = lens _lctPreAuthentication (\ s a -> s{_lctPreAuthentication = a});++-- | Creates an authentication challenge.+lctCreateAuthChallenge :: Lens' LambdaConfigType (Maybe Text)+lctCreateAuthChallenge = lens _lctCreateAuthChallenge (\ s a -> s{_lctCreateAuthChallenge = a});++-- | Verifies the authentication challenge response.+lctVerifyAuthChallengeResponse :: Lens' LambdaConfigType (Maybe Text)+lctVerifyAuthChallengeResponse = lens _lctVerifyAuthChallengeResponse (\ s a -> s{_lctVerifyAuthChallengeResponse = a});++-- | A post-authentication AWS Lambda trigger.+lctPostAuthentication :: Lens' LambdaConfigType (Maybe Text)+lctPostAuthentication = lens _lctPostAuthentication (\ s a -> s{_lctPostAuthentication = a});++-- | A custom Message AWS Lambda trigger.+lctCustomMessage :: Lens' LambdaConfigType (Maybe Text)+lctCustomMessage = lens _lctCustomMessage (\ s a -> s{_lctCustomMessage = a});++-- | Defines the authentication challenge.+lctDefineAuthChallenge :: Lens' LambdaConfigType (Maybe Text)+lctDefineAuthChallenge = lens _lctDefineAuthChallenge (\ s a -> s{_lctDefineAuthChallenge = a});++-- | A post-confirmation AWS Lambda trigger.+lctPostConfirmation :: Lens' LambdaConfigType (Maybe Text)+lctPostConfirmation = lens _lctPostConfirmation (\ s a -> s{_lctPostConfirmation = a});++-- | A pre-registration AWS Lambda trigger.+lctPreSignUp :: Lens' LambdaConfigType (Maybe Text)+lctPreSignUp = lens _lctPreSignUp (\ s a -> s{_lctPreSignUp = a});++instance FromJSON LambdaConfigType where+        parseJSON+          = withObject "LambdaConfigType"+              (\ x ->+                 LambdaConfigType' <$>+                   (x .:? "PreAuthentication") <*>+                     (x .:? "CreateAuthChallenge")+                     <*> (x .:? "VerifyAuthChallengeResponse")+                     <*> (x .:? "PostAuthentication")+                     <*> (x .:? "CustomMessage")+                     <*> (x .:? "DefineAuthChallenge")+                     <*> (x .:? "PostConfirmation")+                     <*> (x .:? "PreSignUp"))++instance Hashable LambdaConfigType where++instance NFData LambdaConfigType where++instance ToJSON LambdaConfigType where+        toJSON LambdaConfigType'{..}+          = object+              (catMaybes+                 [("PreAuthentication" .=) <$> _lctPreAuthentication,+                  ("CreateAuthChallenge" .=) <$>+                    _lctCreateAuthChallenge,+                  ("VerifyAuthChallengeResponse" .=) <$>+                    _lctVerifyAuthChallengeResponse,+                  ("PostAuthentication" .=) <$> _lctPostAuthentication,+                  ("CustomMessage" .=) <$> _lctCustomMessage,+                  ("DefineAuthChallenge" .=) <$>+                    _lctDefineAuthChallenge,+                  ("PostConfirmation" .=) <$> _lctPostConfirmation,+                  ("PreSignUp" .=) <$> _lctPreSignUp])++-- | Specifies the different settings for multi-factor authentication (MFA).+--+--+--+-- /See:/ 'mfaOptionType' smart constructor.+data MFAOptionType = MFAOptionType'+  { _motDeliveryMedium :: !(Maybe DeliveryMediumType)+  , _motAttributeName  :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MFAOptionType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'motDeliveryMedium' - The delivery medium (email message or SMS message) to send the MFA code.+--+-- * 'motAttributeName' - The attribute name of the MFA option type.+mfaOptionType+    :: MFAOptionType+mfaOptionType =+  MFAOptionType' {_motDeliveryMedium = Nothing, _motAttributeName = Nothing}+++-- | The delivery medium (email message or SMS message) to send the MFA code.+motDeliveryMedium :: Lens' MFAOptionType (Maybe DeliveryMediumType)+motDeliveryMedium = lens _motDeliveryMedium (\ s a -> s{_motDeliveryMedium = a});++-- | The attribute name of the MFA option type.+motAttributeName :: Lens' MFAOptionType (Maybe Text)+motAttributeName = lens _motAttributeName (\ s a -> s{_motAttributeName = a});++instance FromJSON MFAOptionType where+        parseJSON+          = withObject "MFAOptionType"+              (\ x ->+                 MFAOptionType' <$>+                   (x .:? "DeliveryMedium") <*> (x .:? "AttributeName"))++instance Hashable MFAOptionType where++instance NFData MFAOptionType where++instance ToJSON MFAOptionType where+        toJSON MFAOptionType'{..}+          = object+              (catMaybes+                 [("DeliveryMedium" .=) <$> _motDeliveryMedium,+                  ("AttributeName" .=) <$> _motAttributeName])++-- | The message template structure.+--+--+--+-- /See:/ 'messageTemplateType' smart constructor.+data MessageTemplateType = MessageTemplateType'+  { _mttEmailSubject :: !(Maybe Text)+  , _mttSMSMessage   :: !(Maybe Text)+  , _mttEmailMessage :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MessageTemplateType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mttEmailSubject' - The subject line for email messages.+--+-- * 'mttSMSMessage' - The message template for SMS messages.+--+-- * 'mttEmailMessage' - The message template for email messages.+messageTemplateType+    :: MessageTemplateType+messageTemplateType =+  MessageTemplateType'+  { _mttEmailSubject = Nothing+  , _mttSMSMessage = Nothing+  , _mttEmailMessage = Nothing+  }+++-- | The subject line for email messages.+mttEmailSubject :: Lens' MessageTemplateType (Maybe Text)+mttEmailSubject = lens _mttEmailSubject (\ s a -> s{_mttEmailSubject = a});++-- | The message template for SMS messages.+mttSMSMessage :: Lens' MessageTemplateType (Maybe Text)+mttSMSMessage = lens _mttSMSMessage (\ s a -> s{_mttSMSMessage = a});++-- | The message template for email messages.+mttEmailMessage :: Lens' MessageTemplateType (Maybe Text)+mttEmailMessage = lens _mttEmailMessage (\ s a -> s{_mttEmailMessage = a});++instance FromJSON MessageTemplateType where+        parseJSON+          = withObject "MessageTemplateType"+              (\ x ->+                 MessageTemplateType' <$>+                   (x .:? "EmailSubject") <*> (x .:? "SMSMessage") <*>+                     (x .:? "EmailMessage"))++instance Hashable MessageTemplateType where++instance NFData MessageTemplateType where++instance ToJSON MessageTemplateType where+        toJSON MessageTemplateType'{..}+          = object+              (catMaybes+                 [("EmailSubject" .=) <$> _mttEmailSubject,+                  ("SMSMessage" .=) <$> _mttSMSMessage,+                  ("EmailMessage" .=) <$> _mttEmailMessage])++-- | The new device metadata type.+--+--+--+-- /See:/ 'newDeviceMetadataType' smart constructor.+data NewDeviceMetadataType = NewDeviceMetadataType'+  { _ndmtDeviceGroupKey :: !(Maybe Text)+  , _ndmtDeviceKey      :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NewDeviceMetadataType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ndmtDeviceGroupKey' - The device group key.+--+-- * 'ndmtDeviceKey' - The device key.+newDeviceMetadataType+    :: NewDeviceMetadataType+newDeviceMetadataType =+  NewDeviceMetadataType'+  {_ndmtDeviceGroupKey = Nothing, _ndmtDeviceKey = Nothing}+++-- | The device group key.+ndmtDeviceGroupKey :: Lens' NewDeviceMetadataType (Maybe Text)+ndmtDeviceGroupKey = lens _ndmtDeviceGroupKey (\ s a -> s{_ndmtDeviceGroupKey = a});++-- | The device key.+ndmtDeviceKey :: Lens' NewDeviceMetadataType (Maybe Text)+ndmtDeviceKey = lens _ndmtDeviceKey (\ s a -> s{_ndmtDeviceKey = a});++instance FromJSON NewDeviceMetadataType where+        parseJSON+          = withObject "NewDeviceMetadataType"+              (\ x ->+                 NewDeviceMetadataType' <$>+                   (x .:? "DeviceGroupKey") <*> (x .:? "DeviceKey"))++instance Hashable NewDeviceMetadataType where++instance NFData NewDeviceMetadataType where++-- | The minimum and maximum value of an attribute that is of the number data type.+--+--+--+-- /See:/ 'numberAttributeConstraintsType' smart constructor.+data NumberAttributeConstraintsType = NumberAttributeConstraintsType'+  { _nactMaxValue :: !(Maybe Text)+  , _nactMinValue :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NumberAttributeConstraintsType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'nactMaxValue' - The maximum value of an attribute that is of the number data type.+--+-- * 'nactMinValue' - The minimum value of an attribute that is of the number data type.+numberAttributeConstraintsType+    :: NumberAttributeConstraintsType+numberAttributeConstraintsType =+  NumberAttributeConstraintsType'+  {_nactMaxValue = Nothing, _nactMinValue = Nothing}+++-- | The maximum value of an attribute that is of the number data type.+nactMaxValue :: Lens' NumberAttributeConstraintsType (Maybe Text)+nactMaxValue = lens _nactMaxValue (\ s a -> s{_nactMaxValue = a});++-- | The minimum value of an attribute that is of the number data type.+nactMinValue :: Lens' NumberAttributeConstraintsType (Maybe Text)+nactMinValue = lens _nactMinValue (\ s a -> s{_nactMinValue = a});++instance FromJSON NumberAttributeConstraintsType+         where+        parseJSON+          = withObject "NumberAttributeConstraintsType"+              (\ x ->+                 NumberAttributeConstraintsType' <$>+                   (x .:? "MaxValue") <*> (x .:? "MinValue"))++instance Hashable NumberAttributeConstraintsType+         where++instance NFData NumberAttributeConstraintsType where++instance ToJSON NumberAttributeConstraintsType where+        toJSON NumberAttributeConstraintsType'{..}+          = object+              (catMaybes+                 [("MaxValue" .=) <$> _nactMaxValue,+                  ("MinValue" .=) <$> _nactMinValue])++-- | The password policy type.+--+--+--+-- /See:/ 'passwordPolicyType' smart constructor.+data PasswordPolicyType = PasswordPolicyType'+  { _pptRequireNumbers   :: !(Maybe Bool)+  , _pptRequireUppercase :: !(Maybe Bool)+  , _pptRequireLowercase :: !(Maybe Bool)+  , _pptMinimumLength    :: !(Maybe Nat)+  , _pptRequireSymbols   :: !(Maybe Bool)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PasswordPolicyType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pptRequireNumbers' - In the password policy that you have set, refers to whether you have required users to use at least one number in their password.+--+-- * 'pptRequireUppercase' - In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.+--+-- * 'pptRequireLowercase' - In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.+--+-- * 'pptMinimumLength' - The minimum length of the password policy that you have set. Cannot be less than 6.+--+-- * 'pptRequireSymbols' - In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.+passwordPolicyType+    :: PasswordPolicyType+passwordPolicyType =+  PasswordPolicyType'+  { _pptRequireNumbers = Nothing+  , _pptRequireUppercase = Nothing+  , _pptRequireLowercase = Nothing+  , _pptMinimumLength = Nothing+  , _pptRequireSymbols = Nothing+  }+++-- | In the password policy that you have set, refers to whether you have required users to use at least one number in their password.+pptRequireNumbers :: Lens' PasswordPolicyType (Maybe Bool)+pptRequireNumbers = lens _pptRequireNumbers (\ s a -> s{_pptRequireNumbers = a});++-- | In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.+pptRequireUppercase :: Lens' PasswordPolicyType (Maybe Bool)+pptRequireUppercase = lens _pptRequireUppercase (\ s a -> s{_pptRequireUppercase = a});++-- | In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.+pptRequireLowercase :: Lens' PasswordPolicyType (Maybe Bool)+pptRequireLowercase = lens _pptRequireLowercase (\ s a -> s{_pptRequireLowercase = a});++-- | The minimum length of the password policy that you have set. Cannot be less than 6.+pptMinimumLength :: Lens' PasswordPolicyType (Maybe Natural)+pptMinimumLength = lens _pptMinimumLength (\ s a -> s{_pptMinimumLength = a}) . mapping _Nat;++-- | In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.+pptRequireSymbols :: Lens' PasswordPolicyType (Maybe Bool)+pptRequireSymbols = lens _pptRequireSymbols (\ s a -> s{_pptRequireSymbols = a});++instance FromJSON PasswordPolicyType where+        parseJSON+          = withObject "PasswordPolicyType"+              (\ x ->+                 PasswordPolicyType' <$>+                   (x .:? "RequireNumbers") <*>+                     (x .:? "RequireUppercase")+                     <*> (x .:? "RequireLowercase")+                     <*> (x .:? "MinimumLength")+                     <*> (x .:? "RequireSymbols"))++instance Hashable PasswordPolicyType where++instance NFData PasswordPolicyType where++instance ToJSON PasswordPolicyType where+        toJSON PasswordPolicyType'{..}+          = object+              (catMaybes+                 [("RequireNumbers" .=) <$> _pptRequireNumbers,+                  ("RequireUppercase" .=) <$> _pptRequireUppercase,+                  ("RequireLowercase" .=) <$> _pptRequireLowercase,+                  ("MinimumLength" .=) <$> _pptMinimumLength,+                  ("RequireSymbols" .=) <$> _pptRequireSymbols])++-- | A container for identity provider details.+--+--+--+-- /See:/ 'providerDescription' smart constructor.+data ProviderDescription = ProviderDescription'+  { _pdLastModifiedDate :: !(Maybe POSIX)+  , _pdProviderType     :: !(Maybe IdentityProviderTypeType)+  , _pdCreationDate     :: !(Maybe POSIX)+  , _pdProviderName     :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ProviderDescription' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pdLastModifiedDate' - The date the provider was last modified.+--+-- * 'pdProviderType' - The identity provider type.+--+-- * 'pdCreationDate' - The date the provider was added to the user pool.+--+-- * 'pdProviderName' - The identity provider name.+providerDescription+    :: ProviderDescription+providerDescription =+  ProviderDescription'+  { _pdLastModifiedDate = Nothing+  , _pdProviderType = Nothing+  , _pdCreationDate = Nothing+  , _pdProviderName = Nothing+  }+++-- | The date the provider was last modified.+pdLastModifiedDate :: Lens' ProviderDescription (Maybe UTCTime)+pdLastModifiedDate = lens _pdLastModifiedDate (\ s a -> s{_pdLastModifiedDate = a}) . mapping _Time;++-- | The identity provider type.+pdProviderType :: Lens' ProviderDescription (Maybe IdentityProviderTypeType)+pdProviderType = lens _pdProviderType (\ s a -> s{_pdProviderType = a});++-- | The date the provider was added to the user pool.+pdCreationDate :: Lens' ProviderDescription (Maybe UTCTime)+pdCreationDate = lens _pdCreationDate (\ s a -> s{_pdCreationDate = a}) . mapping _Time;++-- | The identity provider name.+pdProviderName :: Lens' ProviderDescription (Maybe Text)+pdProviderName = lens _pdProviderName (\ s a -> s{_pdProviderName = a});++instance FromJSON ProviderDescription where+        parseJSON+          = withObject "ProviderDescription"+              (\ x ->+                 ProviderDescription' <$>+                   (x .:? "LastModifiedDate") <*> (x .:? "ProviderType")+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "ProviderName"))++instance Hashable ProviderDescription where++instance NFData ProviderDescription where++-- | A container for information about an identity provider for a user pool.+--+--+--+-- /See:/ 'providerUserIdentifierType' smart constructor.+data ProviderUserIdentifierType = ProviderUserIdentifierType'+  { _puitProviderAttributeValue :: !(Maybe Text)+  , _puitProviderAttributeName  :: !(Maybe Text)+  , _puitProviderName           :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ProviderUserIdentifierType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'puitProviderAttributeValue' - The value of the provider attribute to link to, for example, @xxxxx_account@ .+--+-- * 'puitProviderAttributeName' - The name of the provider attribute to link to, for example, @NameID@ .+--+-- * 'puitProviderName' - The name of the provider, for example, Facebook, Google, or Login with Amazon.+providerUserIdentifierType+    :: ProviderUserIdentifierType+providerUserIdentifierType =+  ProviderUserIdentifierType'+  { _puitProviderAttributeValue = Nothing+  , _puitProviderAttributeName = Nothing+  , _puitProviderName = Nothing+  }+++-- | The value of the provider attribute to link to, for example, @xxxxx_account@ .+puitProviderAttributeValue :: Lens' ProviderUserIdentifierType (Maybe Text)+puitProviderAttributeValue = lens _puitProviderAttributeValue (\ s a -> s{_puitProviderAttributeValue = a});++-- | The name of the provider attribute to link to, for example, @NameID@ .+puitProviderAttributeName :: Lens' ProviderUserIdentifierType (Maybe Text)+puitProviderAttributeName = lens _puitProviderAttributeName (\ s a -> s{_puitProviderAttributeName = a});++-- | The name of the provider, for example, Facebook, Google, or Login with Amazon.+puitProviderName :: Lens' ProviderUserIdentifierType (Maybe Text)+puitProviderName = lens _puitProviderName (\ s a -> s{_puitProviderName = a});++instance Hashable ProviderUserIdentifierType where++instance NFData ProviderUserIdentifierType where++instance ToJSON ProviderUserIdentifierType where+        toJSON ProviderUserIdentifierType'{..}+          = object+              (catMaybes+                 [("ProviderAttributeValue" .=) <$>+                    _puitProviderAttributeValue,+                  ("ProviderAttributeName" .=) <$>+                    _puitProviderAttributeName,+                  ("ProviderName" .=) <$> _puitProviderName])++-- | A resource server scope.+--+--+--+-- /See:/ 'resourceServerScopeType' smart constructor.+data ResourceServerScopeType = ResourceServerScopeType'+  { _rsstScopeName        :: !Text+  , _rsstScopeDescription :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ResourceServerScopeType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rsstScopeName' - The name of the scope.+--+-- * 'rsstScopeDescription' - A description of the scope.+resourceServerScopeType+    :: Text -- ^ 'rsstScopeName'+    -> Text -- ^ 'rsstScopeDescription'+    -> ResourceServerScopeType+resourceServerScopeType pScopeName_ pScopeDescription_ =+  ResourceServerScopeType'+  {_rsstScopeName = pScopeName_, _rsstScopeDescription = pScopeDescription_}+++-- | The name of the scope.+rsstScopeName :: Lens' ResourceServerScopeType Text+rsstScopeName = lens _rsstScopeName (\ s a -> s{_rsstScopeName = a});++-- | A description of the scope.+rsstScopeDescription :: Lens' ResourceServerScopeType Text+rsstScopeDescription = lens _rsstScopeDescription (\ s a -> s{_rsstScopeDescription = a});++instance FromJSON ResourceServerScopeType where+        parseJSON+          = withObject "ResourceServerScopeType"+              (\ x ->+                 ResourceServerScopeType' <$>+                   (x .: "ScopeName") <*> (x .: "ScopeDescription"))++instance Hashable ResourceServerScopeType where++instance NFData ResourceServerScopeType where++instance ToJSON ResourceServerScopeType where+        toJSON ResourceServerScopeType'{..}+          = object+              (catMaybes+                 [Just ("ScopeName" .= _rsstScopeName),+                  Just ("ScopeDescription" .= _rsstScopeDescription)])++-- | A container for information about a resource server for a user pool.+--+--+--+-- /See:/ 'resourceServerType' smart constructor.+data ResourceServerType = ResourceServerType'+  { _rstUserPoolId :: !(Maybe Text)+  , _rstIdentifier :: !(Maybe Text)+  , _rstScopes     :: !(Maybe [ResourceServerScopeType])+  , _rstName       :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ResourceServerType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rstUserPoolId' - The user pool ID for the user pool that hosts the resource server.+--+-- * 'rstIdentifier' - The identifier for the resource server.+--+-- * 'rstScopes' - A list of scopes that are defined for the resource server.+--+-- * 'rstName' - The name of the resource server.+resourceServerType+    :: ResourceServerType+resourceServerType =+  ResourceServerType'+  { _rstUserPoolId = Nothing+  , _rstIdentifier = Nothing+  , _rstScopes = Nothing+  , _rstName = Nothing+  }+++-- | The user pool ID for the user pool that hosts the resource server.+rstUserPoolId :: Lens' ResourceServerType (Maybe Text)+rstUserPoolId = lens _rstUserPoolId (\ s a -> s{_rstUserPoolId = a});++-- | The identifier for the resource server.+rstIdentifier :: Lens' ResourceServerType (Maybe Text)+rstIdentifier = lens _rstIdentifier (\ s a -> s{_rstIdentifier = a});++-- | A list of scopes that are defined for the resource server.+rstScopes :: Lens' ResourceServerType [ResourceServerScopeType]+rstScopes = lens _rstScopes (\ s a -> s{_rstScopes = a}) . _Default . _Coerce;++-- | The name of the resource server.+rstName :: Lens' ResourceServerType (Maybe Text)+rstName = lens _rstName (\ s a -> s{_rstName = a});++instance FromJSON ResourceServerType where+        parseJSON+          = withObject "ResourceServerType"+              (\ x ->+                 ResourceServerType' <$>+                   (x .:? "UserPoolId") <*> (x .:? "Identifier") <*>+                     (x .:? "Scopes" .!= mempty)+                     <*> (x .:? "Name"))++instance Hashable ResourceServerType where++instance NFData ResourceServerType where++-- | Contains information about the schema attribute.+--+--+--+-- /See:/ 'schemaAttributeType' smart constructor.+data SchemaAttributeType = SchemaAttributeType'+  { _satNumberAttributeConstraints :: !(Maybe NumberAttributeConstraintsType)+  , _satRequired                   :: !(Maybe Bool)+  , _satAttributeDataType          :: !(Maybe AttributeDataType)+  , _satStringAttributeConstraints :: !(Maybe StringAttributeConstraintsType)+  , _satName                       :: !(Maybe Text)+  , _satDeveloperOnlyAttribute     :: !(Maybe Bool)+  , _satMutable                    :: !(Maybe Bool)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SchemaAttributeType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'satNumberAttributeConstraints' - Specifies the constraints for an attribute of the number type.+--+-- * 'satRequired' - Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.+--+-- * 'satAttributeDataType' - The attribute data type.+--+-- * 'satStringAttributeConstraints' - Specifies the constraints for an attribute of the string type.+--+-- * 'satName' - A schema attribute of the name type.+--+-- * 'satDeveloperOnlyAttribute' - Specifies whether the attribute type is developer only.+--+-- * 'satMutable' - Specifies whether the attribute can be changed once it has been created.+schemaAttributeType+    :: SchemaAttributeType+schemaAttributeType =+  SchemaAttributeType'+  { _satNumberAttributeConstraints = Nothing+  , _satRequired = Nothing+  , _satAttributeDataType = Nothing+  , _satStringAttributeConstraints = Nothing+  , _satName = Nothing+  , _satDeveloperOnlyAttribute = Nothing+  , _satMutable = Nothing+  }+++-- | Specifies the constraints for an attribute of the number type.+satNumberAttributeConstraints :: Lens' SchemaAttributeType (Maybe NumberAttributeConstraintsType)+satNumberAttributeConstraints = lens _satNumberAttributeConstraints (\ s a -> s{_satNumberAttributeConstraints = a});++-- | Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.+satRequired :: Lens' SchemaAttributeType (Maybe Bool)+satRequired = lens _satRequired (\ s a -> s{_satRequired = a});++-- | The attribute data type.+satAttributeDataType :: Lens' SchemaAttributeType (Maybe AttributeDataType)+satAttributeDataType = lens _satAttributeDataType (\ s a -> s{_satAttributeDataType = a});++-- | Specifies the constraints for an attribute of the string type.+satStringAttributeConstraints :: Lens' SchemaAttributeType (Maybe StringAttributeConstraintsType)+satStringAttributeConstraints = lens _satStringAttributeConstraints (\ s a -> s{_satStringAttributeConstraints = a});++-- | A schema attribute of the name type.+satName :: Lens' SchemaAttributeType (Maybe Text)+satName = lens _satName (\ s a -> s{_satName = a});++-- | Specifies whether the attribute type is developer only.+satDeveloperOnlyAttribute :: Lens' SchemaAttributeType (Maybe Bool)+satDeveloperOnlyAttribute = lens _satDeveloperOnlyAttribute (\ s a -> s{_satDeveloperOnlyAttribute = a});++-- | Specifies whether the attribute can be changed once it has been created.+satMutable :: Lens' SchemaAttributeType (Maybe Bool)+satMutable = lens _satMutable (\ s a -> s{_satMutable = a});++instance FromJSON SchemaAttributeType where+        parseJSON+          = withObject "SchemaAttributeType"+              (\ x ->+                 SchemaAttributeType' <$>+                   (x .:? "NumberAttributeConstraints") <*>+                     (x .:? "Required")+                     <*> (x .:? "AttributeDataType")+                     <*> (x .:? "StringAttributeConstraints")+                     <*> (x .:? "Name")+                     <*> (x .:? "DeveloperOnlyAttribute")+                     <*> (x .:? "Mutable"))++instance Hashable SchemaAttributeType where++instance NFData SchemaAttributeType where++instance ToJSON SchemaAttributeType where+        toJSON SchemaAttributeType'{..}+          = object+              (catMaybes+                 [("NumberAttributeConstraints" .=) <$>+                    _satNumberAttributeConstraints,+                  ("Required" .=) <$> _satRequired,+                  ("AttributeDataType" .=) <$> _satAttributeDataType,+                  ("StringAttributeConstraints" .=) <$>+                    _satStringAttributeConstraints,+                  ("Name" .=) <$> _satName,+                  ("DeveloperOnlyAttribute" .=) <$>+                    _satDeveloperOnlyAttribute,+                  ("Mutable" .=) <$> _satMutable])++-- | The SMS configuration type.+--+--+--+-- /See:/ 'smsConfigurationType' smart constructor.+data SmsConfigurationType = SmsConfigurationType'+  { _sctExternalId   :: !(Maybe Text)+  , _sctSNSCallerARN :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SmsConfigurationType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sctExternalId' - The external ID.+--+-- * 'sctSNSCallerARN' - The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.+smsConfigurationType+    :: Text -- ^ 'sctSNSCallerARN'+    -> SmsConfigurationType+smsConfigurationType pSNSCallerARN_ =+  SmsConfigurationType'+  {_sctExternalId = Nothing, _sctSNSCallerARN = pSNSCallerARN_}+++-- | The external ID.+sctExternalId :: Lens' SmsConfigurationType (Maybe Text)+sctExternalId = lens _sctExternalId (\ s a -> s{_sctExternalId = a});++-- | The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.+sctSNSCallerARN :: Lens' SmsConfigurationType Text+sctSNSCallerARN = lens _sctSNSCallerARN (\ s a -> s{_sctSNSCallerARN = a});++instance FromJSON SmsConfigurationType where+        parseJSON+          = withObject "SmsConfigurationType"+              (\ x ->+                 SmsConfigurationType' <$>+                   (x .:? "ExternalId") <*> (x .: "SnsCallerArn"))++instance Hashable SmsConfigurationType where++instance NFData SmsConfigurationType where++instance ToJSON SmsConfigurationType where+        toJSON SmsConfigurationType'{..}+          = object+              (catMaybes+                 [("ExternalId" .=) <$> _sctExternalId,+                  Just ("SnsCallerArn" .= _sctSNSCallerARN)])++-- | The type of constraints associated with an attribute of the string type.+--+--+--+-- /See:/ 'stringAttributeConstraintsType' smart constructor.+data StringAttributeConstraintsType = StringAttributeConstraintsType'+  { _sactMaxLength :: !(Maybe Text)+  , _sactMinLength :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'StringAttributeConstraintsType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sactMaxLength' - The maximum length of an attribute value of the string type.+--+-- * 'sactMinLength' - The minimum length of an attribute value of the string type.+stringAttributeConstraintsType+    :: StringAttributeConstraintsType+stringAttributeConstraintsType =+  StringAttributeConstraintsType'+  {_sactMaxLength = Nothing, _sactMinLength = Nothing}+++-- | The maximum length of an attribute value of the string type.+sactMaxLength :: Lens' StringAttributeConstraintsType (Maybe Text)+sactMaxLength = lens _sactMaxLength (\ s a -> s{_sactMaxLength = a});++-- | The minimum length of an attribute value of the string type.+sactMinLength :: Lens' StringAttributeConstraintsType (Maybe Text)+sactMinLength = lens _sactMinLength (\ s a -> s{_sactMinLength = a});++instance FromJSON StringAttributeConstraintsType+         where+        parseJSON+          = withObject "StringAttributeConstraintsType"+              (\ x ->+                 StringAttributeConstraintsType' <$>+                   (x .:? "MaxLength") <*> (x .:? "MinLength"))++instance Hashable StringAttributeConstraintsType+         where++instance NFData StringAttributeConstraintsType where++instance ToJSON StringAttributeConstraintsType where+        toJSON StringAttributeConstraintsType'{..}+          = object+              (catMaybes+                 [("MaxLength" .=) <$> _sactMaxLength,+                  ("MinLength" .=) <$> _sactMinLength])++-- | A container for the UI customization information for a user pool's built-in app UI.+--+--+--+-- /See:/ 'uICustomizationType' smart constructor.+data UICustomizationType = UICustomizationType'+  { _uictClientId         :: !(Maybe (Sensitive Text))+  , _uictLastModifiedDate :: !(Maybe POSIX)+  , _uictUserPoolId       :: !(Maybe Text)+  , _uictCSS              :: !(Maybe Text)+  , _uictCSSVersion       :: !(Maybe Text)+  , _uictImageURL         :: !(Maybe Text)+  , _uictCreationDate     :: !(Maybe POSIX)+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UICustomizationType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uictClientId' - The client ID for the client app.+--+-- * 'uictLastModifiedDate' - The last-modified date for the UI customization.+--+-- * 'uictUserPoolId' - The user pool ID for the user pool.+--+-- * 'uictCSS' - The CSS values in the UI customization.+--+-- * 'uictCSSVersion' - The CSS version number.+--+-- * 'uictImageURL' - The logo image for the UI customization.+--+-- * 'uictCreationDate' - The creation date for the UI customization.+uICustomizationType+    :: UICustomizationType+uICustomizationType =+  UICustomizationType'+  { _uictClientId = Nothing+  , _uictLastModifiedDate = Nothing+  , _uictUserPoolId = Nothing+  , _uictCSS = Nothing+  , _uictCSSVersion = Nothing+  , _uictImageURL = Nothing+  , _uictCreationDate = Nothing+  }+++-- | The client ID for the client app.+uictClientId :: Lens' UICustomizationType (Maybe Text)+uictClientId = lens _uictClientId (\ s a -> s{_uictClientId = a}) . mapping _Sensitive;++-- | The last-modified date for the UI customization.+uictLastModifiedDate :: Lens' UICustomizationType (Maybe UTCTime)+uictLastModifiedDate = lens _uictLastModifiedDate (\ s a -> s{_uictLastModifiedDate = a}) . mapping _Time;++-- | The user pool ID for the user pool.+uictUserPoolId :: Lens' UICustomizationType (Maybe Text)+uictUserPoolId = lens _uictUserPoolId (\ s a -> s{_uictUserPoolId = a});++-- | The CSS values in the UI customization.+uictCSS :: Lens' UICustomizationType (Maybe Text)+uictCSS = lens _uictCSS (\ s a -> s{_uictCSS = a});++-- | The CSS version number.+uictCSSVersion :: Lens' UICustomizationType (Maybe Text)+uictCSSVersion = lens _uictCSSVersion (\ s a -> s{_uictCSSVersion = a});++-- | The logo image for the UI customization.+uictImageURL :: Lens' UICustomizationType (Maybe Text)+uictImageURL = lens _uictImageURL (\ s a -> s{_uictImageURL = a});++-- | The creation date for the UI customization.+uictCreationDate :: Lens' UICustomizationType (Maybe UTCTime)+uictCreationDate = lens _uictCreationDate (\ s a -> s{_uictCreationDate = a}) . mapping _Time;++instance FromJSON UICustomizationType where+        parseJSON+          = withObject "UICustomizationType"+              (\ x ->+                 UICustomizationType' <$>+                   (x .:? "ClientId") <*> (x .:? "LastModifiedDate") <*>+                     (x .:? "UserPoolId")+                     <*> (x .:? "CSS")+                     <*> (x .:? "CSSVersion")+                     <*> (x .:? "ImageUrl")+                     <*> (x .:? "CreationDate"))++instance Hashable UICustomizationType where++instance NFData UICustomizationType where++-- | The user import job type.+--+--+--+-- /See:/ 'userImportJobType' smart constructor.+data UserImportJobType = UserImportJobType'+  { _uijtStatus                :: !(Maybe UserImportJobStatusType)+  , _uijtSkippedUsers          :: !(Maybe Integer)+  , _uijtJobId                 :: !(Maybe Text)+  , _uijtUserPoolId            :: !(Maybe Text)+  , _uijtJobName               :: !(Maybe Text)+  , _uijtPreSignedURL          :: !(Maybe Text)+  , _uijtFailedUsers           :: !(Maybe Integer)+  , _uijtStartDate             :: !(Maybe POSIX)+  , _uijtCompletionMessage     :: !(Maybe Text)+  , _uijtCreationDate          :: !(Maybe POSIX)+  , _uijtCompletionDate        :: !(Maybe POSIX)+  , _uijtCloudWatchLogsRoleARN :: !(Maybe Text)+  , _uijtImportedUsers         :: !(Maybe Integer)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserImportJobType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uijtStatus' - The status of the user import job. One of the following:     * @Created@ - The job was created but not started.     * @Pending@ - A transition state. You have started the job, but it has not begun importing users yet.     * @InProgress@ - The job has started, and users are being imported.     * @Stopping@ - You have stopped the job, but the job has not stopped importing users yet.     * @Stopped@ - You have stopped the job, and the job has stopped importing users.     * @Succeeded@ - The job has completed successfully.     * @Failed@ - The job has stopped due to an error.     * @Expired@ - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job cannot be started.+--+-- * 'uijtSkippedUsers' - The number of users that were skipped.+--+-- * 'uijtJobId' - The job ID for the user import job.+--+-- * 'uijtUserPoolId' - The user pool ID for the user pool that the users are being imported into.+--+-- * 'uijtJobName' - The job name for the user import job.+--+-- * 'uijtPreSignedURL' - The pre-signed URL to be used to upload the @.csv@ file.+--+-- * 'uijtFailedUsers' - The number of users that could not be imported.+--+-- * 'uijtStartDate' - The date when the user import job was started.+--+-- * 'uijtCompletionMessage' - The message returned when the user import job is completed.+--+-- * 'uijtCreationDate' - The date the user import job was created.+--+-- * 'uijtCompletionDate' - The date when the user import job was completed.+--+-- * 'uijtCloudWatchLogsRoleARN' - The role ARN for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.+--+-- * 'uijtImportedUsers' - The number of users that were successfully imported.+userImportJobType+    :: UserImportJobType+userImportJobType =+  UserImportJobType'+  { _uijtStatus = Nothing+  , _uijtSkippedUsers = Nothing+  , _uijtJobId = Nothing+  , _uijtUserPoolId = Nothing+  , _uijtJobName = Nothing+  , _uijtPreSignedURL = Nothing+  , _uijtFailedUsers = Nothing+  , _uijtStartDate = Nothing+  , _uijtCompletionMessage = Nothing+  , _uijtCreationDate = Nothing+  , _uijtCompletionDate = Nothing+  , _uijtCloudWatchLogsRoleARN = Nothing+  , _uijtImportedUsers = Nothing+  }+++-- | The status of the user import job. One of the following:     * @Created@ - The job was created but not started.     * @Pending@ - A transition state. You have started the job, but it has not begun importing users yet.     * @InProgress@ - The job has started, and users are being imported.     * @Stopping@ - You have stopped the job, but the job has not stopped importing users yet.     * @Stopped@ - You have stopped the job, and the job has stopped importing users.     * @Succeeded@ - The job has completed successfully.     * @Failed@ - The job has stopped due to an error.     * @Expired@ - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job cannot be started.+uijtStatus :: Lens' UserImportJobType (Maybe UserImportJobStatusType)+uijtStatus = lens _uijtStatus (\ s a -> s{_uijtStatus = a});++-- | The number of users that were skipped.+uijtSkippedUsers :: Lens' UserImportJobType (Maybe Integer)+uijtSkippedUsers = lens _uijtSkippedUsers (\ s a -> s{_uijtSkippedUsers = a});++-- | The job ID for the user import job.+uijtJobId :: Lens' UserImportJobType (Maybe Text)+uijtJobId = lens _uijtJobId (\ s a -> s{_uijtJobId = a});++-- | The user pool ID for the user pool that the users are being imported into.+uijtUserPoolId :: Lens' UserImportJobType (Maybe Text)+uijtUserPoolId = lens _uijtUserPoolId (\ s a -> s{_uijtUserPoolId = a});++-- | The job name for the user import job.+uijtJobName :: Lens' UserImportJobType (Maybe Text)+uijtJobName = lens _uijtJobName (\ s a -> s{_uijtJobName = a});++-- | The pre-signed URL to be used to upload the @.csv@ file.+uijtPreSignedURL :: Lens' UserImportJobType (Maybe Text)+uijtPreSignedURL = lens _uijtPreSignedURL (\ s a -> s{_uijtPreSignedURL = a});++-- | The number of users that could not be imported.+uijtFailedUsers :: Lens' UserImportJobType (Maybe Integer)+uijtFailedUsers = lens _uijtFailedUsers (\ s a -> s{_uijtFailedUsers = a});++-- | The date when the user import job was started.+uijtStartDate :: Lens' UserImportJobType (Maybe UTCTime)+uijtStartDate = lens _uijtStartDate (\ s a -> s{_uijtStartDate = a}) . mapping _Time;++-- | The message returned when the user import job is completed.+uijtCompletionMessage :: Lens' UserImportJobType (Maybe Text)+uijtCompletionMessage = lens _uijtCompletionMessage (\ s a -> s{_uijtCompletionMessage = a});++-- | The date the user import job was created.+uijtCreationDate :: Lens' UserImportJobType (Maybe UTCTime)+uijtCreationDate = lens _uijtCreationDate (\ s a -> s{_uijtCreationDate = a}) . mapping _Time;++-- | The date when the user import job was completed.+uijtCompletionDate :: Lens' UserImportJobType (Maybe UTCTime)+uijtCompletionDate = lens _uijtCompletionDate (\ s a -> s{_uijtCompletionDate = a}) . mapping _Time;++-- | The role ARN for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.+uijtCloudWatchLogsRoleARN :: Lens' UserImportJobType (Maybe Text)+uijtCloudWatchLogsRoleARN = lens _uijtCloudWatchLogsRoleARN (\ s a -> s{_uijtCloudWatchLogsRoleARN = a});++-- | The number of users that were successfully imported.+uijtImportedUsers :: Lens' UserImportJobType (Maybe Integer)+uijtImportedUsers = lens _uijtImportedUsers (\ s a -> s{_uijtImportedUsers = a});++instance FromJSON UserImportJobType where+        parseJSON+          = withObject "UserImportJobType"+              (\ x ->+                 UserImportJobType' <$>+                   (x .:? "Status") <*> (x .:? "SkippedUsers") <*>+                     (x .:? "JobId")+                     <*> (x .:? "UserPoolId")+                     <*> (x .:? "JobName")+                     <*> (x .:? "PreSignedUrl")+                     <*> (x .:? "FailedUsers")+                     <*> (x .:? "StartDate")+                     <*> (x .:? "CompletionMessage")+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "CompletionDate")+                     <*> (x .:? "CloudWatchLogsRoleArn")+                     <*> (x .:? "ImportedUsers"))++instance Hashable UserImportJobType where++instance NFData UserImportJobType where++-- | The description of the user pool client.+--+--+--+-- /See:/ 'userPoolClientDescription' smart constructor.+data UserPoolClientDescription = UserPoolClientDescription'+  { _upcdClientId   :: !(Maybe (Sensitive Text))+  , _upcdUserPoolId :: !(Maybe Text)+  , _upcdClientName :: !(Maybe Text)+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserPoolClientDescription' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upcdClientId' - The ID of the client associated with the user pool.+--+-- * 'upcdUserPoolId' - The user pool ID for the user pool where you want to describe the user pool client.+--+-- * 'upcdClientName' - The client name from the user pool client description.+userPoolClientDescription+    :: UserPoolClientDescription+userPoolClientDescription =+  UserPoolClientDescription'+  { _upcdClientId = Nothing+  , _upcdUserPoolId = Nothing+  , _upcdClientName = Nothing+  }+++-- | The ID of the client associated with the user pool.+upcdClientId :: Lens' UserPoolClientDescription (Maybe Text)+upcdClientId = lens _upcdClientId (\ s a -> s{_upcdClientId = a}) . mapping _Sensitive;++-- | The user pool ID for the user pool where you want to describe the user pool client.+upcdUserPoolId :: Lens' UserPoolClientDescription (Maybe Text)+upcdUserPoolId = lens _upcdUserPoolId (\ s a -> s{_upcdUserPoolId = a});++-- | The client name from the user pool client description.+upcdClientName :: Lens' UserPoolClientDescription (Maybe Text)+upcdClientName = lens _upcdClientName (\ s a -> s{_upcdClientName = a});++instance FromJSON UserPoolClientDescription where+        parseJSON+          = withObject "UserPoolClientDescription"+              (\ x ->+                 UserPoolClientDescription' <$>+                   (x .:? "ClientId") <*> (x .:? "UserPoolId") <*>+                     (x .:? "ClientName"))++instance Hashable UserPoolClientDescription where++instance NFData UserPoolClientDescription where++-- | Contains information about a user pool client.+--+--+--+-- /See:/ 'userPoolClientType' smart constructor.+data UserPoolClientType = UserPoolClientType'+  { _upctRefreshTokenValidity            :: !(Maybe Nat)+  , _upctClientId                        :: !(Maybe (Sensitive Text))+  , _upctExplicitAuthFlows               :: !(Maybe [ExplicitAuthFlowsType])+  , _upctClientSecret                    :: !(Maybe (Sensitive Text))+  , _upctLastModifiedDate                :: !(Maybe POSIX)+  , _upctSupportedIdentityProviders      :: !(Maybe [Text])+  , _upctLogoutURLs                      :: !(Maybe [Text])+  , _upctAllowedOAuthFlowsUserPoolClient :: !(Maybe Bool)+  , _upctUserPoolId                      :: !(Maybe Text)+  , _upctDefaultRedirectURI              :: !(Maybe Text)+  , _upctWriteAttributes                 :: !(Maybe [Text])+  , _upctCreationDate                    :: !(Maybe POSIX)+  , _upctReadAttributes                  :: !(Maybe [Text])+  , _upctAllowedOAuthScopes              :: !(Maybe [Text])+  , _upctAllowedOAuthFlows               :: !(Maybe [OAuthFlowType])+  , _upctClientName                      :: !(Maybe Text)+  , _upctCallbackURLs                    :: !(Maybe [Text])+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserPoolClientType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upctRefreshTokenValidity' - The time limit, in days, after which the refresh token is no longer valid and cannot be used.+--+-- * 'upctClientId' - The ID of the client associated with the user pool.+--+-- * 'upctExplicitAuthFlows' - The explicit authentication flows.+--+-- * 'upctClientSecret' - The client secret from the user pool request of the client type.+--+-- * 'upctLastModifiedDate' - The date the user pool client was last modified.+--+-- * 'upctSupportedIdentityProviders' - A list of provider names for the identity providers that are supported on this client.+--+-- * 'upctLogoutURLs' - A list of allowed logout URLs for the identity providers.+--+-- * 'upctAllowedOAuthFlowsUserPoolClient' - Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.+--+-- * 'upctUserPoolId' - The user pool ID for the user pool client.+--+-- * 'upctDefaultRedirectURI' - The default redirect URI. Must be in the @CallbackURLs@ list.+--+-- * 'upctWriteAttributes' - The writeable attributes.+--+-- * 'upctCreationDate' - The date the user pool client was created.+--+-- * 'upctReadAttributes' - The Read-only attributes.+--+-- * 'upctAllowedOAuthScopes' - A list of allowed @OAuth@ scopes. Currently supported values are @"phone"@ , @"email"@ , @"openid"@ , and @"Cognito"@ .+--+-- * 'upctAllowedOAuthFlows' - Set to @code@ to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to @token@ to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.+--+-- * 'upctClientName' - The client name from the user pool request of the client type.+--+-- * 'upctCallbackURLs' - A list of allowed callback URLs for the identity providers.+userPoolClientType+    :: UserPoolClientType+userPoolClientType =+  UserPoolClientType'+  { _upctRefreshTokenValidity = Nothing+  , _upctClientId = Nothing+  , _upctExplicitAuthFlows = Nothing+  , _upctClientSecret = Nothing+  , _upctLastModifiedDate = Nothing+  , _upctSupportedIdentityProviders = Nothing+  , _upctLogoutURLs = Nothing+  , _upctAllowedOAuthFlowsUserPoolClient = Nothing+  , _upctUserPoolId = Nothing+  , _upctDefaultRedirectURI = Nothing+  , _upctWriteAttributes = Nothing+  , _upctCreationDate = Nothing+  , _upctReadAttributes = Nothing+  , _upctAllowedOAuthScopes = Nothing+  , _upctAllowedOAuthFlows = Nothing+  , _upctClientName = Nothing+  , _upctCallbackURLs = Nothing+  }+++-- | The time limit, in days, after which the refresh token is no longer valid and cannot be used.+upctRefreshTokenValidity :: Lens' UserPoolClientType (Maybe Natural)+upctRefreshTokenValidity = lens _upctRefreshTokenValidity (\ s a -> s{_upctRefreshTokenValidity = a}) . mapping _Nat;++-- | The ID of the client associated with the user pool.+upctClientId :: Lens' UserPoolClientType (Maybe Text)+upctClientId = lens _upctClientId (\ s a -> s{_upctClientId = a}) . mapping _Sensitive;++-- | The explicit authentication flows.+upctExplicitAuthFlows :: Lens' UserPoolClientType [ExplicitAuthFlowsType]+upctExplicitAuthFlows = lens _upctExplicitAuthFlows (\ s a -> s{_upctExplicitAuthFlows = a}) . _Default . _Coerce;++-- | The client secret from the user pool request of the client type.+upctClientSecret :: Lens' UserPoolClientType (Maybe Text)+upctClientSecret = lens _upctClientSecret (\ s a -> s{_upctClientSecret = a}) . mapping _Sensitive;++-- | The date the user pool client was last modified.+upctLastModifiedDate :: Lens' UserPoolClientType (Maybe UTCTime)+upctLastModifiedDate = lens _upctLastModifiedDate (\ s a -> s{_upctLastModifiedDate = a}) . mapping _Time;++-- | A list of provider names for the identity providers that are supported on this client.+upctSupportedIdentityProviders :: Lens' UserPoolClientType [Text]+upctSupportedIdentityProviders = lens _upctSupportedIdentityProviders (\ s a -> s{_upctSupportedIdentityProviders = a}) . _Default . _Coerce;++-- | A list of allowed logout URLs for the identity providers.+upctLogoutURLs :: Lens' UserPoolClientType [Text]+upctLogoutURLs = lens _upctLogoutURLs (\ s a -> s{_upctLogoutURLs = a}) . _Default . _Coerce;++-- | Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.+upctAllowedOAuthFlowsUserPoolClient :: Lens' UserPoolClientType (Maybe Bool)+upctAllowedOAuthFlowsUserPoolClient = lens _upctAllowedOAuthFlowsUserPoolClient (\ s a -> s{_upctAllowedOAuthFlowsUserPoolClient = a});++-- | The user pool ID for the user pool client.+upctUserPoolId :: Lens' UserPoolClientType (Maybe Text)+upctUserPoolId = lens _upctUserPoolId (\ s a -> s{_upctUserPoolId = a});++-- | The default redirect URI. Must be in the @CallbackURLs@ list.+upctDefaultRedirectURI :: Lens' UserPoolClientType (Maybe Text)+upctDefaultRedirectURI = lens _upctDefaultRedirectURI (\ s a -> s{_upctDefaultRedirectURI = a});++-- | The writeable attributes.+upctWriteAttributes :: Lens' UserPoolClientType [Text]+upctWriteAttributes = lens _upctWriteAttributes (\ s a -> s{_upctWriteAttributes = a}) . _Default . _Coerce;++-- | The date the user pool client was created.+upctCreationDate :: Lens' UserPoolClientType (Maybe UTCTime)+upctCreationDate = lens _upctCreationDate (\ s a -> s{_upctCreationDate = a}) . mapping _Time;++-- | The Read-only attributes.+upctReadAttributes :: Lens' UserPoolClientType [Text]+upctReadAttributes = lens _upctReadAttributes (\ s a -> s{_upctReadAttributes = a}) . _Default . _Coerce;++-- | A list of allowed @OAuth@ scopes. Currently supported values are @"phone"@ , @"email"@ , @"openid"@ , and @"Cognito"@ .+upctAllowedOAuthScopes :: Lens' UserPoolClientType [Text]+upctAllowedOAuthScopes = lens _upctAllowedOAuthScopes (\ s a -> s{_upctAllowedOAuthScopes = a}) . _Default . _Coerce;++-- | Set to @code@ to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to @token@ to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.+upctAllowedOAuthFlows :: Lens' UserPoolClientType [OAuthFlowType]+upctAllowedOAuthFlows = lens _upctAllowedOAuthFlows (\ s a -> s{_upctAllowedOAuthFlows = a}) . _Default . _Coerce;++-- | The client name from the user pool request of the client type.+upctClientName :: Lens' UserPoolClientType (Maybe Text)+upctClientName = lens _upctClientName (\ s a -> s{_upctClientName = a});++-- | A list of allowed callback URLs for the identity providers.+upctCallbackURLs :: Lens' UserPoolClientType [Text]+upctCallbackURLs = lens _upctCallbackURLs (\ s a -> s{_upctCallbackURLs = a}) . _Default . _Coerce;++instance FromJSON UserPoolClientType where+        parseJSON+          = withObject "UserPoolClientType"+              (\ x ->+                 UserPoolClientType' <$>+                   (x .:? "RefreshTokenValidity") <*> (x .:? "ClientId")+                     <*> (x .:? "ExplicitAuthFlows" .!= mempty)+                     <*> (x .:? "ClientSecret")+                     <*> (x .:? "LastModifiedDate")+                     <*> (x .:? "SupportedIdentityProviders" .!= mempty)+                     <*> (x .:? "LogoutURLs" .!= mempty)+                     <*> (x .:? "AllowedOAuthFlowsUserPoolClient")+                     <*> (x .:? "UserPoolId")+                     <*> (x .:? "DefaultRedirectURI")+                     <*> (x .:? "WriteAttributes" .!= mempty)+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "ReadAttributes" .!= mempty)+                     <*> (x .:? "AllowedOAuthScopes" .!= mempty)+                     <*> (x .:? "AllowedOAuthFlows" .!= mempty)+                     <*> (x .:? "ClientName")+                     <*> (x .:? "CallbackURLs" .!= mempty))++instance Hashable UserPoolClientType where++instance NFData UserPoolClientType where++-- | A user pool description.+--+--+--+-- /See:/ 'userPoolDescriptionType' smart constructor.+data UserPoolDescriptionType = UserPoolDescriptionType'+  { _updtStatus           :: !(Maybe StatusType)+  , _updtLastModifiedDate :: !(Maybe POSIX)+  , _updtName             :: !(Maybe Text)+  , _updtId               :: !(Maybe Text)+  , _updtCreationDate     :: !(Maybe POSIX)+  , _updtLambdaConfig     :: !(Maybe LambdaConfigType)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserPoolDescriptionType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'updtStatus' - The user pool status in a user pool description.+--+-- * 'updtLastModifiedDate' - The date the user pool description was last modified.+--+-- * 'updtName' - The name in a user pool description.+--+-- * 'updtId' - The ID in a user pool description.+--+-- * 'updtCreationDate' - The date the user pool description was created.+--+-- * 'updtLambdaConfig' - The AWS Lambda configuration information in a user pool description.+userPoolDescriptionType+    :: UserPoolDescriptionType+userPoolDescriptionType =+  UserPoolDescriptionType'+  { _updtStatus = Nothing+  , _updtLastModifiedDate = Nothing+  , _updtName = Nothing+  , _updtId = Nothing+  , _updtCreationDate = Nothing+  , _updtLambdaConfig = Nothing+  }+++-- | The user pool status in a user pool description.+updtStatus :: Lens' UserPoolDescriptionType (Maybe StatusType)+updtStatus = lens _updtStatus (\ s a -> s{_updtStatus = a});++-- | The date the user pool description was last modified.+updtLastModifiedDate :: Lens' UserPoolDescriptionType (Maybe UTCTime)+updtLastModifiedDate = lens _updtLastModifiedDate (\ s a -> s{_updtLastModifiedDate = a}) . mapping _Time;++-- | The name in a user pool description.+updtName :: Lens' UserPoolDescriptionType (Maybe Text)+updtName = lens _updtName (\ s a -> s{_updtName = a});++-- | The ID in a user pool description.+updtId :: Lens' UserPoolDescriptionType (Maybe Text)+updtId = lens _updtId (\ s a -> s{_updtId = a});++-- | The date the user pool description was created.+updtCreationDate :: Lens' UserPoolDescriptionType (Maybe UTCTime)+updtCreationDate = lens _updtCreationDate (\ s a -> s{_updtCreationDate = a}) . mapping _Time;++-- | The AWS Lambda configuration information in a user pool description.+updtLambdaConfig :: Lens' UserPoolDescriptionType (Maybe LambdaConfigType)+updtLambdaConfig = lens _updtLambdaConfig (\ s a -> s{_updtLambdaConfig = a});++instance FromJSON UserPoolDescriptionType where+        parseJSON+          = withObject "UserPoolDescriptionType"+              (\ x ->+                 UserPoolDescriptionType' <$>+                   (x .:? "Status") <*> (x .:? "LastModifiedDate") <*>+                     (x .:? "Name")+                     <*> (x .:? "Id")+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "LambdaConfig"))++instance Hashable UserPoolDescriptionType where++instance NFData UserPoolDescriptionType where++-- | The type of policy in a user pool.+--+--+--+-- /See:/ 'userPoolPolicyType' smart constructor.+newtype UserPoolPolicyType = UserPoolPolicyType'+  { _upptPasswordPolicy :: Maybe PasswordPolicyType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserPoolPolicyType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upptPasswordPolicy' - A container for information about the user pool password policy.+userPoolPolicyType+    :: UserPoolPolicyType+userPoolPolicyType = UserPoolPolicyType' {_upptPasswordPolicy = Nothing}+++-- | A container for information about the user pool password policy.+upptPasswordPolicy :: Lens' UserPoolPolicyType (Maybe PasswordPolicyType)+upptPasswordPolicy = lens _upptPasswordPolicy (\ s a -> s{_upptPasswordPolicy = a});++instance FromJSON UserPoolPolicyType where+        parseJSON+          = withObject "UserPoolPolicyType"+              (\ x ->+                 UserPoolPolicyType' <$> (x .:? "PasswordPolicy"))++instance Hashable UserPoolPolicyType where++instance NFData UserPoolPolicyType where++instance ToJSON UserPoolPolicyType where+        toJSON UserPoolPolicyType'{..}+          = object+              (catMaybes+                 [("PasswordPolicy" .=) <$> _upptPasswordPolicy])++-- | A container for information about the user pool type.+--+--+--+-- /See:/ 'userPoolType' smart constructor.+data UserPoolType = UserPoolType'+  { _uptStatus                      :: !(Maybe StatusType)+  , _uptUserPoolTags                :: !(Maybe (Map Text Text))+  , _uptEmailConfigurationFailure   :: !(Maybe Text)+  , _uptLastModifiedDate            :: !(Maybe POSIX)+  , _uptVerificationMessageTemplate :: !(Maybe VerificationMessageTemplateType)+  , _uptEstimatedNumberOfUsers      :: !(Maybe Int)+  , _uptEmailVerificationMessage    :: !(Maybe Text)+  , _uptSmsAuthenticationMessage    :: !(Maybe Text)+  , _uptSchemaAttributes            :: !(Maybe (List1 SchemaAttributeType))+  , _uptEmailVerificationSubject    :: !(Maybe Text)+  , _uptUsernameAttributes          :: !(Maybe [UsernameAttributeType])+  , _uptAliasAttributes             :: !(Maybe [AliasAttributeType])+  , _uptEmailConfiguration          :: !(Maybe EmailConfigurationType)+  , _uptSmsVerificationMessage      :: !(Maybe Text)+  , _uptName                        :: !(Maybe Text)+  , _uptMFAConfiguration            :: !(Maybe UserPoolMFAType)+  , _uptId                          :: !(Maybe Text)+  , _uptSmsConfigurationFailure     :: !(Maybe Text)+  , _uptCreationDate                :: !(Maybe POSIX)+  , _uptLambdaConfig                :: !(Maybe LambdaConfigType)+  , _uptSmsConfiguration            :: !(Maybe SmsConfigurationType)+  , _uptAdminCreateUserConfig       :: !(Maybe AdminCreateUserConfigType)+  , _uptDeviceConfiguration         :: !(Maybe DeviceConfigurationType)+  , _uptAutoVerifiedAttributes      :: !(Maybe [VerifiedAttributeType])+  , _uptPolicies                    :: !(Maybe UserPoolPolicyType)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserPoolType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uptStatus' - The status of a user pool.+--+-- * 'uptUserPoolTags' - The cost allocation tags for the user pool. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html Adding Cost Allocation Tags to Your User Pool>+--+-- * 'uptEmailConfigurationFailure' - The reason why the email configuration cannot send the messages to your users.+--+-- * 'uptLastModifiedDate' - The date the user pool was last modified.+--+-- * 'uptVerificationMessageTemplate' - The template for verification messages.+--+-- * 'uptEstimatedNumberOfUsers' - A number estimating the size of the user pool.+--+-- * 'uptEmailVerificationMessage' - The contents of the email verification message.+--+-- * 'uptSmsAuthenticationMessage' - The contents of the SMS authentication message.+--+-- * 'uptSchemaAttributes' - A container with the schema attributes of a user pool.+--+-- * 'uptEmailVerificationSubject' - The subject of the email verification message.+--+-- * 'uptUsernameAttributes' - Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.+--+-- * 'uptAliasAttributes' - Specifies the attributes that are aliased in a user pool.+--+-- * 'uptEmailConfiguration' - The email configuration.+--+-- * 'uptSmsVerificationMessage' - The contents of the SMS verification message.+--+-- * 'uptName' - The name of the user pool.+--+-- * 'uptMFAConfiguration' - Can be one of the following values:     * @OFF@ - MFA tokens are not required and cannot be specified during user registration.     * @ON@ - MFA tokens are required for all user registrations. You can only specify required when you are initially creating a user pool.     * @OPTIONAL@ - Users have the option when registering to create an MFA token.+--+-- * 'uptId' - The ID of the user pool.+--+-- * 'uptSmsConfigurationFailure' - The reason why the SMS configuration cannot send the messages to your users.+--+-- * 'uptCreationDate' - The date the user pool was created.+--+-- * 'uptLambdaConfig' - A container for the AWS Lambda triggers associated with a user pool.+--+-- * 'uptSmsConfiguration' - The SMS configuration.+--+-- * 'uptAdminCreateUserConfig' - The configuration for @AdminCreateUser@ requests.+--+-- * 'uptDeviceConfiguration' - The device configuration.+--+-- * 'uptAutoVerifiedAttributes' - Specifies the attributes that are auto-verified in a user pool.+--+-- * 'uptPolicies' - A container for the policies associated with a user pool.+userPoolType+    :: UserPoolType+userPoolType =+  UserPoolType'+  { _uptStatus = Nothing+  , _uptUserPoolTags = Nothing+  , _uptEmailConfigurationFailure = Nothing+  , _uptLastModifiedDate = Nothing+  , _uptVerificationMessageTemplate = Nothing+  , _uptEstimatedNumberOfUsers = Nothing+  , _uptEmailVerificationMessage = Nothing+  , _uptSmsAuthenticationMessage = Nothing+  , _uptSchemaAttributes = Nothing+  , _uptEmailVerificationSubject = Nothing+  , _uptUsernameAttributes = Nothing+  , _uptAliasAttributes = Nothing+  , _uptEmailConfiguration = Nothing+  , _uptSmsVerificationMessage = Nothing+  , _uptName = Nothing+  , _uptMFAConfiguration = Nothing+  , _uptId = Nothing+  , _uptSmsConfigurationFailure = Nothing+  , _uptCreationDate = Nothing+  , _uptLambdaConfig = Nothing+  , _uptSmsConfiguration = Nothing+  , _uptAdminCreateUserConfig = Nothing+  , _uptDeviceConfiguration = Nothing+  , _uptAutoVerifiedAttributes = Nothing+  , _uptPolicies = Nothing+  }+++-- | The status of a user pool.+uptStatus :: Lens' UserPoolType (Maybe StatusType)+uptStatus = lens _uptStatus (\ s a -> s{_uptStatus = a});++-- | The cost allocation tags for the user pool. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html Adding Cost Allocation Tags to Your User Pool>+uptUserPoolTags :: Lens' UserPoolType (HashMap Text Text)+uptUserPoolTags = lens _uptUserPoolTags (\ s a -> s{_uptUserPoolTags = a}) . _Default . _Map;++-- | The reason why the email configuration cannot send the messages to your users.+uptEmailConfigurationFailure :: Lens' UserPoolType (Maybe Text)+uptEmailConfigurationFailure = lens _uptEmailConfigurationFailure (\ s a -> s{_uptEmailConfigurationFailure = a});++-- | The date the user pool was last modified.+uptLastModifiedDate :: Lens' UserPoolType (Maybe UTCTime)+uptLastModifiedDate = lens _uptLastModifiedDate (\ s a -> s{_uptLastModifiedDate = a}) . mapping _Time;++-- | The template for verification messages.+uptVerificationMessageTemplate :: Lens' UserPoolType (Maybe VerificationMessageTemplateType)+uptVerificationMessageTemplate = lens _uptVerificationMessageTemplate (\ s a -> s{_uptVerificationMessageTemplate = a});++-- | A number estimating the size of the user pool.+uptEstimatedNumberOfUsers :: Lens' UserPoolType (Maybe Int)+uptEstimatedNumberOfUsers = lens _uptEstimatedNumberOfUsers (\ s a -> s{_uptEstimatedNumberOfUsers = a});++-- | The contents of the email verification message.+uptEmailVerificationMessage :: Lens' UserPoolType (Maybe Text)+uptEmailVerificationMessage = lens _uptEmailVerificationMessage (\ s a -> s{_uptEmailVerificationMessage = a});++-- | The contents of the SMS authentication message.+uptSmsAuthenticationMessage :: Lens' UserPoolType (Maybe Text)+uptSmsAuthenticationMessage = lens _uptSmsAuthenticationMessage (\ s a -> s{_uptSmsAuthenticationMessage = a});++-- | A container with the schema attributes of a user pool.+uptSchemaAttributes :: Lens' UserPoolType (Maybe (NonEmpty SchemaAttributeType))+uptSchemaAttributes = lens _uptSchemaAttributes (\ s a -> s{_uptSchemaAttributes = a}) . mapping _List1;++-- | The subject of the email verification message.+uptEmailVerificationSubject :: Lens' UserPoolType (Maybe Text)+uptEmailVerificationSubject = lens _uptEmailVerificationSubject (\ s a -> s{_uptEmailVerificationSubject = a});++-- | Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.+uptUsernameAttributes :: Lens' UserPoolType [UsernameAttributeType]+uptUsernameAttributes = lens _uptUsernameAttributes (\ s a -> s{_uptUsernameAttributes = a}) . _Default . _Coerce;++-- | Specifies the attributes that are aliased in a user pool.+uptAliasAttributes :: Lens' UserPoolType [AliasAttributeType]+uptAliasAttributes = lens _uptAliasAttributes (\ s a -> s{_uptAliasAttributes = a}) . _Default . _Coerce;++-- | The email configuration.+uptEmailConfiguration :: Lens' UserPoolType (Maybe EmailConfigurationType)+uptEmailConfiguration = lens _uptEmailConfiguration (\ s a -> s{_uptEmailConfiguration = a});++-- | The contents of the SMS verification message.+uptSmsVerificationMessage :: Lens' UserPoolType (Maybe Text)+uptSmsVerificationMessage = lens _uptSmsVerificationMessage (\ s a -> s{_uptSmsVerificationMessage = a});++-- | The name of the user pool.+uptName :: Lens' UserPoolType (Maybe Text)+uptName = lens _uptName (\ s a -> s{_uptName = a});++-- | Can be one of the following values:     * @OFF@ - MFA tokens are not required and cannot be specified during user registration.     * @ON@ - MFA tokens are required for all user registrations. You can only specify required when you are initially creating a user pool.     * @OPTIONAL@ - Users have the option when registering to create an MFA token.+uptMFAConfiguration :: Lens' UserPoolType (Maybe UserPoolMFAType)+uptMFAConfiguration = lens _uptMFAConfiguration (\ s a -> s{_uptMFAConfiguration = a});++-- | The ID of the user pool.+uptId :: Lens' UserPoolType (Maybe Text)+uptId = lens _uptId (\ s a -> s{_uptId = a});++-- | The reason why the SMS configuration cannot send the messages to your users.+uptSmsConfigurationFailure :: Lens' UserPoolType (Maybe Text)+uptSmsConfigurationFailure = lens _uptSmsConfigurationFailure (\ s a -> s{_uptSmsConfigurationFailure = a});++-- | The date the user pool was created.+uptCreationDate :: Lens' UserPoolType (Maybe UTCTime)+uptCreationDate = lens _uptCreationDate (\ s a -> s{_uptCreationDate = a}) . mapping _Time;++-- | A container for the AWS Lambda triggers associated with a user pool.+uptLambdaConfig :: Lens' UserPoolType (Maybe LambdaConfigType)+uptLambdaConfig = lens _uptLambdaConfig (\ s a -> s{_uptLambdaConfig = a});++-- | The SMS configuration.+uptSmsConfiguration :: Lens' UserPoolType (Maybe SmsConfigurationType)+uptSmsConfiguration = lens _uptSmsConfiguration (\ s a -> s{_uptSmsConfiguration = a});++-- | The configuration for @AdminCreateUser@ requests.+uptAdminCreateUserConfig :: Lens' UserPoolType (Maybe AdminCreateUserConfigType)+uptAdminCreateUserConfig = lens _uptAdminCreateUserConfig (\ s a -> s{_uptAdminCreateUserConfig = a});++-- | The device configuration.+uptDeviceConfiguration :: Lens' UserPoolType (Maybe DeviceConfigurationType)+uptDeviceConfiguration = lens _uptDeviceConfiguration (\ s a -> s{_uptDeviceConfiguration = a});++-- | Specifies the attributes that are auto-verified in a user pool.+uptAutoVerifiedAttributes :: Lens' UserPoolType [VerifiedAttributeType]+uptAutoVerifiedAttributes = lens _uptAutoVerifiedAttributes (\ s a -> s{_uptAutoVerifiedAttributes = a}) . _Default . _Coerce;++-- | A container for the policies associated with a user pool.+uptPolicies :: Lens' UserPoolType (Maybe UserPoolPolicyType)+uptPolicies = lens _uptPolicies (\ s a -> s{_uptPolicies = a});++instance FromJSON UserPoolType where+        parseJSON+          = withObject "UserPoolType"+              (\ x ->+                 UserPoolType' <$>+                   (x .:? "Status") <*>+                     (x .:? "UserPoolTags" .!= mempty)+                     <*> (x .:? "EmailConfigurationFailure")+                     <*> (x .:? "LastModifiedDate")+                     <*> (x .:? "VerificationMessageTemplate")+                     <*> (x .:? "EstimatedNumberOfUsers")+                     <*> (x .:? "EmailVerificationMessage")+                     <*> (x .:? "SmsAuthenticationMessage")+                     <*> (x .:? "SchemaAttributes")+                     <*> (x .:? "EmailVerificationSubject")+                     <*> (x .:? "UsernameAttributes" .!= mempty)+                     <*> (x .:? "AliasAttributes" .!= mempty)+                     <*> (x .:? "EmailConfiguration")+                     <*> (x .:? "SmsVerificationMessage")+                     <*> (x .:? "Name")+                     <*> (x .:? "MfaConfiguration")+                     <*> (x .:? "Id")+                     <*> (x .:? "SmsConfigurationFailure")+                     <*> (x .:? "CreationDate")+                     <*> (x .:? "LambdaConfig")+                     <*> (x .:? "SmsConfiguration")+                     <*> (x .:? "AdminCreateUserConfig")+                     <*> (x .:? "DeviceConfiguration")+                     <*> (x .:? "AutoVerifiedAttributes" .!= mempty)+                     <*> (x .:? "Policies"))++instance Hashable UserPoolType where++instance NFData UserPoolType where++-- | The user type.+--+--+--+-- /See:/ 'userType' smart constructor.+data UserType = UserType'+  { _utEnabled              :: !(Maybe Bool)+  , _utUserStatus           :: !(Maybe UserStatusType)+  , _utUsername             :: !(Maybe (Sensitive Text))+  , _utUserCreateDate       :: !(Maybe POSIX)+  , _utAttributes           :: !(Maybe [AttributeType])+  , _utMFAOptions           :: !(Maybe [MFAOptionType])+  , _utUserLastModifiedDate :: !(Maybe POSIX)+  } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'utEnabled' - Specifies whether the user is enabled.+--+-- * 'utUserStatus' - The user status. Can be one of the following:     * UNCONFIRMED - User has been created but not confirmed.     * CONFIRMED - User has been confirmed.     * ARCHIVED - User is no longer active.     * COMPROMISED - User is disabled due to a potential security threat.     * UNKNOWN - User status is not known.+--+-- * 'utUsername' - The user name of the user you wish to describe.+--+-- * 'utUserCreateDate' - The creation date of the user.+--+-- * 'utAttributes' - A container with information about the user type attributes.+--+-- * 'utMFAOptions' - The MFA options for the user.+--+-- * 'utUserLastModifiedDate' - The last modified date of the user.+userType+    :: UserType+userType =+  UserType'+  { _utEnabled = Nothing+  , _utUserStatus = Nothing+  , _utUsername = Nothing+  , _utUserCreateDate = Nothing+  , _utAttributes = Nothing+  , _utMFAOptions = Nothing+  , _utUserLastModifiedDate = Nothing+  }+++-- | Specifies whether the user is enabled.+utEnabled :: Lens' UserType (Maybe Bool)+utEnabled = lens _utEnabled (\ s a -> s{_utEnabled = a});++-- | The user status. Can be one of the following:     * UNCONFIRMED - User has been created but not confirmed.     * CONFIRMED - User has been confirmed.     * ARCHIVED - User is no longer active.     * COMPROMISED - User is disabled due to a potential security threat.     * UNKNOWN - User status is not known.+utUserStatus :: Lens' UserType (Maybe UserStatusType)+utUserStatus = lens _utUserStatus (\ s a -> s{_utUserStatus = a});++-- | The user name of the user you wish to describe.+utUsername :: Lens' UserType (Maybe Text)+utUsername = lens _utUsername (\ s a -> s{_utUsername = a}) . mapping _Sensitive;++-- | The creation date of the user.+utUserCreateDate :: Lens' UserType (Maybe UTCTime)+utUserCreateDate = lens _utUserCreateDate (\ s a -> s{_utUserCreateDate = a}) . mapping _Time;++-- | A container with information about the user type attributes.+utAttributes :: Lens' UserType [AttributeType]+utAttributes = lens _utAttributes (\ s a -> s{_utAttributes = a}) . _Default . _Coerce;++-- | The MFA options for the user.+utMFAOptions :: Lens' UserType [MFAOptionType]+utMFAOptions = lens _utMFAOptions (\ s a -> s{_utMFAOptions = a}) . _Default . _Coerce;++-- | The last modified date of the user.+utUserLastModifiedDate :: Lens' UserType (Maybe UTCTime)+utUserLastModifiedDate = lens _utUserLastModifiedDate (\ s a -> s{_utUserLastModifiedDate = a}) . mapping _Time;++instance FromJSON UserType where+        parseJSON+          = withObject "UserType"+              (\ x ->+                 UserType' <$>+                   (x .:? "Enabled") <*> (x .:? "UserStatus") <*>+                     (x .:? "Username")+                     <*> (x .:? "UserCreateDate")+                     <*> (x .:? "Attributes" .!= mempty)+                     <*> (x .:? "MFAOptions" .!= mempty)+                     <*> (x .:? "UserLastModifiedDate"))++instance Hashable UserType where++instance NFData UserType where++-- | The template for verification messages.+--+--+--+-- /See:/ 'verificationMessageTemplateType' smart constructor.+data VerificationMessageTemplateType = VerificationMessageTemplateType'+  { _vmttDefaultEmailOption :: !(Maybe DefaultEmailOptionType)+  , _vmttEmailSubject       :: !(Maybe Text)+  , _vmttEmailSubjectByLink :: !(Maybe Text)+  , _vmttSmsMessage         :: !(Maybe Text)+  , _vmttEmailMessageByLink :: !(Maybe Text)+  , _vmttEmailMessage       :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'VerificationMessageTemplateType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'vmttDefaultEmailOption' - The default email option.+--+-- * 'vmttEmailSubject' - The subject line for the email message template.+--+-- * 'vmttEmailSubjectByLink' - The subject line for the email message template for sending a confirmation link to the user.+--+-- * 'vmttSmsMessage' - The SMS message template.+--+-- * 'vmttEmailMessageByLink' - The email message template for sending a confirmation link to the user.+--+-- * 'vmttEmailMessage' - The email message template.+verificationMessageTemplateType+    :: VerificationMessageTemplateType+verificationMessageTemplateType =+  VerificationMessageTemplateType'+  { _vmttDefaultEmailOption = Nothing+  , _vmttEmailSubject = Nothing+  , _vmttEmailSubjectByLink = Nothing+  , _vmttSmsMessage = Nothing+  , _vmttEmailMessageByLink = Nothing+  , _vmttEmailMessage = Nothing+  }+++-- | The default email option.+vmttDefaultEmailOption :: Lens' VerificationMessageTemplateType (Maybe DefaultEmailOptionType)+vmttDefaultEmailOption = lens _vmttDefaultEmailOption (\ s a -> s{_vmttDefaultEmailOption = a});++-- | The subject line for the email message template.+vmttEmailSubject :: Lens' VerificationMessageTemplateType (Maybe Text)+vmttEmailSubject = lens _vmttEmailSubject (\ s a -> s{_vmttEmailSubject = a});++-- | The subject line for the email message template for sending a confirmation link to the user.+vmttEmailSubjectByLink :: Lens' VerificationMessageTemplateType (Maybe Text)+vmttEmailSubjectByLink = lens _vmttEmailSubjectByLink (\ s a -> s{_vmttEmailSubjectByLink = a});++-- | The SMS message template.+vmttSmsMessage :: Lens' VerificationMessageTemplateType (Maybe Text)+vmttSmsMessage = lens _vmttSmsMessage (\ s a -> s{_vmttSmsMessage = a});++-- | The email message template for sending a confirmation link to the user.+vmttEmailMessageByLink :: Lens' VerificationMessageTemplateType (Maybe Text)+vmttEmailMessageByLink = lens _vmttEmailMessageByLink (\ s a -> s{_vmttEmailMessageByLink = a});++-- | The email message template.+vmttEmailMessage :: Lens' VerificationMessageTemplateType (Maybe Text)+vmttEmailMessage = lens _vmttEmailMessage (\ s a -> s{_vmttEmailMessage = a});++instance FromJSON VerificationMessageTemplateType+         where+        parseJSON+          = withObject "VerificationMessageTemplateType"+              (\ x ->+                 VerificationMessageTemplateType' <$>+                   (x .:? "DefaultEmailOption") <*>+                     (x .:? "EmailSubject")+                     <*> (x .:? "EmailSubjectByLink")+                     <*> (x .:? "SmsMessage")+                     <*> (x .:? "EmailMessageByLink")+                     <*> (x .:? "EmailMessage"))++instance Hashable VerificationMessageTemplateType+         where++instance NFData VerificationMessageTemplateType where++instance ToJSON VerificationMessageTemplateType where+        toJSON VerificationMessageTemplateType'{..}+          = object+              (catMaybes+                 [("DefaultEmailOption" .=) <$>+                    _vmttDefaultEmailOption,+                  ("EmailSubject" .=) <$> _vmttEmailSubject,+                  ("EmailSubjectByLink" .=) <$>+                    _vmttEmailSubjectByLink,+                  ("SmsMessage" .=) <$> _vmttSmsMessage,+                  ("EmailMessageByLink" .=) <$>+                    _vmttEmailMessageByLink,+                  ("EmailMessage" .=) <$> _vmttEmailMessage])
gen/Network/AWS/CognitoIdentityProvider/Types/Sum.hs view
@@ -9,22 +9,23 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.Types.Sum--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.CognitoIdentityProvider.Types.Sum where -import           Network.AWS.Prelude+import Network.AWS.Prelude  data AliasAttributeType-    = AATEmail-    | AATPhoneNumber-    | AATPreferredUsername-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = AATEmail+  | AATPhoneNumber+  | AATPreferredUsername+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText AliasAttributeType where     parser = takeLowerText >>= \case         "email" -> pure AATEmail@@ -52,12 +53,13 @@     parseJSON = parseJSONText "AliasAttributeType"  data AttributeDataType-    = Boolean-    | DateTime-    | Number-    | String-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Boolean+  | DateTime+  | Number+  | String+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText AttributeDataType where     parser = takeLowerText >>= \case         "boolean" -> pure Boolean@@ -87,13 +89,14 @@     parseJSON = parseJSONText "AttributeDataType"  data AuthFlowType-    = AdminNoSrpAuth-    | CustomAuth-    | RefreshToken-    | RefreshTokenAuth-    | UserSrpAuth-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = AdminNoSrpAuth+  | CustomAuth+  | RefreshToken+  | RefreshTokenAuth+  | UserSrpAuth+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText AuthFlowType where     parser = takeLowerText >>= \case         "admin_no_srp_auth" -> pure AdminNoSrpAuth@@ -122,15 +125,16 @@     toJSON = toJSONText  data ChallengeNameType-    = CNTAdminNoSrpAuth-    | CNTCustomChallenge-    | CNTDevicePasswordVerifier-    | CNTDeviceSrpAuth-    | CNTNewPasswordRequired-    | CNTPasswordVerifier-    | CNTSmsMFA-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = CNTAdminNoSrpAuth+  | CNTCustomChallenge+  | CNTDevicePasswordVerifier+  | CNTDeviceSrpAuth+  | CNTNewPasswordRequired+  | CNTPasswordVerifier+  | CNTSmsMFA+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText ChallengeNameType where     parser = takeLowerText >>= \case         "admin_no_srp_auth" -> pure CNTAdminNoSrpAuth@@ -165,11 +169,42 @@ instance FromJSON ChallengeNameType where     parseJSON = parseJSONText "ChallengeNameType" +data DefaultEmailOptionType+  = ConfirmWithCode+  | ConfirmWithLink+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText DefaultEmailOptionType where+    parser = takeLowerText >>= \case+        "confirm_with_code" -> pure ConfirmWithCode+        "confirm_with_link" -> pure ConfirmWithLink+        e -> fromTextError $ "Failure parsing DefaultEmailOptionType from value: '" <> e+           <> "'. Accepted values: confirm_with_code, confirm_with_link"++instance ToText DefaultEmailOptionType where+    toText = \case+        ConfirmWithCode -> "CONFIRM_WITH_CODE"+        ConfirmWithLink -> "CONFIRM_WITH_LINK"++instance Hashable     DefaultEmailOptionType+instance NFData       DefaultEmailOptionType+instance ToByteString DefaultEmailOptionType+instance ToQuery      DefaultEmailOptionType+instance ToHeader     DefaultEmailOptionType++instance ToJSON DefaultEmailOptionType where+    toJSON = toJSONText++instance FromJSON DefaultEmailOptionType where+    parseJSON = parseJSONText "DefaultEmailOptionType"+ data DeliveryMediumType-    = DMTEmail-    | DMTSms-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = DMTEmail+  | DMTSms+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText DeliveryMediumType where     parser = takeLowerText >>= \case         "email" -> pure DMTEmail@@ -195,10 +230,11 @@     parseJSON = parseJSONText "DeliveryMediumType"  data DeviceRememberedStatusType-    = NotRemembered-    | Remembered-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = NotRemembered+  | Remembered+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText DeviceRememberedStatusType where     parser = takeLowerText >>= \case         "not_remembered" -> pure NotRemembered@@ -220,11 +256,48 @@ instance ToJSON DeviceRememberedStatusType where     toJSON = toJSONText +data DomainStatusType+  = DSTActive+  | DSTCreating+  | DSTDeleting+  | DSTFailed+  | DSTUpdating+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText DomainStatusType where+    parser = takeLowerText >>= \case+        "active" -> pure DSTActive+        "creating" -> pure DSTCreating+        "deleting" -> pure DSTDeleting+        "failed" -> pure DSTFailed+        "updating" -> pure DSTUpdating+        e -> fromTextError $ "Failure parsing DomainStatusType from value: '" <> e+           <> "'. Accepted values: active, creating, deleting, failed, updating"++instance ToText DomainStatusType where+    toText = \case+        DSTActive -> "ACTIVE"+        DSTCreating -> "CREATING"+        DSTDeleting -> "DELETING"+        DSTFailed -> "FAILED"+        DSTUpdating -> "UPDATING"++instance Hashable     DomainStatusType+instance NFData       DomainStatusType+instance ToByteString DomainStatusType+instance ToQuery      DomainStatusType+instance ToHeader     DomainStatusType++instance FromJSON DomainStatusType where+    parseJSON = parseJSONText "DomainStatusType"+ data ExplicitAuthFlowsType-    = EAFTAdminNoSrpAuth-    | EAFTCustomAuthFlowOnly-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = EAFTAdminNoSrpAuth+  | EAFTCustomAuthFlowOnly+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText ExplicitAuthFlowsType where     parser = takeLowerText >>= \case         "admin_no_srp_auth" -> pure EAFTAdminNoSrpAuth@@ -249,11 +322,48 @@ instance FromJSON ExplicitAuthFlowsType where     parseJSON = parseJSONText "ExplicitAuthFlowsType" +data IdentityProviderTypeType+  = Facebook+  | Google+  | LoginWithAmazon+  | Saml+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText IdentityProviderTypeType where+    parser = takeLowerText >>= \case+        "facebook" -> pure Facebook+        "google" -> pure Google+        "loginwithamazon" -> pure LoginWithAmazon+        "saml" -> pure Saml+        e -> fromTextError $ "Failure parsing IdentityProviderTypeType from value: '" <> e+           <> "'. Accepted values: facebook, google, loginwithamazon, saml"++instance ToText IdentityProviderTypeType where+    toText = \case+        Facebook -> "Facebook"+        Google -> "Google"+        LoginWithAmazon -> "LoginWithAmazon"+        Saml -> "SAML"++instance Hashable     IdentityProviderTypeType+instance NFData       IdentityProviderTypeType+instance ToByteString IdentityProviderTypeType+instance ToQuery      IdentityProviderTypeType+instance ToHeader     IdentityProviderTypeType++instance ToJSON IdentityProviderTypeType where+    toJSON = toJSONText++instance FromJSON IdentityProviderTypeType where+    parseJSON = parseJSONText "IdentityProviderTypeType"+ data MessageActionType-    = Resend-    | Suppress-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Resend+  | Suppress+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText MessageActionType where     parser = takeLowerText >>= \case         "resend" -> pure Resend@@ -275,11 +385,45 @@ instance ToJSON MessageActionType where     toJSON = toJSONText +data OAuthFlowType+  = ClientCredentials+  | Code+  | Implicit+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText OAuthFlowType where+    parser = takeLowerText >>= \case+        "client_credentials" -> pure ClientCredentials+        "code" -> pure Code+        "implicit" -> pure Implicit+        e -> fromTextError $ "Failure parsing OAuthFlowType from value: '" <> e+           <> "'. Accepted values: client_credentials, code, implicit"++instance ToText OAuthFlowType where+    toText = \case+        ClientCredentials -> "client_credentials"+        Code -> "code"+        Implicit -> "implicit"++instance Hashable     OAuthFlowType+instance NFData       OAuthFlowType+instance ToByteString OAuthFlowType+instance ToQuery      OAuthFlowType+instance ToHeader     OAuthFlowType++instance ToJSON OAuthFlowType where+    toJSON = toJSONText++instance FromJSON OAuthFlowType where+    parseJSON = parseJSONText "OAuthFlowType"+ data StatusType-    = Disabled-    | Enabled-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Disabled+  | Enabled+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText StatusType where     parser = takeLowerText >>= \case         "disabled" -> pure Disabled@@ -302,16 +446,17 @@     parseJSON = parseJSONText "StatusType"  data UserImportJobStatusType-    = Created-    | Expired-    | Failed-    | InProgress-    | Pending-    | Stopped-    | Stopping-    | Succeeded-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Created+  | Expired+  | Failed+  | InProgress+  | Pending+  | Stopped+  | Stopping+  | Succeeded+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText UserImportJobStatusType where     parser = takeLowerText >>= \case         "created" -> pure Created@@ -346,11 +491,12 @@     parseJSON = parseJSONText "UserImportJobStatusType"  data UserPoolMFAType-    = ON-    | Off-    | Optional-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = ON+  | Off+  | Optional+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText UserPoolMFAType where     parser = takeLowerText >>= \case         "on" -> pure ON@@ -378,15 +524,16 @@     parseJSON = parseJSONText "UserPoolMFAType"  data UserStatusType-    = Archived-    | Compromised-    | Confirmed-    | ForceChangePassword-    | ResetRequired-    | Unconfirmed-    | Unknown-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Archived+  | Compromised+  | Confirmed+  | ForceChangePassword+  | ResetRequired+  | Unconfirmed+  | Unknown+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText UserStatusType where     parser = takeLowerText >>= \case         "archived" -> pure Archived@@ -418,10 +565,41 @@ instance FromJSON UserStatusType where     parseJSON = parseJSONText "UserStatusType" +data UsernameAttributeType+  = UATEmail+  | UATPhoneNumber+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText UsernameAttributeType where+    parser = takeLowerText >>= \case+        "email" -> pure UATEmail+        "phone_number" -> pure UATPhoneNumber+        e -> fromTextError $ "Failure parsing UsernameAttributeType from value: '" <> e+           <> "'. Accepted values: email, phone_number"++instance ToText UsernameAttributeType where+    toText = \case+        UATEmail -> "email"+        UATPhoneNumber -> "phone_number"++instance Hashable     UsernameAttributeType+instance NFData       UsernameAttributeType+instance ToByteString UsernameAttributeType+instance ToQuery      UsernameAttributeType+instance ToHeader     UsernameAttributeType++instance ToJSON UsernameAttributeType where+    toJSON = toJSONText++instance FromJSON UsernameAttributeType where+    parseJSON = parseJSONText "UsernameAttributeType"+ data VerifiedAttributeType-    = Email-    | PhoneNumber-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Email+  | PhoneNumber+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+  instance FromText VerifiedAttributeType where     parser = takeLowerText >>= \case
gen/Network/AWS/CognitoIdentityProvider/UpdateDeviceStatus.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.UpdateDeviceStatus--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , udsrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to update the device status. --@@ -51,11 +51,12 @@ -- -- /See:/ 'updateDeviceStatus' smart constructor. data UpdateDeviceStatus = UpdateDeviceStatus'-    { _udsDeviceRememberedStatus :: !(Maybe DeviceRememberedStatusType)-    , _udsAccessToken            :: !(Sensitive Text)-    , _udsDeviceKey              :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _udsDeviceRememberedStatus :: !(Maybe DeviceRememberedStatusType)+  , _udsAccessToken            :: !(Sensitive Text)+  , _udsDeviceKey              :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateDeviceStatus' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -70,12 +71,13 @@     -> Text -- ^ 'udsDeviceKey'     -> UpdateDeviceStatus updateDeviceStatus pAccessToken_ pDeviceKey_ =-    UpdateDeviceStatus'-    { _udsDeviceRememberedStatus = Nothing-    , _udsAccessToken = _Sensitive # pAccessToken_-    , _udsDeviceKey = pDeviceKey_-    }+  UpdateDeviceStatus'+  { _udsDeviceRememberedStatus = Nothing+  , _udsAccessToken = _Sensitive # pAccessToken_+  , _udsDeviceKey = pDeviceKey_+  } + -- | The status of whether a device is remembered. udsDeviceRememberedStatus :: Lens' UpdateDeviceStatus (Maybe DeviceRememberedStatusType) udsDeviceRememberedStatus = lens _udsDeviceRememberedStatus (\ s a -> s{_udsDeviceRememberedStatus = a});@@ -97,9 +99,9 @@               (\ s h x ->                  UpdateDeviceStatusResponse' <$> (pure (fromEnum s))) -instance Hashable UpdateDeviceStatus+instance Hashable UpdateDeviceStatus where -instance NFData UpdateDeviceStatus+instance NFData UpdateDeviceStatus where  instance ToHeaders UpdateDeviceStatus where         toHeaders@@ -132,9 +134,10 @@ -- -- /See:/ 'updateDeviceStatusResponse' smart constructor. newtype UpdateDeviceStatusResponse = UpdateDeviceStatusResponse'-    { _udsrsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _udsrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateDeviceStatusResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -144,12 +147,11 @@     :: Int -- ^ 'udsrsResponseStatus'     -> UpdateDeviceStatusResponse updateDeviceStatusResponse pResponseStatus_ =-    UpdateDeviceStatusResponse'-    { _udsrsResponseStatus = pResponseStatus_-    }+  UpdateDeviceStatusResponse' {_udsrsResponseStatus = pResponseStatus_} + -- | -- | The response status code. udsrsResponseStatus :: Lens' UpdateDeviceStatusResponse Int udsrsResponseStatus = lens _udsrsResponseStatus (\ s a -> s{_udsrsResponseStatus = a}); -instance NFData UpdateDeviceStatusResponse+instance NFData UpdateDeviceStatusResponse where
+ gen/Network/AWS/CognitoIdentityProvider/UpdateGroup.hs view
@@ -0,0 +1,179 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.UpdateGroup+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the specified group with the specified attributes.+--+--+-- Requires developer credentials.+--+module Network.AWS.CognitoIdentityProvider.UpdateGroup+    (+    -- * Creating a Request+      updateGroup+    , UpdateGroup+    -- * Request Lenses+    , ugPrecedence+    , ugDescription+    , ugRoleARN+    , ugGroupName+    , ugUserPoolId++    -- * Destructuring the Response+    , updateGroupResponse+    , UpdateGroupResponse+    -- * Response Lenses+    , ugrsGroup+    , ugrsResponseStatus+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateGroup' smart constructor.+data UpdateGroup = UpdateGroup'+  { _ugPrecedence  :: !(Maybe Nat)+  , _ugDescription :: !(Maybe Text)+  , _ugRoleARN     :: !(Maybe Text)+  , _ugGroupName   :: !Text+  , _ugUserPoolId  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateGroup' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ugPrecedence' - The new precedence value for the group. For more information about this parameter, see <API_CreateGroup.html CreateGroup> .+--+-- * 'ugDescription' - A string containing the new description of the group.+--+-- * 'ugRoleARN' - The new role ARN for the group. This is used for setting the @cognito:roles@ and @cognito:preferred_role@ claims in the token.+--+-- * 'ugGroupName' - The name of the group.+--+-- * 'ugUserPoolId' - The user pool ID for the user pool.+updateGroup+    :: Text -- ^ 'ugGroupName'+    -> Text -- ^ 'ugUserPoolId'+    -> UpdateGroup+updateGroup pGroupName_ pUserPoolId_ =+  UpdateGroup'+  { _ugPrecedence = Nothing+  , _ugDescription = Nothing+  , _ugRoleARN = Nothing+  , _ugGroupName = pGroupName_+  , _ugUserPoolId = pUserPoolId_+  }+++-- | The new precedence value for the group. For more information about this parameter, see <API_CreateGroup.html CreateGroup> .+ugPrecedence :: Lens' UpdateGroup (Maybe Natural)+ugPrecedence = lens _ugPrecedence (\ s a -> s{_ugPrecedence = a}) . mapping _Nat;++-- | A string containing the new description of the group.+ugDescription :: Lens' UpdateGroup (Maybe Text)+ugDescription = lens _ugDescription (\ s a -> s{_ugDescription = a});++-- | The new role ARN for the group. This is used for setting the @cognito:roles@ and @cognito:preferred_role@ claims in the token.+ugRoleARN :: Lens' UpdateGroup (Maybe Text)+ugRoleARN = lens _ugRoleARN (\ s a -> s{_ugRoleARN = a});++-- | The name of the group.+ugGroupName :: Lens' UpdateGroup Text+ugGroupName = lens _ugGroupName (\ s a -> s{_ugGroupName = a});++-- | The user pool ID for the user pool.+ugUserPoolId :: Lens' UpdateGroup Text+ugUserPoolId = lens _ugUserPoolId (\ s a -> s{_ugUserPoolId = a});++instance AWSRequest UpdateGroup where+        type Rs UpdateGroup = UpdateGroupResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 UpdateGroupResponse' <$>+                   (x .?> "Group") <*> (pure (fromEnum s)))++instance Hashable UpdateGroup where++instance NFData UpdateGroup where++instance ToHeaders UpdateGroup where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.UpdateGroup" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateGroup where+        toJSON UpdateGroup'{..}+          = object+              (catMaybes+                 [("Precedence" .=) <$> _ugPrecedence,+                  ("Description" .=) <$> _ugDescription,+                  ("RoleArn" .=) <$> _ugRoleARN,+                  Just ("GroupName" .= _ugGroupName),+                  Just ("UserPoolId" .= _ugUserPoolId)])++instance ToPath UpdateGroup where+        toPath = const "/"++instance ToQuery UpdateGroup where+        toQuery = const mempty++-- | /See:/ 'updateGroupResponse' smart constructor.+data UpdateGroupResponse = UpdateGroupResponse'+  { _ugrsGroup          :: !(Maybe GroupType)+  , _ugrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateGroupResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ugrsGroup' - The group object for the group.+--+-- * 'ugrsResponseStatus' - -- | The response status code.+updateGroupResponse+    :: Int -- ^ 'ugrsResponseStatus'+    -> UpdateGroupResponse+updateGroupResponse pResponseStatus_ =+  UpdateGroupResponse'+  {_ugrsGroup = Nothing, _ugrsResponseStatus = pResponseStatus_}+++-- | The group object for the group.+ugrsGroup :: Lens' UpdateGroupResponse (Maybe GroupType)+ugrsGroup = lens _ugrsGroup (\ s a -> s{_ugrsGroup = a});++-- | -- | The response status code.+ugrsResponseStatus :: Lens' UpdateGroupResponse Int+ugrsResponseStatus = lens _ugrsResponseStatus (\ s a -> s{_ugrsResponseStatus = a});++instance NFData UpdateGroupResponse where
+ gen/Network/AWS/CognitoIdentityProvider/UpdateIdentityProvider.hs view
@@ -0,0 +1,181 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates identity provider information for a user pool.+--+--+module Network.AWS.CognitoIdentityProvider.UpdateIdentityProvider+    (+    -- * Creating a Request+      updateIdentityProvider+    , UpdateIdentityProvider+    -- * Request Lenses+    , uipIdpIdentifiers+    , uipAttributeMapping+    , uipProviderDetails+    , uipUserPoolId+    , uipProviderName++    -- * Destructuring the Response+    , updateIdentityProviderResponse+    , UpdateIdentityProviderResponse+    -- * Response Lenses+    , uiprsResponseStatus+    , uiprsIdentityProvider+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateIdentityProvider' smart constructor.+data UpdateIdentityProvider = UpdateIdentityProvider'+  { _uipIdpIdentifiers   :: !(Maybe [Text])+  , _uipAttributeMapping :: !(Maybe (Map Text Text))+  , _uipProviderDetails  :: !(Maybe (Map Text Text))+  , _uipUserPoolId       :: !Text+  , _uipProviderName     :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateIdentityProvider' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uipIdpIdentifiers' - A list of identity provider identifiers.+--+-- * 'uipAttributeMapping' - The identity provider attribute mapping to be changed.+--+-- * 'uipProviderDetails' - The identity provider details to be updated, such as @MetadataURL@ and @MetadataFile@ .+--+-- * 'uipUserPoolId' - The user pool ID.+--+-- * 'uipProviderName' - The identity provider name.+updateIdentityProvider+    :: Text -- ^ 'uipUserPoolId'+    -> Text -- ^ 'uipProviderName'+    -> UpdateIdentityProvider+updateIdentityProvider pUserPoolId_ pProviderName_ =+  UpdateIdentityProvider'+  { _uipIdpIdentifiers = Nothing+  , _uipAttributeMapping = Nothing+  , _uipProviderDetails = Nothing+  , _uipUserPoolId = pUserPoolId_+  , _uipProviderName = pProviderName_+  }+++-- | A list of identity provider identifiers.+uipIdpIdentifiers :: Lens' UpdateIdentityProvider [Text]+uipIdpIdentifiers = lens _uipIdpIdentifiers (\ s a -> s{_uipIdpIdentifiers = a}) . _Default . _Coerce;++-- | The identity provider attribute mapping to be changed.+uipAttributeMapping :: Lens' UpdateIdentityProvider (HashMap Text Text)+uipAttributeMapping = lens _uipAttributeMapping (\ s a -> s{_uipAttributeMapping = a}) . _Default . _Map;++-- | The identity provider details to be updated, such as @MetadataURL@ and @MetadataFile@ .+uipProviderDetails :: Lens' UpdateIdentityProvider (HashMap Text Text)+uipProviderDetails = lens _uipProviderDetails (\ s a -> s{_uipProviderDetails = a}) . _Default . _Map;++-- | The user pool ID.+uipUserPoolId :: Lens' UpdateIdentityProvider Text+uipUserPoolId = lens _uipUserPoolId (\ s a -> s{_uipUserPoolId = a});++-- | The identity provider name.+uipProviderName :: Lens' UpdateIdentityProvider Text+uipProviderName = lens _uipProviderName (\ s a -> s{_uipProviderName = a});++instance AWSRequest UpdateIdentityProvider where+        type Rs UpdateIdentityProvider =+             UpdateIdentityProviderResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 UpdateIdentityProviderResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "IdentityProvider"))++instance Hashable UpdateIdentityProvider where++instance NFData UpdateIdentityProvider where++instance ToHeaders UpdateIdentityProvider where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.UpdateIdentityProvider"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateIdentityProvider where+        toJSON UpdateIdentityProvider'{..}+          = object+              (catMaybes+                 [("IdpIdentifiers" .=) <$> _uipIdpIdentifiers,+                  ("AttributeMapping" .=) <$> _uipAttributeMapping,+                  ("ProviderDetails" .=) <$> _uipProviderDetails,+                  Just ("UserPoolId" .= _uipUserPoolId),+                  Just ("ProviderName" .= _uipProviderName)])++instance ToPath UpdateIdentityProvider where+        toPath = const "/"++instance ToQuery UpdateIdentityProvider where+        toQuery = const mempty++-- | /See:/ 'updateIdentityProviderResponse' smart constructor.+data UpdateIdentityProviderResponse = UpdateIdentityProviderResponse'+  { _uiprsResponseStatus   :: !Int+  , _uiprsIdentityProvider :: !IdentityProviderType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateIdentityProviderResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uiprsResponseStatus' - -- | The response status code.+--+-- * 'uiprsIdentityProvider' - The identity provider object.+updateIdentityProviderResponse+    :: Int -- ^ 'uiprsResponseStatus'+    -> IdentityProviderType -- ^ 'uiprsIdentityProvider'+    -> UpdateIdentityProviderResponse+updateIdentityProviderResponse pResponseStatus_ pIdentityProvider_ =+  UpdateIdentityProviderResponse'+  { _uiprsResponseStatus = pResponseStatus_+  , _uiprsIdentityProvider = pIdentityProvider_+  }+++-- | -- | The response status code.+uiprsResponseStatus :: Lens' UpdateIdentityProviderResponse Int+uiprsResponseStatus = lens _uiprsResponseStatus (\ s a -> s{_uiprsResponseStatus = a});++-- | The identity provider object.+uiprsIdentityProvider :: Lens' UpdateIdentityProviderResponse IdentityProviderType+uiprsIdentityProvider = lens _uiprsIdentityProvider (\ s a -> s{_uiprsIdentityProvider = a});++instance NFData UpdateIdentityProviderResponse where
+ gen/Network/AWS/CognitoIdentityProvider/UpdateResourceServer.hs view
@@ -0,0 +1,172 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CognitoIdentityProvider.UpdateResourceServer+-- Copyright   : (c) 2013-2017 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the name and scopes of resource server. All other fields are read-only.+--+--+module Network.AWS.CognitoIdentityProvider.UpdateResourceServer+    (+    -- * Creating a Request+      updateResourceServer+    , UpdateResourceServer+    -- * Request Lenses+    , ursScopes+    , ursUserPoolId+    , ursIdentifier+    , ursName++    -- * Destructuring the Response+    , updateResourceServerResponse+    , UpdateResourceServerResponse+    -- * Response Lenses+    , ursrsResponseStatus+    , ursrsResourceServer+    ) where++import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateResourceServer' smart constructor.+data UpdateResourceServer = UpdateResourceServer'+  { _ursScopes     :: !(Maybe [ResourceServerScopeType])+  , _ursUserPoolId :: !Text+  , _ursIdentifier :: !Text+  , _ursName       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateResourceServer' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ursScopes' - The scope values to be set for the resource server.+--+-- * 'ursUserPoolId' - The user pool ID for the user pool.+--+-- * 'ursIdentifier' - The identifier for the resource server.+--+-- * 'ursName' - The name of the resource server.+updateResourceServer+    :: Text -- ^ 'ursUserPoolId'+    -> Text -- ^ 'ursIdentifier'+    -> Text -- ^ 'ursName'+    -> UpdateResourceServer+updateResourceServer pUserPoolId_ pIdentifier_ pName_ =+  UpdateResourceServer'+  { _ursScopes = Nothing+  , _ursUserPoolId = pUserPoolId_+  , _ursIdentifier = pIdentifier_+  , _ursName = pName_+  }+++-- | The scope values to be set for the resource server.+ursScopes :: Lens' UpdateResourceServer [ResourceServerScopeType]+ursScopes = lens _ursScopes (\ s a -> s{_ursScopes = a}) . _Default . _Coerce;++-- | The user pool ID for the user pool.+ursUserPoolId :: Lens' UpdateResourceServer Text+ursUserPoolId = lens _ursUserPoolId (\ s a -> s{_ursUserPoolId = a});++-- | The identifier for the resource server.+ursIdentifier :: Lens' UpdateResourceServer Text+ursIdentifier = lens _ursIdentifier (\ s a -> s{_ursIdentifier = a});++-- | The name of the resource server.+ursName :: Lens' UpdateResourceServer Text+ursName = lens _ursName (\ s a -> s{_ursName = a});++instance AWSRequest UpdateResourceServer where+        type Rs UpdateResourceServer =+             UpdateResourceServerResponse+        request = postJSON cognitoIdentityProvider+        response+          = receiveJSON+              (\ s h x ->+                 UpdateResourceServerResponse' <$>+                   (pure (fromEnum s)) <*> (x .:> "ResourceServer"))++instance Hashable UpdateResourceServer where++instance NFData UpdateResourceServer where++instance ToHeaders UpdateResourceServer where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSCognitoIdentityProviderService.UpdateResourceServer"+                       :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateResourceServer where+        toJSON UpdateResourceServer'{..}+          = object+              (catMaybes+                 [("Scopes" .=) <$> _ursScopes,+                  Just ("UserPoolId" .= _ursUserPoolId),+                  Just ("Identifier" .= _ursIdentifier),+                  Just ("Name" .= _ursName)])++instance ToPath UpdateResourceServer where+        toPath = const "/"++instance ToQuery UpdateResourceServer where+        toQuery = const mempty++-- | /See:/ 'updateResourceServerResponse' smart constructor.+data UpdateResourceServerResponse = UpdateResourceServerResponse'+  { _ursrsResponseStatus :: !Int+  , _ursrsResourceServer :: !ResourceServerType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateResourceServerResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ursrsResponseStatus' - -- | The response status code.+--+-- * 'ursrsResourceServer' - The resource server.+updateResourceServerResponse+    :: Int -- ^ 'ursrsResponseStatus'+    -> ResourceServerType -- ^ 'ursrsResourceServer'+    -> UpdateResourceServerResponse+updateResourceServerResponse pResponseStatus_ pResourceServer_ =+  UpdateResourceServerResponse'+  { _ursrsResponseStatus = pResponseStatus_+  , _ursrsResourceServer = pResourceServer_+  }+++-- | -- | The response status code.+ursrsResponseStatus :: Lens' UpdateResourceServerResponse Int+ursrsResponseStatus = lens _ursrsResponseStatus (\ s a -> s{_ursrsResponseStatus = a});++-- | The resource server.+ursrsResourceServer :: Lens' UpdateResourceServerResponse ResourceServerType+ursrsResourceServer = lens _ursrsResourceServer (\ s a -> s{_ursrsResourceServer = a});++instance NFData UpdateResourceServerResponse where
gen/Network/AWS/CognitoIdentityProvider/UpdateUserAttributes.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.UpdateUserAttributes--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,8 +27,8 @@       updateUserAttributes     , UpdateUserAttributes     -- * Request Lenses-    , uuaAccessToken     , uuaUserAttributes+    , uuaAccessToken      -- * Destructuring the Response     , updateUserAttributesResponse@@ -38,12 +38,12 @@     , uuarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to update user attributes. --@@ -51,33 +51,34 @@ -- -- /See:/ 'updateUserAttributes' smart constructor. data UpdateUserAttributes = UpdateUserAttributes'-    { _uuaAccessToken    :: !(Maybe (Sensitive Text))-    , _uuaUserAttributes :: ![AttributeType]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uuaUserAttributes :: ![AttributeType]+  , _uuaAccessToken    :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUserAttributes' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uuaAccessToken' - The access token for the request to update user attributes.+-- * 'uuaUserAttributes' - An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. ----- * 'uuaUserAttributes' - An array of name-value pairs representing user attributes.+-- * 'uuaAccessToken' - The access token for the request to update user attributes. updateUserAttributes-    :: UpdateUserAttributes-updateUserAttributes =-    UpdateUserAttributes'-    { _uuaAccessToken = Nothing-    , _uuaUserAttributes = mempty-    }+    :: Text -- ^ 'uuaAccessToken'+    -> UpdateUserAttributes+updateUserAttributes pAccessToken_ =+  UpdateUserAttributes'+  {_uuaUserAttributes = mempty, _uuaAccessToken = _Sensitive # pAccessToken_} --- | The access token for the request to update user attributes.-uuaAccessToken :: Lens' UpdateUserAttributes (Maybe Text)-uuaAccessToken = lens _uuaAccessToken (\ s a -> s{_uuaAccessToken = a}) . mapping _Sensitive; --- | An array of name-value pairs representing user attributes.+-- | An array of name-value pairs representing user attributes. For custom attributes, you must prepend the @custom:@ prefix to the attribute name. uuaUserAttributes :: Lens' UpdateUserAttributes [AttributeType] uuaUserAttributes = lens _uuaUserAttributes (\ s a -> s{_uuaUserAttributes = a}) . _Coerce; +-- | The access token for the request to update user attributes.+uuaAccessToken :: Lens' UpdateUserAttributes Text+uuaAccessToken = lens _uuaAccessToken (\ s a -> s{_uuaAccessToken = a}) . _Sensitive;+ instance AWSRequest UpdateUserAttributes where         type Rs UpdateUserAttributes =              UpdateUserAttributesResponse@@ -89,9 +90,9 @@                    (x .?> "CodeDeliveryDetailsList" .!@ mempty) <*>                      (pure (fromEnum s))) -instance Hashable UpdateUserAttributes+instance Hashable UpdateUserAttributes where -instance NFData UpdateUserAttributes+instance NFData UpdateUserAttributes where  instance ToHeaders UpdateUserAttributes where         toHeaders@@ -107,8 +108,8 @@         toJSON UpdateUserAttributes'{..}           = object               (catMaybes-                 [("AccessToken" .=) <$> _uuaAccessToken,-                  Just ("UserAttributes" .= _uuaUserAttributes)])+                 [Just ("UserAttributes" .= _uuaUserAttributes),+                  Just ("AccessToken" .= _uuaAccessToken)])  instance ToPath UpdateUserAttributes where         toPath = const "/"@@ -122,10 +123,11 @@ -- -- /See:/ 'updateUserAttributesResponse' smart constructor. data UpdateUserAttributesResponse = UpdateUserAttributesResponse'-    { _uuarsCodeDeliveryDetailsList :: !(Maybe [CodeDeliveryDetailsType])-    , _uuarsResponseStatus          :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uuarsCodeDeliveryDetailsList :: !(Maybe [CodeDeliveryDetailsType])+  , _uuarsResponseStatus          :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUserAttributesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -137,11 +139,12 @@     :: Int -- ^ 'uuarsResponseStatus'     -> UpdateUserAttributesResponse updateUserAttributesResponse pResponseStatus_ =-    UpdateUserAttributesResponse'-    { _uuarsCodeDeliveryDetailsList = Nothing-    , _uuarsResponseStatus = pResponseStatus_-    }+  UpdateUserAttributesResponse'+  { _uuarsCodeDeliveryDetailsList = Nothing+  , _uuarsResponseStatus = pResponseStatus_+  } + -- | The code delivery details list from the server for the request to update user attributes. uuarsCodeDeliveryDetailsList :: Lens' UpdateUserAttributesResponse [CodeDeliveryDetailsType] uuarsCodeDeliveryDetailsList = lens _uuarsCodeDeliveryDetailsList (\ s a -> s{_uuarsCodeDeliveryDetailsList = a}) . _Default . _Coerce;@@ -150,4 +153,4 @@ uuarsResponseStatus :: Lens' UpdateUserAttributesResponse Int uuarsResponseStatus = lens _uuarsResponseStatus (\ s a -> s{_uuarsResponseStatus = a}); -instance NFData UpdateUserAttributesResponse+instance NFData UpdateUserAttributesResponse where
gen/Network/AWS/CognitoIdentityProvider/UpdateUserPool.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.UpdateUserPool--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,6 +27,8 @@       updateUserPool     , UpdateUserPool     -- * Request Lenses+    , uupUserPoolTags+    , uupVerificationMessageTemplate     , uupEmailVerificationMessage     , uupSmsAuthenticationMessage     , uupEmailVerificationSubject@@ -48,12 +50,12 @@     , uuprsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to update the user pool. --@@ -61,30 +63,37 @@ -- -- /See:/ 'updateUserPool' smart constructor. data UpdateUserPool = UpdateUserPool'-    { _uupEmailVerificationMessage :: !(Maybe Text)-    , _uupSmsAuthenticationMessage :: !(Maybe Text)-    , _uupEmailVerificationSubject :: !(Maybe Text)-    , _uupEmailConfiguration       :: !(Maybe EmailConfigurationType)-    , _uupSmsVerificationMessage   :: !(Maybe Text)-    , _uupMFAConfiguration         :: !(Maybe UserPoolMFAType)-    , _uupLambdaConfig             :: !(Maybe LambdaConfigType)-    , _uupSmsConfiguration         :: !(Maybe SmsConfigurationType)-    , _uupAdminCreateUserConfig    :: !(Maybe AdminCreateUserConfigType)-    , _uupDeviceConfiguration      :: !(Maybe DeviceConfigurationType)-    , _uupAutoVerifiedAttributes   :: !(Maybe [VerifiedAttributeType])-    , _uupPolicies                 :: !(Maybe UserPoolPolicyType)-    , _uupUserPoolId               :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uupUserPoolTags                :: !(Maybe (Map Text Text))+  , _uupVerificationMessageTemplate :: !(Maybe VerificationMessageTemplateType)+  , _uupEmailVerificationMessage    :: !(Maybe Text)+  , _uupSmsAuthenticationMessage    :: !(Maybe Text)+  , _uupEmailVerificationSubject    :: !(Maybe Text)+  , _uupEmailConfiguration          :: !(Maybe EmailConfigurationType)+  , _uupSmsVerificationMessage      :: !(Maybe Text)+  , _uupMFAConfiguration            :: !(Maybe UserPoolMFAType)+  , _uupLambdaConfig                :: !(Maybe LambdaConfigType)+  , _uupSmsConfiguration            :: !(Maybe SmsConfigurationType)+  , _uupAdminCreateUserConfig       :: !(Maybe AdminCreateUserConfigType)+  , _uupDeviceConfiguration         :: !(Maybe DeviceConfigurationType)+  , _uupAutoVerifiedAttributes      :: !(Maybe [VerifiedAttributeType])+  , _uupPolicies                    :: !(Maybe UserPoolPolicyType)+  , _uupUserPoolId                  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUserPool' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'uupUserPoolTags' - The cost allocation tags for the user pool. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html Adding Cost Allocation Tags to Your User Pool>+--+-- * 'uupVerificationMessageTemplate' - The template for verification messages.+-- -- * 'uupEmailVerificationMessage' - The contents of the email verification message. -- -- * 'uupSmsAuthenticationMessage' - The contents of the SMS authentication message. ----- * 'uupEmailVerificationSubject' - The subject of the email verfication message.+-- * 'uupEmailVerificationSubject' - The subject of the email verification message. -- -- * 'uupEmailConfiguration' - Email configuration. --@@ -96,7 +105,7 @@ -- -- * 'uupSmsConfiguration' - SMS configuration. ----- * 'uupAdminCreateUserConfig' - The configuration for AdminCreateUser requests.+-- * 'uupAdminCreateUserConfig' - The configuration for @AdminCreateUser@ requests. -- -- * 'uupDeviceConfiguration' - Device configuration. --@@ -109,22 +118,33 @@     :: Text -- ^ 'uupUserPoolId'     -> UpdateUserPool updateUserPool pUserPoolId_ =-    UpdateUserPool'-    { _uupEmailVerificationMessage = Nothing-    , _uupSmsAuthenticationMessage = Nothing-    , _uupEmailVerificationSubject = Nothing-    , _uupEmailConfiguration = Nothing-    , _uupSmsVerificationMessage = Nothing-    , _uupMFAConfiguration = Nothing-    , _uupLambdaConfig = Nothing-    , _uupSmsConfiguration = Nothing-    , _uupAdminCreateUserConfig = Nothing-    , _uupDeviceConfiguration = Nothing-    , _uupAutoVerifiedAttributes = Nothing-    , _uupPolicies = Nothing-    , _uupUserPoolId = pUserPoolId_-    }+  UpdateUserPool'+  { _uupUserPoolTags = Nothing+  , _uupVerificationMessageTemplate = Nothing+  , _uupEmailVerificationMessage = Nothing+  , _uupSmsAuthenticationMessage = Nothing+  , _uupEmailVerificationSubject = Nothing+  , _uupEmailConfiguration = Nothing+  , _uupSmsVerificationMessage = Nothing+  , _uupMFAConfiguration = Nothing+  , _uupLambdaConfig = Nothing+  , _uupSmsConfiguration = Nothing+  , _uupAdminCreateUserConfig = Nothing+  , _uupDeviceConfiguration = Nothing+  , _uupAutoVerifiedAttributes = Nothing+  , _uupPolicies = Nothing+  , _uupUserPoolId = pUserPoolId_+  } ++-- | The cost allocation tags for the user pool. For more information, see <http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-cost-allocation-tagging.html Adding Cost Allocation Tags to Your User Pool>+uupUserPoolTags :: Lens' UpdateUserPool (HashMap Text Text)+uupUserPoolTags = lens _uupUserPoolTags (\ s a -> s{_uupUserPoolTags = a}) . _Default . _Map;++-- | The template for verification messages.+uupVerificationMessageTemplate :: Lens' UpdateUserPool (Maybe VerificationMessageTemplateType)+uupVerificationMessageTemplate = lens _uupVerificationMessageTemplate (\ s a -> s{_uupVerificationMessageTemplate = a});+ -- | The contents of the email verification message. uupEmailVerificationMessage :: Lens' UpdateUserPool (Maybe Text) uupEmailVerificationMessage = lens _uupEmailVerificationMessage (\ s a -> s{_uupEmailVerificationMessage = a});@@ -133,7 +153,7 @@ uupSmsAuthenticationMessage :: Lens' UpdateUserPool (Maybe Text) uupSmsAuthenticationMessage = lens _uupSmsAuthenticationMessage (\ s a -> s{_uupSmsAuthenticationMessage = a}); --- | The subject of the email verfication message.+-- | The subject of the email verification message. uupEmailVerificationSubject :: Lens' UpdateUserPool (Maybe Text) uupEmailVerificationSubject = lens _uupEmailVerificationSubject (\ s a -> s{_uupEmailVerificationSubject = a}); @@ -157,7 +177,7 @@ uupSmsConfiguration :: Lens' UpdateUserPool (Maybe SmsConfigurationType) uupSmsConfiguration = lens _uupSmsConfiguration (\ s a -> s{_uupSmsConfiguration = a}); --- | The configuration for AdminCreateUser requests.+-- | The configuration for @AdminCreateUser@ requests. uupAdminCreateUserConfig :: Lens' UpdateUserPool (Maybe AdminCreateUserConfigType) uupAdminCreateUserConfig = lens _uupAdminCreateUserConfig (\ s a -> s{_uupAdminCreateUserConfig = a}); @@ -185,9 +205,9 @@               (\ s h x ->                  UpdateUserPoolResponse' <$> (pure (fromEnum s))) -instance Hashable UpdateUserPool+instance Hashable UpdateUserPool where -instance NFData UpdateUserPool+instance NFData UpdateUserPool where  instance ToHeaders UpdateUserPool where         toHeaders@@ -203,7 +223,10 @@         toJSON UpdateUserPool'{..}           = object               (catMaybes-                 [("EmailVerificationMessage" .=) <$>+                 [("UserPoolTags" .=) <$> _uupUserPoolTags,+                  ("VerificationMessageTemplate" .=) <$>+                    _uupVerificationMessageTemplate,+                  ("EmailVerificationMessage" .=) <$>                     _uupEmailVerificationMessage,                   ("SmsAuthenticationMessage" .=) <$>                     _uupSmsAuthenticationMessage,@@ -236,9 +259,10 @@ -- -- /See:/ 'updateUserPoolResponse' smart constructor. newtype UpdateUserPoolResponse = UpdateUserPoolResponse'-    { _uuprsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uuprsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUserPoolResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -248,12 +272,11 @@     :: Int -- ^ 'uuprsResponseStatus'     -> UpdateUserPoolResponse updateUserPoolResponse pResponseStatus_ =-    UpdateUserPoolResponse'-    { _uuprsResponseStatus = pResponseStatus_-    }+  UpdateUserPoolResponse' {_uuprsResponseStatus = pResponseStatus_} + -- | -- | The response status code. uuprsResponseStatus :: Lens' UpdateUserPoolResponse Int uuprsResponseStatus = lens _uuprsResponseStatus (\ s a -> s{_uuprsResponseStatus = a}); -instance NFData UpdateUserPoolResponse+instance NFData UpdateUserPoolResponse where
gen/Network/AWS/CognitoIdentityProvider/UpdateUserPoolClient.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.UpdateUserPoolClient--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -29,9 +29,16 @@     -- * Request Lenses     , uupcRefreshTokenValidity     , uupcExplicitAuthFlows+    , uupcSupportedIdentityProviders+    , uupcLogoutURLs+    , uupcAllowedOAuthFlowsUserPoolClient+    , uupcDefaultRedirectURI     , uupcWriteAttributes     , uupcReadAttributes+    , uupcAllowedOAuthScopes+    , uupcAllowedOAuthFlows     , uupcClientName+    , uupcCallbackURLs     , uupcUserPoolId     , uupcClientId @@ -43,12 +50,12 @@     , uupcrsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to update the user pool client. --@@ -56,29 +63,51 @@ -- -- /See:/ 'updateUserPoolClient' smart constructor. data UpdateUserPoolClient = UpdateUserPoolClient'-    { _uupcRefreshTokenValidity :: !(Maybe Nat)-    , _uupcExplicitAuthFlows    :: !(Maybe [ExplicitAuthFlowsType])-    , _uupcWriteAttributes      :: !(Maybe [Text])-    , _uupcReadAttributes       :: !(Maybe [Text])-    , _uupcClientName           :: !(Maybe Text)-    , _uupcUserPoolId           :: !Text-    , _uupcClientId             :: !(Sensitive Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uupcRefreshTokenValidity            :: !(Maybe Nat)+  , _uupcExplicitAuthFlows               :: !(Maybe [ExplicitAuthFlowsType])+  , _uupcSupportedIdentityProviders      :: !(Maybe [Text])+  , _uupcLogoutURLs                      :: !(Maybe [Text])+  , _uupcAllowedOAuthFlowsUserPoolClient :: !(Maybe Bool)+  , _uupcDefaultRedirectURI              :: !(Maybe Text)+  , _uupcWriteAttributes                 :: !(Maybe [Text])+  , _uupcReadAttributes                  :: !(Maybe [Text])+  , _uupcAllowedOAuthScopes              :: !(Maybe [Text])+  , _uupcAllowedOAuthFlows               :: !(Maybe [OAuthFlowType])+  , _uupcClientName                      :: !(Maybe Text)+  , _uupcCallbackURLs                    :: !(Maybe [Text])+  , _uupcUserPoolId                      :: !Text+  , _uupcClientId                        :: !(Sensitive Text)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUserPoolClient' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uupcRefreshTokenValidity' - The validity of the refresh token.+-- * 'uupcRefreshTokenValidity' - The time limit, in days, after which the refresh token is no longer valid and cannot be used. -- -- * 'uupcExplicitAuthFlows' - Explicit authentication flows. --+-- * 'uupcSupportedIdentityProviders' - A list of provider names for the identity providers that are supported on this client.+--+-- * 'uupcLogoutURLs' - A list of allowed logout URLs for the identity providers.+--+-- * 'uupcAllowedOAuthFlowsUserPoolClient' - Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.+--+-- * 'uupcDefaultRedirectURI' - The default redirect URI. Must be in the @CallbackURLs@ list.+-- -- * 'uupcWriteAttributes' - The writeable attributes of the user pool. -- -- * 'uupcReadAttributes' - The read-only attributes of the user pool. --+-- * 'uupcAllowedOAuthScopes' - A list of allowed @OAuth@ scopes. Currently supported values are @"phone"@ , @"email"@ , @"openid"@ , and @"Cognito"@ .+--+-- * 'uupcAllowedOAuthFlows' - Set to @code@ to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to @token@ to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.+-- -- * 'uupcClientName' - The client name from the update user pool client request. --+-- * 'uupcCallbackURLs' - A list of allowed callback URLs for the identity providers.+-- -- * 'uupcUserPoolId' - The user pool ID for the user pool where you want to update the user pool client. -- -- * 'uupcClientId' - The ID of the client associated with the user pool.@@ -87,17 +116,25 @@     -> Text -- ^ 'uupcClientId'     -> UpdateUserPoolClient updateUserPoolClient pUserPoolId_ pClientId_ =-    UpdateUserPoolClient'-    { _uupcRefreshTokenValidity = Nothing-    , _uupcExplicitAuthFlows = Nothing-    , _uupcWriteAttributes = Nothing-    , _uupcReadAttributes = Nothing-    , _uupcClientName = Nothing-    , _uupcUserPoolId = pUserPoolId_-    , _uupcClientId = _Sensitive # pClientId_-    }+  UpdateUserPoolClient'+  { _uupcRefreshTokenValidity = Nothing+  , _uupcExplicitAuthFlows = Nothing+  , _uupcSupportedIdentityProviders = Nothing+  , _uupcLogoutURLs = Nothing+  , _uupcAllowedOAuthFlowsUserPoolClient = Nothing+  , _uupcDefaultRedirectURI = Nothing+  , _uupcWriteAttributes = Nothing+  , _uupcReadAttributes = Nothing+  , _uupcAllowedOAuthScopes = Nothing+  , _uupcAllowedOAuthFlows = Nothing+  , _uupcClientName = Nothing+  , _uupcCallbackURLs = Nothing+  , _uupcUserPoolId = pUserPoolId_+  , _uupcClientId = _Sensitive # pClientId_+  } --- | The validity of the refresh token.++-- | The time limit, in days, after which the refresh token is no longer valid and cannot be used. uupcRefreshTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural) uupcRefreshTokenValidity = lens _uupcRefreshTokenValidity (\ s a -> s{_uupcRefreshTokenValidity = a}) . mapping _Nat; @@ -105,6 +142,22 @@ uupcExplicitAuthFlows :: Lens' UpdateUserPoolClient [ExplicitAuthFlowsType] uupcExplicitAuthFlows = lens _uupcExplicitAuthFlows (\ s a -> s{_uupcExplicitAuthFlows = a}) . _Default . _Coerce; +-- | A list of provider names for the identity providers that are supported on this client.+uupcSupportedIdentityProviders :: Lens' UpdateUserPoolClient [Text]+uupcSupportedIdentityProviders = lens _uupcSupportedIdentityProviders (\ s a -> s{_uupcSupportedIdentityProviders = a}) . _Default . _Coerce;++-- | A list of allowed logout URLs for the identity providers.+uupcLogoutURLs :: Lens' UpdateUserPoolClient [Text]+uupcLogoutURLs = lens _uupcLogoutURLs (\ s a -> s{_uupcLogoutURLs = a}) . _Default . _Coerce;++-- | Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.+uupcAllowedOAuthFlowsUserPoolClient :: Lens' UpdateUserPoolClient (Maybe Bool)+uupcAllowedOAuthFlowsUserPoolClient = lens _uupcAllowedOAuthFlowsUserPoolClient (\ s a -> s{_uupcAllowedOAuthFlowsUserPoolClient = a});++-- | The default redirect URI. Must be in the @CallbackURLs@ list.+uupcDefaultRedirectURI :: Lens' UpdateUserPoolClient (Maybe Text)+uupcDefaultRedirectURI = lens _uupcDefaultRedirectURI (\ s a -> s{_uupcDefaultRedirectURI = a});+ -- | The writeable attributes of the user pool. uupcWriteAttributes :: Lens' UpdateUserPoolClient [Text] uupcWriteAttributes = lens _uupcWriteAttributes (\ s a -> s{_uupcWriteAttributes = a}) . _Default . _Coerce;@@ -113,10 +166,22 @@ uupcReadAttributes :: Lens' UpdateUserPoolClient [Text] uupcReadAttributes = lens _uupcReadAttributes (\ s a -> s{_uupcReadAttributes = a}) . _Default . _Coerce; +-- | A list of allowed @OAuth@ scopes. Currently supported values are @"phone"@ , @"email"@ , @"openid"@ , and @"Cognito"@ .+uupcAllowedOAuthScopes :: Lens' UpdateUserPoolClient [Text]+uupcAllowedOAuthScopes = lens _uupcAllowedOAuthScopes (\ s a -> s{_uupcAllowedOAuthScopes = a}) . _Default . _Coerce;++-- | Set to @code@ to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to @token@ to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.+uupcAllowedOAuthFlows :: Lens' UpdateUserPoolClient [OAuthFlowType]+uupcAllowedOAuthFlows = lens _uupcAllowedOAuthFlows (\ s a -> s{_uupcAllowedOAuthFlows = a}) . _Default . _Coerce;+ -- | The client name from the update user pool client request. uupcClientName :: Lens' UpdateUserPoolClient (Maybe Text) uupcClientName = lens _uupcClientName (\ s a -> s{_uupcClientName = a}); +-- | A list of allowed callback URLs for the identity providers.+uupcCallbackURLs :: Lens' UpdateUserPoolClient [Text]+uupcCallbackURLs = lens _uupcCallbackURLs (\ s a -> s{_uupcCallbackURLs = a}) . _Default . _Coerce;+ -- | The user pool ID for the user pool where you want to update the user pool client. uupcUserPoolId :: Lens' UpdateUserPoolClient Text uupcUserPoolId = lens _uupcUserPoolId (\ s a -> s{_uupcUserPoolId = a});@@ -135,9 +200,9 @@                  UpdateUserPoolClientResponse' <$>                    (x .?> "UserPoolClient") <*> (pure (fromEnum s))) -instance Hashable UpdateUserPoolClient+instance Hashable UpdateUserPoolClient where -instance NFData UpdateUserPoolClient+instance NFData UpdateUserPoolClient where  instance ToHeaders UpdateUserPoolClient where         toHeaders@@ -156,9 +221,20 @@                  [("RefreshTokenValidity" .=) <$>                     _uupcRefreshTokenValidity,                   ("ExplicitAuthFlows" .=) <$> _uupcExplicitAuthFlows,+                  ("SupportedIdentityProviders" .=) <$>+                    _uupcSupportedIdentityProviders,+                  ("LogoutURLs" .=) <$> _uupcLogoutURLs,+                  ("AllowedOAuthFlowsUserPoolClient" .=) <$>+                    _uupcAllowedOAuthFlowsUserPoolClient,+                  ("DefaultRedirectURI" .=) <$>+                    _uupcDefaultRedirectURI,                   ("WriteAttributes" .=) <$> _uupcWriteAttributes,                   ("ReadAttributes" .=) <$> _uupcReadAttributes,+                  ("AllowedOAuthScopes" .=) <$>+                    _uupcAllowedOAuthScopes,+                  ("AllowedOAuthFlows" .=) <$> _uupcAllowedOAuthFlows,                   ("ClientName" .=) <$> _uupcClientName,+                  ("CallbackURLs" .=) <$> _uupcCallbackURLs,                   Just ("UserPoolId" .= _uupcUserPoolId),                   Just ("ClientId" .= _uupcClientId)]) @@ -174,10 +250,11 @@ -- -- /See:/ 'updateUserPoolClientResponse' smart constructor. data UpdateUserPoolClientResponse = UpdateUserPoolClientResponse'-    { _uupcrsUserPoolClient :: !(Maybe UserPoolClientType)-    , _uupcrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uupcrsUserPoolClient :: !(Maybe UserPoolClientType)+  , _uupcrsResponseStatus :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUserPoolClientResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -189,11 +266,10 @@     :: Int -- ^ 'uupcrsResponseStatus'     -> UpdateUserPoolClientResponse updateUserPoolClientResponse pResponseStatus_ =-    UpdateUserPoolClientResponse'-    { _uupcrsUserPoolClient = Nothing-    , _uupcrsResponseStatus = pResponseStatus_-    }+  UpdateUserPoolClientResponse'+  {_uupcrsUserPoolClient = Nothing, _uupcrsResponseStatus = pResponseStatus_} + -- | The user pool client value from the response from the server when an update user pool client request is made. uupcrsUserPoolClient :: Lens' UpdateUserPoolClientResponse (Maybe UserPoolClientType) uupcrsUserPoolClient = lens _uupcrsUserPoolClient (\ s a -> s{_uupcrsUserPoolClient = a});@@ -202,4 +278,4 @@ uupcrsResponseStatus :: Lens' UpdateUserPoolClientResponse Int uupcrsResponseStatus = lens _uupcrsResponseStatus (\ s a -> s{_uupcrsResponseStatus = a}); -instance NFData UpdateUserPoolClientResponse+instance NFData UpdateUserPoolClientResponse where
gen/Network/AWS/CognitoIdentityProvider/VerifyUserAttribute.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.VerifyUserAttribute--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , vuarsResponseStatus     ) where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.CognitoIdentityProvider.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.CognitoIdentityProvider.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents the request to verify user attributes. --@@ -51,11 +51,12 @@ -- -- /See:/ 'verifyUserAttribute' smart constructor. data VerifyUserAttribute = VerifyUserAttribute'-    { _vuaAccessToken   :: !(Maybe (Sensitive Text))-    , _vuaAttributeName :: !Text-    , _vuaCode          :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _vuaAccessToken   :: !(Sensitive Text)+  , _vuaAttributeName :: !Text+  , _vuaCode          :: !Text+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'VerifyUserAttribute' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,19 +67,21 @@ -- -- * 'vuaCode' - The verification code in the request to verify user attributes. verifyUserAttribute-    :: Text -- ^ 'vuaAttributeName'+    :: Text -- ^ 'vuaAccessToken'+    -> Text -- ^ 'vuaAttributeName'     -> Text -- ^ 'vuaCode'     -> VerifyUserAttribute-verifyUserAttribute pAttributeName_ pCode_ =-    VerifyUserAttribute'-    { _vuaAccessToken = Nothing-    , _vuaAttributeName = pAttributeName_-    , _vuaCode = pCode_-    }+verifyUserAttribute pAccessToken_ pAttributeName_ pCode_ =+  VerifyUserAttribute'+  { _vuaAccessToken = _Sensitive # pAccessToken_+  , _vuaAttributeName = pAttributeName_+  , _vuaCode = pCode_+  } + -- | Represents the access token of the request to verify user attributes.-vuaAccessToken :: Lens' VerifyUserAttribute (Maybe Text)-vuaAccessToken = lens _vuaAccessToken (\ s a -> s{_vuaAccessToken = a}) . mapping _Sensitive;+vuaAccessToken :: Lens' VerifyUserAttribute Text+vuaAccessToken = lens _vuaAccessToken (\ s a -> s{_vuaAccessToken = a}) . _Sensitive;  -- | The attribute name in the request to verify user attributes. vuaAttributeName :: Lens' VerifyUserAttribute Text@@ -97,9 +100,9 @@               (\ s h x ->                  VerifyUserAttributeResponse' <$> (pure (fromEnum s))) -instance Hashable VerifyUserAttribute+instance Hashable VerifyUserAttribute where -instance NFData VerifyUserAttribute+instance NFData VerifyUserAttribute where  instance ToHeaders VerifyUserAttribute where         toHeaders@@ -115,7 +118,7 @@         toJSON VerifyUserAttribute'{..}           = object               (catMaybes-                 [("AccessToken" .=) <$> _vuaAccessToken,+                 [Just ("AccessToken" .= _vuaAccessToken),                   Just ("AttributeName" .= _vuaAttributeName),                   Just ("Code" .= _vuaCode)]) @@ -131,9 +134,10 @@ -- -- /See:/ 'verifyUserAttributeResponse' smart constructor. newtype VerifyUserAttributeResponse = VerifyUserAttributeResponse'-    { _vuarsResponseStatus :: Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _vuarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'VerifyUserAttributeResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -143,12 +147,11 @@     :: Int -- ^ 'vuarsResponseStatus'     -> VerifyUserAttributeResponse verifyUserAttributeResponse pResponseStatus_ =-    VerifyUserAttributeResponse'-    { _vuarsResponseStatus = pResponseStatus_-    }+  VerifyUserAttributeResponse' {_vuarsResponseStatus = pResponseStatus_} + -- | -- | The response status code. vuarsResponseStatus :: Lens' VerifyUserAttributeResponse Int vuarsResponseStatus = lens _vuarsResponseStatus (\ s a -> s{_vuarsResponseStatus = a}); -instance NFData VerifyUserAttributeResponse+instance NFData VerifyUserAttributeResponse where
gen/Network/AWS/CognitoIdentityProvider/Waiters.hs view
@@ -7,15 +7,15 @@  -- | -- Module      : Network.AWS.CognitoIdentityProvider.Waiters--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.CognitoIdentityProvider.Waiters where -import           Network.AWS.CognitoIdentityProvider.Types-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Waiter+import Network.AWS.CognitoIdentityProvider.Types+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Waiter
test/Main.hs view
@@ -2,9 +2,9 @@  -- | -- Module      : Main--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --
test/Test/AWS/Gen/CognitoIdentityProvider.hs view
@@ -5,20 +5,20 @@  -- | -- Module      : Test.AWS.Gen.CognitoIdentityProvider--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- module Test.AWS.Gen.CognitoIdentityProvider where  import Data.Proxy+import Network.AWS.CognitoIdentityProvider+import Test.AWS.CognitoIdentityProvider.Internal import Test.AWS.Fixture import Test.AWS.Prelude import Test.Tasty-import Network.AWS.CognitoIdentityProvider-import Test.AWS.CognitoIdentityProvider.Internal  -- Auto-generated: the actual test selection needs to be manually placed into -- the top-level so that real test data can be incrementally added.@@ -34,9 +34,15 @@ --         , requestUpdateUserPool $ --             updateUserPool --+--         , requestDeleteUserPoolDomain $+--             deleteUserPoolDomain+-- --         , requestAdminInitiateAuth $ --             adminInitiateAuth --+--         , requestAdminLinkProviderForUser $+--             adminLinkProviderForUser+-- --         , requestAdminEnableUser $ --             adminEnableUser --@@ -64,12 +70,18 @@ --         , requestListUserImportJobs $ --             listUserImportJobs --+--         , requestDescribeIdentityProvider $+--             describeIdentityProvider+-- --         , requestListUsers $ --             listUsers -- --         , requestAdminDeleteUserAttributes $ --             adminDeleteUserAttributes --+--         , requestDescribeUserPoolDomain $+--             describeUserPoolDomain+-- --         , requestAdminUpdateUserAttributes $ --             adminUpdateUserAttributes --@@ -79,6 +91,12 @@ --         , requestAdminUserGlobalSignOut $ --             adminUserGlobalSignOut --+--         , requestListUsersInGroup $+--             listUsersInGroup+--+--         , requestAdminDisableProviderForUser $+--             adminDisableProviderForUser+-- --         , requestForgotPassword $ --             forgotPassword --@@ -88,21 +106,42 @@ --         , requestInitiateAuth $ --             initiateAuth --+--         , requestAdminListGroupsForUser $+--             adminListGroupsForUser+-- --         , requestAdminConfirmSignUp $ --             adminConfirmSignUp -- --         , requestStartUserImportJob $ --             startUserImportJob --+--         , requestCreateIdentityProvider $+--             createIdentityProvider+--+--         , requestSetUICustomization $+--             setUICustomization+--+--         , requestListIdentityProviders $+--             listIdentityProviders+-- --         , requestGetDevice $ --             getDevice -- --         , requestSignUp $ --             signUp --+--         , requestDeleteResourceServer $+--             deleteResourceServer+--+--         , requestUpdateResourceServer $+--             updateResourceServer+-- --         , requestChangePassword $ --             changePassword --+--         , requestCreateUserPoolDomain $+--             createUserPoolDomain+-- --         , requestRespondToAuthChallenge $ --             respondToAuthChallenge --@@ -112,6 +151,12 @@ --         , requestAdminGetDevice $ --             adminGetDevice --+--         , requestGetIdentityProviderByIdentifier $+--             getIdentityProviderByIdentifier+--+--         , requestAdminRemoveUserFromGroup $+--             adminRemoveUserFromGroup+-- --         , requestConfirmSignUp $ --             confirmSignUp --@@ -127,6 +172,9 @@ --         , requestGetUser $ --             getUser --+--         , requestGetUICustomization $+--             getUICustomization+-- --         , requestGetCSVHeader $ --             getCSVHeader --@@ -136,6 +184,9 @@ --         , requestAdminForgetDevice $ --             adminForgetDevice --+--         , requestDescribeResourceServer $+--             describeResourceServer+-- --         , requestAdminUpdateDeviceStatus $ --             adminUpdateDeviceStatus --@@ -166,15 +217,42 @@ --         , requestCreateUserPoolClient $ --             createUserPoolClient --+--         , requestCreateResourceServer $+--             createResourceServer+--+--         , requestCreateGroup $+--             createGroup+--+--         , requestAdminAddUserToGroup $+--             adminAddUserToGroup+-- --         , requestStopUserImportJob $ --             stopUserImportJob -- --         , requestDescribeUserImportJob $ --             describeUserImportJob --+--         , requestDeleteGroup $+--             deleteGroup+--+--         , requestUpdateGroup $+--             updateGroup+-- --         , requestGlobalSignOut $ --             globalSignOut --+--         , requestListGroups $+--             listGroups+--+--         , requestUpdateIdentityProvider $+--             updateIdentityProvider+--+--         , requestDeleteIdentityProvider $+--             deleteIdentityProvider+--+--         , requestListResourceServers $+--             listResourceServers+-- --         , requestAdminRespondToAuthChallenge $ --             adminRespondToAuthChallenge --@@ -190,6 +268,9 @@ --         , requestResendConfirmationCode $ --             resendConfirmationCode --+--         , requestGetGroup $+--             getGroup+-- --         , requestAdminSetUserSettings $ --             adminSetUserSettings --@@ -205,9 +286,15 @@ --         , responseUpdateUserPool $ --             updateUserPoolResponse --+--         , responseDeleteUserPoolDomain $+--             deleteUserPoolDomainResponse+-- --         , responseAdminInitiateAuth $ --             adminInitiateAuthResponse --+--         , responseAdminLinkProviderForUser $+--             adminLinkProviderForUserResponse+-- --         , responseAdminEnableUser $ --             adminEnableUserResponse --@@ -235,12 +322,18 @@ --         , responseListUserImportJobs $ --             listUserImportJobsResponse --+--         , responseDescribeIdentityProvider $+--             describeIdentityProviderResponse+-- --         , responseListUsers $ --             listUsersResponse -- --         , responseAdminDeleteUserAttributes $ --             adminDeleteUserAttributesResponse --+--         , responseDescribeUserPoolDomain $+--             describeUserPoolDomainResponse+-- --         , responseAdminUpdateUserAttributes $ --             adminUpdateUserAttributesResponse --@@ -250,6 +343,12 @@ --         , responseAdminUserGlobalSignOut $ --             adminUserGlobalSignOutResponse --+--         , responseListUsersInGroup $+--             listUsersInGroupResponse+--+--         , responseAdminDisableProviderForUser $+--             adminDisableProviderForUserResponse+-- --         , responseForgotPassword $ --             forgotPasswordResponse --@@ -259,21 +358,42 @@ --         , responseInitiateAuth $ --             initiateAuthResponse --+--         , responseAdminListGroupsForUser $+--             adminListGroupsForUserResponse+-- --         , responseAdminConfirmSignUp $ --             adminConfirmSignUpResponse -- --         , responseStartUserImportJob $ --             startUserImportJobResponse --+--         , responseCreateIdentityProvider $+--             createIdentityProviderResponse+--+--         , responseSetUICustomization $+--             setUICustomizationResponse+--+--         , responseListIdentityProviders $+--             listIdentityProvidersResponse+-- --         , responseGetDevice $ --             getDeviceResponse -- --         , responseSignUp $ --             signUpResponse --+--         , responseDeleteResourceServer $+--             deleteResourceServerResponse+--+--         , responseUpdateResourceServer $+--             updateResourceServerResponse+-- --         , responseChangePassword $ --             changePasswordResponse --+--         , responseCreateUserPoolDomain $+--             createUserPoolDomainResponse+-- --         , responseRespondToAuthChallenge $ --             respondToAuthChallengeResponse --@@ -283,6 +403,12 @@ --         , responseAdminGetDevice $ --             adminGetDeviceResponse --+--         , responseGetIdentityProviderByIdentifier $+--             getIdentityProviderByIdentifierResponse+--+--         , responseAdminRemoveUserFromGroup $+--             adminRemoveUserFromGroupResponse+-- --         , responseConfirmSignUp $ --             confirmSignUpResponse --@@ -298,6 +424,9 @@ --         , responseGetUser $ --             getUserResponse --+--         , responseGetUICustomization $+--             getUICustomizationResponse+-- --         , responseGetCSVHeader $ --             getCSVHeaderResponse --@@ -307,6 +436,9 @@ --         , responseAdminForgetDevice $ --             adminForgetDeviceResponse --+--         , responseDescribeResourceServer $+--             describeResourceServerResponse+-- --         , responseAdminUpdateDeviceStatus $ --             adminUpdateDeviceStatusResponse --@@ -337,15 +469,42 @@ --         , responseCreateUserPoolClient $ --             createUserPoolClientResponse --+--         , responseCreateResourceServer $+--             createResourceServerResponse+--+--         , responseCreateGroup $+--             createGroupResponse+--+--         , responseAdminAddUserToGroup $+--             adminAddUserToGroupResponse+-- --         , responseStopUserImportJob $ --             stopUserImportJobResponse -- --         , responseDescribeUserImportJob $ --             describeUserImportJobResponse --+--         , responseDeleteGroup $+--             deleteGroupResponse+--+--         , responseUpdateGroup $+--             updateGroupResponse+-- --         , responseGlobalSignOut $ --             globalSignOutResponse --+--         , responseListGroups $+--             listGroupsResponse+--+--         , responseUpdateIdentityProvider $+--             updateIdentityProviderResponse+--+--         , responseDeleteIdentityProvider $+--             deleteIdentityProviderResponse+--+--         , responseListResourceServers $+--             listResourceServersResponse+-- --         , responseAdminRespondToAuthChallenge $ --             adminRespondToAuthChallengeResponse --@@ -361,6 +520,9 @@ --         , responseResendConfirmationCode $ --             resendConfirmationCodeResponse --+--         , responseGetGroup $+--             getGroupResponse+-- --         , responseAdminSetUserSettings $ --             adminSetUserSettingsResponse --@@ -382,11 +544,21 @@     "UpdateUserPool"     "fixture/UpdateUserPool.yaml" +requestDeleteUserPoolDomain :: DeleteUserPoolDomain -> TestTree+requestDeleteUserPoolDomain = req+    "DeleteUserPoolDomain"+    "fixture/DeleteUserPoolDomain.yaml"+ requestAdminInitiateAuth :: AdminInitiateAuth -> TestTree requestAdminInitiateAuth = req     "AdminInitiateAuth"     "fixture/AdminInitiateAuth.yaml" +requestAdminLinkProviderForUser :: AdminLinkProviderForUser -> TestTree+requestAdminLinkProviderForUser = req+    "AdminLinkProviderForUser"+    "fixture/AdminLinkProviderForUser.yaml"+ requestAdminEnableUser :: AdminEnableUser -> TestTree requestAdminEnableUser = req     "AdminEnableUser"@@ -432,6 +604,11 @@     "ListUserImportJobs"     "fixture/ListUserImportJobs.yaml" +requestDescribeIdentityProvider :: DescribeIdentityProvider -> TestTree+requestDescribeIdentityProvider = req+    "DescribeIdentityProvider"+    "fixture/DescribeIdentityProvider.yaml"+ requestListUsers :: ListUsers -> TestTree requestListUsers = req     "ListUsers"@@ -442,6 +619,11 @@     "AdminDeleteUserAttributes"     "fixture/AdminDeleteUserAttributes.yaml" +requestDescribeUserPoolDomain :: DescribeUserPoolDomain -> TestTree+requestDescribeUserPoolDomain = req+    "DescribeUserPoolDomain"+    "fixture/DescribeUserPoolDomain.yaml"+ requestAdminUpdateUserAttributes :: AdminUpdateUserAttributes -> TestTree requestAdminUpdateUserAttributes = req     "AdminUpdateUserAttributes"@@ -457,6 +639,16 @@     "AdminUserGlobalSignOut"     "fixture/AdminUserGlobalSignOut.yaml" +requestListUsersInGroup :: ListUsersInGroup -> TestTree+requestListUsersInGroup = req+    "ListUsersInGroup"+    "fixture/ListUsersInGroup.yaml"++requestAdminDisableProviderForUser :: AdminDisableProviderForUser -> TestTree+requestAdminDisableProviderForUser = req+    "AdminDisableProviderForUser"+    "fixture/AdminDisableProviderForUser.yaml"+ requestForgotPassword :: ForgotPassword -> TestTree requestForgotPassword = req     "ForgotPassword"@@ -472,6 +664,11 @@     "InitiateAuth"     "fixture/InitiateAuth.yaml" +requestAdminListGroupsForUser :: AdminListGroupsForUser -> TestTree+requestAdminListGroupsForUser = req+    "AdminListGroupsForUser"+    "fixture/AdminListGroupsForUser.yaml"+ requestAdminConfirmSignUp :: AdminConfirmSignUp -> TestTree requestAdminConfirmSignUp = req     "AdminConfirmSignUp"@@ -482,6 +679,21 @@     "StartUserImportJob"     "fixture/StartUserImportJob.yaml" +requestCreateIdentityProvider :: CreateIdentityProvider -> TestTree+requestCreateIdentityProvider = req+    "CreateIdentityProvider"+    "fixture/CreateIdentityProvider.yaml"++requestSetUICustomization :: SetUICustomization -> TestTree+requestSetUICustomization = req+    "SetUICustomization"+    "fixture/SetUICustomization.yaml"++requestListIdentityProviders :: ListIdentityProviders -> TestTree+requestListIdentityProviders = req+    "ListIdentityProviders"+    "fixture/ListIdentityProviders.yaml"+ requestGetDevice :: GetDevice -> TestTree requestGetDevice = req     "GetDevice"@@ -492,11 +704,26 @@     "SignUp"     "fixture/SignUp.yaml" +requestDeleteResourceServer :: DeleteResourceServer -> TestTree+requestDeleteResourceServer = req+    "DeleteResourceServer"+    "fixture/DeleteResourceServer.yaml"++requestUpdateResourceServer :: UpdateResourceServer -> TestTree+requestUpdateResourceServer = req+    "UpdateResourceServer"+    "fixture/UpdateResourceServer.yaml"+ requestChangePassword :: ChangePassword -> TestTree requestChangePassword = req     "ChangePassword"     "fixture/ChangePassword.yaml" +requestCreateUserPoolDomain :: CreateUserPoolDomain -> TestTree+requestCreateUserPoolDomain = req+    "CreateUserPoolDomain"+    "fixture/CreateUserPoolDomain.yaml"+ requestRespondToAuthChallenge :: RespondToAuthChallenge -> TestTree requestRespondToAuthChallenge = req     "RespondToAuthChallenge"@@ -512,6 +739,16 @@     "AdminGetDevice"     "fixture/AdminGetDevice.yaml" +requestGetIdentityProviderByIdentifier :: GetIdentityProviderByIdentifier -> TestTree+requestGetIdentityProviderByIdentifier = req+    "GetIdentityProviderByIdentifier"+    "fixture/GetIdentityProviderByIdentifier.yaml"++requestAdminRemoveUserFromGroup :: AdminRemoveUserFromGroup -> TestTree+requestAdminRemoveUserFromGroup = req+    "AdminRemoveUserFromGroup"+    "fixture/AdminRemoveUserFromGroup.yaml"+ requestConfirmSignUp :: ConfirmSignUp -> TestTree requestConfirmSignUp = req     "ConfirmSignUp"@@ -537,6 +774,11 @@     "GetUser"     "fixture/GetUser.yaml" +requestGetUICustomization :: GetUICustomization -> TestTree+requestGetUICustomization = req+    "GetUICustomization"+    "fixture/GetUICustomization.yaml"+ requestGetCSVHeader :: GetCSVHeader -> TestTree requestGetCSVHeader = req     "GetCSVHeader"@@ -552,6 +794,11 @@     "AdminForgetDevice"     "fixture/AdminForgetDevice.yaml" +requestDescribeResourceServer :: DescribeResourceServer -> TestTree+requestDescribeResourceServer = req+    "DescribeResourceServer"+    "fixture/DescribeResourceServer.yaml"+ requestAdminUpdateDeviceStatus :: AdminUpdateDeviceStatus -> TestTree requestAdminUpdateDeviceStatus = req     "AdminUpdateDeviceStatus"@@ -602,6 +849,21 @@     "CreateUserPoolClient"     "fixture/CreateUserPoolClient.yaml" +requestCreateResourceServer :: CreateResourceServer -> TestTree+requestCreateResourceServer = req+    "CreateResourceServer"+    "fixture/CreateResourceServer.yaml"++requestCreateGroup :: CreateGroup -> TestTree+requestCreateGroup = req+    "CreateGroup"+    "fixture/CreateGroup.yaml"++requestAdminAddUserToGroup :: AdminAddUserToGroup -> TestTree+requestAdminAddUserToGroup = req+    "AdminAddUserToGroup"+    "fixture/AdminAddUserToGroup.yaml"+ requestStopUserImportJob :: StopUserImportJob -> TestTree requestStopUserImportJob = req     "StopUserImportJob"@@ -612,11 +874,41 @@     "DescribeUserImportJob"     "fixture/DescribeUserImportJob.yaml" +requestDeleteGroup :: DeleteGroup -> TestTree+requestDeleteGroup = req+    "DeleteGroup"+    "fixture/DeleteGroup.yaml"++requestUpdateGroup :: UpdateGroup -> TestTree+requestUpdateGroup = req+    "UpdateGroup"+    "fixture/UpdateGroup.yaml"+ requestGlobalSignOut :: GlobalSignOut -> TestTree requestGlobalSignOut = req     "GlobalSignOut"     "fixture/GlobalSignOut.yaml" +requestListGroups :: ListGroups -> TestTree+requestListGroups = req+    "ListGroups"+    "fixture/ListGroups.yaml"++requestUpdateIdentityProvider :: UpdateIdentityProvider -> TestTree+requestUpdateIdentityProvider = req+    "UpdateIdentityProvider"+    "fixture/UpdateIdentityProvider.yaml"++requestDeleteIdentityProvider :: DeleteIdentityProvider -> TestTree+requestDeleteIdentityProvider = req+    "DeleteIdentityProvider"+    "fixture/DeleteIdentityProvider.yaml"++requestListResourceServers :: ListResourceServers -> TestTree+requestListResourceServers = req+    "ListResourceServers"+    "fixture/ListResourceServers.yaml"+ requestAdminRespondToAuthChallenge :: AdminRespondToAuthChallenge -> TestTree requestAdminRespondToAuthChallenge = req     "AdminRespondToAuthChallenge"@@ -642,6 +934,11 @@     "ResendConfirmationCode"     "fixture/ResendConfirmationCode.yaml" +requestGetGroup :: GetGroup -> TestTree+requestGetGroup = req+    "GetGroup"+    "fixture/GetGroup.yaml"+ requestAdminSetUserSettings :: AdminSetUserSettings -> TestTree requestAdminSetUserSettings = req     "AdminSetUserSettings"@@ -668,6 +965,13 @@     cognitoIdentityProvider     (Proxy :: Proxy UpdateUserPool) +responseDeleteUserPoolDomain :: DeleteUserPoolDomainResponse -> TestTree+responseDeleteUserPoolDomain = res+    "DeleteUserPoolDomainResponse"+    "fixture/DeleteUserPoolDomainResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DeleteUserPoolDomain)+ responseAdminInitiateAuth :: AdminInitiateAuthResponse -> TestTree responseAdminInitiateAuth = res     "AdminInitiateAuthResponse"@@ -675,6 +979,13 @@     cognitoIdentityProvider     (Proxy :: Proxy AdminInitiateAuth) +responseAdminLinkProviderForUser :: AdminLinkProviderForUserResponse -> TestTree+responseAdminLinkProviderForUser = res+    "AdminLinkProviderForUserResponse"+    "fixture/AdminLinkProviderForUserResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy AdminLinkProviderForUser)+ responseAdminEnableUser :: AdminEnableUserResponse -> TestTree responseAdminEnableUser = res     "AdminEnableUserResponse"@@ -738,6 +1049,13 @@     cognitoIdentityProvider     (Proxy :: Proxy ListUserImportJobs) +responseDescribeIdentityProvider :: DescribeIdentityProviderResponse -> TestTree+responseDescribeIdentityProvider = res+    "DescribeIdentityProviderResponse"+    "fixture/DescribeIdentityProviderResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DescribeIdentityProvider)+ responseListUsers :: ListUsersResponse -> TestTree responseListUsers = res     "ListUsersResponse"@@ -752,6 +1070,13 @@     cognitoIdentityProvider     (Proxy :: Proxy AdminDeleteUserAttributes) +responseDescribeUserPoolDomain :: DescribeUserPoolDomainResponse -> TestTree+responseDescribeUserPoolDomain = res+    "DescribeUserPoolDomainResponse"+    "fixture/DescribeUserPoolDomainResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DescribeUserPoolDomain)+ responseAdminUpdateUserAttributes :: AdminUpdateUserAttributesResponse -> TestTree responseAdminUpdateUserAttributes = res     "AdminUpdateUserAttributesResponse"@@ -773,6 +1098,20 @@     cognitoIdentityProvider     (Proxy :: Proxy AdminUserGlobalSignOut) +responseListUsersInGroup :: ListUsersInGroupResponse -> TestTree+responseListUsersInGroup = res+    "ListUsersInGroupResponse"+    "fixture/ListUsersInGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy ListUsersInGroup)++responseAdminDisableProviderForUser :: AdminDisableProviderForUserResponse -> TestTree+responseAdminDisableProviderForUser = res+    "AdminDisableProviderForUserResponse"+    "fixture/AdminDisableProviderForUserResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy AdminDisableProviderForUser)+ responseForgotPassword :: ForgotPasswordResponse -> TestTree responseForgotPassword = res     "ForgotPasswordResponse"@@ -794,6 +1133,13 @@     cognitoIdentityProvider     (Proxy :: Proxy InitiateAuth) +responseAdminListGroupsForUser :: AdminListGroupsForUserResponse -> TestTree+responseAdminListGroupsForUser = res+    "AdminListGroupsForUserResponse"+    "fixture/AdminListGroupsForUserResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy AdminListGroupsForUser)+ responseAdminConfirmSignUp :: AdminConfirmSignUpResponse -> TestTree responseAdminConfirmSignUp = res     "AdminConfirmSignUpResponse"@@ -808,6 +1154,27 @@     cognitoIdentityProvider     (Proxy :: Proxy StartUserImportJob) +responseCreateIdentityProvider :: CreateIdentityProviderResponse -> TestTree+responseCreateIdentityProvider = res+    "CreateIdentityProviderResponse"+    "fixture/CreateIdentityProviderResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy CreateIdentityProvider)++responseSetUICustomization :: SetUICustomizationResponse -> TestTree+responseSetUICustomization = res+    "SetUICustomizationResponse"+    "fixture/SetUICustomizationResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy SetUICustomization)++responseListIdentityProviders :: ListIdentityProvidersResponse -> TestTree+responseListIdentityProviders = res+    "ListIdentityProvidersResponse"+    "fixture/ListIdentityProvidersResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy ListIdentityProviders)+ responseGetDevice :: GetDeviceResponse -> TestTree responseGetDevice = res     "GetDeviceResponse"@@ -822,6 +1189,20 @@     cognitoIdentityProvider     (Proxy :: Proxy SignUp) +responseDeleteResourceServer :: DeleteResourceServerResponse -> TestTree+responseDeleteResourceServer = res+    "DeleteResourceServerResponse"+    "fixture/DeleteResourceServerResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DeleteResourceServer)++responseUpdateResourceServer :: UpdateResourceServerResponse -> TestTree+responseUpdateResourceServer = res+    "UpdateResourceServerResponse"+    "fixture/UpdateResourceServerResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy UpdateResourceServer)+ responseChangePassword :: ChangePasswordResponse -> TestTree responseChangePassword = res     "ChangePasswordResponse"@@ -829,6 +1210,13 @@     cognitoIdentityProvider     (Proxy :: Proxy ChangePassword) +responseCreateUserPoolDomain :: CreateUserPoolDomainResponse -> TestTree+responseCreateUserPoolDomain = res+    "CreateUserPoolDomainResponse"+    "fixture/CreateUserPoolDomainResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy CreateUserPoolDomain)+ responseRespondToAuthChallenge :: RespondToAuthChallengeResponse -> TestTree responseRespondToAuthChallenge = res     "RespondToAuthChallengeResponse"@@ -850,6 +1238,20 @@     cognitoIdentityProvider     (Proxy :: Proxy AdminGetDevice) +responseGetIdentityProviderByIdentifier :: GetIdentityProviderByIdentifierResponse -> TestTree+responseGetIdentityProviderByIdentifier = res+    "GetIdentityProviderByIdentifierResponse"+    "fixture/GetIdentityProviderByIdentifierResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy GetIdentityProviderByIdentifier)++responseAdminRemoveUserFromGroup :: AdminRemoveUserFromGroupResponse -> TestTree+responseAdminRemoveUserFromGroup = res+    "AdminRemoveUserFromGroupResponse"+    "fixture/AdminRemoveUserFromGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy AdminRemoveUserFromGroup)+ responseConfirmSignUp :: ConfirmSignUpResponse -> TestTree responseConfirmSignUp = res     "ConfirmSignUpResponse"@@ -885,6 +1287,13 @@     cognitoIdentityProvider     (Proxy :: Proxy GetUser) +responseGetUICustomization :: GetUICustomizationResponse -> TestTree+responseGetUICustomization = res+    "GetUICustomizationResponse"+    "fixture/GetUICustomizationResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy GetUICustomization)+ responseGetCSVHeader :: GetCSVHeaderResponse -> TestTree responseGetCSVHeader = res     "GetCSVHeaderResponse"@@ -906,6 +1315,13 @@     cognitoIdentityProvider     (Proxy :: Proxy AdminForgetDevice) +responseDescribeResourceServer :: DescribeResourceServerResponse -> TestTree+responseDescribeResourceServer = res+    "DescribeResourceServerResponse"+    "fixture/DescribeResourceServerResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DescribeResourceServer)+ responseAdminUpdateDeviceStatus :: AdminUpdateDeviceStatusResponse -> TestTree responseAdminUpdateDeviceStatus = res     "AdminUpdateDeviceStatusResponse"@@ -976,6 +1392,27 @@     cognitoIdentityProvider     (Proxy :: Proxy CreateUserPoolClient) +responseCreateResourceServer :: CreateResourceServerResponse -> TestTree+responseCreateResourceServer = res+    "CreateResourceServerResponse"+    "fixture/CreateResourceServerResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy CreateResourceServer)++responseCreateGroup :: CreateGroupResponse -> TestTree+responseCreateGroup = res+    "CreateGroupResponse"+    "fixture/CreateGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy CreateGroup)++responseAdminAddUserToGroup :: AdminAddUserToGroupResponse -> TestTree+responseAdminAddUserToGroup = res+    "AdminAddUserToGroupResponse"+    "fixture/AdminAddUserToGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy AdminAddUserToGroup)+ responseStopUserImportJob :: StopUserImportJobResponse -> TestTree responseStopUserImportJob = res     "StopUserImportJobResponse"@@ -990,6 +1427,20 @@     cognitoIdentityProvider     (Proxy :: Proxy DescribeUserImportJob) +responseDeleteGroup :: DeleteGroupResponse -> TestTree+responseDeleteGroup = res+    "DeleteGroupResponse"+    "fixture/DeleteGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DeleteGroup)++responseUpdateGroup :: UpdateGroupResponse -> TestTree+responseUpdateGroup = res+    "UpdateGroupResponse"+    "fixture/UpdateGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy UpdateGroup)+ responseGlobalSignOut :: GlobalSignOutResponse -> TestTree responseGlobalSignOut = res     "GlobalSignOutResponse"@@ -997,6 +1448,34 @@     cognitoIdentityProvider     (Proxy :: Proxy GlobalSignOut) +responseListGroups :: ListGroupsResponse -> TestTree+responseListGroups = res+    "ListGroupsResponse"+    "fixture/ListGroupsResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy ListGroups)++responseUpdateIdentityProvider :: UpdateIdentityProviderResponse -> TestTree+responseUpdateIdentityProvider = res+    "UpdateIdentityProviderResponse"+    "fixture/UpdateIdentityProviderResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy UpdateIdentityProvider)++responseDeleteIdentityProvider :: DeleteIdentityProviderResponse -> TestTree+responseDeleteIdentityProvider = res+    "DeleteIdentityProviderResponse"+    "fixture/DeleteIdentityProviderResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy DeleteIdentityProvider)++responseListResourceServers :: ListResourceServersResponse -> TestTree+responseListResourceServers = res+    "ListResourceServersResponse"+    "fixture/ListResourceServersResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy ListResourceServers)+ responseAdminRespondToAuthChallenge :: AdminRespondToAuthChallengeResponse -> TestTree responseAdminRespondToAuthChallenge = res     "AdminRespondToAuthChallengeResponse"@@ -1031,6 +1510,13 @@     "fixture/ResendConfirmationCodeResponse.proto"     cognitoIdentityProvider     (Proxy :: Proxy ResendConfirmationCode)++responseGetGroup :: GetGroupResponse -> TestTree+responseGetGroup = res+    "GetGroupResponse"+    "fixture/GetGroupResponse.proto"+    cognitoIdentityProvider+    (Proxy :: Proxy GetGroup)  responseAdminSetUserSettings :: AdminSetUserSettingsResponse -> TestTree responseAdminSetUserSettings = res