Skip to content

Commit 633da5a

Browse files
author
awstools
committed
feat(client-cognito-identity-provider): Add LimitExceededException to SignUp errors
1 parent 3235950 commit 633da5a

File tree

5 files changed

+111
-64
lines changed

5 files changed

+111
-64
lines changed

Diff for: clients/client-cognito-identity-provider/src/commands/CreateIdentityProviderCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export interface CreateIdentityProviderCommandInput extends CreateIdentityProvid
3131
export interface CreateIdentityProviderCommandOutput extends CreateIdentityProviderResponse, __MetadataBearer {}
3232

3333
/**
34-
* <p>Adds a configuration and trust relationship between a third-party identity provider (IdP) and a user pool.</p>
34+
* <p>Adds a configuration and trust relationship between a third-party identity provider
35+
* (IdP) and a user pool.</p>
3536
* <note>
3637
* <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
3738
* this operation, you must use IAM credentials to authorize requests, and you must

Diff for: clients/client-cognito-identity-provider/src/commands/SignUpCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ export interface SignUpCommandOutput extends SignUpResponse, __MetadataBearer {}
145145
* <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
146146
* not match what is provided in the SMS configuration for the user pool.</p>
147147
*
148+
* @throws {@link LimitExceededException} (client fault)
149+
* <p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services
150+
* resource.</p>
151+
*
148152
* @throws {@link NotAuthorizedException} (client fault)
149153
* <p>This exception is thrown when a user isn't authorized.</p>
150154
*

Diff for: clients/client-cognito-identity-provider/src/models/models_0.ts

+68-34
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export interface NumberAttributeConstraintsType {
247247

248248
/**
249249
* <p>The maximum length of a number attribute value. Must be a number less than or equal to
250-
* <code>2^1023</code>, represented as a string with a length of 131072 characters or
250+
* <code>2^1023</code>, represented as a string with a length of 131072 characters or
251251
* fewer.</p>
252252
* @public
253253
*/
@@ -267,7 +267,7 @@ export interface StringAttributeConstraintsType {
267267

268268
/**
269269
* <p>The maximum length of a string attribute value. Must be a number less than or equal to
270-
* <code>2^1023</code>, represented as a string with a length of 131072 characters or
270+
* <code>2^1023</code>, represented as a string with a length of 131072 characters or
271271
* fewer.</p>
272272
* @public
273273
*/
@@ -1002,7 +1002,8 @@ export interface UserType {
10021002
UserCreateDate?: Date;
10031003

10041004
/**
1005-
* <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>
1005+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
1006+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
10061007
* @public
10071008
*/
10081009
UserLastModifiedDate?: Date;
@@ -1555,7 +1556,8 @@ export interface DeviceType {
15551556
DeviceCreateDate?: Date;
15561557

15571558
/**
1558-
* <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>
1559+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
1560+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
15591561
* @public
15601562
*/
15611563
DeviceLastModifiedDate?: Date;
@@ -1627,7 +1629,8 @@ export interface AdminGetUserResponse {
16271629
UserCreateDate?: Date;
16281630

16291631
/**
1630-
* <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>
1632+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
1633+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
16311634
* @public
16321635
*/
16331636
UserLastModifiedDate?: Date;
@@ -2451,13 +2454,15 @@ export interface GroupType {
24512454
Precedence?: number;
24522455

24532456
/**
2454-
* <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>
2457+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
2458+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
24552459
* @public
24562460
*/
24572461
LastModifiedDate?: Date;
24582462

24592463
/**
2460-
* <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>
2464+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
2465+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
24612466
* @public
24622467
*/
24632468
CreationDate?: Date;
@@ -2745,7 +2750,8 @@ export interface AuthEventType {
27452750
EventType?: EventType;
27462751

27472752
/**
2748-
* <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>
2753+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
2754+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
27492755
* @public
27502756
*/
27512757
CreationDate?: Date;
@@ -4521,13 +4527,15 @@ export interface IdentityProviderType {
45214527
IdpIdentifiers?: string[];
45224528

45234529
/**
4524-
* <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>
4530+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
4531+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
45254532
* @public
45264533
*/
45274534
LastModifiedDate?: Date;
45284535

45294536
/**
4530-
* <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>
4537+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
4538+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
45314539
* @public
45324540
*/
45334541
CreationDate?: Date;
@@ -4594,9 +4602,12 @@ export interface CreateResourceServerRequest {
45944602
UserPoolId: string | undefined;
45954603

45964604
/**
4597-
* <p>A unique resource server identifier for the resource server. This could be an HTTPS
4598-
* endpoint where the resource server is located, such as
4599-
* <code>https://my-weather-api.example.com</code>.</p>
4605+
* <p>A unique resource server identifier for the resource server. The identifier can be an
4606+
* API friendly name like <code>solar-system-data</code>. You can also set an API URL like
4607+
* <code>https://solar-system-data-api.example.com</code> as your identifier.</p>
4608+
* <p>Amazon Cognito represents scopes in the access token in the format
4609+
* <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings
4610+
* increase the size of your access tokens.</p>
46004611
* @public
46014612
*/
46024613
Identifier: string | undefined;
@@ -4627,7 +4638,12 @@ export interface ResourceServerType {
46274638
UserPoolId?: string;
46284639

46294640
/**
4630-
* <p>The identifier for the resource server.</p>
4641+
* <p>A unique resource server identifier for the resource server. The identifier can be an
4642+
* API friendly name like <code>solar-system-data</code>. You can also set an API URL like
4643+
* <code>https://solar-system-data-api.example.com</code> as your identifier.</p>
4644+
* <p>Amazon Cognito represents scopes in the access token in the format
4645+
* <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings
4646+
* increase the size of your access tokens.</p>
46314647
* @public
46324648
*/
46334649
Identifier?: string;
@@ -4730,7 +4746,8 @@ export interface UserImportJobType {
47304746
PreSignedUrl?: string;
47314747

47324748
/**
4733-
* <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>
4749+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
4750+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
47344751
* @public
47354752
*/
47364753
CreationDate?: Date;
@@ -5784,13 +5801,15 @@ export interface UserPoolType {
57845801
Status?: StatusType;
57855802

57865803
/**
5787-
* <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>
5804+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
5805+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
57885806
* @public
57895807
*/
57905808
LastModifiedDate?: Date;
57915809

57925810
/**
5793-
* <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>
5811+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
5812+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
57945813
* @public
57955814
*/
57965815
CreationDate?: Date;
@@ -6363,7 +6382,9 @@ export interface CreateUserPoolClientRequest {
63636382
LogoutURLs?: string[];
63646383

63656384
/**
6366-
* <p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p>
6385+
* <p>The default redirect URI. In app clients with one assigned IdP, replaces
6386+
* <code>redirect_uri</code> in authentication requests. Must be in the
6387+
* <code>CallbackURLs</code> list.</p>
63676388
* <p>A redirect URI must:</p>
63686389
* <ul>
63696390
* <li>
@@ -6376,8 +6397,7 @@ export interface CreateUserPoolClientRequest {
63766397
* <p>Not include a fragment component.</p>
63776398
* </li>
63786399
* </ul>
6379-
* <p>See <a href="https://tools.ietf.org/html/rfc6749#section-3.1.2">OAuth 2.0 -
6380-
* Redirection Endpoint</a>.</p>
6400+
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about">Default redirect URI</a>.</p>
63816401
* <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes
63826402
* only.</p>
63836403
* <p>App callback URLs such as myapp://example are also supported.</p>
@@ -6549,13 +6569,15 @@ export interface UserPoolClientType {
65496569
ClientSecret?: string;
65506570

65516571
/**
6552-
* <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>
6572+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
6573+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
65536574
* @public
65546575
*/
65556576
LastModifiedDate?: Date;
65566577

65576578
/**
6558-
* <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>
6579+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
6580+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
65596581
* @public
65606582
*/
65616583
CreationDate?: Date;
@@ -7217,7 +7239,12 @@ export interface DescribeResourceServerRequest {
72177239
UserPoolId: string | undefined;
72187240

72197241
/**
7220-
* <p>The identifier for the resource server</p>
7242+
* <p>A unique resource server identifier for the resource server. The identifier can be an
7243+
* API friendly name like <code>solar-system-data</code>. You can also set an API URL like
7244+
* <code>https://solar-system-data-api.example.com</code> as your identifier.</p>
7245+
* <p>Amazon Cognito represents scopes in the access token in the format
7246+
* <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings
7247+
* increase the size of your access tokens.</p>
72217248
* @public
72227249
*/
72237250
Identifier: string | undefined;
@@ -7372,7 +7399,8 @@ export interface RiskConfigurationType {
73727399
RiskExceptionConfiguration?: RiskExceptionConfigurationType;
73737400

73747401
/**
7375-
* <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>
7402+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
7403+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
73767404
* @public
73777405
*/
73787406
LastModifiedDate?: Date;
@@ -8021,13 +8049,15 @@ export interface UICustomizationType {
80218049
CSSVersion?: string;
80228050

80238051
/**
8024-
* <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>
8052+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
8053+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
80258054
* @public
80268055
*/
80278056
LastModifiedDate?: Date;
80288057

80298058
/**
8030-
* <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>
8059+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
8060+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
80318061
* @public
80328062
*/
80338063
CreationDate?: Date;
@@ -8699,7 +8729,8 @@ export interface ProviderDescription {
86998729
LastModifiedDate?: Date;
87008730

87018731
/**
8702-
* <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>
8732+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
8733+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
87038734
* @public
87048735
*/
87058736
CreationDate?: Date;
@@ -8955,13 +8986,15 @@ export interface UserPoolDescriptionType {
89558986
Status?: StatusType;
89568987

89578988
/**
8958-
* <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>
8989+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
8990+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
89598991
* @public
89608992
*/
89618993
LastModifiedDate?: Date;
89628994

89638995
/**
8964-
* <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>
8996+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
8997+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
89658998
* @public
89668999
*/
89679000
CreationDate?: Date;
@@ -9030,8 +9063,8 @@ export interface ListUsersRequest {
90309063
/**
90319064
* <p>A filter string of the form "<i>AttributeName</i>
90329065
* <i>Filter-Type</i> "<i>AttributeValue</i>"". Quotation marks
9033-
* within the filter string must be escaped using the backslash (<code>\</code>) character. For example,
9034-
* <code>"family_name = \"Reddy\""</code>.</p>
9066+
* within the filter string must be escaped using the backslash (<code>\</code>) character.
9067+
* For example, <code>"family_name = \"Reddy\""</code>.</p>
90359068
* <ul>
90369069
* <li>
90379070
* <p>
@@ -9040,9 +9073,10 @@ export interface ListUsersRequest {
90409073
* </li>
90419074
* <li>
90429075
* <p>
9043-
* <i>Filter-Type</i>: For an exact match, use <code>=</code>, for example,
9044-
* "<code>given_name = \"Jon\"</code>". For a prefix ("starts with") match, use
9045-
* <code>^=</code>, for example, "<code>given_name ^= \"Jon\"</code>". </p>
9076+
* <i>Filter-Type</i>: For an exact match, use <code>=</code>, for
9077+
* example, "<code>given_name = \"Jon\"</code>". For a prefix ("starts with")
9078+
* match, use <code>^=</code>, for example, "<code>given_name ^= \"Jon\"</code>".
9079+
* </p>
90469080
* </li>
90479081
* <li>
90489082
* <p>

Diff for: clients/client-cognito-identity-provider/src/models/models_1.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,12 @@ export interface UpdateResourceServerRequest {
836836
UserPoolId: string | undefined;
837837

838838
/**
839-
* <p>The identifier for the resource server.</p>
839+
* <p>A unique resource server identifier for the resource server. The identifier can be an
840+
* API friendly name like <code>solar-system-data</code>. You can also set an API URL like
841+
* <code>https://solar-system-data-api.example.com</code> as your identifier.</p>
842+
* <p>Amazon Cognito represents scopes in the access token in the format
843+
* <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings
844+
* increase the size of your access tokens.</p>
840845
* @public
841846
*/
842847
Identifier: string | undefined;

0 commit comments

Comments
 (0)