Amazon Cognito Identity Provider
  1. Root
Amazon Cognito Identity Provider
  • Root
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
  1. Root

/

POST
/
Creates a new Amazon Cognito user pool and sets the password policy for the pool.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "PoolName": "string",
    "Policies": {
        "PasswordPolicy": {
            "MinimumLength": 0,
            "RequireUppercase": true,
            "RequireLowercase": true,
            "RequireNumbers": true,
            "RequireSymbols": true,
            "TemporaryPasswordValidityDays": 0
        }
    },
    "DeletionProtection": "ACTIVE",
    "LambdaConfig": {
        "PreSignUp": "string",
        "CustomMessage": "string",
        "PostConfirmation": "string",
        "PreAuthentication": "string",
        "PostAuthentication": "string",
        "DefineAuthChallenge": "string",
        "CreateAuthChallenge": "string",
        "VerifyAuthChallengeResponse": "string",
        "PreTokenGeneration": "string",
        "UserMigration": "string",
        "CustomSMSSender": {
            "LambdaVersion": "V1_0",
            "LambdaArn": "string"
        },
        "CustomEmailSender": {
            "LambdaVersion": "V1_0",
            "LambdaArn": "string"
        },
        "KMSKeyID": "string"
    },
    "AutoVerifiedAttributes": [],
    "AliasAttributes": [],
    "UsernameAttributes": [],
    "SmsVerificationMessage": "string",
    "EmailVerificationMessage": "string",
    "EmailVerificationSubject": "string",
    "VerificationMessageTemplate": {
        "SmsMessage": "string",
        "EmailMessage": "string",
        "EmailSubject": "string",
        "EmailMessageByLink": "string",
        "EmailSubjectByLink": "string",
        "DefaultEmailOption": "CONFIRM_WITH_LINK"
    },
    "SmsAuthenticationMessage": "string",
    "MfaConfiguration": "OFF",
    "UserAttributeUpdateSettings": {},
    "DeviceConfiguration": {},
    "EmailConfiguration": {},
    "SmsConfiguration": {
        "SnsCallerArn": "string",
        "ExternalId": "string",
        "SnsRegion": "string"
    },
    "UserPoolTags": {
        "property1": "string",
        "property2": "string"
    },
    "AdminCreateUserConfig": {
        "AllowAdminCreateUserOnly": true,
        "UnusedAccountValidityDays": 0,
        "InviteMessageTemplate": {
            "SMSMessage": "string",
            "EmailMessage": "string",
            "EmailSubject": "string"
        }
    },
    "Schema": [],
    "UserPoolAddOns": {
        "AdvancedSecurityMode": "OFF"
    },
    "UsernameConfiguration": {
        "CaseSensitive": true
    },
    "AccountRecoverySetting": {
        "RecoveryMechanisms": []
    }
}'
Response Response Example
200 - Example 1
{
    "UserPool": {
        "Id": "string",
        "Name": "string",
        "Policies": {
            "PasswordPolicy": {
                "MinimumLength": 0,
                "RequireUppercase": true,
                "RequireLowercase": true,
                "RequireNumbers": true,
                "RequireSymbols": true,
                "TemporaryPasswordValidityDays": 0
            }
        },
        "DeletionProtection": "ACTIVE",
        "LambdaConfig": {
            "PreSignUp": "string",
            "CustomMessage": "string",
            "PostConfirmation": "string",
            "PreAuthentication": "string",
            "PostAuthentication": "string",
            "DefineAuthChallenge": "string",
            "CreateAuthChallenge": "string",
            "VerifyAuthChallengeResponse": "string",
            "PreTokenGeneration": "string",
            "UserMigration": "string",
            "CustomSMSSender": {
                "LambdaVersion": "V1_0",
                "LambdaArn": "string"
            },
            "CustomEmailSender": {
                "LambdaVersion": "V1_0",
                "LambdaArn": "string"
            },
            "KMSKeyID": "string"
        },
        "Status": "Enabled",
        "LastModifiedDate": "string",
        "CreationDate": "string",
        "SchemaAttributes": [],
        "AutoVerifiedAttributes": [],
        "AliasAttributes": [],
        "UsernameAttributes": [],
        "SmsVerificationMessage": "string",
        "EmailVerificationMessage": "string",
        "EmailVerificationSubject": "string",
        "VerificationMessageTemplate": {
            "SmsMessage": "string",
            "EmailMessage": "string",
            "EmailSubject": "string",
            "EmailMessageByLink": "string",
            "EmailSubjectByLink": "string",
            "DefaultEmailOption": "CONFIRM_WITH_LINK"
        },
        "SmsAuthenticationMessage": "string",
        "UserAttributeUpdateSettings": {},
        "MfaConfiguration": "OFF",
        "DeviceConfiguration": {},
        "EstimatedNumberOfUsers": 0,
        "EmailConfiguration": {},
        "SmsConfiguration": {
            "SnsCallerArn": "string",
            "ExternalId": "string",
            "SnsRegion": "string"
        },
        "UserPoolTags": {
            "property1": "string",
            "property2": "string"
        },
        "SmsConfigurationFailure": "string",
        "EmailConfigurationFailure": "string",
        "Domain": "string",
        "CustomDomain": "string",
        "AdminCreateUserConfig": {
            "AllowAdminCreateUserOnly": true,
            "UnusedAccountValidityDays": 0,
            "InviteMessageTemplate": {
                "SMSMessage": "string",
                "EmailMessage": "string",
                "EmailSubject": "string"
            }
        },
        "UserPoolAddOns": {
            "AdvancedSecurityMode": "OFF"
        },
        "UsernameConfiguration": {
            "CaseSensitive": true
        },
        "Arn": "string",
        "AccountRecoverySetting": {
            "RecoveryMechanisms": []
        }
    }
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠480InvalidParameterException
🟠481TooManyRequestsException
🟠482LimitExceededException
🟠483InvalidSmsRoleAccessPolicyException
🟠484InvalidSmsRoleTrustRelationshipException
🟠485InvalidEmailRoleAccessPolicyException
🟠486NotAuthorizedException
🟠487UserPoolTaggingException
🟠488InternalErrorException
Modified at 2023-08-15 07:11:06
Previous
/
Next
/
Built with