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 635fd03e0552..be4c0bdef02f 100644 --- a/clients/client-cognito-identity-provider/src/models/models_0.ts +++ b/clients/client-cognito-identity-provider/src/models/models_0.ts @@ -8909,6 +8909,13 @@ export const ConfirmDeviceRequestFilterSensitiveLog = (obj: ConfirmDeviceRequest ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }), }); +/** + * @internal + */ +export const UserContextDataTypeFilterSensitiveLog = (obj: UserContextDataType): any => ({ + ...obj, +}); + /** * @internal */ @@ -8918,6 +8925,7 @@ export const ConfirmForgotPasswordRequestFilterSensitiveLog = (obj: ConfirmForgo ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }), ...(obj.Username && { Username: SENSITIVE_STRING }), ...(obj.Password && { Password: SENSITIVE_STRING }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), }); /** @@ -8928,6 +8936,7 @@ export const ConfirmSignUpRequestFilterSensitiveLog = (obj: ConfirmSignUpRequest ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }), ...(obj.Username && { Username: SENSITIVE_STRING }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), }); /** @@ -9026,6 +9035,7 @@ export const ForgotPasswordRequestFilterSensitiveLog = (obj: ForgotPasswordReque ...obj, ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), ...(obj.Username && { Username: SENSITIVE_STRING }), }); @@ -9113,6 +9123,7 @@ export const InitiateAuthRequestFilterSensitiveLog = (obj: InitiateAuthRequest): ...obj, ...(obj.AuthParameters && { AuthParameters: SENSITIVE_STRING }), ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), }); /** @@ -9182,6 +9193,7 @@ export const ResendConfirmationCodeRequestFilterSensitiveLog = (obj: ResendConfi ...obj, ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), ...(obj.Username && { Username: SENSITIVE_STRING }), }); @@ -9193,6 +9205,7 @@ export const RespondToAuthChallengeRequestFilterSensitiveLog = (obj: RespondToAu ...(obj.ClientId && { ClientId: SENSITIVE_STRING }), ...(obj.Session && { Session: SENSITIVE_STRING }), ...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), }); /** diff --git a/clients/client-cognito-identity-provider/src/models/models_1.ts b/clients/client-cognito-identity-provider/src/models/models_1.ts index f5567060fdc1..36fa492cbd1f 100644 --- a/clients/client-cognito-identity-provider/src/models/models_1.ts +++ b/clients/client-cognito-identity-provider/src/models/models_1.ts @@ -1108,6 +1108,7 @@ export const SignUpRequestFilterSensitiveLog = (obj: SignUpRequest): any => ({ ...(obj.ValidationData && { ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)), }), + ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }), }); /** @@ -1161,6 +1162,7 @@ export const VerifySoftwareTokenRequestFilterSensitiveLog = (obj: VerifySoftware ...obj, ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }), ...(obj.Session && { Session: SENSITIVE_STRING }), + ...(obj.UserCode && { UserCode: SENSITIVE_STRING }), }); /** diff --git a/codegen/sdk-codegen/aws-models/cognito-identity-provider.json b/codegen/sdk-codegen/aws-models/cognito-identity-provider.json index e7f2579eaf2f..cda58c0d262b 100644 --- a/codegen/sdk-codegen/aws-models/cognito-identity-provider.json +++ b/codegen/sdk-codegen/aws-models/cognito-identity-provider.json @@ -12200,7 +12200,8 @@ "min": 6, "max": 6 }, - "smithy.api#pattern": "^[0-9]+$" + "smithy.api#pattern": "^[0-9]+$", + "smithy.api#sensitive": {} } }, "com.amazonaws.cognitoidentityprovider#SoftwareTokenMfaConfigType": { @@ -13815,7 +13816,8 @@ } }, "traits": { - "smithy.api#documentation": "

Contextual data, such as the user's device fingerprint, IP address, or location, used\n for evaluating the risk of an unexpected event by Amazon Cognito advanced\n security.

" + "smithy.api#documentation": "

Contextual data, such as the user's device fingerprint, IP address, or location, used\n for evaluating the risk of an unexpected event by Amazon Cognito advanced\n security.

", + "smithy.api#sensitive": {} } }, "com.amazonaws.cognitoidentityprovider#UserFilterType": {