Skip to content

Commit

Permalink
feat(client-cognito-identity-provider): Add LimitExceededException to…
Browse files Browse the repository at this point in the history
… SignUp errors
  • Loading branch information
awstools committed Apr 26, 2024
1 parent 3235950 commit 633da5a
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export interface CreateIdentityProviderCommandInput extends CreateIdentityProvid
export interface CreateIdentityProviderCommandOutput extends CreateIdentityProviderResponse, __MetadataBearer {}

/**
* <p>Adds a configuration and trust relationship between a third-party identity provider (IdP) and a user pool.</p>
* <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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ export interface SignUpCommandOutput extends SignUpResponse, __MetadataBearer {}
* <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>
*
* @throws {@link LimitExceededException} (client fault)
* <p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services
* resource.</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>This exception is thrown when a user isn't authorized.</p>
*
Expand Down
102 changes: 68 additions & 34 deletions clients/client-cognito-identity-provider/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export interface NumberAttributeConstraintsType {

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

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

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
UserLastModifiedDate?: Date;
Expand Down Expand Up @@ -1555,7 +1556,8 @@ export interface DeviceType {
DeviceCreateDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
DeviceLastModifiedDate?: Date;
Expand Down Expand Up @@ -1627,7 +1629,8 @@ export interface AdminGetUserResponse {
UserCreateDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
UserLastModifiedDate?: Date;
Expand Down Expand Up @@ -2451,13 +2454,15 @@ export interface GroupType {
Precedence?: number;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -2745,7 +2750,8 @@ export interface AuthEventType {
EventType?: EventType;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -4521,13 +4527,15 @@ export interface IdentityProviderType {
IdpIdentifiers?: string[];

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -4594,9 +4602,12 @@ export interface CreateResourceServerRequest {
UserPoolId: string | undefined;

/**
* <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>
* <p>A unique resource server identifier for the resource server. The identifier can be an
* API friendly name like <code>solar-system-data</code>. You can also set an API URL like
* <code>https://solar-system-data-api.example.com</code> as your identifier.</p>
* <p>Amazon Cognito represents scopes in the access token in the format
* <code>$resource-server-identifier/$scope</code>. Longer scope-identifier strings
* increase the size of your access tokens.</p>
* @public
*/
Identifier: string | undefined;
Expand Down Expand Up @@ -4627,7 +4638,12 @@ export interface ResourceServerType {
UserPoolId?: string;

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

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -5784,13 +5801,15 @@ export interface UserPoolType {
Status?: StatusType;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -6363,7 +6382,9 @@ export interface CreateUserPoolClientRequest {
LogoutURLs?: string[];

/**
* <p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p>
* <p>The default redirect URI. In app clients with one assigned IdP, replaces
* <code>redirect_uri</code> in authentication requests. Must be in the
* <code>CallbackURLs</code> list.</p>
* <p>A redirect URI must:</p>
* <ul>
* <li>
Expand All @@ -6376,8 +6397,7 @@ export interface CreateUserPoolClientRequest {
* <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>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>
* <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>
Expand Down Expand Up @@ -6549,13 +6569,15 @@ export interface UserPoolClientType {
ClientSecret?: string;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -7217,7 +7239,12 @@ export interface DescribeResourceServerRequest {
UserPoolId: string | undefined;

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

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;
Expand Down Expand Up @@ -8021,13 +8049,15 @@ export interface UICustomizationType {
CSSVersion?: string;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -8699,7 +8729,8 @@ export interface ProviderDescription {
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -8955,13 +8986,15 @@ export interface UserPoolDescriptionType {
Status?: StatusType;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
LastModifiedDate?: Date;

/**
* <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>
* <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
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
* @public
*/
CreationDate?: Date;
Expand Down Expand Up @@ -9030,8 +9063,8 @@ export interface ListUsersRequest {
/**
* <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 (<code>\</code>) character. For example,
* <code>"family_name = \"Reddy\""</code>.</p>
* within the filter string must be escaped using the backslash (<code>\</code>) character.
* For example, <code>"family_name = \"Reddy\""</code>.</p>
* <ul>
* <li>
* <p>
Expand All @@ -9040,9 +9073,10 @@ export interface ListUsersRequest {
* </li>
* <li>
* <p>
* <i>Filter-Type</i>: For an exact match, use <code>=</code>, for example,
* "<code>given_name = \"Jon\"</code>". For a prefix ("starts with") match, use
* <code>^=</code>, for example, "<code>given_name ^= \"Jon\"</code>". </p>
* <i>Filter-Type</i>: For an exact match, use <code>=</code>, for
* example, "<code>given_name = \"Jon\"</code>". For a prefix ("starts with")
* match, use <code>^=</code>, for example, "<code>given_name ^= \"Jon\"</code>".
* </p>
* </li>
* <li>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,12 @@ export interface UpdateResourceServerRequest {
UserPoolId: string | undefined;

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

0 comments on commit 633da5a

Please sign in to comment.