1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2016-04-18", 5 "endpointPrefix":"cognito-idp", 6 "jsonVersion":"1.1", 7 "protocol":"json", 8 "serviceFullName":"Amazon Cognito Identity Provider", 9 "serviceId":"Cognito Identity Provider", 10 "signatureVersion":"v4", 11 "targetPrefix":"AWSCognitoIdentityProviderService", 12 "uid":"cognito-idp-2016-04-18" 13 }, 14 "operations":{ 15 "AddCustomAttributes":{ 16 "name":"AddCustomAttributes", 17 "http":{ 18 "method":"POST", 19 "requestUri":"/" 20 }, 21 "input":{"shape":"AddCustomAttributesRequest"}, 22 "output":{"shape":"AddCustomAttributesResponse"}, 23 "errors":[ 24 {"shape":"ResourceNotFoundException"}, 25 {"shape":"InvalidParameterException"}, 26 {"shape":"TooManyRequestsException"}, 27 {"shape":"NotAuthorizedException"}, 28 {"shape":"UserImportInProgressException"}, 29 {"shape":"InternalErrorException"} 30 ], 31 "documentation":"<p>Adds additional user attributes to the user pool schema.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 32 }, 33 "AdminAddUserToGroup":{ 34 "name":"AdminAddUserToGroup", 35 "http":{ 36 "method":"POST", 37 "requestUri":"/" 38 }, 39 "input":{"shape":"AdminAddUserToGroupRequest"}, 40 "errors":[ 41 {"shape":"InvalidParameterException"}, 42 {"shape":"ResourceNotFoundException"}, 43 {"shape":"TooManyRequestsException"}, 44 {"shape":"NotAuthorizedException"}, 45 {"shape":"UserNotFoundException"}, 46 {"shape":"InternalErrorException"} 47 ], 48 "documentation":"<p>Adds a user to a group. A user who is in a group can present a preferred-role claim to an identity pool, and populates a <code>cognito:groups</code> claim to their access and identity tokens.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 49 }, 50 "AdminConfirmSignUp":{ 51 "name":"AdminConfirmSignUp", 52 "http":{ 53 "method":"POST", 54 "requestUri":"/" 55 }, 56 "input":{"shape":"AdminConfirmSignUpRequest"}, 57 "output":{"shape":"AdminConfirmSignUpResponse"}, 58 "errors":[ 59 {"shape":"ResourceNotFoundException"}, 60 {"shape":"InvalidParameterException"}, 61 {"shape":"UnexpectedLambdaException"}, 62 {"shape":"UserLambdaValidationException"}, 63 {"shape":"NotAuthorizedException"}, 64 {"shape":"TooManyFailedAttemptsException"}, 65 {"shape":"InvalidLambdaResponseException"}, 66 {"shape":"TooManyRequestsException"}, 67 {"shape":"LimitExceededException"}, 68 {"shape":"UserNotFoundException"}, 69 {"shape":"InternalErrorException"} 70 ], 71 "documentation":"<p>This IAM-authenticated API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.</p> <p>Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users confirm their accounts when they respond to their invitation email message and choose a password.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 72 }, 73 "AdminCreateUser":{ 74 "name":"AdminCreateUser", 75 "http":{ 76 "method":"POST", 77 "requestUri":"/" 78 }, 79 "input":{"shape":"AdminCreateUserRequest"}, 80 "output":{"shape":"AdminCreateUserResponse"}, 81 "errors":[ 82 {"shape":"ResourceNotFoundException"}, 83 {"shape":"InvalidParameterException"}, 84 {"shape":"UserNotFoundException"}, 85 {"shape":"UsernameExistsException"}, 86 {"shape":"InvalidPasswordException"}, 87 {"shape":"CodeDeliveryFailureException"}, 88 {"shape":"UnexpectedLambdaException"}, 89 {"shape":"UserLambdaValidationException"}, 90 {"shape":"InvalidLambdaResponseException"}, 91 {"shape":"PreconditionNotMetException"}, 92 {"shape":"InvalidSmsRoleAccessPolicyException"}, 93 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 94 {"shape":"TooManyRequestsException"}, 95 {"shape":"NotAuthorizedException"}, 96 {"shape":"UnsupportedUserStateException"}, 97 {"shape":"InternalErrorException"} 98 ], 99 "documentation":"<p>Creates a new user in the specified user pool.</p> <p>If <code>MessageAction</code> isn't set, the default is to send a welcome message via email or phone (SMS).</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>This message is based on a template that you configured in your call to create or update a user pool. This template includes your custom sign-up instructions and placeholders for user name and temporary password.</p> <p>Alternatively, you can call <code>AdminCreateUser</code> with <code>SUPPRESS</code> for the <code>MessageAction</code> parameter, and Amazon Cognito won't send any email. </p> <p>In either case, the user will be in the <code>FORCE_CHANGE_PASSWORD</code> state until they sign in and change their password.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 100 }, 101 "AdminDeleteUser":{ 102 "name":"AdminDeleteUser", 103 "http":{ 104 "method":"POST", 105 "requestUri":"/" 106 }, 107 "input":{"shape":"AdminDeleteUserRequest"}, 108 "errors":[ 109 {"shape":"ResourceNotFoundException"}, 110 {"shape":"InvalidParameterException"}, 111 {"shape":"TooManyRequestsException"}, 112 {"shape":"NotAuthorizedException"}, 113 {"shape":"UserNotFoundException"}, 114 {"shape":"InternalErrorException"} 115 ], 116 "documentation":"<p>Deletes a user as an administrator. Works on any user.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 117 }, 118 "AdminDeleteUserAttributes":{ 119 "name":"AdminDeleteUserAttributes", 120 "http":{ 121 "method":"POST", 122 "requestUri":"/" 123 }, 124 "input":{"shape":"AdminDeleteUserAttributesRequest"}, 125 "output":{"shape":"AdminDeleteUserAttributesResponse"}, 126 "errors":[ 127 {"shape":"ResourceNotFoundException"}, 128 {"shape":"InvalidParameterException"}, 129 {"shape":"TooManyRequestsException"}, 130 {"shape":"NotAuthorizedException"}, 131 {"shape":"UserNotFoundException"}, 132 {"shape":"InternalErrorException"} 133 ], 134 "documentation":"<p>Deletes the user attributes in a user pool as an administrator. Works on any user.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 135 }, 136 "AdminDisableProviderForUser":{ 137 "name":"AdminDisableProviderForUser", 138 "http":{ 139 "method":"POST", 140 "requestUri":"/" 141 }, 142 "input":{"shape":"AdminDisableProviderForUserRequest"}, 143 "output":{"shape":"AdminDisableProviderForUserResponse"}, 144 "errors":[ 145 {"shape":"ResourceNotFoundException"}, 146 {"shape":"InvalidParameterException"}, 147 {"shape":"TooManyRequestsException"}, 148 {"shape":"NotAuthorizedException"}, 149 {"shape":"UserNotFoundException"}, 150 {"shape":"AliasExistsException"}, 151 {"shape":"InternalErrorException"} 152 ], 153 "documentation":"<p>Prevents the user from signing in with the specified external (SAML or social) identity provider (IdP). If the user that you want to deactivate is a Amazon Cognito user pools native username + password user, they can't use their password to sign in. If the user to deactivate is a linked external IdP user, any link between that user and an existing user is removed. When the external user signs in again, and the user is no longer attached to the previously linked <code>DestinationUser</code>, the user must create a new user account. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html\">AdminLinkProviderForUser</a>.</p> <p>The <code>ProviderName</code> must match the value specified when creating an IdP for the pool. </p> <p>To deactivate a native username + password user, the <code>ProviderName</code> value must be <code>Cognito</code> and the <code>ProviderAttributeName</code> must be <code>Cognito_Subject</code>. The <code>ProviderAttributeValue</code> must be the name that is used in the user pool for the user.</p> <p>The <code>ProviderAttributeName</code> must always be <code>Cognito_Subject</code> for social IdPs. The <code>ProviderAttributeValue</code> must always be the exact subject that was used when the user was originally linked as a source user.</p> <p>For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign in, the <code>ProviderAttributeName</code> and <code>ProviderAttributeValue</code> must be the same values that were used for the <code>SourceUser</code> when the identities were originally linked using <code> AdminLinkProviderForUser</code> call. (If the linking was done with <code>ProviderAttributeName</code> set to <code>Cognito_Subject</code>, the same applies here). However, if the user has already signed in, the <code>ProviderAttributeName</code> must be <code>Cognito_Subject</code> and <code>ProviderAttributeValue</code> must be the subject of the SAML assertion.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 154 }, 155 "AdminDisableUser":{ 156 "name":"AdminDisableUser", 157 "http":{ 158 "method":"POST", 159 "requestUri":"/" 160 }, 161 "input":{"shape":"AdminDisableUserRequest"}, 162 "output":{"shape":"AdminDisableUserResponse"}, 163 "errors":[ 164 {"shape":"ResourceNotFoundException"}, 165 {"shape":"InvalidParameterException"}, 166 {"shape":"TooManyRequestsException"}, 167 {"shape":"NotAuthorizedException"}, 168 {"shape":"UserNotFoundException"}, 169 {"shape":"InternalErrorException"} 170 ], 171 "documentation":"<p>Deactivates a user and revokes all access tokens for the user. A deactivated user can't sign in, but still appears in the responses to <code>GetUser</code> and <code>ListUsers</code> API requests.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 172 }, 173 "AdminEnableUser":{ 174 "name":"AdminEnableUser", 175 "http":{ 176 "method":"POST", 177 "requestUri":"/" 178 }, 179 "input":{"shape":"AdminEnableUserRequest"}, 180 "output":{"shape":"AdminEnableUserResponse"}, 181 "errors":[ 182 {"shape":"ResourceNotFoundException"}, 183 {"shape":"InvalidParameterException"}, 184 {"shape":"TooManyRequestsException"}, 185 {"shape":"NotAuthorizedException"}, 186 {"shape":"UserNotFoundException"}, 187 {"shape":"InternalErrorException"} 188 ], 189 "documentation":"<p>Enables the specified user as an administrator. Works on any user.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 190 }, 191 "AdminForgetDevice":{ 192 "name":"AdminForgetDevice", 193 "http":{ 194 "method":"POST", 195 "requestUri":"/" 196 }, 197 "input":{"shape":"AdminForgetDeviceRequest"}, 198 "errors":[ 199 {"shape":"ResourceNotFoundException"}, 200 {"shape":"InvalidParameterException"}, 201 {"shape":"InvalidUserPoolConfigurationException"}, 202 {"shape":"TooManyRequestsException"}, 203 {"shape":"NotAuthorizedException"}, 204 {"shape":"UserNotFoundException"}, 205 {"shape":"InternalErrorException"} 206 ], 207 "documentation":"<p>Forgets the device, as an administrator.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 208 }, 209 "AdminGetDevice":{ 210 "name":"AdminGetDevice", 211 "http":{ 212 "method":"POST", 213 "requestUri":"/" 214 }, 215 "input":{"shape":"AdminGetDeviceRequest"}, 216 "output":{"shape":"AdminGetDeviceResponse"}, 217 "errors":[ 218 {"shape":"ResourceNotFoundException"}, 219 {"shape":"InvalidParameterException"}, 220 {"shape":"InvalidUserPoolConfigurationException"}, 221 {"shape":"TooManyRequestsException"}, 222 {"shape":"InternalErrorException"}, 223 {"shape":"NotAuthorizedException"} 224 ], 225 "documentation":"<p>Gets the device, as an administrator.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 226 }, 227 "AdminGetUser":{ 228 "name":"AdminGetUser", 229 "http":{ 230 "method":"POST", 231 "requestUri":"/" 232 }, 233 "input":{"shape":"AdminGetUserRequest"}, 234 "output":{"shape":"AdminGetUserResponse"}, 235 "errors":[ 236 {"shape":"ResourceNotFoundException"}, 237 {"shape":"InvalidParameterException"}, 238 {"shape":"TooManyRequestsException"}, 239 {"shape":"NotAuthorizedException"}, 240 {"shape":"UserNotFoundException"}, 241 {"shape":"InternalErrorException"} 242 ], 243 "documentation":"<p>Gets the specified user by user name in a user pool as an administrator. Works on any user.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 244 }, 245 "AdminInitiateAuth":{ 246 "name":"AdminInitiateAuth", 247 "http":{ 248 "method":"POST", 249 "requestUri":"/" 250 }, 251 "input":{"shape":"AdminInitiateAuthRequest"}, 252 "output":{"shape":"AdminInitiateAuthResponse"}, 253 "errors":[ 254 {"shape":"ResourceNotFoundException"}, 255 {"shape":"InvalidParameterException"}, 256 {"shape":"NotAuthorizedException"}, 257 {"shape":"TooManyRequestsException"}, 258 {"shape":"InternalErrorException"}, 259 {"shape":"UnexpectedLambdaException"}, 260 {"shape":"InvalidUserPoolConfigurationException"}, 261 {"shape":"UserLambdaValidationException"}, 262 {"shape":"InvalidLambdaResponseException"}, 263 {"shape":"MFAMethodNotFoundException"}, 264 {"shape":"InvalidSmsRoleAccessPolicyException"}, 265 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 266 {"shape":"PasswordResetRequiredException"}, 267 {"shape":"UserNotFoundException"}, 268 {"shape":"UserNotConfirmedException"} 269 ], 270 "documentation":"<p>Initiates the authentication flow, as an administrator.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 271 }, 272 "AdminLinkProviderForUser":{ 273 "name":"AdminLinkProviderForUser", 274 "http":{ 275 "method":"POST", 276 "requestUri":"/" 277 }, 278 "input":{"shape":"AdminLinkProviderForUserRequest"}, 279 "output":{"shape":"AdminLinkProviderForUserResponse"}, 280 "errors":[ 281 {"shape":"ResourceNotFoundException"}, 282 {"shape":"InvalidParameterException"}, 283 {"shape":"TooManyRequestsException"}, 284 {"shape":"NotAuthorizedException"}, 285 {"shape":"UserNotFoundException"}, 286 {"shape":"AliasExistsException"}, 287 {"shape":"LimitExceededException"}, 288 {"shape":"InternalErrorException"} 289 ], 290 "documentation":"<p>Links an existing user account in a user pool (<code>DestinationUser</code>) to an identity from an external IdP (<code>SourceUser</code>) based on a specified attribute name and value from the external IdP. 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. You can then use the federated user identity to sign in as the existing user account. </p> <p> For example, if there is an existing user with a username and password, this API links that user to a federated user identity. When the user signs in with a federated user identity, they sign in as the existing user account.</p> <note> <p>The maximum number of federated identities linked to a user is five.</p> </note> <important> <p>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 IdPs and provider attributes that have been trusted by the application owner.</p> </important> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 291 }, 292 "AdminListDevices":{ 293 "name":"AdminListDevices", 294 "http":{ 295 "method":"POST", 296 "requestUri":"/" 297 }, 298 "input":{"shape":"AdminListDevicesRequest"}, 299 "output":{"shape":"AdminListDevicesResponse"}, 300 "errors":[ 301 {"shape":"InvalidParameterException"}, 302 {"shape":"ResourceNotFoundException"}, 303 {"shape":"InvalidUserPoolConfigurationException"}, 304 {"shape":"TooManyRequestsException"}, 305 {"shape":"InternalErrorException"}, 306 {"shape":"NotAuthorizedException"} 307 ], 308 "documentation":"<p>Lists devices, as an administrator.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 309 }, 310 "AdminListGroupsForUser":{ 311 "name":"AdminListGroupsForUser", 312 "http":{ 313 "method":"POST", 314 "requestUri":"/" 315 }, 316 "input":{"shape":"AdminListGroupsForUserRequest"}, 317 "output":{"shape":"AdminListGroupsForUserResponse"}, 318 "errors":[ 319 {"shape":"InvalidParameterException"}, 320 {"shape":"ResourceNotFoundException"}, 321 {"shape":"TooManyRequestsException"}, 322 {"shape":"NotAuthorizedException"}, 323 {"shape":"UserNotFoundException"}, 324 {"shape":"InternalErrorException"} 325 ], 326 "documentation":"<p>Lists the groups that a user belongs to.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 327 }, 328 "AdminListUserAuthEvents":{ 329 "name":"AdminListUserAuthEvents", 330 "http":{ 331 "method":"POST", 332 "requestUri":"/" 333 }, 334 "input":{"shape":"AdminListUserAuthEventsRequest"}, 335 "output":{"shape":"AdminListUserAuthEventsResponse"}, 336 "errors":[ 337 {"shape":"InvalidParameterException"}, 338 {"shape":"ResourceNotFoundException"}, 339 {"shape":"TooManyRequestsException"}, 340 {"shape":"NotAuthorizedException"}, 341 {"shape":"UserNotFoundException"}, 342 {"shape":"UserPoolAddOnNotEnabledException"}, 343 {"shape":"InternalErrorException"} 344 ], 345 "documentation":"<p>A history of user activity and any risks detected as part of Amazon Cognito advanced security.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 346 }, 347 "AdminRemoveUserFromGroup":{ 348 "name":"AdminRemoveUserFromGroup", 349 "http":{ 350 "method":"POST", 351 "requestUri":"/" 352 }, 353 "input":{"shape":"AdminRemoveUserFromGroupRequest"}, 354 "errors":[ 355 {"shape":"InvalidParameterException"}, 356 {"shape":"ResourceNotFoundException"}, 357 {"shape":"TooManyRequestsException"}, 358 {"shape":"NotAuthorizedException"}, 359 {"shape":"UserNotFoundException"}, 360 {"shape":"InternalErrorException"} 361 ], 362 "documentation":"<p>Removes the specified user from the specified group.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 363 }, 364 "AdminResetUserPassword":{ 365 "name":"AdminResetUserPassword", 366 "http":{ 367 "method":"POST", 368 "requestUri":"/" 369 }, 370 "input":{"shape":"AdminResetUserPasswordRequest"}, 371 "output":{"shape":"AdminResetUserPasswordResponse"}, 372 "errors":[ 373 {"shape":"ResourceNotFoundException"}, 374 {"shape":"InvalidParameterException"}, 375 {"shape":"UnexpectedLambdaException"}, 376 {"shape":"UserLambdaValidationException"}, 377 {"shape":"NotAuthorizedException"}, 378 {"shape":"InvalidLambdaResponseException"}, 379 {"shape":"TooManyRequestsException"}, 380 {"shape":"LimitExceededException"}, 381 {"shape":"UserNotFoundException"}, 382 {"shape":"InvalidSmsRoleAccessPolicyException"}, 383 {"shape":"InvalidEmailRoleAccessPolicyException"}, 384 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 385 {"shape":"InternalErrorException"} 386 ], 387 "documentation":"<p>Resets the specified user's password in a user pool as an administrator. Works on any user.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Deactivates a user's password, requiring them to change it. If a user tries to sign in after the API is called, Amazon Cognito responds with a <code>PasswordResetRequiredException</code> error. Your app must then perform the actions that reset your user's password: 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.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 388 }, 389 "AdminRespondToAuthChallenge":{ 390 "name":"AdminRespondToAuthChallenge", 391 "http":{ 392 "method":"POST", 393 "requestUri":"/" 394 }, 395 "input":{"shape":"AdminRespondToAuthChallengeRequest"}, 396 "output":{"shape":"AdminRespondToAuthChallengeResponse"}, 397 "errors":[ 398 {"shape":"ResourceNotFoundException"}, 399 {"shape":"InvalidParameterException"}, 400 {"shape":"NotAuthorizedException"}, 401 {"shape":"CodeMismatchException"}, 402 {"shape":"ExpiredCodeException"}, 403 {"shape":"UnexpectedLambdaException"}, 404 {"shape":"InvalidPasswordException"}, 405 {"shape":"UserLambdaValidationException"}, 406 {"shape":"InvalidLambdaResponseException"}, 407 {"shape":"TooManyRequestsException"}, 408 {"shape":"InvalidUserPoolConfigurationException"}, 409 {"shape":"InternalErrorException"}, 410 {"shape":"MFAMethodNotFoundException"}, 411 {"shape":"InvalidSmsRoleAccessPolicyException"}, 412 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 413 {"shape":"AliasExistsException"}, 414 {"shape":"PasswordResetRequiredException"}, 415 {"shape":"UserNotFoundException"}, 416 {"shape":"UserNotConfirmedException"}, 417 {"shape":"SoftwareTokenMFANotFoundException"} 418 ], 419 "documentation":"<p>Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. An <code>AdminRespondToAuthChallenge</code> API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.</p> <p>For more information about custom authentication challenges, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html\">Custom authentication challenge Lambda triggers</a>.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 420 }, 421 "AdminSetUserMFAPreference":{ 422 "name":"AdminSetUserMFAPreference", 423 "http":{ 424 "method":"POST", 425 "requestUri":"/" 426 }, 427 "input":{"shape":"AdminSetUserMFAPreferenceRequest"}, 428 "output":{"shape":"AdminSetUserMFAPreferenceResponse"}, 429 "errors":[ 430 {"shape":"ResourceNotFoundException"}, 431 {"shape":"InvalidParameterException"}, 432 {"shape":"NotAuthorizedException"}, 433 {"shape":"PasswordResetRequiredException"}, 434 {"shape":"UserNotFoundException"}, 435 {"shape":"UserNotConfirmedException"}, 436 {"shape":"InternalErrorException"} 437 ], 438 "documentation":"<p>The user's multi-factor authentication (MFA) preference, including which MFA options are activated, and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 439 }, 440 "AdminSetUserPassword":{ 441 "name":"AdminSetUserPassword", 442 "http":{ 443 "method":"POST", 444 "requestUri":"/" 445 }, 446 "input":{"shape":"AdminSetUserPasswordRequest"}, 447 "output":{"shape":"AdminSetUserPasswordResponse"}, 448 "errors":[ 449 {"shape":"ResourceNotFoundException"}, 450 {"shape":"NotAuthorizedException"}, 451 {"shape":"UserNotFoundException"}, 452 {"shape":"InternalErrorException"}, 453 {"shape":"TooManyRequestsException"}, 454 {"shape":"InvalidParameterException"}, 455 {"shape":"InvalidPasswordException"} 456 ], 457 "documentation":"<p>Sets the specified user's password in a user pool as an administrator. Works on any user. </p> <p>The password can be temporary or permanent. If it is temporary, the user status enters the <code>FORCE_CHANGE_PASSWORD</code> state. When the user next tries to sign in, the InitiateAuth/AdminInitiateAuth response will contain the <code>NEW_PASSWORD_REQUIRED</code> challenge. If the user doesn't sign in before it expires, the user won't be able to sign in, and an administrator must reset their password. </p> <p>Once the user has set a new password, or the password is permanent, the user status is set to <code>Confirmed</code>.</p> <p> <code>AdminSetUserPassword</code> can set a password for the user profile that Amazon Cognito creates for third-party federated users. When you set a password, the federated user's status changes from <code>EXTERNAL_PROVIDER</code> to <code>CONFIRMED</code>. A user in this state can sign in as a federated user, and initiate authentication flows in the API like a linked native user. They can also modify their password and attributes in token-authenticated API requests like <code>ChangePassword</code> and <code>UpdateUserAttributes</code>. As a best security practice and to keep users in sync with your external IdP, don't set passwords on federated user profiles. To set up a federated user for native sign-in with a linked native user, refer to <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html\">Linking federated users to an existing user profile</a>.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 458 }, 459 "AdminSetUserSettings":{ 460 "name":"AdminSetUserSettings", 461 "http":{ 462 "method":"POST", 463 "requestUri":"/" 464 }, 465 "input":{"shape":"AdminSetUserSettingsRequest"}, 466 "output":{"shape":"AdminSetUserSettingsResponse"}, 467 "errors":[ 468 {"shape":"ResourceNotFoundException"}, 469 {"shape":"InvalidParameterException"}, 470 {"shape":"NotAuthorizedException"}, 471 {"shape":"UserNotFoundException"}, 472 {"shape":"InternalErrorException"} 473 ], 474 "documentation":"<p> <i>This action is no longer supported.</i> You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA. To configure either type of MFA, use <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminSetUserMFAPreference.html\">AdminSetUserMFAPreference</a> instead.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 475 }, 476 "AdminUpdateAuthEventFeedback":{ 477 "name":"AdminUpdateAuthEventFeedback", 478 "http":{ 479 "method":"POST", 480 "requestUri":"/" 481 }, 482 "input":{"shape":"AdminUpdateAuthEventFeedbackRequest"}, 483 "output":{"shape":"AdminUpdateAuthEventFeedbackResponse"}, 484 "errors":[ 485 {"shape":"InvalidParameterException"}, 486 {"shape":"ResourceNotFoundException"}, 487 {"shape":"TooManyRequestsException"}, 488 {"shape":"NotAuthorizedException"}, 489 {"shape":"UserNotFoundException"}, 490 {"shape":"UserPoolAddOnNotEnabledException"}, 491 {"shape":"InternalErrorException"} 492 ], 493 "documentation":"<p>Provides feedback for an authentication event indicating if it was from a valid user. This feedback is used for improving the risk evaluation decision for the user pool as part of Amazon Cognito advanced security.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 494 }, 495 "AdminUpdateDeviceStatus":{ 496 "name":"AdminUpdateDeviceStatus", 497 "http":{ 498 "method":"POST", 499 "requestUri":"/" 500 }, 501 "input":{"shape":"AdminUpdateDeviceStatusRequest"}, 502 "output":{"shape":"AdminUpdateDeviceStatusResponse"}, 503 "errors":[ 504 {"shape":"InvalidParameterException"}, 505 {"shape":"ResourceNotFoundException"}, 506 {"shape":"InvalidUserPoolConfigurationException"}, 507 {"shape":"TooManyRequestsException"}, 508 {"shape":"NotAuthorizedException"}, 509 {"shape":"UserNotFoundException"}, 510 {"shape":"InternalErrorException"} 511 ], 512 "documentation":"<p>Updates the device status as an administrator.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 513 }, 514 "AdminUpdateUserAttributes":{ 515 "name":"AdminUpdateUserAttributes", 516 "http":{ 517 "method":"POST", 518 "requestUri":"/" 519 }, 520 "input":{"shape":"AdminUpdateUserAttributesRequest"}, 521 "output":{"shape":"AdminUpdateUserAttributesResponse"}, 522 "errors":[ 523 {"shape":"ResourceNotFoundException"}, 524 {"shape":"InvalidParameterException"}, 525 {"shape":"UnexpectedLambdaException"}, 526 {"shape":"UserLambdaValidationException"}, 527 {"shape":"InvalidLambdaResponseException"}, 528 {"shape":"AliasExistsException"}, 529 {"shape":"TooManyRequestsException"}, 530 {"shape":"NotAuthorizedException"}, 531 {"shape":"UserNotFoundException"}, 532 {"shape":"InternalErrorException"}, 533 {"shape":"InvalidSmsRoleAccessPolicyException"}, 534 {"shape":"InvalidEmailRoleAccessPolicyException"}, 535 {"shape":"InvalidSmsRoleTrustRelationshipException"} 536 ], 537 "documentation":"<note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user. To delete an attribute from your user, submit the attribute in your API request with a blank value.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p> <p>In addition to updating user attributes, this API can also be used to mark phone and email as verified.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 538 }, 539 "AdminUserGlobalSignOut":{ 540 "name":"AdminUserGlobalSignOut", 541 "http":{ 542 "method":"POST", 543 "requestUri":"/" 544 }, 545 "input":{"shape":"AdminUserGlobalSignOutRequest"}, 546 "output":{"shape":"AdminUserGlobalSignOutResponse"}, 547 "errors":[ 548 {"shape":"ResourceNotFoundException"}, 549 {"shape":"InvalidParameterException"}, 550 {"shape":"TooManyRequestsException"}, 551 {"shape":"NotAuthorizedException"}, 552 {"shape":"UserNotFoundException"}, 553 {"shape":"InternalErrorException"} 554 ], 555 "documentation":"<p>Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation with your administrative credentials when your user signs out of your app. This results in the following behavior. </p> <ul> <li> <p>Amazon Cognito no longer accepts <i>token-authorized</i> user operations that you authorize with a signed-out user's access tokens. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> <p>Amazon Cognito returns an <code>Access Token has been revoked</code> error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope <code>aws.cognito.signin.user.admin</code>.</p> </li> <li> <p>Amazon Cognito no longer accepts a signed-out user's ID token in a <a href=\"https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetId.html\">GetId </a> request to an identity pool with <code>ServerSideTokenCheck</code> enabled for its user pool IdP configuration in <a href=\"https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_CognitoIdentityProvider.html\">CognitoIdentityProvider</a>.</p> </li> <li> <p>Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.</p> </li> </ul> <p>Other requests might be valid until your user's token expires.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 556 }, 557 "AssociateSoftwareToken":{ 558 "name":"AssociateSoftwareToken", 559 "http":{ 560 "method":"POST", 561 "requestUri":"/" 562 }, 563 "input":{"shape":"AssociateSoftwareTokenRequest"}, 564 "output":{"shape":"AssociateSoftwareTokenResponse"}, 565 "errors":[ 566 {"shape":"ConcurrentModificationException"}, 567 {"shape":"InvalidParameterException"}, 568 {"shape":"NotAuthorizedException"}, 569 {"shape":"ResourceNotFoundException"}, 570 {"shape":"InternalErrorException"}, 571 {"shape":"SoftwareTokenMFANotFoundException"}, 572 {"shape":"ForbiddenException"} 573 ], 574 "documentation":"<p>Begins setup of time-based one-time password (TOTP) multi-factor authentication (MFA) for a user, with a unique private key that Amazon Cognito generates and returns in the API response. You can authorize an <code>AssociateSoftwareToken</code> request with either the user's access token, or a session string from a challenge response that you received from Amazon Cognito.</p> <note> <p>Amazon Cognito disassociates an existing software token when you verify the new token in a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifySoftwareToken.html\"> VerifySoftwareToken</a> API request. If you don't verify the software token and your user pool doesn't require MFA, the user can then authenticate with user name and password credentials alone. If your user pool requires TOTP MFA, Amazon Cognito generates an <code>MFA_SETUP</code> or <code>SOFTWARE_TOKEN_SETUP</code> challenge each time your user signs. Complete setup with <code>AssociateSoftwareToken</code> and <code>VerifySoftwareToken</code>.</p> <p>After you set up software token MFA for your user, Amazon Cognito generates a <code>SOFTWARE_TOKEN_MFA</code> challenge when they authenticate. Respond to this challenge with your user's TOTP.</p> </note> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 575 "authtype":"none" 576 }, 577 "ChangePassword":{ 578 "name":"ChangePassword", 579 "http":{ 580 "method":"POST", 581 "requestUri":"/" 582 }, 583 "input":{"shape":"ChangePasswordRequest"}, 584 "output":{"shape":"ChangePasswordResponse"}, 585 "errors":[ 586 {"shape":"ResourceNotFoundException"}, 587 {"shape":"InvalidParameterException"}, 588 {"shape":"InvalidPasswordException"}, 589 {"shape":"NotAuthorizedException"}, 590 {"shape":"TooManyRequestsException"}, 591 {"shape":"LimitExceededException"}, 592 {"shape":"PasswordResetRequiredException"}, 593 {"shape":"UserNotFoundException"}, 594 {"shape":"UserNotConfirmedException"}, 595 {"shape":"InternalErrorException"}, 596 {"shape":"ForbiddenException"} 597 ], 598 "documentation":"<p>Changes the password for a specified user in a user pool.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 599 "authtype":"none" 600 }, 601 "ConfirmDevice":{ 602 "name":"ConfirmDevice", 603 "http":{ 604 "method":"POST", 605 "requestUri":"/" 606 }, 607 "input":{"shape":"ConfirmDeviceRequest"}, 608 "output":{"shape":"ConfirmDeviceResponse"}, 609 "errors":[ 610 {"shape":"ResourceNotFoundException"}, 611 {"shape":"InvalidParameterException"}, 612 {"shape":"NotAuthorizedException"}, 613 {"shape":"InvalidPasswordException"}, 614 {"shape":"InvalidLambdaResponseException"}, 615 {"shape":"UsernameExistsException"}, 616 {"shape":"InvalidUserPoolConfigurationException"}, 617 {"shape":"TooManyRequestsException"}, 618 {"shape":"PasswordResetRequiredException"}, 619 {"shape":"UserNotFoundException"}, 620 {"shape":"UserNotConfirmedException"}, 621 {"shape":"InternalErrorException"}, 622 {"shape":"ForbiddenException"} 623 ], 624 "documentation":"<p>Confirms tracking of the device. This API call is the call that begins device tracking. For more information about device authentication, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 625 "authtype":"none" 626 }, 627 "ConfirmForgotPassword":{ 628 "name":"ConfirmForgotPassword", 629 "http":{ 630 "method":"POST", 631 "requestUri":"/" 632 }, 633 "input":{"shape":"ConfirmForgotPasswordRequest"}, 634 "output":{"shape":"ConfirmForgotPasswordResponse"}, 635 "errors":[ 636 {"shape":"ResourceNotFoundException"}, 637 {"shape":"UnexpectedLambdaException"}, 638 {"shape":"UserLambdaValidationException"}, 639 {"shape":"InvalidParameterException"}, 640 {"shape":"InvalidPasswordException"}, 641 {"shape":"NotAuthorizedException"}, 642 {"shape":"CodeMismatchException"}, 643 {"shape":"ExpiredCodeException"}, 644 {"shape":"TooManyFailedAttemptsException"}, 645 {"shape":"InvalidLambdaResponseException"}, 646 {"shape":"TooManyRequestsException"}, 647 {"shape":"LimitExceededException"}, 648 {"shape":"UserNotFoundException"}, 649 {"shape":"UserNotConfirmedException"}, 650 {"shape":"InternalErrorException"}, 651 {"shape":"ForbiddenException"} 652 ], 653 "documentation":"<p>Allows a user to enter a confirmation code to reset a forgotten password.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 654 "authtype":"none" 655 }, 656 "ConfirmSignUp":{ 657 "name":"ConfirmSignUp", 658 "http":{ 659 "method":"POST", 660 "requestUri":"/" 661 }, 662 "input":{"shape":"ConfirmSignUpRequest"}, 663 "output":{"shape":"ConfirmSignUpResponse"}, 664 "errors":[ 665 {"shape":"ResourceNotFoundException"}, 666 {"shape":"InvalidParameterException"}, 667 {"shape":"UnexpectedLambdaException"}, 668 {"shape":"UserLambdaValidationException"}, 669 {"shape":"NotAuthorizedException"}, 670 {"shape":"TooManyFailedAttemptsException"}, 671 {"shape":"CodeMismatchException"}, 672 {"shape":"ExpiredCodeException"}, 673 {"shape":"InvalidLambdaResponseException"}, 674 {"shape":"AliasExistsException"}, 675 {"shape":"TooManyRequestsException"}, 676 {"shape":"LimitExceededException"}, 677 {"shape":"UserNotFoundException"}, 678 {"shape":"InternalErrorException"}, 679 {"shape":"ForbiddenException"} 680 ], 681 "documentation":"<p>This public API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool via the <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html\">SignUp</a> API operation. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.</p> <p>Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users, users created with the <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html\">AdminCreateUser</a> API operation, confirm their accounts when they respond to their invitation email message and choose a password. They do not receive a confirmation code. Instead, they receive a temporary password.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 682 "authtype":"none" 683 }, 684 "CreateGroup":{ 685 "name":"CreateGroup", 686 "http":{ 687 "method":"POST", 688 "requestUri":"/" 689 }, 690 "input":{"shape":"CreateGroupRequest"}, 691 "output":{"shape":"CreateGroupResponse"}, 692 "errors":[ 693 {"shape":"InvalidParameterException"}, 694 {"shape":"GroupExistsException"}, 695 {"shape":"ResourceNotFoundException"}, 696 {"shape":"TooManyRequestsException"}, 697 {"shape":"LimitExceededException"}, 698 {"shape":"NotAuthorizedException"}, 699 {"shape":"InternalErrorException"} 700 ], 701 "documentation":"<p>Creates a new group in the specified user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 702 }, 703 "CreateIdentityProvider":{ 704 "name":"CreateIdentityProvider", 705 "http":{ 706 "method":"POST", 707 "requestUri":"/" 708 }, 709 "input":{"shape":"CreateIdentityProviderRequest"}, 710 "output":{"shape":"CreateIdentityProviderResponse"}, 711 "errors":[ 712 {"shape":"InvalidParameterException"}, 713 {"shape":"DuplicateProviderException"}, 714 {"shape":"ResourceNotFoundException"}, 715 {"shape":"NotAuthorizedException"}, 716 {"shape":"TooManyRequestsException"}, 717 {"shape":"LimitExceededException"}, 718 {"shape":"InternalErrorException"} 719 ], 720 "documentation":"<p>Adds a configuration and trust relationship between a third-party identity provider (IdP) and a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 721 }, 722 "CreateResourceServer":{ 723 "name":"CreateResourceServer", 724 "http":{ 725 "method":"POST", 726 "requestUri":"/" 727 }, 728 "input":{"shape":"CreateResourceServerRequest"}, 729 "output":{"shape":"CreateResourceServerResponse"}, 730 "errors":[ 731 {"shape":"InvalidParameterException"}, 732 {"shape":"ResourceNotFoundException"}, 733 {"shape":"NotAuthorizedException"}, 734 {"shape":"TooManyRequestsException"}, 735 {"shape":"LimitExceededException"}, 736 {"shape":"InternalErrorException"} 737 ], 738 "documentation":"<p>Creates a new OAuth2.0 resource server and defines custom scopes within it.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 739 }, 740 "CreateUserImportJob":{ 741 "name":"CreateUserImportJob", 742 "http":{ 743 "method":"POST", 744 "requestUri":"/" 745 }, 746 "input":{"shape":"CreateUserImportJobRequest"}, 747 "output":{"shape":"CreateUserImportJobResponse"}, 748 "errors":[ 749 {"shape":"ResourceNotFoundException"}, 750 {"shape":"InvalidParameterException"}, 751 {"shape":"TooManyRequestsException"}, 752 {"shape":"PreconditionNotMetException"}, 753 {"shape":"NotAuthorizedException"}, 754 {"shape":"LimitExceededException"}, 755 {"shape":"InternalErrorException"} 756 ], 757 "documentation":"<p>Creates a user import job.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 758 }, 759 "CreateUserPool":{ 760 "name":"CreateUserPool", 761 "http":{ 762 "method":"POST", 763 "requestUri":"/" 764 }, 765 "input":{"shape":"CreateUserPoolRequest"}, 766 "output":{"shape":"CreateUserPoolResponse"}, 767 "errors":[ 768 {"shape":"InvalidParameterException"}, 769 {"shape":"TooManyRequestsException"}, 770 {"shape":"LimitExceededException"}, 771 {"shape":"InvalidSmsRoleAccessPolicyException"}, 772 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 773 {"shape":"InvalidEmailRoleAccessPolicyException"}, 774 {"shape":"NotAuthorizedException"}, 775 {"shape":"UserPoolTaggingException"}, 776 {"shape":"InternalErrorException"} 777 ], 778 "documentation":"<note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Creates a new Amazon Cognito user pool and sets the password policy for the pool.</p> <important> <p>If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.</p> </important> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 779 }, 780 "CreateUserPoolClient":{ 781 "name":"CreateUserPoolClient", 782 "http":{ 783 "method":"POST", 784 "requestUri":"/" 785 }, 786 "input":{"shape":"CreateUserPoolClientRequest"}, 787 "output":{"shape":"CreateUserPoolClientResponse"}, 788 "errors":[ 789 {"shape":"InvalidParameterException"}, 790 {"shape":"ResourceNotFoundException"}, 791 {"shape":"TooManyRequestsException"}, 792 {"shape":"LimitExceededException"}, 793 {"shape":"NotAuthorizedException"}, 794 {"shape":"ScopeDoesNotExistException"}, 795 {"shape":"InvalidOAuthFlowException"}, 796 {"shape":"InternalErrorException"} 797 ], 798 "documentation":"<p>Creates the user pool client.</p> <p>When you create a new user pool client, token revocation is automatically activated. For more information about revoking tokens, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html\">RevokeToken</a>.</p> <important> <p>If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.</p> </important> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 799 }, 800 "CreateUserPoolDomain":{ 801 "name":"CreateUserPoolDomain", 802 "http":{ 803 "method":"POST", 804 "requestUri":"/" 805 }, 806 "input":{"shape":"CreateUserPoolDomainRequest"}, 807 "output":{"shape":"CreateUserPoolDomainResponse"}, 808 "errors":[ 809 {"shape":"InvalidParameterException"}, 810 {"shape":"NotAuthorizedException"}, 811 {"shape":"ResourceNotFoundException"}, 812 {"shape":"LimitExceededException"}, 813 {"shape":"InternalErrorException"} 814 ], 815 "documentation":"<p>Creates a new domain for a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 816 }, 817 "DeleteGroup":{ 818 "name":"DeleteGroup", 819 "http":{ 820 "method":"POST", 821 "requestUri":"/" 822 }, 823 "input":{"shape":"DeleteGroupRequest"}, 824 "errors":[ 825 {"shape":"ResourceNotFoundException"}, 826 {"shape":"InvalidParameterException"}, 827 {"shape":"TooManyRequestsException"}, 828 {"shape":"NotAuthorizedException"}, 829 {"shape":"InternalErrorException"} 830 ], 831 "documentation":"<p>Deletes a group.</p> <p>Calling this action requires developer credentials.</p>" 832 }, 833 "DeleteIdentityProvider":{ 834 "name":"DeleteIdentityProvider", 835 "http":{ 836 "method":"POST", 837 "requestUri":"/" 838 }, 839 "input":{"shape":"DeleteIdentityProviderRequest"}, 840 "errors":[ 841 {"shape":"InvalidParameterException"}, 842 {"shape":"UnsupportedIdentityProviderException"}, 843 {"shape":"ConcurrentModificationException"}, 844 {"shape":"ResourceNotFoundException"}, 845 {"shape":"NotAuthorizedException"}, 846 {"shape":"TooManyRequestsException"}, 847 {"shape":"InternalErrorException"} 848 ], 849 "documentation":"<p>Deletes an IdP for a user pool.</p>" 850 }, 851 "DeleteResourceServer":{ 852 "name":"DeleteResourceServer", 853 "http":{ 854 "method":"POST", 855 "requestUri":"/" 856 }, 857 "input":{"shape":"DeleteResourceServerRequest"}, 858 "errors":[ 859 {"shape":"InvalidParameterException"}, 860 {"shape":"ResourceNotFoundException"}, 861 {"shape":"NotAuthorizedException"}, 862 {"shape":"TooManyRequestsException"}, 863 {"shape":"InternalErrorException"} 864 ], 865 "documentation":"<p>Deletes a resource server.</p>" 866 }, 867 "DeleteUser":{ 868 "name":"DeleteUser", 869 "http":{ 870 "method":"POST", 871 "requestUri":"/" 872 }, 873 "input":{"shape":"DeleteUserRequest"}, 874 "errors":[ 875 {"shape":"ResourceNotFoundException"}, 876 {"shape":"InvalidParameterException"}, 877 {"shape":"NotAuthorizedException"}, 878 {"shape":"TooManyRequestsException"}, 879 {"shape":"PasswordResetRequiredException"}, 880 {"shape":"UserNotFoundException"}, 881 {"shape":"UserNotConfirmedException"}, 882 {"shape":"InternalErrorException"}, 883 {"shape":"ForbiddenException"} 884 ], 885 "documentation":"<p>Allows a user to delete their own user profile.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 886 "authtype":"none" 887 }, 888 "DeleteUserAttributes":{ 889 "name":"DeleteUserAttributes", 890 "http":{ 891 "method":"POST", 892 "requestUri":"/" 893 }, 894 "input":{"shape":"DeleteUserAttributesRequest"}, 895 "output":{"shape":"DeleteUserAttributesResponse"}, 896 "errors":[ 897 {"shape":"ResourceNotFoundException"}, 898 {"shape":"InvalidParameterException"}, 899 {"shape":"NotAuthorizedException"}, 900 {"shape":"TooManyRequestsException"}, 901 {"shape":"PasswordResetRequiredException"}, 902 {"shape":"UserNotFoundException"}, 903 {"shape":"UserNotConfirmedException"}, 904 {"shape":"InternalErrorException"}, 905 {"shape":"ForbiddenException"} 906 ], 907 "documentation":"<p>Deletes the attributes for a user.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 908 "authtype":"none" 909 }, 910 "DeleteUserPool":{ 911 "name":"DeleteUserPool", 912 "http":{ 913 "method":"POST", 914 "requestUri":"/" 915 }, 916 "input":{"shape":"DeleteUserPoolRequest"}, 917 "errors":[ 918 {"shape":"ResourceNotFoundException"}, 919 {"shape":"InvalidParameterException"}, 920 {"shape":"TooManyRequestsException"}, 921 {"shape":"NotAuthorizedException"}, 922 {"shape":"UserImportInProgressException"}, 923 {"shape":"InternalErrorException"} 924 ], 925 "documentation":"<p>Deletes the specified Amazon Cognito user pool.</p>" 926 }, 927 "DeleteUserPoolClient":{ 928 "name":"DeleteUserPoolClient", 929 "http":{ 930 "method":"POST", 931 "requestUri":"/" 932 }, 933 "input":{"shape":"DeleteUserPoolClientRequest"}, 934 "errors":[ 935 {"shape":"ResourceNotFoundException"}, 936 {"shape":"InvalidParameterException"}, 937 {"shape":"TooManyRequestsException"}, 938 {"shape":"NotAuthorizedException"}, 939 {"shape":"ConcurrentModificationException"}, 940 {"shape":"InternalErrorException"} 941 ], 942 "documentation":"<p>Allows the developer to delete the user pool client.</p>" 943 }, 944 "DeleteUserPoolDomain":{ 945 "name":"DeleteUserPoolDomain", 946 "http":{ 947 "method":"POST", 948 "requestUri":"/" 949 }, 950 "input":{"shape":"DeleteUserPoolDomainRequest"}, 951 "output":{"shape":"DeleteUserPoolDomainResponse"}, 952 "errors":[ 953 {"shape":"NotAuthorizedException"}, 954 {"shape":"InvalidParameterException"}, 955 {"shape":"ResourceNotFoundException"}, 956 {"shape":"InternalErrorException"} 957 ], 958 "documentation":"<p>Deletes a domain for a user pool.</p>" 959 }, 960 "DescribeIdentityProvider":{ 961 "name":"DescribeIdentityProvider", 962 "http":{ 963 "method":"POST", 964 "requestUri":"/" 965 }, 966 "input":{"shape":"DescribeIdentityProviderRequest"}, 967 "output":{"shape":"DescribeIdentityProviderResponse"}, 968 "errors":[ 969 {"shape":"InvalidParameterException"}, 970 {"shape":"ResourceNotFoundException"}, 971 {"shape":"NotAuthorizedException"}, 972 {"shape":"TooManyRequestsException"}, 973 {"shape":"InternalErrorException"} 974 ], 975 "documentation":"<p>Gets information about a specific IdP.</p>" 976 }, 977 "DescribeResourceServer":{ 978 "name":"DescribeResourceServer", 979 "http":{ 980 "method":"POST", 981 "requestUri":"/" 982 }, 983 "input":{"shape":"DescribeResourceServerRequest"}, 984 "output":{"shape":"DescribeResourceServerResponse"}, 985 "errors":[ 986 {"shape":"InvalidParameterException"}, 987 {"shape":"ResourceNotFoundException"}, 988 {"shape":"NotAuthorizedException"}, 989 {"shape":"TooManyRequestsException"}, 990 {"shape":"InternalErrorException"} 991 ], 992 "documentation":"<p>Describes a resource server.</p>" 993 }, 994 "DescribeRiskConfiguration":{ 995 "name":"DescribeRiskConfiguration", 996 "http":{ 997 "method":"POST", 998 "requestUri":"/" 999 }, 1000 "input":{"shape":"DescribeRiskConfigurationRequest"}, 1001 "output":{"shape":"DescribeRiskConfigurationResponse"}, 1002 "errors":[ 1003 {"shape":"ResourceNotFoundException"}, 1004 {"shape":"InvalidParameterException"}, 1005 {"shape":"TooManyRequestsException"}, 1006 {"shape":"NotAuthorizedException"}, 1007 {"shape":"UserPoolAddOnNotEnabledException"}, 1008 {"shape":"InternalErrorException"} 1009 ], 1010 "documentation":"<p>Describes the risk configuration.</p>" 1011 }, 1012 "DescribeUserImportJob":{ 1013 "name":"DescribeUserImportJob", 1014 "http":{ 1015 "method":"POST", 1016 "requestUri":"/" 1017 }, 1018 "input":{"shape":"DescribeUserImportJobRequest"}, 1019 "output":{"shape":"DescribeUserImportJobResponse"}, 1020 "errors":[ 1021 {"shape":"ResourceNotFoundException"}, 1022 {"shape":"InvalidParameterException"}, 1023 {"shape":"TooManyRequestsException"}, 1024 {"shape":"NotAuthorizedException"}, 1025 {"shape":"InternalErrorException"} 1026 ], 1027 "documentation":"<p>Describes the user import job.</p>" 1028 }, 1029 "DescribeUserPool":{ 1030 "name":"DescribeUserPool", 1031 "http":{ 1032 "method":"POST", 1033 "requestUri":"/" 1034 }, 1035 "input":{"shape":"DescribeUserPoolRequest"}, 1036 "output":{"shape":"DescribeUserPoolResponse"}, 1037 "errors":[ 1038 {"shape":"ResourceNotFoundException"}, 1039 {"shape":"InvalidParameterException"}, 1040 {"shape":"TooManyRequestsException"}, 1041 {"shape":"NotAuthorizedException"}, 1042 {"shape":"UserPoolTaggingException"}, 1043 {"shape":"InternalErrorException"} 1044 ], 1045 "documentation":"<p>Returns the configuration information and metadata of the specified user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1046 }, 1047 "DescribeUserPoolClient":{ 1048 "name":"DescribeUserPoolClient", 1049 "http":{ 1050 "method":"POST", 1051 "requestUri":"/" 1052 }, 1053 "input":{"shape":"DescribeUserPoolClientRequest"}, 1054 "output":{"shape":"DescribeUserPoolClientResponse"}, 1055 "errors":[ 1056 {"shape":"ResourceNotFoundException"}, 1057 {"shape":"InvalidParameterException"}, 1058 {"shape":"TooManyRequestsException"}, 1059 {"shape":"NotAuthorizedException"}, 1060 {"shape":"InternalErrorException"} 1061 ], 1062 "documentation":"<p>Client method for returning the configuration information and metadata of the specified user pool app client.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1063 }, 1064 "DescribeUserPoolDomain":{ 1065 "name":"DescribeUserPoolDomain", 1066 "http":{ 1067 "method":"POST", 1068 "requestUri":"/" 1069 }, 1070 "input":{"shape":"DescribeUserPoolDomainRequest"}, 1071 "output":{"shape":"DescribeUserPoolDomainResponse"}, 1072 "errors":[ 1073 {"shape":"NotAuthorizedException"}, 1074 {"shape":"InvalidParameterException"}, 1075 {"shape":"ResourceNotFoundException"}, 1076 {"shape":"InternalErrorException"} 1077 ], 1078 "documentation":"<p>Gets information about a domain.</p>" 1079 }, 1080 "ForgetDevice":{ 1081 "name":"ForgetDevice", 1082 "http":{ 1083 "method":"POST", 1084 "requestUri":"/" 1085 }, 1086 "input":{"shape":"ForgetDeviceRequest"}, 1087 "errors":[ 1088 {"shape":"ResourceNotFoundException"}, 1089 {"shape":"InvalidParameterException"}, 1090 {"shape":"NotAuthorizedException"}, 1091 {"shape":"TooManyRequestsException"}, 1092 {"shape":"InvalidUserPoolConfigurationException"}, 1093 {"shape":"PasswordResetRequiredException"}, 1094 {"shape":"UserNotFoundException"}, 1095 {"shape":"UserNotConfirmedException"}, 1096 {"shape":"InternalErrorException"}, 1097 {"shape":"ForbiddenException"} 1098 ], 1099 "documentation":"<p>Forgets the specified device. For more information about device authentication, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1100 "authtype":"none" 1101 }, 1102 "ForgotPassword":{ 1103 "name":"ForgotPassword", 1104 "http":{ 1105 "method":"POST", 1106 "requestUri":"/" 1107 }, 1108 "input":{"shape":"ForgotPasswordRequest"}, 1109 "output":{"shape":"ForgotPasswordResponse"}, 1110 "errors":[ 1111 {"shape":"ResourceNotFoundException"}, 1112 {"shape":"InvalidParameterException"}, 1113 {"shape":"UnexpectedLambdaException"}, 1114 {"shape":"UserLambdaValidationException"}, 1115 {"shape":"NotAuthorizedException"}, 1116 {"shape":"InvalidLambdaResponseException"}, 1117 {"shape":"TooManyRequestsException"}, 1118 {"shape":"LimitExceededException"}, 1119 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1120 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1121 {"shape":"InvalidEmailRoleAccessPolicyException"}, 1122 {"shape":"CodeDeliveryFailureException"}, 1123 {"shape":"UserNotFoundException"}, 1124 {"shape":"InternalErrorException"}, 1125 {"shape":"ForbiddenException"} 1126 ], 1127 "documentation":"<p>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 <code>Username</code> parameter, you can use the username or user alias. The method used to send the confirmation code is sent according to the specified AccountRecoverySetting. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-recover-a-user-account.html\">Recovering User Accounts</a> in the <i>Amazon Cognito Developer Guide</i>. To use the confirmation code for resetting the password, call <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmForgotPassword.html\">ConfirmForgotPassword</a>. </p> <p>If neither a verified phone number nor a verified email exists, this API returns <code>InvalidParameterException</code>. If your app client has a client secret and you don't provide a <code>SECRET_HASH</code> parameter, this API returns <code>NotAuthorizedException</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1128 "authtype":"none" 1129 }, 1130 "GetCSVHeader":{ 1131 "name":"GetCSVHeader", 1132 "http":{ 1133 "method":"POST", 1134 "requestUri":"/" 1135 }, 1136 "input":{"shape":"GetCSVHeaderRequest"}, 1137 "output":{"shape":"GetCSVHeaderResponse"}, 1138 "errors":[ 1139 {"shape":"ResourceNotFoundException"}, 1140 {"shape":"InvalidParameterException"}, 1141 {"shape":"TooManyRequestsException"}, 1142 {"shape":"NotAuthorizedException"}, 1143 {"shape":"InternalErrorException"} 1144 ], 1145 "documentation":"<p>Gets the header information for the comma-separated value (CSV) file to be used as input for the user import job.</p>" 1146 }, 1147 "GetDevice":{ 1148 "name":"GetDevice", 1149 "http":{ 1150 "method":"POST", 1151 "requestUri":"/" 1152 }, 1153 "input":{"shape":"GetDeviceRequest"}, 1154 "output":{"shape":"GetDeviceResponse"}, 1155 "errors":[ 1156 {"shape":"ResourceNotFoundException"}, 1157 {"shape":"InvalidParameterException"}, 1158 {"shape":"InvalidUserPoolConfigurationException"}, 1159 {"shape":"NotAuthorizedException"}, 1160 {"shape":"TooManyRequestsException"}, 1161 {"shape":"PasswordResetRequiredException"}, 1162 {"shape":"UserNotFoundException"}, 1163 {"shape":"UserNotConfirmedException"}, 1164 {"shape":"InternalErrorException"}, 1165 {"shape":"ForbiddenException"} 1166 ], 1167 "documentation":"<p>Gets the device. For more information about device authentication, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1168 "authtype":"none" 1169 }, 1170 "GetGroup":{ 1171 "name":"GetGroup", 1172 "http":{ 1173 "method":"POST", 1174 "requestUri":"/" 1175 }, 1176 "input":{"shape":"GetGroupRequest"}, 1177 "output":{"shape":"GetGroupResponse"}, 1178 "errors":[ 1179 {"shape":"ResourceNotFoundException"}, 1180 {"shape":"InvalidParameterException"}, 1181 {"shape":"TooManyRequestsException"}, 1182 {"shape":"NotAuthorizedException"}, 1183 {"shape":"InternalErrorException"} 1184 ], 1185 "documentation":"<p>Gets a group.</p> <p>Calling this action requires developer credentials.</p>" 1186 }, 1187 "GetIdentityProviderByIdentifier":{ 1188 "name":"GetIdentityProviderByIdentifier", 1189 "http":{ 1190 "method":"POST", 1191 "requestUri":"/" 1192 }, 1193 "input":{"shape":"GetIdentityProviderByIdentifierRequest"}, 1194 "output":{"shape":"GetIdentityProviderByIdentifierResponse"}, 1195 "errors":[ 1196 {"shape":"InvalidParameterException"}, 1197 {"shape":"ResourceNotFoundException"}, 1198 {"shape":"NotAuthorizedException"}, 1199 {"shape":"TooManyRequestsException"}, 1200 {"shape":"InternalErrorException"} 1201 ], 1202 "documentation":"<p>Gets the specified IdP.</p>" 1203 }, 1204 "GetLogDeliveryConfiguration":{ 1205 "name":"GetLogDeliveryConfiguration", 1206 "http":{ 1207 "method":"POST", 1208 "requestUri":"/" 1209 }, 1210 "input":{"shape":"GetLogDeliveryConfigurationRequest"}, 1211 "output":{"shape":"GetLogDeliveryConfigurationResponse"}, 1212 "errors":[ 1213 {"shape":"InvalidParameterException"}, 1214 {"shape":"InternalErrorException"}, 1215 {"shape":"TooManyRequestsException"}, 1216 {"shape":"NotAuthorizedException"}, 1217 {"shape":"ResourceNotFoundException"} 1218 ], 1219 "documentation":"<p>Gets the detailed activity logging configuration for a user pool.</p>" 1220 }, 1221 "GetSigningCertificate":{ 1222 "name":"GetSigningCertificate", 1223 "http":{ 1224 "method":"POST", 1225 "requestUri":"/" 1226 }, 1227 "input":{"shape":"GetSigningCertificateRequest"}, 1228 "output":{"shape":"GetSigningCertificateResponse"}, 1229 "errors":[ 1230 {"shape":"InternalErrorException"}, 1231 {"shape":"InvalidParameterException"}, 1232 {"shape":"ResourceNotFoundException"} 1233 ], 1234 "documentation":"<p>This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.</p> <p>Amazon Cognito issues and assigns a new signing certificate annually. This process returns a new value in the response to <code>GetSigningCertificate</code>, but doesn't invalidate the original certificate.</p>" 1235 }, 1236 "GetUICustomization":{ 1237 "name":"GetUICustomization", 1238 "http":{ 1239 "method":"POST", 1240 "requestUri":"/" 1241 }, 1242 "input":{"shape":"GetUICustomizationRequest"}, 1243 "output":{"shape":"GetUICustomizationResponse"}, 1244 "errors":[ 1245 {"shape":"InvalidParameterException"}, 1246 {"shape":"ResourceNotFoundException"}, 1247 {"shape":"NotAuthorizedException"}, 1248 {"shape":"TooManyRequestsException"}, 1249 {"shape":"InternalErrorException"} 1250 ], 1251 "documentation":"<p>Gets the user interface (UI) Customization information for a particular app client's app UI, if any such information exists for the client. If nothing is set for the particular client, but there is an existing pool level customization (the app <code>clientId</code> is <code>ALL</code>), then that information is returned. If nothing is present, then an empty shape is returned.</p>" 1252 }, 1253 "GetUser":{ 1254 "name":"GetUser", 1255 "http":{ 1256 "method":"POST", 1257 "requestUri":"/" 1258 }, 1259 "input":{"shape":"GetUserRequest"}, 1260 "output":{"shape":"GetUserResponse"}, 1261 "errors":[ 1262 {"shape":"ResourceNotFoundException"}, 1263 {"shape":"InvalidParameterException"}, 1264 {"shape":"NotAuthorizedException"}, 1265 {"shape":"TooManyRequestsException"}, 1266 {"shape":"PasswordResetRequiredException"}, 1267 {"shape":"UserNotFoundException"}, 1268 {"shape":"UserNotConfirmedException"}, 1269 {"shape":"InternalErrorException"}, 1270 {"shape":"ForbiddenException"} 1271 ], 1272 "documentation":"<p>Gets the user attributes and metadata for a user.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1273 "authtype":"none" 1274 }, 1275 "GetUserAttributeVerificationCode":{ 1276 "name":"GetUserAttributeVerificationCode", 1277 "http":{ 1278 "method":"POST", 1279 "requestUri":"/" 1280 }, 1281 "input":{"shape":"GetUserAttributeVerificationCodeRequest"}, 1282 "output":{"shape":"GetUserAttributeVerificationCodeResponse"}, 1283 "errors":[ 1284 {"shape":"ResourceNotFoundException"}, 1285 {"shape":"InvalidParameterException"}, 1286 {"shape":"TooManyRequestsException"}, 1287 {"shape":"NotAuthorizedException"}, 1288 {"shape":"UnexpectedLambdaException"}, 1289 {"shape":"UserLambdaValidationException"}, 1290 {"shape":"InvalidLambdaResponseException"}, 1291 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1292 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1293 {"shape":"InvalidEmailRoleAccessPolicyException"}, 1294 {"shape":"CodeDeliveryFailureException"}, 1295 {"shape":"LimitExceededException"}, 1296 {"shape":"PasswordResetRequiredException"}, 1297 {"shape":"UserNotFoundException"}, 1298 {"shape":"UserNotConfirmedException"}, 1299 {"shape":"InternalErrorException"}, 1300 {"shape":"ForbiddenException"} 1301 ], 1302 "documentation":"<p>Generates a user attribute verification code for the specified attribute name. Sends a message to a user with a code that they must return in a VerifyUserAttribute request.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1303 "authtype":"none" 1304 }, 1305 "GetUserPoolMfaConfig":{ 1306 "name":"GetUserPoolMfaConfig", 1307 "http":{ 1308 "method":"POST", 1309 "requestUri":"/" 1310 }, 1311 "input":{"shape":"GetUserPoolMfaConfigRequest"}, 1312 "output":{"shape":"GetUserPoolMfaConfigResponse"}, 1313 "errors":[ 1314 {"shape":"InvalidParameterException"}, 1315 {"shape":"TooManyRequestsException"}, 1316 {"shape":"ResourceNotFoundException"}, 1317 {"shape":"NotAuthorizedException"}, 1318 {"shape":"InternalErrorException"} 1319 ], 1320 "documentation":"<p>Gets the user pool multi-factor authentication (MFA) configuration.</p>" 1321 }, 1322 "GlobalSignOut":{ 1323 "name":"GlobalSignOut", 1324 "http":{ 1325 "method":"POST", 1326 "requestUri":"/" 1327 }, 1328 "input":{"shape":"GlobalSignOutRequest"}, 1329 "output":{"shape":"GlobalSignOutResponse"}, 1330 "errors":[ 1331 {"shape":"ResourceNotFoundException"}, 1332 {"shape":"InvalidParameterException"}, 1333 {"shape":"NotAuthorizedException"}, 1334 {"shape":"TooManyRequestsException"}, 1335 {"shape":"PasswordResetRequiredException"}, 1336 {"shape":"UserNotConfirmedException"}, 1337 {"shape":"InternalErrorException"}, 1338 {"shape":"ForbiddenException"} 1339 ], 1340 "documentation":"<p>Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation when your user signs out of your app. This results in the following behavior. </p> <ul> <li> <p>Amazon Cognito no longer accepts <i>token-authorized</i> user operations that you authorize with a signed-out user's access tokens. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> <p>Amazon Cognito returns an <code>Access Token has been revoked</code> error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope <code>aws.cognito.signin.user.admin</code>.</p> </li> <li> <p>Amazon Cognito no longer accepts a signed-out user's ID token in a <a href=\"https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetId.html\">GetId </a> request to an identity pool with <code>ServerSideTokenCheck</code> enabled for its user pool IdP configuration in <a href=\"https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_CognitoIdentityProvider.html\">CognitoIdentityProvider</a>.</p> </li> <li> <p>Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.</p> </li> </ul> <p>Other requests might be valid until your user's token expires.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1341 "authtype":"none" 1342 }, 1343 "InitiateAuth":{ 1344 "name":"InitiateAuth", 1345 "http":{ 1346 "method":"POST", 1347 "requestUri":"/" 1348 }, 1349 "input":{"shape":"InitiateAuthRequest"}, 1350 "output":{"shape":"InitiateAuthResponse"}, 1351 "errors":[ 1352 {"shape":"ResourceNotFoundException"}, 1353 {"shape":"InvalidParameterException"}, 1354 {"shape":"NotAuthorizedException"}, 1355 {"shape":"TooManyRequestsException"}, 1356 {"shape":"UnexpectedLambdaException"}, 1357 {"shape":"InvalidUserPoolConfigurationException"}, 1358 {"shape":"UserLambdaValidationException"}, 1359 {"shape":"InvalidLambdaResponseException"}, 1360 {"shape":"PasswordResetRequiredException"}, 1361 {"shape":"UserNotFoundException"}, 1362 {"shape":"UserNotConfirmedException"}, 1363 {"shape":"InternalErrorException"}, 1364 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1365 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1366 {"shape":"ForbiddenException"} 1367 ], 1368 "documentation":"<p>Initiates sign-in for a user in the Amazon Cognito user directory. You can't sign in a user with a federated IdP with <code>InitiateAuth</code>. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html\"> Adding user pool sign-in through a third party</a>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1369 "authtype":"none" 1370 }, 1371 "ListDevices":{ 1372 "name":"ListDevices", 1373 "http":{ 1374 "method":"POST", 1375 "requestUri":"/" 1376 }, 1377 "input":{"shape":"ListDevicesRequest"}, 1378 "output":{"shape":"ListDevicesResponse"}, 1379 "errors":[ 1380 {"shape":"InvalidParameterException"}, 1381 {"shape":"ResourceNotFoundException"}, 1382 {"shape":"NotAuthorizedException"}, 1383 {"shape":"InvalidUserPoolConfigurationException"}, 1384 {"shape":"TooManyRequestsException"}, 1385 {"shape":"PasswordResetRequiredException"}, 1386 {"shape":"UserNotFoundException"}, 1387 {"shape":"UserNotConfirmedException"}, 1388 {"shape":"InternalErrorException"}, 1389 {"shape":"ForbiddenException"} 1390 ], 1391 "documentation":"<p>Lists the sign-in devices that Amazon Cognito has registered to the current user. For more information about device authentication, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1392 "authtype":"none" 1393 }, 1394 "ListGroups":{ 1395 "name":"ListGroups", 1396 "http":{ 1397 "method":"POST", 1398 "requestUri":"/" 1399 }, 1400 "input":{"shape":"ListGroupsRequest"}, 1401 "output":{"shape":"ListGroupsResponse"}, 1402 "errors":[ 1403 {"shape":"InvalidParameterException"}, 1404 {"shape":"ResourceNotFoundException"}, 1405 {"shape":"TooManyRequestsException"}, 1406 {"shape":"NotAuthorizedException"}, 1407 {"shape":"InternalErrorException"} 1408 ], 1409 "documentation":"<p>Lists the groups associated with a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1410 }, 1411 "ListIdentityProviders":{ 1412 "name":"ListIdentityProviders", 1413 "http":{ 1414 "method":"POST", 1415 "requestUri":"/" 1416 }, 1417 "input":{"shape":"ListIdentityProvidersRequest"}, 1418 "output":{"shape":"ListIdentityProvidersResponse"}, 1419 "errors":[ 1420 {"shape":"InvalidParameterException"}, 1421 {"shape":"ResourceNotFoundException"}, 1422 {"shape":"NotAuthorizedException"}, 1423 {"shape":"TooManyRequestsException"}, 1424 {"shape":"InternalErrorException"} 1425 ], 1426 "documentation":"<p>Lists information about all IdPs for a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1427 }, 1428 "ListResourceServers":{ 1429 "name":"ListResourceServers", 1430 "http":{ 1431 "method":"POST", 1432 "requestUri":"/" 1433 }, 1434 "input":{"shape":"ListResourceServersRequest"}, 1435 "output":{"shape":"ListResourceServersResponse"}, 1436 "errors":[ 1437 {"shape":"InvalidParameterException"}, 1438 {"shape":"ResourceNotFoundException"}, 1439 {"shape":"NotAuthorizedException"}, 1440 {"shape":"TooManyRequestsException"}, 1441 {"shape":"InternalErrorException"} 1442 ], 1443 "documentation":"<p>Lists the resource servers for a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1444 }, 1445 "ListTagsForResource":{ 1446 "name":"ListTagsForResource", 1447 "http":{ 1448 "method":"POST", 1449 "requestUri":"/" 1450 }, 1451 "input":{"shape":"ListTagsForResourceRequest"}, 1452 "output":{"shape":"ListTagsForResourceResponse"}, 1453 "errors":[ 1454 {"shape":"ResourceNotFoundException"}, 1455 {"shape":"NotAuthorizedException"}, 1456 {"shape":"TooManyRequestsException"}, 1457 {"shape":"InvalidParameterException"}, 1458 {"shape":"InternalErrorException"} 1459 ], 1460 "documentation":"<p>Lists the tags that are assigned to an Amazon Cognito user pool.</p> <p>A tag is a label that you can apply to user pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.</p> <p>You can use this action up to 10 times per second, per account.</p>" 1461 }, 1462 "ListUserImportJobs":{ 1463 "name":"ListUserImportJobs", 1464 "http":{ 1465 "method":"POST", 1466 "requestUri":"/" 1467 }, 1468 "input":{"shape":"ListUserImportJobsRequest"}, 1469 "output":{"shape":"ListUserImportJobsResponse"}, 1470 "errors":[ 1471 {"shape":"ResourceNotFoundException"}, 1472 {"shape":"InvalidParameterException"}, 1473 {"shape":"TooManyRequestsException"}, 1474 {"shape":"NotAuthorizedException"}, 1475 {"shape":"InternalErrorException"} 1476 ], 1477 "documentation":"<p>Lists user import jobs for a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1478 }, 1479 "ListUserPoolClients":{ 1480 "name":"ListUserPoolClients", 1481 "http":{ 1482 "method":"POST", 1483 "requestUri":"/" 1484 }, 1485 "input":{"shape":"ListUserPoolClientsRequest"}, 1486 "output":{"shape":"ListUserPoolClientsResponse"}, 1487 "errors":[ 1488 {"shape":"InvalidParameterException"}, 1489 {"shape":"ResourceNotFoundException"}, 1490 {"shape":"TooManyRequestsException"}, 1491 {"shape":"NotAuthorizedException"}, 1492 {"shape":"InternalErrorException"} 1493 ], 1494 "documentation":"<p>Lists the clients that have been created for the specified user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1495 }, 1496 "ListUserPools":{ 1497 "name":"ListUserPools", 1498 "http":{ 1499 "method":"POST", 1500 "requestUri":"/" 1501 }, 1502 "input":{"shape":"ListUserPoolsRequest"}, 1503 "output":{"shape":"ListUserPoolsResponse"}, 1504 "errors":[ 1505 {"shape":"InvalidParameterException"}, 1506 {"shape":"TooManyRequestsException"}, 1507 {"shape":"NotAuthorizedException"}, 1508 {"shape":"InternalErrorException"} 1509 ], 1510 "documentation":"<p>Lists the user pools associated with an Amazon Web Services account.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1511 }, 1512 "ListUsers":{ 1513 "name":"ListUsers", 1514 "http":{ 1515 "method":"POST", 1516 "requestUri":"/" 1517 }, 1518 "input":{"shape":"ListUsersRequest"}, 1519 "output":{"shape":"ListUsersResponse"}, 1520 "errors":[ 1521 {"shape":"InvalidParameterException"}, 1522 {"shape":"ResourceNotFoundException"}, 1523 {"shape":"TooManyRequestsException"}, 1524 {"shape":"NotAuthorizedException"}, 1525 {"shape":"InternalErrorException"} 1526 ], 1527 "documentation":"<p>Lists users and their basic details in a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1528 }, 1529 "ListUsersInGroup":{ 1530 "name":"ListUsersInGroup", 1531 "http":{ 1532 "method":"POST", 1533 "requestUri":"/" 1534 }, 1535 "input":{"shape":"ListUsersInGroupRequest"}, 1536 "output":{"shape":"ListUsersInGroupResponse"}, 1537 "errors":[ 1538 {"shape":"InvalidParameterException"}, 1539 {"shape":"ResourceNotFoundException"}, 1540 {"shape":"TooManyRequestsException"}, 1541 {"shape":"NotAuthorizedException"}, 1542 {"shape":"InternalErrorException"} 1543 ], 1544 "documentation":"<p>Lists the users in the specified group.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1545 }, 1546 "ResendConfirmationCode":{ 1547 "name":"ResendConfirmationCode", 1548 "http":{ 1549 "method":"POST", 1550 "requestUri":"/" 1551 }, 1552 "input":{"shape":"ResendConfirmationCodeRequest"}, 1553 "output":{"shape":"ResendConfirmationCodeResponse"}, 1554 "errors":[ 1555 {"shape":"ResourceNotFoundException"}, 1556 {"shape":"InvalidParameterException"}, 1557 {"shape":"UnexpectedLambdaException"}, 1558 {"shape":"UserLambdaValidationException"}, 1559 {"shape":"NotAuthorizedException"}, 1560 {"shape":"InvalidLambdaResponseException"}, 1561 {"shape":"TooManyRequestsException"}, 1562 {"shape":"LimitExceededException"}, 1563 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1564 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1565 {"shape":"InvalidEmailRoleAccessPolicyException"}, 1566 {"shape":"CodeDeliveryFailureException"}, 1567 {"shape":"UserNotFoundException"}, 1568 {"shape":"InternalErrorException"}, 1569 {"shape":"ForbiddenException"} 1570 ], 1571 "documentation":"<p>Resends the confirmation (for confirmation of registration) to a specific user in the user pool.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1572 "authtype":"none" 1573 }, 1574 "RespondToAuthChallenge":{ 1575 "name":"RespondToAuthChallenge", 1576 "http":{ 1577 "method":"POST", 1578 "requestUri":"/" 1579 }, 1580 "input":{"shape":"RespondToAuthChallengeRequest"}, 1581 "output":{"shape":"RespondToAuthChallengeResponse"}, 1582 "errors":[ 1583 {"shape":"ResourceNotFoundException"}, 1584 {"shape":"InvalidParameterException"}, 1585 {"shape":"NotAuthorizedException"}, 1586 {"shape":"CodeMismatchException"}, 1587 {"shape":"ExpiredCodeException"}, 1588 {"shape":"UnexpectedLambdaException"}, 1589 {"shape":"UserLambdaValidationException"}, 1590 {"shape":"InvalidPasswordException"}, 1591 {"shape":"InvalidLambdaResponseException"}, 1592 {"shape":"TooManyRequestsException"}, 1593 {"shape":"InvalidUserPoolConfigurationException"}, 1594 {"shape":"MFAMethodNotFoundException"}, 1595 {"shape":"PasswordResetRequiredException"}, 1596 {"shape":"UserNotFoundException"}, 1597 {"shape":"UserNotConfirmedException"}, 1598 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1599 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1600 {"shape":"AliasExistsException"}, 1601 {"shape":"InternalErrorException"}, 1602 {"shape":"SoftwareTokenMFANotFoundException"}, 1603 {"shape":"ForbiddenException"} 1604 ], 1605 "documentation":"<p>Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. A <code>RespondToAuthChallenge</code> API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.</p> <p>For more information about custom authentication challenges, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html\">Custom authentication challenge Lambda triggers</a>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1606 "authtype":"none" 1607 }, 1608 "RevokeToken":{ 1609 "name":"RevokeToken", 1610 "http":{ 1611 "method":"POST", 1612 "requestUri":"/" 1613 }, 1614 "input":{"shape":"RevokeTokenRequest"}, 1615 "output":{"shape":"RevokeTokenResponse"}, 1616 "errors":[ 1617 {"shape":"TooManyRequestsException"}, 1618 {"shape":"InternalErrorException"}, 1619 {"shape":"UnauthorizedException"}, 1620 {"shape":"InvalidParameterException"}, 1621 {"shape":"UnsupportedOperationException"}, 1622 {"shape":"UnsupportedTokenTypeException"}, 1623 {"shape":"ForbiddenException"} 1624 ], 1625 "documentation":"<p>Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1626 "authtype":"none" 1627 }, 1628 "SetLogDeliveryConfiguration":{ 1629 "name":"SetLogDeliveryConfiguration", 1630 "http":{ 1631 "method":"POST", 1632 "requestUri":"/" 1633 }, 1634 "input":{"shape":"SetLogDeliveryConfigurationRequest"}, 1635 "output":{"shape":"SetLogDeliveryConfigurationResponse"}, 1636 "errors":[ 1637 {"shape":"InvalidParameterException"}, 1638 {"shape":"InternalErrorException"}, 1639 {"shape":"TooManyRequestsException"}, 1640 {"shape":"NotAuthorizedException"}, 1641 {"shape":"ResourceNotFoundException"} 1642 ], 1643 "documentation":"<p>Sets up or modifies the detailed activity logging configuration of a user pool.</p>" 1644 }, 1645 "SetRiskConfiguration":{ 1646 "name":"SetRiskConfiguration", 1647 "http":{ 1648 "method":"POST", 1649 "requestUri":"/" 1650 }, 1651 "input":{"shape":"SetRiskConfigurationRequest"}, 1652 "output":{"shape":"SetRiskConfigurationResponse"}, 1653 "errors":[ 1654 {"shape":"ResourceNotFoundException"}, 1655 {"shape":"InvalidParameterException"}, 1656 {"shape":"TooManyRequestsException"}, 1657 {"shape":"NotAuthorizedException"}, 1658 {"shape":"UserPoolAddOnNotEnabledException"}, 1659 {"shape":"CodeDeliveryFailureException"}, 1660 {"shape":"InvalidEmailRoleAccessPolicyException"}, 1661 {"shape":"InternalErrorException"} 1662 ], 1663 "documentation":"<p>Configures actions on detected risks. To delete the risk configuration for <code>UserPoolId</code> or <code>ClientId</code>, pass null values for all four configuration types.</p> <p>To activate Amazon Cognito advanced security features, update the user pool to include the <code>UserPoolAddOns</code> key<code>AdvancedSecurityMode</code>.</p>" 1664 }, 1665 "SetUICustomization":{ 1666 "name":"SetUICustomization", 1667 "http":{ 1668 "method":"POST", 1669 "requestUri":"/" 1670 }, 1671 "input":{"shape":"SetUICustomizationRequest"}, 1672 "output":{"shape":"SetUICustomizationResponse"}, 1673 "errors":[ 1674 {"shape":"InvalidParameterException"}, 1675 {"shape":"ResourceNotFoundException"}, 1676 {"shape":"NotAuthorizedException"}, 1677 {"shape":"TooManyRequestsException"}, 1678 {"shape":"InternalErrorException"} 1679 ], 1680 "documentation":"<p>Sets the user interface (UI) customization information for a user pool's built-in app UI.</p> <p>You can specify app UI customization settings for a single client (with a specific <code>clientId</code>) or for all clients (by setting the <code>clientId</code> to <code>ALL</code>). If you specify <code>ALL</code>, the default configuration is used for every client that has no previously set UI customization. If you specify UI customization settings for a particular client, it will no longer return to the <code>ALL</code> configuration.</p> <note> <p>To use this API, your user pool must have a domain associated with it. Otherwise, there is no place to host the app's pages, and the service will throw an error.</p> </note>" 1681 }, 1682 "SetUserMFAPreference":{ 1683 "name":"SetUserMFAPreference", 1684 "http":{ 1685 "method":"POST", 1686 "requestUri":"/" 1687 }, 1688 "input":{"shape":"SetUserMFAPreferenceRequest"}, 1689 "output":{"shape":"SetUserMFAPreferenceResponse"}, 1690 "errors":[ 1691 {"shape":"ResourceNotFoundException"}, 1692 {"shape":"InvalidParameterException"}, 1693 {"shape":"NotAuthorizedException"}, 1694 {"shape":"PasswordResetRequiredException"}, 1695 {"shape":"UserNotFoundException"}, 1696 {"shape":"UserNotConfirmedException"}, 1697 {"shape":"InternalErrorException"}, 1698 {"shape":"ForbiddenException"} 1699 ], 1700 "documentation":"<p>Set the user's multi-factor authentication (MFA) method preference, including which MFA factors are activated and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1701 "authtype":"none" 1702 }, 1703 "SetUserPoolMfaConfig":{ 1704 "name":"SetUserPoolMfaConfig", 1705 "http":{ 1706 "method":"POST", 1707 "requestUri":"/" 1708 }, 1709 "input":{"shape":"SetUserPoolMfaConfigRequest"}, 1710 "output":{"shape":"SetUserPoolMfaConfigResponse"}, 1711 "errors":[ 1712 {"shape":"InvalidParameterException"}, 1713 {"shape":"TooManyRequestsException"}, 1714 {"shape":"ResourceNotFoundException"}, 1715 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1716 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1717 {"shape":"NotAuthorizedException"}, 1718 {"shape":"InternalErrorException"} 1719 ], 1720 "documentation":"<p>Sets the user pool multi-factor authentication (MFA) configuration.</p> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>" 1721 }, 1722 "SetUserSettings":{ 1723 "name":"SetUserSettings", 1724 "http":{ 1725 "method":"POST", 1726 "requestUri":"/" 1727 }, 1728 "input":{"shape":"SetUserSettingsRequest"}, 1729 "output":{"shape":"SetUserSettingsResponse"}, 1730 "errors":[ 1731 {"shape":"ResourceNotFoundException"}, 1732 {"shape":"InvalidParameterException"}, 1733 {"shape":"NotAuthorizedException"}, 1734 {"shape":"PasswordResetRequiredException"}, 1735 {"shape":"UserNotFoundException"}, 1736 {"shape":"UserNotConfirmedException"}, 1737 {"shape":"InternalErrorException"}, 1738 {"shape":"ForbiddenException"} 1739 ], 1740 "documentation":"<p> <i>This action is no longer supported.</i> You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA. To configure either type of MFA, use <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserMFAPreference.html\">SetUserMFAPreference</a> instead.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1741 "authtype":"none" 1742 }, 1743 "SignUp":{ 1744 "name":"SignUp", 1745 "http":{ 1746 "method":"POST", 1747 "requestUri":"/" 1748 }, 1749 "input":{"shape":"SignUpRequest"}, 1750 "output":{"shape":"SignUpResponse"}, 1751 "errors":[ 1752 {"shape":"ResourceNotFoundException"}, 1753 {"shape":"InvalidParameterException"}, 1754 {"shape":"UnexpectedLambdaException"}, 1755 {"shape":"UserLambdaValidationException"}, 1756 {"shape":"NotAuthorizedException"}, 1757 {"shape":"InvalidPasswordException"}, 1758 {"shape":"InvalidLambdaResponseException"}, 1759 {"shape":"UsernameExistsException"}, 1760 {"shape":"TooManyRequestsException"}, 1761 {"shape":"InternalErrorException"}, 1762 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1763 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1764 {"shape":"InvalidEmailRoleAccessPolicyException"}, 1765 {"shape":"CodeDeliveryFailureException"}, 1766 {"shape":"ForbiddenException"} 1767 ], 1768 "documentation":"<p>Registers the user in the specified user pool and creates a user name, password, and user attributes.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1769 "authtype":"none" 1770 }, 1771 "StartUserImportJob":{ 1772 "name":"StartUserImportJob", 1773 "http":{ 1774 "method":"POST", 1775 "requestUri":"/" 1776 }, 1777 "input":{"shape":"StartUserImportJobRequest"}, 1778 "output":{"shape":"StartUserImportJobResponse"}, 1779 "errors":[ 1780 {"shape":"ResourceNotFoundException"}, 1781 {"shape":"InvalidParameterException"}, 1782 {"shape":"TooManyRequestsException"}, 1783 {"shape":"InternalErrorException"}, 1784 {"shape":"PreconditionNotMetException"}, 1785 {"shape":"NotAuthorizedException"} 1786 ], 1787 "documentation":"<p>Starts the user import.</p>" 1788 }, 1789 "StopUserImportJob":{ 1790 "name":"StopUserImportJob", 1791 "http":{ 1792 "method":"POST", 1793 "requestUri":"/" 1794 }, 1795 "input":{"shape":"StopUserImportJobRequest"}, 1796 "output":{"shape":"StopUserImportJobResponse"}, 1797 "errors":[ 1798 {"shape":"ResourceNotFoundException"}, 1799 {"shape":"InvalidParameterException"}, 1800 {"shape":"TooManyRequestsException"}, 1801 {"shape":"InternalErrorException"}, 1802 {"shape":"PreconditionNotMetException"}, 1803 {"shape":"NotAuthorizedException"} 1804 ], 1805 "documentation":"<p>Stops the user import job.</p>" 1806 }, 1807 "TagResource":{ 1808 "name":"TagResource", 1809 "http":{ 1810 "method":"POST", 1811 "requestUri":"/" 1812 }, 1813 "input":{"shape":"TagResourceRequest"}, 1814 "output":{"shape":"TagResourceResponse"}, 1815 "errors":[ 1816 {"shape":"ResourceNotFoundException"}, 1817 {"shape":"NotAuthorizedException"}, 1818 {"shape":"TooManyRequestsException"}, 1819 {"shape":"InvalidParameterException"}, 1820 {"shape":"InternalErrorException"} 1821 ], 1822 "documentation":"<p>Assigns a set of tags to an Amazon Cognito user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.</p> <p>Each tag consists of a key and value, both of which you define. A key is a general category for more specific values. For example, if you have two versions of a user pool, one for testing and another for production, you might assign an <code>Environment</code> tag key to both user pools. The value of this key might be <code>Test</code> for one user pool, and <code>Production</code> for the other.</p> <p>Tags are useful for cost tracking and access control. You can activate your tags so that they appear on the Billing and Cost Management console, where you can track the costs associated with your user pools. In an Identity and Access Management policy, you can constrain permissions for user pools based on specific tags or tag values.</p> <p>You can use this action up to 5 times per second, per account. A user pool can have as many as 50 tags.</p>" 1823 }, 1824 "UntagResource":{ 1825 "name":"UntagResource", 1826 "http":{ 1827 "method":"POST", 1828 "requestUri":"/" 1829 }, 1830 "input":{"shape":"UntagResourceRequest"}, 1831 "output":{"shape":"UntagResourceResponse"}, 1832 "errors":[ 1833 {"shape":"ResourceNotFoundException"}, 1834 {"shape":"NotAuthorizedException"}, 1835 {"shape":"TooManyRequestsException"}, 1836 {"shape":"InvalidParameterException"}, 1837 {"shape":"InternalErrorException"} 1838 ], 1839 "documentation":"<p>Removes the specified tags from an Amazon Cognito user pool. You can use this action up to 5 times per second, per account.</p>" 1840 }, 1841 "UpdateAuthEventFeedback":{ 1842 "name":"UpdateAuthEventFeedback", 1843 "http":{ 1844 "method":"POST", 1845 "requestUri":"/" 1846 }, 1847 "input":{"shape":"UpdateAuthEventFeedbackRequest"}, 1848 "output":{"shape":"UpdateAuthEventFeedbackResponse"}, 1849 "errors":[ 1850 {"shape":"InvalidParameterException"}, 1851 {"shape":"ResourceNotFoundException"}, 1852 {"shape":"TooManyRequestsException"}, 1853 {"shape":"NotAuthorizedException"}, 1854 {"shape":"UserNotFoundException"}, 1855 {"shape":"UserPoolAddOnNotEnabledException"}, 1856 {"shape":"InternalErrorException"} 1857 ], 1858 "documentation":"<p>Provides the feedback for an authentication event, whether it was from a valid user or not. This feedback is used for improving the risk evaluation decision for the user pool as part of Amazon Cognito advanced security.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1859 "authtype":"none" 1860 }, 1861 "UpdateDeviceStatus":{ 1862 "name":"UpdateDeviceStatus", 1863 "http":{ 1864 "method":"POST", 1865 "requestUri":"/" 1866 }, 1867 "input":{"shape":"UpdateDeviceStatusRequest"}, 1868 "output":{"shape":"UpdateDeviceStatusResponse"}, 1869 "errors":[ 1870 {"shape":"InvalidParameterException"}, 1871 {"shape":"ResourceNotFoundException"}, 1872 {"shape":"NotAuthorizedException"}, 1873 {"shape":"InvalidUserPoolConfigurationException"}, 1874 {"shape":"TooManyRequestsException"}, 1875 {"shape":"PasswordResetRequiredException"}, 1876 {"shape":"UserNotFoundException"}, 1877 {"shape":"UserNotConfirmedException"}, 1878 {"shape":"InternalErrorException"}, 1879 {"shape":"ForbiddenException"} 1880 ], 1881 "documentation":"<p>Updates the device status. For more information about device authentication, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 1882 "authtype":"none" 1883 }, 1884 "UpdateGroup":{ 1885 "name":"UpdateGroup", 1886 "http":{ 1887 "method":"POST", 1888 "requestUri":"/" 1889 }, 1890 "input":{"shape":"UpdateGroupRequest"}, 1891 "output":{"shape":"UpdateGroupResponse"}, 1892 "errors":[ 1893 {"shape":"ResourceNotFoundException"}, 1894 {"shape":"InvalidParameterException"}, 1895 {"shape":"TooManyRequestsException"}, 1896 {"shape":"NotAuthorizedException"}, 1897 {"shape":"InternalErrorException"} 1898 ], 1899 "documentation":"<p>Updates the specified group with the specified attributes.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1900 }, 1901 "UpdateIdentityProvider":{ 1902 "name":"UpdateIdentityProvider", 1903 "http":{ 1904 "method":"POST", 1905 "requestUri":"/" 1906 }, 1907 "input":{"shape":"UpdateIdentityProviderRequest"}, 1908 "output":{"shape":"UpdateIdentityProviderResponse"}, 1909 "errors":[ 1910 {"shape":"InvalidParameterException"}, 1911 {"shape":"UnsupportedIdentityProviderException"}, 1912 {"shape":"ResourceNotFoundException"}, 1913 {"shape":"ConcurrentModificationException"}, 1914 {"shape":"NotAuthorizedException"}, 1915 {"shape":"TooManyRequestsException"}, 1916 {"shape":"InternalErrorException"} 1917 ], 1918 "documentation":"<p>Updates IdP information for a user pool.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1919 }, 1920 "UpdateResourceServer":{ 1921 "name":"UpdateResourceServer", 1922 "http":{ 1923 "method":"POST", 1924 "requestUri":"/" 1925 }, 1926 "input":{"shape":"UpdateResourceServerRequest"}, 1927 "output":{"shape":"UpdateResourceServerResponse"}, 1928 "errors":[ 1929 {"shape":"InvalidParameterException"}, 1930 {"shape":"ResourceNotFoundException"}, 1931 {"shape":"NotAuthorizedException"}, 1932 {"shape":"TooManyRequestsException"}, 1933 {"shape":"InternalErrorException"} 1934 ], 1935 "documentation":"<p>Updates the name and scopes of resource server. All other fields are read-only.</p> <important> <p>If you don't provide a value for an attribute, it is set to the default value.</p> </important> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1936 }, 1937 "UpdateUserAttributes":{ 1938 "name":"UpdateUserAttributes", 1939 "http":{ 1940 "method":"POST", 1941 "requestUri":"/" 1942 }, 1943 "input":{"shape":"UpdateUserAttributesRequest"}, 1944 "output":{"shape":"UpdateUserAttributesResponse"}, 1945 "errors":[ 1946 {"shape":"ResourceNotFoundException"}, 1947 {"shape":"InvalidParameterException"}, 1948 {"shape":"CodeMismatchException"}, 1949 {"shape":"ExpiredCodeException"}, 1950 {"shape":"NotAuthorizedException"}, 1951 {"shape":"UnexpectedLambdaException"}, 1952 {"shape":"UserLambdaValidationException"}, 1953 {"shape":"InvalidLambdaResponseException"}, 1954 {"shape":"TooManyRequestsException"}, 1955 {"shape":"AliasExistsException"}, 1956 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1957 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1958 {"shape":"InvalidEmailRoleAccessPolicyException"}, 1959 {"shape":"CodeDeliveryFailureException"}, 1960 {"shape":"PasswordResetRequiredException"}, 1961 {"shape":"UserNotFoundException"}, 1962 {"shape":"UserNotConfirmedException"}, 1963 {"shape":"InternalErrorException"}, 1964 {"shape":"ForbiddenException"} 1965 ], 1966 "documentation":"<p>With this operation, your users can update one or more of their attributes with their own credentials. You authorize this API request with the user's access token. To delete an attribute from your user, submit the attribute in your API request with a blank value. Custom attribute values in this request must include the <code>custom:</code> prefix.</p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note> <note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note>", 1967 "authtype":"none" 1968 }, 1969 "UpdateUserPool":{ 1970 "name":"UpdateUserPool", 1971 "http":{ 1972 "method":"POST", 1973 "requestUri":"/" 1974 }, 1975 "input":{"shape":"UpdateUserPoolRequest"}, 1976 "output":{"shape":"UpdateUserPoolResponse"}, 1977 "errors":[ 1978 {"shape":"ResourceNotFoundException"}, 1979 {"shape":"InvalidParameterException"}, 1980 {"shape":"ConcurrentModificationException"}, 1981 {"shape":"TooManyRequestsException"}, 1982 {"shape":"NotAuthorizedException"}, 1983 {"shape":"UserImportInProgressException"}, 1984 {"shape":"InternalErrorException"}, 1985 {"shape":"InvalidSmsRoleAccessPolicyException"}, 1986 {"shape":"InvalidSmsRoleTrustRelationshipException"}, 1987 {"shape":"UserPoolTaggingException"}, 1988 {"shape":"InvalidEmailRoleAccessPolicyException"} 1989 ], 1990 "documentation":"<note> <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with <a href=\"https://console.aws.amazon.com/pinpoint/home/\">Amazon Pinpoint</a>. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.</p> <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <i> <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html\">sandbox mode</a> </i>, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </note> <p>Updates the specified user pool with the specified attributes. You can get a list of the current user pool settings using <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html\">DescribeUserPool</a>.</p> <important> <p>If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.</p> </important> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 1991 }, 1992 "UpdateUserPoolClient":{ 1993 "name":"UpdateUserPoolClient", 1994 "http":{ 1995 "method":"POST", 1996 "requestUri":"/" 1997 }, 1998 "input":{"shape":"UpdateUserPoolClientRequest"}, 1999 "output":{"shape":"UpdateUserPoolClientResponse"}, 2000 "errors":[ 2001 {"shape":"ResourceNotFoundException"}, 2002 {"shape":"InvalidParameterException"}, 2003 {"shape":"ConcurrentModificationException"}, 2004 {"shape":"TooManyRequestsException"}, 2005 {"shape":"NotAuthorizedException"}, 2006 {"shape":"ScopeDoesNotExistException"}, 2007 {"shape":"InvalidOAuthFlowException"}, 2008 {"shape":"InternalErrorException"} 2009 ], 2010 "documentation":"<p>Updates the specified user pool app client with the specified attributes. You can get a list of the current user pool app client settings using <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPoolClient.html\">DescribeUserPoolClient</a>.</p> <important> <p>If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.</p> </important> <p>You can also use this operation to enable token revocation for user pool clients. For more information about revoking tokens, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html\">RevokeToken</a>.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 2011 }, 2012 "UpdateUserPoolDomain":{ 2013 "name":"UpdateUserPoolDomain", 2014 "http":{ 2015 "method":"POST", 2016 "requestUri":"/" 2017 }, 2018 "input":{"shape":"UpdateUserPoolDomainRequest"}, 2019 "output":{"shape":"UpdateUserPoolDomainResponse"}, 2020 "errors":[ 2021 {"shape":"InvalidParameterException"}, 2022 {"shape":"NotAuthorizedException"}, 2023 {"shape":"ResourceNotFoundException"}, 2024 {"shape":"TooManyRequestsException"}, 2025 {"shape":"InternalErrorException"} 2026 ], 2027 "documentation":"<p>Updates the Secure Sockets Layer (SSL) certificate for the custom domain for your user pool.</p> <p>You can use this operation to provide the Amazon Resource Name (ARN) of a new certificate to Amazon Cognito. You can't use it to change the domain for a user pool.</p> <p>A custom domain is used to host the Amazon Cognito hosted UI, which provides sign-up and sign-in pages for your application. When you set up a custom domain, you provide a certificate that you manage with Certificate Manager (ACM). When necessary, you can use this operation to change the certificate that you applied to your custom domain.</p> <p>Usually, this is unnecessary following routine certificate renewal with ACM. When you renew your existing certificate in ACM, the ARN for your certificate remains the same, and your custom domain uses the new certificate automatically.</p> <p>However, if you replace your existing certificate with a new one, ACM gives the new certificate a new ARN. To apply the new certificate to your custom domain, you must provide this ARN to Amazon Cognito.</p> <p>When you add your new certificate in ACM, you must choose US East (N. Virginia) as the Amazon Web Services Region.</p> <p>After you submit your request, Amazon Cognito requires up to 1 hour to distribute your new certificate to your custom domain.</p> <p>For more information about adding a custom domain to your user pool, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-add-custom-domain.html\">Using Your Own Domain for the Hosted UI</a>.</p> <note> <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.</p> <p class=\"title\"> <b>Learn more</b> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html\">Signing Amazon Web Services API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> </p> </li> </ul> </note>" 2028 }, 2029 "VerifySoftwareToken":{ 2030 "name":"VerifySoftwareToken", 2031 "http":{ 2032 "method":"POST", 2033 "requestUri":"/" 2034 }, 2035 "input":{"shape":"VerifySoftwareTokenRequest"}, 2036 "output":{"shape":"VerifySoftwareTokenResponse"}, 2037 "errors":[ 2038 {"shape":"InvalidParameterException"}, 2039 {"shape":"ResourceNotFoundException"}, 2040 {"shape":"InvalidUserPoolConfigurationException"}, 2041 {"shape":"NotAuthorizedException"}, 2042 {"shape":"TooManyRequestsException"}, 2043 {"shape":"PasswordResetRequiredException"}, 2044 {"shape":"UserNotFoundException"}, 2045 {"shape":"UserNotConfirmedException"}, 2046 {"shape":"InternalErrorException"}, 2047 {"shape":"EnableSoftwareTokenMFAException"}, 2048 {"shape":"NotAuthorizedException"}, 2049 {"shape":"SoftwareTokenMFANotFoundException"}, 2050 {"shape":"CodeMismatchException"}, 2051 {"shape":"ForbiddenException"} 2052 ], 2053 "documentation":"<p>Use this API to register a user's entered time-based one-time password (TOTP) code and mark the user's software token MFA status as \"verified\" if successful. The request takes an access token or a session string, but not both.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 2054 "authtype":"none" 2055 }, 2056 "VerifyUserAttribute":{ 2057 "name":"VerifyUserAttribute", 2058 "http":{ 2059 "method":"POST", 2060 "requestUri":"/" 2061 }, 2062 "input":{"shape":"VerifyUserAttributeRequest"}, 2063 "output":{"shape":"VerifyUserAttributeResponse"}, 2064 "errors":[ 2065 {"shape":"ResourceNotFoundException"}, 2066 {"shape":"InvalidParameterException"}, 2067 {"shape":"CodeMismatchException"}, 2068 {"shape":"ExpiredCodeException"}, 2069 {"shape":"NotAuthorizedException"}, 2070 {"shape":"TooManyRequestsException"}, 2071 {"shape":"LimitExceededException"}, 2072 {"shape":"PasswordResetRequiredException"}, 2073 {"shape":"UserNotFoundException"}, 2074 {"shape":"UserNotConfirmedException"}, 2075 {"shape":"InternalErrorException"}, 2076 {"shape":"AliasExistsException"}, 2077 {"shape":"ForbiddenException"} 2078 ], 2079 "documentation":"<p>Verifies the specified user attributes in the user pool.</p> <p> If your user pool requires verification before Amazon Cognito updates the attribute value, VerifyUserAttribute updates the affected attribute to its pending value. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UserAttributeUpdateSettingsType.html\"> UserAttributeUpdateSettingsType</a>. </p> <p>Authorize this action with a signed-in user's access token. It must include the scope <code>aws.cognito.signin.user.admin</code>.</p> <note> <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p> </note>", 2080 "authtype":"none" 2081 } 2082 }, 2083 "shapes":{ 2084 "AWSAccountIdType":{ 2085 "type":"string", 2086 "max":12, 2087 "pattern":"[0-9]+" 2088 }, 2089 "AccessTokenValidityType":{ 2090 "type":"integer", 2091 "max":86400, 2092 "min":1 2093 }, 2094 "AccountRecoverySettingType":{ 2095 "type":"structure", 2096 "members":{ 2097 "RecoveryMechanisms":{ 2098 "shape":"RecoveryMechanismsType", 2099 "documentation":"<p>The list of <code>RecoveryOptionTypes</code>.</p>" 2100 } 2101 }, 2102 "documentation":"<p>The data type for <code>AccountRecoverySetting</code>.</p>" 2103 }, 2104 "AccountTakeoverActionNotifyType":{"type":"boolean"}, 2105 "AccountTakeoverActionType":{ 2106 "type":"structure", 2107 "required":[ 2108 "Notify", 2109 "EventAction" 2110 ], 2111 "members":{ 2112 "Notify":{ 2113 "shape":"AccountTakeoverActionNotifyType", 2114 "documentation":"<p>Flag specifying whether to send a notification.</p>" 2115 }, 2116 "EventAction":{ 2117 "shape":"AccountTakeoverEventActionType", 2118 "documentation":"<p>The action to take in response to the account takeover action. Valid values are as follows:</p> <ul> <li> <p> <code>BLOCK</code> Choosing this action will block the request.</p> </li> <li> <p> <code>MFA_IF_CONFIGURED</code> Present an MFA challenge if user has configured it, else allow the request.</p> </li> <li> <p> <code>MFA_REQUIRED</code> Present an MFA challenge if user has configured it, else block the request.</p> </li> <li> <p> <code>NO_ACTION</code> Allow the user to sign in.</p> </li> </ul>" 2119 } 2120 }, 2121 "documentation":"<p>Account takeover action type.</p>" 2122 }, 2123 "AccountTakeoverActionsType":{ 2124 "type":"structure", 2125 "members":{ 2126 "LowAction":{ 2127 "shape":"AccountTakeoverActionType", 2128 "documentation":"<p>Action to take for a low risk.</p>" 2129 }, 2130 "MediumAction":{ 2131 "shape":"AccountTakeoverActionType", 2132 "documentation":"<p>Action to take for a medium risk.</p>" 2133 }, 2134 "HighAction":{ 2135 "shape":"AccountTakeoverActionType", 2136 "documentation":"<p>Action to take for a high risk.</p>" 2137 } 2138 }, 2139 "documentation":"<p>Account takeover actions type.</p>" 2140 }, 2141 "AccountTakeoverEventActionType":{ 2142 "type":"string", 2143 "enum":[ 2144 "BLOCK", 2145 "MFA_IF_CONFIGURED", 2146 "MFA_REQUIRED", 2147 "NO_ACTION" 2148 ] 2149 }, 2150 "AccountTakeoverRiskConfigurationType":{ 2151 "type":"structure", 2152 "required":["Actions"], 2153 "members":{ 2154 "NotifyConfiguration":{ 2155 "shape":"NotifyConfigurationType", 2156 "documentation":"<p>The notify configuration used to construct email notifications.</p>" 2157 }, 2158 "Actions":{ 2159 "shape":"AccountTakeoverActionsType", 2160 "documentation":"<p>Account takeover risk configuration actions.</p>" 2161 } 2162 }, 2163 "documentation":"<p>Configuration for mitigation actions and notification for different levels of risk detected for a potential account takeover.</p>" 2164 }, 2165 "AddCustomAttributesRequest":{ 2166 "type":"structure", 2167 "required":[ 2168 "UserPoolId", 2169 "CustomAttributes" 2170 ], 2171 "members":{ 2172 "UserPoolId":{ 2173 "shape":"UserPoolIdType", 2174 "documentation":"<p>The user pool ID for the user pool where you want to add custom attributes.</p>" 2175 }, 2176 "CustomAttributes":{ 2177 "shape":"CustomAttributesListType", 2178 "documentation":"<p>An array of custom attributes, such as Mutable and Name.</p>" 2179 } 2180 }, 2181 "documentation":"<p>Represents the request to add custom attributes.</p>" 2182 }, 2183 "AddCustomAttributesResponse":{ 2184 "type":"structure", 2185 "members":{ 2186 }, 2187 "documentation":"<p>Represents the response from the server for the request to add custom attributes.</p>" 2188 }, 2189 "AdminAddUserToGroupRequest":{ 2190 "type":"structure", 2191 "required":[ 2192 "UserPoolId", 2193 "Username", 2194 "GroupName" 2195 ], 2196 "members":{ 2197 "UserPoolId":{ 2198 "shape":"UserPoolIdType", 2199 "documentation":"<p>The user pool ID for the user pool.</p>" 2200 }, 2201 "Username":{ 2202 "shape":"UsernameType", 2203 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2204 }, 2205 "GroupName":{ 2206 "shape":"GroupNameType", 2207 "documentation":"<p>The name of the group that you want to add your user to.</p>" 2208 } 2209 } 2210 }, 2211 "AdminConfirmSignUpRequest":{ 2212 "type":"structure", 2213 "required":[ 2214 "UserPoolId", 2215 "Username" 2216 ], 2217 "members":{ 2218 "UserPoolId":{ 2219 "shape":"UserPoolIdType", 2220 "documentation":"<p>The user pool ID for which you want to confirm user registration.</p>" 2221 }, 2222 "Username":{ 2223 "shape":"UsernameType", 2224 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2225 }, 2226 "ClientMetadata":{ 2227 "shape":"ClientMetadataType", 2228 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>If your user pool configuration includes triggers, the AdminConfirmSignUp API action invokes the Lambda function that is specified for the <i>post confirmation</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. In this payload, the <code>clientMetadata</code> attribute provides the data that you assigned to the ClientMetadata parameter in your AdminConfirmSignUp request. In your function code in Lambda, you can process the ClientMetadata value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 2229 } 2230 }, 2231 "documentation":"<p>Confirm a user's registration as a user pool administrator.</p>" 2232 }, 2233 "AdminConfirmSignUpResponse":{ 2234 "type":"structure", 2235 "members":{ 2236 }, 2237 "documentation":"<p>Represents the response from the server for the request to confirm registration.</p>" 2238 }, 2239 "AdminCreateUserConfigType":{ 2240 "type":"structure", 2241 "members":{ 2242 "AllowAdminCreateUserOnly":{ 2243 "shape":"BooleanType", 2244 "documentation":"<p>Set to <code>True</code> if only the administrator is allowed to create user profiles. Set to <code>False</code> if users can sign themselves up via an app.</p>" 2245 }, 2246 "UnusedAccountValidityDays":{ 2247 "shape":"AdminCreateUserUnusedAccountValidityDaysType", 2248 "documentation":"<p>The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. To reset the account after that time limit, you must call <code>AdminCreateUser</code> again, specifying <code>\"RESEND\"</code> for the <code>MessageAction</code> parameter. The default value for this parameter is 7.</p> <note> <p>If you set a value for <code>TemporaryPasswordValidityDays</code> in <code>PasswordPolicy</code>, that value will be used, and <code>UnusedAccountValidityDays</code> will be no longer be an available parameter for that user pool.</p> </note>" 2249 }, 2250 "InviteMessageTemplate":{ 2251 "shape":"MessageTemplateType", 2252 "documentation":"<p>The message template to be used for the welcome message to new users.</p> <p>See also <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization\">Customizing User Invitation Messages</a>.</p>" 2253 } 2254 }, 2255 "documentation":"<p>The configuration for creating a new user profile.</p>" 2256 }, 2257 "AdminCreateUserRequest":{ 2258 "type":"structure", 2259 "required":[ 2260 "UserPoolId", 2261 "Username" 2262 ], 2263 "members":{ 2264 "UserPoolId":{ 2265 "shape":"UserPoolIdType", 2266 "documentation":"<p>The user pool ID for the user pool where the user will be created.</p>" 2267 }, 2268 "Username":{ 2269 "shape":"UsernameType", 2270 "documentation":"<p>The value that you want to set as the username sign-in attribute. The following conditions apply to the username parameter.</p> <ul> <li> <p>The username can't be a duplicate of another username in the same user pool.</p> </li> <li> <p>You can't change the value of a username after you create it.</p> </li> <li> <p>You can only provide a value if usernames are a valid sign-in attribute for your user pool. If your user pool only supports phone numbers or email addresses as sign-in attributes, Amazon Cognito automatically generates a username value. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases\">Customizing sign-in attributes</a>.</p> </li> </ul>" 2271 }, 2272 "UserAttributes":{ 2273 "shape":"AttributeListType", 2274 "documentation":"<p>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 <code>Username</code>. However, any attributes that you specify as required (when creating a user pool or in the <b>Attributes</b> tab of the console) either you should supply (in your call to <code>AdminCreateUser</code>) or the user should supply (when they sign up in response to your welcome message).</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p> <p>To send a message inviting the user to sign up, you must specify the user's email address or phone number. You can do this in your call to AdminCreateUser or in the <b>Users</b> tab of the Amazon Cognito console for managing your user pools.</p> <p>In your call to <code>AdminCreateUser</code>, you can set the <code>email_verified</code> attribute to <code>True</code>, and you can set the <code>phone_number_verified</code> attribute to <code>True</code>. You can also do this by calling <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html\">AdminUpdateUserAttributes</a>.</p> <ul> <li> <p> <b>email</b>: The email address of the user to whom the message that contains the code and username will be sent. Required if the <code>email_verified</code> attribute is set to <code>True</code>, or if <code>\"EMAIL\"</code> is specified in the <code>DesiredDeliveryMediums</code> parameter.</p> </li> <li> <p> <b>phone_number</b>: The phone number of the user to whom the message that contains the code and username will be sent. Required if the <code>phone_number_verified</code> attribute is set to <code>True</code>, or if <code>\"SMS\"</code> is specified in the <code>DesiredDeliveryMediums</code> parameter.</p> </li> </ul>" 2275 }, 2276 "ValidationData":{ 2277 "shape":"AttributeListType", 2278 "documentation":"<p>Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.</p> <p>Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.</p> <p>For more information about the pre sign-up Lambda trigger, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html\">Pre sign-up Lambda trigger</a>.</p>" 2279 }, 2280 "TemporaryPassword":{ 2281 "shape":"PasswordType", 2282 "documentation":"<p>The user's temporary password. This password must conform to the password policy that you specified when you created the user pool.</p> <p>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.</p> <p>This parameter isn't required. If you don't specify a value, Amazon Cognito generates one for you.</p> <p>The temporary password can only be used until the user account expiration limit that you set for your user pool. To reset the account after that time limit, you must call <code>AdminCreateUser</code> again and specify <code>RESEND</code> for the <code>MessageAction</code> parameter.</p>" 2283 }, 2284 "ForceAliasCreation":{ 2285 "shape":"ForceAliasCreation", 2286 "documentation":"<p>This parameter is used only if the <code>phone_number_verified</code> or <code>email_verified</code> attribute is set to <code>True</code>. Otherwise, it is ignored.</p> <p>If this parameter is set to <code>True</code> 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.</p> <p>If this parameter is set to <code>False</code>, the API throws an <code>AliasExistsException</code> error if the alias already exists. The default value is <code>False</code>.</p>" 2287 }, 2288 "MessageAction":{ 2289 "shape":"MessageActionType", 2290 "documentation":"<p>Set to <code>RESEND</code> to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to <code>SUPPRESS</code> to suppress sending the message. You can specify only one value.</p>" 2291 }, 2292 "DesiredDeliveryMediums":{ 2293 "shape":"DeliveryMediumListType", 2294 "documentation":"<p>Specify <code>\"EMAIL\"</code> if email will be used to send the welcome message. Specify <code>\"SMS\"</code> if the phone number will be used. The default value is <code>\"SMS\"</code>. You can specify more than one value.</p>" 2295 }, 2296 "ClientMetadata":{ 2297 "shape":"ClientMetadataType", 2298 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is assigned to the <i>pre sign-up</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 2299 } 2300 }, 2301 "documentation":"<p>Represents the request to create a user in the specified user pool.</p>" 2302 }, 2303 "AdminCreateUserResponse":{ 2304 "type":"structure", 2305 "members":{ 2306 "User":{ 2307 "shape":"UserType", 2308 "documentation":"<p>The newly created user.</p>" 2309 } 2310 }, 2311 "documentation":"<p>Represents the response from the server to the request to create the user.</p>" 2312 }, 2313 "AdminCreateUserUnusedAccountValidityDaysType":{ 2314 "type":"integer", 2315 "max":365, 2316 "min":0 2317 }, 2318 "AdminDeleteUserAttributesRequest":{ 2319 "type":"structure", 2320 "required":[ 2321 "UserPoolId", 2322 "Username", 2323 "UserAttributeNames" 2324 ], 2325 "members":{ 2326 "UserPoolId":{ 2327 "shape":"UserPoolIdType", 2328 "documentation":"<p>The user pool ID for the user pool where you want to delete user attributes.</p>" 2329 }, 2330 "Username":{ 2331 "shape":"UsernameType", 2332 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2333 }, 2334 "UserAttributeNames":{ 2335 "shape":"AttributeNameListType", 2336 "documentation":"<p>An array of strings representing the user attribute names you want to delete.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p>" 2337 } 2338 }, 2339 "documentation":"<p>Represents the request to delete user attributes as an administrator.</p>" 2340 }, 2341 "AdminDeleteUserAttributesResponse":{ 2342 "type":"structure", 2343 "members":{ 2344 }, 2345 "documentation":"<p>Represents the response received from the server for a request to delete user attributes.</p>" 2346 }, 2347 "AdminDeleteUserRequest":{ 2348 "type":"structure", 2349 "required":[ 2350 "UserPoolId", 2351 "Username" 2352 ], 2353 "members":{ 2354 "UserPoolId":{ 2355 "shape":"UserPoolIdType", 2356 "documentation":"<p>The user pool ID for the user pool where you want to delete the user.</p>" 2357 }, 2358 "Username":{ 2359 "shape":"UsernameType", 2360 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2361 } 2362 }, 2363 "documentation":"<p>Represents the request to delete a user as an administrator.</p>" 2364 }, 2365 "AdminDisableProviderForUserRequest":{ 2366 "type":"structure", 2367 "required":[ 2368 "UserPoolId", 2369 "User" 2370 ], 2371 "members":{ 2372 "UserPoolId":{ 2373 "shape":"StringType", 2374 "documentation":"<p>The user pool ID for the user pool.</p>" 2375 }, 2376 "User":{ 2377 "shape":"ProviderUserIdentifierType", 2378 "documentation":"<p>The user to be disabled.</p>" 2379 } 2380 } 2381 }, 2382 "AdminDisableProviderForUserResponse":{ 2383 "type":"structure", 2384 "members":{ 2385 } 2386 }, 2387 "AdminDisableUserRequest":{ 2388 "type":"structure", 2389 "required":[ 2390 "UserPoolId", 2391 "Username" 2392 ], 2393 "members":{ 2394 "UserPoolId":{ 2395 "shape":"UserPoolIdType", 2396 "documentation":"<p>The user pool ID for the user pool where you want to disable the user.</p>" 2397 }, 2398 "Username":{ 2399 "shape":"UsernameType", 2400 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2401 } 2402 }, 2403 "documentation":"<p>Represents the request to disable the user as an administrator.</p>" 2404 }, 2405 "AdminDisableUserResponse":{ 2406 "type":"structure", 2407 "members":{ 2408 }, 2409 "documentation":"<p>Represents the response received from the server to disable the user as an administrator.</p>" 2410 }, 2411 "AdminEnableUserRequest":{ 2412 "type":"structure", 2413 "required":[ 2414 "UserPoolId", 2415 "Username" 2416 ], 2417 "members":{ 2418 "UserPoolId":{ 2419 "shape":"UserPoolIdType", 2420 "documentation":"<p>The user pool ID for the user pool where you want to enable the user.</p>" 2421 }, 2422 "Username":{ 2423 "shape":"UsernameType", 2424 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2425 } 2426 }, 2427 "documentation":"<p>Represents the request that enables the user as an administrator.</p>" 2428 }, 2429 "AdminEnableUserResponse":{ 2430 "type":"structure", 2431 "members":{ 2432 }, 2433 "documentation":"<p>Represents the response from the server for the request to enable a user as an administrator.</p>" 2434 }, 2435 "AdminForgetDeviceRequest":{ 2436 "type":"structure", 2437 "required":[ 2438 "UserPoolId", 2439 "Username", 2440 "DeviceKey" 2441 ], 2442 "members":{ 2443 "UserPoolId":{ 2444 "shape":"UserPoolIdType", 2445 "documentation":"<p>The user pool ID.</p>" 2446 }, 2447 "Username":{ 2448 "shape":"UsernameType", 2449 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2450 }, 2451 "DeviceKey":{ 2452 "shape":"DeviceKeyType", 2453 "documentation":"<p>The device key.</p>" 2454 } 2455 }, 2456 "documentation":"<p>Sends the forgot device request, as an administrator.</p>" 2457 }, 2458 "AdminGetDeviceRequest":{ 2459 "type":"structure", 2460 "required":[ 2461 "DeviceKey", 2462 "UserPoolId", 2463 "Username" 2464 ], 2465 "members":{ 2466 "DeviceKey":{ 2467 "shape":"DeviceKeyType", 2468 "documentation":"<p>The device key.</p>" 2469 }, 2470 "UserPoolId":{ 2471 "shape":"UserPoolIdType", 2472 "documentation":"<p>The user pool ID.</p>" 2473 }, 2474 "Username":{ 2475 "shape":"UsernameType", 2476 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2477 } 2478 }, 2479 "documentation":"<p>Represents the request to get the device, as an administrator.</p>" 2480 }, 2481 "AdminGetDeviceResponse":{ 2482 "type":"structure", 2483 "required":["Device"], 2484 "members":{ 2485 "Device":{ 2486 "shape":"DeviceType", 2487 "documentation":"<p>The device.</p>" 2488 } 2489 }, 2490 "documentation":"<p>Gets the device response, as an administrator.</p>" 2491 }, 2492 "AdminGetUserRequest":{ 2493 "type":"structure", 2494 "required":[ 2495 "UserPoolId", 2496 "Username" 2497 ], 2498 "members":{ 2499 "UserPoolId":{ 2500 "shape":"UserPoolIdType", 2501 "documentation":"<p>The user pool ID for the user pool where you want to get information about the user.</p>" 2502 }, 2503 "Username":{ 2504 "shape":"UsernameType", 2505 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2506 } 2507 }, 2508 "documentation":"<p>Represents the request to get the specified user as an administrator.</p>" 2509 }, 2510 "AdminGetUserResponse":{ 2511 "type":"structure", 2512 "required":["Username"], 2513 "members":{ 2514 "Username":{ 2515 "shape":"UsernameType", 2516 "documentation":"<p>The username of the user that you requested.</p>" 2517 }, 2518 "UserAttributes":{ 2519 "shape":"AttributeListType", 2520 "documentation":"<p>An array of name-value pairs representing user attributes.</p>" 2521 }, 2522 "UserCreateDate":{ 2523 "shape":"DateType", 2524 "documentation":"<p>The date the user was created.</p>" 2525 }, 2526 "UserLastModifiedDate":{ 2527 "shape":"DateType", 2528 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 2529 }, 2530 "Enabled":{ 2531 "shape":"BooleanType", 2532 "documentation":"<p>Indicates that the status is <code>enabled</code>.</p>" 2533 }, 2534 "UserStatus":{ 2535 "shape":"UserStatusType", 2536 "documentation":"<p>The user status. Can be one of the following:</p> <ul> <li> <p>UNCONFIRMED - User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has been confirmed.</p> </li> <li> <p>UNKNOWN - User status isn't known.</p> </li> <li> <p>RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.</p> </li> <li> <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else. </p> </li> </ul>" 2537 }, 2538 "MFAOptions":{ 2539 "shape":"MFAOptionListType", 2540 "documentation":"<p> <i>This response parameter is no longer supported.</i> It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.</p>" 2541 }, 2542 "PreferredMfaSetting":{ 2543 "shape":"StringType", 2544 "documentation":"<p>The user's preferred MFA setting.</p>" 2545 }, 2546 "UserMFASettingList":{ 2547 "shape":"UserMFASettingListType", 2548 "documentation":"<p>The MFA options that are activated for the user. The possible values in this list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>" 2549 } 2550 }, 2551 "documentation":"<p>Represents the response from the server from the request to get the specified user as an administrator.</p>" 2552 }, 2553 "AdminInitiateAuthRequest":{ 2554 "type":"structure", 2555 "required":[ 2556 "UserPoolId", 2557 "ClientId", 2558 "AuthFlow" 2559 ], 2560 "members":{ 2561 "UserPoolId":{ 2562 "shape":"UserPoolIdType", 2563 "documentation":"<p>The ID of the Amazon Cognito user pool.</p>" 2564 }, 2565 "ClientId":{ 2566 "shape":"ClientIdType", 2567 "documentation":"<p>The app client ID.</p>" 2568 }, 2569 "AuthFlow":{ 2570 "shape":"AuthFlowType", 2571 "documentation":"<p>The authentication flow for this call to run. The API action will depend on this value. For example:</p> <ul> <li> <p> <code>REFRESH_TOKEN_AUTH</code> will take in a valid refresh token and return new tokens.</p> </li> <li> <p> <code>USER_SRP_AUTH</code> will take in <code>USERNAME</code> and <code>SRP_A</code> and return the Secure Remote Password (SRP) protocol variables to be used for next challenge execution.</p> </li> <li> <p> <code>ADMIN_USER_PASSWORD_AUTH</code> will take in <code>USERNAME</code> and <code>PASSWORD</code> and return the next challenge or tokens.</p> </li> </ul> <p>Valid values include:</p> <ul> <li> <p> <code>USER_SRP_AUTH</code>: Authentication flow for the Secure Remote Password (SRP) protocol.</p> </li> <li> <p> <code>REFRESH_TOKEN_AUTH</code>/<code>REFRESH_TOKEN</code>: Authentication flow for refreshing the access token and ID token by supplying a valid refresh token.</p> </li> <li> <p> <code>CUSTOM_AUTH</code>: Custom authentication flow.</p> </li> <li> <p> <code>ADMIN_NO_SRP_AUTH</code>: Non-SRP authentication flow; you can pass in the USERNAME and PASSWORD directly if the flow is enabled for calling the app client.</p> </li> <li> <p> <code>ADMIN_USER_PASSWORD_AUTH</code>: Admin-based user password authentication. This replaces the <code>ADMIN_NO_SRP_AUTH</code> authentication flow. In this flow, Amazon Cognito receives the password in the request instead of using the SRP process to verify passwords.</p> </li> </ul>" 2572 }, 2573 "AuthParameters":{ 2574 "shape":"AuthParametersType", 2575 "documentation":"<p>The authentication parameters. These are inputs corresponding to the <code>AuthFlow</code> that you're invoking. The required values depend on the value of <code>AuthFlow</code>:</p> <ul> <li> <p>For <code>USER_SRP_AUTH</code>: <code>USERNAME</code> (required), <code>SRP_A</code> (required), <code>SECRET_HASH</code> (required if the app client is configured with a client secret), <code>DEVICE_KEY</code>.</p> </li> <li> <p>For <code>ADMIN_USER_PASSWORD_AUTH</code>: <code>USERNAME</code> (required), <code>PASSWORD</code> (required), <code>SECRET_HASH</code> (required if the app client is configured with a client secret), <code>DEVICE_KEY</code>.</p> </li> <li> <p>For <code>REFRESH_TOKEN_AUTH/REFRESH_TOKEN</code>: <code>REFRESH_TOKEN</code> (required), <code>SECRET_HASH</code> (required if the app client is configured with a client secret), <code>DEVICE_KEY</code>.</p> </li> <li> <p>For <code>CUSTOM_AUTH</code>: <code>USERNAME</code> (required), <code>SECRET_HASH</code> (if app client is configured with client secret), <code>DEVICE_KEY</code>. To start the authentication flow with password verification, include <code>ChallengeName: SRP_A</code> and <code>SRP_A: (The SRP_A Value)</code>.</p> </li> </ul> <p>For more information about <code>SECRET_HASH</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash\">Computing secret hash values</a>. For information about <code>DEVICE_KEY</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p>" 2576 }, 2577 "ClientMetadata":{ 2578 "shape":"ClientMetadataType", 2579 "documentation":"<p>A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:</p> <ul> <li> <p>Pre signup</p> </li> <li> <p>Pre authentication</p> </li> <li> <p>User migration</p> </li> </ul> <p>When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a <code>validationData</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in Lambda, you can process the <code>validationData</code> value to enhance your workflow for your specific needs.</p> <p>When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:</p> <ul> <li> <p>Post authentication</p> </li> <li> <p>Custom message</p> </li> <li> <p>Pre token generation</p> </li> <li> <p>Create auth challenge</p> </li> <li> <p>Define auth challenge</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 2580 }, 2581 "AnalyticsMetadata":{ 2582 "shape":"AnalyticsMetadataType", 2583 "documentation":"<p>The analytics metadata for collecting Amazon Pinpoint metrics for <code>AdminInitiateAuth</code> calls.</p>" 2584 }, 2585 "ContextData":{ 2586 "shape":"ContextDataType", 2587 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 2588 } 2589 }, 2590 "documentation":"<p>Initiates the authorization request, as an administrator.</p>" 2591 }, 2592 "AdminInitiateAuthResponse":{ 2593 "type":"structure", 2594 "members":{ 2595 "ChallengeName":{ 2596 "shape":"ChallengeNameType", 2597 "documentation":"<p>The name of the challenge that you're responding to with this call. This is returned in the <code>AdminInitiateAuth</code> response if you must pass another challenge.</p> <ul> <li> <p> <code>MFA_SETUP</code>: If MFA is required, users who don't have at least one of the MFA methods set up are presented with an <code>MFA_SETUP</code> challenge. The user must set up at least one MFA type to continue to authenticate.</p> </li> <li> <p> <code>SELECT_MFA_TYPE</code>: Selects the MFA type. Valid MFA options are <code>SMS_MFA</code> for text SMS MFA, and <code>SOFTWARE_TOKEN_MFA</code> for time-based one-time password (TOTP) software token MFA.</p> </li> <li> <p> <code>SMS_MFA</code>: Next challenge is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p> <code>PASSWORD_VERIFIER</code>: Next challenge is to supply <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>, and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li> <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If device tracking was activated in your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p> <code>ADMIN_NO_SRP_AUTH</code>: This is returned if you must authenticate with <code>USERNAME</code> and <code>PASSWORD</code> directly. An app client must be enabled to use this flow.</p> </li> <li> <p> <code>NEW_PASSWORD_REQUIRED</code>: For users who are required to change their passwords after successful first login. Respond to this challenge with <code>NEW_PASSWORD</code> and any required attributes that Amazon Cognito returned in the <code>requiredAttributes</code> parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminRespondToAuthChallenge.html\">AdminRespondToAuthChallenge</a>.</p> <note> <p>In a <code>NEW_PASSWORD_REQUIRED</code> challenge response, you can't modify a required attribute that already has a value. In <code>AdminRespondToAuthChallenge</code>, set a value for any keys that Amazon Cognito returned in the <code>requiredAttributes</code> parameter, then use the <code>AdminUpdateUserAttributes</code> API operation to modify the value of any additional attributes.</p> </note> </li> <li> <p> <code>MFA_SETUP</code>: For users who are required to set up an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters <code>MFAS_CAN_SETUP</code> value. </p> <p> To set up software token MFA, use the session returned here from <code>InitiateAuth</code> as an input to <code>AssociateSoftwareToken</code>, and use the session returned by <code>VerifySoftwareToken</code> as an input to <code>RespondToAuthChallenge</code> with challenge name <code>MFA_SETUP</code> to complete sign-in. To set up SMS MFA, users will need help from an administrator to add a phone number to their account and then call <code>InitiateAuth</code> again to restart sign-in.</p> </li> </ul>" 2598 }, 2599 "Session":{ 2600 "shape":"SessionType", 2601 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. If <code>AdminInitiateAuth</code> or <code>AdminRespondToAuthChallenge</code> API call determines that the caller must pass another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next <code>AdminRespondToAuthChallenge</code> API call.</p>" 2602 }, 2603 "ChallengeParameters":{ 2604 "shape":"ChallengeParametersType", 2605 "documentation":"<p>The challenge parameters. These are returned to you in the <code>AdminInitiateAuth</code> response if you must pass another challenge. The responses in this parameter should be used to compute inputs to the next call (<code>AdminRespondToAuthChallenge</code>).</p> <p>All challenges require <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p> <p>The value of the <code>USER_ID_FOR_SRP</code> attribute is 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 <code>AdminInitiateAuth</code>. This happens because, in the <code>AdminRespondToAuthChallenge</code> API <code>ChallengeResponses</code>, the <code>USERNAME</code> attribute can't be an alias.</p>" 2606 }, 2607 "AuthenticationResult":{ 2608 "shape":"AuthenticationResultType", 2609 "documentation":"<p>The result of the authentication response. This is only returned if the caller doesn't need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, <code>ChallengeName</code>, <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>" 2610 } 2611 }, 2612 "documentation":"<p>Initiates the authentication response, as an administrator.</p>" 2613 }, 2614 "AdminLinkProviderForUserRequest":{ 2615 "type":"structure", 2616 "required":[ 2617 "UserPoolId", 2618 "DestinationUser", 2619 "SourceUser" 2620 ], 2621 "members":{ 2622 "UserPoolId":{ 2623 "shape":"StringType", 2624 "documentation":"<p>The user pool ID for the user pool.</p>" 2625 }, 2626 "DestinationUser":{ 2627 "shape":"ProviderUserIdentifierType", 2628 "documentation":"<p>The existing user in the user pool that you want to assign to the external IdP user account. This user can be a local (Username + Password) Amazon Cognito user pools user or a federated user (for example, a SAML or Facebook user). If the user doesn't exist, Amazon Cognito generates an exception. Amazon Cognito returns this user when the new user (with the linked IdP attribute) signs in.</p> <p>For a native username + password user, the <code>ProviderAttributeValue</code> for the <code>DestinationUser</code> should be the username in the user pool. For a federated user, it should be the provider-specific <code>user_id</code>.</p> <p>The <code>ProviderAttributeName</code> of the <code>DestinationUser</code> is ignored.</p> <p>The <code>ProviderName</code> should be set to <code>Cognito</code> for users in Cognito user pools.</p> <important> <p>All attributes in the DestinationUser profile must be mutable. If you have assigned the user any immutable custom attributes, the operation won't succeed.</p> </important>" 2629 }, 2630 "SourceUser":{ 2631 "shape":"ProviderUserIdentifierType", 2632 "documentation":"<p>An external IdP account for a user who doesn't exist yet in the user pool. This user must be a federated user (for example, a SAML or Facebook user), not another native user.</p> <p>If the <code>SourceUser</code> is using a federated social IdP, such as Facebook, Google, or Login with Amazon, you must set the <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>. For social IdPs, the <code>ProviderName</code> will be <code>Facebook</code>, <code>Google</code>, or <code>LoginWithAmazon</code>, and Amazon Cognito will automatically parse the Facebook, Google, and Login with Amazon tokens for <code>id</code>, <code>sub</code>, and <code>user_id</code>, respectively. The <code>ProviderAttributeValue</code> for the user must be the same value as the <code>id</code>, <code>sub</code>, or <code>user_id</code> value found in the social IdP token.</p> <p/> <p>For OIDC, the <code>ProviderAttributeName</code> can be any value that matches a claim in the ID token, or that your app retrieves from the <code>userInfo</code> endpoint. You must map the claim to a user pool attribute in your IdP configuration, and set the user pool attribute name as the value of <code>ProviderAttributeName</code> in your <code>AdminLinkProviderForUser</code> request.</p> <p>For SAML, the <code>ProviderAttributeName</code> can be any value that matches a claim in the SAML assertion. To link SAML users based on the subject of the SAML assertion, map the subject to a claim through the SAML IdP and set that claim name as the value of <code>ProviderAttributeName</code> in your <code>AdminLinkProviderForUser</code> request.</p> <p>For both OIDC and SAML users, when you set <code>ProviderAttributeName</code> to <code>Cognito_Subject</code>, Amazon Cognito will automatically parse the default unique identifier found in the subject from the IdP token.</p>" 2633 } 2634 } 2635 }, 2636 "AdminLinkProviderForUserResponse":{ 2637 "type":"structure", 2638 "members":{ 2639 } 2640 }, 2641 "AdminListDevicesRequest":{ 2642 "type":"structure", 2643 "required":[ 2644 "UserPoolId", 2645 "Username" 2646 ], 2647 "members":{ 2648 "UserPoolId":{ 2649 "shape":"UserPoolIdType", 2650 "documentation":"<p>The user pool ID.</p>" 2651 }, 2652 "Username":{ 2653 "shape":"UsernameType", 2654 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2655 }, 2656 "Limit":{ 2657 "shape":"QueryLimitType", 2658 "documentation":"<p>The limit of the devices request.</p>" 2659 }, 2660 "PaginationToken":{ 2661 "shape":"SearchPaginationTokenType", 2662 "documentation":"<p>This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.</p>" 2663 } 2664 }, 2665 "documentation":"<p>Represents the request to list devices, as an administrator.</p>" 2666 }, 2667 "AdminListDevicesResponse":{ 2668 "type":"structure", 2669 "members":{ 2670 "Devices":{ 2671 "shape":"DeviceListType", 2672 "documentation":"<p>The devices in the list of devices response.</p>" 2673 }, 2674 "PaginationToken":{ 2675 "shape":"SearchPaginationTokenType", 2676 "documentation":"<p>The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.</p>" 2677 } 2678 }, 2679 "documentation":"<p>Lists the device's response, as an administrator.</p>" 2680 }, 2681 "AdminListGroupsForUserRequest":{ 2682 "type":"structure", 2683 "required":[ 2684 "Username", 2685 "UserPoolId" 2686 ], 2687 "members":{ 2688 "Username":{ 2689 "shape":"UsernameType", 2690 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2691 }, 2692 "UserPoolId":{ 2693 "shape":"UserPoolIdType", 2694 "documentation":"<p>The user pool ID for the user pool.</p>" 2695 }, 2696 "Limit":{ 2697 "shape":"QueryLimitType", 2698 "documentation":"<p>The limit of the request to list groups.</p>" 2699 }, 2700 "NextToken":{ 2701 "shape":"PaginationKey", 2702 "documentation":"<p>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.</p>" 2703 } 2704 } 2705 }, 2706 "AdminListGroupsForUserResponse":{ 2707 "type":"structure", 2708 "members":{ 2709 "Groups":{ 2710 "shape":"GroupListType", 2711 "documentation":"<p>The groups that the user belongs to.</p>" 2712 }, 2713 "NextToken":{ 2714 "shape":"PaginationKey", 2715 "documentation":"<p>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.</p>" 2716 } 2717 } 2718 }, 2719 "AdminListUserAuthEventsRequest":{ 2720 "type":"structure", 2721 "required":[ 2722 "UserPoolId", 2723 "Username" 2724 ], 2725 "members":{ 2726 "UserPoolId":{ 2727 "shape":"UserPoolIdType", 2728 "documentation":"<p>The user pool ID.</p>" 2729 }, 2730 "Username":{ 2731 "shape":"UsernameType", 2732 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2733 }, 2734 "MaxResults":{ 2735 "shape":"QueryLimitType", 2736 "documentation":"<p>The maximum number of authentication events to return. Returns 60 events if you set <code>MaxResults</code> to 0, or if you don't include a <code>MaxResults</code> parameter.</p>" 2737 }, 2738 "NextToken":{ 2739 "shape":"PaginationKey", 2740 "documentation":"<p>A pagination token.</p>" 2741 } 2742 } 2743 }, 2744 "AdminListUserAuthEventsResponse":{ 2745 "type":"structure", 2746 "members":{ 2747 "AuthEvents":{ 2748 "shape":"AuthEventsType", 2749 "documentation":"<p>The response object. It includes the <code>EventID</code>, <code>EventType</code>, <code>CreationDate</code>, <code>EventRisk</code>, and <code>EventResponse</code>.</p>" 2750 }, 2751 "NextToken":{ 2752 "shape":"PaginationKey", 2753 "documentation":"<p>A pagination token.</p>" 2754 } 2755 } 2756 }, 2757 "AdminRemoveUserFromGroupRequest":{ 2758 "type":"structure", 2759 "required":[ 2760 "UserPoolId", 2761 "Username", 2762 "GroupName" 2763 ], 2764 "members":{ 2765 "UserPoolId":{ 2766 "shape":"UserPoolIdType", 2767 "documentation":"<p>The user pool ID for the user pool.</p>" 2768 }, 2769 "Username":{ 2770 "shape":"UsernameType", 2771 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2772 }, 2773 "GroupName":{ 2774 "shape":"GroupNameType", 2775 "documentation":"<p>The group name.</p>" 2776 } 2777 } 2778 }, 2779 "AdminResetUserPasswordRequest":{ 2780 "type":"structure", 2781 "required":[ 2782 "UserPoolId", 2783 "Username" 2784 ], 2785 "members":{ 2786 "UserPoolId":{ 2787 "shape":"UserPoolIdType", 2788 "documentation":"<p>The user pool ID for the user pool where you want to reset the user's password.</p>" 2789 }, 2790 "Username":{ 2791 "shape":"UsernameType", 2792 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2793 }, 2794 "ClientMetadata":{ 2795 "shape":"ClientMetadataType", 2796 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminResetUserPassword API action, Amazon Cognito invokes the function that is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminResetUserPassword request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs. </p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 2797 } 2798 }, 2799 "documentation":"<p>Represents the request to reset a user's password as an administrator.</p>" 2800 }, 2801 "AdminResetUserPasswordResponse":{ 2802 "type":"structure", 2803 "members":{ 2804 }, 2805 "documentation":"<p>Represents the response from the server to reset a user password as an administrator.</p>" 2806 }, 2807 "AdminRespondToAuthChallengeRequest":{ 2808 "type":"structure", 2809 "required":[ 2810 "UserPoolId", 2811 "ClientId", 2812 "ChallengeName" 2813 ], 2814 "members":{ 2815 "UserPoolId":{ 2816 "shape":"UserPoolIdType", 2817 "documentation":"<p>The ID of the Amazon Cognito user pool.</p>" 2818 }, 2819 "ClientId":{ 2820 "shape":"ClientIdType", 2821 "documentation":"<p>The app client ID.</p>" 2822 }, 2823 "ChallengeName":{ 2824 "shape":"ChallengeNameType", 2825 "documentation":"<p>The challenge name. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html\">AdminInitiateAuth</a>.</p>" 2826 }, 2827 "ChallengeResponses":{ 2828 "shape":"ChallengeResponsesType", 2829 "documentation":"<p>The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.</p> <important> <p>You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret.</p> </important> <dl> <dt>SMS_MFA</dt> <dd> <p> <code>\"ChallengeName\": \"SMS_MFA\", \"ChallengeResponses\": {\"SMS_MFA_CODE\": \"[SMS_code]\", \"USERNAME\": \"[username]\"}</code> </p> </dd> <dt>PASSWORD_VERIFIER</dt> <dd> <p> <code>\"ChallengeName\": \"PASSWORD_VERIFIER\", \"ChallengeResponses\": {\"PASSWORD_CLAIM_SIGNATURE\": \"[claim_signature]\", \"PASSWORD_CLAIM_SECRET_BLOCK\": \"[secret_block]\", \"TIMESTAMP\": [timestamp], \"USERNAME\": \"[username]\"}</code> </p> <p>Add <code>\"DEVICE_KEY\"</code> when you sign in with a remembered device.</p> </dd> <dt>CUSTOM_CHALLENGE</dt> <dd> <p> <code>\"ChallengeName\": \"CUSTOM_CHALLENGE\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"ANSWER\": \"[challenge_answer]\"}</code> </p> <p>Add <code>\"DEVICE_KEY\"</code> when you sign in with a remembered device.</p> </dd> <dt>NEW_PASSWORD_REQUIRED</dt> <dd> <p> <code>\"ChallengeName\": \"NEW_PASSWORD_REQUIRED\", \"ChallengeResponses\": {\"NEW_PASSWORD\": \"[new_password]\", \"USERNAME\": \"[username]\"}</code> </p> <p>To set any required attributes that <code>InitiateAuth</code> returned in an <code>requiredAttributes</code> parameter, add <code>\"userAttributes.[attribute_name]\": \"[attribute_value]\"</code>. This parameter can also set values for writable attributes that aren't required by your user pool.</p> <note> <p>In a <code>NEW_PASSWORD_REQUIRED</code> challenge response, you can't modify a required attribute that already has a value. In <code>RespondToAuthChallenge</code>, set a value for any keys that Amazon Cognito returned in the <code>requiredAttributes</code> parameter, then use the <code>UpdateUserAttributes</code> API operation to modify the value of any additional attributes.</p> </note> </dd> <dt>SOFTWARE_TOKEN_MFA</dt> <dd> <p> <code>\"ChallengeName\": \"SOFTWARE_TOKEN_MFA\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"SOFTWARE_TOKEN_MFA_CODE\": [authenticator_code]}</code> </p> </dd> <dt>DEVICE_SRP_AUTH</dt> <dd> <p> <code>\"ChallengeName\": \"DEVICE_SRP_AUTH\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"DEVICE_KEY\": \"[device_key]\", \"SRP_A\": \"[srp_a]\"}</code> </p> </dd> <dt>DEVICE_PASSWORD_VERIFIER</dt> <dd> <p> <code>\"ChallengeName\": \"DEVICE_PASSWORD_VERIFIER\", \"ChallengeResponses\": {\"DEVICE_KEY\": \"[device_key]\", \"PASSWORD_CLAIM_SIGNATURE\": \"[claim_signature]\", \"PASSWORD_CLAIM_SECRET_BLOCK\": \"[secret_block]\", \"TIMESTAMP\": [timestamp], \"USERNAME\": \"[username]\"}</code> </p> </dd> <dt>MFA_SETUP</dt> <dd> <p> <code>\"ChallengeName\": \"MFA_SETUP\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\"}, \"SESSION\": \"[Session ID from VerifySoftwareToken]\"</code> </p> </dd> <dt>SELECT_MFA_TYPE</dt> <dd> <p> <code>\"ChallengeName\": \"SELECT_MFA_TYPE\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"ANSWER\": \"[SMS_MFA or SOFTWARE_TOKEN_MFA]\"}</code> </p> </dd> </dl> <p>For more information about <code>SECRET_HASH</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash\">Computing secret hash values</a>. For information about <code>DEVICE_KEY</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p>" 2830 }, 2831 "Session":{ 2832 "shape":"SessionType", 2833 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. If an <code>InitiateAuth</code> or <code>RespondToAuthChallenge</code> API call determines that the caller must pass another challenge, it returns a session with other challenge parameters. This session should be passed as it is to the next <code>RespondToAuthChallenge</code> API call.</p>" 2834 }, 2835 "AnalyticsMetadata":{ 2836 "shape":"AnalyticsMetadataType", 2837 "documentation":"<p>The analytics metadata for collecting Amazon Pinpoint metrics for <code>AdminRespondToAuthChallenge</code> calls.</p>" 2838 }, 2839 "ContextData":{ 2840 "shape":"ContextDataType", 2841 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 2842 }, 2843 "ClientMetadata":{ 2844 "shape":"ClientMetadataType", 2845 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminRespondToAuthChallenge API action, Amazon Cognito invokes any functions that you have assigned to the following triggers: </p> <ul> <li> <p>pre sign-up</p> </li> <li> <p>custom message</p> </li> <li> <p>post authentication</p> </li> <li> <p>user migration</p> </li> <li> <p>pre token generation</p> </li> <li> <p>define auth challenge</p> </li> <li> <p>create auth challenge</p> </li> <li> <p>verify auth challenge response</p> </li> </ul> <p>When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute that provides the data that you assigned to the ClientMetadata parameter in your AdminRespondToAuthChallenge request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 2846 } 2847 }, 2848 "documentation":"<p>The request to respond to the authentication challenge, as an administrator.</p>" 2849 }, 2850 "AdminRespondToAuthChallengeResponse":{ 2851 "type":"structure", 2852 "members":{ 2853 "ChallengeName":{ 2854 "shape":"ChallengeNameType", 2855 "documentation":"<p>The name of the challenge. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html\">AdminInitiateAuth</a>.</p>" 2856 }, 2857 "Session":{ 2858 "shape":"SessionType", 2859 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. If the caller must pass another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next <code>RespondToAuthChallenge</code> API call.</p>" 2860 }, 2861 "ChallengeParameters":{ 2862 "shape":"ChallengeParametersType", 2863 "documentation":"<p>The challenge parameters. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html\">AdminInitiateAuth</a>.</p>" 2864 }, 2865 "AuthenticationResult":{ 2866 "shape":"AuthenticationResultType", 2867 "documentation":"<p>The result returned by the server in response to the authentication request.</p>" 2868 } 2869 }, 2870 "documentation":"<p>Responds to the authentication challenge, as an administrator.</p>" 2871 }, 2872 "AdminSetUserMFAPreferenceRequest":{ 2873 "type":"structure", 2874 "required":[ 2875 "Username", 2876 "UserPoolId" 2877 ], 2878 "members":{ 2879 "SMSMfaSettings":{ 2880 "shape":"SMSMfaSettingsType", 2881 "documentation":"<p>The SMS text message MFA settings.</p>" 2882 }, 2883 "SoftwareTokenMfaSettings":{ 2884 "shape":"SoftwareTokenMfaSettingsType", 2885 "documentation":"<p>The time-based one-time password software token MFA settings.</p>" 2886 }, 2887 "Username":{ 2888 "shape":"UsernameType", 2889 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2890 }, 2891 "UserPoolId":{ 2892 "shape":"UserPoolIdType", 2893 "documentation":"<p>The user pool ID.</p>" 2894 } 2895 } 2896 }, 2897 "AdminSetUserMFAPreferenceResponse":{ 2898 "type":"structure", 2899 "members":{ 2900 } 2901 }, 2902 "AdminSetUserPasswordRequest":{ 2903 "type":"structure", 2904 "required":[ 2905 "UserPoolId", 2906 "Username", 2907 "Password" 2908 ], 2909 "members":{ 2910 "UserPoolId":{ 2911 "shape":"UserPoolIdType", 2912 "documentation":"<p>The user pool ID for the user pool where you want to set the user's password.</p>" 2913 }, 2914 "Username":{ 2915 "shape":"UsernameType", 2916 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2917 }, 2918 "Password":{ 2919 "shape":"PasswordType", 2920 "documentation":"<p>The password for the user.</p>" 2921 }, 2922 "Permanent":{ 2923 "shape":"BooleanType", 2924 "documentation":"<p> <code>True</code> if the password is permanent, <code>False</code> if it is temporary.</p>" 2925 } 2926 } 2927 }, 2928 "AdminSetUserPasswordResponse":{ 2929 "type":"structure", 2930 "members":{ 2931 } 2932 }, 2933 "AdminSetUserSettingsRequest":{ 2934 "type":"structure", 2935 "required":[ 2936 "UserPoolId", 2937 "Username", 2938 "MFAOptions" 2939 ], 2940 "members":{ 2941 "UserPoolId":{ 2942 "shape":"UserPoolIdType", 2943 "documentation":"<p>The ID of the user pool that contains the user whose options you're setting.</p>" 2944 }, 2945 "Username":{ 2946 "shape":"UsernameType", 2947 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2948 }, 2949 "MFAOptions":{ 2950 "shape":"MFAOptionListType", 2951 "documentation":"<p>You can use this parameter only to set an SMS configuration that uses SMS for delivery.</p>" 2952 } 2953 }, 2954 "documentation":"<p>You can use this parameter to set an MFA configuration that uses the SMS delivery medium.</p>" 2955 }, 2956 "AdminSetUserSettingsResponse":{ 2957 "type":"structure", 2958 "members":{ 2959 }, 2960 "documentation":"<p>Represents the response from the server to set user settings as an administrator.</p>" 2961 }, 2962 "AdminUpdateAuthEventFeedbackRequest":{ 2963 "type":"structure", 2964 "required":[ 2965 "UserPoolId", 2966 "Username", 2967 "EventId", 2968 "FeedbackValue" 2969 ], 2970 "members":{ 2971 "UserPoolId":{ 2972 "shape":"UserPoolIdType", 2973 "documentation":"<p>The user pool ID.</p>" 2974 }, 2975 "Username":{ 2976 "shape":"UsernameType", 2977 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 2978 }, 2979 "EventId":{ 2980 "shape":"EventIdType", 2981 "documentation":"<p>The authentication event ID.</p>" 2982 }, 2983 "FeedbackValue":{ 2984 "shape":"FeedbackValueType", 2985 "documentation":"<p>The authentication event feedback value. When you provide a <code>FeedbackValue</code> value of <code>valid</code>, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a <code>FeedbackValue</code> value of <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level.</p>" 2986 } 2987 } 2988 }, 2989 "AdminUpdateAuthEventFeedbackResponse":{ 2990 "type":"structure", 2991 "members":{ 2992 } 2993 }, 2994 "AdminUpdateDeviceStatusRequest":{ 2995 "type":"structure", 2996 "required":[ 2997 "UserPoolId", 2998 "Username", 2999 "DeviceKey" 3000 ], 3001 "members":{ 3002 "UserPoolId":{ 3003 "shape":"UserPoolIdType", 3004 "documentation":"<p>The user pool ID.</p>" 3005 }, 3006 "Username":{ 3007 "shape":"UsernameType", 3008 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 3009 }, 3010 "DeviceKey":{ 3011 "shape":"DeviceKeyType", 3012 "documentation":"<p>The device key.</p>" 3013 }, 3014 "DeviceRememberedStatus":{ 3015 "shape":"DeviceRememberedStatusType", 3016 "documentation":"<p>The status indicating whether a device has been remembered or not.</p>" 3017 } 3018 }, 3019 "documentation":"<p>The request to update the device status, as an administrator.</p>" 3020 }, 3021 "AdminUpdateDeviceStatusResponse":{ 3022 "type":"structure", 3023 "members":{ 3024 }, 3025 "documentation":"<p>The status response to the request to update the device, as an administrator.</p>" 3026 }, 3027 "AdminUpdateUserAttributesRequest":{ 3028 "type":"structure", 3029 "required":[ 3030 "UserPoolId", 3031 "Username", 3032 "UserAttributes" 3033 ], 3034 "members":{ 3035 "UserPoolId":{ 3036 "shape":"UserPoolIdType", 3037 "documentation":"<p>The user pool ID for the user pool where you want to update user attributes.</p>" 3038 }, 3039 "Username":{ 3040 "shape":"UsernameType", 3041 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 3042 }, 3043 "UserAttributes":{ 3044 "shape":"AttributeListType", 3045 "documentation":"<p>An array of name-value pairs representing user attributes.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p> <p>If your user pool requires verification before Amazon Cognito updates an attribute value that you specify in this request, Amazon Cognito doesn’t immediately update the value of that attribute. After your user receives and responds to a verification message to verify the new value, Amazon Cognito updates the attribute value. Your user can sign in and receive messages with the original attribute value until they verify the new value.</p> <p>To update the value of an attribute that requires verification in the same API request, include the <code>email_verified</code> or <code>phone_number_verified</code> attribute, with a value of <code>true</code>. If you set the <code>email_verified</code> or <code>phone_number_verified</code> value for an <code>email</code> or <code>phone_number</code> attribute that requires verification to <code>true</code>, Amazon Cognito doesn’t send a verification message to your user.</p>" 3046 }, 3047 "ClientMetadata":{ 3048 "shape":"ClientMetadataType", 3049 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminUpdateUserAttributes request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 3050 } 3051 }, 3052 "documentation":"<p>Represents the request to update the user's attributes as an administrator.</p>" 3053 }, 3054 "AdminUpdateUserAttributesResponse":{ 3055 "type":"structure", 3056 "members":{ 3057 }, 3058 "documentation":"<p>Represents the response from the server for the request to update user attributes as an administrator.</p>" 3059 }, 3060 "AdminUserGlobalSignOutRequest":{ 3061 "type":"structure", 3062 "required":[ 3063 "UserPoolId", 3064 "Username" 3065 ], 3066 "members":{ 3067 "UserPoolId":{ 3068 "shape":"UserPoolIdType", 3069 "documentation":"<p>The user pool ID.</p>" 3070 }, 3071 "Username":{ 3072 "shape":"UsernameType", 3073 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 3074 } 3075 }, 3076 "documentation":"<p>The request to sign out of all devices, as an administrator.</p>" 3077 }, 3078 "AdminUserGlobalSignOutResponse":{ 3079 "type":"structure", 3080 "members":{ 3081 }, 3082 "documentation":"<p>The global sign-out response, as an administrator.</p>" 3083 }, 3084 "AdvancedSecurityModeType":{ 3085 "type":"string", 3086 "enum":[ 3087 "OFF", 3088 "AUDIT", 3089 "ENFORCED" 3090 ] 3091 }, 3092 "AliasAttributeType":{ 3093 "type":"string", 3094 "enum":[ 3095 "phone_number", 3096 "email", 3097 "preferred_username" 3098 ] 3099 }, 3100 "AliasAttributesListType":{ 3101 "type":"list", 3102 "member":{"shape":"AliasAttributeType"} 3103 }, 3104 "AliasExistsException":{ 3105 "type":"structure", 3106 "members":{ 3107 "message":{ 3108 "shape":"MessageType", 3109 "documentation":"<p>The message that Amazon Cognito sends to the user when the value of an alias attribute is already linked to another user profile.</p>" 3110 } 3111 }, 3112 "documentation":"<p>This exception is thrown when a user tries to confirm the account with an email address or phone number that has already been supplied as an alias for a different user profile. This exception indicates that an account with this email address or phone already exists in a user pool that you've configured to use email address or phone number as a sign-in alias.</p>", 3113 "exception":true 3114 }, 3115 "AnalyticsConfigurationType":{ 3116 "type":"structure", 3117 "members":{ 3118 "ApplicationId":{ 3119 "shape":"HexStringType", 3120 "documentation":"<p>The application ID for an Amazon Pinpoint application.</p>" 3121 }, 3122 "ApplicationArn":{ 3123 "shape":"ArnType", 3124 "documentation":"<p>The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You can use the Amazon Pinpoint project to integrate with the chosen user pool Client. Amazon Cognito publishes events to the Amazon Pinpoint project that the app ARN declares.</p>" 3125 }, 3126 "RoleArn":{ 3127 "shape":"ArnType", 3128 "documentation":"<p>The ARN of an Identity and Access Management role that authorizes Amazon Cognito to publish events to Amazon Pinpoint analytics.</p>" 3129 }, 3130 "ExternalId":{ 3131 "shape":"StringType", 3132 "documentation":"<p>The external ID.</p>" 3133 }, 3134 "UserDataShared":{ 3135 "shape":"BooleanType", 3136 "documentation":"<p>If <code>UserDataShared</code> is <code>true</code>, Amazon Cognito includes user data in the events that it publishes to Amazon Pinpoint analytics.</p>" 3137 } 3138 }, 3139 "documentation":"<p>The Amazon Pinpoint analytics configuration necessary to collect metrics for a user pool.</p> <note> <p>In Regions where Amazon Pinpoint isn't available, user pools only support sending events to Amazon Pinpoint projects in us-east-1. In Regions where Amazon Pinpoint is available, user pools support sending events to Amazon Pinpoint projects within that same Region.</p> </note>" 3140 }, 3141 "AnalyticsMetadataType":{ 3142 "type":"structure", 3143 "members":{ 3144 "AnalyticsEndpointId":{ 3145 "shape":"StringType", 3146 "documentation":"<p>The endpoint ID.</p>" 3147 } 3148 }, 3149 "documentation":"<p>An Amazon Pinpoint analytics endpoint.</p> <p>An endpoint uniquely identifies a mobile device, email address, or phone number that can receive messages from Amazon Pinpoint analytics. For more information about Amazon Web Services Regions that can contain Amazon Pinpoint resources for use with Amazon Cognito user pools, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-pinpoint-integration.html\">Using Amazon Pinpoint analytics with Amazon Cognito user pools</a>.</p>" 3150 }, 3151 "ArnType":{ 3152 "type":"string", 3153 "max":2048, 3154 "min":20, 3155 "pattern":"arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:([\\w+=/,.@-]*)?:[0-9]+:[\\w+=/,.@-]+(:[\\w+=/,.@-]+)?(:[\\w+=/,.@-]+)?" 3156 }, 3157 "AssociateSoftwareTokenRequest":{ 3158 "type":"structure", 3159 "members":{ 3160 "AccessToken":{ 3161 "shape":"TokenModelType", 3162 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose software token you want to generate.</p>" 3163 }, 3164 "Session":{ 3165 "shape":"SessionType", 3166 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.</p>" 3167 } 3168 } 3169 }, 3170 "AssociateSoftwareTokenResponse":{ 3171 "type":"structure", 3172 "members":{ 3173 "SecretCode":{ 3174 "shape":"SecretCodeType", 3175 "documentation":"<p>A unique generated shared secret code that is used in the TOTP algorithm to generate a one-time code.</p>" 3176 }, 3177 "Session":{ 3178 "shape":"SessionType", 3179 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.</p>" 3180 } 3181 } 3182 }, 3183 "AttributeDataType":{ 3184 "type":"string", 3185 "enum":[ 3186 "String", 3187 "Number", 3188 "DateTime", 3189 "Boolean" 3190 ] 3191 }, 3192 "AttributeListType":{ 3193 "type":"list", 3194 "member":{"shape":"AttributeType"} 3195 }, 3196 "AttributeMappingKeyType":{ 3197 "type":"string", 3198 "max":32, 3199 "min":1 3200 }, 3201 "AttributeMappingType":{ 3202 "type":"map", 3203 "key":{"shape":"AttributeMappingKeyType"}, 3204 "value":{"shape":"StringType"} 3205 }, 3206 "AttributeNameListType":{ 3207 "type":"list", 3208 "member":{"shape":"AttributeNameType"} 3209 }, 3210 "AttributeNameType":{ 3211 "type":"string", 3212 "max":32, 3213 "min":1, 3214 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" 3215 }, 3216 "AttributeType":{ 3217 "type":"structure", 3218 "required":["Name"], 3219 "members":{ 3220 "Name":{ 3221 "shape":"AttributeNameType", 3222 "documentation":"<p>The name of the attribute.</p>" 3223 }, 3224 "Value":{ 3225 "shape":"AttributeValueType", 3226 "documentation":"<p>The value of the attribute.</p>" 3227 } 3228 }, 3229 "documentation":"<p>Specifies whether the attribute is standard or custom.</p>" 3230 }, 3231 "AttributeValueType":{ 3232 "type":"string", 3233 "max":2048, 3234 "sensitive":true 3235 }, 3236 "AttributesRequireVerificationBeforeUpdateType":{ 3237 "type":"list", 3238 "member":{"shape":"VerifiedAttributeType"} 3239 }, 3240 "AuthEventType":{ 3241 "type":"structure", 3242 "members":{ 3243 "EventId":{ 3244 "shape":"StringType", 3245 "documentation":"<p>The event ID.</p>" 3246 }, 3247 "EventType":{ 3248 "shape":"EventType", 3249 "documentation":"<p>The event type.</p>" 3250 }, 3251 "CreationDate":{ 3252 "shape":"DateType", 3253 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 3254 }, 3255 "EventResponse":{ 3256 "shape":"EventResponseType", 3257 "documentation":"<p>The event response.</p>" 3258 }, 3259 "EventRisk":{ 3260 "shape":"EventRiskType", 3261 "documentation":"<p>The event risk.</p>" 3262 }, 3263 "ChallengeResponses":{ 3264 "shape":"ChallengeResponseListType", 3265 "documentation":"<p>The challenge responses.</p>" 3266 }, 3267 "EventContextData":{ 3268 "shape":"EventContextDataType", 3269 "documentation":"<p>The user context data captured at the time of an event request. This value provides additional information about the client from which event the request is received.</p>" 3270 }, 3271 "EventFeedback":{ 3272 "shape":"EventFeedbackType", 3273 "documentation":"<p>A flag specifying the user feedback captured at the time of an event request is good or bad. </p>" 3274 } 3275 }, 3276 "documentation":"<p>The authentication event type.</p>" 3277 }, 3278 "AuthEventsType":{ 3279 "type":"list", 3280 "member":{"shape":"AuthEventType"} 3281 }, 3282 "AuthFlowType":{ 3283 "type":"string", 3284 "enum":[ 3285 "USER_SRP_AUTH", 3286 "REFRESH_TOKEN_AUTH", 3287 "REFRESH_TOKEN", 3288 "CUSTOM_AUTH", 3289 "ADMIN_NO_SRP_AUTH", 3290 "USER_PASSWORD_AUTH", 3291 "ADMIN_USER_PASSWORD_AUTH" 3292 ] 3293 }, 3294 "AuthParametersType":{ 3295 "type":"map", 3296 "key":{"shape":"StringType"}, 3297 "value":{"shape":"StringType"}, 3298 "sensitive":true 3299 }, 3300 "AuthSessionValidityType":{ 3301 "type":"integer", 3302 "max":15, 3303 "min":3 3304 }, 3305 "AuthenticationResultType":{ 3306 "type":"structure", 3307 "members":{ 3308 "AccessToken":{ 3309 "shape":"TokenModelType", 3310 "documentation":"<p>A valid access token that Amazon Cognito issued to the user who you want to authenticate.</p>" 3311 }, 3312 "ExpiresIn":{ 3313 "shape":"IntegerType", 3314 "documentation":"<p>The expiration period of the authentication result in seconds.</p>" 3315 }, 3316 "TokenType":{ 3317 "shape":"StringType", 3318 "documentation":"<p>The token type.</p>" 3319 }, 3320 "RefreshToken":{ 3321 "shape":"TokenModelType", 3322 "documentation":"<p>The refresh token.</p>" 3323 }, 3324 "IdToken":{ 3325 "shape":"TokenModelType", 3326 "documentation":"<p>The ID token.</p>" 3327 }, 3328 "NewDeviceMetadata":{ 3329 "shape":"NewDeviceMetadataType", 3330 "documentation":"<p>The new device metadata from an authentication result.</p>" 3331 } 3332 }, 3333 "documentation":"<p>The authentication result.</p>" 3334 }, 3335 "BlockedIPRangeListType":{ 3336 "type":"list", 3337 "member":{"shape":"StringType"}, 3338 "max":200 3339 }, 3340 "BooleanType":{"type":"boolean"}, 3341 "CSSType":{ 3342 "type":"string", 3343 "max":131072, 3344 "min":0 3345 }, 3346 "CSSVersionType":{"type":"string"}, 3347 "CallbackURLsListType":{ 3348 "type":"list", 3349 "member":{"shape":"RedirectUrlType"}, 3350 "max":100, 3351 "min":0 3352 }, 3353 "ChallengeName":{ 3354 "type":"string", 3355 "enum":[ 3356 "Password", 3357 "Mfa" 3358 ] 3359 }, 3360 "ChallengeNameType":{ 3361 "type":"string", 3362 "enum":[ 3363 "SMS_MFA", 3364 "SOFTWARE_TOKEN_MFA", 3365 "SELECT_MFA_TYPE", 3366 "MFA_SETUP", 3367 "PASSWORD_VERIFIER", 3368 "CUSTOM_CHALLENGE", 3369 "DEVICE_SRP_AUTH", 3370 "DEVICE_PASSWORD_VERIFIER", 3371 "ADMIN_NO_SRP_AUTH", 3372 "NEW_PASSWORD_REQUIRED" 3373 ] 3374 }, 3375 "ChallengeParametersType":{ 3376 "type":"map", 3377 "key":{"shape":"StringType"}, 3378 "value":{"shape":"StringType"} 3379 }, 3380 "ChallengeResponse":{ 3381 "type":"string", 3382 "enum":[ 3383 "Success", 3384 "Failure" 3385 ] 3386 }, 3387 "ChallengeResponseListType":{ 3388 "type":"list", 3389 "member":{"shape":"ChallengeResponseType"} 3390 }, 3391 "ChallengeResponseType":{ 3392 "type":"structure", 3393 "members":{ 3394 "ChallengeName":{ 3395 "shape":"ChallengeName", 3396 "documentation":"<p>The challenge name.</p>" 3397 }, 3398 "ChallengeResponse":{ 3399 "shape":"ChallengeResponse", 3400 "documentation":"<p>The challenge response.</p>" 3401 } 3402 }, 3403 "documentation":"<p>The challenge response type.</p>" 3404 }, 3405 "ChallengeResponsesType":{ 3406 "type":"map", 3407 "key":{"shape":"StringType"}, 3408 "value":{"shape":"StringType"}, 3409 "sensitive":true 3410 }, 3411 "ChangePasswordRequest":{ 3412 "type":"structure", 3413 "required":[ 3414 "PreviousPassword", 3415 "ProposedPassword", 3416 "AccessToken" 3417 ], 3418 "members":{ 3419 "PreviousPassword":{ 3420 "shape":"PasswordType", 3421 "documentation":"<p>The old password.</p>" 3422 }, 3423 "ProposedPassword":{ 3424 "shape":"PasswordType", 3425 "documentation":"<p>The new password.</p>" 3426 }, 3427 "AccessToken":{ 3428 "shape":"TokenModelType", 3429 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose password you want to change.</p>" 3430 } 3431 }, 3432 "documentation":"<p>Represents the request to change a user password.</p>" 3433 }, 3434 "ChangePasswordResponse":{ 3435 "type":"structure", 3436 "members":{ 3437 }, 3438 "documentation":"<p>The response from the server to the change password request.</p>" 3439 }, 3440 "ClientIdType":{ 3441 "type":"string", 3442 "max":128, 3443 "min":1, 3444 "pattern":"[\\w+]+", 3445 "sensitive":true 3446 }, 3447 "ClientMetadataType":{ 3448 "type":"map", 3449 "key":{"shape":"StringType"}, 3450 "value":{"shape":"StringType"} 3451 }, 3452 "ClientNameType":{ 3453 "type":"string", 3454 "max":128, 3455 "min":1, 3456 "pattern":"[\\w\\s+=,.@-]+" 3457 }, 3458 "ClientPermissionListType":{ 3459 "type":"list", 3460 "member":{"shape":"ClientPermissionType"} 3461 }, 3462 "ClientPermissionType":{ 3463 "type":"string", 3464 "max":2048, 3465 "min":1 3466 }, 3467 "ClientSecretType":{ 3468 "type":"string", 3469 "max":64, 3470 "min":1, 3471 "pattern":"[\\w+]+", 3472 "sensitive":true 3473 }, 3474 "CloudWatchLogsConfigurationType":{ 3475 "type":"structure", 3476 "members":{ 3477 "LogGroupArn":{ 3478 "shape":"ArnType", 3479 "documentation":"<p>The Amazon Resource Name (arn) of a CloudWatch Logs log group where your user pool sends logs. The log group must not be encrypted with Key Management Service and must be in the same Amazon Web Services account as your user pool.</p> <p>To send logs to log groups with a resource policy of a size greater than 5120 characters, configure a log group with a path that starts with <code>/aws/vendedlogs</code>. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html\">Enabling logging from certain Amazon Web Services services</a>.</p>" 3480 } 3481 }, 3482 "documentation":"<p>The CloudWatch logging destination of a user pool detailed activity logging configuration.</p>" 3483 }, 3484 "CodeDeliveryDetailsListType":{ 3485 "type":"list", 3486 "member":{"shape":"CodeDeliveryDetailsType"} 3487 }, 3488 "CodeDeliveryDetailsType":{ 3489 "type":"structure", 3490 "members":{ 3491 "Destination":{ 3492 "shape":"StringType", 3493 "documentation":"<p>The email address or phone number destination where Amazon Cognito sent the code.</p>" 3494 }, 3495 "DeliveryMedium":{ 3496 "shape":"DeliveryMediumType", 3497 "documentation":"<p>The method that Amazon Cognito used to send the code.</p>" 3498 }, 3499 "AttributeName":{ 3500 "shape":"AttributeNameType", 3501 "documentation":"<p>The name of the attribute that Amazon Cognito verifies with the code.</p>" 3502 } 3503 }, 3504 "documentation":"<p>The delivery details for an email or SMS message that Amazon Cognito sent for authentication or verification.</p>" 3505 }, 3506 "CodeDeliveryFailureException":{ 3507 "type":"structure", 3508 "members":{ 3509 "message":{ 3510 "shape":"MessageType", 3511 "documentation":"<p>The message sent when a verification code fails to deliver successfully.</p>" 3512 } 3513 }, 3514 "documentation":"<p>This exception is thrown when a verification code fails to deliver successfully.</p>", 3515 "exception":true 3516 }, 3517 "CodeMismatchException":{ 3518 "type":"structure", 3519 "members":{ 3520 "message":{ 3521 "shape":"MessageType", 3522 "documentation":"<p>The message provided when the code mismatch exception is thrown.</p>" 3523 } 3524 }, 3525 "documentation":"<p>This exception is thrown if the provided code doesn't match what the server was expecting.</p>", 3526 "exception":true 3527 }, 3528 "CompletionMessageType":{ 3529 "type":"string", 3530 "max":128, 3531 "min":1, 3532 "pattern":"[\\w]+" 3533 }, 3534 "CompromisedCredentialsActionsType":{ 3535 "type":"structure", 3536 "required":["EventAction"], 3537 "members":{ 3538 "EventAction":{ 3539 "shape":"CompromisedCredentialsEventActionType", 3540 "documentation":"<p>The event action.</p>" 3541 } 3542 }, 3543 "documentation":"<p>The compromised credentials actions type.</p>" 3544 }, 3545 "CompromisedCredentialsEventActionType":{ 3546 "type":"string", 3547 "enum":[ 3548 "BLOCK", 3549 "NO_ACTION" 3550 ] 3551 }, 3552 "CompromisedCredentialsRiskConfigurationType":{ 3553 "type":"structure", 3554 "required":["Actions"], 3555 "members":{ 3556 "EventFilter":{ 3557 "shape":"EventFiltersType", 3558 "documentation":"<p>Perform the action for these events. The default is to perform all events if no event filter is specified.</p>" 3559 }, 3560 "Actions":{ 3561 "shape":"CompromisedCredentialsActionsType", 3562 "documentation":"<p>The compromised credentials risk configuration actions.</p>" 3563 } 3564 }, 3565 "documentation":"<p>The compromised credentials risk configuration type.</p>" 3566 }, 3567 "ConcurrentModificationException":{ 3568 "type":"structure", 3569 "members":{ 3570 "message":{ 3571 "shape":"MessageType", 3572 "documentation":"<p>The message provided when the concurrent exception is thrown.</p>" 3573 } 3574 }, 3575 "documentation":"<p>This exception is thrown if two or more modifications are happening concurrently.</p>", 3576 "exception":true 3577 }, 3578 "ConfirmDeviceRequest":{ 3579 "type":"structure", 3580 "required":[ 3581 "AccessToken", 3582 "DeviceKey" 3583 ], 3584 "members":{ 3585 "AccessToken":{ 3586 "shape":"TokenModelType", 3587 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose device you want to confirm.</p>" 3588 }, 3589 "DeviceKey":{ 3590 "shape":"DeviceKeyType", 3591 "documentation":"<p>The device key.</p>" 3592 }, 3593 "DeviceSecretVerifierConfig":{ 3594 "shape":"DeviceSecretVerifierConfigType", 3595 "documentation":"<p>The configuration of the device secret verifier.</p>" 3596 }, 3597 "DeviceName":{ 3598 "shape":"DeviceNameType", 3599 "documentation":"<p>The device name.</p>" 3600 } 3601 }, 3602 "documentation":"<p>Confirms the device request.</p>" 3603 }, 3604 "ConfirmDeviceResponse":{ 3605 "type":"structure", 3606 "members":{ 3607 "UserConfirmationNecessary":{ 3608 "shape":"BooleanType", 3609 "documentation":"<p>Indicates whether the user confirmation must confirm the device response.</p>" 3610 } 3611 }, 3612 "documentation":"<p>Confirms the device response.</p>" 3613 }, 3614 "ConfirmForgotPasswordRequest":{ 3615 "type":"structure", 3616 "required":[ 3617 "ClientId", 3618 "Username", 3619 "ConfirmationCode", 3620 "Password" 3621 ], 3622 "members":{ 3623 "ClientId":{ 3624 "shape":"ClientIdType", 3625 "documentation":"<p>The app client ID of the app associated with the user pool.</p>" 3626 }, 3627 "SecretHash":{ 3628 "shape":"SecretHashType", 3629 "documentation":"<p>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. For more information about <code>SecretHash</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash\">Computing secret hash values</a>.</p>" 3630 }, 3631 "Username":{ 3632 "shape":"UsernameType", 3633 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 3634 }, 3635 "ConfirmationCode":{ 3636 "shape":"ConfirmationCodeType", 3637 "documentation":"<p>The confirmation code from your user's request to reset their password. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html\">ForgotPassword</a>.</p>" 3638 }, 3639 "Password":{ 3640 "shape":"PasswordType", 3641 "documentation":"<p>The new password that your user wants to set.</p>" 3642 }, 3643 "AnalyticsMetadata":{ 3644 "shape":"AnalyticsMetadataType", 3645 "documentation":"<p>The Amazon Pinpoint analytics metadata for collecting metrics for <code>ConfirmForgotPassword</code> calls.</p>" 3646 }, 3647 "UserContextData":{ 3648 "shape":"UserContextDataType", 3649 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 3650 }, 3651 "ClientMetadata":{ 3652 "shape":"ClientMetadataType", 3653 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function that is assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 3654 } 3655 }, 3656 "documentation":"<p>The request representing the confirmation for a password reset.</p>" 3657 }, 3658 "ConfirmForgotPasswordResponse":{ 3659 "type":"structure", 3660 "members":{ 3661 }, 3662 "documentation":"<p>The response from the server that results from a user's request to retrieve a forgotten password.</p>" 3663 }, 3664 "ConfirmSignUpRequest":{ 3665 "type":"structure", 3666 "required":[ 3667 "ClientId", 3668 "Username", 3669 "ConfirmationCode" 3670 ], 3671 "members":{ 3672 "ClientId":{ 3673 "shape":"ClientIdType", 3674 "documentation":"<p>The ID of the app client associated with the user pool.</p>" 3675 }, 3676 "SecretHash":{ 3677 "shape":"SecretHashType", 3678 "documentation":"<p>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.</p>" 3679 }, 3680 "Username":{ 3681 "shape":"UsernameType", 3682 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 3683 }, 3684 "ConfirmationCode":{ 3685 "shape":"ConfirmationCodeType", 3686 "documentation":"<p>The confirmation code sent by a user's request to confirm registration.</p>" 3687 }, 3688 "ForceAliasCreation":{ 3689 "shape":"ForceAliasCreation", 3690 "documentation":"<p>Boolean to be specified to force user confirmation irrespective of existing alias. By default set to <code>False</code>. If this parameter is set to <code>True</code> 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 <code>False</code>, the API will throw an <b>AliasExistsException</b> error.</p>" 3691 }, 3692 "AnalyticsMetadata":{ 3693 "shape":"AnalyticsMetadataType", 3694 "documentation":"<p>The Amazon Pinpoint analytics metadata for collecting metrics for <code>ConfirmSignUp</code> calls.</p>" 3695 }, 3696 "UserContextData":{ 3697 "shape":"UserContextDataType", 3698 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 3699 }, 3700 "ClientMetadata":{ 3701 "shape":"ClientMetadataType", 3702 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the ConfirmSignUp API action, Amazon Cognito invokes the function that is assigned to the <i>post confirmation</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your ConfirmSignUp request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 3703 } 3704 }, 3705 "documentation":"<p>Represents the request to confirm registration of a user.</p>" 3706 }, 3707 "ConfirmSignUpResponse":{ 3708 "type":"structure", 3709 "members":{ 3710 }, 3711 "documentation":"<p>Represents the response from the server for the registration confirmation.</p>" 3712 }, 3713 "ConfirmationCodeType":{ 3714 "type":"string", 3715 "max":2048, 3716 "min":1, 3717 "pattern":"[\\S]+" 3718 }, 3719 "ContextDataType":{ 3720 "type":"structure", 3721 "required":[ 3722 "IpAddress", 3723 "ServerName", 3724 "ServerPath", 3725 "HttpHeaders" 3726 ], 3727 "members":{ 3728 "IpAddress":{ 3729 "shape":"StringType", 3730 "documentation":"<p>The source IP address of your user's device.</p>" 3731 }, 3732 "ServerName":{ 3733 "shape":"StringType", 3734 "documentation":"<p>Your server endpoint where this API is invoked.</p>" 3735 }, 3736 "ServerPath":{ 3737 "shape":"StringType", 3738 "documentation":"<p>Your server path where this API is invoked.</p>" 3739 }, 3740 "HttpHeaders":{ 3741 "shape":"HttpHeaderList", 3742 "documentation":"<p>HttpHeaders received on your server in same order.</p>" 3743 }, 3744 "EncodedData":{ 3745 "shape":"StringType", 3746 "documentation":"<p>Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint\">Adding user device and session data to API requests</a>.</p>" 3747 } 3748 }, 3749 "documentation":"<p>Contextual user data type used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>" 3750 }, 3751 "CreateGroupRequest":{ 3752 "type":"structure", 3753 "required":[ 3754 "GroupName", 3755 "UserPoolId" 3756 ], 3757 "members":{ 3758 "GroupName":{ 3759 "shape":"GroupNameType", 3760 "documentation":"<p>The name of the group. Must be unique.</p>" 3761 }, 3762 "UserPoolId":{ 3763 "shape":"UserPoolIdType", 3764 "documentation":"<p>The user pool ID for the user pool.</p>" 3765 }, 3766 "Description":{ 3767 "shape":"DescriptionType", 3768 "documentation":"<p>A string containing the description of the group.</p>" 3769 }, 3770 "RoleArn":{ 3771 "shape":"ArnType", 3772 "documentation":"<p>The role Amazon Resource Name (ARN) for the group.</p>" 3773 }, 3774 "Precedence":{ 3775 "shape":"PrecedenceType", 3776 "documentation":"<p>A non-negative 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 <code>Precedence</code> values take precedence over groups with higher or null <code>Precedence</code> values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for the <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims.</p> <p>Two groups can have the same <code>Precedence</code> value. If this happens, neither group takes precedence over the other. If two groups with the same <code>Precedence</code> have the same role ARN, that role is used in the <code>cognito:preferred_role</code> claim in tokens for users in each group. If the two groups have different role ARNs, the <code>cognito:preferred_role</code> claim isn't set in users' tokens.</p> <p>The default <code>Precedence</code> value is null. The maximum <code>Precedence</code> value is <code>2^31-1</code>.</p>" 3777 } 3778 } 3779 }, 3780 "CreateGroupResponse":{ 3781 "type":"structure", 3782 "members":{ 3783 "Group":{ 3784 "shape":"GroupType", 3785 "documentation":"<p>The group object for the group.</p>" 3786 } 3787 } 3788 }, 3789 "CreateIdentityProviderRequest":{ 3790 "type":"structure", 3791 "required":[ 3792 "UserPoolId", 3793 "ProviderName", 3794 "ProviderType", 3795 "ProviderDetails" 3796 ], 3797 "members":{ 3798 "UserPoolId":{ 3799 "shape":"UserPoolIdType", 3800 "documentation":"<p>The user pool ID.</p>" 3801 }, 3802 "ProviderName":{ 3803 "shape":"ProviderNameTypeV2", 3804 "documentation":"<p>The IdP name.</p>" 3805 }, 3806 "ProviderType":{ 3807 "shape":"IdentityProviderTypeType", 3808 "documentation":"<p>The IdP type.</p>" 3809 }, 3810 "ProviderDetails":{ 3811 "shape":"ProviderDetailsType", 3812 "documentation":"<p>The scopes, URLs, and identifiers for your external identity provider. The following examples describe the provider detail keys for each IdP type. These values and their schema are subject to change. Social IdP <code>authorize_scopes</code> values must match the values listed here.</p> <dl> <dt>OpenID Connect (OIDC)</dt> <dd> <p>Amazon Cognito accepts the following elements when it can't discover endpoint URLs from <code>oidc_issuer</code>: <code>attributes_url</code>, <code>authorize_url</code>, <code>jwks_uri</code>, <code>token_url</code>.</p> <p>Create or update request: <code>\"ProviderDetails\": { \"attributes_request_method\": \"GET\", \"attributes_url\": \"https://auth.example.com/userInfo\", \"authorize_scopes\": \"openid profile email\", \"authorize_url\": \"https://auth.example.com/authorize\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"jwks_uri\": \"https://auth.example.com/.well-known/jwks.json\", \"oidc_issuer\": \"https://auth.example.com\", \"token_url\": \"https://example.com/token\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_request_method\": \"GET\", \"attributes_url\": \"https://auth.example.com/userInfo\", \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"openid profile email\", \"authorize_url\": \"https://auth.example.com/authorize\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"jwks_uri\": \"https://auth.example.com/.well-known/jwks.json\", \"oidc_issuer\": \"https://auth.example.com\", \"token_url\": \"https://example.com/token\" }</code> </p> </dd> <dt>SAML</dt> <dd> <p>Create or update request with Metadata URL: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"MetadataURL\": \"https://auth.example.com/sso/saml/metadata\", \"RequestSigningAlgorithm\": \"rsa-sha256\" }</code> </p> <p>Create or update request with Metadata file: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"MetadataFile\": \"[metadata XML]\", \"RequestSigningAlgorithm\": \"rsa-sha256\" }</code> </p> <p>The value of <code>MetadataFile</code> must be the plaintext metadata document with all quote (\") characters escaped by backslashes.</p> <p>Describe response: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"ActiveEncryptionCertificate\": \"[certificate]\", \"MetadataURL\": \"https://auth.example.com/sso/saml/metadata\", \"RequestSigningAlgorithm\": \"rsa-sha256\", \"SLORedirectBindingURI\": \"https://auth.example.com/slo/saml\", \"SSORedirectBindingURI\": \"https://auth.example.com/sso/saml\" }</code> </p> </dd> <dt>LoginWithAmazon</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"profile postal_code\", \"client_id\": \"amzn1.application-oa2-client.1example23456789\", \"client_secret\": \"provider-app-client-secret\"</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url\": \"https://api.amazon.com/user/profile\", \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"profile postal_code\", \"authorize_url\": \"https://www.amazon.com/ap/oa\", \"client_id\": \"amzn1.application-oa2-client.1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"POST\", \"token_url\": \"https://api.amazon.com/auth/o2/token\" }</code> </p> </dd> <dt>Google</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"email profile openid\", \"client_id\": \"1example23456789.apps.googleusercontent.com\", \"client_secret\": \"provider-app-client-secret\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url\": \"https://people.googleapis.com/v1/people/me?personFields=\", \"attributes_url_add_attributes\": \"true\", \"authorize_scopes\": \"email profile openid\", \"authorize_url\": \"https://accounts.google.com/o/oauth2/v2/auth\", \"client_id\": \"1example23456789.apps.googleusercontent.com\", \"client_secret\": \"provider-app-client-secret\", \"oidc_issuer\": \"https://accounts.google.com\", \"token_request_method\": \"POST\", \"token_url\": \"https://www.googleapis.com/oauth2/v4/token\" }</code> </p> </dd> <dt>SignInWithApple</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"email name\", \"client_id\": \"com.example.cognito\", \"private_key\": \"1EXAMPLE\", \"key_id\": \"2EXAMPLE\", \"team_id\": \"3EXAMPLE\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"email name\", \"authorize_url\": \"https://appleid.apple.com/auth/authorize\", \"client_id\": \"com.example.cognito\", \"key_id\": \"1EXAMPLE\", \"oidc_issuer\": \"https://appleid.apple.com\", \"team_id\": \"2EXAMPLE\", \"token_request_method\": \"POST\", \"token_url\": \"https://appleid.apple.com/auth/token\" }</code> </p> </dd> <dt>Facebook</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"api_version\": \"v17.0\", \"authorize_scopes\": \"public_profile, email\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"api_version\": \"v17.0\", \"attributes_url\": \"https://graph.facebook.com/v17.0/me?fields=\", \"attributes_url_add_attributes\": \"true\", \"authorize_scopes\": \"public_profile, email\", \"authorize_url\": \"https://www.facebook.com/v17.0/dialog/oauth\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"GET\", \"token_url\": \"https://graph.facebook.com/v17.0/oauth/access_token\" }</code> </p> </dd> </dl>" 3813 }, 3814 "AttributeMapping":{ 3815 "shape":"AttributeMappingType", 3816 "documentation":"<p>A mapping of IdP attributes to standard and custom user pool attributes.</p>" 3817 }, 3818 "IdpIdentifiers":{ 3819 "shape":"IdpIdentifiersListType", 3820 "documentation":"<p>A list of IdP identifiers.</p>" 3821 } 3822 } 3823 }, 3824 "CreateIdentityProviderResponse":{ 3825 "type":"structure", 3826 "required":["IdentityProvider"], 3827 "members":{ 3828 "IdentityProvider":{ 3829 "shape":"IdentityProviderType", 3830 "documentation":"<p>The newly created IdP object.</p>" 3831 } 3832 } 3833 }, 3834 "CreateResourceServerRequest":{ 3835 "type":"structure", 3836 "required":[ 3837 "UserPoolId", 3838 "Identifier", 3839 "Name" 3840 ], 3841 "members":{ 3842 "UserPoolId":{ 3843 "shape":"UserPoolIdType", 3844 "documentation":"<p>The user pool ID for the user pool.</p>" 3845 }, 3846 "Identifier":{ 3847 "shape":"ResourceServerIdentifierType", 3848 "documentation":"<p>A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located, such as <code>https://my-weather-api.example.com</code>.</p>" 3849 }, 3850 "Name":{ 3851 "shape":"ResourceServerNameType", 3852 "documentation":"<p>A friendly name for the resource server.</p>" 3853 }, 3854 "Scopes":{ 3855 "shape":"ResourceServerScopeListType", 3856 "documentation":"<p>A list of scopes. Each scope is a key-value map with the keys <code>name</code> and <code>description</code>.</p>" 3857 } 3858 } 3859 }, 3860 "CreateResourceServerResponse":{ 3861 "type":"structure", 3862 "required":["ResourceServer"], 3863 "members":{ 3864 "ResourceServer":{ 3865 "shape":"ResourceServerType", 3866 "documentation":"<p>The newly created resource server.</p>" 3867 } 3868 } 3869 }, 3870 "CreateUserImportJobRequest":{ 3871 "type":"structure", 3872 "required":[ 3873 "JobName", 3874 "UserPoolId", 3875 "CloudWatchLogsRoleArn" 3876 ], 3877 "members":{ 3878 "JobName":{ 3879 "shape":"UserImportJobNameType", 3880 "documentation":"<p>The job name for the user import job.</p>" 3881 }, 3882 "UserPoolId":{ 3883 "shape":"UserPoolIdType", 3884 "documentation":"<p>The user pool ID for the user pool that the users are being imported into.</p>" 3885 }, 3886 "CloudWatchLogsRoleArn":{ 3887 "shape":"ArnType", 3888 "documentation":"<p>The role ARN for the Amazon CloudWatch Logs Logging role for the user import job.</p>" 3889 } 3890 }, 3891 "documentation":"<p>Represents the request to create the user import job.</p>" 3892 }, 3893 "CreateUserImportJobResponse":{ 3894 "type":"structure", 3895 "members":{ 3896 "UserImportJob":{ 3897 "shape":"UserImportJobType", 3898 "documentation":"<p>The job object that represents the user import job.</p>" 3899 } 3900 }, 3901 "documentation":"<p>Represents the response from the server to the request to create the user import job.</p>" 3902 }, 3903 "CreateUserPoolClientRequest":{ 3904 "type":"structure", 3905 "required":[ 3906 "UserPoolId", 3907 "ClientName" 3908 ], 3909 "members":{ 3910 "UserPoolId":{ 3911 "shape":"UserPoolIdType", 3912 "documentation":"<p>The user pool ID for the user pool where you want to create a user pool client.</p>" 3913 }, 3914 "ClientName":{ 3915 "shape":"ClientNameType", 3916 "documentation":"<p>The client name for the user pool client you would like to create.</p>" 3917 }, 3918 "GenerateSecret":{ 3919 "shape":"GenerateSecret", 3920 "documentation":"<p>Boolean to specify whether you want to generate a secret for the user pool client being created.</p>" 3921 }, 3922 "RefreshTokenValidity":{ 3923 "shape":"RefreshTokenValidityType", 3924 "documentation":"<p>The refresh token time limit. After this limit expires, your user can't use their refresh token. To specify the time unit for <code>RefreshTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>RefreshTokenValidity</code> as <code>10</code> and <code>TokenValidityUnits</code> as <code>days</code>, your user can refresh their session and retrieve new access and ID tokens for 10 days.</p> <p>The default time unit for <code>RefreshTokenValidity</code> in an API request is days. You can't set <code>RefreshTokenValidity</code> to 0. If you do, Amazon Cognito overrides the value with the default value of 30 days. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your refresh tokens are valid for 30 days.</p>" 3925 }, 3926 "AccessTokenValidity":{ 3927 "shape":"AccessTokenValidityType", 3928 "documentation":"<p>The access token time limit. After this limit expires, your user can't use their access token. To specify the time unit for <code>AccessTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>AccessTokenValidity</code> to <code>10</code> and <code>TokenValidityUnits</code> to <code>hours</code>, your user can authorize access with their access token for 10 hours.</p> <p>The default time unit for <code>AccessTokenValidity</code> in an API request is hours. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your access tokens are valid for one hour.</p>" 3929 }, 3930 "IdTokenValidity":{ 3931 "shape":"IdTokenValidityType", 3932 "documentation":"<p>The ID token time limit. After this limit expires, your user can't use their ID token. To specify the time unit for <code>IdTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>IdTokenValidity</code> as <code>10</code> and <code>TokenValidityUnits</code> as <code>hours</code>, your user can authenticate their session with their ID token for 10 hours.</p> <p>The default time unit for <code>IdTokenValidity</code> in an API request is hours. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your ID tokens are valid for one hour.</p>" 3933 }, 3934 "TokenValidityUnits":{ 3935 "shape":"TokenValidityUnitsType", 3936 "documentation":"<p>The units in which the validity times are represented. The default unit for RefreshToken is days, and default for ID and access tokens are hours.</p>" 3937 }, 3938 "ReadAttributes":{ 3939 "shape":"ClientPermissionListType", 3940 "documentation":"<p>The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUser.html\">GetUser</a> API request to retrieve and display your user's profile data.</p> <p>When you don't specify the <code>ReadAttributes</code> for your app client, your app can read the values of <code>email_verified</code>, <code>phone_number_verified</code>, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, <code>ReadAttributes</code> doesn't return any information. Amazon Cognito only populates <code>ReadAttributes</code> in the API response if you have specified your own custom set of read attributes.</p>" 3941 }, 3942 "WriteAttributes":{ 3943 "shape":"ClientPermissionListType", 3944 "documentation":"<p>The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html\">UpdateUserAttributes</a> API request and sets <code>family_name</code> to the new value. </p> <p>When you don't specify the <code>WriteAttributes</code> for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, <code>WriteAttributes</code> doesn't return any information. Amazon Cognito only populates <code>WriteAttributes</code> in the API response if you have specified your own custom set of write attributes.</p> <p>If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html\">Specifying IdP Attribute Mappings for Your user pool</a>.</p>" 3945 }, 3946 "ExplicitAuthFlows":{ 3947 "shape":"ExplicitAuthFlowsListType", 3948 "documentation":"<p>The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and password, or a custom authentication process that you define with Lambda functions.</p> <note> <p>If you don't specify a value for <code>ExplicitAuthFlows</code>, your user client supports <code>ALLOW_REFRESH_TOKEN_AUTH</code>, <code>ALLOW_USER_SRP_AUTH</code>, and <code>ALLOW_CUSTOM_AUTH</code>.</p> </note> <p>Valid values include:</p> <ul> <li> <p> <code>ALLOW_ADMIN_USER_PASSWORD_AUTH</code>: Enable admin based user password authentication flow <code>ADMIN_USER_PASSWORD_AUTH</code>. This setting replaces the <code>ADMIN_NO_SRP_AUTH</code> setting. With this authentication flow, your app passes a user name and password to Amazon Cognito in the request, instead of using the Secure Remote Password (SRP) protocol to securely transmit the password.</p> </li> <li> <p> <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based authentication.</p> </li> <li> <p> <code>ALLOW_USER_PASSWORD_AUTH</code>: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP protocol to verify passwords.</p> </li> <li> <p> <code>ALLOW_USER_SRP_AUTH</code>: Enable SRP-based authentication.</p> </li> <li> <p> <code>ALLOW_REFRESH_TOKEN_AUTH</code>: Enable authflow to refresh tokens.</p> </li> </ul> <p>In some environments, you will see the values <code>ADMIN_NO_SRP_AUTH</code>, <code>CUSTOM_AUTH_FLOW_ONLY</code>, or <code>USER_PASSWORD_AUTH</code>. You can't assign these legacy <code>ExplicitAuthFlows</code> values to user pool clients at the same time as values that begin with <code>ALLOW_</code>, like <code>ALLOW_USER_SRP_AUTH</code>.</p>" 3949 }, 3950 "SupportedIdentityProviders":{ 3951 "shape":"SupportedIdentityProvidersListType", 3952 "documentation":"<p>A list of provider names for the identity providers (IdPs) that are supported on this client. The following are supported: <code>COGNITO</code>, <code>Facebook</code>, <code>Google</code>, <code>SignInWithApple</code>, and <code>LoginWithAmazon</code>. You can also specify the names that you configured for the SAML and OIDC IdPs in your user pool, for example <code>MySAMLIdP</code> or <code>MyOIDCIdP</code>.</p>" 3953 }, 3954 "CallbackURLs":{ 3955 "shape":"CallbackURLsListType", 3956 "documentation":"<p>A list of allowed redirect (callback) URLs for the IdPs.</p> <p>A redirect URI must:</p> <ul> <li> <p>Be an absolute URI.</p> </li> <li> <p>Be registered with the authorization server.</p> </li> <li> <p>Not include a fragment component.</p> </li> </ul> <p>See <a href=\"https://tools.ietf.org/html/rfc6749#section-3.1.2\">OAuth 2.0 - Redirection Endpoint</a>.</p> <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p> <p>App callback URLs such as myapp://example are also supported.</p>" 3957 }, 3958 "LogoutURLs":{ 3959 "shape":"LogoutURLsListType", 3960 "documentation":"<p>A list of allowed logout URLs for the IdPs.</p>" 3961 }, 3962 "DefaultRedirectURI":{ 3963 "shape":"RedirectUrlType", 3964 "documentation":"<p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p> <p>A redirect URI must:</p> <ul> <li> <p>Be an absolute URI.</p> </li> <li> <p>Be registered with the authorization server.</p> </li> <li> <p>Not include a fragment component.</p> </li> </ul> <p>See <a href=\"https://tools.ietf.org/html/rfc6749#section-3.1.2\">OAuth 2.0 - Redirection Endpoint</a>.</p> <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p> <p>App callback URLs such as myapp://example are also supported.</p>" 3965 }, 3966 "AllowedOAuthFlows":{ 3967 "shape":"OAuthFlowsType", 3968 "documentation":"<p>The OAuth grant types that you want your app client to generate. To create an app client that generates client credentials grants, you must add <code>client_credentials</code> as the only allowed OAuth flow.</p> <dl> <dt>code</dt> <dd> <p>Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the <code>/oauth2/token</code> endpoint.</p> </dd> <dt>implicit</dt> <dd> <p>Issue the access token (and, optionally, ID token, based on scopes) directly to your user.</p> </dd> <dt>client_credentials</dt> <dd> <p>Issue the access token from the <code>/oauth2/token</code> endpoint directly to a non-person user using a combination of the client ID and client secret.</p> </dd> </dl>" 3969 }, 3970 "AllowedOAuthScopes":{ 3971 "shape":"ScopeListType", 3972 "documentation":"<p>The allowed OAuth scopes. Possible values provided by OAuth are <code>phone</code>, <code>email</code>, <code>openid</code>, and <code>profile</code>. Possible values provided by Amazon Web Services are <code>aws.cognito.signin.user.admin</code>. Custom scopes created in Resource Servers are also supported.</p>" 3973 }, 3974 "AllowedOAuthFlowsUserPoolClient":{ 3975 "shape":"BooleanType", 3976 "documentation":"<p>Set to <code>true</code> to use OAuth 2.0 features in your user pool app client.</p> <p> <code>AllowedOAuthFlowsUserPoolClient</code> must be <code>true</code> before you can configure the following features in your app client.</p> <ul> <li> <p> <code>CallBackURLs</code>: Callback URLs.</p> </li> <li> <p> <code>LogoutURLs</code>: Sign-out redirect URLs.</p> </li> <li> <p> <code>AllowedOAuthScopes</code>: OAuth 2.0 scopes.</p> </li> <li> <p> <code>AllowedOAuthFlows</code>: Support for authorization code, implicit, and client credentials OAuth 2.0 grants.</p> </li> </ul> <p>To use OAuth 2.0 features, configure one of these features in the Amazon Cognito console or set <code>AllowedOAuthFlowsUserPoolClient</code> to <code>true</code> in a <code>CreateUserPoolClient</code> or <code>UpdateUserPoolClient</code> API request. If you don't set a value for <code>AllowedOAuthFlowsUserPoolClient</code> in a request with the CLI or SDKs, it defaults to <code>false</code>.</p>" 3977 }, 3978 "AnalyticsConfiguration":{ 3979 "shape":"AnalyticsConfigurationType", 3980 "documentation":"<p>The user pool analytics configuration for collecting metrics and sending them to your Amazon Pinpoint campaign.</p> <note> <p>In Amazon Web Services Regions where Amazon Pinpoint isn't available, user pools only support sending events to Amazon Pinpoint projects in Amazon Web Services Region us-east-1. In Regions where Amazon Pinpoint is available, user pools support sending events to Amazon Pinpoint projects within that same Region.</p> </note>" 3981 }, 3982 "PreventUserExistenceErrors":{ 3983 "shape":"PreventUserExistenceErrorTypes", 3984 "documentation":"<p>Errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the user pool. When set to <code>ENABLED</code> and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect. Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to <code>LEGACY</code>, those APIs return a <code>UserNotFoundException</code> exception if the user doesn't exist in the user pool.</p> <p>Valid values include:</p> <ul> <li> <p> <code>ENABLED</code> - This prevents user existence-related errors.</p> </li> <li> <p> <code>LEGACY</code> - This represents the early behavior of Amazon Cognito where user existence related errors aren't prevented.</p> </li> </ul>" 3985 }, 3986 "EnableTokenRevocation":{ 3987 "shape":"WrappedBooleanType", 3988 "documentation":"<p>Activates or deactivates token revocation. For more information about revoking tokens, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html\">RevokeToken</a>.</p> <p>If you don't include this parameter, token revocation is automatically activated for the new user pool client.</p>" 3989 }, 3990 "EnablePropagateAdditionalUserContextData":{ 3991 "shape":"WrappedBooleanType", 3992 "documentation":"<p>Activates the propagation of additional user context data. For more information about propagation of user context data, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html\"> Adding advanced security to a user pool</a>. If you don’t include this parameter, you can't send device fingerprint information, including source IP address, to Amazon Cognito advanced security. You can only activate <code>EnablePropagateAdditionalUserContextData</code> in an app client that has a client secret.</p>" 3993 }, 3994 "AuthSessionValidity":{ 3995 "shape":"AuthSessionValidityType", 3996 "documentation":"<p>Amazon Cognito creates a session token for each API request in an authentication flow. <code>AuthSessionValidity</code> is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires.</p>" 3997 } 3998 }, 3999 "documentation":"<p>Represents the request to create a user pool client.</p>" 4000 }, 4001 "CreateUserPoolClientResponse":{ 4002 "type":"structure", 4003 "members":{ 4004 "UserPoolClient":{ 4005 "shape":"UserPoolClientType", 4006 "documentation":"<p>The user pool client that was just created.</p>" 4007 } 4008 }, 4009 "documentation":"<p>Represents the response from the server to create a user pool client.</p>" 4010 }, 4011 "CreateUserPoolDomainRequest":{ 4012 "type":"structure", 4013 "required":[ 4014 "Domain", 4015 "UserPoolId" 4016 ], 4017 "members":{ 4018 "Domain":{ 4019 "shape":"DomainType", 4020 "documentation":"<p>The domain string. For custom domains, this is the fully-qualified domain name, such as <code>auth.example.com</code>. For Amazon Cognito prefix domains, this is the prefix alone, such as <code>auth</code>.</p>" 4021 }, 4022 "UserPoolId":{ 4023 "shape":"UserPoolIdType", 4024 "documentation":"<p>The user pool ID.</p>" 4025 }, 4026 "CustomDomainConfig":{ 4027 "shape":"CustomDomainConfigType", 4028 "documentation":"<p>The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.</p> <p>Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.</p> <p>For more information about the hosted domain and custom domains, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-assign-domain.html\">Configuring a User Pool Domain</a>.</p>" 4029 } 4030 } 4031 }, 4032 "CreateUserPoolDomainResponse":{ 4033 "type":"structure", 4034 "members":{ 4035 "CloudFrontDomain":{ 4036 "shape":"DomainType", 4037 "documentation":"<p>The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider. Amazon Cognito returns this value if you set a custom domain with <code>CustomDomainConfig</code>. If you set an Amazon Cognito prefix domain, this operation returns a blank response.</p>" 4038 } 4039 } 4040 }, 4041 "CreateUserPoolRequest":{ 4042 "type":"structure", 4043 "required":["PoolName"], 4044 "members":{ 4045 "PoolName":{ 4046 "shape":"UserPoolNameType", 4047 "documentation":"<p>A string used to name the user pool.</p>" 4048 }, 4049 "Policies":{ 4050 "shape":"UserPoolPolicyType", 4051 "documentation":"<p>The policies associated with the new user pool.</p>" 4052 }, 4053 "DeletionProtection":{ 4054 "shape":"DeletionProtectionType", 4055 "documentation":"<p>When active, <code>DeletionProtection</code> prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.</p> <p>When you try to delete a protected user pool in a <code>DeleteUserPool</code> API request, Amazon Cognito returns an <code>InvalidParameterException</code> error. To delete a protected user pool, send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an <code>UpdateUserPool</code> API request.</p>" 4056 }, 4057 "LambdaConfig":{ 4058 "shape":"LambdaConfigType", 4059 "documentation":"<p>The Lambda trigger configuration information for the new user pool.</p> <note> <p>In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you must make an extra call to add permission for these event sources to invoke your Lambda function.</p> <p/> <p>For more information on using the Lambda API to add permission, see<a href=\"https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html\"> AddPermission </a>. </p> <p>For adding permission using the CLI, see<a href=\"https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html\"> add-permission </a>.</p> </note>" 4060 }, 4061 "AutoVerifiedAttributes":{ 4062 "shape":"VerifiedAttributesListType", 4063 "documentation":"<p>The attributes to be auto-verified. Possible values: <b>email</b>, <b>phone_number</b>.</p>" 4064 }, 4065 "AliasAttributes":{ 4066 "shape":"AliasAttributesListType", 4067 "documentation":"<p>Attributes supported as an alias for this user pool. Possible values: <b>phone_number</b>, <b>email</b>, or <b>preferred_username</b>.</p>" 4068 }, 4069 "UsernameAttributes":{ 4070 "shape":"UsernameAttributesListType", 4071 "documentation":"<p>Specifies whether a user can use an email address or phone number as a username when they sign up.</p>" 4072 }, 4073 "SmsVerificationMessage":{ 4074 "shape":"SmsVerificationMessageType", 4075 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 4076 }, 4077 "EmailVerificationMessage":{ 4078 "shape":"EmailVerificationMessageType", 4079 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 4080 }, 4081 "EmailVerificationSubject":{ 4082 "shape":"EmailVerificationSubjectType", 4083 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 4084 }, 4085 "VerificationMessageTemplate":{ 4086 "shape":"VerificationMessageTemplateType", 4087 "documentation":"<p>The template for the verification message that the user sees when the app requests permission to access the user's information.</p>" 4088 }, 4089 "SmsAuthenticationMessage":{ 4090 "shape":"SmsVerificationMessageType", 4091 "documentation":"<p>A string representing the SMS authentication message.</p>" 4092 }, 4093 "MfaConfiguration":{ 4094 "shape":"UserPoolMfaType", 4095 "documentation":"<p>Specifies MFA configuration details.</p>" 4096 }, 4097 "UserAttributeUpdateSettings":{ 4098 "shape":"UserAttributeUpdateSettingsType", 4099 "documentation":"<p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates\"> Verifying updates to email addresses and phone numbers</a>.</p>" 4100 }, 4101 "DeviceConfiguration":{ 4102 "shape":"DeviceConfigurationType", 4103 "documentation":"<p>The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.</p> <note> <p>When you provide a value for any <code>DeviceConfiguration</code> field, you activate the Amazon Cognito device-remembering feature.</p> </note>" 4104 }, 4105 "EmailConfiguration":{ 4106 "shape":"EmailConfigurationType", 4107 "documentation":"<p>The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for messages from your user pool.</p>" 4108 }, 4109 "SmsConfiguration":{ 4110 "shape":"SmsConfigurationType", 4111 "documentation":"<p>The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account.</p>" 4112 }, 4113 "UserPoolTags":{ 4114 "shape":"UserPoolTagsType", 4115 "documentation":"<p>The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.</p>" 4116 }, 4117 "AdminCreateUserConfig":{ 4118 "shape":"AdminCreateUserConfigType", 4119 "documentation":"<p>The configuration for <code>AdminCreateUser</code> requests.</p>" 4120 }, 4121 "Schema":{ 4122 "shape":"SchemaAttributesListType", 4123 "documentation":"<p>An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.</p>" 4124 }, 4125 "UserPoolAddOns":{ 4126 "shape":"UserPoolAddOnsType", 4127 "documentation":"<p>User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to <code>AUDIT</code>. To configure automatic security responses to risky traffic to your user pool, set to <code>ENFORCED</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html\">Adding advanced security to a user pool</a>.</p>" 4128 }, 4129 "UsernameConfiguration":{ 4130 "shape":"UsernameConfigurationType", 4131 "documentation":"<p>Case sensitivity on the username input for the selected sign-in option. When case sensitivity is set to <code>False</code> (case insensitive), users can sign in with any combination of capital and lowercase letters. For example, <code>username</code>, <code>USERNAME</code>, or <code>UserName</code>, or for email, <code>email@example.com</code> or <code>EMaiL@eXamplE.Com</code>. For most use cases, set case sensitivity to <code>False</code> (case insensitive) as a best practice. When usernames and email addresses are case insensitive, Amazon Cognito treats any variation in case as the same user, and prevents a case variation from being assigned to the same attribute for a different user.</p> <p>This configuration is immutable after you set it. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UsernameConfigurationType.html\">UsernameConfigurationType</a>.</p>" 4132 }, 4133 "AccountRecoverySetting":{ 4134 "shape":"AccountRecoverySettingType", 4135 "documentation":"<p>The available verified method a user can use to recover their password when they call <code>ForgotPassword</code>. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.</p>" 4136 } 4137 }, 4138 "documentation":"<p>Represents the request to create a user pool.</p>" 4139 }, 4140 "CreateUserPoolResponse":{ 4141 "type":"structure", 4142 "members":{ 4143 "UserPool":{ 4144 "shape":"UserPoolType", 4145 "documentation":"<p>A container for the user pool details.</p>" 4146 } 4147 }, 4148 "documentation":"<p>Represents the response from the server for the request to create a user pool.</p>" 4149 }, 4150 "CustomAttributeNameType":{ 4151 "type":"string", 4152 "max":20, 4153 "min":1, 4154 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" 4155 }, 4156 "CustomAttributesListType":{ 4157 "type":"list", 4158 "member":{"shape":"SchemaAttributeType"}, 4159 "max":25, 4160 "min":1 4161 }, 4162 "CustomDomainConfigType":{ 4163 "type":"structure", 4164 "required":["CertificateArn"], 4165 "members":{ 4166 "CertificateArn":{ 4167 "shape":"ArnType", 4168 "documentation":"<p>The Amazon Resource Name (ARN) of an Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.</p>" 4169 } 4170 }, 4171 "documentation":"<p>The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.</p>" 4172 }, 4173 "CustomEmailLambdaVersionConfigType":{ 4174 "type":"structure", 4175 "required":[ 4176 "LambdaVersion", 4177 "LambdaArn" 4178 ], 4179 "members":{ 4180 "LambdaVersion":{ 4181 "shape":"CustomEmailSenderLambdaVersionType", 4182 "documentation":"<p>The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.</p> <p>You must use a <code>LambdaVersion</code> of <code>V1_0</code> with a custom sender function.</p>" 4183 }, 4184 "LambdaArn":{ 4185 "shape":"ArnType", 4186 "documentation":"<p>The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.</p>" 4187 } 4188 }, 4189 "documentation":"<p>The properties of a custom email sender Lambda trigger.</p>" 4190 }, 4191 "CustomEmailSenderLambdaVersionType":{ 4192 "type":"string", 4193 "enum":["V1_0"] 4194 }, 4195 "CustomSMSLambdaVersionConfigType":{ 4196 "type":"structure", 4197 "required":[ 4198 "LambdaVersion", 4199 "LambdaArn" 4200 ], 4201 "members":{ 4202 "LambdaVersion":{ 4203 "shape":"CustomSMSSenderLambdaVersionType", 4204 "documentation":"<p>The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.</p> <p>You must use a <code>LambdaVersion</code> of <code>V1_0</code> with a custom sender function.</p>" 4205 }, 4206 "LambdaArn":{ 4207 "shape":"ArnType", 4208 "documentation":"<p>The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.</p>" 4209 } 4210 }, 4211 "documentation":"<p>The properties of a custom SMS sender Lambda trigger.</p>" 4212 }, 4213 "CustomSMSSenderLambdaVersionType":{ 4214 "type":"string", 4215 "enum":["V1_0"] 4216 }, 4217 "DateType":{"type":"timestamp"}, 4218 "DefaultEmailOptionType":{ 4219 "type":"string", 4220 "enum":[ 4221 "CONFIRM_WITH_LINK", 4222 "CONFIRM_WITH_CODE" 4223 ] 4224 }, 4225 "DeleteGroupRequest":{ 4226 "type":"structure", 4227 "required":[ 4228 "GroupName", 4229 "UserPoolId" 4230 ], 4231 "members":{ 4232 "GroupName":{ 4233 "shape":"GroupNameType", 4234 "documentation":"<p>The name of the group.</p>" 4235 }, 4236 "UserPoolId":{ 4237 "shape":"UserPoolIdType", 4238 "documentation":"<p>The user pool ID for the user pool.</p>" 4239 } 4240 } 4241 }, 4242 "DeleteIdentityProviderRequest":{ 4243 "type":"structure", 4244 "required":[ 4245 "UserPoolId", 4246 "ProviderName" 4247 ], 4248 "members":{ 4249 "UserPoolId":{ 4250 "shape":"UserPoolIdType", 4251 "documentation":"<p>The user pool ID.</p>" 4252 }, 4253 "ProviderName":{ 4254 "shape":"ProviderNameType", 4255 "documentation":"<p>The IdP name.</p>" 4256 } 4257 } 4258 }, 4259 "DeleteResourceServerRequest":{ 4260 "type":"structure", 4261 "required":[ 4262 "UserPoolId", 4263 "Identifier" 4264 ], 4265 "members":{ 4266 "UserPoolId":{ 4267 "shape":"UserPoolIdType", 4268 "documentation":"<p>The user pool ID for the user pool that hosts the resource server.</p>" 4269 }, 4270 "Identifier":{ 4271 "shape":"ResourceServerIdentifierType", 4272 "documentation":"<p>The identifier for the resource server.</p>" 4273 } 4274 } 4275 }, 4276 "DeleteUserAttributesRequest":{ 4277 "type":"structure", 4278 "required":[ 4279 "UserAttributeNames", 4280 "AccessToken" 4281 ], 4282 "members":{ 4283 "UserAttributeNames":{ 4284 "shape":"AttributeNameListType", 4285 "documentation":"<p>An array of strings representing the user attribute names you want to delete.</p> <p>For custom attributes, you must prependattach the <code>custom:</code> prefix to the front of the attribute name.</p>" 4286 }, 4287 "AccessToken":{ 4288 "shape":"TokenModelType", 4289 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose attributes you want to delete.</p>" 4290 } 4291 }, 4292 "documentation":"<p>Represents the request to delete user attributes.</p>" 4293 }, 4294 "DeleteUserAttributesResponse":{ 4295 "type":"structure", 4296 "members":{ 4297 }, 4298 "documentation":"<p>Represents the response from the server to delete user attributes.</p>" 4299 }, 4300 "DeleteUserPoolClientRequest":{ 4301 "type":"structure", 4302 "required":[ 4303 "UserPoolId", 4304 "ClientId" 4305 ], 4306 "members":{ 4307 "UserPoolId":{ 4308 "shape":"UserPoolIdType", 4309 "documentation":"<p>The user pool ID for the user pool where you want to delete the client.</p>" 4310 }, 4311 "ClientId":{ 4312 "shape":"ClientIdType", 4313 "documentation":"<p>The app client ID of the app associated with the user pool.</p>" 4314 } 4315 }, 4316 "documentation":"<p>Represents the request to delete a user pool client.</p>" 4317 }, 4318 "DeleteUserPoolDomainRequest":{ 4319 "type":"structure", 4320 "required":[ 4321 "Domain", 4322 "UserPoolId" 4323 ], 4324 "members":{ 4325 "Domain":{ 4326 "shape":"DomainType", 4327 "documentation":"<p>The domain string. For custom domains, this is the fully-qualified domain name, such as <code>auth.example.com</code>. For Amazon Cognito prefix domains, this is the prefix alone, such as <code>auth</code>.</p>" 4328 }, 4329 "UserPoolId":{ 4330 "shape":"UserPoolIdType", 4331 "documentation":"<p>The user pool ID.</p>" 4332 } 4333 } 4334 }, 4335 "DeleteUserPoolDomainResponse":{ 4336 "type":"structure", 4337 "members":{ 4338 } 4339 }, 4340 "DeleteUserPoolRequest":{ 4341 "type":"structure", 4342 "required":["UserPoolId"], 4343 "members":{ 4344 "UserPoolId":{ 4345 "shape":"UserPoolIdType", 4346 "documentation":"<p>The user pool ID for the user pool you want to delete.</p>" 4347 } 4348 }, 4349 "documentation":"<p>Represents the request to delete a user pool.</p>" 4350 }, 4351 "DeleteUserRequest":{ 4352 "type":"structure", 4353 "required":["AccessToken"], 4354 "members":{ 4355 "AccessToken":{ 4356 "shape":"TokenModelType", 4357 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose user profile you want to delete.</p>" 4358 } 4359 }, 4360 "documentation":"<p>Represents the request to delete a user.</p>" 4361 }, 4362 "DeletionProtectionType":{ 4363 "type":"string", 4364 "enum":[ 4365 "ACTIVE", 4366 "INACTIVE" 4367 ] 4368 }, 4369 "DeliveryMediumListType":{ 4370 "type":"list", 4371 "member":{"shape":"DeliveryMediumType"} 4372 }, 4373 "DeliveryMediumType":{ 4374 "type":"string", 4375 "enum":[ 4376 "SMS", 4377 "EMAIL" 4378 ] 4379 }, 4380 "DescribeIdentityProviderRequest":{ 4381 "type":"structure", 4382 "required":[ 4383 "UserPoolId", 4384 "ProviderName" 4385 ], 4386 "members":{ 4387 "UserPoolId":{ 4388 "shape":"UserPoolIdType", 4389 "documentation":"<p>The user pool ID.</p>" 4390 }, 4391 "ProviderName":{ 4392 "shape":"ProviderNameType", 4393 "documentation":"<p>The IdP name.</p>" 4394 } 4395 } 4396 }, 4397 "DescribeIdentityProviderResponse":{ 4398 "type":"structure", 4399 "required":["IdentityProvider"], 4400 "members":{ 4401 "IdentityProvider":{ 4402 "shape":"IdentityProviderType", 4403 "documentation":"<p>The identity provider details.</p>" 4404 } 4405 } 4406 }, 4407 "DescribeResourceServerRequest":{ 4408 "type":"structure", 4409 "required":[ 4410 "UserPoolId", 4411 "Identifier" 4412 ], 4413 "members":{ 4414 "UserPoolId":{ 4415 "shape":"UserPoolIdType", 4416 "documentation":"<p>The user pool ID for the user pool that hosts the resource server.</p>" 4417 }, 4418 "Identifier":{ 4419 "shape":"ResourceServerIdentifierType", 4420 "documentation":"<p>The identifier for the resource server</p>" 4421 } 4422 } 4423 }, 4424 "DescribeResourceServerResponse":{ 4425 "type":"structure", 4426 "required":["ResourceServer"], 4427 "members":{ 4428 "ResourceServer":{ 4429 "shape":"ResourceServerType", 4430 "documentation":"<p>The resource server.</p>" 4431 } 4432 } 4433 }, 4434 "DescribeRiskConfigurationRequest":{ 4435 "type":"structure", 4436 "required":["UserPoolId"], 4437 "members":{ 4438 "UserPoolId":{ 4439 "shape":"UserPoolIdType", 4440 "documentation":"<p>The user pool ID.</p>" 4441 }, 4442 "ClientId":{ 4443 "shape":"ClientIdType", 4444 "documentation":"<p>The app client ID.</p>" 4445 } 4446 } 4447 }, 4448 "DescribeRiskConfigurationResponse":{ 4449 "type":"structure", 4450 "required":["RiskConfiguration"], 4451 "members":{ 4452 "RiskConfiguration":{ 4453 "shape":"RiskConfigurationType", 4454 "documentation":"<p>The risk configuration.</p>" 4455 } 4456 } 4457 }, 4458 "DescribeUserImportJobRequest":{ 4459 "type":"structure", 4460 "required":[ 4461 "UserPoolId", 4462 "JobId" 4463 ], 4464 "members":{ 4465 "UserPoolId":{ 4466 "shape":"UserPoolIdType", 4467 "documentation":"<p>The user pool ID for the user pool that the users are being imported into.</p>" 4468 }, 4469 "JobId":{ 4470 "shape":"UserImportJobIdType", 4471 "documentation":"<p>The job ID for the user import job.</p>" 4472 } 4473 }, 4474 "documentation":"<p>Represents the request to describe the user import job.</p>" 4475 }, 4476 "DescribeUserImportJobResponse":{ 4477 "type":"structure", 4478 "members":{ 4479 "UserImportJob":{ 4480 "shape":"UserImportJobType", 4481 "documentation":"<p>The job object that represents the user import job.</p>" 4482 } 4483 }, 4484 "documentation":"<p>Represents the response from the server to the request to describe the user import job.</p>" 4485 }, 4486 "DescribeUserPoolClientRequest":{ 4487 "type":"structure", 4488 "required":[ 4489 "UserPoolId", 4490 "ClientId" 4491 ], 4492 "members":{ 4493 "UserPoolId":{ 4494 "shape":"UserPoolIdType", 4495 "documentation":"<p>The user pool ID for the user pool you want to describe.</p>" 4496 }, 4497 "ClientId":{ 4498 "shape":"ClientIdType", 4499 "documentation":"<p>The app client ID of the app associated with the user pool.</p>" 4500 } 4501 }, 4502 "documentation":"<p>Represents the request to describe a user pool client.</p>" 4503 }, 4504 "DescribeUserPoolClientResponse":{ 4505 "type":"structure", 4506 "members":{ 4507 "UserPoolClient":{ 4508 "shape":"UserPoolClientType", 4509 "documentation":"<p>The user pool client from a server response to describe the user pool client.</p>" 4510 } 4511 }, 4512 "documentation":"<p>Represents the response from the server from a request to describe the user pool client.</p>" 4513 }, 4514 "DescribeUserPoolDomainRequest":{ 4515 "type":"structure", 4516 "required":["Domain"], 4517 "members":{ 4518 "Domain":{ 4519 "shape":"DomainType", 4520 "documentation":"<p>The domain string. For custom domains, this is the fully-qualified domain name, such as <code>auth.example.com</code>. For Amazon Cognito prefix domains, this is the prefix alone, such as <code>auth</code>.</p>" 4521 } 4522 } 4523 }, 4524 "DescribeUserPoolDomainResponse":{ 4525 "type":"structure", 4526 "members":{ 4527 "DomainDescription":{ 4528 "shape":"DomainDescriptionType", 4529 "documentation":"<p>A domain description object containing information about the domain.</p>" 4530 } 4531 } 4532 }, 4533 "DescribeUserPoolRequest":{ 4534 "type":"structure", 4535 "required":["UserPoolId"], 4536 "members":{ 4537 "UserPoolId":{ 4538 "shape":"UserPoolIdType", 4539 "documentation":"<p>The user pool ID for the user pool you want to describe.</p>" 4540 } 4541 }, 4542 "documentation":"<p>Represents the request to describe the user pool.</p>" 4543 }, 4544 "DescribeUserPoolResponse":{ 4545 "type":"structure", 4546 "members":{ 4547 "UserPool":{ 4548 "shape":"UserPoolType", 4549 "documentation":"<p>The container of metadata returned by the server to describe the pool.</p>" 4550 } 4551 }, 4552 "documentation":"<p>Represents the response to describe the user pool.</p>" 4553 }, 4554 "DescriptionType":{ 4555 "type":"string", 4556 "max":2048 4557 }, 4558 "DeviceConfigurationType":{ 4559 "type":"structure", 4560 "members":{ 4561 "ChallengeRequiredOnNewDevice":{ 4562 "shape":"BooleanType", 4563 "documentation":"<p>When true, a remembered device can sign in with device authentication instead of SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).</p> <note> <p>Whether or not <code>ChallengeRequiredOnNewDevice</code> is true, users who sign in with devices that have not been confirmed or remembered must still provide a second factor in a user pool that requires MFA.</p> </note>" 4564 }, 4565 "DeviceOnlyRememberedOnUserPrompt":{ 4566 "shape":"BooleanType", 4567 "documentation":"<p>When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmDevice.html\"> ConfirmDevice</a> API request. In your app, create a prompt for your user to choose whether they want to remember their device. Return the user's choice in an <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateDeviceStatus.html\"> UpdateDeviceStatus</a> API request.</p> <p>When <code>DeviceOnlyRememberedOnUserPrompt</code> is <code>false</code>, Amazon Cognito immediately remembers devices that you register in a <code>ConfirmDevice</code> API request.</p>" 4568 } 4569 }, 4570 "documentation":"<p>The device-remembering configuration for a user pool. A <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html\"> DescribeUserPool</a> request returns a null value for this object when the user pool isn't configured to remember devices. When device remembering is active, you can remember a user's device with a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmDevice.html\">ConfirmDevice</a> API request. Additionally. when the property <code>DeviceOnlyRememberedOnUserPrompt</code> is <code>true</code>, you must follow <code>ConfirmDevice</code> with an <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateDeviceStatus.html\">UpdateDeviceStatus</a> API request that sets the user's device to <code>remembered</code> or <code>not_remembered</code>.</p> <p>To sign in with a remembered device, include <code>DEVICE_KEY</code> in the authentication parameters in your user's <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html\"> InitiateAuth</a> request. If your app doesn't include a <code>DEVICE_KEY</code> parameter, the <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html#API_InitiateAuth_ResponseSyntax\">response</a> from Amazon Cognito includes newly-generated <code>DEVICE_KEY</code> and <code>DEVICE_GROUP_KEY</code> values under <code>NewDeviceMetadata</code>. Store these values to use in future device-authentication requests.</p> <note> <p>When you provide a value for any property of <code>DeviceConfiguration</code>, you activate the device remembering for the user pool.</p> </note>" 4571 }, 4572 "DeviceKeyType":{ 4573 "type":"string", 4574 "max":55, 4575 "min":1, 4576 "pattern":"[\\w-]+_[0-9a-f-]+" 4577 }, 4578 "DeviceListType":{ 4579 "type":"list", 4580 "member":{"shape":"DeviceType"} 4581 }, 4582 "DeviceNameType":{ 4583 "type":"string", 4584 "max":1024, 4585 "min":1 4586 }, 4587 "DeviceRememberedStatusType":{ 4588 "type":"string", 4589 "enum":[ 4590 "remembered", 4591 "not_remembered" 4592 ] 4593 }, 4594 "DeviceSecretVerifierConfigType":{ 4595 "type":"structure", 4596 "members":{ 4597 "PasswordVerifier":{ 4598 "shape":"StringType", 4599 "documentation":"<p>The password verifier.</p>" 4600 }, 4601 "Salt":{ 4602 "shape":"StringType", 4603 "documentation":"<p>The <a href=\"https://en.wikipedia.org/wiki/Salt_(cryptography)\">salt</a> </p>" 4604 } 4605 }, 4606 "documentation":"<p>The device verifier against which it is authenticated.</p>" 4607 }, 4608 "DeviceType":{ 4609 "type":"structure", 4610 "members":{ 4611 "DeviceKey":{ 4612 "shape":"DeviceKeyType", 4613 "documentation":"<p>The device key.</p>" 4614 }, 4615 "DeviceAttributes":{ 4616 "shape":"AttributeListType", 4617 "documentation":"<p>The device attributes.</p>" 4618 }, 4619 "DeviceCreateDate":{ 4620 "shape":"DateType", 4621 "documentation":"<p>The creation date of the device.</p>" 4622 }, 4623 "DeviceLastModifiedDate":{ 4624 "shape":"DateType", 4625 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 4626 }, 4627 "DeviceLastAuthenticatedDate":{ 4628 "shape":"DateType", 4629 "documentation":"<p>The date when the device was last authenticated.</p>" 4630 } 4631 }, 4632 "documentation":"<p>The device type.</p>" 4633 }, 4634 "DomainDescriptionType":{ 4635 "type":"structure", 4636 "members":{ 4637 "UserPoolId":{ 4638 "shape":"UserPoolIdType", 4639 "documentation":"<p>The user pool ID.</p>" 4640 }, 4641 "AWSAccountId":{ 4642 "shape":"AWSAccountIdType", 4643 "documentation":"<p>The Amazon Web Services ID for the user pool owner.</p>" 4644 }, 4645 "Domain":{ 4646 "shape":"DomainType", 4647 "documentation":"<p>The domain string. For custom domains, this is the fully-qualified domain name, such as <code>auth.example.com</code>. For Amazon Cognito prefix domains, this is the prefix alone, such as <code>auth</code>.</p>" 4648 }, 4649 "S3Bucket":{ 4650 "shape":"S3BucketType", 4651 "documentation":"<p>The Amazon S3 bucket where the static files for this domain are stored.</p>" 4652 }, 4653 "CloudFrontDistribution":{ 4654 "shape":"StringType", 4655 "documentation":"<p>The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.</p>" 4656 }, 4657 "Version":{ 4658 "shape":"DomainVersionType", 4659 "documentation":"<p>The app version.</p>" 4660 }, 4661 "Status":{ 4662 "shape":"DomainStatusType", 4663 "documentation":"<p>The domain status.</p>" 4664 }, 4665 "CustomDomainConfig":{ 4666 "shape":"CustomDomainConfigType", 4667 "documentation":"<p>The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.</p>" 4668 } 4669 }, 4670 "documentation":"<p>A container for information about a domain.</p>" 4671 }, 4672 "DomainStatusType":{ 4673 "type":"string", 4674 "enum":[ 4675 "CREATING", 4676 "DELETING", 4677 "UPDATING", 4678 "ACTIVE", 4679 "FAILED" 4680 ] 4681 }, 4682 "DomainType":{ 4683 "type":"string", 4684 "max":63, 4685 "min":1, 4686 "pattern":"^[a-z0-9](?:[a-z0-9\\-]{0,61}[a-z0-9])?$" 4687 }, 4688 "DomainVersionType":{ 4689 "type":"string", 4690 "max":20, 4691 "min":1 4692 }, 4693 "DuplicateProviderException":{ 4694 "type":"structure", 4695 "members":{ 4696 "message":{"shape":"MessageType"} 4697 }, 4698 "documentation":"<p>This exception is thrown when the provider is already supported by the user pool.</p>", 4699 "exception":true 4700 }, 4701 "EmailAddressType":{ 4702 "type":"string", 4703 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+@[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" 4704 }, 4705 "EmailConfigurationType":{ 4706 "type":"structure", 4707 "members":{ 4708 "SourceArn":{ 4709 "shape":"ArnType", 4710 "documentation":"<p>The ARN of a verified email address or an address from a verified domain in Amazon SES. You can set a <code>SourceArn</code> email from a verified domain only with an API request. You can set a verified email address, but not an address in a verified domain, in the Amazon Cognito console. Amazon Cognito uses the email address that you provide in one of the following ways, depending on the value that you specify for the <code>EmailSendingAccount</code> parameter:</p> <ul> <li> <p>If you specify <code>COGNITO_DEFAULT</code>, Amazon Cognito uses this address as the custom FROM address when it emails your users using its built-in email account.</p> </li> <li> <p>If you specify <code>DEVELOPER</code>, Amazon Cognito emails your users with this address by calling Amazon SES on your behalf.</p> </li> </ul> <p>The Region value of the <code>SourceArn</code> parameter must indicate a supported Amazon Web Services Region of your user pool. Typically, the Region in the <code>SourceArn</code> and the user pool Region are the same. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-email.html#user-pool-email-developer-region-mapping\">Amazon SES email configuration regions</a> in the <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html\">Amazon Cognito Developer Guide</a>.</p>" 4711 }, 4712 "ReplyToEmailAddress":{ 4713 "shape":"EmailAddressType", 4714 "documentation":"<p>The destination to which the receiver of the email should reply.</p>" 4715 }, 4716 "EmailSendingAccount":{ 4717 "shape":"EmailSendingAccountType", 4718 "documentation":"<p>Specifies whether Amazon Cognito uses its built-in functionality to send your users email messages, or uses your Amazon Simple Email Service email configuration. Specify one of the following values:</p> <dl> <dt>COGNITO_DEFAULT</dt> <dd> <p>When Amazon Cognito emails your users, it uses its built-in email functionality. When you use the default option, Amazon Cognito allows only a limited number of emails each day for your user pool. For typical production environments, the default email limit is less than the required delivery volume. To achieve a higher delivery volume, specify DEVELOPER to use your Amazon SES email configuration.</p> <p>To look up the email delivery limit for the default option, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/limits.html\">Limits</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <p>The default FROM address is <code>no-reply@verificationemail.com</code>. To customize the FROM address, provide the Amazon Resource Name (ARN) of an Amazon SES verified email address for the <code>SourceArn</code> parameter.</p> </dd> <dt>DEVELOPER</dt> <dd> <p>When Amazon Cognito emails your users, it uses your Amazon SES configuration. Amazon Cognito calls Amazon SES on your behalf to send email from your verified email address. When you use this option, the email delivery limits are the same limits that apply to your Amazon SES verified email address in your Amazon Web Services account.</p> <p>If you use this option, provide the ARN of an Amazon SES verified email address for the <code>SourceArn</code> parameter.</p> <p>Before Amazon Cognito can email your users, it requires additional permissions to call Amazon SES on your behalf. When you update your user pool with this option, Amazon Cognito creates a <i>service-linked role</i>, which is a type of role in your Amazon Web Services account. This role contains the permissions that allow you to access Amazon SES and send email messages from your email address. For more information about the service-linked role that Amazon Cognito creates, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/using-service-linked-roles.html\">Using Service-Linked Roles for Amazon Cognito</a> in the <i>Amazon Cognito Developer Guide</i>.</p> </dd> </dl>" 4719 }, 4720 "From":{ 4721 "shape":"StringType", 4722 "documentation":"<p>Either the sender’s email address or the sender’s name with their email address. For example, <code>testuser@example.com</code> or <code>Test User <testuser@example.com></code>. This address appears before the body of the email.</p>" 4723 }, 4724 "ConfigurationSet":{ 4725 "shape":"SESConfigurationSet", 4726 "documentation":"<p>The set of configuration rules that can be applied to emails sent using Amazon Simple Email Service. A configuration set is applied to an email by including a reference to the configuration set in the headers of the email. Once applied, all of the rules in that configuration set are applied to the email. Configuration sets can be used to apply the following types of rules to emails: </p> <dl> <dt>Event publishing</dt> <dd> <p>Amazon Simple Email Service can track the number of send, delivery, open, click, bounce, and complaint events for each email sent. Use event publishing to send information about these events to other Amazon Web Services services such as and Amazon CloudWatch</p> </dd> <dt>IP pool management</dt> <dd> <p>When leasing dedicated IP addresses with Amazon Simple Email Service, you can create groups of IP addresses, called dedicated IP pools. You can then associate the dedicated IP pools with configuration sets.</p> </dd> </dl>" 4727 } 4728 }, 4729 "documentation":"<p>The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for messages from your user pool.</p> <note> <p>Amazon Cognito can send email messages with Amazon Simple Email Service resources in the Amazon Web Services Region where you created your user pool, and in alternate Regions in some cases. For more information on the supported Regions, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-email.html\">Email settings for Amazon Cognito user pools</a>.</p> </note>" 4730 }, 4731 "EmailNotificationBodyType":{ 4732 "type":"string", 4733 "max":20000, 4734 "min":6, 4735 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]+" 4736 }, 4737 "EmailNotificationSubjectType":{ 4738 "type":"string", 4739 "max":140, 4740 "min":1, 4741 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s]+" 4742 }, 4743 "EmailSendingAccountType":{ 4744 "type":"string", 4745 "enum":[ 4746 "COGNITO_DEFAULT", 4747 "DEVELOPER" 4748 ] 4749 }, 4750 "EmailVerificationMessageByLinkType":{ 4751 "type":"string", 4752 "max":20000, 4753 "min":6, 4754 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*\\{##[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*##\\}[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*" 4755 }, 4756 "EmailVerificationMessageType":{ 4757 "type":"string", 4758 "max":20000, 4759 "min":6, 4760 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*\\{####\\}[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*" 4761 }, 4762 "EmailVerificationSubjectByLinkType":{ 4763 "type":"string", 4764 "max":140, 4765 "min":1, 4766 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s]+" 4767 }, 4768 "EmailVerificationSubjectType":{ 4769 "type":"string", 4770 "max":140, 4771 "min":1, 4772 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s]+" 4773 }, 4774 "EnableSoftwareTokenMFAException":{ 4775 "type":"structure", 4776 "members":{ 4777 "message":{"shape":"MessageType"} 4778 }, 4779 "documentation":"<p>This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA).</p>", 4780 "exception":true 4781 }, 4782 "EventContextDataType":{ 4783 "type":"structure", 4784 "members":{ 4785 "IpAddress":{ 4786 "shape":"StringType", 4787 "documentation":"<p>The source IP address of your user's device.</p>" 4788 }, 4789 "DeviceName":{ 4790 "shape":"StringType", 4791 "documentation":"<p>The user's device name.</p>" 4792 }, 4793 "Timezone":{ 4794 "shape":"StringType", 4795 "documentation":"<p>The user's time zone.</p>" 4796 }, 4797 "City":{ 4798 "shape":"StringType", 4799 "documentation":"<p>The user's city.</p>" 4800 }, 4801 "Country":{ 4802 "shape":"StringType", 4803 "documentation":"<p>The user's country.</p>" 4804 } 4805 }, 4806 "documentation":"<p>Specifies the user context data captured at the time of an event request.</p>" 4807 }, 4808 "EventFeedbackType":{ 4809 "type":"structure", 4810 "required":[ 4811 "FeedbackValue", 4812 "Provider" 4813 ], 4814 "members":{ 4815 "FeedbackValue":{ 4816 "shape":"FeedbackValueType", 4817 "documentation":"<p>The authentication event feedback value. When you provide a <code>FeedbackValue</code> value of <code>valid</code>, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a <code>FeedbackValue</code> value of <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level.</p>" 4818 }, 4819 "Provider":{ 4820 "shape":"StringType", 4821 "documentation":"<p>The provider.</p>" 4822 }, 4823 "FeedbackDate":{ 4824 "shape":"DateType", 4825 "documentation":"<p>The event feedback date.</p>" 4826 } 4827 }, 4828 "documentation":"<p>Specifies the event feedback type.</p>" 4829 }, 4830 "EventFilterType":{ 4831 "type":"string", 4832 "enum":[ 4833 "SIGN_IN", 4834 "PASSWORD_CHANGE", 4835 "SIGN_UP" 4836 ] 4837 }, 4838 "EventFiltersType":{ 4839 "type":"list", 4840 "member":{"shape":"EventFilterType"} 4841 }, 4842 "EventIdType":{ 4843 "type":"string", 4844 "max":50, 4845 "min":1, 4846 "pattern":"[\\w+-]+" 4847 }, 4848 "EventResponseType":{ 4849 "type":"string", 4850 "enum":[ 4851 "Pass", 4852 "Fail", 4853 "InProgress" 4854 ] 4855 }, 4856 "EventRiskType":{ 4857 "type":"structure", 4858 "members":{ 4859 "RiskDecision":{ 4860 "shape":"RiskDecisionType", 4861 "documentation":"<p>The risk decision.</p>" 4862 }, 4863 "RiskLevel":{ 4864 "shape":"RiskLevelType", 4865 "documentation":"<p>The risk level.</p>" 4866 }, 4867 "CompromisedCredentialsDetected":{ 4868 "shape":"WrappedBooleanType", 4869 "documentation":"<p>Indicates whether compromised credentials were detected during an authentication event.</p>" 4870 } 4871 }, 4872 "documentation":"<p>The event risk type.</p>" 4873 }, 4874 "EventSourceName":{ 4875 "type":"string", 4876 "enum":["userNotification"] 4877 }, 4878 "EventType":{ 4879 "type":"string", 4880 "enum":[ 4881 "SignIn", 4882 "SignUp", 4883 "ForgotPassword", 4884 "PasswordChange", 4885 "ResendCode" 4886 ] 4887 }, 4888 "ExpiredCodeException":{ 4889 "type":"structure", 4890 "members":{ 4891 "message":{ 4892 "shape":"MessageType", 4893 "documentation":"<p>The message returned when the expired code exception is thrown.</p>" 4894 } 4895 }, 4896 "documentation":"<p>This exception is thrown if a code has expired.</p>", 4897 "exception":true 4898 }, 4899 "ExplicitAuthFlowsListType":{ 4900 "type":"list", 4901 "member":{"shape":"ExplicitAuthFlowsType"} 4902 }, 4903 "ExplicitAuthFlowsType":{ 4904 "type":"string", 4905 "enum":[ 4906 "ADMIN_NO_SRP_AUTH", 4907 "CUSTOM_AUTH_FLOW_ONLY", 4908 "USER_PASSWORD_AUTH", 4909 "ALLOW_ADMIN_USER_PASSWORD_AUTH", 4910 "ALLOW_CUSTOM_AUTH", 4911 "ALLOW_USER_PASSWORD_AUTH", 4912 "ALLOW_USER_SRP_AUTH", 4913 "ALLOW_REFRESH_TOKEN_AUTH" 4914 ] 4915 }, 4916 "FeedbackValueType":{ 4917 "type":"string", 4918 "enum":[ 4919 "Valid", 4920 "Invalid" 4921 ] 4922 }, 4923 "ForbiddenException":{ 4924 "type":"structure", 4925 "members":{ 4926 "message":{ 4927 "shape":"MessageType", 4928 "documentation":"<p>The message returned when WAF doesn't allow your request based on a web ACL that's associated with your user pool.</p>" 4929 } 4930 }, 4931 "documentation":"<p>This exception is thrown when WAF doesn't allow your request based on a web ACL that's associated with your user pool.</p>", 4932 "exception":true 4933 }, 4934 "ForceAliasCreation":{"type":"boolean"}, 4935 "ForgetDeviceRequest":{ 4936 "type":"structure", 4937 "required":["DeviceKey"], 4938 "members":{ 4939 "AccessToken":{ 4940 "shape":"TokenModelType", 4941 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose registered device you want to forget.</p>" 4942 }, 4943 "DeviceKey":{ 4944 "shape":"DeviceKeyType", 4945 "documentation":"<p>The device key.</p>" 4946 } 4947 }, 4948 "documentation":"<p>Represents the request to forget the device.</p>" 4949 }, 4950 "ForgotPasswordRequest":{ 4951 "type":"structure", 4952 "required":[ 4953 "ClientId", 4954 "Username" 4955 ], 4956 "members":{ 4957 "ClientId":{ 4958 "shape":"ClientIdType", 4959 "documentation":"<p>The ID of the client associated with the user pool.</p>" 4960 }, 4961 "SecretHash":{ 4962 "shape":"SecretHashType", 4963 "documentation":"<p>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.</p>" 4964 }, 4965 "UserContextData":{ 4966 "shape":"UserContextDataType", 4967 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 4968 }, 4969 "Username":{ 4970 "shape":"UsernameType", 4971 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 4972 }, 4973 "AnalyticsMetadata":{ 4974 "shape":"AnalyticsMetadataType", 4975 "documentation":"<p>The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>ForgotPassword</code> calls.</p>" 4976 }, 4977 "ClientMetadata":{ 4978 "shape":"ClientMetadataType", 4979 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the ForgotPassword API action, Amazon Cognito invokes any functions that are assigned to the following triggers: <i>pre sign-up</i>, <i>custom message</i>, and <i>user migration</i>. When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your ForgotPassword request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 4980 } 4981 }, 4982 "documentation":"<p>Represents the request to reset a user's password.</p>" 4983 }, 4984 "ForgotPasswordResponse":{ 4985 "type":"structure", 4986 "members":{ 4987 "CodeDeliveryDetails":{ 4988 "shape":"CodeDeliveryDetailsType", 4989 "documentation":"<p>The code delivery details returned by the server in response to the request to reset a password.</p>" 4990 } 4991 }, 4992 "documentation":"<p>The response from Amazon Cognito to a request to reset a password.</p>" 4993 }, 4994 "GenerateSecret":{"type":"boolean"}, 4995 "GetCSVHeaderRequest":{ 4996 "type":"structure", 4997 "required":["UserPoolId"], 4998 "members":{ 4999 "UserPoolId":{ 5000 "shape":"UserPoolIdType", 5001 "documentation":"<p>The user pool ID for the user pool that the users are to be imported into.</p>" 5002 } 5003 }, 5004 "documentation":"<p>Represents the request to get the header information of the CSV file for the user import job.</p>" 5005 }, 5006 "GetCSVHeaderResponse":{ 5007 "type":"structure", 5008 "members":{ 5009 "UserPoolId":{ 5010 "shape":"UserPoolIdType", 5011 "documentation":"<p>The user pool ID for the user pool that the users are to be imported into.</p>" 5012 }, 5013 "CSVHeader":{ 5014 "shape":"ListOfStringTypes", 5015 "documentation":"<p>The header information of the CSV file for the user import job.</p>" 5016 } 5017 }, 5018 "documentation":"<p>Represents the response from the server to the request to get the header information of the CSV file for the user import job.</p>" 5019 }, 5020 "GetDeviceRequest":{ 5021 "type":"structure", 5022 "required":["DeviceKey"], 5023 "members":{ 5024 "DeviceKey":{ 5025 "shape":"DeviceKeyType", 5026 "documentation":"<p>The device key.</p>" 5027 }, 5028 "AccessToken":{ 5029 "shape":"TokenModelType", 5030 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose device information you want to request.</p>" 5031 } 5032 }, 5033 "documentation":"<p>Represents the request to get the device.</p>" 5034 }, 5035 "GetDeviceResponse":{ 5036 "type":"structure", 5037 "required":["Device"], 5038 "members":{ 5039 "Device":{ 5040 "shape":"DeviceType", 5041 "documentation":"<p>The device.</p>" 5042 } 5043 }, 5044 "documentation":"<p>Gets the device response.</p>" 5045 }, 5046 "GetGroupRequest":{ 5047 "type":"structure", 5048 "required":[ 5049 "GroupName", 5050 "UserPoolId" 5051 ], 5052 "members":{ 5053 "GroupName":{ 5054 "shape":"GroupNameType", 5055 "documentation":"<p>The name of the group.</p>" 5056 }, 5057 "UserPoolId":{ 5058 "shape":"UserPoolIdType", 5059 "documentation":"<p>The user pool ID for the user pool.</p>" 5060 } 5061 } 5062 }, 5063 "GetGroupResponse":{ 5064 "type":"structure", 5065 "members":{ 5066 "Group":{ 5067 "shape":"GroupType", 5068 "documentation":"<p>The group object for the group.</p>" 5069 } 5070 } 5071 }, 5072 "GetIdentityProviderByIdentifierRequest":{ 5073 "type":"structure", 5074 "required":[ 5075 "UserPoolId", 5076 "IdpIdentifier" 5077 ], 5078 "members":{ 5079 "UserPoolId":{ 5080 "shape":"UserPoolIdType", 5081 "documentation":"<p>The user pool ID.</p>" 5082 }, 5083 "IdpIdentifier":{ 5084 "shape":"IdpIdentifierType", 5085 "documentation":"<p>The IdP identifier.</p>" 5086 } 5087 } 5088 }, 5089 "GetIdentityProviderByIdentifierResponse":{ 5090 "type":"structure", 5091 "required":["IdentityProvider"], 5092 "members":{ 5093 "IdentityProvider":{ 5094 "shape":"IdentityProviderType", 5095 "documentation":"<p>The identity provider details.</p>" 5096 } 5097 } 5098 }, 5099 "GetLogDeliveryConfigurationRequest":{ 5100 "type":"structure", 5101 "required":["UserPoolId"], 5102 "members":{ 5103 "UserPoolId":{ 5104 "shape":"UserPoolIdType", 5105 "documentation":"<p>The ID of the user pool where you want to view detailed activity logging configuration.</p>" 5106 } 5107 } 5108 }, 5109 "GetLogDeliveryConfigurationResponse":{ 5110 "type":"structure", 5111 "members":{ 5112 "LogDeliveryConfiguration":{ 5113 "shape":"LogDeliveryConfigurationType", 5114 "documentation":"<p>The detailed activity logging configuration of the requested user pool.</p>" 5115 } 5116 } 5117 }, 5118 "GetSigningCertificateRequest":{ 5119 "type":"structure", 5120 "required":["UserPoolId"], 5121 "members":{ 5122 "UserPoolId":{ 5123 "shape":"UserPoolIdType", 5124 "documentation":"<p>The user pool ID.</p>" 5125 } 5126 }, 5127 "documentation":"<p>Request to get a signing certificate from Amazon Cognito.</p>" 5128 }, 5129 "GetSigningCertificateResponse":{ 5130 "type":"structure", 5131 "members":{ 5132 "Certificate":{ 5133 "shape":"StringType", 5134 "documentation":"<p>The signing certificate.</p>" 5135 } 5136 }, 5137 "documentation":"<p>Response from Amazon Cognito for a signing certificate request.</p>" 5138 }, 5139 "GetUICustomizationRequest":{ 5140 "type":"structure", 5141 "required":["UserPoolId"], 5142 "members":{ 5143 "UserPoolId":{ 5144 "shape":"UserPoolIdType", 5145 "documentation":"<p>The user pool ID for the user pool.</p>" 5146 }, 5147 "ClientId":{ 5148 "shape":"ClientIdType", 5149 "documentation":"<p>The client ID for the client app.</p>" 5150 } 5151 } 5152 }, 5153 "GetUICustomizationResponse":{ 5154 "type":"structure", 5155 "required":["UICustomization"], 5156 "members":{ 5157 "UICustomization":{ 5158 "shape":"UICustomizationType", 5159 "documentation":"<p>The UI customization information.</p>" 5160 } 5161 } 5162 }, 5163 "GetUserAttributeVerificationCodeRequest":{ 5164 "type":"structure", 5165 "required":[ 5166 "AccessToken", 5167 "AttributeName" 5168 ], 5169 "members":{ 5170 "AccessToken":{ 5171 "shape":"TokenModelType", 5172 "documentation":"<p>A non-expired access token for the user whose attribute verification code you want to generate.</p>" 5173 }, 5174 "AttributeName":{ 5175 "shape":"AttributeNameType", 5176 "documentation":"<p>The attribute name returned by the server response to get the user attribute verification code.</p>" 5177 }, 5178 "ClientMetadata":{ 5179 "shape":"ClientMetadataType", 5180 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the GetUserAttributeVerificationCode API action, Amazon Cognito invokes the function that is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your GetUserAttributeVerificationCode request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 5181 } 5182 }, 5183 "documentation":"<p>Represents the request to get user attribute verification.</p>" 5184 }, 5185 "GetUserAttributeVerificationCodeResponse":{ 5186 "type":"structure", 5187 "members":{ 5188 "CodeDeliveryDetails":{ 5189 "shape":"CodeDeliveryDetailsType", 5190 "documentation":"<p>The code delivery details returned by the server in response to the request to get the user attribute verification code.</p>" 5191 } 5192 }, 5193 "documentation":"<p>The verification code response returned by the server response to get the user attribute verification code.</p>" 5194 }, 5195 "GetUserPoolMfaConfigRequest":{ 5196 "type":"structure", 5197 "required":["UserPoolId"], 5198 "members":{ 5199 "UserPoolId":{ 5200 "shape":"UserPoolIdType", 5201 "documentation":"<p>The user pool ID.</p>" 5202 } 5203 } 5204 }, 5205 "GetUserPoolMfaConfigResponse":{ 5206 "type":"structure", 5207 "members":{ 5208 "SmsMfaConfiguration":{ 5209 "shape":"SmsMfaConfigType", 5210 "documentation":"<p>The SMS text message multi-factor authentication (MFA) configuration.</p>" 5211 }, 5212 "SoftwareTokenMfaConfiguration":{ 5213 "shape":"SoftwareTokenMfaConfigType", 5214 "documentation":"<p>The software token multi-factor authentication (MFA) configuration.</p>" 5215 }, 5216 "MfaConfiguration":{ 5217 "shape":"UserPoolMfaType", 5218 "documentation":"<p>The multi-factor authentication (MFA) configuration. Valid values include:</p> <ul> <li> <p> <code>OFF</code> MFA won't be used for any users.</p> </li> <li> <p> <code>ON</code> MFA is required for all users to sign in.</p> </li> <li> <p> <code>OPTIONAL</code> MFA will be required only for individual users who have an MFA factor activated.</p> </li> </ul>" 5219 } 5220 } 5221 }, 5222 "GetUserRequest":{ 5223 "type":"structure", 5224 "required":["AccessToken"], 5225 "members":{ 5226 "AccessToken":{ 5227 "shape":"TokenModelType", 5228 "documentation":"<p>A non-expired access token for the user whose information you want to query.</p>" 5229 } 5230 }, 5231 "documentation":"<p>Represents the request to get information about the user.</p>" 5232 }, 5233 "GetUserResponse":{ 5234 "type":"structure", 5235 "required":[ 5236 "Username", 5237 "UserAttributes" 5238 ], 5239 "members":{ 5240 "Username":{ 5241 "shape":"UsernameType", 5242 "documentation":"<p>The username of the user that you requested.</p>" 5243 }, 5244 "UserAttributes":{ 5245 "shape":"AttributeListType", 5246 "documentation":"<p>An array of name-value pairs representing user attributes.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p>" 5247 }, 5248 "MFAOptions":{ 5249 "shape":"MFAOptionListType", 5250 "documentation":"<p> <i>This response parameter is no longer supported.</i> It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.</p>" 5251 }, 5252 "PreferredMfaSetting":{ 5253 "shape":"StringType", 5254 "documentation":"<p>The user's preferred MFA setting.</p>" 5255 }, 5256 "UserMFASettingList":{ 5257 "shape":"UserMFASettingListType", 5258 "documentation":"<p>The MFA options that are activated for the user. The possible values in this list are <code>SMS_MFA</code> and <code>SOFTWARE_TOKEN_MFA</code>.</p>" 5259 } 5260 }, 5261 "documentation":"<p>Represents the response from the server from the request to get information about the user.</p>" 5262 }, 5263 "GlobalSignOutRequest":{ 5264 "type":"structure", 5265 "required":["AccessToken"], 5266 "members":{ 5267 "AccessToken":{ 5268 "shape":"TokenModelType", 5269 "documentation":"<p>A valid access token that Amazon Cognito issued to the user who you want to sign out.</p>" 5270 } 5271 }, 5272 "documentation":"<p>Represents the request to sign out all devices.</p>" 5273 }, 5274 "GlobalSignOutResponse":{ 5275 "type":"structure", 5276 "members":{ 5277 }, 5278 "documentation":"<p>The response to the request to sign out all devices.</p>" 5279 }, 5280 "GroupExistsException":{ 5281 "type":"structure", 5282 "members":{ 5283 "message":{"shape":"MessageType"} 5284 }, 5285 "documentation":"<p>This exception is thrown when Amazon Cognito encounters a group that already exists in the user pool.</p>", 5286 "exception":true 5287 }, 5288 "GroupListType":{ 5289 "type":"list", 5290 "member":{"shape":"GroupType"} 5291 }, 5292 "GroupNameType":{ 5293 "type":"string", 5294 "max":128, 5295 "min":1, 5296 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" 5297 }, 5298 "GroupType":{ 5299 "type":"structure", 5300 "members":{ 5301 "GroupName":{ 5302 "shape":"GroupNameType", 5303 "documentation":"<p>The name of the group.</p>" 5304 }, 5305 "UserPoolId":{ 5306 "shape":"UserPoolIdType", 5307 "documentation":"<p>The user pool ID for the user pool.</p>" 5308 }, 5309 "Description":{ 5310 "shape":"DescriptionType", 5311 "documentation":"<p>A string containing the description of the group.</p>" 5312 }, 5313 "RoleArn":{ 5314 "shape":"ArnType", 5315 "documentation":"<p>The role Amazon Resource Name (ARN) for the group.</p>" 5316 }, 5317 "Precedence":{ 5318 "shape":"PrecedenceType", 5319 "documentation":"<p>A non-negative 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 <code>Precedence</code> values take precedence over groups with higher ornull <code>Precedence</code> values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for the <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims.</p> <p>Two groups can have the same <code>Precedence</code> value. If this happens, neither group takes precedence over the other. If two groups with the same <code>Precedence</code> have the same role ARN, that role is used in the <code>cognito:preferred_role</code> claim in tokens for users in each group. If the two groups have different role ARNs, the <code>cognito:preferred_role</code> claim isn't set in users' tokens.</p> <p>The default <code>Precedence</code> value is null.</p>" 5320 }, 5321 "LastModifiedDate":{ 5322 "shape":"DateType", 5323 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 5324 }, 5325 "CreationDate":{ 5326 "shape":"DateType", 5327 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 5328 } 5329 }, 5330 "documentation":"<p>The group type.</p>" 5331 }, 5332 "HexStringType":{ 5333 "type":"string", 5334 "pattern":"^[0-9a-fA-F]+$" 5335 }, 5336 "HttpHeader":{ 5337 "type":"structure", 5338 "members":{ 5339 "headerName":{ 5340 "shape":"StringType", 5341 "documentation":"<p>The header name.</p>" 5342 }, 5343 "headerValue":{ 5344 "shape":"StringType", 5345 "documentation":"<p>The header value.</p>" 5346 } 5347 }, 5348 "documentation":"<p>The HTTP header.</p>" 5349 }, 5350 "HttpHeaderList":{ 5351 "type":"list", 5352 "member":{"shape":"HttpHeader"} 5353 }, 5354 "IdTokenValidityType":{ 5355 "type":"integer", 5356 "max":86400, 5357 "min":1 5358 }, 5359 "IdentityProviderType":{ 5360 "type":"structure", 5361 "members":{ 5362 "UserPoolId":{ 5363 "shape":"UserPoolIdType", 5364 "documentation":"<p>The user pool ID.</p>" 5365 }, 5366 "ProviderName":{ 5367 "shape":"ProviderNameType", 5368 "documentation":"<p>The IdP name.</p>" 5369 }, 5370 "ProviderType":{ 5371 "shape":"IdentityProviderTypeType", 5372 "documentation":"<p>The IdP type.</p>" 5373 }, 5374 "ProviderDetails":{ 5375 "shape":"ProviderDetailsType", 5376 "documentation":"<p>The scopes, URLs, and identifiers for your external identity provider. The following examples describe the provider detail keys for each IdP type. These values and their schema are subject to change. Social IdP <code>authorize_scopes</code> values must match the values listed here.</p> <dl> <dt>OpenID Connect (OIDC)</dt> <dd> <p>Amazon Cognito accepts the following elements when it can't discover endpoint URLs from <code>oidc_issuer</code>: <code>attributes_url</code>, <code>authorize_url</code>, <code>jwks_uri</code>, <code>token_url</code>.</p> <p>Create or update request: <code>\"ProviderDetails\": { \"attributes_request_method\": \"GET\", \"attributes_url\": \"https://auth.example.com/userInfo\", \"authorize_scopes\": \"openid profile email\", \"authorize_url\": \"https://auth.example.com/authorize\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"jwks_uri\": \"https://auth.example.com/.well-known/jwks.json\", \"oidc_issuer\": \"https://auth.example.com\", \"token_url\": \"https://example.com/token\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_request_method\": \"GET\", \"attributes_url\": \"https://auth.example.com/userInfo\", \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"openid profile email\", \"authorize_url\": \"https://auth.example.com/authorize\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"jwks_uri\": \"https://auth.example.com/.well-known/jwks.json\", \"oidc_issuer\": \"https://auth.example.com\", \"token_url\": \"https://example.com/token\" }</code> </p> </dd> <dt>SAML</dt> <dd> <p>Create or update request with Metadata URL: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"MetadataURL\": \"https://auth.example.com/sso/saml/metadata\", \"RequestSigningAlgorithm\": \"rsa-sha256\" }</code> </p> <p>Create or update request with Metadata file: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"MetadataFile\": \"[metadata XML]\", \"RequestSigningAlgorithm\": \"rsa-sha256\" }</code> </p> <p>The value of <code>MetadataFile</code> must be the plaintext metadata document with all quote (\") characters escaped by backslashes.</p> <p>Describe response: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"ActiveEncryptionCertificate\": \"[certificate]\", \"MetadataURL\": \"https://auth.example.com/sso/saml/metadata\", \"RequestSigningAlgorithm\": \"rsa-sha256\", \"SLORedirectBindingURI\": \"https://auth.example.com/slo/saml\", \"SSORedirectBindingURI\": \"https://auth.example.com/sso/saml\" }</code> </p> </dd> <dt>LoginWithAmazon</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"profile postal_code\", \"client_id\": \"amzn1.application-oa2-client.1example23456789\", \"client_secret\": \"provider-app-client-secret\"</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url\": \"https://api.amazon.com/user/profile\", \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"profile postal_code\", \"authorize_url\": \"https://www.amazon.com/ap/oa\", \"client_id\": \"amzn1.application-oa2-client.1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"POST\", \"token_url\": \"https://api.amazon.com/auth/o2/token\" }</code> </p> </dd> <dt>Google</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"email profile openid\", \"client_id\": \"1example23456789.apps.googleusercontent.com\", \"client_secret\": \"provider-app-client-secret\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url\": \"https://people.googleapis.com/v1/people/me?personFields=\", \"attributes_url_add_attributes\": \"true\", \"authorize_scopes\": \"email profile openid\", \"authorize_url\": \"https://accounts.google.com/o/oauth2/v2/auth\", \"client_id\": \"1example23456789.apps.googleusercontent.com\", \"client_secret\": \"provider-app-client-secret\", \"oidc_issuer\": \"https://accounts.google.com\", \"token_request_method\": \"POST\", \"token_url\": \"https://www.googleapis.com/oauth2/v4/token\" }</code> </p> </dd> <dt>SignInWithApple</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"email name\", \"client_id\": \"com.example.cognito\", \"private_key\": \"1EXAMPLE\", \"key_id\": \"2EXAMPLE\", \"team_id\": \"3EXAMPLE\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"email name\", \"authorize_url\": \"https://appleid.apple.com/auth/authorize\", \"client_id\": \"com.example.cognito\", \"key_id\": \"1EXAMPLE\", \"oidc_issuer\": \"https://appleid.apple.com\", \"team_id\": \"2EXAMPLE\", \"token_request_method\": \"POST\", \"token_url\": \"https://appleid.apple.com/auth/token\" }</code> </p> </dd> <dt>Facebook</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"api_version\": \"v17.0\", \"authorize_scopes\": \"public_profile, email\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"api_version\": \"v17.0\", \"attributes_url\": \"https://graph.facebook.com/v17.0/me?fields=\", \"attributes_url_add_attributes\": \"true\", \"authorize_scopes\": \"public_profile, email\", \"authorize_url\": \"https://www.facebook.com/v17.0/dialog/oauth\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"GET\", \"token_url\": \"https://graph.facebook.com/v17.0/oauth/access_token\" }</code> </p> </dd> </dl>" 5377 }, 5378 "AttributeMapping":{ 5379 "shape":"AttributeMappingType", 5380 "documentation":"<p>A mapping of IdP attributes to standard and custom user pool attributes.</p>" 5381 }, 5382 "IdpIdentifiers":{ 5383 "shape":"IdpIdentifiersListType", 5384 "documentation":"<p>A list of IdP identifiers.</p>" 5385 }, 5386 "LastModifiedDate":{ 5387 "shape":"DateType", 5388 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 5389 }, 5390 "CreationDate":{ 5391 "shape":"DateType", 5392 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 5393 } 5394 }, 5395 "documentation":"<p>A container for information about an IdP.</p>" 5396 }, 5397 "IdentityProviderTypeType":{ 5398 "type":"string", 5399 "enum":[ 5400 "SAML", 5401 "Facebook", 5402 "Google", 5403 "LoginWithAmazon", 5404 "SignInWithApple", 5405 "OIDC" 5406 ] 5407 }, 5408 "IdpIdentifierType":{ 5409 "type":"string", 5410 "max":40, 5411 "min":1, 5412 "pattern":"[\\w\\s+=.@-]+" 5413 }, 5414 "IdpIdentifiersListType":{ 5415 "type":"list", 5416 "member":{"shape":"IdpIdentifierType"}, 5417 "max":50, 5418 "min":0 5419 }, 5420 "ImageFileType":{ 5421 "type":"blob", 5422 "max":131072, 5423 "min":0 5424 }, 5425 "ImageUrlType":{"type":"string"}, 5426 "InitiateAuthRequest":{ 5427 "type":"structure", 5428 "required":[ 5429 "AuthFlow", 5430 "ClientId" 5431 ], 5432 "members":{ 5433 "AuthFlow":{ 5434 "shape":"AuthFlowType", 5435 "documentation":"<p>The authentication flow for this call to run. The API action will depend on this value. For example:</p> <ul> <li> <p> <code>REFRESH_TOKEN_AUTH</code> takes in a valid refresh token and returns new tokens.</p> </li> <li> <p> <code>USER_SRP_AUTH</code> takes in <code>USERNAME</code> and <code>SRP_A</code> and returns the SRP variables to be used for next challenge execution.</p> </li> <li> <p> <code>USER_PASSWORD_AUTH</code> takes in <code>USERNAME</code> and <code>PASSWORD</code> and returns the next challenge or tokens.</p> </li> </ul> <p>Valid values include:</p> <ul> <li> <p> <code>USER_SRP_AUTH</code>: Authentication flow for the Secure Remote Password (SRP) protocol.</p> </li> <li> <p> <code>REFRESH_TOKEN_AUTH</code>/<code>REFRESH_TOKEN</code>: Authentication flow for refreshing the access token and ID token by supplying a valid refresh token.</p> </li> <li> <p> <code>CUSTOM_AUTH</code>: Custom authentication flow.</p> </li> <li> <p> <code>USER_PASSWORD_AUTH</code>: Non-SRP authentication flow; user name and password are passed directly. If a user migration Lambda trigger is set, this flow will invoke the user migration Lambda if it doesn't find the user name in the user pool. </p> </li> </ul> <p> <code>ADMIN_NO_SRP_AUTH</code> isn't a valid value.</p>" 5436 }, 5437 "AuthParameters":{ 5438 "shape":"AuthParametersType", 5439 "documentation":"<p>The authentication parameters. These are inputs corresponding to the <code>AuthFlow</code> that you're invoking. The required values depend on the value of <code>AuthFlow</code>:</p> <ul> <li> <p>For <code>USER_SRP_AUTH</code>: <code>USERNAME</code> (required), <code>SRP_A</code> (required), <code>SECRET_HASH</code> (required if the app client is configured with a client secret), <code>DEVICE_KEY</code>.</p> </li> <li> <p>For <code>USER_PASSWORD_AUTH</code>: <code>USERNAME</code> (required), <code>PASSWORD</code> (required), <code>SECRET_HASH</code> (required if the app client is configured with a client secret), <code>DEVICE_KEY</code>.</p> </li> <li> <p>For <code>REFRESH_TOKEN_AUTH/REFRESH_TOKEN</code>: <code>REFRESH_TOKEN</code> (required), <code>SECRET_HASH</code> (required if the app client is configured with a client secret), <code>DEVICE_KEY</code>.</p> </li> <li> <p>For <code>CUSTOM_AUTH</code>: <code>USERNAME</code> (required), <code>SECRET_HASH</code> (if app client is configured with client secret), <code>DEVICE_KEY</code>. To start the authentication flow with password verification, include <code>ChallengeName: SRP_A</code> and <code>SRP_A: (The SRP_A Value)</code>.</p> </li> </ul> <p>For more information about <code>SECRET_HASH</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash\">Computing secret hash values</a>. For information about <code>DEVICE_KEY</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p>" 5440 }, 5441 "ClientMetadata":{ 5442 "shape":"ClientMetadataType", 5443 "documentation":"<p>A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:</p> <ul> <li> <p>Pre signup</p> </li> <li> <p>Pre authentication</p> </li> <li> <p>User migration</p> </li> </ul> <p>When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a <code>validationData</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the <code>validationData</code> value to enhance your workflow for your specific needs.</p> <p>When you use the InitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:</p> <ul> <li> <p>Post authentication</p> </li> <li> <p>Custom message</p> </li> <li> <p>Pre token generation</p> </li> <li> <p>Create auth challenge</p> </li> <li> <p>Define auth challenge</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 5444 }, 5445 "ClientId":{ 5446 "shape":"ClientIdType", 5447 "documentation":"<p>The app client ID.</p>" 5448 }, 5449 "AnalyticsMetadata":{ 5450 "shape":"AnalyticsMetadataType", 5451 "documentation":"<p>The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>InitiateAuth</code> calls.</p>" 5452 }, 5453 "UserContextData":{ 5454 "shape":"UserContextDataType", 5455 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 5456 } 5457 }, 5458 "documentation":"<p>Initiates the authentication request.</p>" 5459 }, 5460 "InitiateAuthResponse":{ 5461 "type":"structure", 5462 "members":{ 5463 "ChallengeName":{ 5464 "shape":"ChallengeNameType", 5465 "documentation":"<p>The name of the challenge that you're responding to with this call. This name is returned in the <code>InitiateAuth</code> response if you must pass another challenge.</p> <p>Valid values include the following:</p> <note> <p>All of the following challenges require <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable) in the parameters.</p> </note> <ul> <li> <p> <code>SMS_MFA</code>: Next challenge is to supply an <code>SMS_MFA_CODE</code>, delivered via SMS.</p> </li> <li> <p> <code>PASSWORD_VERIFIER</code>: Next challenge is to supply <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>, and <code>TIMESTAMP</code> after the client-side SRP calculations.</p> </li> <li> <p> <code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.</p> </li> <li> <p> <code>DEVICE_SRP_AUTH</code>: If device tracking was activated on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.</p> </li> <li> <p> <code>DEVICE_PASSWORD_VERIFIER</code>: Similar to <code>PASSWORD_VERIFIER</code>, but for devices only.</p> </li> <li> <p> <code>NEW_PASSWORD_REQUIRED</code>: For users who are required to change their passwords after successful first login. </p> <p>Respond to this challenge with <code>NEW_PASSWORD</code> and any required attributes that Amazon Cognito returned in the <code>requiredAttributes</code> parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RespondToAuthChallenge.html\">RespondToAuthChallenge</a>.</p> <note> <p>In a <code>NEW_PASSWORD_REQUIRED</code> challenge response, you can't modify a required attribute that already has a value. In <code>RespondToAuthChallenge</code>, set a value for any keys that Amazon Cognito returned in the <code>requiredAttributes</code> parameter, then use the <code>UpdateUserAttributes</code> API operation to modify the value of any additional attributes.</p> </note> </li> <li> <p> <code>MFA_SETUP</code>: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters <code>MFAS_CAN_SETUP</code> value. </p> <p> To set up software token MFA, use the session returned here from <code>InitiateAuth</code> as an input to <code>AssociateSoftwareToken</code>. Use the session returned by <code>VerifySoftwareToken</code> as an input to <code>RespondToAuthChallenge</code> with challenge name <code>MFA_SETUP</code> to complete sign-in. To set up SMS MFA, an administrator should help the user to add a phone number to their account, and then the user should call <code>InitiateAuth</code> again to restart sign-in.</p> </li> </ul>" 5466 }, 5467 "Session":{ 5468 "shape":"SessionType", 5469 "documentation":"<p>The session that should pass both ways in challenge-response calls to the service. If the caller must pass another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next <code>RespondToAuthChallenge</code> API call.</p>" 5470 }, 5471 "ChallengeParameters":{ 5472 "shape":"ChallengeParametersType", 5473 "documentation":"<p>The challenge parameters. These are returned in the <code>InitiateAuth</code> response if you must pass another challenge. The responses in this parameter should be used to compute inputs to the next call (<code>RespondToAuthChallenge</code>). </p> <p>All challenges require <code>USERNAME</code> and <code>SECRET_HASH</code> (if applicable).</p>" 5474 }, 5475 "AuthenticationResult":{ 5476 "shape":"AuthenticationResultType", 5477 "documentation":"<p>The result of the authentication response. This result is only returned if the caller doesn't need to pass another challenge. If the caller does need to pass another challenge before it gets tokens, <code>ChallengeName</code>, <code>ChallengeParameters</code>, and <code>Session</code> are returned.</p>" 5478 } 5479 }, 5480 "documentation":"<p>Initiates the authentication response.</p>" 5481 }, 5482 "IntegerType":{"type":"integer"}, 5483 "InternalErrorException":{ 5484 "type":"structure", 5485 "members":{ 5486 "message":{ 5487 "shape":"MessageType", 5488 "documentation":"<p>The message returned when Amazon Cognito throws an internal error exception.</p>" 5489 } 5490 }, 5491 "documentation":"<p>This exception is thrown when Amazon Cognito encounters an internal error.</p>", 5492 "exception":true, 5493 "fault":true 5494 }, 5495 "InvalidEmailRoleAccessPolicyException":{ 5496 "type":"structure", 5497 "members":{ 5498 "message":{ 5499 "shape":"MessageType", 5500 "documentation":"<p>The message returned when you have an unverified email address or the identity policy isn't set on an email address that Amazon Cognito can access.</p>" 5501 } 5502 }, 5503 "documentation":"<p>This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP status code: 400.</p>", 5504 "exception":true 5505 }, 5506 "InvalidLambdaResponseException":{ 5507 "type":"structure", 5508 "members":{ 5509 "message":{ 5510 "shape":"MessageType", 5511 "documentation":"<p>The message returned when Amazon Cognito throws an invalid Lambda response exception.</p>" 5512 } 5513 }, 5514 "documentation":"<p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>", 5515 "exception":true 5516 }, 5517 "InvalidOAuthFlowException":{ 5518 "type":"structure", 5519 "members":{ 5520 "message":{"shape":"MessageType"} 5521 }, 5522 "documentation":"<p>This exception is thrown when the specified OAuth flow is not valid.</p>", 5523 "exception":true 5524 }, 5525 "InvalidParameterException":{ 5526 "type":"structure", 5527 "members":{ 5528 "message":{ 5529 "shape":"MessageType", 5530 "documentation":"<p>The message returned when the Amazon Cognito service throws an invalid parameter exception.</p>" 5531 } 5532 }, 5533 "documentation":"<p>This exception is thrown when the Amazon Cognito service encounters an invalid parameter.</p>", 5534 "exception":true 5535 }, 5536 "InvalidPasswordException":{ 5537 "type":"structure", 5538 "members":{ 5539 "message":{ 5540 "shape":"MessageType", 5541 "documentation":"<p>The message returned when Amazon Cognito throws an invalid user password exception.</p>" 5542 } 5543 }, 5544 "documentation":"<p>This exception is thrown when Amazon Cognito encounters an invalid password.</p>", 5545 "exception":true 5546 }, 5547 "InvalidSmsRoleAccessPolicyException":{ 5548 "type":"structure", 5549 "members":{ 5550 "message":{ 5551 "shape":"MessageType", 5552 "documentation":"<p>The message returned when the invalid SMS role access policy exception is thrown.</p>" 5553 } 5554 }, 5555 "documentation":"<p>This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS.</p>", 5556 "exception":true 5557 }, 5558 "InvalidSmsRoleTrustRelationshipException":{ 5559 "type":"structure", 5560 "members":{ 5561 "message":{ 5562 "shape":"MessageType", 5563 "documentation":"<p>The message returned when the role trust relationship for the SMS message is not valid.</p>" 5564 } 5565 }, 5566 "documentation":"<p>This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool.</p>", 5567 "exception":true 5568 }, 5569 "InvalidUserPoolConfigurationException":{ 5570 "type":"structure", 5571 "members":{ 5572 "message":{ 5573 "shape":"MessageType", 5574 "documentation":"<p>The message returned when the user pool configuration is not valid.</p>" 5575 } 5576 }, 5577 "documentation":"<p>This exception is thrown when the user pool configuration is not valid.</p>", 5578 "exception":true 5579 }, 5580 "LambdaConfigType":{ 5581 "type":"structure", 5582 "members":{ 5583 "PreSignUp":{ 5584 "shape":"ArnType", 5585 "documentation":"<p>A pre-registration Lambda trigger.</p>" 5586 }, 5587 "CustomMessage":{ 5588 "shape":"ArnType", 5589 "documentation":"<p>A custom Message Lambda trigger.</p>" 5590 }, 5591 "PostConfirmation":{ 5592 "shape":"ArnType", 5593 "documentation":"<p>A post-confirmation Lambda trigger.</p>" 5594 }, 5595 "PreAuthentication":{ 5596 "shape":"ArnType", 5597 "documentation":"<p>A pre-authentication Lambda trigger.</p>" 5598 }, 5599 "PostAuthentication":{ 5600 "shape":"ArnType", 5601 "documentation":"<p>A post-authentication Lambda trigger.</p>" 5602 }, 5603 "DefineAuthChallenge":{ 5604 "shape":"ArnType", 5605 "documentation":"<p>Defines the authentication challenge.</p>" 5606 }, 5607 "CreateAuthChallenge":{ 5608 "shape":"ArnType", 5609 "documentation":"<p>Creates an authentication challenge.</p>" 5610 }, 5611 "VerifyAuthChallengeResponse":{ 5612 "shape":"ArnType", 5613 "documentation":"<p>Verifies the authentication challenge response.</p>" 5614 }, 5615 "PreTokenGeneration":{ 5616 "shape":"ArnType", 5617 "documentation":"<p>The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.</p> <p>Set this parameter for legacy purposes. If you also set an ARN in <code>PreTokenGenerationConfig</code>, its value must be identical to <code>PreTokenGeneration</code>. For new instances of pre token generation triggers, set the <code>LambdaArn</code> of <code>PreTokenGenerationConfig</code>.</p> <p>You can set <code/> </p>" 5618 }, 5619 "UserMigration":{ 5620 "shape":"ArnType", 5621 "documentation":"<p>The user migration Lambda config type.</p>" 5622 }, 5623 "PreTokenGenerationConfig":{ 5624 "shape":"PreTokenGenerationVersionConfigType", 5625 "documentation":"<p>The detailed configuration of a pre token generation trigger. If you also set an ARN in <code>PreTokenGeneration</code>, its value must be identical to <code>PreTokenGenerationConfig</code>.</p>" 5626 }, 5627 "CustomSMSSender":{ 5628 "shape":"CustomSMSLambdaVersionConfigType", 5629 "documentation":"<p>A custom SMS sender Lambda trigger.</p>" 5630 }, 5631 "CustomEmailSender":{ 5632 "shape":"CustomEmailLambdaVersionConfigType", 5633 "documentation":"<p>A custom email sender Lambda trigger.</p>" 5634 }, 5635 "KMSKeyID":{ 5636 "shape":"ArnType", 5637 "documentation":"<p>The Amazon Resource Name (ARN) of an <a href=\"/kms/latest/developerguide/concepts.html#master_keys\">KMS key</a>. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to <code>CustomEmailSender</code> and <code>CustomSMSSender</code>.</p>" 5638 } 5639 }, 5640 "documentation":"<p>Specifies the configuration for Lambda triggers.</p>" 5641 }, 5642 "LimitExceededException":{ 5643 "type":"structure", 5644 "members":{ 5645 "message":{ 5646 "shape":"MessageType", 5647 "documentation":"<p>The message returned when Amazon Cognito throws a limit exceeded exception.</p>" 5648 } 5649 }, 5650 "documentation":"<p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services resource.</p>", 5651 "exception":true 5652 }, 5653 "ListDevicesRequest":{ 5654 "type":"structure", 5655 "required":["AccessToken"], 5656 "members":{ 5657 "AccessToken":{ 5658 "shape":"TokenModelType", 5659 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose list of devices you want to view.</p>" 5660 }, 5661 "Limit":{ 5662 "shape":"QueryLimitType", 5663 "documentation":"<p>The limit of the device request.</p>" 5664 }, 5665 "PaginationToken":{ 5666 "shape":"SearchPaginationTokenType", 5667 "documentation":"<p>This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.</p>" 5668 } 5669 }, 5670 "documentation":"<p>Represents the request to list the devices.</p>" 5671 }, 5672 "ListDevicesResponse":{ 5673 "type":"structure", 5674 "members":{ 5675 "Devices":{ 5676 "shape":"DeviceListType", 5677 "documentation":"<p>The devices returned in the list devices response.</p>" 5678 }, 5679 "PaginationToken":{ 5680 "shape":"SearchPaginationTokenType", 5681 "documentation":"<p>The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.</p>" 5682 } 5683 }, 5684 "documentation":"<p>Represents the response to list devices.</p>" 5685 }, 5686 "ListGroupsRequest":{ 5687 "type":"structure", 5688 "required":["UserPoolId"], 5689 "members":{ 5690 "UserPoolId":{ 5691 "shape":"UserPoolIdType", 5692 "documentation":"<p>The user pool ID for the user pool.</p>" 5693 }, 5694 "Limit":{ 5695 "shape":"QueryLimitType", 5696 "documentation":"<p>The limit of the request to list groups.</p>" 5697 }, 5698 "NextToken":{ 5699 "shape":"PaginationKey", 5700 "documentation":"<p>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.</p>" 5701 } 5702 } 5703 }, 5704 "ListGroupsResponse":{ 5705 "type":"structure", 5706 "members":{ 5707 "Groups":{ 5708 "shape":"GroupListType", 5709 "documentation":"<p>The group objects for the groups.</p>" 5710 }, 5711 "NextToken":{ 5712 "shape":"PaginationKey", 5713 "documentation":"<p>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.</p>" 5714 } 5715 } 5716 }, 5717 "ListIdentityProvidersRequest":{ 5718 "type":"structure", 5719 "required":["UserPoolId"], 5720 "members":{ 5721 "UserPoolId":{ 5722 "shape":"UserPoolIdType", 5723 "documentation":"<p>The user pool ID.</p>" 5724 }, 5725 "MaxResults":{ 5726 "shape":"ListProvidersLimitType", 5727 "documentation":"<p>The maximum number of IdPs to return.</p>" 5728 }, 5729 "NextToken":{ 5730 "shape":"PaginationKeyType", 5731 "documentation":"<p>A pagination token.</p>" 5732 } 5733 } 5734 }, 5735 "ListIdentityProvidersResponse":{ 5736 "type":"structure", 5737 "required":["Providers"], 5738 "members":{ 5739 "Providers":{ 5740 "shape":"ProvidersListType", 5741 "documentation":"<p>A list of IdP objects.</p>" 5742 }, 5743 "NextToken":{ 5744 "shape":"PaginationKeyType", 5745 "documentation":"<p>A pagination token.</p>" 5746 } 5747 } 5748 }, 5749 "ListOfStringTypes":{ 5750 "type":"list", 5751 "member":{"shape":"StringType"} 5752 }, 5753 "ListProvidersLimitType":{ 5754 "type":"integer", 5755 "max":60, 5756 "min":0 5757 }, 5758 "ListResourceServersLimitType":{ 5759 "type":"integer", 5760 "max":50, 5761 "min":1 5762 }, 5763 "ListResourceServersRequest":{ 5764 "type":"structure", 5765 "required":["UserPoolId"], 5766 "members":{ 5767 "UserPoolId":{ 5768 "shape":"UserPoolIdType", 5769 "documentation":"<p>The user pool ID for the user pool.</p>" 5770 }, 5771 "MaxResults":{ 5772 "shape":"ListResourceServersLimitType", 5773 "documentation":"<p>The maximum number of resource servers to return.</p>" 5774 }, 5775 "NextToken":{ 5776 "shape":"PaginationKeyType", 5777 "documentation":"<p>A pagination token.</p>" 5778 } 5779 } 5780 }, 5781 "ListResourceServersResponse":{ 5782 "type":"structure", 5783 "required":["ResourceServers"], 5784 "members":{ 5785 "ResourceServers":{ 5786 "shape":"ResourceServersListType", 5787 "documentation":"<p>The resource servers.</p>" 5788 }, 5789 "NextToken":{ 5790 "shape":"PaginationKeyType", 5791 "documentation":"<p>A pagination token.</p>" 5792 } 5793 } 5794 }, 5795 "ListTagsForResourceRequest":{ 5796 "type":"structure", 5797 "required":["ResourceArn"], 5798 "members":{ 5799 "ResourceArn":{ 5800 "shape":"ArnType", 5801 "documentation":"<p>The Amazon Resource Name (ARN) of the user pool that the tags are assigned to.</p>" 5802 } 5803 } 5804 }, 5805 "ListTagsForResourceResponse":{ 5806 "type":"structure", 5807 "members":{ 5808 "Tags":{ 5809 "shape":"UserPoolTagsType", 5810 "documentation":"<p>The tags that are assigned to the user pool.</p>" 5811 } 5812 } 5813 }, 5814 "ListUserImportJobsRequest":{ 5815 "type":"structure", 5816 "required":[ 5817 "UserPoolId", 5818 "MaxResults" 5819 ], 5820 "members":{ 5821 "UserPoolId":{ 5822 "shape":"UserPoolIdType", 5823 "documentation":"<p>The user pool ID for the user pool that the users are being imported into.</p>" 5824 }, 5825 "MaxResults":{ 5826 "shape":"PoolQueryLimitType", 5827 "documentation":"<p>The maximum number of import jobs you want the request to return.</p>" 5828 }, 5829 "PaginationToken":{ 5830 "shape":"PaginationKeyType", 5831 "documentation":"<p>This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.</p>" 5832 } 5833 }, 5834 "documentation":"<p>Represents the request to list the user import jobs.</p>" 5835 }, 5836 "ListUserImportJobsResponse":{ 5837 "type":"structure", 5838 "members":{ 5839 "UserImportJobs":{ 5840 "shape":"UserImportJobsListType", 5841 "documentation":"<p>The user import jobs.</p>" 5842 }, 5843 "PaginationToken":{ 5844 "shape":"PaginationKeyType", 5845 "documentation":"<p>The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.</p>" 5846 } 5847 }, 5848 "documentation":"<p>Represents the response from the server to the request to list the user import jobs.</p>" 5849 }, 5850 "ListUserPoolClientsRequest":{ 5851 "type":"structure", 5852 "required":["UserPoolId"], 5853 "members":{ 5854 "UserPoolId":{ 5855 "shape":"UserPoolIdType", 5856 "documentation":"<p>The user pool ID for the user pool where you want to list user pool clients.</p>" 5857 }, 5858 "MaxResults":{ 5859 "shape":"QueryLimit", 5860 "documentation":"<p>The maximum number of results you want the request to return when listing the user pool clients.</p>" 5861 }, 5862 "NextToken":{ 5863 "shape":"PaginationKey", 5864 "documentation":"<p>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.</p>" 5865 } 5866 }, 5867 "documentation":"<p>Represents the request to list the user pool clients.</p>" 5868 }, 5869 "ListUserPoolClientsResponse":{ 5870 "type":"structure", 5871 "members":{ 5872 "UserPoolClients":{ 5873 "shape":"UserPoolClientListType", 5874 "documentation":"<p>The user pool clients in the response that lists user pool clients.</p>" 5875 }, 5876 "NextToken":{ 5877 "shape":"PaginationKey", 5878 "documentation":"<p>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.</p>" 5879 } 5880 }, 5881 "documentation":"<p>Represents the response from the server that lists user pool clients.</p>" 5882 }, 5883 "ListUserPoolsRequest":{ 5884 "type":"structure", 5885 "required":["MaxResults"], 5886 "members":{ 5887 "NextToken":{ 5888 "shape":"PaginationKeyType", 5889 "documentation":"<p>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.</p>" 5890 }, 5891 "MaxResults":{ 5892 "shape":"PoolQueryLimitType", 5893 "documentation":"<p>The maximum number of results you want the request to return when listing the user pools.</p>" 5894 } 5895 }, 5896 "documentation":"<p>Represents the request to list user pools.</p>" 5897 }, 5898 "ListUserPoolsResponse":{ 5899 "type":"structure", 5900 "members":{ 5901 "UserPools":{ 5902 "shape":"UserPoolListType", 5903 "documentation":"<p>The user pools from the response to list users.</p>" 5904 }, 5905 "NextToken":{ 5906 "shape":"PaginationKeyType", 5907 "documentation":"<p>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.</p>" 5908 } 5909 }, 5910 "documentation":"<p>Represents the response to list user pools.</p>" 5911 }, 5912 "ListUsersInGroupRequest":{ 5913 "type":"structure", 5914 "required":[ 5915 "UserPoolId", 5916 "GroupName" 5917 ], 5918 "members":{ 5919 "UserPoolId":{ 5920 "shape":"UserPoolIdType", 5921 "documentation":"<p>The user pool ID for the user pool.</p>" 5922 }, 5923 "GroupName":{ 5924 "shape":"GroupNameType", 5925 "documentation":"<p>The name of the group.</p>" 5926 }, 5927 "Limit":{ 5928 "shape":"QueryLimitType", 5929 "documentation":"<p>The maximum number of users that you want to retrieve before pagination.</p>" 5930 }, 5931 "NextToken":{ 5932 "shape":"PaginationKey", 5933 "documentation":"<p>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.</p>" 5934 } 5935 } 5936 }, 5937 "ListUsersInGroupResponse":{ 5938 "type":"structure", 5939 "members":{ 5940 "Users":{ 5941 "shape":"UsersListType", 5942 "documentation":"<p>A list of users in the group, and their attributes.</p>" 5943 }, 5944 "NextToken":{ 5945 "shape":"PaginationKey", 5946 "documentation":"<p>An identifier that you can use in a later request to return the next set of items in the list.</p>" 5947 } 5948 } 5949 }, 5950 "ListUsersRequest":{ 5951 "type":"structure", 5952 "required":["UserPoolId"], 5953 "members":{ 5954 "UserPoolId":{ 5955 "shape":"UserPoolIdType", 5956 "documentation":"<p>The user pool ID for the user pool on which the search should be performed.</p>" 5957 }, 5958 "AttributesToGet":{ 5959 "shape":"SearchedAttributeNamesListType", 5960 "documentation":"<p>A JSON array of user attribute names, for example <code>given_name</code>, that you want Amazon Cognito to include in the response for each user. When you don't provide an <code>AttributesToGet</code> parameter, Amazon Cognito returns all attributes for each user.</p> <p>Use <code>AttributesToGet</code> with required attributes in your user pool, or in conjunction with <code>Filter</code>. Amazon Cognito returns an error if not all users in the results have set a value for the attribute you request. Attributes that you can't filter on, including custom attributes, must have a value set in every user profile before an <code>AttributesToGet</code> parameter returns results.</p>" 5961 }, 5962 "Limit":{ 5963 "shape":"QueryLimitType", 5964 "documentation":"<p>Maximum number of users to be returned.</p>" 5965 }, 5966 "PaginationToken":{ 5967 "shape":"SearchPaginationTokenType", 5968 "documentation":"<p>This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.</p>" 5969 }, 5970 "Filter":{ 5971 "shape":"UserFilterType", 5972 "documentation":"<p>A filter string of the form \"<i>AttributeName</i> <i>Filter-Type</i> \"<i>AttributeValue</i>\"\". Quotation marks within the filter string must be escaped using the backslash (\\) character. For example, \"<code>family_name</code> = \\\"Reddy\\\"\".</p> <ul> <li> <p> <i>AttributeName</i>: The name of the attribute to search for. You can only search for one attribute at a time.</p> </li> <li> <p> <i>Filter-Type</i>: For an exact match, use =, for example, \"<code>given_name</code> = \\\"Jon\\\"\". For a prefix (\"starts with\") match, use ^=, for example, \"<code>given_name</code> ^= \\\"Jon\\\"\". </p> </li> <li> <p> <i>AttributeValue</i>: The attribute value that must be matched for each user.</p> </li> </ul> <p>If the filter string is empty, <code>ListUsers</code> returns all users in the user pool.</p> <p>You can only search for the following standard attributes:</p> <ul> <li> <p> <code>username</code> (case-sensitive)</p> </li> <li> <p> <code>email</code> </p> </li> <li> <p> <code>phone_number</code> </p> </li> <li> <p> <code>name</code> </p> </li> <li> <p> <code>given_name</code> </p> </li> <li> <p> <code>family_name</code> </p> </li> <li> <p> <code>preferred_username</code> </p> </li> <li> <p> <code>cognito:user_status</code> (called <b>Status</b> in the Console) (case-insensitive)</p> </li> <li> <p> <code>status (called <b>Enabled</b> in the Console) (case-sensitive)</code> </p> </li> <li> <p> <code>sub</code> </p> </li> </ul> <p>Custom attributes aren't searchable.</p> <note> <p>You can also list users with a client-side filter. The server-side filter matches no more than one attribute. For an advanced search, use a client-side filter with the <code>--query</code> parameter of the <code>list-users</code> action in the CLI. When you use a client-side filter, ListUsers returns a paginated list of zero or more users. You can receive multiple pages in a row with zero results. Repeat the query with each pagination token that is returned until you receive a null pagination token value, and then review the combined result. </p> <p>For more information about server-side and client-side filtering, see <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html\">FilteringCLI output</a> in the <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html\">Command Line Interface User Guide</a>. </p> </note> <p>For more information, see <a href=\"https://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</a> and <a href=\"https://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</a> in the <i>Amazon Cognito Developer Guide</i>.</p>" 5973 } 5974 }, 5975 "documentation":"<p>Represents the request to list users.</p>" 5976 }, 5977 "ListUsersResponse":{ 5978 "type":"structure", 5979 "members":{ 5980 "Users":{ 5981 "shape":"UsersListType", 5982 "documentation":"<p>A list of the user pool users, and their attributes, that match your query.</p> <note> <p>Amazon Cognito creates a profile in your user pool for each native user in your user pool, and each unique user ID from your third-party identity providers (IdPs). When you link users with the <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html\">AdminLinkProviderForUser</a> API operation, the output of <code>ListUsers</code> displays both the IdP user and the native user that you linked. You can identify IdP users in the <code>Users</code> object of this API response by the IdP prefix that Amazon Cognito appends to <code>Username</code>.</p> </note>" 5983 }, 5984 "PaginationToken":{ 5985 "shape":"SearchPaginationTokenType", 5986 "documentation":"<p>The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.</p>" 5987 } 5988 }, 5989 "documentation":"<p>The response from the request to list users.</p>" 5990 }, 5991 "LogConfigurationListType":{ 5992 "type":"list", 5993 "member":{"shape":"LogConfigurationType"}, 5994 "max":1, 5995 "min":0 5996 }, 5997 "LogConfigurationType":{ 5998 "type":"structure", 5999 "required":[ 6000 "LogLevel", 6001 "EventSource" 6002 ], 6003 "members":{ 6004 "LogLevel":{ 6005 "shape":"LogLevel", 6006 "documentation":"<p>The <code>errorlevel</code> selection of logs that a user pool sends for detailed activity logging.</p>" 6007 }, 6008 "EventSource":{ 6009 "shape":"EventSourceName", 6010 "documentation":"<p>The source of events that your user pool sends for detailed activity logging.</p>" 6011 }, 6012 "CloudWatchLogsConfiguration":{ 6013 "shape":"CloudWatchLogsConfigurationType", 6014 "documentation":"<p>The CloudWatch logging destination of a user pool.</p>" 6015 } 6016 }, 6017 "documentation":"<p>The logging parameters of a user pool.</p>" 6018 }, 6019 "LogDeliveryConfigurationType":{ 6020 "type":"structure", 6021 "required":[ 6022 "UserPoolId", 6023 "LogConfigurations" 6024 ], 6025 "members":{ 6026 "UserPoolId":{ 6027 "shape":"UserPoolIdType", 6028 "documentation":"<p>The ID of the user pool where you configured detailed activity logging.</p>" 6029 }, 6030 "LogConfigurations":{ 6031 "shape":"LogConfigurationListType", 6032 "documentation":"<p>The detailed activity logging destination of a user pool.</p>" 6033 } 6034 }, 6035 "documentation":"<p>The logging parameters of a user pool.</p>" 6036 }, 6037 "LogLevel":{ 6038 "type":"string", 6039 "enum":["ERROR"] 6040 }, 6041 "LogoutURLsListType":{ 6042 "type":"list", 6043 "member":{"shape":"RedirectUrlType"}, 6044 "max":100, 6045 "min":0 6046 }, 6047 "LongType":{"type":"long"}, 6048 "MFAMethodNotFoundException":{ 6049 "type":"structure", 6050 "members":{ 6051 "message":{ 6052 "shape":"MessageType", 6053 "documentation":"<p>The message returned when Amazon Cognito throws an MFA method not found exception.</p>" 6054 } 6055 }, 6056 "documentation":"<p>This exception is thrown when Amazon Cognito can't find a multi-factor authentication (MFA) method.</p>", 6057 "exception":true 6058 }, 6059 "MFAOptionListType":{ 6060 "type":"list", 6061 "member":{"shape":"MFAOptionType"} 6062 }, 6063 "MFAOptionType":{ 6064 "type":"structure", 6065 "members":{ 6066 "DeliveryMedium":{ 6067 "shape":"DeliveryMediumType", 6068 "documentation":"<p>The delivery medium to send the MFA code. You can use this parameter to set only the <code>SMS</code> delivery medium value.</p>" 6069 }, 6070 "AttributeName":{ 6071 "shape":"AttributeNameType", 6072 "documentation":"<p>The attribute name of the MFA option type. The only valid value is <code>phone_number</code>.</p>" 6073 } 6074 }, 6075 "documentation":"<p> <i>This data type is no longer supported.</i> Applies only to SMS multi-factor authentication (MFA) configurations. Does not apply to time-based one-time password (TOTP) software token MFA configurations.</p>" 6076 }, 6077 "MessageActionType":{ 6078 "type":"string", 6079 "enum":[ 6080 "RESEND", 6081 "SUPPRESS" 6082 ] 6083 }, 6084 "MessageTemplateType":{ 6085 "type":"structure", 6086 "members":{ 6087 "SMSMessage":{ 6088 "shape":"SmsVerificationMessageType", 6089 "documentation":"<p>The message template for SMS messages.</p>" 6090 }, 6091 "EmailMessage":{ 6092 "shape":"EmailVerificationMessageType", 6093 "documentation":"<p>The message template for email messages. EmailMessage is allowed only if <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\">EmailSendingAccount</a> is DEVELOPER. </p>" 6094 }, 6095 "EmailSubject":{ 6096 "shape":"EmailVerificationSubjectType", 6097 "documentation":"<p>The subject line for email messages. EmailSubject is allowed only if <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\">EmailSendingAccount</a> is DEVELOPER. </p>" 6098 } 6099 }, 6100 "documentation":"<p>The message template structure.</p>" 6101 }, 6102 "MessageType":{"type":"string"}, 6103 "NewDeviceMetadataType":{ 6104 "type":"structure", 6105 "members":{ 6106 "DeviceKey":{ 6107 "shape":"DeviceKeyType", 6108 "documentation":"<p>The device key.</p>" 6109 }, 6110 "DeviceGroupKey":{ 6111 "shape":"StringType", 6112 "documentation":"<p>The device group key.</p>" 6113 } 6114 }, 6115 "documentation":"<p>The new device metadata type.</p>" 6116 }, 6117 "NotAuthorizedException":{ 6118 "type":"structure", 6119 "members":{ 6120 "message":{ 6121 "shape":"MessageType", 6122 "documentation":"<p>The message returned when the Amazon Cognito service returns a not authorized exception.</p>" 6123 } 6124 }, 6125 "documentation":"<p>This exception is thrown when a user isn't authorized.</p>", 6126 "exception":true 6127 }, 6128 "NotifyConfigurationType":{ 6129 "type":"structure", 6130 "required":["SourceArn"], 6131 "members":{ 6132 "From":{ 6133 "shape":"StringType", 6134 "documentation":"<p>The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.</p>" 6135 }, 6136 "ReplyTo":{ 6137 "shape":"StringType", 6138 "documentation":"<p>The destination to which the receiver of an email should reply to.</p>" 6139 }, 6140 "SourceArn":{ 6141 "shape":"ArnType", 6142 "documentation":"<p>The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the <code>From</code> parameter.</p>" 6143 }, 6144 "BlockEmail":{ 6145 "shape":"NotifyEmailType", 6146 "documentation":"<p>Email template used when a detected risk event is blocked.</p>" 6147 }, 6148 "NoActionEmail":{ 6149 "shape":"NotifyEmailType", 6150 "documentation":"<p>The email template used when a detected risk event is allowed.</p>" 6151 }, 6152 "MfaEmail":{ 6153 "shape":"NotifyEmailType", 6154 "documentation":"<p>The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk.</p>" 6155 } 6156 }, 6157 "documentation":"<p>The notify configuration type.</p>" 6158 }, 6159 "NotifyEmailType":{ 6160 "type":"structure", 6161 "required":["Subject"], 6162 "members":{ 6163 "Subject":{ 6164 "shape":"EmailNotificationSubjectType", 6165 "documentation":"<p>The email subject.</p>" 6166 }, 6167 "HtmlBody":{ 6168 "shape":"EmailNotificationBodyType", 6169 "documentation":"<p>The email HTML body.</p>" 6170 }, 6171 "TextBody":{ 6172 "shape":"EmailNotificationBodyType", 6173 "documentation":"<p>The email text body.</p>" 6174 } 6175 }, 6176 "documentation":"<p>The notify email type.</p>" 6177 }, 6178 "NumberAttributeConstraintsType":{ 6179 "type":"structure", 6180 "members":{ 6181 "MinValue":{ 6182 "shape":"StringType", 6183 "documentation":"<p>The minimum value of an attribute that is of the number data type.</p>" 6184 }, 6185 "MaxValue":{ 6186 "shape":"StringType", 6187 "documentation":"<p>The maximum value of an attribute that is of the number data type.</p>" 6188 } 6189 }, 6190 "documentation":"<p>The minimum and maximum values of an attribute that is of the number data type.</p>" 6191 }, 6192 "OAuthFlowType":{ 6193 "type":"string", 6194 "enum":[ 6195 "code", 6196 "implicit", 6197 "client_credentials" 6198 ] 6199 }, 6200 "OAuthFlowsType":{ 6201 "type":"list", 6202 "member":{"shape":"OAuthFlowType"}, 6203 "max":3, 6204 "min":0 6205 }, 6206 "PaginationKey":{ 6207 "type":"string", 6208 "max":131072, 6209 "min":1, 6210 "pattern":"[\\S]+" 6211 }, 6212 "PaginationKeyType":{ 6213 "type":"string", 6214 "min":1, 6215 "pattern":"[\\S]+" 6216 }, 6217 "PasswordPolicyMinLengthType":{ 6218 "type":"integer", 6219 "max":99, 6220 "min":6 6221 }, 6222 "PasswordPolicyType":{ 6223 "type":"structure", 6224 "members":{ 6225 "MinimumLength":{ 6226 "shape":"PasswordPolicyMinLengthType", 6227 "documentation":"<p>The minimum length of the password in the policy that you have set. This value can't be less than 6.</p>" 6228 }, 6229 "RequireUppercase":{ 6230 "shape":"BooleanType", 6231 "documentation":"<p>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.</p>" 6232 }, 6233 "RequireLowercase":{ 6234 "shape":"BooleanType", 6235 "documentation":"<p>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.</p>" 6236 }, 6237 "RequireNumbers":{ 6238 "shape":"BooleanType", 6239 "documentation":"<p>In the password policy that you have set, refers to whether you have required users to use at least one number in their password.</p>" 6240 }, 6241 "RequireSymbols":{ 6242 "shape":"BooleanType", 6243 "documentation":"<p>In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.</p>" 6244 }, 6245 "TemporaryPasswordValidityDays":{ 6246 "shape":"TemporaryPasswordValidityDaysType", 6247 "documentation":"<p>The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password. Defaults to <code>7</code>. If you submit a value of <code>0</code>, Amazon Cognito treats it as a null value and sets <code>TemporaryPasswordValidityDays</code> to its default value.</p> <note> <p>When you set <code>TemporaryPasswordValidityDays</code> for a user pool, you can no longer set a value for the legacy <code>UnusedAccountValidityDays</code> parameter in that user pool.</p> </note>" 6248 } 6249 }, 6250 "documentation":"<p>The password policy type.</p>" 6251 }, 6252 "PasswordResetRequiredException":{ 6253 "type":"structure", 6254 "members":{ 6255 "message":{ 6256 "shape":"MessageType", 6257 "documentation":"<p>The message returned when a password reset is required.</p>" 6258 } 6259 }, 6260 "documentation":"<p>This exception is thrown when a password reset is required.</p>", 6261 "exception":true 6262 }, 6263 "PasswordType":{ 6264 "type":"string", 6265 "max":256, 6266 "pattern":"[\\S]+", 6267 "sensitive":true 6268 }, 6269 "PoolQueryLimitType":{ 6270 "type":"integer", 6271 "max":60, 6272 "min":1 6273 }, 6274 "PreSignedUrlType":{ 6275 "type":"string", 6276 "max":2048, 6277 "min":0 6278 }, 6279 "PreTokenGenerationLambdaVersionType":{ 6280 "type":"string", 6281 "enum":[ 6282 "V1_0", 6283 "V2_0" 6284 ] 6285 }, 6286 "PreTokenGenerationVersionConfigType":{ 6287 "type":"structure", 6288 "required":[ 6289 "LambdaVersion", 6290 "LambdaArn" 6291 ], 6292 "members":{ 6293 "LambdaVersion":{ 6294 "shape":"PreTokenGenerationLambdaVersionType", 6295 "documentation":"<p>The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.</p>" 6296 }, 6297 "LambdaArn":{ 6298 "shape":"ArnType", 6299 "documentation":"<p>The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.</p> <p>This parameter and the <code>PreTokenGeneration</code> property of <code>LambdaConfig</code> have the same value. For new instances of pre token generation triggers, set <code>LambdaArn</code>.</p>" 6300 } 6301 }, 6302 "documentation":"<p>The properties of a pre token generation Lambda trigger.</p>" 6303 }, 6304 "PrecedenceType":{ 6305 "type":"integer", 6306 "min":0 6307 }, 6308 "PreconditionNotMetException":{ 6309 "type":"structure", 6310 "members":{ 6311 "message":{ 6312 "shape":"MessageType", 6313 "documentation":"<p>The message returned when a precondition is not met.</p>" 6314 } 6315 }, 6316 "documentation":"<p>This exception is thrown when a precondition is not met.</p>", 6317 "exception":true 6318 }, 6319 "PreventUserExistenceErrorTypes":{ 6320 "type":"string", 6321 "enum":[ 6322 "LEGACY", 6323 "ENABLED" 6324 ] 6325 }, 6326 "PriorityType":{ 6327 "type":"integer", 6328 "max":2, 6329 "min":1 6330 }, 6331 "ProviderDescription":{ 6332 "type":"structure", 6333 "members":{ 6334 "ProviderName":{ 6335 "shape":"ProviderNameType", 6336 "documentation":"<p>The IdP name.</p>" 6337 }, 6338 "ProviderType":{ 6339 "shape":"IdentityProviderTypeType", 6340 "documentation":"<p>The IdP type.</p>" 6341 }, 6342 "LastModifiedDate":{ 6343 "shape":"DateType", 6344 "documentation":"<p>The date the provider was last modified.</p>" 6345 }, 6346 "CreationDate":{ 6347 "shape":"DateType", 6348 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 6349 } 6350 }, 6351 "documentation":"<p>A container for IdP details.</p>" 6352 }, 6353 "ProviderDetailsType":{ 6354 "type":"map", 6355 "key":{"shape":"StringType"}, 6356 "value":{"shape":"StringType"} 6357 }, 6358 "ProviderNameType":{ 6359 "type":"string", 6360 "max":32, 6361 "min":1, 6362 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\p{Z}]+" 6363 }, 6364 "ProviderNameTypeV2":{ 6365 "type":"string", 6366 "max":32, 6367 "min":1, 6368 "pattern":"[^_\\p{Z}][\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}][^_\\p{Z}]+" 6369 }, 6370 "ProviderUserIdentifierType":{ 6371 "type":"structure", 6372 "members":{ 6373 "ProviderName":{ 6374 "shape":"ProviderNameType", 6375 "documentation":"<p>The name of the provider, such as Facebook, Google, or Login with Amazon.</p>" 6376 }, 6377 "ProviderAttributeName":{ 6378 "shape":"StringType", 6379 "documentation":"<p>The name of the provider attribute to link to, such as <code>NameID</code>.</p>" 6380 }, 6381 "ProviderAttributeValue":{ 6382 "shape":"StringType", 6383 "documentation":"<p>The value of the provider attribute to link to, such as <code>xxxxx_account</code>.</p>" 6384 } 6385 }, 6386 "documentation":"<p>A container for information about an IdP for a user pool.</p>" 6387 }, 6388 "ProvidersListType":{ 6389 "type":"list", 6390 "member":{"shape":"ProviderDescription"}, 6391 "max":50, 6392 "min":0 6393 }, 6394 "QueryLimit":{ 6395 "type":"integer", 6396 "max":60, 6397 "min":1 6398 }, 6399 "QueryLimitType":{ 6400 "type":"integer", 6401 "max":60, 6402 "min":0 6403 }, 6404 "RecoveryMechanismsType":{ 6405 "type":"list", 6406 "member":{"shape":"RecoveryOptionType"}, 6407 "max":2, 6408 "min":1 6409 }, 6410 "RecoveryOptionNameType":{ 6411 "type":"string", 6412 "enum":[ 6413 "verified_email", 6414 "verified_phone_number", 6415 "admin_only" 6416 ] 6417 }, 6418 "RecoveryOptionType":{ 6419 "type":"structure", 6420 "required":[ 6421 "Priority", 6422 "Name" 6423 ], 6424 "members":{ 6425 "Priority":{ 6426 "shape":"PriorityType", 6427 "documentation":"<p>A positive integer specifying priority of a method with 1 being the highest priority.</p>" 6428 }, 6429 "Name":{ 6430 "shape":"RecoveryOptionNameType", 6431 "documentation":"<p>The recovery method for a user.</p>" 6432 } 6433 }, 6434 "documentation":"<p>A map containing a priority as a key, and recovery method name as a value.</p>" 6435 }, 6436 "RedirectUrlType":{ 6437 "type":"string", 6438 "max":1024, 6439 "min":1, 6440 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" 6441 }, 6442 "RefreshTokenValidityType":{ 6443 "type":"integer", 6444 "max":315360000, 6445 "min":0 6446 }, 6447 "RegionCodeType":{ 6448 "type":"string", 6449 "max":32, 6450 "min":5 6451 }, 6452 "ResendConfirmationCodeRequest":{ 6453 "type":"structure", 6454 "required":[ 6455 "ClientId", 6456 "Username" 6457 ], 6458 "members":{ 6459 "ClientId":{ 6460 "shape":"ClientIdType", 6461 "documentation":"<p>The ID of the client associated with the user pool.</p>" 6462 }, 6463 "SecretHash":{ 6464 "shape":"SecretHashType", 6465 "documentation":"<p>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.</p>" 6466 }, 6467 "UserContextData":{ 6468 "shape":"UserContextDataType", 6469 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 6470 }, 6471 "Username":{ 6472 "shape":"UsernameType", 6473 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 6474 }, 6475 "AnalyticsMetadata":{ 6476 "shape":"AnalyticsMetadataType", 6477 "documentation":"<p>The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>ResendConfirmationCode</code> calls.</p>" 6478 }, 6479 "ClientMetadata":{ 6480 "shape":"ClientMetadataType", 6481 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the ResendConfirmationCode API action, Amazon Cognito invokes the function that is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your ResendConfirmationCode request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 6482 } 6483 }, 6484 "documentation":"<p>Represents the request to resend the confirmation code.</p>" 6485 }, 6486 "ResendConfirmationCodeResponse":{ 6487 "type":"structure", 6488 "members":{ 6489 "CodeDeliveryDetails":{ 6490 "shape":"CodeDeliveryDetailsType", 6491 "documentation":"<p>The code delivery details returned by the server in response to the request to resend the confirmation code.</p>" 6492 } 6493 }, 6494 "documentation":"<p>The response from the server when Amazon Cognito makes the request to resend a confirmation code.</p>" 6495 }, 6496 "ResourceNotFoundException":{ 6497 "type":"structure", 6498 "members":{ 6499 "message":{ 6500 "shape":"MessageType", 6501 "documentation":"<p>The message returned when the Amazon Cognito service returns a resource not found exception.</p>" 6502 } 6503 }, 6504 "documentation":"<p>This exception is thrown when the Amazon Cognito service can't find the requested resource.</p>", 6505 "exception":true 6506 }, 6507 "ResourceServerIdentifierType":{ 6508 "type":"string", 6509 "max":256, 6510 "min":1, 6511 "pattern":"[\\x21\\x23-\\x5B\\x5D-\\x7E]+" 6512 }, 6513 "ResourceServerNameType":{ 6514 "type":"string", 6515 "max":256, 6516 "min":1, 6517 "pattern":"[\\w\\s+=,.@-]+" 6518 }, 6519 "ResourceServerScopeDescriptionType":{ 6520 "type":"string", 6521 "max":256, 6522 "min":1 6523 }, 6524 "ResourceServerScopeListType":{ 6525 "type":"list", 6526 "member":{"shape":"ResourceServerScopeType"}, 6527 "max":100 6528 }, 6529 "ResourceServerScopeNameType":{ 6530 "type":"string", 6531 "max":256, 6532 "min":1, 6533 "pattern":"[\\x21\\x23-\\x2E\\x30-\\x5B\\x5D-\\x7E]+" 6534 }, 6535 "ResourceServerScopeType":{ 6536 "type":"structure", 6537 "required":[ 6538 "ScopeName", 6539 "ScopeDescription" 6540 ], 6541 "members":{ 6542 "ScopeName":{ 6543 "shape":"ResourceServerScopeNameType", 6544 "documentation":"<p>The name of the scope.</p>" 6545 }, 6546 "ScopeDescription":{ 6547 "shape":"ResourceServerScopeDescriptionType", 6548 "documentation":"<p>A description of the scope.</p>" 6549 } 6550 }, 6551 "documentation":"<p>A resource server scope.</p>" 6552 }, 6553 "ResourceServerType":{ 6554 "type":"structure", 6555 "members":{ 6556 "UserPoolId":{ 6557 "shape":"UserPoolIdType", 6558 "documentation":"<p>The user pool ID for the user pool that hosts the resource server.</p>" 6559 }, 6560 "Identifier":{ 6561 "shape":"ResourceServerIdentifierType", 6562 "documentation":"<p>The identifier for the resource server.</p>" 6563 }, 6564 "Name":{ 6565 "shape":"ResourceServerNameType", 6566 "documentation":"<p>The name of the resource server.</p>" 6567 }, 6568 "Scopes":{ 6569 "shape":"ResourceServerScopeListType", 6570 "documentation":"<p>A list of scopes that are defined for the resource server.</p>" 6571 } 6572 }, 6573 "documentation":"<p>A container for information about a resource server for a user pool.</p>" 6574 }, 6575 "ResourceServersListType":{ 6576 "type":"list", 6577 "member":{"shape":"ResourceServerType"} 6578 }, 6579 "RespondToAuthChallengeRequest":{ 6580 "type":"structure", 6581 "required":[ 6582 "ClientId", 6583 "ChallengeName" 6584 ], 6585 "members":{ 6586 "ClientId":{ 6587 "shape":"ClientIdType", 6588 "documentation":"<p>The app client ID.</p>" 6589 }, 6590 "ChallengeName":{ 6591 "shape":"ChallengeNameType", 6592 "documentation":"<p>The challenge name. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html\">InitiateAuth</a>.</p> <p> <code>ADMIN_NO_SRP_AUTH</code> isn't a valid value.</p>" 6593 }, 6594 "Session":{ 6595 "shape":"SessionType", 6596 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. If <code>InitiateAuth</code> or <code>RespondToAuthChallenge</code> API call determines that the caller must pass another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next <code>RespondToAuthChallenge</code> API call.</p>" 6597 }, 6598 "ChallengeResponses":{ 6599 "shape":"ChallengeResponsesType", 6600 "documentation":"<p>The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.</p> <important> <p>You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret.</p> </important> <dl> <dt>SMS_MFA</dt> <dd> <p> <code>\"ChallengeName\": \"SMS_MFA\", \"ChallengeResponses\": {\"SMS_MFA_CODE\": \"[SMS_code]\", \"USERNAME\": \"[username]\"}</code> </p> </dd> <dt>PASSWORD_VERIFIER</dt> <dd> <p> <code>\"ChallengeName\": \"PASSWORD_VERIFIER\", \"ChallengeResponses\": {\"PASSWORD_CLAIM_SIGNATURE\": \"[claim_signature]\", \"PASSWORD_CLAIM_SECRET_BLOCK\": \"[secret_block]\", \"TIMESTAMP\": [timestamp], \"USERNAME\": \"[username]\"}</code> </p> <p>Add <code>\"DEVICE_KEY\"</code> when you sign in with a remembered device.</p> </dd> <dt>CUSTOM_CHALLENGE</dt> <dd> <p> <code>\"ChallengeName\": \"CUSTOM_CHALLENGE\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"ANSWER\": \"[challenge_answer]\"}</code> </p> <p>Add <code>\"DEVICE_KEY\"</code> when you sign in with a remembered device.</p> </dd> <dt>NEW_PASSWORD_REQUIRED</dt> <dd> <p> <code>\"ChallengeName\": \"NEW_PASSWORD_REQUIRED\", \"ChallengeResponses\": {\"NEW_PASSWORD\": \"[new_password]\", \"USERNAME\": \"[username]\"}</code> </p> <p>To set any required attributes that <code>InitiateAuth</code> returned in an <code>requiredAttributes</code> parameter, add <code>\"userAttributes.[attribute_name]\": \"[attribute_value]\"</code>. This parameter can also set values for writable attributes that aren't required by your user pool.</p> <note> <p>In a <code>NEW_PASSWORD_REQUIRED</code> challenge response, you can't modify a required attribute that already has a value. In <code>RespondToAuthChallenge</code>, set a value for any keys that Amazon Cognito returned in the <code>requiredAttributes</code> parameter, then use the <code>UpdateUserAttributes</code> API operation to modify the value of any additional attributes.</p> </note> </dd> <dt>SOFTWARE_TOKEN_MFA</dt> <dd> <p> <code>\"ChallengeName\": \"SOFTWARE_TOKEN_MFA\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"SOFTWARE_TOKEN_MFA_CODE\": [authenticator_code]}</code> </p> </dd> <dt>DEVICE_SRP_AUTH</dt> <dd> <p> <code>\"ChallengeName\": \"DEVICE_SRP_AUTH\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"DEVICE_KEY\": \"[device_key]\", \"SRP_A\": \"[srp_a]\"}</code> </p> </dd> <dt>DEVICE_PASSWORD_VERIFIER</dt> <dd> <p> <code>\"ChallengeName\": \"DEVICE_PASSWORD_VERIFIER\", \"ChallengeResponses\": {\"DEVICE_KEY\": \"[device_key]\", \"PASSWORD_CLAIM_SIGNATURE\": \"[claim_signature]\", \"PASSWORD_CLAIM_SECRET_BLOCK\": \"[secret_block]\", \"TIMESTAMP\": [timestamp], \"USERNAME\": \"[username]\"}</code> </p> </dd> <dt>MFA_SETUP</dt> <dd> <p> <code>\"ChallengeName\": \"MFA_SETUP\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\"}, \"SESSION\": \"[Session ID from VerifySoftwareToken]\"</code> </p> </dd> <dt>SELECT_MFA_TYPE</dt> <dd> <p> <code>\"ChallengeName\": \"SELECT_MFA_TYPE\", \"ChallengeResponses\": {\"USERNAME\": \"[username]\", \"ANSWER\": \"[SMS_MFA or SOFTWARE_TOKEN_MFA]\"}</code> </p> </dd> </dl> <p>For more information about <code>SECRET_HASH</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash\">Computing secret hash values</a>. For information about <code>DEVICE_KEY</code>, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html\">Working with user devices in your user pool</a>.</p>" 6601 }, 6602 "AnalyticsMetadata":{ 6603 "shape":"AnalyticsMetadataType", 6604 "documentation":"<p>The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>RespondToAuthChallenge</code> calls.</p>" 6605 }, 6606 "UserContextData":{ 6607 "shape":"UserContextDataType", 6608 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 6609 }, 6610 "ClientMetadata":{ 6611 "shape":"ClientMetadataType", 6612 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the RespondToAuthChallenge API action, Amazon Cognito invokes any functions that are assigned to the following triggers: <i>post authentication</i>, <i>pre token generation</i>, <i>define auth challenge</i>, <i>create auth challenge</i>, and <i>verify auth challenge</i>. When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your RespondToAuthChallenge request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 6613 } 6614 }, 6615 "documentation":"<p>The request to respond to an authentication challenge.</p>" 6616 }, 6617 "RespondToAuthChallengeResponse":{ 6618 "type":"structure", 6619 "members":{ 6620 "ChallengeName":{ 6621 "shape":"ChallengeNameType", 6622 "documentation":"<p>The challenge name. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html\">InitiateAuth</a>.</p>" 6623 }, 6624 "Session":{ 6625 "shape":"SessionType", 6626 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service. If the caller must pass another challenge, they return a session with other challenge parameters. This session should be passed as it is to the next <code>RespondToAuthChallenge</code> API call.</p>" 6627 }, 6628 "ChallengeParameters":{ 6629 "shape":"ChallengeParametersType", 6630 "documentation":"<p>The challenge parameters. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html\">InitiateAuth</a>.</p>" 6631 }, 6632 "AuthenticationResult":{ 6633 "shape":"AuthenticationResultType", 6634 "documentation":"<p>The result returned by the server in response to the request to respond to the authentication challenge.</p>" 6635 } 6636 }, 6637 "documentation":"<p>The response to respond to the authentication challenge.</p>" 6638 }, 6639 "RevokeTokenRequest":{ 6640 "type":"structure", 6641 "required":[ 6642 "Token", 6643 "ClientId" 6644 ], 6645 "members":{ 6646 "Token":{ 6647 "shape":"TokenModelType", 6648 "documentation":"<p>The refresh token that you want to revoke.</p>" 6649 }, 6650 "ClientId":{ 6651 "shape":"ClientIdType", 6652 "documentation":"<p>The client ID for the token that you want to revoke.</p>" 6653 }, 6654 "ClientSecret":{ 6655 "shape":"ClientSecretType", 6656 "documentation":"<p>The secret for the client ID. This is required only if the client ID has a secret.</p>" 6657 } 6658 } 6659 }, 6660 "RevokeTokenResponse":{ 6661 "type":"structure", 6662 "members":{ 6663 } 6664 }, 6665 "RiskConfigurationType":{ 6666 "type":"structure", 6667 "members":{ 6668 "UserPoolId":{ 6669 "shape":"UserPoolIdType", 6670 "documentation":"<p>The user pool ID.</p>" 6671 }, 6672 "ClientId":{ 6673 "shape":"ClientIdType", 6674 "documentation":"<p>The app client ID.</p>" 6675 }, 6676 "CompromisedCredentialsRiskConfiguration":{ 6677 "shape":"CompromisedCredentialsRiskConfigurationType", 6678 "documentation":"<p>The compromised credentials risk configuration object, including the <code>EventFilter</code> and the <code>EventAction</code>.</p>" 6679 }, 6680 "AccountTakeoverRiskConfiguration":{ 6681 "shape":"AccountTakeoverRiskConfigurationType", 6682 "documentation":"<p>The account takeover risk configuration object, including the <code>NotifyConfiguration</code> object and <code>Actions</code> to take if there is an account takeover.</p>" 6683 }, 6684 "RiskExceptionConfiguration":{ 6685 "shape":"RiskExceptionConfigurationType", 6686 "documentation":"<p>The configuration to override the risk decision.</p>" 6687 }, 6688 "LastModifiedDate":{ 6689 "shape":"DateType", 6690 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 6691 } 6692 }, 6693 "documentation":"<p>The risk configuration type.</p>" 6694 }, 6695 "RiskDecisionType":{ 6696 "type":"string", 6697 "enum":[ 6698 "NoRisk", 6699 "AccountTakeover", 6700 "Block" 6701 ] 6702 }, 6703 "RiskExceptionConfigurationType":{ 6704 "type":"structure", 6705 "members":{ 6706 "BlockedIPRangeList":{ 6707 "shape":"BlockedIPRangeListType", 6708 "documentation":"<p>Overrides the risk decision to always block the pre-authentication requests. The IP range is in CIDR notation, a compact representation of an IP address and its routing prefix.</p>" 6709 }, 6710 "SkippedIPRangeList":{ 6711 "shape":"SkippedIPRangeListType", 6712 "documentation":"<p>Risk detection isn't performed on the IP addresses in this range list. The IP range is in CIDR notation.</p>" 6713 } 6714 }, 6715 "documentation":"<p>The type of the configuration to override the risk decision.</p>" 6716 }, 6717 "RiskLevelType":{ 6718 "type":"string", 6719 "enum":[ 6720 "Low", 6721 "Medium", 6722 "High" 6723 ] 6724 }, 6725 "S3BucketType":{ 6726 "type":"string", 6727 "max":1024, 6728 "min":3, 6729 "pattern":"^[0-9A-Za-z\\.\\-_]*(?<!\\.)$" 6730 }, 6731 "SESConfigurationSet":{ 6732 "type":"string", 6733 "max":64, 6734 "min":1, 6735 "pattern":"^[a-zA-Z0-9_-]+$" 6736 }, 6737 "SMSMfaSettingsType":{ 6738 "type":"structure", 6739 "members":{ 6740 "Enabled":{ 6741 "shape":"BooleanType", 6742 "documentation":"<p>Specifies whether SMS text message MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.</p>" 6743 }, 6744 "PreferredMfa":{ 6745 "shape":"BooleanType", 6746 "documentation":"<p>Specifies whether SMS is the preferred MFA method.</p>" 6747 } 6748 }, 6749 "documentation":"<p>The type used for enabling SMS multi-factor authentication (MFA) at the user level. Phone numbers don't need to be verified to be used for SMS MFA. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you would like MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool.</p>" 6750 }, 6751 "SchemaAttributeType":{ 6752 "type":"structure", 6753 "members":{ 6754 "Name":{ 6755 "shape":"CustomAttributeNameType", 6756 "documentation":"<p>The name of your user pool attribute. When you create or update a user pool, adding a schema attribute creates a custom or developer-only attribute. When you add an attribute with a <code>Name</code> value of <code>MyAttribute</code>, Amazon Cognito creates the custom attribute <code>custom:MyAttribute</code>. When <code>DeveloperOnlyAttribute</code> is <code>true</code>, Amazon Cognito creates your attribute as <code>dev:MyAttribute</code>. In an operation that describes a user pool, Amazon Cognito returns this value as <code>value</code> for standard attributes, <code>custom:value</code> for custom attributes, and <code>dev:value</code> for developer-only attributes..</p>" 6757 }, 6758 "AttributeDataType":{ 6759 "shape":"AttributeDataType", 6760 "documentation":"<p>The data format of the values for your attribute. When you choose an <code>AttributeDataType</code>, Amazon Cognito validates the input against the data type. A custom attribute value in your user's ID token is always a string, for example <code>\"custom:isMember\" : \"true\"</code> or <code>\"custom:YearsAsMember\" : \"12\"</code>. </p>" 6761 }, 6762 "DeveloperOnlyAttribute":{ 6763 "shape":"BooleanType", 6764 "documentation":"<note> <p>You should use <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UserPoolClientType.html#CognitoUserPools-Type-UserPoolClientType-WriteAttributes\">WriteAttributes</a> in the user pool client to control how attributes can be mutated for new use cases instead of using <code>DeveloperOnlyAttribute</code>.</p> </note> <p>Specifies whether the attribute type is developer only. This attribute can only be modified by an administrator. Users won't be able to modify this attribute using their access token. For example, <code>DeveloperOnlyAttribute</code> can be modified using AdminUpdateUserAttributes but can't be updated using UpdateUserAttributes.</p>", 6765 "box":true 6766 }, 6767 "Mutable":{ 6768 "shape":"BooleanType", 6769 "documentation":"<p>Specifies whether the value of the attribute can be changed.</p> <p>Any user pool attribute whose value you map from an IdP attribute must be mutable, with a parameter value of <code>true</code>. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html\">Specifying Identity Provider Attribute Mappings for Your User Pool</a>.</p>", 6770 "box":true 6771 }, 6772 "Required":{ 6773 "shape":"BooleanType", 6774 "documentation":"<p>Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.</p>", 6775 "box":true 6776 }, 6777 "NumberAttributeConstraints":{ 6778 "shape":"NumberAttributeConstraintsType", 6779 "documentation":"<p>Specifies the constraints for an attribute of the number type.</p>" 6780 }, 6781 "StringAttributeConstraints":{ 6782 "shape":"StringAttributeConstraintsType", 6783 "documentation":"<p>Specifies the constraints for an attribute of the string type.</p>" 6784 } 6785 }, 6786 "documentation":"<p>A list of the user attributes and their properties in your user pool. The attribute schema contains standard attributes, custom attributes with a <code>custom:</code> prefix, and developer attributes with a <code>dev:</code> prefix. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html\">User pool attributes</a>.</p> <p>Developer-only attributes are a legacy feature of user pools, are read-only to all app clients. You can create and update developer-only attributes only with IAM-authenticated API operations. Use app client read/write permissions instead.</p>" 6787 }, 6788 "SchemaAttributesListType":{ 6789 "type":"list", 6790 "member":{"shape":"SchemaAttributeType"}, 6791 "max":50, 6792 "min":1 6793 }, 6794 "ScopeDoesNotExistException":{ 6795 "type":"structure", 6796 "members":{ 6797 "message":{"shape":"MessageType"} 6798 }, 6799 "documentation":"<p>This exception is thrown when the specified scope doesn't exist.</p>", 6800 "exception":true 6801 }, 6802 "ScopeListType":{ 6803 "type":"list", 6804 "member":{"shape":"ScopeType"}, 6805 "max":50 6806 }, 6807 "ScopeType":{ 6808 "type":"string", 6809 "max":256, 6810 "min":1, 6811 "pattern":"[\\x21\\x23-\\x5B\\x5D-\\x7E]+" 6812 }, 6813 "SearchPaginationTokenType":{ 6814 "type":"string", 6815 "min":1, 6816 "pattern":"[\\S]+" 6817 }, 6818 "SearchedAttributeNamesListType":{ 6819 "type":"list", 6820 "member":{"shape":"AttributeNameType"} 6821 }, 6822 "SecretCodeType":{ 6823 "type":"string", 6824 "min":16, 6825 "pattern":"[A-Za-z0-9]+", 6826 "sensitive":true 6827 }, 6828 "SecretHashType":{ 6829 "type":"string", 6830 "max":128, 6831 "min":1, 6832 "pattern":"[\\w+=/]+", 6833 "sensitive":true 6834 }, 6835 "SessionType":{ 6836 "type":"string", 6837 "max":2048, 6838 "min":20, 6839 "sensitive":true 6840 }, 6841 "SetLogDeliveryConfigurationRequest":{ 6842 "type":"structure", 6843 "required":[ 6844 "UserPoolId", 6845 "LogConfigurations" 6846 ], 6847 "members":{ 6848 "UserPoolId":{ 6849 "shape":"UserPoolIdType", 6850 "documentation":"<p>The ID of the user pool where you want to configure detailed activity logging .</p>" 6851 }, 6852 "LogConfigurations":{ 6853 "shape":"LogConfigurationListType", 6854 "documentation":"<p>A collection of all of the detailed activity logging configurations for a user pool.</p>" 6855 } 6856 } 6857 }, 6858 "SetLogDeliveryConfigurationResponse":{ 6859 "type":"structure", 6860 "members":{ 6861 "LogDeliveryConfiguration":{ 6862 "shape":"LogDeliveryConfigurationType", 6863 "documentation":"<p>The detailed activity logging configuration that you applied to the requested user pool.</p>" 6864 } 6865 } 6866 }, 6867 "SetRiskConfigurationRequest":{ 6868 "type":"structure", 6869 "required":["UserPoolId"], 6870 "members":{ 6871 "UserPoolId":{ 6872 "shape":"UserPoolIdType", 6873 "documentation":"<p>The user pool ID. </p>" 6874 }, 6875 "ClientId":{ 6876 "shape":"ClientIdType", 6877 "documentation":"<p>The app client ID. If <code>ClientId</code> is null, then the risk configuration is mapped to <code>userPoolId</code>. When the client ID is null, the same risk configuration is applied to all the clients in the userPool.</p> <p>Otherwise, <code>ClientId</code> is mapped to the client. When the client ID isn't null, the user pool configuration is overridden and the risk configuration for the client is used instead.</p>" 6878 }, 6879 "CompromisedCredentialsRiskConfiguration":{ 6880 "shape":"CompromisedCredentialsRiskConfigurationType", 6881 "documentation":"<p>The compromised credentials risk configuration.</p>" 6882 }, 6883 "AccountTakeoverRiskConfiguration":{ 6884 "shape":"AccountTakeoverRiskConfigurationType", 6885 "documentation":"<p>The account takeover risk configuration.</p>" 6886 }, 6887 "RiskExceptionConfiguration":{ 6888 "shape":"RiskExceptionConfigurationType", 6889 "documentation":"<p>The configuration to override the risk decision.</p>" 6890 } 6891 } 6892 }, 6893 "SetRiskConfigurationResponse":{ 6894 "type":"structure", 6895 "required":["RiskConfiguration"], 6896 "members":{ 6897 "RiskConfiguration":{ 6898 "shape":"RiskConfigurationType", 6899 "documentation":"<p>The risk configuration.</p>" 6900 } 6901 } 6902 }, 6903 "SetUICustomizationRequest":{ 6904 "type":"structure", 6905 "required":["UserPoolId"], 6906 "members":{ 6907 "UserPoolId":{ 6908 "shape":"UserPoolIdType", 6909 "documentation":"<p>The user pool ID for the user pool.</p>" 6910 }, 6911 "ClientId":{ 6912 "shape":"ClientIdType", 6913 "documentation":"<p>The client ID for the client app.</p>" 6914 }, 6915 "CSS":{ 6916 "shape":"CSSType", 6917 "documentation":"<p>The CSS values in the UI customization.</p>" 6918 }, 6919 "ImageFile":{ 6920 "shape":"ImageFileType", 6921 "documentation":"<p>The uploaded logo image for the UI customization.</p>" 6922 } 6923 } 6924 }, 6925 "SetUICustomizationResponse":{ 6926 "type":"structure", 6927 "required":["UICustomization"], 6928 "members":{ 6929 "UICustomization":{ 6930 "shape":"UICustomizationType", 6931 "documentation":"<p>The UI customization information.</p>" 6932 } 6933 } 6934 }, 6935 "SetUserMFAPreferenceRequest":{ 6936 "type":"structure", 6937 "required":["AccessToken"], 6938 "members":{ 6939 "SMSMfaSettings":{ 6940 "shape":"SMSMfaSettingsType", 6941 "documentation":"<p>The SMS text message multi-factor authentication (MFA) settings.</p>" 6942 }, 6943 "SoftwareTokenMfaSettings":{ 6944 "shape":"SoftwareTokenMfaSettingsType", 6945 "documentation":"<p>The time-based one-time password (TOTP) software token MFA settings.</p>" 6946 }, 6947 "AccessToken":{ 6948 "shape":"TokenModelType", 6949 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose MFA preference you want to set.</p>" 6950 } 6951 } 6952 }, 6953 "SetUserMFAPreferenceResponse":{ 6954 "type":"structure", 6955 "members":{ 6956 } 6957 }, 6958 "SetUserPoolMfaConfigRequest":{ 6959 "type":"structure", 6960 "required":["UserPoolId"], 6961 "members":{ 6962 "UserPoolId":{ 6963 "shape":"UserPoolIdType", 6964 "documentation":"<p>The user pool ID.</p>" 6965 }, 6966 "SmsMfaConfiguration":{ 6967 "shape":"SmsMfaConfigType", 6968 "documentation":"<p>The SMS text message MFA configuration.</p>" 6969 }, 6970 "SoftwareTokenMfaConfiguration":{ 6971 "shape":"SoftwareTokenMfaConfigType", 6972 "documentation":"<p>The software token MFA configuration.</p>" 6973 }, 6974 "MfaConfiguration":{ 6975 "shape":"UserPoolMfaType", 6976 "documentation":"<p>The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa.html\">Adding Multi-Factor Authentication (MFA) to a user pool</a>. Valid values include:</p> <ul> <li> <p> <code>OFF</code> MFA won't be used for any users.</p> </li> <li> <p> <code>ON</code> MFA is required for all users to sign in.</p> </li> <li> <p> <code>OPTIONAL</code> MFA will be required only for individual users who have an MFA factor activated.</p> </li> </ul>" 6977 } 6978 } 6979 }, 6980 "SetUserPoolMfaConfigResponse":{ 6981 "type":"structure", 6982 "members":{ 6983 "SmsMfaConfiguration":{ 6984 "shape":"SmsMfaConfigType", 6985 "documentation":"<p>The SMS text message MFA configuration.</p>" 6986 }, 6987 "SoftwareTokenMfaConfiguration":{ 6988 "shape":"SoftwareTokenMfaConfigType", 6989 "documentation":"<p>The software token MFA configuration.</p>" 6990 }, 6991 "MfaConfiguration":{ 6992 "shape":"UserPoolMfaType", 6993 "documentation":"<p>The MFA configuration. Valid values include:</p> <ul> <li> <p> <code>OFF</code> MFA won't be used for any users.</p> </li> <li> <p> <code>ON</code> MFA is required for all users to sign in.</p> </li> <li> <p> <code>OPTIONAL</code> MFA will be required only for individual users who have an MFA factor enabled.</p> </li> </ul>" 6994 } 6995 } 6996 }, 6997 "SetUserSettingsRequest":{ 6998 "type":"structure", 6999 "required":[ 7000 "AccessToken", 7001 "MFAOptions" 7002 ], 7003 "members":{ 7004 "AccessToken":{ 7005 "shape":"TokenModelType", 7006 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.</p>" 7007 }, 7008 "MFAOptions":{ 7009 "shape":"MFAOptionListType", 7010 "documentation":"<p>You can use this parameter only to set an SMS configuration that uses SMS for delivery.</p>" 7011 } 7012 }, 7013 "documentation":"<p>Represents the request to set user settings.</p>" 7014 }, 7015 "SetUserSettingsResponse":{ 7016 "type":"structure", 7017 "members":{ 7018 }, 7019 "documentation":"<p>The response from the server for a set user settings request.</p>" 7020 }, 7021 "SignUpRequest":{ 7022 "type":"structure", 7023 "required":[ 7024 "ClientId", 7025 "Username", 7026 "Password" 7027 ], 7028 "members":{ 7029 "ClientId":{ 7030 "shape":"ClientIdType", 7031 "documentation":"<p>The ID of the client associated with the user pool.</p>" 7032 }, 7033 "SecretHash":{ 7034 "shape":"SecretHashType", 7035 "documentation":"<p>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.</p>" 7036 }, 7037 "Username":{ 7038 "shape":"UsernameType", 7039 "documentation":"<p>The username of the user that you want to sign up. The value of this parameter is typically a username, but can be any alias attribute in your user pool.</p>" 7040 }, 7041 "Password":{ 7042 "shape":"PasswordType", 7043 "documentation":"<p>The password of the user you want to register.</p>" 7044 }, 7045 "UserAttributes":{ 7046 "shape":"AttributeListType", 7047 "documentation":"<p>An array of name-value pairs representing user attributes.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p>" 7048 }, 7049 "ValidationData":{ 7050 "shape":"AttributeListType", 7051 "documentation":"<p>Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.</p> <p>Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.</p> <p>For more information about the pre sign-up Lambda trigger, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html\">Pre sign-up Lambda trigger</a>.</p>" 7052 }, 7053 "AnalyticsMetadata":{ 7054 "shape":"AnalyticsMetadataType", 7055 "documentation":"<p>The Amazon Pinpoint analytics metadata that contributes to your metrics for <code>SignUp</code> calls.</p>" 7056 }, 7057 "UserContextData":{ 7058 "shape":"UserContextDataType", 7059 "documentation":"<p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.</p>" 7060 }, 7061 "ClientMetadata":{ 7062 "shape":"ClientMetadataType", 7063 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.</p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the SignUp API action, Amazon Cognito invokes any functions that are assigned to the following triggers: <i>pre sign-up</i>, <i>custom message</i>, and <i>post confirmation</i>. When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your SignUp request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 7064 } 7065 }, 7066 "documentation":"<p>Represents the request to register a user.</p>" 7067 }, 7068 "SignUpResponse":{ 7069 "type":"structure", 7070 "required":[ 7071 "UserConfirmed", 7072 "UserSub" 7073 ], 7074 "members":{ 7075 "UserConfirmed":{ 7076 "shape":"BooleanType", 7077 "documentation":"<p>A response from the server indicating that a user registration has been confirmed.</p>" 7078 }, 7079 "CodeDeliveryDetails":{ 7080 "shape":"CodeDeliveryDetailsType", 7081 "documentation":"<p>The code delivery details returned by the server response to the user registration request.</p>" 7082 }, 7083 "UserSub":{ 7084 "shape":"StringType", 7085 "documentation":"<p>The UUID of the authenticated user. This isn't the same as <code>username</code>.</p>" 7086 } 7087 }, 7088 "documentation":"<p>The response from the server for a registration request.</p>" 7089 }, 7090 "SkippedIPRangeListType":{ 7091 "type":"list", 7092 "member":{"shape":"StringType"}, 7093 "max":200 7094 }, 7095 "SmsConfigurationType":{ 7096 "type":"structure", 7097 "required":["SnsCallerArn"], 7098 "members":{ 7099 "SnsCallerArn":{ 7100 "shape":"ArnType", 7101 "documentation":"<p>The Amazon Resource Name (ARN) of the Amazon SNS caller. This is the ARN of the IAM role in your Amazon Web Services account that Amazon Cognito will use to send SMS messages. SMS messages are subject to a <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html\">spending limit</a>. </p>" 7102 }, 7103 "ExternalId":{ 7104 "shape":"StringType", 7105 "documentation":"<p>The external ID provides additional security for your IAM role. You can use an <code>ExternalId</code> with the IAM role that you use with Amazon SNS to send SMS messages for your user pool. If you provide an <code>ExternalId</code>, your Amazon Cognito user pool includes it in the request to assume your IAM role. You can configure the role trust policy to require that Amazon Cognito, and any principal, provide the <code>ExternalID</code>. If you use the Amazon Cognito Management Console to create a role for SMS multi-factor authentication (MFA), Amazon Cognito creates a role with the required permissions and a trust policy that demonstrates use of the <code>ExternalId</code>.</p> <p>For more information about the <code>ExternalId</code> of a role, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html\">How to use an external ID when granting access to your Amazon Web Services resources to a third party</a> </p>" 7106 }, 7107 "SnsRegion":{ 7108 "shape":"RegionCodeType", 7109 "documentation":"<p>The Amazon Web Services Region to use with Amazon SNS integration. You can choose the same Region as your user pool, or a supported <b>Legacy Amazon SNS alternate Region</b>. </p> <p> Amazon Cognito resources in the Asia Pacific (Seoul) Amazon Web Services Region must use your Amazon SNS configuration in the Asia Pacific (Tokyo) Region. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html\">SMS message settings for Amazon Cognito user pools</a>.</p>" 7110 } 7111 }, 7112 "documentation":"<p>The SMS configuration type is the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account.</p>" 7113 }, 7114 "SmsMfaConfigType":{ 7115 "type":"structure", 7116 "members":{ 7117 "SmsAuthenticationMessage":{ 7118 "shape":"SmsVerificationMessageType", 7119 "documentation":"<p>The SMS authentication message that will be sent to users with the code they must sign in. The message must contain the ‘{####}’ placeholder, which is replaced with the code. If the message isn't included, and default message will be used.</p>" 7120 }, 7121 "SmsConfiguration":{ 7122 "shape":"SmsConfigurationType", 7123 "documentation":"<p>The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To request Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role that you provide for your Amazon Web Services account.</p>" 7124 } 7125 }, 7126 "documentation":"<p>The SMS text message multi-factor authentication (MFA) configuration type.</p>" 7127 }, 7128 "SmsVerificationMessageType":{ 7129 "type":"string", 7130 "max":140, 7131 "min":6, 7132 "pattern":".*\\{####\\}.*" 7133 }, 7134 "SoftwareTokenMFANotFoundException":{ 7135 "type":"structure", 7136 "members":{ 7137 "message":{"shape":"MessageType"} 7138 }, 7139 "documentation":"<p>This exception is thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool.</p>", 7140 "exception":true 7141 }, 7142 "SoftwareTokenMFAUserCodeType":{ 7143 "type":"string", 7144 "max":6, 7145 "min":6, 7146 "pattern":"[0-9]+", 7147 "sensitive":true 7148 }, 7149 "SoftwareTokenMfaConfigType":{ 7150 "type":"structure", 7151 "members":{ 7152 "Enabled":{ 7153 "shape":"BooleanType", 7154 "documentation":"<p>Specifies whether software token MFA is activated.</p>" 7155 } 7156 }, 7157 "documentation":"<p>The type used for enabling software token MFA at the user pool level.</p>" 7158 }, 7159 "SoftwareTokenMfaSettingsType":{ 7160 "type":"structure", 7161 "members":{ 7162 "Enabled":{ 7163 "shape":"BooleanType", 7164 "documentation":"<p>Specifies whether software token MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.</p>" 7165 }, 7166 "PreferredMfa":{ 7167 "shape":"BooleanType", 7168 "documentation":"<p>Specifies whether software token MFA is the preferred MFA method.</p>" 7169 } 7170 }, 7171 "documentation":"<p>The type used for enabling software token MFA at the user level. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool.</p>" 7172 }, 7173 "StartUserImportJobRequest":{ 7174 "type":"structure", 7175 "required":[ 7176 "UserPoolId", 7177 "JobId" 7178 ], 7179 "members":{ 7180 "UserPoolId":{ 7181 "shape":"UserPoolIdType", 7182 "documentation":"<p>The user pool ID for the user pool that the users are being imported into.</p>" 7183 }, 7184 "JobId":{ 7185 "shape":"UserImportJobIdType", 7186 "documentation":"<p>The job ID for the user import job.</p>" 7187 } 7188 }, 7189 "documentation":"<p>Represents the request to start the user import job.</p>" 7190 }, 7191 "StartUserImportJobResponse":{ 7192 "type":"structure", 7193 "members":{ 7194 "UserImportJob":{ 7195 "shape":"UserImportJobType", 7196 "documentation":"<p>The job object that represents the user import job.</p>" 7197 } 7198 }, 7199 "documentation":"<p>Represents the response from the server to the request to start the user import job.</p>" 7200 }, 7201 "StatusType":{ 7202 "type":"string", 7203 "enum":[ 7204 "Enabled", 7205 "Disabled" 7206 ] 7207 }, 7208 "StopUserImportJobRequest":{ 7209 "type":"structure", 7210 "required":[ 7211 "UserPoolId", 7212 "JobId" 7213 ], 7214 "members":{ 7215 "UserPoolId":{ 7216 "shape":"UserPoolIdType", 7217 "documentation":"<p>The user pool ID for the user pool that the users are being imported into.</p>" 7218 }, 7219 "JobId":{ 7220 "shape":"UserImportJobIdType", 7221 "documentation":"<p>The job ID for the user import job.</p>" 7222 } 7223 }, 7224 "documentation":"<p>Represents the request to stop the user import job.</p>" 7225 }, 7226 "StopUserImportJobResponse":{ 7227 "type":"structure", 7228 "members":{ 7229 "UserImportJob":{ 7230 "shape":"UserImportJobType", 7231 "documentation":"<p>The job object that represents the user import job.</p>" 7232 } 7233 }, 7234 "documentation":"<p>Represents the response from the server to the request to stop the user import job.</p>" 7235 }, 7236 "StringAttributeConstraintsType":{ 7237 "type":"structure", 7238 "members":{ 7239 "MinLength":{ 7240 "shape":"StringType", 7241 "documentation":"<p>The minimum length.</p>" 7242 }, 7243 "MaxLength":{ 7244 "shape":"StringType", 7245 "documentation":"<p>The maximum length.</p>" 7246 } 7247 }, 7248 "documentation":"<p>The constraints associated with a string attribute.</p>" 7249 }, 7250 "StringType":{ 7251 "type":"string", 7252 "max":131072, 7253 "min":0 7254 }, 7255 "SupportedIdentityProvidersListType":{ 7256 "type":"list", 7257 "member":{"shape":"ProviderNameType"} 7258 }, 7259 "TagKeysType":{ 7260 "type":"string", 7261 "max":128, 7262 "min":1 7263 }, 7264 "TagResourceRequest":{ 7265 "type":"structure", 7266 "required":[ 7267 "ResourceArn", 7268 "Tags" 7269 ], 7270 "members":{ 7271 "ResourceArn":{ 7272 "shape":"ArnType", 7273 "documentation":"<p>The Amazon Resource Name (ARN) of the user pool to assign the tags to.</p>" 7274 }, 7275 "Tags":{ 7276 "shape":"UserPoolTagsType", 7277 "documentation":"<p>The tags to assign to the user pool.</p>" 7278 } 7279 } 7280 }, 7281 "TagResourceResponse":{ 7282 "type":"structure", 7283 "members":{ 7284 } 7285 }, 7286 "TagValueType":{ 7287 "type":"string", 7288 "max":256, 7289 "min":0 7290 }, 7291 "TemporaryPasswordValidityDaysType":{ 7292 "type":"integer", 7293 "max":365, 7294 "min":0 7295 }, 7296 "TimeUnitsType":{ 7297 "type":"string", 7298 "enum":[ 7299 "seconds", 7300 "minutes", 7301 "hours", 7302 "days" 7303 ] 7304 }, 7305 "TokenModelType":{ 7306 "type":"string", 7307 "pattern":"[A-Za-z0-9-_=.]+", 7308 "sensitive":true 7309 }, 7310 "TokenValidityUnitsType":{ 7311 "type":"structure", 7312 "members":{ 7313 "AccessToken":{ 7314 "shape":"TimeUnitsType", 7315 "documentation":"<p> A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code> for the value that you set in the <code>AccessTokenValidity</code> parameter. The default <code>AccessTokenValidity</code> time unit is hours. <code>AccessTokenValidity</code> duration can range from five minutes to one day.</p>" 7316 }, 7317 "IdToken":{ 7318 "shape":"TimeUnitsType", 7319 "documentation":"<p>A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code> for the value that you set in the <code>IdTokenValidity</code> parameter. The default <code>IdTokenValidity</code> time unit is hours. <code>IdTokenValidity</code> duration can range from five minutes to one day.</p>" 7320 }, 7321 "RefreshToken":{ 7322 "shape":"TimeUnitsType", 7323 "documentation":"<p>A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code> for the value that you set in the <code>RefreshTokenValidity</code> parameter. The default <code>RefreshTokenValidity</code> time unit is days. <code>RefreshTokenValidity</code> duration can range from 60 minutes to 10 years.</p>" 7324 } 7325 }, 7326 "documentation":"<p>The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.</p>" 7327 }, 7328 "TooManyFailedAttemptsException":{ 7329 "type":"structure", 7330 "members":{ 7331 "message":{ 7332 "shape":"MessageType", 7333 "documentation":"<p>The message returned when Amazon Cognito returns a <code>TooManyFailedAttempts</code> exception.</p>" 7334 } 7335 }, 7336 "documentation":"<p>This exception is thrown when the user has made too many failed attempts for a given action, such as sign-in.</p>", 7337 "exception":true 7338 }, 7339 "TooManyRequestsException":{ 7340 "type":"structure", 7341 "members":{ 7342 "message":{ 7343 "shape":"MessageType", 7344 "documentation":"<p>The message returned when the Amazon Cognito service returns a too many requests exception.</p>" 7345 } 7346 }, 7347 "documentation":"<p>This exception is thrown when the user has made too many requests for a given operation.</p>", 7348 "exception":true 7349 }, 7350 "UICustomizationType":{ 7351 "type":"structure", 7352 "members":{ 7353 "UserPoolId":{ 7354 "shape":"UserPoolIdType", 7355 "documentation":"<p>The user pool ID for the user pool.</p>" 7356 }, 7357 "ClientId":{ 7358 "shape":"ClientIdType", 7359 "documentation":"<p>The client ID for the client app.</p>" 7360 }, 7361 "ImageUrl":{ 7362 "shape":"ImageUrlType", 7363 "documentation":"<p>The logo image for the UI customization.</p>" 7364 }, 7365 "CSS":{ 7366 "shape":"CSSType", 7367 "documentation":"<p>The CSS values in the UI customization.</p>" 7368 }, 7369 "CSSVersion":{ 7370 "shape":"CSSVersionType", 7371 "documentation":"<p>The CSS version number.</p>" 7372 }, 7373 "LastModifiedDate":{ 7374 "shape":"DateType", 7375 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 7376 }, 7377 "CreationDate":{ 7378 "shape":"DateType", 7379 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 7380 } 7381 }, 7382 "documentation":"<p>A container for the UI customization information for a user pool's built-in app UI.</p>" 7383 }, 7384 "UnauthorizedException":{ 7385 "type":"structure", 7386 "members":{ 7387 "message":{"shape":"MessageType"} 7388 }, 7389 "documentation":"<p>Exception that is thrown when the request isn't authorized. This can happen due to an invalid access token in the request.</p>", 7390 "exception":true 7391 }, 7392 "UnexpectedLambdaException":{ 7393 "type":"structure", 7394 "members":{ 7395 "message":{ 7396 "shape":"MessageType", 7397 "documentation":"<p>The message returned when Amazon Cognito returns an unexpected Lambda exception.</p>" 7398 } 7399 }, 7400 "documentation":"<p>This exception is thrown when Amazon Cognito encounters an unexpected exception with Lambda.</p>", 7401 "exception":true 7402 }, 7403 "UnsupportedIdentityProviderException":{ 7404 "type":"structure", 7405 "members":{ 7406 "message":{"shape":"MessageType"} 7407 }, 7408 "documentation":"<p>This exception is thrown when the specified identifier isn't supported.</p>", 7409 "exception":true 7410 }, 7411 "UnsupportedOperationException":{ 7412 "type":"structure", 7413 "members":{ 7414 "message":{"shape":"MessageType"} 7415 }, 7416 "documentation":"<p>Exception that is thrown when you attempt to perform an operation that isn't enabled for the user pool client.</p>", 7417 "exception":true 7418 }, 7419 "UnsupportedTokenTypeException":{ 7420 "type":"structure", 7421 "members":{ 7422 "message":{"shape":"MessageType"} 7423 }, 7424 "documentation":"<p>Exception that is thrown when an unsupported token is passed to an operation.</p>", 7425 "exception":true 7426 }, 7427 "UnsupportedUserStateException":{ 7428 "type":"structure", 7429 "members":{ 7430 "message":{ 7431 "shape":"MessageType", 7432 "documentation":"<p>The message returned when the user is in an unsupported state.</p>" 7433 } 7434 }, 7435 "documentation":"<p>The request failed because the user is in an unsupported state.</p>", 7436 "exception":true 7437 }, 7438 "UntagResourceRequest":{ 7439 "type":"structure", 7440 "required":[ 7441 "ResourceArn", 7442 "TagKeys" 7443 ], 7444 "members":{ 7445 "ResourceArn":{ 7446 "shape":"ArnType", 7447 "documentation":"<p>The Amazon Resource Name (ARN) of the user pool that the tags are assigned to.</p>" 7448 }, 7449 "TagKeys":{ 7450 "shape":"UserPoolTagsListType", 7451 "documentation":"<p>The keys of the tags to remove from the user pool.</p>" 7452 } 7453 } 7454 }, 7455 "UntagResourceResponse":{ 7456 "type":"structure", 7457 "members":{ 7458 } 7459 }, 7460 "UpdateAuthEventFeedbackRequest":{ 7461 "type":"structure", 7462 "required":[ 7463 "UserPoolId", 7464 "Username", 7465 "EventId", 7466 "FeedbackToken", 7467 "FeedbackValue" 7468 ], 7469 "members":{ 7470 "UserPoolId":{ 7471 "shape":"UserPoolIdType", 7472 "documentation":"<p>The user pool ID.</p>" 7473 }, 7474 "Username":{ 7475 "shape":"UsernameType", 7476 "documentation":"<p>The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in your user pool, you can also use their <code>sub</code> in this request.</p>" 7477 }, 7478 "EventId":{ 7479 "shape":"EventIdType", 7480 "documentation":"<p>The event ID.</p>" 7481 }, 7482 "FeedbackToken":{ 7483 "shape":"TokenModelType", 7484 "documentation":"<p>The feedback token.</p>" 7485 }, 7486 "FeedbackValue":{ 7487 "shape":"FeedbackValueType", 7488 "documentation":"<p>The authentication event feedback value. When you provide a <code>FeedbackValue</code> value of <code>valid</code>, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a <code>FeedbackValue</code> value of <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level.</p>" 7489 } 7490 } 7491 }, 7492 "UpdateAuthEventFeedbackResponse":{ 7493 "type":"structure", 7494 "members":{ 7495 } 7496 }, 7497 "UpdateDeviceStatusRequest":{ 7498 "type":"structure", 7499 "required":[ 7500 "AccessToken", 7501 "DeviceKey" 7502 ], 7503 "members":{ 7504 "AccessToken":{ 7505 "shape":"TokenModelType", 7506 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose device status you want to update.</p>" 7507 }, 7508 "DeviceKey":{ 7509 "shape":"DeviceKeyType", 7510 "documentation":"<p>The device key.</p>" 7511 }, 7512 "DeviceRememberedStatus":{ 7513 "shape":"DeviceRememberedStatusType", 7514 "documentation":"<p>The status of whether a device is remembered.</p>" 7515 } 7516 }, 7517 "documentation":"<p>Represents the request to update the device status.</p>" 7518 }, 7519 "UpdateDeviceStatusResponse":{ 7520 "type":"structure", 7521 "members":{ 7522 }, 7523 "documentation":"<p>The response to the request to update the device status.</p>" 7524 }, 7525 "UpdateGroupRequest":{ 7526 "type":"structure", 7527 "required":[ 7528 "GroupName", 7529 "UserPoolId" 7530 ], 7531 "members":{ 7532 "GroupName":{ 7533 "shape":"GroupNameType", 7534 "documentation":"<p>The name of the group.</p>" 7535 }, 7536 "UserPoolId":{ 7537 "shape":"UserPoolIdType", 7538 "documentation":"<p>The user pool ID for the user pool.</p>" 7539 }, 7540 "Description":{ 7541 "shape":"DescriptionType", 7542 "documentation":"<p>A string containing the new description of the group.</p>" 7543 }, 7544 "RoleArn":{ 7545 "shape":"ArnType", 7546 "documentation":"<p>The new role Amazon Resource Name (ARN) for the group. This is used for setting the <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the token.</p>" 7547 }, 7548 "Precedence":{ 7549 "shape":"PrecedenceType", 7550 "documentation":"<p>The new precedence value for the group. For more information about this parameter, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html\">CreateGroup</a>.</p>" 7551 } 7552 } 7553 }, 7554 "UpdateGroupResponse":{ 7555 "type":"structure", 7556 "members":{ 7557 "Group":{ 7558 "shape":"GroupType", 7559 "documentation":"<p>The group object for the group.</p>" 7560 } 7561 } 7562 }, 7563 "UpdateIdentityProviderRequest":{ 7564 "type":"structure", 7565 "required":[ 7566 "UserPoolId", 7567 "ProviderName" 7568 ], 7569 "members":{ 7570 "UserPoolId":{ 7571 "shape":"UserPoolIdType", 7572 "documentation":"<p>The user pool ID.</p>" 7573 }, 7574 "ProviderName":{ 7575 "shape":"ProviderNameType", 7576 "documentation":"<p>The IdP name.</p>" 7577 }, 7578 "ProviderDetails":{ 7579 "shape":"ProviderDetailsType", 7580 "documentation":"<p>The scopes, URLs, and identifiers for your external identity provider. The following examples describe the provider detail keys for each IdP type. These values and their schema are subject to change. Social IdP <code>authorize_scopes</code> values must match the values listed here.</p> <dl> <dt>OpenID Connect (OIDC)</dt> <dd> <p>Amazon Cognito accepts the following elements when it can't discover endpoint URLs from <code>oidc_issuer</code>: <code>attributes_url</code>, <code>authorize_url</code>, <code>jwks_uri</code>, <code>token_url</code>.</p> <p>Create or update request: <code>\"ProviderDetails\": { \"attributes_request_method\": \"GET\", \"attributes_url\": \"https://auth.example.com/userInfo\", \"authorize_scopes\": \"openid profile email\", \"authorize_url\": \"https://auth.example.com/authorize\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"jwks_uri\": \"https://auth.example.com/.well-known/jwks.json\", \"oidc_issuer\": \"https://auth.example.com\", \"token_url\": \"https://example.com/token\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_request_method\": \"GET\", \"attributes_url\": \"https://auth.example.com/userInfo\", \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"openid profile email\", \"authorize_url\": \"https://auth.example.com/authorize\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"jwks_uri\": \"https://auth.example.com/.well-known/jwks.json\", \"oidc_issuer\": \"https://auth.example.com\", \"token_url\": \"https://example.com/token\" }</code> </p> </dd> <dt>SAML</dt> <dd> <p>Create or update request with Metadata URL: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"MetadataURL\": \"https://auth.example.com/sso/saml/metadata\", \"RequestSigningAlgorithm\": \"rsa-sha256\" }</code> </p> <p>Create or update request with Metadata file: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"MetadataFile\": \"[metadata XML]\", \"RequestSigningAlgorithm\": \"rsa-sha256\" }</code> </p> <p>The value of <code>MetadataFile</code> must be the plaintext metadata document with all quote (\") characters escaped by backslashes.</p> <p>Describe response: <code>\"ProviderDetails\": { \"IDPInit\": \"true\", \"IDPSignout\": \"true\", \"EncryptedResponses\" : \"true\", \"ActiveEncryptionCertificate\": \"[certificate]\", \"MetadataURL\": \"https://auth.example.com/sso/saml/metadata\", \"RequestSigningAlgorithm\": \"rsa-sha256\", \"SLORedirectBindingURI\": \"https://auth.example.com/slo/saml\", \"SSORedirectBindingURI\": \"https://auth.example.com/sso/saml\" }</code> </p> </dd> <dt>LoginWithAmazon</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"profile postal_code\", \"client_id\": \"amzn1.application-oa2-client.1example23456789\", \"client_secret\": \"provider-app-client-secret\"</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url\": \"https://api.amazon.com/user/profile\", \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"profile postal_code\", \"authorize_url\": \"https://www.amazon.com/ap/oa\", \"client_id\": \"amzn1.application-oa2-client.1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"POST\", \"token_url\": \"https://api.amazon.com/auth/o2/token\" }</code> </p> </dd> <dt>Google</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"email profile openid\", \"client_id\": \"1example23456789.apps.googleusercontent.com\", \"client_secret\": \"provider-app-client-secret\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url\": \"https://people.googleapis.com/v1/people/me?personFields=\", \"attributes_url_add_attributes\": \"true\", \"authorize_scopes\": \"email profile openid\", \"authorize_url\": \"https://accounts.google.com/o/oauth2/v2/auth\", \"client_id\": \"1example23456789.apps.googleusercontent.com\", \"client_secret\": \"provider-app-client-secret\", \"oidc_issuer\": \"https://accounts.google.com\", \"token_request_method\": \"POST\", \"token_url\": \"https://www.googleapis.com/oauth2/v4/token\" }</code> </p> </dd> <dt>SignInWithApple</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"authorize_scopes\": \"email name\", \"client_id\": \"com.example.cognito\", \"private_key\": \"1EXAMPLE\", \"key_id\": \"2EXAMPLE\", \"team_id\": \"3EXAMPLE\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"attributes_url_add_attributes\": \"false\", \"authorize_scopes\": \"email name\", \"authorize_url\": \"https://appleid.apple.com/auth/authorize\", \"client_id\": \"com.example.cognito\", \"key_id\": \"1EXAMPLE\", \"oidc_issuer\": \"https://appleid.apple.com\", \"team_id\": \"2EXAMPLE\", \"token_request_method\": \"POST\", \"token_url\": \"https://appleid.apple.com/auth/token\" }</code> </p> </dd> <dt>Facebook</dt> <dd> <p>Create or update request: <code>\"ProviderDetails\": { \"api_version\": \"v17.0\", \"authorize_scopes\": \"public_profile, email\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\" }</code> </p> <p>Describe response: <code>\"ProviderDetails\": { \"api_version\": \"v17.0\", \"attributes_url\": \"https://graph.facebook.com/v17.0/me?fields=\", \"attributes_url_add_attributes\": \"true\", \"authorize_scopes\": \"public_profile, email\", \"authorize_url\": \"https://www.facebook.com/v17.0/dialog/oauth\", \"client_id\": \"1example23456789\", \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"GET\", \"token_url\": \"https://graph.facebook.com/v17.0/oauth/access_token\" }</code> </p> </dd> </dl>" 7581 }, 7582 "AttributeMapping":{ 7583 "shape":"AttributeMappingType", 7584 "documentation":"<p>The IdP attribute mapping to be changed.</p>" 7585 }, 7586 "IdpIdentifiers":{ 7587 "shape":"IdpIdentifiersListType", 7588 "documentation":"<p>A list of IdP identifiers.</p>" 7589 } 7590 } 7591 }, 7592 "UpdateIdentityProviderResponse":{ 7593 "type":"structure", 7594 "required":["IdentityProvider"], 7595 "members":{ 7596 "IdentityProvider":{ 7597 "shape":"IdentityProviderType", 7598 "documentation":"<p>The identity provider details.</p>" 7599 } 7600 } 7601 }, 7602 "UpdateResourceServerRequest":{ 7603 "type":"structure", 7604 "required":[ 7605 "UserPoolId", 7606 "Identifier", 7607 "Name" 7608 ], 7609 "members":{ 7610 "UserPoolId":{ 7611 "shape":"UserPoolIdType", 7612 "documentation":"<p>The user pool ID for the user pool.</p>" 7613 }, 7614 "Identifier":{ 7615 "shape":"ResourceServerIdentifierType", 7616 "documentation":"<p>The identifier for the resource server.</p>" 7617 }, 7618 "Name":{ 7619 "shape":"ResourceServerNameType", 7620 "documentation":"<p>The name of the resource server.</p>" 7621 }, 7622 "Scopes":{ 7623 "shape":"ResourceServerScopeListType", 7624 "documentation":"<p>The scope values to be set for the resource server.</p>" 7625 } 7626 } 7627 }, 7628 "UpdateResourceServerResponse":{ 7629 "type":"structure", 7630 "required":["ResourceServer"], 7631 "members":{ 7632 "ResourceServer":{ 7633 "shape":"ResourceServerType", 7634 "documentation":"<p>The resource server.</p>" 7635 } 7636 } 7637 }, 7638 "UpdateUserAttributesRequest":{ 7639 "type":"structure", 7640 "required":[ 7641 "UserAttributes", 7642 "AccessToken" 7643 ], 7644 "members":{ 7645 "UserAttributes":{ 7646 "shape":"AttributeListType", 7647 "documentation":"<p>An array of name-value pairs representing user attributes.</p> <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p> <p>If you have set an attribute to require verification before Amazon Cognito updates its value, this request doesn’t immediately update the value of that attribute. After your user receives and responds to a verification message to verify the new value, Amazon Cognito updates the attribute value. Your user can sign in and receive messages with the original attribute value until they verify the new value.</p>" 7648 }, 7649 "AccessToken":{ 7650 "shape":"TokenModelType", 7651 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose user attributes you want to update.</p>" 7652 }, 7653 "ClientMetadata":{ 7654 "shape":"ClientMetadataType", 7655 "documentation":"<p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action initiates. </p> <p>You create custom workflows by assigning Lambda functions to user pool triggers. When you use the UpdateUserAttributes API action, Amazon Cognito invokes the function that is assigned to the <i>custom message</i> trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a <code>clientMetadata</code> attribute, which provides the data that you assigned to the ClientMetadata parameter in your UpdateUserAttributes request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for your specific needs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html\"> Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <note> <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p> <ul> <li> <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p> </li> <li> <p>Validate the ClientMetadata value.</p> </li> <li> <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p> </li> </ul> </note>" 7656 } 7657 }, 7658 "documentation":"<p>Represents the request to update user attributes.</p>" 7659 }, 7660 "UpdateUserAttributesResponse":{ 7661 "type":"structure", 7662 "members":{ 7663 "CodeDeliveryDetailsList":{ 7664 "shape":"CodeDeliveryDetailsListType", 7665 "documentation":"<p>The code delivery details list from the server for the request to update user attributes.</p>" 7666 } 7667 }, 7668 "documentation":"<p>Represents the response from the server for the request to update user attributes.</p>" 7669 }, 7670 "UpdateUserPoolClientRequest":{ 7671 "type":"structure", 7672 "required":[ 7673 "UserPoolId", 7674 "ClientId" 7675 ], 7676 "members":{ 7677 "UserPoolId":{ 7678 "shape":"UserPoolIdType", 7679 "documentation":"<p>The user pool ID for the user pool where you want to update the user pool client.</p>" 7680 }, 7681 "ClientId":{ 7682 "shape":"ClientIdType", 7683 "documentation":"<p>The ID of the client associated with the user pool.</p>" 7684 }, 7685 "ClientName":{ 7686 "shape":"ClientNameType", 7687 "documentation":"<p>The client name from the update user pool client request.</p>" 7688 }, 7689 "RefreshTokenValidity":{ 7690 "shape":"RefreshTokenValidityType", 7691 "documentation":"<p>The refresh token time limit. After this limit expires, your user can't use their refresh token. To specify the time unit for <code>RefreshTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>RefreshTokenValidity</code> as <code>10</code> and <code>TokenValidityUnits</code> as <code>days</code>, your user can refresh their session and retrieve new access and ID tokens for 10 days.</p> <p>The default time unit for <code>RefreshTokenValidity</code> in an API request is days. You can't set <code>RefreshTokenValidity</code> to 0. If you do, Amazon Cognito overrides the value with the default value of 30 days. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your refresh tokens are valid for 30 days.</p>" 7692 }, 7693 "AccessTokenValidity":{ 7694 "shape":"AccessTokenValidityType", 7695 "documentation":"<p>The access token time limit. After this limit expires, your user can't use their access token. To specify the time unit for <code>AccessTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>AccessTokenValidity</code> to <code>10</code> and <code>TokenValidityUnits</code> to <code>hours</code>, your user can authorize access with their access token for 10 hours.</p> <p>The default time unit for <code>AccessTokenValidity</code> in an API request is hours. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your access tokens are valid for one hour.</p>" 7696 }, 7697 "IdTokenValidity":{ 7698 "shape":"IdTokenValidityType", 7699 "documentation":"<p>The ID token time limit. After this limit expires, your user can't use their ID token. To specify the time unit for <code>IdTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>IdTokenValidity</code> as <code>10</code> and <code>TokenValidityUnits</code> as <code>hours</code>, your user can authenticate their session with their ID token for 10 hours.</p> <p>The default time unit for <code>IdTokenValidity</code> in an API request is hours. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your ID tokens are valid for one hour.</p>" 7700 }, 7701 "TokenValidityUnits":{ 7702 "shape":"TokenValidityUnitsType", 7703 "documentation":"<p>The time units you use when you set the duration of ID, access, and refresh tokens. The default unit for RefreshToken is days, and the default for ID and access tokens is hours.</p>" 7704 }, 7705 "ReadAttributes":{ 7706 "shape":"ClientPermissionListType", 7707 "documentation":"<p>The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUser.html\">GetUser</a> API request to retrieve and display your user's profile data.</p> <p>When you don't specify the <code>ReadAttributes</code> for your app client, your app can read the values of <code>email_verified</code>, <code>phone_number_verified</code>, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, <code>ReadAttributes</code> doesn't return any information. Amazon Cognito only populates <code>ReadAttributes</code> in the API response if you have specified your own custom set of read attributes.</p>" 7708 }, 7709 "WriteAttributes":{ 7710 "shape":"ClientPermissionListType", 7711 "documentation":"<p>The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html\">UpdateUserAttributes</a> API request and sets <code>family_name</code> to the new value. </p> <p>When you don't specify the <code>WriteAttributes</code> for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, <code>WriteAttributes</code> doesn't return any information. Amazon Cognito only populates <code>WriteAttributes</code> in the API response if you have specified your own custom set of write attributes.</p> <p>If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html\">Specifying IdP Attribute Mappings for Your user pool</a>.</p>" 7712 }, 7713 "ExplicitAuthFlows":{ 7714 "shape":"ExplicitAuthFlowsListType", 7715 "documentation":"<p>The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and password, or a custom authentication process that you define with Lambda functions.</p> <note> <p>If you don't specify a value for <code>ExplicitAuthFlows</code>, your user client supports <code>ALLOW_REFRESH_TOKEN_AUTH</code>, <code>ALLOW_USER_SRP_AUTH</code>, and <code>ALLOW_CUSTOM_AUTH</code>.</p> </note> <p>Valid values include:</p> <ul> <li> <p> <code>ALLOW_ADMIN_USER_PASSWORD_AUTH</code>: Enable admin based user password authentication flow <code>ADMIN_USER_PASSWORD_AUTH</code>. This setting replaces the <code>ADMIN_NO_SRP_AUTH</code> setting. With this authentication flow, your app passes a user name and password to Amazon Cognito in the request, instead of using the Secure Remote Password (SRP) protocol to securely transmit the password.</p> </li> <li> <p> <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based authentication.</p> </li> <li> <p> <code>ALLOW_USER_PASSWORD_AUTH</code>: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP protocol to verify passwords.</p> </li> <li> <p> <code>ALLOW_USER_SRP_AUTH</code>: Enable SRP-based authentication.</p> </li> <li> <p> <code>ALLOW_REFRESH_TOKEN_AUTH</code>: Enable authflow to refresh tokens.</p> </li> </ul> <p>In some environments, you will see the values <code>ADMIN_NO_SRP_AUTH</code>, <code>CUSTOM_AUTH_FLOW_ONLY</code>, or <code>USER_PASSWORD_AUTH</code>. You can't assign these legacy <code>ExplicitAuthFlows</code> values to user pool clients at the same time as values that begin with <code>ALLOW_</code>, like <code>ALLOW_USER_SRP_AUTH</code>.</p>" 7716 }, 7717 "SupportedIdentityProviders":{ 7718 "shape":"SupportedIdentityProvidersListType", 7719 "documentation":"<p>A list of provider names for the IdPs that this client supports. The following are supported: <code>COGNITO</code>, <code>Facebook</code>, <code>Google</code>, <code>SignInWithApple</code>, <code>LoginWithAmazon</code>, and the names of your own SAML and OIDC providers.</p>" 7720 }, 7721 "CallbackURLs":{ 7722 "shape":"CallbackURLsListType", 7723 "documentation":"<p>A list of allowed redirect (callback) URLs for the IdPs.</p> <p>A redirect URI must:</p> <ul> <li> <p>Be an absolute URI.</p> </li> <li> <p>Be registered with the authorization server.</p> </li> <li> <p>Not include a fragment component.</p> </li> </ul> <p>See <a href=\"https://tools.ietf.org/html/rfc6749#section-3.1.2\">OAuth 2.0 - Redirection Endpoint</a>.</p> <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p> <p>App callback URLs such as <code>myapp://example</code> are also supported.</p>" 7724 }, 7725 "LogoutURLs":{ 7726 "shape":"LogoutURLsListType", 7727 "documentation":"<p>A list of allowed logout URLs for the IdPs.</p>" 7728 }, 7729 "DefaultRedirectURI":{ 7730 "shape":"RedirectUrlType", 7731 "documentation":"<p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p> <p>A redirect URI must:</p> <ul> <li> <p>Be an absolute URI.</p> </li> <li> <p>Be registered with the authorization server.</p> </li> <li> <p>Not include a fragment component.</p> </li> </ul> <p>See <a href=\"https://tools.ietf.org/html/rfc6749#section-3.1.2\">OAuth 2.0 - Redirection Endpoint</a>.</p> <p>Amazon Cognito requires HTTPS over HTTP except for <code>http://localhost</code> for testing purposes only.</p> <p>App callback URLs such as <code>myapp://example</code> are also supported.</p>" 7732 }, 7733 "AllowedOAuthFlows":{ 7734 "shape":"OAuthFlowsType", 7735 "documentation":"<p>The allowed OAuth flows.</p> <dl> <dt>code</dt> <dd> <p>Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the <code>/oauth2/token</code> endpoint.</p> </dd> <dt>implicit</dt> <dd> <p>Issue the access token (and, optionally, ID token, based on scopes) directly to your user.</p> </dd> <dt>client_credentials</dt> <dd> <p>Issue the access token from the <code>/oauth2/token</code> endpoint directly to a non-person user using a combination of the client ID and client secret.</p> </dd> </dl>" 7736 }, 7737 "AllowedOAuthScopes":{ 7738 "shape":"ScopeListType", 7739 "documentation":"<p>The allowed OAuth scopes. Possible values provided by OAuth are <code>phone</code>, <code>email</code>, <code>openid</code>, and <code>profile</code>. Possible values provided by Amazon Web Services are <code>aws.cognito.signin.user.admin</code>. Custom scopes created in Resource Servers are also supported.</p>" 7740 }, 7741 "AllowedOAuthFlowsUserPoolClient":{ 7742 "shape":"BooleanType", 7743 "documentation":"<p>Set to <code>true</code> to use OAuth 2.0 features in your user pool app client.</p> <p> <code>AllowedOAuthFlowsUserPoolClient</code> must be <code>true</code> before you can configure the following features in your app client.</p> <ul> <li> <p> <code>CallBackURLs</code>: Callback URLs.</p> </li> <li> <p> <code>LogoutURLs</code>: Sign-out redirect URLs.</p> </li> <li> <p> <code>AllowedOAuthScopes</code>: OAuth 2.0 scopes.</p> </li> <li> <p> <code>AllowedOAuthFlows</code>: Support for authorization code, implicit, and client credentials OAuth 2.0 grants.</p> </li> </ul> <p>To use OAuth 2.0 features, configure one of these features in the Amazon Cognito console or set <code>AllowedOAuthFlowsUserPoolClient</code> to <code>true</code> in a <code>CreateUserPoolClient</code> or <code>UpdateUserPoolClient</code> API request. If you don't set a value for <code>AllowedOAuthFlowsUserPoolClient</code> in a request with the CLI or SDKs, it defaults to <code>false</code>.</p>" 7744 }, 7745 "AnalyticsConfiguration":{ 7746 "shape":"AnalyticsConfigurationType", 7747 "documentation":"<p>The Amazon Pinpoint analytics configuration necessary to collect metrics for this user pool.</p> <note> <p>In Amazon Web Services Regions where Amazon Pinpoint isn't available, user pools only support sending events to Amazon Pinpoint projects in us-east-1. In Regions where Amazon Pinpoint is available, user pools support sending events to Amazon Pinpoint projects within that same Region.</p> </note>" 7748 }, 7749 "PreventUserExistenceErrors":{ 7750 "shape":"PreventUserExistenceErrorTypes", 7751 "documentation":"<p>Errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the user pool. When set to <code>ENABLED</code> and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect. Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to <code>LEGACY</code>, those APIs return a <code>UserNotFoundException</code> exception if the user doesn't exist in the user pool.</p> <p>Valid values include:</p> <ul> <li> <p> <code>ENABLED</code> - This prevents user existence-related errors.</p> </li> <li> <p> <code>LEGACY</code> - This represents the early behavior of Amazon Cognito where user existence related errors aren't prevented.</p> </li> </ul>" 7752 }, 7753 "EnableTokenRevocation":{ 7754 "shape":"WrappedBooleanType", 7755 "documentation":"<p>Activates or deactivates token revocation. For more information about revoking tokens, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html\">RevokeToken</a>.</p>" 7756 }, 7757 "EnablePropagateAdditionalUserContextData":{ 7758 "shape":"WrappedBooleanType", 7759 "documentation":"<p>Activates the propagation of additional user context data. For more information about propagation of user context data, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html\"> Adding advanced security to a user pool</a>. If you don’t include this parameter, you can't send device fingerprint information, including source IP address, to Amazon Cognito advanced security. You can only activate <code>EnablePropagateAdditionalUserContextData</code> in an app client that has a client secret.</p>" 7760 }, 7761 "AuthSessionValidity":{ 7762 "shape":"AuthSessionValidityType", 7763 "documentation":"<p>Amazon Cognito creates a session token for each API request in an authentication flow. <code>AuthSessionValidity</code> is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires.</p>" 7764 } 7765 }, 7766 "documentation":"<p>Represents the request to update the user pool client.</p>" 7767 }, 7768 "UpdateUserPoolClientResponse":{ 7769 "type":"structure", 7770 "members":{ 7771 "UserPoolClient":{ 7772 "shape":"UserPoolClientType", 7773 "documentation":"<p>The user pool client value from the response from the server when you request to update the user pool client.</p>" 7774 } 7775 }, 7776 "documentation":"<p>Represents the response from the server to the request to update the user pool client.</p>" 7777 }, 7778 "UpdateUserPoolDomainRequest":{ 7779 "type":"structure", 7780 "required":[ 7781 "Domain", 7782 "UserPoolId", 7783 "CustomDomainConfig" 7784 ], 7785 "members":{ 7786 "Domain":{ 7787 "shape":"DomainType", 7788 "documentation":"<p>The domain name for the custom domain that hosts the sign-up and sign-in pages for your application. One example might be <code>auth.example.com</code>. </p> <p>This string can include only lowercase letters, numbers, and hyphens. Don't use a hyphen for the first or last character. Use periods to separate subdomain names.</p>" 7789 }, 7790 "UserPoolId":{ 7791 "shape":"UserPoolIdType", 7792 "documentation":"<p>The ID of the user pool that is associated with the custom domain whose certificate you're updating.</p>" 7793 }, 7794 "CustomDomainConfig":{ 7795 "shape":"CustomDomainConfigType", 7796 "documentation":"<p>The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.</p>" 7797 } 7798 }, 7799 "documentation":"<p>The UpdateUserPoolDomain request input.</p>" 7800 }, 7801 "UpdateUserPoolDomainResponse":{ 7802 "type":"structure", 7803 "members":{ 7804 "CloudFrontDomain":{ 7805 "shape":"DomainType", 7806 "documentation":"<p>The Amazon CloudFront endpoint that Amazon Cognito set up when you added the custom domain to your user pool.</p>" 7807 } 7808 }, 7809 "documentation":"<p>The UpdateUserPoolDomain response output.</p>" 7810 }, 7811 "UpdateUserPoolRequest":{ 7812 "type":"structure", 7813 "required":["UserPoolId"], 7814 "members":{ 7815 "UserPoolId":{ 7816 "shape":"UserPoolIdType", 7817 "documentation":"<p>The user pool ID for the user pool you want to update.</p>" 7818 }, 7819 "Policies":{ 7820 "shape":"UserPoolPolicyType", 7821 "documentation":"<p>A container with the policies you want to update in a user pool.</p>" 7822 }, 7823 "DeletionProtection":{ 7824 "shape":"DeletionProtectionType", 7825 "documentation":"<p>When active, <code>DeletionProtection</code> prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.</p> <p>When you try to delete a protected user pool in a <code>DeleteUserPool</code> API request, Amazon Cognito returns an <code>InvalidParameterException</code> error. To delete a protected user pool, send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an <code>UpdateUserPool</code> API request.</p>" 7826 }, 7827 "LambdaConfig":{ 7828 "shape":"LambdaConfigType", 7829 "documentation":"<p>The Lambda configuration information from the request to update the user pool.</p>" 7830 }, 7831 "AutoVerifiedAttributes":{ 7832 "shape":"VerifiedAttributesListType", 7833 "documentation":"<p>The attributes that are automatically verified when Amazon Cognito requests to update user pools.</p>" 7834 }, 7835 "SmsVerificationMessage":{ 7836 "shape":"SmsVerificationMessageType", 7837 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 7838 }, 7839 "EmailVerificationMessage":{ 7840 "shape":"EmailVerificationMessageType", 7841 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 7842 }, 7843 "EmailVerificationSubject":{ 7844 "shape":"EmailVerificationSubjectType", 7845 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 7846 }, 7847 "VerificationMessageTemplate":{ 7848 "shape":"VerificationMessageTemplateType", 7849 "documentation":"<p>The template for verification messages.</p>" 7850 }, 7851 "SmsAuthenticationMessage":{ 7852 "shape":"SmsVerificationMessageType", 7853 "documentation":"<p>The contents of the SMS authentication message.</p>" 7854 }, 7855 "UserAttributeUpdateSettings":{ 7856 "shape":"UserAttributeUpdateSettingsType", 7857 "documentation":"<p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates\"> Verifying updates to email addresses and phone numbers</a>.</p>" 7858 }, 7859 "MfaConfiguration":{ 7860 "shape":"UserPoolMfaType", 7861 "documentation":"<p>Possible values include:</p> <ul> <li> <p> <code>OFF</code> - MFA tokens aren't required and can't be specified during user registration.</p> </li> <li> <p> <code>ON</code> - MFA tokens are required for all user registrations. You can only specify ON when you're initially creating a user pool. You can use the <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserPoolMfaConfig.html\">SetUserPoolMfaConfig</a> API operation to turn MFA \"ON\" for existing user pools. </p> </li> <li> <p> <code>OPTIONAL</code> - Users have the option when registering to create an MFA token.</p> </li> </ul>" 7862 }, 7863 "DeviceConfiguration":{ 7864 "shape":"DeviceConfigurationType", 7865 "documentation":"<p>The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.</p> <note> <p>When you provide a value for any <code>DeviceConfiguration</code> field, you activate the Amazon Cognito device-remembering feature.</p> </note>" 7866 }, 7867 "EmailConfiguration":{ 7868 "shape":"EmailConfigurationType", 7869 "documentation":"<p>The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for email invitation and verification messages from your user pool.</p>" 7870 }, 7871 "SmsConfiguration":{ 7872 "shape":"SmsConfigurationType", 7873 "documentation":"<p>The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account.</p>" 7874 }, 7875 "UserPoolTags":{ 7876 "shape":"UserPoolTagsType", 7877 "documentation":"<p>The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.</p>" 7878 }, 7879 "AdminCreateUserConfig":{ 7880 "shape":"AdminCreateUserConfigType", 7881 "documentation":"<p>The configuration for <code>AdminCreateUser</code> requests.</p>" 7882 }, 7883 "UserPoolAddOns":{ 7884 "shape":"UserPoolAddOnsType", 7885 "documentation":"<p>User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to <code>AUDIT</code>. To configure automatic security responses to risky traffic to your user pool, set to <code>ENFORCED</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html\">Adding advanced security to a user pool</a>.</p>" 7886 }, 7887 "AccountRecoverySetting":{ 7888 "shape":"AccountRecoverySettingType", 7889 "documentation":"<p>The available verified method a user can use to recover their password when they call <code>ForgotPassword</code>. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.</p>" 7890 } 7891 }, 7892 "documentation":"<p>Represents the request to update the user pool.</p>" 7893 }, 7894 "UpdateUserPoolResponse":{ 7895 "type":"structure", 7896 "members":{ 7897 }, 7898 "documentation":"<p>Represents the response from the server when you make a request to update the user pool.</p>" 7899 }, 7900 "UserAttributeUpdateSettingsType":{ 7901 "type":"structure", 7902 "members":{ 7903 "AttributesRequireVerificationBeforeUpdate":{ 7904 "shape":"AttributesRequireVerificationBeforeUpdateType", 7905 "documentation":"<p>Requires that your user verifies their email address, phone number, or both before Amazon Cognito updates the value of that attribute. When you update a user attribute that has this option activated, Amazon Cognito sends a verification message to the new phone number or email address. Amazon Cognito doesn’t change the value of the attribute until your user responds to the verification message and confirms the new value.</p> <p>You can verify an updated email address or phone number with a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifyUserAttribute.html\">VerifyUserAttribute</a> API request. You can also call the <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html\">AdminUpdateUserAttributes</a> API and set <code>email_verified</code> or <code>phone_number_verified</code> to true.</p> <p>When <code>AttributesRequireVerificationBeforeUpdate</code> is false, your user pool doesn't require that your users verify attribute changes before Amazon Cognito updates them. In a user pool where <code>AttributesRequireVerificationBeforeUpdate</code> is false, API operations that change attribute values can immediately update a user’s <code>email</code> or <code>phone_number</code> attribute.</p>" 7906 } 7907 }, 7908 "documentation":"<p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates\"> Verifying updates to email addresses and phone numbers</a>.</p>" 7909 }, 7910 "UserContextDataType":{ 7911 "type":"structure", 7912 "members":{ 7913 "IpAddress":{ 7914 "shape":"StringType", 7915 "documentation":"<p>The source IP address of your user's device.</p>" 7916 }, 7917 "EncodedData":{ 7918 "shape":"StringType", 7919 "documentation":"<p>Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint\">Adding user device and session data to API requests</a>.</p>" 7920 } 7921 }, 7922 "documentation":"<p>Contextual data, such as the user's device fingerprint, IP address, or location, used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>", 7923 "sensitive":true 7924 }, 7925 "UserFilterType":{ 7926 "type":"string", 7927 "max":256 7928 }, 7929 "UserImportInProgressException":{ 7930 "type":"structure", 7931 "members":{ 7932 "message":{ 7933 "shape":"MessageType", 7934 "documentation":"<p>The message returned when the user pool has an import job running.</p>" 7935 } 7936 }, 7937 "documentation":"<p>This exception is thrown when you're trying to modify a user pool while a user import job is in progress for that pool.</p>", 7938 "exception":true 7939 }, 7940 "UserImportJobIdType":{ 7941 "type":"string", 7942 "max":55, 7943 "min":1, 7944 "pattern":"import-[0-9a-zA-Z-]+" 7945 }, 7946 "UserImportJobNameType":{ 7947 "type":"string", 7948 "max":128, 7949 "min":1, 7950 "pattern":"[\\w\\s+=,.@-]+" 7951 }, 7952 "UserImportJobStatusType":{ 7953 "type":"string", 7954 "enum":[ 7955 "Created", 7956 "Pending", 7957 "InProgress", 7958 "Stopping", 7959 "Expired", 7960 "Stopped", 7961 "Failed", 7962 "Succeeded" 7963 ] 7964 }, 7965 "UserImportJobType":{ 7966 "type":"structure", 7967 "members":{ 7968 "JobName":{ 7969 "shape":"UserImportJobNameType", 7970 "documentation":"<p>The job name for the user import job.</p>" 7971 }, 7972 "JobId":{ 7973 "shape":"UserImportJobIdType", 7974 "documentation":"<p>The job ID for the user import job.</p>" 7975 }, 7976 "UserPoolId":{ 7977 "shape":"UserPoolIdType", 7978 "documentation":"<p>The user pool ID for the user pool that the users are being imported into.</p>" 7979 }, 7980 "PreSignedUrl":{ 7981 "shape":"PreSignedUrlType", 7982 "documentation":"<p>The pre-signed URL to be used to upload the <code>.csv</code> file.</p>" 7983 }, 7984 "CreationDate":{ 7985 "shape":"DateType", 7986 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 7987 }, 7988 "StartDate":{ 7989 "shape":"DateType", 7990 "documentation":"<p>The date when the user import job was started.</p>" 7991 }, 7992 "CompletionDate":{ 7993 "shape":"DateType", 7994 "documentation":"<p>The date when the user import job was completed.</p>" 7995 }, 7996 "Status":{ 7997 "shape":"UserImportJobStatusType", 7998 "documentation":"<p>The status of the user import job. One of the following:</p> <ul> <li> <p> <code>Created</code> - The job was created but not started.</p> </li> <li> <p> <code>Pending</code> - A transition state. You have started the job, but it has not begun importing users yet.</p> </li> <li> <p> <code>InProgress</code> - The job has started, and users are being imported.</p> </li> <li> <p> <code>Stopping</code> - You have stopped the job, but the job has not stopped importing users yet.</p> </li> <li> <p> <code>Stopped</code> - You have stopped the job, and the job has stopped importing users.</p> </li> <li> <p> <code>Succeeded</code> - The job has completed successfully.</p> </li> <li> <p> <code>Failed</code> - The job has stopped due to an error.</p> </li> <li> <p> <code>Expired</code> - 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 can't be started.</p> </li> </ul>" 7999 }, 8000 "CloudWatchLogsRoleArn":{ 8001 "shape":"ArnType", 8002 "documentation":"<p>The role Amazon Resource Name (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.</p>" 8003 }, 8004 "ImportedUsers":{ 8005 "shape":"LongType", 8006 "documentation":"<p>The number of users that were successfully imported.</p>" 8007 }, 8008 "SkippedUsers":{ 8009 "shape":"LongType", 8010 "documentation":"<p>The number of users that were skipped.</p>" 8011 }, 8012 "FailedUsers":{ 8013 "shape":"LongType", 8014 "documentation":"<p>The number of users that couldn't be imported.</p>" 8015 }, 8016 "CompletionMessage":{ 8017 "shape":"CompletionMessageType", 8018 "documentation":"<p>The message returned when the user import job is completed.</p>" 8019 } 8020 }, 8021 "documentation":"<p>The user import job type.</p>" 8022 }, 8023 "UserImportJobsListType":{ 8024 "type":"list", 8025 "member":{"shape":"UserImportJobType"}, 8026 "max":50, 8027 "min":1 8028 }, 8029 "UserLambdaValidationException":{ 8030 "type":"structure", 8031 "members":{ 8032 "message":{ 8033 "shape":"MessageType", 8034 "documentation":"<p>The message returned when the Amazon Cognito service returns a user validation exception with the Lambda service.</p>" 8035 } 8036 }, 8037 "documentation":"<p>This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service.</p>", 8038 "exception":true 8039 }, 8040 "UserMFASettingListType":{ 8041 "type":"list", 8042 "member":{"shape":"StringType"} 8043 }, 8044 "UserNotConfirmedException":{ 8045 "type":"structure", 8046 "members":{ 8047 "message":{ 8048 "shape":"MessageType", 8049 "documentation":"<p>The message returned when a user isn't confirmed successfully.</p>" 8050 } 8051 }, 8052 "documentation":"<p>This exception is thrown when a user isn't confirmed successfully.</p>", 8053 "exception":true 8054 }, 8055 "UserNotFoundException":{ 8056 "type":"structure", 8057 "members":{ 8058 "message":{ 8059 "shape":"MessageType", 8060 "documentation":"<p>The message returned when a user isn't found.</p>" 8061 } 8062 }, 8063 "documentation":"<p>This exception is thrown when a user isn't found.</p>", 8064 "exception":true 8065 }, 8066 "UserPoolAddOnNotEnabledException":{ 8067 "type":"structure", 8068 "members":{ 8069 "message":{"shape":"MessageType"} 8070 }, 8071 "documentation":"<p>This exception is thrown when user pool add-ons aren't enabled.</p>", 8072 "exception":true 8073 }, 8074 "UserPoolAddOnsType":{ 8075 "type":"structure", 8076 "required":["AdvancedSecurityMode"], 8077 "members":{ 8078 "AdvancedSecurityMode":{ 8079 "shape":"AdvancedSecurityModeType", 8080 "documentation":"<p>The operating mode of advanced security features in your user pool.</p>" 8081 } 8082 }, 8083 "documentation":"<p>User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to <code>AUDIT</code>. To configure automatic security responses to risky traffic to your user pool, set to <code>ENFORCED</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html\">Adding advanced security to a user pool</a>.</p>" 8084 }, 8085 "UserPoolClientDescription":{ 8086 "type":"structure", 8087 "members":{ 8088 "ClientId":{ 8089 "shape":"ClientIdType", 8090 "documentation":"<p>The ID of the client associated with the user pool.</p>" 8091 }, 8092 "UserPoolId":{ 8093 "shape":"UserPoolIdType", 8094 "documentation":"<p>The user pool ID for the user pool where you want to describe the user pool client.</p>" 8095 }, 8096 "ClientName":{ 8097 "shape":"ClientNameType", 8098 "documentation":"<p>The client name from the user pool client description.</p>" 8099 } 8100 }, 8101 "documentation":"<p>The description of the user pool client.</p>" 8102 }, 8103 "UserPoolClientListType":{ 8104 "type":"list", 8105 "member":{"shape":"UserPoolClientDescription"} 8106 }, 8107 "UserPoolClientType":{ 8108 "type":"structure", 8109 "members":{ 8110 "UserPoolId":{ 8111 "shape":"UserPoolIdType", 8112 "documentation":"<p>The user pool ID for the user pool client.</p>" 8113 }, 8114 "ClientName":{ 8115 "shape":"ClientNameType", 8116 "documentation":"<p>The client name from the user pool request of the client type.</p>" 8117 }, 8118 "ClientId":{ 8119 "shape":"ClientIdType", 8120 "documentation":"<p>The ID of the client associated with the user pool.</p>" 8121 }, 8122 "ClientSecret":{ 8123 "shape":"ClientSecretType", 8124 "documentation":"<p>The client secret from the user pool request of the client type.</p>" 8125 }, 8126 "LastModifiedDate":{ 8127 "shape":"DateType", 8128 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 8129 }, 8130 "CreationDate":{ 8131 "shape":"DateType", 8132 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 8133 }, 8134 "RefreshTokenValidity":{ 8135 "shape":"RefreshTokenValidityType", 8136 "documentation":"<p>The refresh token time limit. After this limit expires, your user can't use their refresh token. To specify the time unit for <code>RefreshTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>RefreshTokenValidity</code> as <code>10</code> and <code>TokenValidityUnits</code> as <code>days</code>, your user can refresh their session and retrieve new access and ID tokens for 10 days.</p> <p>The default time unit for <code>RefreshTokenValidity</code> in an API request is days. You can't set <code>RefreshTokenValidity</code> to 0. If you do, Amazon Cognito overrides the value with the default value of 30 days. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your refresh tokens are valid for 30 days.</p>" 8137 }, 8138 "AccessTokenValidity":{ 8139 "shape":"AccessTokenValidityType", 8140 "documentation":"<p>The access token time limit. After this limit expires, your user can't use their access token. To specify the time unit for <code>AccessTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>AccessTokenValidity</code> to <code>10</code> and <code>TokenValidityUnits</code> to <code>hours</code>, your user can authorize access with their access token for 10 hours.</p> <p>The default time unit for <code>AccessTokenValidity</code> in an API request is hours. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your access tokens are valid for one hour.</p>" 8141 }, 8142 "IdTokenValidity":{ 8143 "shape":"IdTokenValidityType", 8144 "documentation":"<p>The ID token time limit. After this limit expires, your user can't use their ID token. To specify the time unit for <code>IdTokenValidity</code> as <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>, set a <code>TokenValidityUnits</code> value in your API request.</p> <p>For example, when you set <code>IdTokenValidity</code> as <code>10</code> and <code>TokenValidityUnits</code> as <code>hours</code>, your user can authenticate their session with their ID token for 10 hours.</p> <p>The default time unit for <code>IdTokenValidity</code> in an API request is hours. <i>Valid range</i> is displayed below in seconds.</p> <p>If you don't specify otherwise in the configuration of your app client, your ID tokens are valid for one hour.</p>" 8145 }, 8146 "TokenValidityUnits":{ 8147 "shape":"TokenValidityUnitsType", 8148 "documentation":"<p>The time units used to specify the token validity times of each token type: ID, access, and refresh.</p>" 8149 }, 8150 "ReadAttributes":{ 8151 "shape":"ClientPermissionListType", 8152 "documentation":"<p>The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUser.html\">GetUser</a> API request to retrieve and display your user's profile data.</p> <p>When you don't specify the <code>ReadAttributes</code> for your app client, your app can read the values of <code>email_verified</code>, <code>phone_number_verified</code>, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, <code>ReadAttributes</code> doesn't return any information. Amazon Cognito only populates <code>ReadAttributes</code> in the API response if you have specified your own custom set of read attributes.</p>" 8153 }, 8154 "WriteAttributes":{ 8155 "shape":"ClientPermissionListType", 8156 "documentation":"<p>The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html\">UpdateUserAttributes</a> API request and sets <code>family_name</code> to the new value. </p> <p>When you don't specify the <code>WriteAttributes</code> for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, <code>WriteAttributes</code> doesn't return any information. Amazon Cognito only populates <code>WriteAttributes</code> in the API response if you have specified your own custom set of write attributes.</p> <p>If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html\">Specifying IdP Attribute Mappings for Your user pool</a>.</p>" 8157 }, 8158 "ExplicitAuthFlows":{ 8159 "shape":"ExplicitAuthFlowsListType", 8160 "documentation":"<p>The authentication flows that you want your user pool client to support. For each app client in your user pool, you can sign in your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and password, or a custom authentication process that you define with Lambda functions.</p> <note> <p>If you don't specify a value for <code>ExplicitAuthFlows</code>, your user client supports <code>ALLOW_REFRESH_TOKEN_AUTH</code>, <code>ALLOW_USER_SRP_AUTH</code>, and <code>ALLOW_CUSTOM_AUTH</code>.</p> </note> <p>Valid values include:</p> <ul> <li> <p> <code>ALLOW_ADMIN_USER_PASSWORD_AUTH</code>: Enable admin based user password authentication flow <code>ADMIN_USER_PASSWORD_AUTH</code>. This setting replaces the <code>ADMIN_NO_SRP_AUTH</code> setting. With this authentication flow, your app passes a user name and password to Amazon Cognito in the request, instead of using the Secure Remote Password (SRP) protocol to securely transmit the password.</p> </li> <li> <p> <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based authentication.</p> </li> <li> <p> <code>ALLOW_USER_PASSWORD_AUTH</code>: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP protocol to verify passwords.</p> </li> <li> <p> <code>ALLOW_USER_SRP_AUTH</code>: Enable SRP-based authentication.</p> </li> <li> <p> <code>ALLOW_REFRESH_TOKEN_AUTH</code>: Enable authflow to refresh tokens.</p> </li> </ul> <p>In some environments, you will see the values <code>ADMIN_NO_SRP_AUTH</code>, <code>CUSTOM_AUTH_FLOW_ONLY</code>, or <code>USER_PASSWORD_AUTH</code>. You can't assign these legacy <code>ExplicitAuthFlows</code> values to user pool clients at the same time as values that begin with <code>ALLOW_</code>, like <code>ALLOW_USER_SRP_AUTH</code>.</p>" 8161 }, 8162 "SupportedIdentityProviders":{ 8163 "shape":"SupportedIdentityProvidersListType", 8164 "documentation":"<p>A list of provider names for the IdPs that this client supports. The following are supported: <code>COGNITO</code>, <code>Facebook</code>, <code>Google</code>, <code>SignInWithApple</code>, <code>LoginWithAmazon</code>, and the names of your own SAML and OIDC providers.</p>" 8165 }, 8166 "CallbackURLs":{ 8167 "shape":"CallbackURLsListType", 8168 "documentation":"<p>A list of allowed redirect (callback) URLs for the IdPs.</p> <p>A redirect URI must:</p> <ul> <li> <p>Be an absolute URI.</p> </li> <li> <p>Be registered with the authorization server.</p> </li> <li> <p>Not include a fragment component.</p> </li> </ul> <p>See <a href=\"https://tools.ietf.org/html/rfc6749#section-3.1.2\">OAuth 2.0 - Redirection Endpoint</a>.</p> <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p> <p>App callback URLs such as myapp://example are also supported.</p>" 8169 }, 8170 "LogoutURLs":{ 8171 "shape":"LogoutURLsListType", 8172 "documentation":"<p>A list of allowed logout URLs for the IdPs.</p>" 8173 }, 8174 "DefaultRedirectURI":{ 8175 "shape":"RedirectUrlType", 8176 "documentation":"<p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p> <p>A redirect URI must:</p> <ul> <li> <p>Be an absolute URI.</p> </li> <li> <p>Be registered with the authorization server.</p> </li> <li> <p>Not include a fragment component.</p> </li> </ul> <p>See <a href=\"https://tools.ietf.org/html/rfc6749#section-3.1.2\">OAuth 2.0 - Redirection Endpoint</a>.</p> <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p> <p>App callback URLs such as myapp://example are also supported.</p>" 8177 }, 8178 "AllowedOAuthFlows":{ 8179 "shape":"OAuthFlowsType", 8180 "documentation":"<p>The allowed OAuth flows.</p> <dl> <dt>code</dt> <dd> <p>Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the <code>/oauth2/token</code> endpoint.</p> </dd> <dt>implicit</dt> <dd> <p>Issue the access token (and, optionally, ID token, based on scopes) directly to your user.</p> </dd> <dt>client_credentials</dt> <dd> <p>Issue the access token from the <code>/oauth2/token</code> endpoint directly to a non-person user using a combination of the client ID and client secret.</p> </dd> </dl>" 8181 }, 8182 "AllowedOAuthScopes":{ 8183 "shape":"ScopeListType", 8184 "documentation":"<p>The OAuth scopes that your app client supports. Possible values that OAuth provides are <code>phone</code>, <code>email</code>, <code>openid</code>, and <code>profile</code>. Possible values that Amazon Web Services provides are <code>aws.cognito.signin.user.admin</code>. Amazon Cognito also supports custom scopes that you create in Resource Servers.</p>" 8185 }, 8186 "AllowedOAuthFlowsUserPoolClient":{ 8187 "shape":"BooleanType", 8188 "documentation":"<p>Set to <code>true</code> to use OAuth 2.0 features in your user pool app client.</p> <p> <code>AllowedOAuthFlowsUserPoolClient</code> must be <code>true</code> before you can configure the following features in your app client.</p> <ul> <li> <p> <code>CallBackURLs</code>: Callback URLs.</p> </li> <li> <p> <code>LogoutURLs</code>: Sign-out redirect URLs.</p> </li> <li> <p> <code>AllowedOAuthScopes</code>: OAuth 2.0 scopes.</p> </li> <li> <p> <code>AllowedOAuthFlows</code>: Support for authorization code, implicit, and client credentials OAuth 2.0 grants.</p> </li> </ul> <p>To use OAuth 2.0 features, configure one of these features in the Amazon Cognito console or set <code>AllowedOAuthFlowsUserPoolClient</code> to <code>true</code> in a <code>CreateUserPoolClient</code> or <code>UpdateUserPoolClient</code> API request. If you don't set a value for <code>AllowedOAuthFlowsUserPoolClient</code> in a request with the CLI or SDKs, it defaults to <code>false</code>.</p>", 8189 "box":true 8190 }, 8191 "AnalyticsConfiguration":{ 8192 "shape":"AnalyticsConfigurationType", 8193 "documentation":"<p>The Amazon Pinpoint analytics configuration for the user pool client.</p> <note> <p>Amazon Cognito user pools only support sending events to Amazon Pinpoint projects in the US East (N. Virginia) us-east-1 Region, regardless of the Region where the user pool resides.</p> </note>" 8194 }, 8195 "PreventUserExistenceErrors":{ 8196 "shape":"PreventUserExistenceErrorTypes", 8197 "documentation":"<p>Errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the user pool. When set to <code>ENABLED</code> and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect. Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to <code>LEGACY</code>, those APIs return a <code>UserNotFoundException</code> exception if the user doesn't exist in the user pool.</p> <p>Valid values include:</p> <ul> <li> <p> <code>ENABLED</code> - This prevents user existence-related errors.</p> </li> <li> <p> <code>LEGACY</code> - This represents the old behavior of Amazon Cognito where user existence related errors aren't prevented.</p> </li> </ul>" 8198 }, 8199 "EnableTokenRevocation":{ 8200 "shape":"WrappedBooleanType", 8201 "documentation":"<p>Indicates whether token revocation is activated for the user pool client. When you create a new user pool client, token revocation is activated by default. For more information about revoking tokens, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html\">RevokeToken</a>.</p>" 8202 }, 8203 "EnablePropagateAdditionalUserContextData":{ 8204 "shape":"WrappedBooleanType", 8205 "documentation":"<p>When <code>EnablePropagateAdditionalUserContextData</code> is true, Amazon Cognito accepts an <code>IpAddress</code> value that you send in the <code>UserContextData</code> parameter. The <code>UserContextData</code> parameter sends information to Amazon Cognito advanced security for risk analysis. You can send <code>UserContextData</code> when you sign in Amazon Cognito native users with the <code>InitiateAuth</code> and <code>RespondToAuthChallenge</code> API operations.</p> <p>When <code>EnablePropagateAdditionalUserContextData</code> is false, you can't send your user's source IP address to Amazon Cognito advanced security with unauthenticated API operations. <code>EnablePropagateAdditionalUserContextData</code> doesn't affect whether you can send a source IP address in a <code>ContextData</code> parameter with the authenticated API operations <code>AdminInitiateAuth</code> and <code>AdminRespondToAuthChallenge</code>.</p> <p>You can only activate <code>EnablePropagateAdditionalUserContextData</code> in an app client that has a client secret. For more information about propagation of user context data, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint\">Adding user device and session data to API requests</a>.</p>" 8206 }, 8207 "AuthSessionValidity":{ 8208 "shape":"AuthSessionValidityType", 8209 "documentation":"<p>Amazon Cognito creates a session token for each API request in an authentication flow. <code>AuthSessionValidity</code> is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires.</p>" 8210 } 8211 }, 8212 "documentation":"<p>Contains information about a user pool client.</p>" 8213 }, 8214 "UserPoolDescriptionType":{ 8215 "type":"structure", 8216 "members":{ 8217 "Id":{ 8218 "shape":"UserPoolIdType", 8219 "documentation":"<p>The ID in a user pool description.</p>" 8220 }, 8221 "Name":{ 8222 "shape":"UserPoolNameType", 8223 "documentation":"<p>The name in a user pool description.</p>" 8224 }, 8225 "LambdaConfig":{ 8226 "shape":"LambdaConfigType", 8227 "documentation":"<p>The Lambda configuration information in a user pool description.</p>" 8228 }, 8229 "Status":{ 8230 "shape":"StatusType", 8231 "documentation":"<p>The user pool status in a user pool description.</p>", 8232 "deprecated":true, 8233 "deprecatedMessage":"This property is no longer available." 8234 }, 8235 "LastModifiedDate":{ 8236 "shape":"DateType", 8237 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 8238 }, 8239 "CreationDate":{ 8240 "shape":"DateType", 8241 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 8242 } 8243 }, 8244 "documentation":"<p>A user pool description.</p>" 8245 }, 8246 "UserPoolIdType":{ 8247 "type":"string", 8248 "max":55, 8249 "min":1, 8250 "pattern":"[\\w-]+_[0-9a-zA-Z]+" 8251 }, 8252 "UserPoolListType":{ 8253 "type":"list", 8254 "member":{"shape":"UserPoolDescriptionType"} 8255 }, 8256 "UserPoolMfaType":{ 8257 "type":"string", 8258 "enum":[ 8259 "OFF", 8260 "ON", 8261 "OPTIONAL" 8262 ] 8263 }, 8264 "UserPoolNameType":{ 8265 "type":"string", 8266 "max":128, 8267 "min":1, 8268 "pattern":"[\\w\\s+=,.@-]+" 8269 }, 8270 "UserPoolPolicyType":{ 8271 "type":"structure", 8272 "members":{ 8273 "PasswordPolicy":{ 8274 "shape":"PasswordPolicyType", 8275 "documentation":"<p>The password policy.</p>" 8276 } 8277 }, 8278 "documentation":"<p>The policy associated with a user pool.</p>" 8279 }, 8280 "UserPoolTaggingException":{ 8281 "type":"structure", 8282 "members":{ 8283 "message":{"shape":"MessageType"} 8284 }, 8285 "documentation":"<p>This exception is thrown when a user pool tag can't be set or updated.</p>", 8286 "exception":true 8287 }, 8288 "UserPoolTagsListType":{ 8289 "type":"list", 8290 "member":{"shape":"TagKeysType"} 8291 }, 8292 "UserPoolTagsType":{ 8293 "type":"map", 8294 "key":{"shape":"TagKeysType"}, 8295 "value":{"shape":"TagValueType"} 8296 }, 8297 "UserPoolType":{ 8298 "type":"structure", 8299 "members":{ 8300 "Id":{ 8301 "shape":"UserPoolIdType", 8302 "documentation":"<p>The ID of the user pool.</p>" 8303 }, 8304 "Name":{ 8305 "shape":"UserPoolNameType", 8306 "documentation":"<p>The name of the user pool.</p>" 8307 }, 8308 "Policies":{ 8309 "shape":"UserPoolPolicyType", 8310 "documentation":"<p>The policies associated with the user pool.</p>" 8311 }, 8312 "DeletionProtection":{ 8313 "shape":"DeletionProtectionType", 8314 "documentation":"<p>When active, <code>DeletionProtection</code> prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.</p> <p>When you try to delete a protected user pool in a <code>DeleteUserPool</code> API request, Amazon Cognito returns an <code>InvalidParameterException</code> error. To delete a protected user pool, send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an <code>UpdateUserPool</code> API request.</p>" 8315 }, 8316 "LambdaConfig":{ 8317 "shape":"LambdaConfigType", 8318 "documentation":"<p>The Lambda triggers associated with the user pool.</p>" 8319 }, 8320 "Status":{ 8321 "shape":"StatusType", 8322 "documentation":"<p>This parameter is no longer used.</p>", 8323 "deprecated":true, 8324 "deprecatedMessage":"This property is no longer available." 8325 }, 8326 "LastModifiedDate":{ 8327 "shape":"DateType", 8328 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 8329 }, 8330 "CreationDate":{ 8331 "shape":"DateType", 8332 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was created.</p>" 8333 }, 8334 "SchemaAttributes":{ 8335 "shape":"SchemaAttributesListType", 8336 "documentation":"<p>A list of the user attributes and their properties in your user pool. The attribute schema contains standard attributes, custom attributes with a <code>custom:</code> prefix, and developer attributes with a <code>dev:</code> prefix. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html\">User pool attributes</a>.</p> <p>Developer-only attributes are a legacy feature of user pools, are read-only to all app clients. You can create and update developer-only attributes only with IAM-authenticated API operations. Use app client read/write permissions instead.</p>" 8337 }, 8338 "AutoVerifiedAttributes":{ 8339 "shape":"VerifiedAttributesListType", 8340 "documentation":"<p>The attributes that are auto-verified in a user pool.</p>" 8341 }, 8342 "AliasAttributes":{ 8343 "shape":"AliasAttributesListType", 8344 "documentation":"<p>The attributes that are aliased in a user pool.</p>" 8345 }, 8346 "UsernameAttributes":{ 8347 "shape":"UsernameAttributesListType", 8348 "documentation":"<p>Specifies whether a user can use an email address or phone number as a username when they sign up.</p>" 8349 }, 8350 "SmsVerificationMessage":{ 8351 "shape":"SmsVerificationMessageType", 8352 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 8353 }, 8354 "EmailVerificationMessage":{ 8355 "shape":"EmailVerificationMessageType", 8356 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 8357 }, 8358 "EmailVerificationSubject":{ 8359 "shape":"EmailVerificationSubjectType", 8360 "documentation":"<p>This parameter is no longer used. See <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html\">VerificationMessageTemplateType</a>.</p>" 8361 }, 8362 "VerificationMessageTemplate":{ 8363 "shape":"VerificationMessageTemplateType", 8364 "documentation":"<p>The template for verification messages.</p>" 8365 }, 8366 "SmsAuthenticationMessage":{ 8367 "shape":"SmsVerificationMessageType", 8368 "documentation":"<p>The contents of the SMS authentication message.</p>" 8369 }, 8370 "UserAttributeUpdateSettings":{ 8371 "shape":"UserAttributeUpdateSettingsType", 8372 "documentation":"<p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates\"> Verifying updates to email addresses and phone numbers</a>.</p>" 8373 }, 8374 "MfaConfiguration":{ 8375 "shape":"UserPoolMfaType", 8376 "documentation":"<p>Can be one of the following values:</p> <ul> <li> <p> <code>OFF</code> - MFA tokens aren't required and can't be specified during user registration.</p> </li> <li> <p> <code>ON</code> - MFA tokens are required for all user registrations. You can only specify required when you're initially creating a user pool.</p> </li> <li> <p> <code>OPTIONAL</code> - Users have the option when registering to create an MFA token.</p> </li> </ul>" 8377 }, 8378 "DeviceConfiguration":{ 8379 "shape":"DeviceConfigurationType", 8380 "documentation":"<p>The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.</p> <note> <p>When you provide a value for any <code>DeviceConfiguration</code> field, you activate the Amazon Cognito device-remembering feature.</p> </note>" 8381 }, 8382 "EstimatedNumberOfUsers":{ 8383 "shape":"IntegerType", 8384 "documentation":"<p>A number estimating the size of the user pool.</p>" 8385 }, 8386 "EmailConfiguration":{ 8387 "shape":"EmailConfigurationType", 8388 "documentation":"<p>The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for messages from your user pool.</p>" 8389 }, 8390 "SmsConfiguration":{ 8391 "shape":"SmsConfigurationType", 8392 "documentation":"<p>The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account.</p>" 8393 }, 8394 "UserPoolTags":{ 8395 "shape":"UserPoolTagsType", 8396 "documentation":"<p>The tags that are assigned to the user pool. A tag is a label that you can apply to user pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.</p>" 8397 }, 8398 "SmsConfigurationFailure":{ 8399 "shape":"StringType", 8400 "documentation":"<p>The reason why the SMS configuration can't send the messages to your users.</p> <p>This message might include comma-separated values to describe why your SMS configuration can't send messages to user pool end users.</p> <dl> <dt>InvalidSmsRoleAccessPolicyException</dt> <dd> <p>The Identity and Access Management role that Amazon Cognito uses to send SMS messages isn't properly configured. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SmsConfigurationType.html\">SmsConfigurationType</a>.</p> </dd> <dt>SNSSandbox</dt> <dd> <p>The Amazon Web Services account is in the SNS SMS Sandbox and messages will only reach verified end users. This parameter won’t get populated with SNSSandbox if the user creating the user pool doesn’t have SNS permissions. To learn how to move your Amazon Web Services account out of the sandbox, see <a href=\"https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox-moving-to-production.html\">Moving out of the SMS sandbox</a>.</p> </dd> </dl>" 8401 }, 8402 "EmailConfigurationFailure":{ 8403 "shape":"StringType", 8404 "documentation":"<p>Deprecated. Review error codes from API requests with <code>EventSource:cognito-idp.amazonaws.com</code> in CloudTrail for information about problems with user pool email configuration.</p>" 8405 }, 8406 "Domain":{ 8407 "shape":"DomainType", 8408 "documentation":"<p>The domain prefix, if the user pool has a domain associated with it.</p>" 8409 }, 8410 "CustomDomain":{ 8411 "shape":"DomainType", 8412 "documentation":"<p>A custom domain name that you provide to Amazon Cognito. This parameter applies only if you use a custom domain to host the sign-up and sign-in pages for your application. An example of a custom domain name might be <code>auth.example.com</code>.</p> <p>For more information about adding a custom domain to your user pool, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-add-custom-domain.html\">Using Your Own Domain for the Hosted UI</a>.</p>" 8413 }, 8414 "AdminCreateUserConfig":{ 8415 "shape":"AdminCreateUserConfigType", 8416 "documentation":"<p>The configuration for <code>AdminCreateUser</code> requests.</p>" 8417 }, 8418 "UserPoolAddOns":{ 8419 "shape":"UserPoolAddOnsType", 8420 "documentation":"<p>User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to <code>AUDIT</code>. To configure automatic security responses to risky traffic to your user pool, set to <code>ENFORCED</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html\">Adding advanced security to a user pool</a>.</p>" 8421 }, 8422 "UsernameConfiguration":{ 8423 "shape":"UsernameConfigurationType", 8424 "documentation":"<p>Case sensitivity of the username input for the selected sign-in option. For example, when case sensitivity is set to <code>False</code>, users can sign in using either \"username\" or \"Username\". This configuration is immutable once it has been set. For more information, see <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UsernameConfigurationType.html\">UsernameConfigurationType</a>.</p>" 8425 }, 8426 "Arn":{ 8427 "shape":"ArnType", 8428 "documentation":"<p>The Amazon Resource Name (ARN) for the user pool.</p>" 8429 }, 8430 "AccountRecoverySetting":{ 8431 "shape":"AccountRecoverySettingType", 8432 "documentation":"<p>The available verified method a user can use to recover their password when they call <code>ForgotPassword</code>. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.</p>" 8433 } 8434 }, 8435 "documentation":"<p>A container for information about the user pool.</p>" 8436 }, 8437 "UserStatusType":{ 8438 "type":"string", 8439 "enum":[ 8440 "UNCONFIRMED", 8441 "CONFIRMED", 8442 "ARCHIVED", 8443 "COMPROMISED", 8444 "UNKNOWN", 8445 "RESET_REQUIRED", 8446 "FORCE_CHANGE_PASSWORD" 8447 ] 8448 }, 8449 "UserType":{ 8450 "type":"structure", 8451 "members":{ 8452 "Username":{ 8453 "shape":"UsernameType", 8454 "documentation":"<p>The user name of the user you want to describe.</p>" 8455 }, 8456 "Attributes":{ 8457 "shape":"AttributeListType", 8458 "documentation":"<p>A container with information about the user type attributes.</p>" 8459 }, 8460 "UserCreateDate":{ 8461 "shape":"DateType", 8462 "documentation":"<p>The creation date of the user.</p>" 8463 }, 8464 "UserLastModifiedDate":{ 8465 "shape":"DateType", 8466 "documentation":"<p>The date and time, in <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO 8601</a> format, when the item was modified.</p>" 8467 }, 8468 "Enabled":{ 8469 "shape":"BooleanType", 8470 "documentation":"<p>Specifies whether the user is enabled.</p>" 8471 }, 8472 "UserStatus":{ 8473 "shape":"UserStatusType", 8474 "documentation":"<p>The user status. This can be one of the following:</p> <ul> <li> <p>UNCONFIRMED - User has been created but not confirmed.</p> </li> <li> <p>CONFIRMED - User has been confirmed.</p> </li> <li> <p>EXTERNAL_PROVIDER - User signed in with a third-party IdP.</p> </li> <li> <p>UNKNOWN - User status isn't known.</p> </li> <li> <p>RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.</p> </li> <li> <p>FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else. </p> </li> </ul>" 8475 }, 8476 "MFAOptions":{ 8477 "shape":"MFAOptionListType", 8478 "documentation":"<p>The MFA options for the user.</p>" 8479 } 8480 }, 8481 "documentation":"<p>A user profile in a Amazon Cognito user pool.</p>" 8482 }, 8483 "UsernameAttributeType":{ 8484 "type":"string", 8485 "enum":[ 8486 "phone_number", 8487 "email" 8488 ] 8489 }, 8490 "UsernameAttributesListType":{ 8491 "type":"list", 8492 "member":{"shape":"UsernameAttributeType"} 8493 }, 8494 "UsernameConfigurationType":{ 8495 "type":"structure", 8496 "required":["CaseSensitive"], 8497 "members":{ 8498 "CaseSensitive":{ 8499 "shape":"WrappedBooleanType", 8500 "documentation":"<p>Specifies whether user name case sensitivity will be applied for all users in the user pool through Amazon Cognito APIs. For most use cases, set case sensitivity to <code>False</code> (case insensitive) as a best practice. When usernames and email addresses are case insensitive, users can sign in as the same user when they enter a different capitalization of their user name.</p> <p>Valid values include:</p> <dl> <dt>True</dt> <dd> <p>Enables case sensitivity for all username input. When this option is set to <code>True</code>, users must sign in using the exact capitalization of their given username, such as “UserName”. This is the default value.</p> </dd> <dt>False</dt> <dd> <p>Enables case insensitivity for all username input. For example, when this option is set to <code>False</code>, users can sign in using <code>username</code>, <code>USERNAME</code>, or <code>UserName</code>. This option also enables both <code>preferred_username</code> and <code>email</code> alias to be case insensitive, in addition to the <code>username</code> attribute.</p> </dd> </dl>" 8501 } 8502 }, 8503 "documentation":"<p>The username configuration type. </p>" 8504 }, 8505 "UsernameExistsException":{ 8506 "type":"structure", 8507 "members":{ 8508 "message":{ 8509 "shape":"MessageType", 8510 "documentation":"<p>The message returned when Amazon Cognito throws a user name exists exception.</p>" 8511 } 8512 }, 8513 "documentation":"<p>This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool.</p>", 8514 "exception":true 8515 }, 8516 "UsernameType":{ 8517 "type":"string", 8518 "max":128, 8519 "min":1, 8520 "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", 8521 "sensitive":true 8522 }, 8523 "UsersListType":{ 8524 "type":"list", 8525 "member":{"shape":"UserType"} 8526 }, 8527 "VerificationMessageTemplateType":{ 8528 "type":"structure", 8529 "members":{ 8530 "SmsMessage":{ 8531 "shape":"SmsVerificationMessageType", 8532 "documentation":"<p>The template for SMS messages that Amazon Cognito sends to your users.</p>" 8533 }, 8534 "EmailMessage":{ 8535 "shape":"EmailVerificationMessageType", 8536 "documentation":"<p>The template for email messages that Amazon Cognito sends to your users. You can set an <code>EmailMessage</code> template only if the value of <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\"> EmailSendingAccount</a> is <code>DEVELOPER</code>. When your <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\">EmailSendingAccount</a> is <code>DEVELOPER</code>, your user pool sends email messages with your own Amazon SES configuration.</p>" 8537 }, 8538 "EmailSubject":{ 8539 "shape":"EmailVerificationSubjectType", 8540 "documentation":"<p>The subject line for the email message template. You can set an <code>EmailSubject</code> template only if the value of <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\"> EmailSendingAccount</a> is <code>DEVELOPER</code>. When your <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\">EmailSendingAccount</a> is <code>DEVELOPER</code>, your user pool sends email messages with your own Amazon SES configuration.</p>" 8541 }, 8542 "EmailMessageByLink":{ 8543 "shape":"EmailVerificationMessageByLinkType", 8544 "documentation":"<p>The email message template for sending a confirmation link to the user. You can set an <code>EmailMessageByLink</code> template only if the value of <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\"> EmailSendingAccount</a> is <code>DEVELOPER</code>. When your <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\">EmailSendingAccount</a> is <code>DEVELOPER</code>, your user pool sends email messages with your own Amazon SES configuration.</p>" 8545 }, 8546 "EmailSubjectByLink":{ 8547 "shape":"EmailVerificationSubjectByLinkType", 8548 "documentation":"<p>The subject line for the email message template for sending a confirmation link to the user. You can set an <code>EmailSubjectByLink</code> template only if the value of <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\"> EmailSendingAccount</a> is <code>DEVELOPER</code>. When your <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount\">EmailSendingAccount</a> is <code>DEVELOPER</code>, your user pool sends email messages with your own Amazon SES configuration.</p>" 8549 }, 8550 "DefaultEmailOption":{ 8551 "shape":"DefaultEmailOptionType", 8552 "documentation":"<p>The default email option.</p>" 8553 } 8554 }, 8555 "documentation":"<p>The template for verification messages.</p>" 8556 }, 8557 "VerifiedAttributeType":{ 8558 "type":"string", 8559 "enum":[ 8560 "phone_number", 8561 "email" 8562 ] 8563 }, 8564 "VerifiedAttributesListType":{ 8565 "type":"list", 8566 "member":{"shape":"VerifiedAttributeType"} 8567 }, 8568 "VerifySoftwareTokenRequest":{ 8569 "type":"structure", 8570 "required":["UserCode"], 8571 "members":{ 8572 "AccessToken":{ 8573 "shape":"TokenModelType", 8574 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose software token you want to verify.</p>" 8575 }, 8576 "Session":{ 8577 "shape":"SessionType", 8578 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service.</p>" 8579 }, 8580 "UserCode":{ 8581 "shape":"SoftwareTokenMFAUserCodeType", 8582 "documentation":"<p>The one- time password computed using the secret code returned by <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AssociateSoftwareToken.html\">AssociateSoftwareToken</a>.</p>" 8583 }, 8584 "FriendlyDeviceName":{ 8585 "shape":"StringType", 8586 "documentation":"<p>The friendly device name.</p>" 8587 } 8588 } 8589 }, 8590 "VerifySoftwareTokenResponse":{ 8591 "type":"structure", 8592 "members":{ 8593 "Status":{ 8594 "shape":"VerifySoftwareTokenResponseType", 8595 "documentation":"<p>The status of the verify software token.</p>" 8596 }, 8597 "Session":{ 8598 "shape":"SessionType", 8599 "documentation":"<p>The session that should be passed both ways in challenge-response calls to the service.</p>" 8600 } 8601 } 8602 }, 8603 "VerifySoftwareTokenResponseType":{ 8604 "type":"string", 8605 "enum":[ 8606 "SUCCESS", 8607 "ERROR" 8608 ] 8609 }, 8610 "VerifyUserAttributeRequest":{ 8611 "type":"structure", 8612 "required":[ 8613 "AccessToken", 8614 "AttributeName", 8615 "Code" 8616 ], 8617 "members":{ 8618 "AccessToken":{ 8619 "shape":"TokenModelType", 8620 "documentation":"<p>A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.</p>" 8621 }, 8622 "AttributeName":{ 8623 "shape":"AttributeNameType", 8624 "documentation":"<p>The attribute name in the request to verify user attributes.</p>" 8625 }, 8626 "Code":{ 8627 "shape":"ConfirmationCodeType", 8628 "documentation":"<p>The verification code in the request to verify user attributes.</p>" 8629 } 8630 }, 8631 "documentation":"<p>Represents the request to verify user attributes.</p>" 8632 }, 8633 "VerifyUserAttributeResponse":{ 8634 "type":"structure", 8635 "members":{ 8636 }, 8637 "documentation":"<p>A container representing the response from the server from the request to verify user attributes.</p>" 8638 }, 8639 "WrappedBooleanType":{"type":"boolean"} 8640 }, 8641 "documentation":"<p>With the Amazon Cognito user pools API, you can configure user pools and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html\">link IdP users to native user profiles</a>. Learn more about the authentication and authorization of federated users at <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html\">Adding user pool sign-in through a third party</a> and in the <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html\">User pool federation endpoints and hosted UI reference</a>.</p> <p>This API reference provides detailed information about API operations and object types in Amazon Cognito.</p> <p>Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side authentication of users. You can interact with operations in the Amazon Cognito user pools API as any of the following subjects.</p> <ol> <li> <p>An administrator who wants to configure user pools, app clients, users, groups, or other user pool functions.</p> </li> <li> <p>A server-side app, like a web application, that wants to use its Amazon Web Services privileges to manage, authenticate, or authorize a user.</p> </li> <li> <p>A client-side app, like a mobile app, that wants to make unauthenticated requests to manage, authenticate, or authorize a user.</p> </li> </ol> <p>For more information, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html\">Using the Amazon Cognito user pools API and user pool endpoints</a> in the <i>Amazon Cognito Developer Guide</i>.</p> <p>With your Amazon Web Services SDK, you can build the logic to support operational flows in every use case for this API. You can also make direct REST API requests to <a href=\"https://docs.aws.amazon.com/general/latest/gr/cognito_identity.html#cognito_identity_your_user_pools_region\">Amazon Cognito user pools service endpoints</a>. The following links can get you started with the <code>CognitoIdentityProvider</code> client in other supported Amazon Web Services SDKs.</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp\">Amazon Web Services Command Line Interface</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CognitoIdentityProvider/TCognitoIdentityProviderClient.html\">Amazon Web Services SDK for .NET</a> </p> </li> <li> <p> <a href=\"https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-cognito-idp/html/class_aws_1_1_cognito_identity_provider_1_1_cognito_identity_provider_client.html\">Amazon Web Services SDK for C++</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/sdk-for-go/api/service/cognitoidentityprovider/#CognitoIdentityProvider\">Amazon Web Services SDK for Go</a> </p> </li> <li> <p> <a href=\"https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/cognitoidentityprovider/CognitoIdentityProviderClient.html\">Amazon Web Services SDK for Java V2</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html\">Amazon Web Services SDK for JavaScript</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html\">Amazon Web Services SDK for PHP V3</a> </p> </li> <li> <p> <a href=\"https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html\">Amazon Web Services SDK for Python</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html\">Amazon Web Services SDK for Ruby V3</a> </p> </li> </ul> <p>To get started with an Amazon Web Services SDK, see <a href=\"http://aws.amazon.com/developer/tools/\">Tools to Build on Amazon Web Services</a>. For example actions and scenarios, see <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/service_code_examples_cognito-identity-provider.html\">Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs</a>.</p>" 8642} 8643