Skip to content

Commit 553685d

Browse files
authored
feat(aws-android-sdk-cognitoidentityprovider): update models to latest (#2510)
1 parent 020bd96 commit 553685d

37 files changed

+2521
-58
lines changed

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/AmazonCognitoIdentityProvider.java

Lines changed: 410 additions & 5 deletions
Large diffs are not rendered by default.

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/AmazonCognitoIdentityProviderClient.java

Lines changed: 439 additions & 5 deletions
Large diffs are not rendered by default.

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/AdminCreateUserRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,30 @@
2727
* If <code>MessageAction</code> is not set, the default is to send a welcome
2828
* message via email or phone (SMS).
2929
* </p>
30+
* <note>
31+
* <p>
32+
* This action might generate an SMS text message. Starting June 1, 2021, U.S.
33+
* telecom carriers require that you register an origination phone number before
34+
* you can send SMS messages to U.S. phone numbers. If you use SMS text messages
35+
* in Amazon Cognito, you must register a phone number with <a
36+
* href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
37+
* Cognito will use the the registered number automatically. Otherwise, Cognito
38+
* users that must receive SMS messages might be unable to sign up, activate
39+
* their accounts, or sign in.
40+
* </p>
41+
* <p>
42+
* If you have never used SMS text messages with Amazon Cognito or any other AWS
43+
* service, Amazon SNS might place your account in SMS sandbox. In <i> <a
44+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
45+
* mode</a> </i>, you’ll have limitations, such as sending messages to only
46+
* verified phone numbers. After testing in the sandbox environment, you can
47+
* move out of the SMS sandbox and into production. For more information, see <a
48+
* href=
49+
* "https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"
50+
* > SMS message settings for Cognito User Pools</a> in the <i>Amazon Cognito
51+
* Developer Guide</i>.
52+
* </p>
53+
* </note>
3054
* <p>
3155
* This message is based on a template that you configured in your call to
3256
* create or update a user pool. This template includes your custom sign-up

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/AdminInitiateAuthRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@
2323
* <p>
2424
* Initiates the authentication flow, as an administrator.
2525
* </p>
26+
* <note>
27+
* <p>
28+
* This action might generate an SMS text message. Starting June 1, 2021, U.S.
29+
* telecom carriers require that you register an origination phone number before
30+
* you can send SMS messages to U.S. phone numbers. If you use SMS text messages
31+
* in Amazon Cognito, you must register a phone number with <a
32+
* href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
33+
* Cognito will use the the registered number automatically. Otherwise, Cognito
34+
* users that must receive SMS messages might be unable to sign up, activate
35+
* their accounts, or sign in.
36+
* </p>
37+
* <p>
38+
* If you have never used SMS text messages with Amazon Cognito or any other AWS
39+
* service, Amazon SNS might place your account in SMS sandbox. In <i> <a
40+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
41+
* mode</a> </i>, you’ll have limitations, such as sending messages to only
42+
* verified phone numbers. After testing in the sandbox environment, you can
43+
* move out of the SMS sandbox and into production. For more information, see <a
44+
* href=
45+
* "https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"
46+
* > SMS message settings for Cognito User Pools</a> in the <i>Amazon Cognito
47+
* Developer Guide</i>.
48+
* </p>
49+
* </note>
2650
* <p>
2751
* Calling this action requires developer credentials.
2852
* </p>

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/AdminResetUserPasswordRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,30 @@
3535
* result in sending a message to the end user with the code to change their
3636
* password.
3737
* </p>
38+
* <note>
39+
* <p>
40+
* This action might generate an SMS text message. Starting June 1, 2021, U.S.
41+
* telecom carriers require that you register an origination phone number before
42+
* you can send SMS messages to U.S. phone numbers. If you use SMS text messages
43+
* in Amazon Cognito, you must register a phone number with <a
44+
* href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
45+
* Cognito will use the the registered number automatically. Otherwise, Cognito
46+
* users that must receive SMS messages might be unable to sign up, activate
47+
* their accounts, or sign in.
48+
* </p>
49+
* <p>
50+
* If you have never used SMS text messages with Amazon Cognito or any other AWS
51+
* service, Amazon SNS might place your account in SMS sandbox. In <i> <a
52+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
53+
* mode</a> </i>, you’ll have limitations, such as sending messages to only
54+
* verified phone numbers. After testing in the sandbox environment, you can
55+
* move out of the SMS sandbox and into production. For more information, see <a
56+
* href=
57+
* "https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"
58+
* > SMS message settings for Cognito User Pools</a> in the <i>Amazon Cognito
59+
* Developer Guide</i>.
60+
* </p>
61+
* </note>
3862
* <p>
3963
* Calling this action requires developer credentials.
4064
* </p>

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/AdminRespondToAuthChallengeRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@
2323
* <p>
2424
* Responds to an authentication challenge, as an administrator.
2525
* </p>
26+
* <note>
27+
* <p>
28+
* This action might generate an SMS text message. Starting June 1, 2021, U.S.
29+
* telecom carriers require that you register an origination phone number before
30+
* you can send SMS messages to U.S. phone numbers. If you use SMS text messages
31+
* in Amazon Cognito, you must register a phone number with <a
32+
* href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
33+
* Cognito will use the the registered number automatically. Otherwise, Cognito
34+
* users that must receive SMS messages might be unable to sign up, activate
35+
* their accounts, or sign in.
36+
* </p>
37+
* <p>
38+
* If you have never used SMS text messages with Amazon Cognito or any other AWS
39+
* service, Amazon SNS might place your account in SMS sandbox. In <i> <a
40+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
41+
* mode</a> </i>, you’ll have limitations, such as sending messages to only
42+
* verified phone numbers. After testing in the sandbox environment, you can
43+
* move out of the SMS sandbox and into production. For more information, see <a
44+
* href=
45+
* "https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"
46+
* > SMS message settings for Cognito User Pools</a> in the <i>Amazon Cognito
47+
* Developer Guide</i>.
48+
* </p>
49+
* </note>
2650
* <p>
2751
* Calling this action requires developer credentials.
2852
* </p>

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/AdminUpdateUserAttributesRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@
3232
* In addition to updating user attributes, this API can also be used to mark
3333
* phone and email as verified.
3434
* </p>
35+
* <note>
36+
* <p>
37+
* This action might generate an SMS text message. Starting June 1, 2021, U.S.
38+
* telecom carriers require that you register an origination phone number before
39+
* you can send SMS messages to U.S. phone numbers. If you use SMS text messages
40+
* in Amazon Cognito, you must register a phone number with <a
41+
* href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
42+
* Cognito will use the the registered number automatically. Otherwise, Cognito
43+
* users that must receive SMS messages might be unable to sign up, activate
44+
* their accounts, or sign in.
45+
* </p>
46+
* <p>
47+
* If you have never used SMS text messages with Amazon Cognito or any other AWS
48+
* service, Amazon SNS might place your account in SMS sandbox. In <i> <a
49+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
50+
* mode</a> </i>, you’ll have limitations, such as sending messages to only
51+
* verified phone numbers. After testing in the sandbox environment, you can
52+
* move out of the SMS sandbox and into production. For more information, see <a
53+
* href=
54+
* "https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"
55+
* > SMS message settings for Cognito User Pools</a> in the <i>Amazon Cognito
56+
* Developer Guide</i>.
57+
* </p>
58+
* </note>
3559
* <p>
3660
* Calling this action requires developer credentials.
3761
* </p>

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/AssociateSoftwareTokenRequest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
* Returns a unique generated shared secret key code for the user account. The
2525
* request takes an access token or a session string, but not both.
2626
* </p>
27+
* <note>
28+
* <p>
29+
* Calling AssociateSoftwareToken immediately disassociates the existing
30+
* software token from the user account. If the user doesn't subsequently verify
31+
* the software token, their account is essentially set up to authenticate
32+
* without MFA. If MFA config is set to Optional at the user pool level, the
33+
* user can then login without MFA. However, if MFA is set to Required for the
34+
* user pool, the user will be asked to setup a new software token MFA during
35+
* sign in.
36+
* </p>
37+
* </note>
2738
*/
2839
public class AssociateSoftwareTokenRequest extends AmazonWebServiceRequest implements Serializable {
2940
/**

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/CreateUserPoolClientRequest.java

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
* <p>
2424
* Creates the user pool client.
2525
* </p>
26+
* <p>
27+
* When you create a new user pool client, token revocation is automatically
28+
* enabled. For more information about revoking tokens, see <a href=
29+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
30+
* >RevokeToken</a>.
31+
* </p>
2632
*/
2733
public class CreateUserPoolClientRequest extends AmazonWebServiceRequest implements Serializable {
2834
/**
@@ -368,6 +374,20 @@ public class CreateUserPoolClientRequest extends AmazonWebServiceRequest impleme
368374
*/
369375
private String preventUserExistenceErrors;
370376

377+
/**
378+
* <p>
379+
* Enables or disables token revocation. For more information about revoking
380+
* tokens, see <a href=
381+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
382+
* >RevokeToken</a>.
383+
* </p>
384+
* <p>
385+
* If you don't include this parameter, token revocation is automatically
386+
* enabled for the new user pool client.
387+
* </p>
388+
*/
389+
private Boolean enableTokenRevocation;
390+
371391
/**
372392
* <p>
373393
* The user pool ID for the user pool where you want to create a user pool
@@ -3149,6 +3169,120 @@ public CreateUserPoolClientRequest withPreventUserExistenceErrors(
31493169
return this;
31503170
}
31513171

3172+
/**
3173+
* <p>
3174+
* Enables or disables token revocation. For more information about revoking
3175+
* tokens, see <a href=
3176+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3177+
* >RevokeToken</a>.
3178+
* </p>
3179+
* <p>
3180+
* If you don't include this parameter, token revocation is automatically
3181+
* enabled for the new user pool client.
3182+
* </p>
3183+
*
3184+
* @return <p>
3185+
* Enables or disables token revocation. For more information about
3186+
* revoking tokens, see <a href=
3187+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3188+
* >RevokeToken</a>.
3189+
* </p>
3190+
* <p>
3191+
* If you don't include this parameter, token revocation is
3192+
* automatically enabled for the new user pool client.
3193+
* </p>
3194+
*/
3195+
public Boolean isEnableTokenRevocation() {
3196+
return enableTokenRevocation;
3197+
}
3198+
3199+
/**
3200+
* <p>
3201+
* Enables or disables token revocation. For more information about revoking
3202+
* tokens, see <a href=
3203+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3204+
* >RevokeToken</a>.
3205+
* </p>
3206+
* <p>
3207+
* If you don't include this parameter, token revocation is automatically
3208+
* enabled for the new user pool client.
3209+
* </p>
3210+
*
3211+
* @return <p>
3212+
* Enables or disables token revocation. For more information about
3213+
* revoking tokens, see <a href=
3214+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3215+
* >RevokeToken</a>.
3216+
* </p>
3217+
* <p>
3218+
* If you don't include this parameter, token revocation is
3219+
* automatically enabled for the new user pool client.
3220+
* </p>
3221+
*/
3222+
public Boolean getEnableTokenRevocation() {
3223+
return enableTokenRevocation;
3224+
}
3225+
3226+
/**
3227+
* <p>
3228+
* Enables or disables token revocation. For more information about revoking
3229+
* tokens, see <a href=
3230+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3231+
* >RevokeToken</a>.
3232+
* </p>
3233+
* <p>
3234+
* If you don't include this parameter, token revocation is automatically
3235+
* enabled for the new user pool client.
3236+
* </p>
3237+
*
3238+
* @param enableTokenRevocation <p>
3239+
* Enables or disables token revocation. For more information
3240+
* about revoking tokens, see <a href=
3241+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3242+
* >RevokeToken</a>.
3243+
* </p>
3244+
* <p>
3245+
* If you don't include this parameter, token revocation is
3246+
* automatically enabled for the new user pool client.
3247+
* </p>
3248+
*/
3249+
public void setEnableTokenRevocation(Boolean enableTokenRevocation) {
3250+
this.enableTokenRevocation = enableTokenRevocation;
3251+
}
3252+
3253+
/**
3254+
* <p>
3255+
* Enables or disables token revocation. For more information about revoking
3256+
* tokens, see <a href=
3257+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3258+
* >RevokeToken</a>.
3259+
* </p>
3260+
* <p>
3261+
* If you don't include this parameter, token revocation is automatically
3262+
* enabled for the new user pool client.
3263+
* </p>
3264+
* <p>
3265+
* Returns a reference to this object so that method calls can be chained
3266+
* together.
3267+
*
3268+
* @param enableTokenRevocation <p>
3269+
* Enables or disables token revocation. For more information
3270+
* about revoking tokens, see <a href=
3271+
* "https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html"
3272+
* >RevokeToken</a>.
3273+
* </p>
3274+
* <p>
3275+
* If you don't include this parameter, token revocation is
3276+
* automatically enabled for the new user pool client.
3277+
* </p>
3278+
* @return A reference to this updated object so that method calls can be
3279+
* chained together.
3280+
*/
3281+
public CreateUserPoolClientRequest withEnableTokenRevocation(Boolean enableTokenRevocation) {
3282+
this.enableTokenRevocation = enableTokenRevocation;
3283+
return this;
3284+
}
3285+
31523286
/**
31533287
* Returns a string representation of this object; useful for testing and
31543288
* debugging.
@@ -3198,7 +3332,9 @@ public String toString() {
31983332
if (getAnalyticsConfiguration() != null)
31993333
sb.append("AnalyticsConfiguration: " + getAnalyticsConfiguration() + ",");
32003334
if (getPreventUserExistenceErrors() != null)
3201-
sb.append("PreventUserExistenceErrors: " + getPreventUserExistenceErrors());
3335+
sb.append("PreventUserExistenceErrors: " + getPreventUserExistenceErrors() + ",");
3336+
if (getEnableTokenRevocation() != null)
3337+
sb.append("EnableTokenRevocation: " + getEnableTokenRevocation());
32023338
sb.append("}");
32033339
return sb.toString();
32043340
}
@@ -3251,6 +3387,9 @@ public int hashCode() {
32513387
* hashCode
32523388
+ ((getPreventUserExistenceErrors() == null) ? 0 : getPreventUserExistenceErrors()
32533389
.hashCode());
3390+
hashCode = prime
3391+
* hashCode
3392+
+ ((getEnableTokenRevocation() == null) ? 0 : getEnableTokenRevocation().hashCode());
32543393
return hashCode;
32553394
}
32563395

@@ -3366,6 +3505,11 @@ public boolean equals(Object obj) {
33663505
&& other.getPreventUserExistenceErrors().equals(
33673506
this.getPreventUserExistenceErrors()) == false)
33683507
return false;
3508+
if (other.getEnableTokenRevocation() == null ^ this.getEnableTokenRevocation() == null)
3509+
return false;
3510+
if (other.getEnableTokenRevocation() != null
3511+
&& other.getEnableTokenRevocation().equals(this.getEnableTokenRevocation()) == false)
3512+
return false;
33693513
return true;
33703514
}
33713515
}

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/CreateUserPoolRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@
2424
* Creates a new Amazon Cognito user pool and sets the password policy for the
2525
* pool.
2626
* </p>
27+
* <note>
28+
* <p>
29+
* This action might generate an SMS text message. Starting June 1, 2021, U.S.
30+
* telecom carriers require that you register an origination phone number before
31+
* you can send SMS messages to U.S. phone numbers. If you use SMS text messages
32+
* in Amazon Cognito, you must register a phone number with <a
33+
* href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
34+
* Cognito will use the the registered number automatically. Otherwise, Cognito
35+
* users that must receive SMS messages might be unable to sign up, activate
36+
* their accounts, or sign in.
37+
* </p>
38+
* <p>
39+
* If you have never used SMS text messages with Amazon Cognito or any other AWS
40+
* service, Amazon SNS might place your account in SMS sandbox. In <i> <a
41+
* href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
42+
* mode</a> </i>, you’ll have limitations, such as sending messages to only
43+
* verified phone numbers. After testing in the sandbox environment, you can
44+
* move out of the SMS sandbox and into production. For more information, see <a
45+
* href=
46+
* "https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"
47+
* > SMS message settings for Cognito User Pools</a> in the <i>Amazon Cognito
48+
* Developer Guide</i>.
49+
* </p>
50+
* </note>
2751
*/
2852
public class CreateUserPoolRequest extends AmazonWebServiceRequest implements Serializable {
2953
/**

0 commit comments

Comments
 (0)