Skip to content

Commit e00c0ca

Browse files
authored
feat(cognito): add enablePropagateAdditionalUserContextData to UserClient Construct (#30178)
### Issue # (if applicable) N/A ### Reason for this change Missing property in the UserClient Construct https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPoolClient.html#enablepropagateadditionalusercontextdata ### Description of changes Add missing property ### Description of how you validated changes Add unit test and integ tests. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c25a946 commit e00c0ca

12 files changed

+614
-2
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.js.snapshot/integ-user-pool-client-enable-propagate-additional-data.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"Resources": {
3+
"pool056F3F7E": {
4+
"Type": "AWS::Cognito::UserPool",
5+
"Properties": {
6+
"AccountRecoverySetting": {
7+
"RecoveryMechanisms": [
8+
{
9+
"Name": "verified_phone_number",
10+
"Priority": 1
11+
},
12+
{
13+
"Name": "verified_email",
14+
"Priority": 2
15+
}
16+
]
17+
},
18+
"AdminCreateUserConfig": {
19+
"AllowAdminCreateUserOnly": true
20+
},
21+
"EmailVerificationMessage": "The verification code to your new account is {####}",
22+
"EmailVerificationSubject": "Verify your new account",
23+
"SmsVerificationMessage": "The verification code to your new account is {####}",
24+
"VerificationMessageTemplate": {
25+
"DefaultEmailOption": "CONFIRM_WITH_CODE",
26+
"EmailMessage": "The verification code to your new account is {####}",
27+
"EmailSubject": "Verify your new account",
28+
"SmsMessage": "The verification code to your new account is {####}"
29+
}
30+
},
31+
"UpdateReplacePolicy": "Delete",
32+
"DeletionPolicy": "Delete"
33+
},
34+
"poolclient2623294C": {
35+
"Type": "AWS::Cognito::UserPoolClient",
36+
"Properties": {
37+
"AllowedOAuthFlows": [
38+
"implicit",
39+
"code"
40+
],
41+
"AllowedOAuthFlowsUserPoolClient": true,
42+
"AllowedOAuthScopes": [
43+
"profile",
44+
"phone",
45+
"email",
46+
"openid",
47+
"aws.cognito.signin.user.admin"
48+
],
49+
"CallbackURLs": [
50+
"https://example.com"
51+
],
52+
"EnablePropagateAdditionalUserContextData": true,
53+
"GenerateSecret": true,
54+
"SupportedIdentityProviders": [
55+
"COGNITO"
56+
],
57+
"UserPoolId": {
58+
"Ref": "pool056F3F7E"
59+
}
60+
}
61+
}
62+
},
63+
"Parameters": {
64+
"BootstrapVersion": {
65+
"Type": "AWS::SSM::Parameter::Value<String>",
66+
"Default": "/cdk-bootstrap/hnb659fds/version",
67+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
68+
}
69+
},
70+
"Rules": {
71+
"CheckBootstrapVersion": {
72+
"Assertions": [
73+
{
74+
"Assert": {
75+
"Fn::Not": [
76+
{
77+
"Fn::Contains": [
78+
[
79+
"1",
80+
"2",
81+
"3",
82+
"4",
83+
"5"
84+
],
85+
{
86+
"Ref": "BootstrapVersion"
87+
}
88+
]
89+
}
90+
]
91+
},
92+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
93+
}
94+
]
95+
}
96+
}
97+
}

packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.js.snapshot/integuserpoolclientenablepropagateadditionaldatatestDefaultTestDeployAssertE48CC71B.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.js.snapshot/integuserpoolclientenablepropagateadditionaldatatestDefaultTestDeployAssertE48CC71B.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-enable-propagate-additional-data.js.snapshot/manifest.json

+119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)