{-# LANGUAGE OverloadedStrings #-}
module Network.AWS.CognitoIdentityProvider.Types
(
cognitoIdentityProvider
, _UnsupportedUserStateException
, _PasswordResetRequiredException
, _InvalidParameterException
, _InvalidLambdaResponseException
, _InvalidEmailRoleAccessPolicyException
, _UnsupportedIdentityProviderException
, _UserNotFoundException
, _UnexpectedLambdaException
, _NotAuthorizedException
, _InternalErrorException
, _InvalidUserPoolConfigurationException
, _InvalidSmsRoleAccessPolicyException
, _InvalidOAuthFlowException
, _CodeMismatchException
, _UserImportInProgressException
, _InvalidSmsRoleTrustRelationshipException
, _UserPoolTaggingException
, _SoftwareTokenMFANotFoundException
, _TooManyRequestsException
, _ConcurrentModificationException
, _UserPoolAddOnNotEnabledException
, _UserLambdaValidationException
, _PreconditionNotMetException
, _ExpiredCodeException
, _TooManyFailedAttemptsException
, _EnableSoftwareTokenMFAException
, _UserNotConfirmedException
, _GroupExistsException
, _CodeDeliveryFailureException
, _ScopeDoesNotExistException
, _ResourceNotFoundException
, _MFAMethodNotFoundException
, _AliasExistsException
, _DuplicateProviderException
, _LimitExceededException
, _InvalidPasswordException
, _UsernameExistsException
, AccountTakeoverEventActionType (..)
, AdvancedSecurityModeType (..)
, AliasAttributeType (..)
, AttributeDataType (..)
, AuthFlowType (..)
, ChallengeName (..)
, ChallengeNameType (..)
, ChallengeResponse (..)
, CompromisedCredentialsEventActionType (..)
, DefaultEmailOptionType (..)
, DeliveryMediumType (..)
, DeviceRememberedStatusType (..)
, DomainStatusType (..)
, EventFilterType (..)
, EventResponseType (..)
, EventType (..)
, ExplicitAuthFlowsType (..)
, FeedbackValueType (..)
, IdentityProviderTypeType (..)
, MessageActionType (..)
, OAuthFlowType (..)
, RiskDecisionType (..)
, RiskLevelType (..)
, StatusType (..)
, UserImportJobStatusType (..)
, UserPoolMFAType (..)
, UserStatusType (..)
, UsernameAttributeType (..)
, VerifiedAttributeType (..)
, VerifySoftwareTokenResponseType (..)
, AccountTakeoverActionType
, accountTakeoverActionType
, atatNotify
, atatEventAction
, AccountTakeoverActionsType
, accountTakeoverActionsType
, atatLowAction
, atatHighAction
, atatMediumAction
, AccountTakeoverRiskConfigurationType
, accountTakeoverRiskConfigurationType
, atrctNotifyConfiguration
, atrctActions
, AdminCreateUserConfigType
, adminCreateUserConfigType
, acuctAllowAdminCreateUserOnly
, acuctUnusedAccountValidityDays
, acuctInviteMessageTemplate
, AnalyticsConfigurationType
, analyticsConfigurationType
, actUserDataShared
, actApplicationId
, actRoleARN
, actExternalId
, AnalyticsMetadataType
, analyticsMetadataType
, amtAnalyticsEndpointId
, AttributeType
, attributeType
, atValue
, atName
, AuthEventType
, authEventType
, aetEventRisk
, aetEventResponse
, aetEventContextData
, aetChallengeResponses
, aetEventType
, aetCreationDate
, aetEventFeedback
, aetEventId
, AuthenticationResultType
, authenticationResultType
, artAccessToken
, artRefreshToken
, artNewDeviceMetadata
, artExpiresIn
, artTokenType
, artIdToken
, ChallengeResponseType
, challengeResponseType
, crtChallengeName
, crtChallengeResponse
, CodeDeliveryDetailsType
, codeDeliveryDetailsType
, cddtDestination
, cddtDeliveryMedium
, cddtAttributeName
, CompromisedCredentialsActionsType
, compromisedCredentialsActionsType
, ccatEventAction
, CompromisedCredentialsRiskConfigurationType
, compromisedCredentialsRiskConfigurationType
, ccrctEventFilter
, ccrctActions
, ContextDataType
, contextDataType
, cdtEncodedData
, cdtIPAddress
, cdtServerName
, cdtServerPath
, cdtHTTPHeaders
, DeviceConfigurationType
, deviceConfigurationType
, dctChallengeRequiredOnNewDevice
, dctDeviceOnlyRememberedOnUserPrompt
, DeviceSecretVerifierConfigType
, deviceSecretVerifierConfigType
, dsvctPasswordVerifier
, dsvctSalt
, DeviceType
, deviceType
, dtDeviceLastModifiedDate
, dtDeviceCreateDate
, dtDeviceAttributes
, dtDeviceKey
, dtDeviceLastAuthenticatedDate
, DomainDescriptionType
, domainDescriptionType
, ddtStatus
, ddtCloudFrontDistribution
, ddtUserPoolId
, ddtDomain
, ddtAWSAccountId
, ddtVersion
, ddtS3Bucket
, EmailConfigurationType
, emailConfigurationType
, ectSourceARN
, ectReplyToEmailAddress
, EventContextDataType
, eventContextDataType
, ecdtIPAddress
, ecdtCountry
, ecdtCity
, ecdtDeviceName
, ecdtTimezone
, EventFeedbackType
, eventFeedbackType
, eftFeedbackDate
, eftFeedbackValue
, eftProvider
, EventRiskType
, eventRiskType
, ertRiskLevel
, ertRiskDecision
, GroupType
, groupType
, gtLastModifiedDate
, gtUserPoolId
, gtCreationDate
, gtPrecedence
, gtGroupName
, gtDescription
, gtRoleARN
, HTTPHeader
, hTTPHeader
, httphHeaderValue
, httphHeaderName
, IdentityProviderType
, identityProviderType
, iptLastModifiedDate
, iptUserPoolId
, iptProviderType
, iptCreationDate
, iptIdpIdentifiers
, iptAttributeMapping
, iptProviderDetails
, iptProviderName
, LambdaConfigType
, lambdaConfigType
, lctPreAuthentication
, lctCreateAuthChallenge
, lctVerifyAuthChallengeResponse
, lctPostAuthentication
, lctCustomMessage
, lctDefineAuthChallenge
, lctPostConfirmation
, lctPreTokenGeneration
, lctUserMigration
, lctPreSignUp
, MFAOptionType
, mfaOptionType
, motDeliveryMedium
, motAttributeName
, MessageTemplateType
, messageTemplateType
, mttEmailSubject
, mttSMSMessage
, mttEmailMessage
, NewDeviceMetadataType
, newDeviceMetadataType
, ndmtDeviceGroupKey
, ndmtDeviceKey
, NotifyConfigurationType
, notifyConfigurationType
, nctNoActionEmail
, nctFrom
, nctReplyTo
, nctBlockEmail
, nctMFAEmail
, nctSourceARN
, NotifyEmailType
, notifyEmailType
, netTextBody
, netHTMLBody
, netSubject
, NumberAttributeConstraintsType
, numberAttributeConstraintsType
, nactMaxValue
, nactMinValue
, PasswordPolicyType
, passwordPolicyType
, pptRequireNumbers
, pptRequireUppercase
, pptRequireLowercase
, pptMinimumLength
, pptRequireSymbols
, ProviderDescription
, providerDescription
, pdLastModifiedDate
, pdProviderType
, pdCreationDate
, pdProviderName
, ProviderUserIdentifierType
, providerUserIdentifierType
, puitProviderAttributeValue
, puitProviderAttributeName
, puitProviderName
, ResourceServerScopeType
, resourceServerScopeType
, rsstScopeName
, rsstScopeDescription
, ResourceServerType
, resourceServerType
, rstUserPoolId
, rstIdentifier
, rstScopes
, rstName
, RiskConfigurationType
, riskConfigurationType
, rctRiskExceptionConfiguration
, rctClientId
, rctAccountTakeoverRiskConfiguration
, rctLastModifiedDate
, rctUserPoolId
, rctCompromisedCredentialsRiskConfiguration
, RiskExceptionConfigurationType
, riskExceptionConfigurationType
, rectSkippedIPRangeList
, rectBlockedIPRangeList
, SMSMFASettingsType
, sMSMFASettingsType
, smsmstEnabled
, smsmstPreferredMFA
, SchemaAttributeType
, schemaAttributeType
, satNumberAttributeConstraints
, satRequired
, satAttributeDataType
, satStringAttributeConstraints
, satName
, satDeveloperOnlyAttribute
, satMutable
, SmsConfigurationType
, smsConfigurationType
, sctExternalId
, sctSNSCallerARN
, SmsMFAConfigType
, smsMFAConfigType
, smctSmsAuthenticationMessage
, smctSmsConfiguration
, SoftwareTokenMFAConfigType
, softwareTokenMFAConfigType
, stmctEnabled
, SoftwareTokenMFASettingsType
, softwareTokenMFASettingsType
, stmstEnabled
, stmstPreferredMFA
, StringAttributeConstraintsType
, stringAttributeConstraintsType
, sactMaxLength
, sactMinLength
, UICustomizationType
, uICustomizationType
, uictClientId
, uictLastModifiedDate
, uictUserPoolId
, uictCSS
, uictCSSVersion
, uictImageURL
, uictCreationDate
, UserContextDataType
, userContextDataType
, ucdtEncodedData
, UserImportJobType
, userImportJobType
, uijtStatus
, uijtSkippedUsers
, uijtJobId
, uijtUserPoolId
, uijtJobName
, uijtPreSignedURL
, uijtFailedUsers
, uijtStartDate
, uijtCompletionMessage
, uijtCreationDate
, uijtCompletionDate
, uijtCloudWatchLogsRoleARN
, uijtImportedUsers
, UserPoolAddOnsType
, userPoolAddOnsType
, upaotAdvancedSecurityMode
, UserPoolClientDescription
, userPoolClientDescription
, upcdClientId
, upcdUserPoolId
, upcdClientName
, UserPoolClientType
, userPoolClientType
, upctRefreshTokenValidity
, upctClientId
, upctExplicitAuthFlows
, upctClientSecret
, upctLastModifiedDate
, upctSupportedIdentityProviders
, upctLogoutURLs
, upctAllowedOAuthFlowsUserPoolClient
, upctUserPoolId
, upctDefaultRedirectURI
, upctWriteAttributes
, upctCreationDate
, upctReadAttributes
, upctAllowedOAuthScopes
, upctAllowedOAuthFlows
, upctAnalyticsConfiguration
, upctClientName
, upctCallbackURLs
, UserPoolDescriptionType
, userPoolDescriptionType
, updtStatus
, updtLastModifiedDate
, updtName
, updtId
, updtCreationDate
, updtLambdaConfig
, UserPoolPolicyType
, userPoolPolicyType
, upptPasswordPolicy
, UserPoolType
, userPoolType
, uptStatus
, uptUserPoolTags
, uptEmailConfigurationFailure
, uptLastModifiedDate
, uptVerificationMessageTemplate
, uptEstimatedNumberOfUsers
, uptDomain
, uptEmailVerificationMessage
, uptSmsAuthenticationMessage
, uptUserPoolAddOns
, uptSchemaAttributes
, uptEmailVerificationSubject
, uptUsernameAttributes
, uptAliasAttributes
, uptEmailConfiguration
, uptSmsVerificationMessage
, uptName
, uptMFAConfiguration
, uptId
, uptSmsConfigurationFailure
, uptCreationDate
, uptLambdaConfig
, uptSmsConfiguration
, uptAdminCreateUserConfig
, uptDeviceConfiguration
, uptAutoVerifiedAttributes
, uptPolicies
, UserType
, userType
, utEnabled
, utUserStatus
, utUsername
, utUserCreateDate
, utAttributes
, utMFAOptions
, utUserLastModifiedDate
, 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
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
}
where
retry =
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"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
| has (hasCode "RequestThrottledException" . hasStatus 400) e =
Just "request_throttled_exception"
| has (hasStatus 502) e = Just "bad_gateway"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_UnsupportedUserStateException :: AsError a => Getting (First ServiceError) a ServiceError
_UnsupportedUserStateException =
_MatchServiceError cognitoIdentityProvider "UnsupportedUserStateException"
_PasswordResetRequiredException :: AsError a => Getting (First ServiceError) a ServiceError
_PasswordResetRequiredException =
_MatchServiceError cognitoIdentityProvider "PasswordResetRequiredException"
_InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidParameterException =
_MatchServiceError cognitoIdentityProvider "InvalidParameterException"
_InvalidLambdaResponseException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidLambdaResponseException =
_MatchServiceError cognitoIdentityProvider "InvalidLambdaResponseException"
_InvalidEmailRoleAccessPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidEmailRoleAccessPolicyException =
_MatchServiceError
cognitoIdentityProvider
"InvalidEmailRoleAccessPolicyException"
_UnsupportedIdentityProviderException :: AsError a => Getting (First ServiceError) a ServiceError
_UnsupportedIdentityProviderException =
_MatchServiceError
cognitoIdentityProvider
"UnsupportedIdentityProviderException"
_UserNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_UserNotFoundException =
_MatchServiceError cognitoIdentityProvider "UserNotFoundException"
_UnexpectedLambdaException :: AsError a => Getting (First ServiceError) a ServiceError
_UnexpectedLambdaException =
_MatchServiceError cognitoIdentityProvider "UnexpectedLambdaException"
_NotAuthorizedException :: AsError a => Getting (First ServiceError) a ServiceError
_NotAuthorizedException =
_MatchServiceError cognitoIdentityProvider "NotAuthorizedException"
_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError
_InternalErrorException =
_MatchServiceError cognitoIdentityProvider "InternalErrorException"
_InvalidUserPoolConfigurationException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidUserPoolConfigurationException =
_MatchServiceError
cognitoIdentityProvider
"InvalidUserPoolConfigurationException"
_InvalidSmsRoleAccessPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidSmsRoleAccessPolicyException =
_MatchServiceError
cognitoIdentityProvider
"InvalidSmsRoleAccessPolicyException"
_InvalidOAuthFlowException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidOAuthFlowException =
_MatchServiceError cognitoIdentityProvider "InvalidOAuthFlowException"
_CodeMismatchException :: AsError a => Getting (First ServiceError) a ServiceError
_CodeMismatchException =
_MatchServiceError cognitoIdentityProvider "CodeMismatchException"
_UserImportInProgressException :: AsError a => Getting (First ServiceError) a ServiceError
_UserImportInProgressException =
_MatchServiceError cognitoIdentityProvider "UserImportInProgressException"
_InvalidSmsRoleTrustRelationshipException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidSmsRoleTrustRelationshipException =
_MatchServiceError
cognitoIdentityProvider
"InvalidSmsRoleTrustRelationshipException"
_UserPoolTaggingException :: AsError a => Getting (First ServiceError) a ServiceError
_UserPoolTaggingException =
_MatchServiceError cognitoIdentityProvider "UserPoolTaggingException"
_SoftwareTokenMFANotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_SoftwareTokenMFANotFoundException =
_MatchServiceError cognitoIdentityProvider "SoftwareTokenMFANotFoundException"
_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError
_TooManyRequestsException =
_MatchServiceError cognitoIdentityProvider "TooManyRequestsException"
_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError
_ConcurrentModificationException =
_MatchServiceError cognitoIdentityProvider "ConcurrentModificationException"
_UserPoolAddOnNotEnabledException :: AsError a => Getting (First ServiceError) a ServiceError
_UserPoolAddOnNotEnabledException =
_MatchServiceError cognitoIdentityProvider "UserPoolAddOnNotEnabledException"
_UserLambdaValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_UserLambdaValidationException =
_MatchServiceError cognitoIdentityProvider "UserLambdaValidationException"
_PreconditionNotMetException :: AsError a => Getting (First ServiceError) a ServiceError
_PreconditionNotMetException =
_MatchServiceError cognitoIdentityProvider "PreconditionNotMetException"
_ExpiredCodeException :: AsError a => Getting (First ServiceError) a ServiceError
_ExpiredCodeException =
_MatchServiceError cognitoIdentityProvider "ExpiredCodeException"
_TooManyFailedAttemptsException :: AsError a => Getting (First ServiceError) a ServiceError
_TooManyFailedAttemptsException =
_MatchServiceError cognitoIdentityProvider "TooManyFailedAttemptsException"
_EnableSoftwareTokenMFAException :: AsError a => Getting (First ServiceError) a ServiceError
_EnableSoftwareTokenMFAException =
_MatchServiceError cognitoIdentityProvider "EnableSoftwareTokenMFAException"
_UserNotConfirmedException :: AsError a => Getting (First ServiceError) a ServiceError
_UserNotConfirmedException =
_MatchServiceError cognitoIdentityProvider "UserNotConfirmedException"
_GroupExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_GroupExistsException =
_MatchServiceError cognitoIdentityProvider "GroupExistsException"
_CodeDeliveryFailureException :: AsError a => Getting (First ServiceError) a ServiceError
_CodeDeliveryFailureException =
_MatchServiceError cognitoIdentityProvider "CodeDeliveryFailureException"
_ScopeDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
_ScopeDoesNotExistException =
_MatchServiceError cognitoIdentityProvider "ScopeDoesNotExistException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_MatchServiceError cognitoIdentityProvider "ResourceNotFoundException"
_MFAMethodNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_MFAMethodNotFoundException =
_MatchServiceError cognitoIdentityProvider "MFAMethodNotFoundException"
_AliasExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_AliasExistsException =
_MatchServiceError cognitoIdentityProvider "AliasExistsException"
_DuplicateProviderException :: AsError a => Getting (First ServiceError) a ServiceError
_DuplicateProviderException =
_MatchServiceError cognitoIdentityProvider "DuplicateProviderException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException =
_MatchServiceError cognitoIdentityProvider "LimitExceededException"
_InvalidPasswordException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidPasswordException =
_MatchServiceError cognitoIdentityProvider "InvalidPasswordException"
_UsernameExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_UsernameExistsException =
_MatchServiceError cognitoIdentityProvider "UsernameExistsException"