Skip to content

Commit 556a249

Browse files
feat(aws-android-sdk-cognitoidentityprovider): update models to latest (#3045)
Co-authored-by: Divyesh Chitroda <[email protected]>
1 parent 5ab7a95 commit 556a249

23 files changed

+2038
-621
lines changed

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

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,13 @@ AdminDisableProviderForUserResult adminDisableProviderForUser(
408408

409409
/**
410410
* <p>
411-
* Disables the specified user.
411+
* Deactivates a user and revokes all access tokens for the user. A
412+
* deactivated user can't sign in, but still appears in the responses to
413+
* <code>GetUser</code> and <code>ListUsers</code> API requests.
412414
* </p>
413415
* <p>
414-
* Calling this action requires developer credentials.
416+
* You must make this API request with Amazon Web Services credentials that
417+
* have <code>cognito-idp:AdminDisableUser</code> permissions.
415418
* </p>
416419
*
417420
* @param adminDisableUserRequest <p>
@@ -1687,6 +1690,7 @@ void deleteGroup(DeleteGroupRequest deleteGroupRequest) throws AmazonClientExcep
16871690
* @param deleteIdentityProviderRequest
16881691
* @throws InvalidParameterException
16891692
* @throws UnsupportedIdentityProviderException
1693+
* @throws ConcurrentModificationException
16901694
* @throws ResourceNotFoundException
16911695
* @throws NotAuthorizedException
16921696
* @throws TooManyRequestsException
@@ -1821,6 +1825,7 @@ void deleteUserPool(DeleteUserPoolRequest deleteUserPoolRequest) throws AmazonCl
18211825
* @throws InvalidParameterException
18221826
* @throws TooManyRequestsException
18231827
* @throws NotAuthorizedException
1828+
* @throws ConcurrentModificationException
18241829
* @throws InternalErrorException
18251830
* @throws AmazonClientException If any internal errors are encountered
18261831
* inside the client while attempting to make the request or
@@ -2263,6 +2268,13 @@ GetIdentityProviderByIdentifierResult getIdentityProviderByIdentifier(
22632268
/**
22642269
* <p>
22652270
* This method takes a user pool ID, and returns the signing certificate.
2271+
* The issued certificate is valid for 10 years from the date of issue.
2272+
* </p>
2273+
* <p>
2274+
* Amazon Cognito issues and assigns a new signing certificate annually.
2275+
* This process returns a new value in the response to
2276+
* <code>GetSigningCertificate</code>, but doesn't invalidate the original
2277+
* certificate.
22662278
* </p>
22672279
*
22682280
* @param getSigningCertificateRequest <p>
@@ -2441,11 +2453,9 @@ GetUserPoolMfaConfigResult getUserPoolMfaConfig(
24412453
/**
24422454
* <p>
24432455
* Signs out users from all devices. It also invalidates all refresh tokens
2444-
* that Amazon Cognito has issued to a user. The user's current access and
2445-
* ID tokens remain valid until their expiry. By default, access and ID
2446-
* tokens expire one hour after Amazon Cognito issues them. A user can still
2447-
* use a hosted UI cookie to retrieve new tokens for the duration of the
2448-
* cookie validity period of 1 hour.
2456+
* that Amazon Cognito has issued to a user. A user can still use a hosted
2457+
* UI cookie to retrieve new tokens for the duration of the 1-hour cookie
2458+
* validity period.
24492459
* </p>
24502460
*
24512461
* @param globalSignOutRequest <p>
@@ -2949,9 +2959,10 @@ RespondToAuthChallengeResult respondToAuthChallenge(
29492959

29502960
/**
29512961
* <p>
2952-
* Revokes all of the access tokens generated by the specified refresh
2953-
* token. After the token is revoked, you can't use the revoked token to
2954-
* access Amazon Cognito authenticated APIs.
2962+
* Revokes all of the access tokens generated by, and at the same time as,
2963+
* the specified refresh token. After a token is revoked, you can't use the
2964+
* revoked token to access Amazon Cognito user APIs, or to authorize access
2965+
* to your resource server.
29552966
* </p>
29562967
*
29572968
* @param revokeTokenRequest
@@ -3464,6 +3475,7 @@ UpdateGroupResult updateGroup(UpdateGroupRequest updateGroupRequest)
34643475
* @throws InvalidParameterException
34653476
* @throws UnsupportedIdentityProviderException
34663477
* @throws ResourceNotFoundException
3478+
* @throws ConcurrentModificationException
34673479
* @throws NotAuthorizedException
34683480
* @throws TooManyRequestsException
34693481
* @throws InternalErrorException

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

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -894,10 +894,13 @@ public AdminDisableProviderForUserResult adminDisableProviderForUser(
894894

895895
/**
896896
* <p>
897-
* Disables the specified user.
897+
* Deactivates a user and revokes all access tokens for the user. A
898+
* deactivated user can't sign in, but still appears in the responses to
899+
* <code>GetUser</code> and <code>ListUsers</code> API requests.
898900
* </p>
899901
* <p>
900-
* Calling this action requires developer credentials.
902+
* You must make this API request with Amazon Web Services credentials that
903+
* have <code>cognito-idp:AdminDisableUser</code> permissions.
901904
* </p>
902905
*
903906
* @param adminDisableUserRequest <p>
@@ -3040,6 +3043,7 @@ public void deleteGroup(DeleteGroupRequest deleteGroupRequest)
30403043
* @param deleteIdentityProviderRequest
30413044
* @throws InvalidParameterException
30423045
* @throws UnsupportedIdentityProviderException
3046+
* @throws ConcurrentModificationException
30433047
* @throws ResourceNotFoundException
30443048
* @throws NotAuthorizedException
30453049
* @throws TooManyRequestsException
@@ -3287,6 +3291,7 @@ public void deleteUserPool(DeleteUserPoolRequest deleteUserPoolRequest)
32873291
* @throws InvalidParameterException
32883292
* @throws TooManyRequestsException
32893293
* @throws NotAuthorizedException
3294+
* @throws ConcurrentModificationException
32903295
* @throws InternalErrorException
32913296
* @throws AmazonClientException If any internal errors are encountered
32923297
* inside the client while attempting to make the request or
@@ -4118,6 +4123,13 @@ public GetIdentityProviderByIdentifierResult getIdentityProviderByIdentifier(
41184123
/**
41194124
* <p>
41204125
* This method takes a user pool ID, and returns the signing certificate.
4126+
* The issued certificate is valid for 10 years from the date of issue.
4127+
* </p>
4128+
* <p>
4129+
* Amazon Cognito issues and assigns a new signing certificate annually.
4130+
* This process returns a new value in the response to
4131+
* <code>GetSigningCertificate</code>, but doesn't invalidate the original
4132+
* certificate.
41214133
* </p>
41224134
*
41234135
* @param getSigningCertificateRequest <p>
@@ -4431,11 +4443,9 @@ public GetUserPoolMfaConfigResult getUserPoolMfaConfig(
44314443
/**
44324444
* <p>
44334445
* Signs out users from all devices. It also invalidates all refresh tokens
4434-
* that Amazon Cognito has issued to a user. The user's current access and
4435-
* ID tokens remain valid until their expiry. By default, access and ID
4436-
* tokens expire one hour after Amazon Cognito issues them. A user can still
4437-
* use a hosted UI cookie to retrieve new tokens for the duration of the
4438-
* cookie validity period of 1 hour.
4446+
* that Amazon Cognito has issued to a user. A user can still use a hosted
4447+
* UI cookie to retrieve new tokens for the duration of the 1-hour cookie
4448+
* validity period.
44394449
* </p>
44404450
*
44414451
* @param globalSignOutRequest <p>
@@ -5311,9 +5321,10 @@ public RespondToAuthChallengeResult respondToAuthChallenge(
53115321

53125322
/**
53135323
* <p>
5314-
* Revokes all of the access tokens generated by the specified refresh
5315-
* token. After the token is revoked, you can't use the revoked token to
5316-
* access Amazon Cognito authenticated APIs.
5324+
* Revokes all of the access tokens generated by, and at the same time as,
5325+
* the specified refresh token. After a token is revoked, you can't use the
5326+
* revoked token to access Amazon Cognito user APIs, or to authorize access
5327+
* to your resource server.
53175328
* </p>
53185329
*
53195330
* @param revokeTokenRequest
@@ -6202,6 +6213,7 @@ public UpdateGroupResult updateGroup(UpdateGroupRequest updateGroupRequest)
62026213
* @throws InvalidParameterException
62036214
* @throws UnsupportedIdentityProviderException
62046215
* @throws ResourceNotFoundException
6216+
* @throws ConcurrentModificationException
62056217
* @throws NotAuthorizedException
62066218
* @throws TooManyRequestsException
62076219
* @throws InternalErrorException

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@
2121

2222
/**
2323
* <p>
24-
* Disables the specified user.
24+
* Deactivates a user and revokes all access tokens for the user. A deactivated
25+
* user can't sign in, but still appears in the responses to
26+
* <code>GetUser</code> and <code>ListUsers</code> API requests.
2527
* </p>
2628
* <p>
27-
* Calling this action requires developer credentials.
29+
* You must make this API request with Amazon Web Services credentials that have
30+
* <code>cognito-idp:AdminDisableUser</code> permissions.
2831
* </p>
2932
*/
3033
public class AdminDisableUserRequest extends AmazonWebServiceRequest implements Serializable {

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

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public class AdminListUserAuthEventsRequest extends AmazonWebServiceRequest impl
5050

5151
/**
5252
* <p>
53-
* The maximum number of authentication events to return.
53+
* The maximum number of authentication events to return. Returns 60 events
54+
* if you set <code>MaxResults</code> to 0, or if you don't include a
55+
* <code>MaxResults</code> parameter.
5456
* </p>
5557
* <p>
5658
* <b>Constraints:</b><br/>
@@ -185,14 +187,18 @@ public AdminListUserAuthEventsRequest withUsername(String username) {
185187

186188
/**
187189
* <p>
188-
* The maximum number of authentication events to return.
190+
* The maximum number of authentication events to return. Returns 60 events
191+
* if you set <code>MaxResults</code> to 0, or if you don't include a
192+
* <code>MaxResults</code> parameter.
189193
* </p>
190194
* <p>
191195
* <b>Constraints:</b><br/>
192196
* <b>Range: </b>0 - 60<br/>
193197
*
194198
* @return <p>
195-
* The maximum number of authentication events to return.
199+
* The maximum number of authentication events to return. Returns 60
200+
* events if you set <code>MaxResults</code> to 0, or if you don't
201+
* include a <code>MaxResults</code> parameter.
196202
* </p>
197203
*/
198204
public Integer getMaxResults() {
@@ -201,14 +207,18 @@ public Integer getMaxResults() {
201207

202208
/**
203209
* <p>
204-
* The maximum number of authentication events to return.
210+
* The maximum number of authentication events to return. Returns 60 events
211+
* if you set <code>MaxResults</code> to 0, or if you don't include a
212+
* <code>MaxResults</code> parameter.
205213
* </p>
206214
* <p>
207215
* <b>Constraints:</b><br/>
208216
* <b>Range: </b>0 - 60<br/>
209217
*
210218
* @param maxResults <p>
211-
* The maximum number of authentication events to return.
219+
* The maximum number of authentication events to return. Returns
220+
* 60 events if you set <code>MaxResults</code> to 0, or if you
221+
* don't include a <code>MaxResults</code> parameter.
212222
* </p>
213223
*/
214224
public void setMaxResults(Integer maxResults) {
@@ -217,7 +227,9 @@ public void setMaxResults(Integer maxResults) {
217227

218228
/**
219229
* <p>
220-
* The maximum number of authentication events to return.
230+
* The maximum number of authentication events to return. Returns 60 events
231+
* if you set <code>MaxResults</code> to 0, or if you don't include a
232+
* <code>MaxResults</code> parameter.
221233
* </p>
222234
* <p>
223235
* Returns a reference to this object so that method calls can be chained
@@ -227,7 +239,9 @@ public void setMaxResults(Integer maxResults) {
227239
* <b>Range: </b>0 - 60<br/>
228240
*
229241
* @param maxResults <p>
230-
* The maximum number of authentication events to return.
242+
* The maximum number of authentication events to return. Returns
243+
* 60 events if you set <code>MaxResults</code> to 0, or if you
244+
* don't include a <code>MaxResults</code> parameter.
231245
* </p>
232246
* @return A reference to this updated object so that method calls can be
233247
* chained together.

0 commit comments

Comments
 (0)