aws-cdk-lib 2.142.0__py3-none-any.whl → 2.143.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.142.0.jsii.tgz → aws-cdk-lib@2.143.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +12 -5
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_batch/__init__.py +237 -0
- aws_cdk/aws_bedrock/__init__.py +700 -16
- aws_cdk/aws_budgets/__init__.py +282 -3
- aws_cdk/aws_cloudtrail/__init__.py +12 -2
- aws_cdk/aws_codebuild/__init__.py +44 -0
- aws_cdk/aws_codepipeline/__init__.py +91 -4
- aws_cdk/aws_cognito/__init__.py +75 -0
- aws_cdk/aws_datazone/__init__.py +1743 -448
- aws_cdk/aws_dynamodb/__init__.py +60 -25
- aws_cdk/aws_ec2/__init__.py +112 -39
- aws_cdk/aws_ecs/__init__.py +3 -3
- aws_cdk/aws_ecs_patterns/__init__.py +106 -0
- aws_cdk/aws_eks/__init__.py +13 -10
- aws_cdk/aws_elasticache/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +219 -14
- aws_cdk/aws_events_targets/__init__.py +140 -3
- aws_cdk/aws_fms/__init__.py +42 -43
- aws_cdk/aws_fsx/__init__.py +3 -3
- aws_cdk/aws_identitystore/__init__.py +11 -11
- aws_cdk/aws_lambda/__init__.py +45 -0
- aws_cdk/aws_lambda_nodejs/__init__.py +16 -6
- aws_cdk/aws_lightsail/__init__.py +9 -0
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_mediaconnect/__init__.py +1789 -39
- aws_cdk/aws_mediatailor/__init__.py +21 -1
- aws_cdk/aws_mwaa/__init__.py +82 -0
- aws_cdk/aws_neptune/__init__.py +374 -0
- aws_cdk/aws_personalize/__init__.py +9 -3
- aws_cdk/aws_pipes/__init__.py +7 -7
- aws_cdk/aws_quicksight/__init__.py +684 -156
- aws_cdk/aws_rds/__init__.py +88 -24
- aws_cdk/aws_redshift/__init__.py +0 -46
- aws_cdk/aws_route53resolver/__init__.py +23 -0
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_sagemaker/__init__.py +185 -4
- aws_cdk/aws_securityhub/__init__.py +387 -1
- aws_cdk/aws_ssm/__init__.py +14 -6
- aws_cdk/aws_sso/__init__.py +1243 -34
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_cognito/__init__.py
CHANGED
|
@@ -842,6 +842,23 @@ user_pool_client = cognito.UserPoolClient(self, "UserPoolClient",
|
|
|
842
842
|
secret = user_pool_client.user_pool_client_secret
|
|
843
843
|
```
|
|
844
844
|
|
|
845
|
+
If you set `enablePropagateAdditionalUserContextData: true`, you can collect and pass
|
|
846
|
+
information about your user's session to Amazon Cognito advanced security
|
|
847
|
+
when you use the API to sign them up, sign them in, and reset their password.
|
|
848
|
+
|
|
849
|
+
```python
|
|
850
|
+
# imported_pool: cognito.UserPool
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
user_pool_client = cognito.UserPoolClient(self, "UserPoolClient",
|
|
854
|
+
user_pool=imported_pool,
|
|
855
|
+
generate_secret=True,
|
|
856
|
+
enable_propagate_additional_user_context_data=True
|
|
857
|
+
)
|
|
858
|
+
```
|
|
859
|
+
|
|
860
|
+
See [Adding user device and session data to API requests](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint) for more information.
|
|
861
|
+
|
|
845
862
|
### Resource Servers
|
|
846
863
|
|
|
847
864
|
A resource server is a server for access-protected resources. It handles authenticated requests from an app that has an
|
|
@@ -12495,6 +12512,7 @@ class IUserPool(_IResource_c80c4260, typing_extensions.Protocol):
|
|
|
12495
12512
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12496
12513
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
12497
12514
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
12515
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
12498
12516
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
12499
12517
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
12500
12518
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -12513,6 +12531,7 @@ class IUserPool(_IResource_c80c4260, typing_extensions.Protocol):
|
|
|
12513
12531
|
:param auth_flows: The set of OAuth authentication flows to enable on the client. Default: - If you don't specify a value, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.
|
|
12514
12532
|
:param auth_session_validity: Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. see defaults in ``AuthSessionValidity``. Valid duration is from 3 to 15 minutes. Default: - Duration.minutes(3)
|
|
12515
12533
|
:param disable_o_auth: Turns off all OAuth interactions for this client. Default: false
|
|
12534
|
+
:param enable_propagate_additional_user_context_data: Enable the propagation of additional user context data. You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret. Default: false for new user pool clients
|
|
12516
12535
|
:param enable_token_revocation: Enable token revocation for this client. Default: true for new user pool clients
|
|
12517
12536
|
:param generate_secret: Whether to generate a client secret. Default: false
|
|
12518
12537
|
:param id_token_validity: Validity of the ID token. Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity. Default: Duration.minutes(60)
|
|
@@ -12628,6 +12647,7 @@ class _IUserPoolProxy(
|
|
|
12628
12647
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12629
12648
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
12630
12649
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
12650
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
12631
12651
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
12632
12652
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
12633
12653
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -12646,6 +12666,7 @@ class _IUserPoolProxy(
|
|
|
12646
12666
|
:param auth_flows: The set of OAuth authentication flows to enable on the client. Default: - If you don't specify a value, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.
|
|
12647
12667
|
:param auth_session_validity: Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. see defaults in ``AuthSessionValidity``. Valid duration is from 3 to 15 minutes. Default: - Duration.minutes(3)
|
|
12648
12668
|
:param disable_o_auth: Turns off all OAuth interactions for this client. Default: false
|
|
12669
|
+
:param enable_propagate_additional_user_context_data: Enable the propagation of additional user context data. You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret. Default: false for new user pool clients
|
|
12649
12670
|
:param enable_token_revocation: Enable token revocation for this client. Default: true for new user pool clients
|
|
12650
12671
|
:param generate_secret: Whether to generate a client secret. Default: false
|
|
12651
12672
|
:param id_token_validity: Validity of the ID token. Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity. Default: Duration.minutes(60)
|
|
@@ -12667,6 +12688,7 @@ class _IUserPoolProxy(
|
|
|
12667
12688
|
auth_flows=auth_flows,
|
|
12668
12689
|
auth_session_validity=auth_session_validity,
|
|
12669
12690
|
disable_o_auth=disable_o_auth,
|
|
12691
|
+
enable_propagate_additional_user_context_data=enable_propagate_additional_user_context_data,
|
|
12670
12692
|
enable_token_revocation=enable_token_revocation,
|
|
12671
12693
|
generate_secret=generate_secret,
|
|
12672
12694
|
id_token_validity=id_token_validity,
|
|
@@ -15756,6 +15778,7 @@ class UserPool(
|
|
|
15756
15778
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15757
15779
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
15758
15780
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
15781
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
15759
15782
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
15760
15783
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
15761
15784
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -15774,6 +15797,7 @@ class UserPool(
|
|
|
15774
15797
|
:param auth_flows: The set of OAuth authentication flows to enable on the client. Default: - If you don't specify a value, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.
|
|
15775
15798
|
:param auth_session_validity: Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. see defaults in ``AuthSessionValidity``. Valid duration is from 3 to 15 minutes. Default: - Duration.minutes(3)
|
|
15776
15799
|
:param disable_o_auth: Turns off all OAuth interactions for this client. Default: false
|
|
15800
|
+
:param enable_propagate_additional_user_context_data: Enable the propagation of additional user context data. You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret. Default: false for new user pool clients
|
|
15777
15801
|
:param enable_token_revocation: Enable token revocation for this client. Default: true for new user pool clients
|
|
15778
15802
|
:param generate_secret: Whether to generate a client secret. Default: false
|
|
15779
15803
|
:param id_token_validity: Validity of the ID token. Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity. Default: Duration.minutes(60)
|
|
@@ -15793,6 +15817,7 @@ class UserPool(
|
|
|
15793
15817
|
auth_flows=auth_flows,
|
|
15794
15818
|
auth_session_validity=auth_session_validity,
|
|
15795
15819
|
disable_o_auth=disable_o_auth,
|
|
15820
|
+
enable_propagate_additional_user_context_data=enable_propagate_additional_user_context_data,
|
|
15796
15821
|
enable_token_revocation=enable_token_revocation,
|
|
15797
15822
|
generate_secret=generate_secret,
|
|
15798
15823
|
id_token_validity=id_token_validity,
|
|
@@ -15982,6 +16007,7 @@ class UserPoolClient(
|
|
|
15982
16007
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15983
16008
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
15984
16009
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
16010
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
15985
16011
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
15986
16012
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
15987
16013
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -16001,6 +16027,7 @@ class UserPoolClient(
|
|
|
16001
16027
|
:param auth_flows: The set of OAuth authentication flows to enable on the client. Default: - If you don't specify a value, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.
|
|
16002
16028
|
:param auth_session_validity: Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. see defaults in ``AuthSessionValidity``. Valid duration is from 3 to 15 minutes. Default: - Duration.minutes(3)
|
|
16003
16029
|
:param disable_o_auth: Turns off all OAuth interactions for this client. Default: false
|
|
16030
|
+
:param enable_propagate_additional_user_context_data: Enable the propagation of additional user context data. You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret. Default: false for new user pool clients
|
|
16004
16031
|
:param enable_token_revocation: Enable token revocation for this client. Default: true for new user pool clients
|
|
16005
16032
|
:param generate_secret: Whether to generate a client secret. Default: false
|
|
16006
16033
|
:param id_token_validity: Validity of the ID token. Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity. Default: Duration.minutes(60)
|
|
@@ -16022,6 +16049,7 @@ class UserPoolClient(
|
|
|
16022
16049
|
auth_flows=auth_flows,
|
|
16023
16050
|
auth_session_validity=auth_session_validity,
|
|
16024
16051
|
disable_o_auth=disable_o_auth,
|
|
16052
|
+
enable_propagate_additional_user_context_data=enable_propagate_additional_user_context_data,
|
|
16025
16053
|
enable_token_revocation=enable_token_revocation,
|
|
16026
16054
|
generate_secret=generate_secret,
|
|
16027
16055
|
id_token_validity=id_token_validity,
|
|
@@ -16172,6 +16200,7 @@ class UserPoolClientIdentityProvider(
|
|
|
16172
16200
|
"auth_flows": "authFlows",
|
|
16173
16201
|
"auth_session_validity": "authSessionValidity",
|
|
16174
16202
|
"disable_o_auth": "disableOAuth",
|
|
16203
|
+
"enable_propagate_additional_user_context_data": "enablePropagateAdditionalUserContextData",
|
|
16175
16204
|
"enable_token_revocation": "enableTokenRevocation",
|
|
16176
16205
|
"generate_secret": "generateSecret",
|
|
16177
16206
|
"id_token_validity": "idTokenValidity",
|
|
@@ -16192,6 +16221,7 @@ class UserPoolClientOptions:
|
|
|
16192
16221
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16193
16222
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
16194
16223
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
16224
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
16195
16225
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
16196
16226
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
16197
16227
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -16209,6 +16239,7 @@ class UserPoolClientOptions:
|
|
|
16209
16239
|
:param auth_flows: The set of OAuth authentication flows to enable on the client. Default: - If you don't specify a value, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.
|
|
16210
16240
|
:param auth_session_validity: Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. see defaults in ``AuthSessionValidity``. Valid duration is from 3 to 15 minutes. Default: - Duration.minutes(3)
|
|
16211
16241
|
:param disable_o_auth: Turns off all OAuth interactions for this client. Default: false
|
|
16242
|
+
:param enable_propagate_additional_user_context_data: Enable the propagation of additional user context data. You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret. Default: false for new user pool clients
|
|
16212
16243
|
:param enable_token_revocation: Enable token revocation for this client. Default: true for new user pool clients
|
|
16213
16244
|
:param generate_secret: Whether to generate a client secret. Default: false
|
|
16214
16245
|
:param id_token_validity: Validity of the ID token. Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity. Default: Duration.minutes(60)
|
|
@@ -16246,6 +16277,7 @@ class UserPoolClientOptions:
|
|
|
16246
16277
|
check_type(argname="argument auth_flows", value=auth_flows, expected_type=type_hints["auth_flows"])
|
|
16247
16278
|
check_type(argname="argument auth_session_validity", value=auth_session_validity, expected_type=type_hints["auth_session_validity"])
|
|
16248
16279
|
check_type(argname="argument disable_o_auth", value=disable_o_auth, expected_type=type_hints["disable_o_auth"])
|
|
16280
|
+
check_type(argname="argument enable_propagate_additional_user_context_data", value=enable_propagate_additional_user_context_data, expected_type=type_hints["enable_propagate_additional_user_context_data"])
|
|
16249
16281
|
check_type(argname="argument enable_token_revocation", value=enable_token_revocation, expected_type=type_hints["enable_token_revocation"])
|
|
16250
16282
|
check_type(argname="argument generate_secret", value=generate_secret, expected_type=type_hints["generate_secret"])
|
|
16251
16283
|
check_type(argname="argument id_token_validity", value=id_token_validity, expected_type=type_hints["id_token_validity"])
|
|
@@ -16265,6 +16297,8 @@ class UserPoolClientOptions:
|
|
|
16265
16297
|
self._values["auth_session_validity"] = auth_session_validity
|
|
16266
16298
|
if disable_o_auth is not None:
|
|
16267
16299
|
self._values["disable_o_auth"] = disable_o_auth
|
|
16300
|
+
if enable_propagate_additional_user_context_data is not None:
|
|
16301
|
+
self._values["enable_propagate_additional_user_context_data"] = enable_propagate_additional_user_context_data
|
|
16268
16302
|
if enable_token_revocation is not None:
|
|
16269
16303
|
self._values["enable_token_revocation"] = enable_token_revocation
|
|
16270
16304
|
if generate_secret is not None:
|
|
@@ -16333,6 +16367,21 @@ class UserPoolClientOptions:
|
|
|
16333
16367
|
result = self._values.get("disable_o_auth")
|
|
16334
16368
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
16335
16369
|
|
|
16370
|
+
@builtins.property
|
|
16371
|
+
def enable_propagate_additional_user_context_data(
|
|
16372
|
+
self,
|
|
16373
|
+
) -> typing.Optional[builtins.bool]:
|
|
16374
|
+
'''Enable the propagation of additional user context data.
|
|
16375
|
+
|
|
16376
|
+
You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret.
|
|
16377
|
+
|
|
16378
|
+
:default: false for new user pool clients
|
|
16379
|
+
|
|
16380
|
+
:see: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint
|
|
16381
|
+
'''
|
|
16382
|
+
result = self._values.get("enable_propagate_additional_user_context_data")
|
|
16383
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
16384
|
+
|
|
16336
16385
|
@builtins.property
|
|
16337
16386
|
def enable_token_revocation(self) -> typing.Optional[builtins.bool]:
|
|
16338
16387
|
'''Enable token revocation for this client.
|
|
@@ -16467,6 +16516,7 @@ class UserPoolClientOptions:
|
|
|
16467
16516
|
"auth_flows": "authFlows",
|
|
16468
16517
|
"auth_session_validity": "authSessionValidity",
|
|
16469
16518
|
"disable_o_auth": "disableOAuth",
|
|
16519
|
+
"enable_propagate_additional_user_context_data": "enablePropagateAdditionalUserContextData",
|
|
16470
16520
|
"enable_token_revocation": "enableTokenRevocation",
|
|
16471
16521
|
"generate_secret": "generateSecret",
|
|
16472
16522
|
"id_token_validity": "idTokenValidity",
|
|
@@ -16488,6 +16538,7 @@ class UserPoolClientProps(UserPoolClientOptions):
|
|
|
16488
16538
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16489
16539
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
16490
16540
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
16541
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
16491
16542
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
16492
16543
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
16493
16544
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -16506,6 +16557,7 @@ class UserPoolClientProps(UserPoolClientOptions):
|
|
|
16506
16557
|
:param auth_flows: The set of OAuth authentication flows to enable on the client. Default: - If you don't specify a value, your user client supports ALLOW_REFRESH_TOKEN_AUTH, ALLOW_USER_SRP_AUTH, and ALLOW_CUSTOM_AUTH.
|
|
16507
16558
|
:param auth_session_validity: Cognito creates a session token for each API request in an authentication flow. AuthSessionValidity is the duration, in minutes, of that session token. see defaults in ``AuthSessionValidity``. Valid duration is from 3 to 15 minutes. Default: - Duration.minutes(3)
|
|
16508
16559
|
:param disable_o_auth: Turns off all OAuth interactions for this client. Default: false
|
|
16560
|
+
:param enable_propagate_additional_user_context_data: Enable the propagation of additional user context data. You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret. Default: false for new user pool clients
|
|
16509
16561
|
:param enable_token_revocation: Enable token revocation for this client. Default: true for new user pool clients
|
|
16510
16562
|
:param generate_secret: Whether to generate a client secret. Default: false
|
|
16511
16563
|
:param id_token_validity: Validity of the ID token. Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity. Default: Duration.minutes(60)
|
|
@@ -16543,6 +16595,7 @@ class UserPoolClientProps(UserPoolClientOptions):
|
|
|
16543
16595
|
check_type(argname="argument auth_flows", value=auth_flows, expected_type=type_hints["auth_flows"])
|
|
16544
16596
|
check_type(argname="argument auth_session_validity", value=auth_session_validity, expected_type=type_hints["auth_session_validity"])
|
|
16545
16597
|
check_type(argname="argument disable_o_auth", value=disable_o_auth, expected_type=type_hints["disable_o_auth"])
|
|
16598
|
+
check_type(argname="argument enable_propagate_additional_user_context_data", value=enable_propagate_additional_user_context_data, expected_type=type_hints["enable_propagate_additional_user_context_data"])
|
|
16546
16599
|
check_type(argname="argument enable_token_revocation", value=enable_token_revocation, expected_type=type_hints["enable_token_revocation"])
|
|
16547
16600
|
check_type(argname="argument generate_secret", value=generate_secret, expected_type=type_hints["generate_secret"])
|
|
16548
16601
|
check_type(argname="argument id_token_validity", value=id_token_validity, expected_type=type_hints["id_token_validity"])
|
|
@@ -16565,6 +16618,8 @@ class UserPoolClientProps(UserPoolClientOptions):
|
|
|
16565
16618
|
self._values["auth_session_validity"] = auth_session_validity
|
|
16566
16619
|
if disable_o_auth is not None:
|
|
16567
16620
|
self._values["disable_o_auth"] = disable_o_auth
|
|
16621
|
+
if enable_propagate_additional_user_context_data is not None:
|
|
16622
|
+
self._values["enable_propagate_additional_user_context_data"] = enable_propagate_additional_user_context_data
|
|
16568
16623
|
if enable_token_revocation is not None:
|
|
16569
16624
|
self._values["enable_token_revocation"] = enable_token_revocation
|
|
16570
16625
|
if generate_secret is not None:
|
|
@@ -16633,6 +16688,21 @@ class UserPoolClientProps(UserPoolClientOptions):
|
|
|
16633
16688
|
result = self._values.get("disable_o_auth")
|
|
16634
16689
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
16635
16690
|
|
|
16691
|
+
@builtins.property
|
|
16692
|
+
def enable_propagate_additional_user_context_data(
|
|
16693
|
+
self,
|
|
16694
|
+
) -> typing.Optional[builtins.bool]:
|
|
16695
|
+
'''Enable the propagation of additional user context data.
|
|
16696
|
+
|
|
16697
|
+
You can only activate enablePropagateAdditionalUserContextData in an app client that has a client secret.
|
|
16698
|
+
|
|
16699
|
+
:default: false for new user pool clients
|
|
16700
|
+
|
|
16701
|
+
:see: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint
|
|
16702
|
+
'''
|
|
16703
|
+
result = self._values.get("enable_propagate_additional_user_context_data")
|
|
16704
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
16705
|
+
|
|
16636
16706
|
@builtins.property
|
|
16637
16707
|
def enable_token_revocation(self) -> typing.Optional[builtins.bool]:
|
|
16638
16708
|
'''Enable token revocation for this client.
|
|
@@ -22395,6 +22465,7 @@ def _typecheckingstub__6eaa0ebaf797c6ac4bac11bd73d9ad61c50892a9450e0ff5880903434
|
|
|
22395
22465
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
22396
22466
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
22397
22467
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
22468
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
22398
22469
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
22399
22470
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
22400
22471
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -22700,6 +22771,7 @@ def _typecheckingstub__b4ce1f762a6eeaca3920ca827a1685cfa2b670f96aa13d8cfdded4055
|
|
|
22700
22771
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
22701
22772
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
22702
22773
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
22774
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
22703
22775
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
22704
22776
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
22705
22777
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -22763,6 +22835,7 @@ def _typecheckingstub__e654de9921a676ab8214720f2ab2c7f212d67a62531595c721560e88c
|
|
|
22763
22835
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
22764
22836
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
22765
22837
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
22838
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
22766
22839
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
22767
22840
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
22768
22841
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -22797,6 +22870,7 @@ def _typecheckingstub__80185296586b917ea24ebc48255c627ce95ec5c85ae2ab4e52736240b
|
|
|
22797
22870
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
22798
22871
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
22799
22872
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
22873
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
22800
22874
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
22801
22875
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
22802
22876
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
@@ -22817,6 +22891,7 @@ def _typecheckingstub__95c8cad8419f2fd5def82ad39281b322b9ec6b2f7d891de939bf1e903
|
|
|
22817
22891
|
auth_flows: typing.Optional[typing.Union[AuthFlow, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
22818
22892
|
auth_session_validity: typing.Optional[_Duration_4839e8c3] = None,
|
|
22819
22893
|
disable_o_auth: typing.Optional[builtins.bool] = None,
|
|
22894
|
+
enable_propagate_additional_user_context_data: typing.Optional[builtins.bool] = None,
|
|
22820
22895
|
enable_token_revocation: typing.Optional[builtins.bool] = None,
|
|
22821
22896
|
generate_secret: typing.Optional[builtins.bool] = None,
|
|
22822
22897
|
id_token_validity: typing.Optional[_Duration_4839e8c3] = None,
|