Skip to content

Commit

Permalink
feat(client-cognito-identity-provider): The UserPoolType Status field…
Browse files Browse the repository at this point in the history
… is no longer used.
  • Loading branch information
awstools committed Sep 27, 2023
1 parent 10647e5 commit 114788d
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 100 deletions.
26 changes: 22 additions & 4 deletions clients/client-cognito-identity-provider/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,23 @@ export interface AdminCreateUserRequest {

/**
* @public
* <p>The username for the user. Must be unique within the user pool. Must be a UTF-8 string
* between 1 and 128 characters. After the user is created, the username can't be
* changed.</p>
* <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>
*/
Username: string | undefined;

Expand Down Expand Up @@ -5556,6 +5570,8 @@ export interface UserPoolType {

/**
* @public
* @deprecated
*
* <p>The status of a user pool.</p>
*/
Status?: StatusType | string;
Expand Down Expand Up @@ -7575,7 +7591,7 @@ export interface CloudWatchLogsConfigurationType {
* 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
* <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>
*/
LogGroupArn?: string;
Expand Down Expand Up @@ -8660,6 +8676,8 @@ export interface UserPoolDescriptionType {

/**
* @public
* @deprecated
*
* <p>The user pool status in a user pool description.</p>
*/
Status?: StatusType | string;
Expand Down
139 changes: 43 additions & 96 deletions codegen/sdk-codegen/aws-models/cognito-identity-provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -1677,9 +1677,7 @@
"input": {
"UserPoolId": "us-east-1_EXAMPLE",
"Username": "testuser",
"DesiredDeliveryMediums": [
"SMS"
],
"DesiredDeliveryMediums": ["SMS"],
"MessageAction": "SUPPRESS",
"TemporaryPassword": "This-is-my-test-99!",
"UserAttributes": [
Expand Down Expand Up @@ -1718,8 +1716,8 @@
}
],
"Enabled": true,
"UserCreateDate": 1689980857.949,
"UserLastModifiedDate": 1689980857.949,
"UserCreateDate": 1.689980857949e9,
"UserLastModifiedDate": 1.689980857949e9,
"UserStatus": "FORCE_CHANGE_PASSWORD",
"Username": "testuser"
}
Expand Down Expand Up @@ -1769,7 +1767,7 @@
"Username": {
"target": "com.amazonaws.cognitoidentityprovider#UsernameType",
"traits": {
"smithy.api#documentation": "<p>The username for the user. Must be unique within the user pool. Must be a UTF-8 string\n between 1 and 128 characters. After the user is created, the username can't be\n changed.</p>",
"smithy.api#documentation": "<p>The value that you want to set as the username sign-in attribute. The following\n conditions apply to the username parameter.</p>\n <ul>\n <li>\n <p>The username can't be a duplicate of another username in the same user\n pool.</p>\n </li>\n <li>\n <p>You can't change the value of a username after you create it.</p>\n </li>\n <li>\n <p>You can only provide a value if usernames are a valid sign-in attribute for\n your user pool. If your user pool only supports phone numbers or email addresses\n as sign-in attributes, Amazon Cognito automatically generates a username value. For more\n 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>\n </li>\n </ul>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -4602,7 +4600,7 @@
"LogGroupArn": {
"target": "com.amazonaws.cognitoidentityprovider#ArnType",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (arn) of a CloudWatch Logs log group where your user pool sends logs.\n The log group must not be encrypted with Key Management Service and must be in the same Amazon Web Services account\n as your user pool.</p>\n <p>To send logs to log groups with a resource policy of a size greater than 5120\n characters, configure a log group with a path that starts with\n <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\n logging from certain Amazon Web Services services</a>.</p>"
"smithy.api#documentation": "<p>The Amazon Resource Name (arn) of a CloudWatch Logs log group where your user pool sends logs.\n The log group must not be encrypted with Key Management Service and must be in the same Amazon Web Services account\n as your user pool.</p>\n <p>To send logs to log groups with a resource policy of a size greater than 5120\n characters, configure a log group with a path that starts with\n <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\n logging from certain Amazon Web Services services</a>.</p>"
}
}
},
Expand Down Expand Up @@ -5583,12 +5581,8 @@
"SMSMessage": "Your username is {username} and temporary password is {####}."
}
},
"AliasAttributes": [
"email"
],
"AutoVerifiedAttributes": [
"email"
],
"AliasAttributes": ["email"],
"AutoVerifiedAttributes": ["email"],
"DeviceConfiguration": {
"ChallengeRequiredOnNewDevice": true,
"DeviceOnlyRememberedOnUserPrompt": true
Expand Down Expand Up @@ -5659,9 +5653,7 @@
},
"SmsVerificationMessage": "Your verification code is {####}.",
"UserAttributeUpdateSettings": {
"AttributesRequireVerificationBeforeUpdate": [
"email"
]
"AttributesRequireVerificationBeforeUpdate": ["email"]
},
"UsernameConfiguration": {
"CaseSensitive": true
Expand Down Expand Up @@ -5700,14 +5692,10 @@
},
"UnusedAccountValidityDays": 7
},
"AliasAttributes": [
"email"
],
"AliasAttributes": ["email"],
"Arn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_EXAMPLE",
"AutoVerifiedAttributes": [
"email"
],
"CreationDate": 1689721665.239,
"AutoVerifiedAttributes": ["email"],
"CreationDate": 1.689721665239e9,
"DeletionProtection": "ACTIVE",
"DeviceConfiguration": {
"ChallengeRequiredOnNewDevice": true,
Expand Down Expand Up @@ -5744,7 +5732,7 @@
"UserMigration": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction",
"VerifyAuthChallengeResponse": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
},
"LastModifiedDate": 1689721665.239,
"LastModifiedDate": 1.689721665239e9,
"MfaConfiguration": "OPTIONAL",
"Name": "my-test-user-pool",
"Policies": {
Expand Down Expand Up @@ -5989,9 +5977,7 @@
},
"SmsVerificationMessage": "Your verification code is {####}.",
"UserAttributeUpdateSettings": {
"AttributesRequireVerificationBeforeUpdate": [
"email"
]
"AttributesRequireVerificationBeforeUpdate": ["email"]
},
"UserPoolAddOns": {
"AdvancedSecurityMode": "OFF"
Expand Down Expand Up @@ -6058,25 +6044,16 @@
"documentation": "The following example creates an app client with all configurable properties set to an example value. The resulting user pool client connects to an analytics client, allows sign-in with username and password, and has two external identity providers associated with it.",
"input": {
"AccessTokenValidity": 6,
"AllowedOAuthFlows": [
"code"
],
"AllowedOAuthFlows": ["code"],
"AllowedOAuthFlowsUserPoolClient": true,
"AllowedOAuthScopes": [
"aws.cognito.signin.user.admin",
"openid"
],
"AllowedOAuthScopes": ["aws.cognito.signin.user.admin", "openid"],
"AnalyticsConfiguration": {
"ApplicationId": "d70b2ba36a8c4dc5a04a0451a31a1e12",
"ExternalId": "my-external-id",
"RoleArn": "arn:aws:iam::123456789012:role/test-cognitouserpool-role",
"UserDataShared": true
},
"CallbackURLs": [
"https://example.com",
"http://localhost",
"myapp://example"
],
"CallbackURLs": ["https://example.com", "http://localhost", "myapp://example"],
"ClientName": "my-test-app-client",
"DefaultRedirectURI": "https://example.com",
"ExplicitAuthFlows": [
Expand All @@ -6086,58 +6063,37 @@
],
"GenerateSecret": true,
"IdTokenValidity": 6,
"LogoutURLs": [
"https://example.com/logout"
],
"LogoutURLs": ["https://example.com/logout"],
"PreventUserExistenceErrors": "ENABLED",
"ReadAttributes": [
"email",
"address",
"preferred_username"
],
"ReadAttributes": ["email", "address", "preferred_username"],
"RefreshTokenValidity": 6,
"SupportedIdentityProviders": [
"SignInWithApple",
"MySSO"
],
"SupportedIdentityProviders": ["SignInWithApple", "MySSO"],
"TokenValidityUnits": {
"AccessToken": "hours",
"IdToken": "minutes",
"RefreshToken": "days"
},
"UserPoolId": "us-east-1_EXAMPLE",
"WriteAttributes": [
"family_name",
"email"
]
"WriteAttributes": ["family_name", "email"]
},
"output": {
"UserPoolClient": {
"AccessTokenValidity": 6,
"AllowedOAuthFlows": [
"code"
],
"AllowedOAuthFlows": ["code"],
"AllowedOAuthFlowsUserPoolClient": true,
"AllowedOAuthScopes": [
"aws.cognito.signin.user.admin",
"openid"
],
"AllowedOAuthScopes": ["aws.cognito.signin.user.admin", "openid"],
"AnalyticsConfiguration": {
"ApplicationId": "d70b2ba36a8c4dc5a04a0451a31a1e12",
"ExternalId": "my-external-id",
"RoleArn": "arn:aws:iam::123456789012:role/test-cognitouserpool-role",
"UserDataShared": true
},
"AuthSessionValidity": 3,
"CallbackURLs": [
"https://example.com",
"http://localhost",
"myapp://example"
],
"CallbackURLs": ["https://example.com", "http://localhost", "myapp://example"],
"ClientId": "26cb2c60kq7nbmas7rbme9b6pp",
"ClientName": "my-test-app-client",
"ClientSecret": "13ka4h7u28d9oo44tqpq9djqsfvhvu8rk4d2ighvpu0k8fj1c2r9",
"CreationDate": 1689885426.107,
"CreationDate": 1.689885426107e9,
"DefaultRedirectURI": "https://example.com",
"EnablePropagateAdditionalUserContextData": false,
"EnableTokenRevocation": true,
Expand All @@ -6147,31 +6103,19 @@
"ALLOW_REFRESH_TOKEN_AUTH"
],
"IdTokenValidity": 6,
"LastModifiedDate": 1689885426.107,
"LogoutURLs": [
"https://example.com/logout"
],
"LastModifiedDate": 1.689885426107e9,
"LogoutURLs": ["https://example.com/logout"],
"PreventUserExistenceErrors": "ENABLED",
"ReadAttributes": [
"address",
"preferred_username",
"email"
],
"ReadAttributes": ["address", "preferred_username", "email"],
"RefreshTokenValidity": 6,
"SupportedIdentityProviders": [
"SignInWithApple",
"MySSO"
],
"SupportedIdentityProviders": ["SignInWithApple", "MySSO"],
"TokenValidityUnits": {
"AccessToken": "hours",
"IdToken": "minutes",
"RefreshToken": "days"
},
"UserPoolId": "us-east-1_EXAMPLE",
"WriteAttributes": [
"family_name",
"email"
]
"WriteAttributes": ["family_name", "email"]
}
}
}
Expand Down Expand Up @@ -10713,10 +10657,7 @@
"title": "A ListUsers request for the next 3 users whose email address starts with \"testuser.\"",
"documentation": "This request submits a value for all possible parameters for ListUsers. By iterating the PaginationToken, you can page through and collect all users in a user pool.",
"input": {
"AttributesToGet": [
"email",
"sub"
],
"AttributesToGet": ["email", "sub"],
"Filter": "\"email\"^=\"testuser\"",
"Limit": 3,
"PaginationToken": "abcd1234EXAMPLE",
Expand All @@ -10737,8 +10678,8 @@
}
],
"Enabled": true,
"UserCreateDate": 1682955829.578,
"UserLastModifiedDate": 1689030181.63,
"UserCreateDate": 1.682955829578e9,
"UserLastModifiedDate": 1.68903018163e9,
"UserStatus": "CONFIRMED",
"Username": "testuser"
},
Expand All @@ -10754,8 +10695,8 @@
}
],
"Enabled": true,
"UserCreateDate": 1684427979.201,
"UserLastModifiedDate": 1684427979.201,
"UserCreateDate": 1.684427979201e9,
"UserLastModifiedDate": 1.684427979201e9,
"UserStatus": "UNCONFIRMED",
"Username": "testuser2"
},
Expand All @@ -10771,8 +10712,8 @@
}
],
"Enabled": true,
"UserCreateDate": 1684427823.641,
"UserLastModifiedDate": 1684427823.641,
"UserCreateDate": 1.684427823641e9,
"UserLastModifiedDate": 1.684427823641e9,
"UserStatus": "UNCONFIRMED",
"Username": "[email protected]"
}
Expand Down Expand Up @@ -15292,6 +15233,9 @@
"Status": {
"target": "com.amazonaws.cognitoidentityprovider#StatusType",
"traits": {
"smithy.api#deprecated": {
"message": "This property is no longer available."
},
"smithy.api#documentation": "<p>The user pool status in a user pool description.</p>"
}
},
Expand Down Expand Up @@ -15439,6 +15383,9 @@
"Status": {
"target": "com.amazonaws.cognitoidentityprovider#StatusType",
"traits": {
"smithy.api#deprecated": {
"message": "This property is no longer available."
},
"smithy.api#documentation": "<p>The status of a user pool.</p>"
}
},
Expand Down Expand Up @@ -16068,4 +16015,4 @@
"type": "boolean"
}
}
}
}

0 comments on commit 114788d

Please sign in to comment.