diff --git a/clients/client-cognito-identity-provider/src/models/models_0.ts b/clients/client-cognito-identity-provider/src/models/models_0.ts index 647ec1a169d6..697dff83063f 100644 --- a/clients/client-cognito-identity-provider/src/models/models_0.ts +++ b/clients/client-cognito-identity-provider/src/models/models_0.ts @@ -756,9 +756,23 @@ export interface AdminCreateUserRequest { /** * @public - *

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.

+ *

The value that you want to set as the username sign-in attribute. The following + * conditions apply to the username parameter.

+ * */ Username: string | undefined; @@ -5556,6 +5570,8 @@ export interface UserPoolType { /** * @public + * @deprecated + * *

The status of a user pool.

*/ Status?: StatusType | string; @@ -7575,7 +7591,7 @@ export interface CloudWatchLogsConfigurationType { * as your user pool.

*

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 - * /aws/vendedlogs. For more information, see Enabling + * /aws/vendedlogs. For more information, see Enabling * logging from certain Amazon Web Services services.

*/ LogGroupArn?: string; @@ -8660,6 +8676,8 @@ export interface UserPoolDescriptionType { /** * @public + * @deprecated + * *

The user pool status in a user pool description.

*/ Status?: StatusType | string; diff --git a/codegen/sdk-codegen/aws-models/cognito-identity-provider.json b/codegen/sdk-codegen/aws-models/cognito-identity-provider.json index ce892c9ecbfd..4d0fc0b4e083 100644 --- a/codegen/sdk-codegen/aws-models/cognito-identity-provider.json +++ b/codegen/sdk-codegen/aws-models/cognito-identity-provider.json @@ -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": [ @@ -1718,8 +1716,8 @@ } ], "Enabled": true, - "UserCreateDate": 1689980857.949, - "UserLastModifiedDate": 1689980857.949, + "UserCreateDate": 1.689980857949e9, + "UserLastModifiedDate": 1.689980857949e9, "UserStatus": "FORCE_CHANGE_PASSWORD", "Username": "testuser" } @@ -1769,7 +1767,7 @@ "Username": { "target": "com.amazonaws.cognitoidentityprovider#UsernameType", "traits": { - "smithy.api#documentation": "

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.

", + "smithy.api#documentation": "

The value that you want to set as the username sign-in attribute. The following\n conditions apply to the username parameter.

\n ", "smithy.api#required": {} } }, @@ -4602,7 +4600,7 @@ "LogGroupArn": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

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.

\n

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 /aws/vendedlogs. For more information, see Enabling\n logging from certain Amazon Web Services services.

" + "smithy.api#documentation": "

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.

\n

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 /aws/vendedlogs. For more information, see Enabling\n logging from certain Amazon Web Services services.

" } } }, @@ -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 @@ -5659,9 +5653,7 @@ }, "SmsVerificationMessage": "Your verification code is {####}.", "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] + "AttributesRequireVerificationBeforeUpdate": ["email"] }, "UsernameConfiguration": { "CaseSensitive": true @@ -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, @@ -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": { @@ -5989,9 +5977,7 @@ }, "SmsVerificationMessage": "Your verification code is {####}.", "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] + "AttributesRequireVerificationBeforeUpdate": ["email"] }, "UserPoolAddOns": { "AdvancedSecurityMode": "OFF" @@ -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": [ @@ -6086,42 +6063,25 @@ ], "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", @@ -6129,15 +6089,11 @@ "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, @@ -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"] } } } @@ -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", @@ -10737,8 +10678,8 @@ } ], "Enabled": true, - "UserCreateDate": 1682955829.578, - "UserLastModifiedDate": 1689030181.63, + "UserCreateDate": 1.682955829578e9, + "UserLastModifiedDate": 1.68903018163e9, "UserStatus": "CONFIRMED", "Username": "testuser" }, @@ -10754,8 +10695,8 @@ } ], "Enabled": true, - "UserCreateDate": 1684427979.201, - "UserLastModifiedDate": 1684427979.201, + "UserCreateDate": 1.684427979201e9, + "UserLastModifiedDate": 1.684427979201e9, "UserStatus": "UNCONFIRMED", "Username": "testuser2" }, @@ -10771,8 +10712,8 @@ } ], "Enabled": true, - "UserCreateDate": 1684427823.641, - "UserLastModifiedDate": 1684427823.641, + "UserCreateDate": 1.684427823641e9, + "UserLastModifiedDate": 1.684427823641e9, "UserStatus": "UNCONFIRMED", "Username": "testuser3@example.com" } @@ -15292,6 +15233,9 @@ "Status": { "target": "com.amazonaws.cognitoidentityprovider#StatusType", "traits": { + "smithy.api#deprecated": { + "message": "This property is no longer available." + }, "smithy.api#documentation": "

The user pool status in a user pool description.

" } }, @@ -15439,6 +15383,9 @@ "Status": { "target": "com.amazonaws.cognitoidentityprovider#StatusType", "traits": { + "smithy.api#deprecated": { + "message": "This property is no longer available." + }, "smithy.api#documentation": "

The status of a user pool.

" } }, @@ -16068,4 +16015,4 @@ "type": "boolean" } } -} \ No newline at end of file +}