aws-cdk-lib 2.73.0__py3-none-any.whl → 2.76.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/__init__.py +245 -259
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.73.0.jsii.tgz → aws-cdk-lib@2.76.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +182 -214
- aws_cdk/aws_apigateway/__init__.py +95 -148
- aws_cdk/aws_appconfig/__init__.py +8 -4
- aws_cdk/aws_appflow/__init__.py +27 -52
- aws_cdk/aws_appmesh/__init__.py +91 -200
- aws_cdk/aws_apprunner/__init__.py +4 -16
- aws_cdk/aws_appstream/__init__.py +18 -82
- aws_cdk/aws_athena/__init__.py +18 -32
- aws_cdk/aws_backup/__init__.py +48 -86
- aws_cdk/aws_batch/__init__.py +9 -2
- aws_cdk/aws_billingconductor/__init__.py +12 -7
- aws_cdk/aws_budgets/__init__.py +8 -17
- aws_cdk/aws_certificatemanager/__init__.py +7 -4
- aws_cdk/aws_cloudfront/__init__.py +14 -11
- aws_cdk/aws_cloudfront_origins/__init__.py +18 -8
- aws_cdk/aws_cloudtrail/__init__.py +7 -14
- aws_cdk/aws_cloudwatch/__init__.py +63 -35
- aws_cdk/aws_codebuild/__init__.py +10 -13
- aws_cdk/aws_codecommit/__init__.py +0 -1
- aws_cdk/aws_codedeploy/__init__.py +165 -162
- aws_cdk/aws_codegurureviewer/__init__.py +4 -4
- aws_cdk/aws_codepipeline/__init__.py +0 -4
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -164
- aws_cdk/aws_cognito/__init__.py +195 -100
- aws_cdk/aws_config/__init__.py +28 -51
- aws_cdk/aws_connectcampaigns/__init__.py +5 -6
- aws_cdk/aws_databrew/__init__.py +5 -6
- aws_cdk/aws_dlm/__init__.py +33 -71
- aws_cdk/aws_docdb/__init__.py +20 -76
- aws_cdk/aws_dynamodb/__init__.py +29 -22
- aws_cdk/aws_ec2/__init__.py +2414 -603
- aws_cdk/aws_ecr/__init__.py +1 -2
- aws_cdk/aws_ecr_assets/__init__.py +27 -14
- aws_cdk/aws_ecs/__init__.py +458 -163
- aws_cdk/aws_ecs_patterns/__init__.py +13 -11
- aws_cdk/aws_eks/__init__.py +13 -8
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -9
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +142 -82
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +126 -61
- aws_cdk/aws_elasticsearch/__init__.py +0 -7
- aws_cdk/aws_emr/__init__.py +7 -16
- aws_cdk/aws_emrserverless/__init__.py +14 -18
- aws_cdk/aws_events/__init__.py +33 -29
- aws_cdk/aws_events_targets/__init__.py +248 -89
- aws_cdk/aws_frauddetector/__init__.py +3 -4
- aws_cdk/aws_fsx/__init__.py +13 -7
- aws_cdk/aws_gamelift/__init__.py +11 -20
- aws_cdk/aws_grafana/__init__.py +4 -4
- aws_cdk/aws_iam/__init__.py +21 -25
- aws_cdk/aws_imagebuilder/__init__.py +58 -80
- aws_cdk/aws_internetmonitor/__init__.py +18 -10
- aws_cdk/aws_iot/__init__.py +16 -10
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -26
- aws_cdk/aws_iotevents/__init__.py +6 -4
- aws_cdk/aws_iotfleetwise/__init__.py +27 -40
- aws_cdk/aws_iotsitewise/__init__.py +8 -5
- aws_cdk/aws_iotwireless/__init__.py +14 -9
- aws_cdk/aws_kinesisfirehose/__init__.py +21 -38
- aws_cdk/aws_lambda/__init__.py +76 -53
- aws_cdk/aws_lambda_event_sources/__init__.py +6 -21
- aws_cdk/aws_logs/__init__.py +5 -7
- aws_cdk/aws_macie/__init__.py +28 -23
- aws_cdk/aws_mediaconnect/__init__.py +5 -8
- aws_cdk/aws_mediaconvert/__init__.py +2 -2
- aws_cdk/aws_medialive/__init__.py +2 -4
- aws_cdk/aws_mediapackage/__init__.py +9 -18
- aws_cdk/aws_memorydb/__init__.py +5 -10
- aws_cdk/aws_mwaa/__init__.py +8 -4
- aws_cdk/aws_neptune/__init__.py +4 -4
- aws_cdk/aws_networkfirewall/__init__.py +8 -4
- aws_cdk/aws_networkmanager/__init__.py +4 -4
- aws_cdk/aws_nimblestudio/__init__.py +25 -45
- aws_cdk/aws_opensearchservice/__init__.py +0 -1
- aws_cdk/aws_panorama/__init__.py +11 -12
- aws_cdk/aws_personalize/__init__.py +46 -72
- aws_cdk/aws_pinpoint/__init__.py +36 -65
- aws_cdk/aws_quicksight/__init__.py +9972 -13374
- aws_cdk/aws_rds/__init__.py +53 -22
- aws_cdk/aws_route53/__init__.py +8 -16
- aws_cdk/aws_route53_targets/__init__.py +2 -4
- aws_cdk/aws_s3/__init__.py +41 -90
- aws_cdk/aws_s3_notifications/__init__.py +0 -3
- aws_cdk/aws_sagemaker/__init__.py +16 -10
- aws_cdk/aws_secretsmanager/__init__.py +17 -14
- aws_cdk/aws_servicecatalog/__init__.py +60 -83
- aws_cdk/aws_servicediscovery/__init__.py +4 -6
- aws_cdk/aws_ses/__init__.py +734 -28
- aws_cdk/aws_sns/__init__.py +4 -8
- aws_cdk/aws_ssm/__init__.py +19 -23
- aws_cdk/aws_ssmcontacts/__init__.py +10 -6
- aws_cdk/aws_ssmincidents/__init__.py +2 -1
- aws_cdk/aws_sso/__init__.py +4 -4
- aws_cdk/aws_stepfunctions/__init__.py +6 -15
- aws_cdk/aws_stepfunctions_tasks/__init__.py +51 -24
- aws_cdk/aws_timestream/__init__.py +22 -28
- aws_cdk/aws_transfer/__init__.py +188 -86
- aws_cdk/aws_wafv2/__init__.py +54 -38
- aws_cdk/aws_xray/__init__.py +15 -22
- aws_cdk/cloud_assembly_schema/__init__.py +14 -6
- aws_cdk/custom_resources/__init__.py +2 -3
- aws_cdk/pipelines/__init__.py +104 -134
- aws_cdk/triggers/__init__.py +46 -61
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/METADATA +47 -92
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/RECORD +111 -111
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_cognito/__init__.py
CHANGED
|
@@ -552,9 +552,8 @@ provider = cognito.UserPoolIdentityProviderAmazon(self, "Amazon",
|
|
|
552
552
|
Using Google identity provider is possible to use clientSecretValue with SecretValue from secrets manager.
|
|
553
553
|
|
|
554
554
|
```python
|
|
555
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
556
555
|
userpool = cognito.UserPool(self, "Pool")
|
|
557
|
-
secret =
|
|
556
|
+
secret = secretsmanager.Secret.from_secret_attributes(self, "CognitoClientSecret",
|
|
558
557
|
secret_complete_arn="arn:aws:secretsmanager:xxx:xxx:secret:xxx-xxx"
|
|
559
558
|
).secret_value
|
|
560
559
|
|
|
@@ -772,7 +771,9 @@ User Pool clients can generate a client ID as well as a client secret, to suppor
|
|
|
772
771
|
To create a client with an autogenerated client secret, pass the `generateSecret: true` prop:
|
|
773
772
|
|
|
774
773
|
```python
|
|
775
|
-
#
|
|
774
|
+
# imported_pool: cognito.UserPool
|
|
775
|
+
|
|
776
|
+
|
|
776
777
|
user_pool_client = cognito.UserPoolClient(self, "UserPoolClient",
|
|
777
778
|
user_pool=imported_pool,
|
|
778
779
|
generate_secret=True
|
|
@@ -5746,49 +5747,66 @@ class CfnUserPoolClient(
|
|
|
5746
5747
|
|
|
5747
5748
|
:cloudformationResource: AWS::Cognito::UserPoolClient
|
|
5748
5749
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html
|
|
5749
|
-
:exampleMetadata:
|
|
5750
|
+
:exampleMetadata: infused
|
|
5750
5751
|
|
|
5751
5752
|
Example::
|
|
5752
5753
|
|
|
5753
|
-
|
|
5754
|
-
# The values are placeholders you should change.
|
|
5755
|
-
from aws_cdk import aws_cognito as cognito
|
|
5754
|
+
from aws_cdk import aws_certificatemanager as acm
|
|
5756
5755
|
|
|
5757
|
-
|
|
5758
|
-
|
|
5756
|
+
# vpc: ec2.Vpc
|
|
5757
|
+
# certificate: acm.Certificate
|
|
5759
5758
|
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
client_name="clientName",
|
|
5775
|
-
default_redirect_uri="defaultRedirectUri",
|
|
5776
|
-
enable_propagate_additional_user_context_data=False,
|
|
5777
|
-
enable_token_revocation=False,
|
|
5778
|
-
explicit_auth_flows=["explicitAuthFlows"],
|
|
5779
|
-
generate_secret=False,
|
|
5780
|
-
id_token_validity=123,
|
|
5781
|
-
logout_ur_ls=["logoutUrLs"],
|
|
5782
|
-
prevent_user_existence_errors="preventUserExistenceErrors",
|
|
5783
|
-
read_attributes=["readAttributes"],
|
|
5784
|
-
refresh_token_validity=123,
|
|
5785
|
-
supported_identity_providers=["supportedIdentityProviders"],
|
|
5786
|
-
token_validity_units=cognito.CfnUserPoolClient.TokenValidityUnitsProperty(
|
|
5787
|
-
access_token="accessToken",
|
|
5788
|
-
id_token="idToken",
|
|
5789
|
-
refresh_token="refreshToken"
|
|
5759
|
+
|
|
5760
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
5761
|
+
vpc=vpc,
|
|
5762
|
+
internet_facing=True
|
|
5763
|
+
)
|
|
5764
|
+
|
|
5765
|
+
user_pool = cognito.UserPool(self, "UserPool")
|
|
5766
|
+
user_pool_client = cognito.UserPoolClient(self, "Client",
|
|
5767
|
+
user_pool=user_pool,
|
|
5768
|
+
|
|
5769
|
+
# Required minimal configuration for use with an ELB
|
|
5770
|
+
generate_secret=True,
|
|
5771
|
+
auth_flows=cognito.AuthFlow(
|
|
5772
|
+
user_password=True
|
|
5790
5773
|
),
|
|
5791
|
-
|
|
5774
|
+
o_auth=cognito.OAuthSettings(
|
|
5775
|
+
flows=cognito.OAuthFlows(
|
|
5776
|
+
authorization_code_grant=True
|
|
5777
|
+
),
|
|
5778
|
+
scopes=[cognito.OAuthScope.EMAIL],
|
|
5779
|
+
callback_urls=[f"https://{lb.loadBalancerDnsName}/oauth2/idpresponse"
|
|
5780
|
+
]
|
|
5781
|
+
)
|
|
5782
|
+
)
|
|
5783
|
+
cfn_client = user_pool_client.node.default_child
|
|
5784
|
+
cfn_client.add_property_override("RefreshTokenValidity", 1)
|
|
5785
|
+
cfn_client.add_property_override("SupportedIdentityProviders", ["COGNITO"])
|
|
5786
|
+
|
|
5787
|
+
user_pool_domain = cognito.UserPoolDomain(self, "Domain",
|
|
5788
|
+
user_pool=user_pool,
|
|
5789
|
+
cognito_domain=cognito.CognitoDomainOptions(
|
|
5790
|
+
domain_prefix="test-cdk-prefix"
|
|
5791
|
+
)
|
|
5792
|
+
)
|
|
5793
|
+
|
|
5794
|
+
lb.add_listener("Listener",
|
|
5795
|
+
port=443,
|
|
5796
|
+
certificates=[certificate],
|
|
5797
|
+
default_action=actions.AuthenticateCognitoAction(
|
|
5798
|
+
user_pool=user_pool,
|
|
5799
|
+
user_pool_client=user_pool_client,
|
|
5800
|
+
user_pool_domain=user_pool_domain,
|
|
5801
|
+
next=elbv2.ListenerAction.fixed_response(200,
|
|
5802
|
+
content_type="text/plain",
|
|
5803
|
+
message_body="Authenticated"
|
|
5804
|
+
)
|
|
5805
|
+
)
|
|
5806
|
+
)
|
|
5807
|
+
|
|
5808
|
+
CfnOutput(self, "DNS",
|
|
5809
|
+
value=lb.load_balancer_dns_name
|
|
5792
5810
|
)
|
|
5793
5811
|
'''
|
|
5794
5812
|
|
|
@@ -12976,17 +12994,21 @@ class OAuthFlows:
|
|
|
12976
12994
|
|
|
12977
12995
|
Example::
|
|
12978
12996
|
|
|
12979
|
-
|
|
12980
|
-
|
|
12997
|
+
userpool = cognito.UserPool(self, "UserPool")
|
|
12998
|
+
client = userpool.add_client("Client",
|
|
12999
|
+
# ...
|
|
12981
13000
|
o_auth=cognito.OAuthSettings(
|
|
12982
13001
|
flows=cognito.OAuthFlows(
|
|
12983
|
-
|
|
13002
|
+
implicit_code_grant=True
|
|
12984
13003
|
),
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
logout_urls=["https://my-app-domain.com/signin"]
|
|
13004
|
+
callback_urls=["https://myapp.com/home", "https://myapp.com/users"
|
|
13005
|
+
]
|
|
12988
13006
|
)
|
|
12989
13007
|
)
|
|
13008
|
+
domain = userpool.add_domain("Domain")
|
|
13009
|
+
sign_in_url = domain.sign_in_url(client,
|
|
13010
|
+
redirect_uri="https://myapp.com/home"
|
|
13011
|
+
)
|
|
12990
13012
|
'''
|
|
12991
13013
|
if __debug__:
|
|
12992
13014
|
type_hints = typing.get_type_hints(_typecheckingstub__9aa5ba53667700cdf4d217354a8b54484e7e7fa22880031485734768e7a3bf8b)
|
|
@@ -13052,14 +13074,28 @@ class OAuthScope(
|
|
|
13052
13074
|
Example::
|
|
13053
13075
|
|
|
13054
13076
|
pool = cognito.UserPool(self, "Pool")
|
|
13055
|
-
|
|
13077
|
+
|
|
13078
|
+
read_only_scope = cognito.ResourceServerScope(scope_name="read", scope_description="Read-only access")
|
|
13079
|
+
full_access_scope = cognito.ResourceServerScope(scope_name="*", scope_description="Full access")
|
|
13080
|
+
|
|
13081
|
+
user_server = pool.add_resource_server("ResourceServer",
|
|
13082
|
+
identifier="users",
|
|
13083
|
+
scopes=[read_only_scope, full_access_scope]
|
|
13084
|
+
)
|
|
13085
|
+
|
|
13086
|
+
read_only_client = pool.add_client("read-only-client",
|
|
13087
|
+
# ...
|
|
13056
13088
|
o_auth=cognito.OAuthSettings(
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13089
|
+
# ...
|
|
13090
|
+
scopes=[cognito.OAuthScope.resource_server(user_server, read_only_scope)]
|
|
13091
|
+
)
|
|
13092
|
+
)
|
|
13093
|
+
|
|
13094
|
+
full_access_client = pool.add_client("full-access-client",
|
|
13095
|
+
# ...
|
|
13096
|
+
o_auth=cognito.OAuthSettings(
|
|
13097
|
+
# ...
|
|
13098
|
+
scopes=[cognito.OAuthScope.resource_server(user_server, full_access_scope)]
|
|
13063
13099
|
)
|
|
13064
13100
|
)
|
|
13065
13101
|
'''
|
|
@@ -13174,20 +13210,30 @@ class OAuthSettings:
|
|
|
13174
13210
|
|
|
13175
13211
|
Example::
|
|
13176
13212
|
|
|
13177
|
-
|
|
13178
|
-
|
|
13213
|
+
pool = cognito.UserPool(self, "Pool")
|
|
13214
|
+
|
|
13215
|
+
read_only_scope = cognito.ResourceServerScope(scope_name="read", scope_description="Read-only access")
|
|
13216
|
+
full_access_scope = cognito.ResourceServerScope(scope_name="*", scope_description="Full access")
|
|
13217
|
+
|
|
13218
|
+
user_server = pool.add_resource_server("ResourceServer",
|
|
13219
|
+
identifier="users",
|
|
13220
|
+
scopes=[read_only_scope, full_access_scope]
|
|
13221
|
+
)
|
|
13222
|
+
|
|
13223
|
+
read_only_client = pool.add_client("read-only-client",
|
|
13179
13224
|
# ...
|
|
13180
13225
|
o_auth=cognito.OAuthSettings(
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
),
|
|
13184
|
-
callback_urls=["https://myapp.com/home", "https://myapp.com/users"
|
|
13185
|
-
]
|
|
13226
|
+
# ...
|
|
13227
|
+
scopes=[cognito.OAuthScope.resource_server(user_server, read_only_scope)]
|
|
13186
13228
|
)
|
|
13187
13229
|
)
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13230
|
+
|
|
13231
|
+
full_access_client = pool.add_client("full-access-client",
|
|
13232
|
+
# ...
|
|
13233
|
+
o_auth=cognito.OAuthSettings(
|
|
13234
|
+
# ...
|
|
13235
|
+
scopes=[cognito.OAuthScope.resource_server(user_server, full_access_scope)]
|
|
13236
|
+
)
|
|
13191
13237
|
)
|
|
13192
13238
|
'''
|
|
13193
13239
|
if isinstance(flows, dict):
|
|
@@ -15135,14 +15181,16 @@ class UserPool(
|
|
|
15135
15181
|
|
|
15136
15182
|
Example::
|
|
15137
15183
|
|
|
15138
|
-
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15145
|
-
|
|
15184
|
+
pool = cognito.UserPool(self, "Pool")
|
|
15185
|
+
pool.add_client("app-client",
|
|
15186
|
+
o_auth=cognito.OAuthSettings(
|
|
15187
|
+
flows=cognito.OAuthFlows(
|
|
15188
|
+
authorization_code_grant=True
|
|
15189
|
+
),
|
|
15190
|
+
scopes=[cognito.OAuthScope.OPENID],
|
|
15191
|
+
callback_urls=["https://my-app-domain.com/welcome"],
|
|
15192
|
+
logout_urls=["https://my-app-domain.com/signin"]
|
|
15193
|
+
)
|
|
15146
15194
|
)
|
|
15147
15195
|
'''
|
|
15148
15196
|
|
|
@@ -16057,10 +16105,16 @@ class UserPoolClientProps(UserPoolClientOptions):
|
|
|
16057
16105
|
|
|
16058
16106
|
Example::
|
|
16059
16107
|
|
|
16060
|
-
imported_pool
|
|
16061
|
-
|
|
16062
|
-
|
|
16108
|
+
# imported_pool: cognito.UserPool
|
|
16109
|
+
|
|
16110
|
+
|
|
16111
|
+
user_pool_client = cognito.UserPoolClient(self, "UserPoolClient",
|
|
16112
|
+
user_pool=imported_pool,
|
|
16113
|
+
generate_secret=True
|
|
16063
16114
|
)
|
|
16115
|
+
|
|
16116
|
+
# Allows you to pass the generated secret to other pieces of infrastructure
|
|
16117
|
+
secret = user_pool_client.user_pool_client_secret
|
|
16064
16118
|
'''
|
|
16065
16119
|
if isinstance(auth_flows, dict):
|
|
16066
16120
|
auth_flows = AuthFlow(**auth_flows)
|
|
@@ -16307,14 +16361,20 @@ class UserPoolDomain(
|
|
|
16307
16361
|
|
|
16308
16362
|
Example::
|
|
16309
16363
|
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16364
|
+
userpool = cognito.UserPool(self, "UserPool")
|
|
16365
|
+
client = userpool.add_client("Client",
|
|
16366
|
+
# ...
|
|
16367
|
+
o_auth=cognito.OAuthSettings(
|
|
16368
|
+
flows=cognito.OAuthFlows(
|
|
16369
|
+
implicit_code_grant=True
|
|
16370
|
+
),
|
|
16371
|
+
callback_urls=["https://myapp.com/home", "https://myapp.com/users"
|
|
16372
|
+
]
|
|
16373
|
+
)
|
|
16374
|
+
)
|
|
16375
|
+
domain = userpool.add_domain("Domain")
|
|
16376
|
+
sign_in_url = domain.sign_in_url(client,
|
|
16377
|
+
redirect_uri="https://myapp.com/home"
|
|
16318
16378
|
)
|
|
16319
16379
|
'''
|
|
16320
16380
|
|
|
@@ -16529,30 +16589,67 @@ class UserPoolDomainProps(UserPoolDomainOptions):
|
|
|
16529
16589
|
:param custom_domain: Associate a custom domain with your user pool Either ``customDomain`` or ``cognitoDomain`` must be specified. Default: - not set if ``cognitoDomain`` is specified, otherwise, throws an error.
|
|
16530
16590
|
:param user_pool: The user pool to which this domain should be associated.
|
|
16531
16591
|
|
|
16532
|
-
:exampleMetadata:
|
|
16592
|
+
:exampleMetadata: infused
|
|
16533
16593
|
|
|
16534
16594
|
Example::
|
|
16535
16595
|
|
|
16536
|
-
|
|
16537
|
-
# The values are placeholders you should change.
|
|
16538
|
-
from aws_cdk import aws_certificatemanager as certificatemanager
|
|
16539
|
-
from aws_cdk import aws_cognito as cognito
|
|
16596
|
+
from aws_cdk import aws_certificatemanager as acm
|
|
16540
16597
|
|
|
16541
|
-
#
|
|
16542
|
-
#
|
|
16598
|
+
# vpc: ec2.Vpc
|
|
16599
|
+
# certificate: acm.Certificate
|
|
16600
|
+
|
|
16601
|
+
|
|
16602
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
16603
|
+
vpc=vpc,
|
|
16604
|
+
internet_facing=True
|
|
16605
|
+
)
|
|
16543
16606
|
|
|
16544
|
-
|
|
16607
|
+
user_pool = cognito.UserPool(self, "UserPool")
|
|
16608
|
+
user_pool_client = cognito.UserPoolClient(self, "Client",
|
|
16545
16609
|
user_pool=user_pool,
|
|
16546
16610
|
|
|
16547
|
-
#
|
|
16548
|
-
|
|
16549
|
-
|
|
16611
|
+
# Required minimal configuration for use with an ELB
|
|
16612
|
+
generate_secret=True,
|
|
16613
|
+
auth_flows=cognito.AuthFlow(
|
|
16614
|
+
user_password=True
|
|
16550
16615
|
),
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16616
|
+
o_auth=cognito.OAuthSettings(
|
|
16617
|
+
flows=cognito.OAuthFlows(
|
|
16618
|
+
authorization_code_grant=True
|
|
16619
|
+
),
|
|
16620
|
+
scopes=[cognito.OAuthScope.EMAIL],
|
|
16621
|
+
callback_urls=[f"https://{lb.loadBalancerDnsName}/oauth2/idpresponse"
|
|
16622
|
+
]
|
|
16623
|
+
)
|
|
16624
|
+
)
|
|
16625
|
+
cfn_client = user_pool_client.node.default_child
|
|
16626
|
+
cfn_client.add_property_override("RefreshTokenValidity", 1)
|
|
16627
|
+
cfn_client.add_property_override("SupportedIdentityProviders", ["COGNITO"])
|
|
16628
|
+
|
|
16629
|
+
user_pool_domain = cognito.UserPoolDomain(self, "Domain",
|
|
16630
|
+
user_pool=user_pool,
|
|
16631
|
+
cognito_domain=cognito.CognitoDomainOptions(
|
|
16632
|
+
domain_prefix="test-cdk-prefix"
|
|
16633
|
+
)
|
|
16634
|
+
)
|
|
16635
|
+
|
|
16636
|
+
lb.add_listener("Listener",
|
|
16637
|
+
port=443,
|
|
16638
|
+
certificates=[certificate],
|
|
16639
|
+
default_action=actions.AuthenticateCognitoAction(
|
|
16640
|
+
user_pool=user_pool,
|
|
16641
|
+
user_pool_client=user_pool_client,
|
|
16642
|
+
user_pool_domain=user_pool_domain,
|
|
16643
|
+
next=elbv2.ListenerAction.fixed_response(200,
|
|
16644
|
+
content_type="text/plain",
|
|
16645
|
+
message_body="Authenticated"
|
|
16646
|
+
)
|
|
16554
16647
|
)
|
|
16555
16648
|
)
|
|
16649
|
+
|
|
16650
|
+
CfnOutput(self, "DNS",
|
|
16651
|
+
value=lb.load_balancer_dns_name
|
|
16652
|
+
)
|
|
16556
16653
|
'''
|
|
16557
16654
|
if isinstance(cognito_domain, dict):
|
|
16558
16655
|
cognito_domain = CognitoDomainOptions(**cognito_domain)
|
|
@@ -17010,9 +17107,8 @@ class UserPoolIdentityProviderGoogle(
|
|
|
17010
17107
|
|
|
17011
17108
|
Example::
|
|
17012
17109
|
|
|
17013
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
17014
17110
|
userpool = cognito.UserPool(self, "Pool")
|
|
17015
|
-
secret =
|
|
17111
|
+
secret = secretsmanager.Secret.from_secret_attributes(self, "CognitoClientSecret",
|
|
17016
17112
|
secret_complete_arn="arn:aws:secretsmanager:xxx:xxx:secret:xxx-xxx"
|
|
17017
17113
|
).secret_value
|
|
17018
17114
|
|
|
@@ -19723,9 +19819,8 @@ class UserPoolIdentityProviderGoogleProps(UserPoolIdentityProviderProps):
|
|
|
19723
19819
|
|
|
19724
19820
|
Example::
|
|
19725
19821
|
|
|
19726
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19727
19822
|
userpool = cognito.UserPool(self, "Pool")
|
|
19728
|
-
secret =
|
|
19823
|
+
secret = secretsmanager.Secret.from_secret_attributes(self, "CognitoClientSecret",
|
|
19729
19824
|
secret_complete_arn="arn:aws:secretsmanager:xxx:xxx:secret:xxx-xxx"
|
|
19730
19825
|
).secret_value
|
|
19731
19826
|
|
aws_cdk/aws_config/__init__.py
CHANGED
|
@@ -121,7 +121,6 @@ custom_rule = config.CustomRule(self, "Custom",
|
|
|
121
121
|
Guard which contains the logic that evaluates whether your AWS resources comply with the rule.
|
|
122
122
|
|
|
123
123
|
```python
|
|
124
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
125
124
|
sample_policy_text = """
|
|
126
125
|
# This rule checks if point in time recovery (PITR) is enabled on active Amazon DynamoDB tables
|
|
127
126
|
let status = ['ACTIVE']
|
|
@@ -139,7 +138,7 @@ rule checkcompliance when
|
|
|
139
138
|
}
|
|
140
139
|
"""
|
|
141
140
|
|
|
142
|
-
config.CustomPolicy(
|
|
141
|
+
config.CustomPolicy(self, "Custom",
|
|
143
142
|
policy_text=sample_policy_text,
|
|
144
143
|
enable_debug_log=True,
|
|
145
144
|
rule_scope=config.RuleScope.from_resources([config.ResourceType.DYNAMODB_TABLE
|
|
@@ -3535,7 +3534,7 @@ class CfnOrganizationConfigRule(
|
|
|
3535
3534
|
:param id: - scoped id of the resource.
|
|
3536
3535
|
:param organization_config_rule_name: The name that you assign to organization AWS Config rule.
|
|
3537
3536
|
:param excluded_accounts: A comma-separated list of accounts excluded from organization AWS Config rule.
|
|
3538
|
-
:param organization_custom_policy_rule_metadata:
|
|
3537
|
+
:param organization_custom_policy_rule_metadata: ``AWS::Config::OrganizationConfigRule.OrganizationCustomPolicyRuleMetadata``.
|
|
3539
3538
|
:param organization_custom_rule_metadata: An ``OrganizationCustomRuleMetadata`` object.
|
|
3540
3539
|
:param organization_managed_rule_metadata: An ``OrganizationManagedRuleMetadata`` object.
|
|
3541
3540
|
'''
|
|
@@ -3628,9 +3627,7 @@ class CfnOrganizationConfigRule(
|
|
|
3628
3627
|
def organization_custom_policy_rule_metadata(
|
|
3629
3628
|
self,
|
|
3630
3629
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty"]]:
|
|
3631
|
-
'''
|
|
3632
|
-
|
|
3633
|
-
The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of AWS resource, and organization trigger types that initiate AWS Config to evaluate AWS resources against a rule.
|
|
3630
|
+
'''``AWS::Config::OrganizationConfigRule.OrganizationCustomPolicyRuleMetadata``.
|
|
3634
3631
|
|
|
3635
3632
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata
|
|
3636
3633
|
'''
|
|
@@ -3721,21 +3718,18 @@ class CfnOrganizationConfigRule(
|
|
|
3721
3718
|
tag_key_scope: typing.Optional[builtins.str] = None,
|
|
3722
3719
|
tag_value_scope: typing.Optional[builtins.str] = None,
|
|
3723
3720
|
) -> None:
|
|
3724
|
-
'''
|
|
3725
|
-
|
|
3726
|
-
The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of AWS resource, and organization trigger types that initiate AWS Config to evaluate AWS resources against a rule.
|
|
3727
|
-
|
|
3728
|
-
:param policy_text: The policy definition containing the logic for your organization AWS Config Custom Policy rule.
|
|
3721
|
+
'''
|
|
3722
|
+
:param policy_text: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.PolicyText``.
|
|
3729
3723
|
:param runtime: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Runtime``.
|
|
3730
|
-
:param debug_log_delivery_accounts:
|
|
3731
|
-
:param description:
|
|
3732
|
-
:param input_parameters:
|
|
3733
|
-
:param maximum_execution_frequency:
|
|
3734
|
-
:param organization_config_rule_trigger_types:
|
|
3735
|
-
:param resource_id_scope:
|
|
3736
|
-
:param resource_types_scope:
|
|
3737
|
-
:param tag_key_scope:
|
|
3738
|
-
:param tag_value_scope:
|
|
3724
|
+
:param debug_log_delivery_accounts: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.DebugLogDeliveryAccounts``.
|
|
3725
|
+
:param description: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Description``.
|
|
3726
|
+
:param input_parameters: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.InputParameters``.
|
|
3727
|
+
:param maximum_execution_frequency: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.MaximumExecutionFrequency``.
|
|
3728
|
+
:param organization_config_rule_trigger_types: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.OrganizationConfigRuleTriggerTypes``.
|
|
3729
|
+
:param resource_id_scope: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.ResourceIdScope``.
|
|
3730
|
+
:param resource_types_scope: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.ResourceTypesScope``.
|
|
3731
|
+
:param tag_key_scope: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.TagKeyScope``.
|
|
3732
|
+
:param tag_value_scope: ``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.TagValueScope``.
|
|
3739
3733
|
|
|
3740
3734
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html
|
|
3741
3735
|
:exampleMetadata: fixture=_generated
|
|
@@ -3800,7 +3794,7 @@ class CfnOrganizationConfigRule(
|
|
|
3800
3794
|
|
|
3801
3795
|
@builtins.property
|
|
3802
3796
|
def policy_text(self) -> builtins.str:
|
|
3803
|
-
'''
|
|
3797
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.PolicyText``.
|
|
3804
3798
|
|
|
3805
3799
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-policytext
|
|
3806
3800
|
'''
|
|
@@ -3822,9 +3816,7 @@ class CfnOrganizationConfigRule(
|
|
|
3822
3816
|
def debug_log_delivery_accounts(
|
|
3823
3817
|
self,
|
|
3824
3818
|
) -> typing.Optional[typing.List[builtins.str]]:
|
|
3825
|
-
'''
|
|
3826
|
-
|
|
3827
|
-
List is null when debug logging is enabled for all accounts.
|
|
3819
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.DebugLogDeliveryAccounts``.
|
|
3828
3820
|
|
|
3829
3821
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-debuglogdeliveryaccounts
|
|
3830
3822
|
'''
|
|
@@ -3833,7 +3825,7 @@ class CfnOrganizationConfigRule(
|
|
|
3833
3825
|
|
|
3834
3826
|
@builtins.property
|
|
3835
3827
|
def description(self) -> typing.Optional[builtins.str]:
|
|
3836
|
-
'''
|
|
3828
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Description``.
|
|
3837
3829
|
|
|
3838
3830
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-description
|
|
3839
3831
|
'''
|
|
@@ -3842,7 +3834,7 @@ class CfnOrganizationConfigRule(
|
|
|
3842
3834
|
|
|
3843
3835
|
@builtins.property
|
|
3844
3836
|
def input_parameters(self) -> typing.Optional[builtins.str]:
|
|
3845
|
-
'''
|
|
3837
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.InputParameters``.
|
|
3846
3838
|
|
|
3847
3839
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-inputparameters
|
|
3848
3840
|
'''
|
|
@@ -3851,9 +3843,7 @@ class CfnOrganizationConfigRule(
|
|
|
3851
3843
|
|
|
3852
3844
|
@builtins.property
|
|
3853
3845
|
def maximum_execution_frequency(self) -> typing.Optional[builtins.str]:
|
|
3854
|
-
'''
|
|
3855
|
-
|
|
3856
|
-
Your AWS Config Custom Policy rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ``ConfigSnapshotDeliveryProperties`` .
|
|
3846
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.MaximumExecutionFrequency``.
|
|
3857
3847
|
|
|
3858
3848
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-maximumexecutionfrequency
|
|
3859
3849
|
'''
|
|
@@ -3864,12 +3854,7 @@ class CfnOrganizationConfigRule(
|
|
|
3864
3854
|
def organization_config_rule_trigger_types(
|
|
3865
3855
|
self,
|
|
3866
3856
|
) -> typing.Optional[typing.List[builtins.str]]:
|
|
3867
|
-
'''
|
|
3868
|
-
|
|
3869
|
-
For AWS Config Custom Policy rules, AWS Config supports change-initiated notification types:
|
|
3870
|
-
|
|
3871
|
-
- ``ConfigurationItemChangeNotification`` - Initiates an evaluation when AWS Config delivers a configuration item as a result of a resource change.
|
|
3872
|
-
- ``OversizedConfigurationItemChangeNotification`` - Initiates an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
|
|
3857
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.OrganizationConfigRuleTriggerTypes``.
|
|
3873
3858
|
|
|
3874
3859
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-organizationconfigruletriggertypes
|
|
3875
3860
|
'''
|
|
@@ -3878,7 +3863,7 @@ class CfnOrganizationConfigRule(
|
|
|
3878
3863
|
|
|
3879
3864
|
@builtins.property
|
|
3880
3865
|
def resource_id_scope(self) -> typing.Optional[builtins.str]:
|
|
3881
|
-
'''
|
|
3866
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.ResourceIdScope``.
|
|
3882
3867
|
|
|
3883
3868
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-resourceidscope
|
|
3884
3869
|
'''
|
|
@@ -3887,7 +3872,7 @@ class CfnOrganizationConfigRule(
|
|
|
3887
3872
|
|
|
3888
3873
|
@builtins.property
|
|
3889
3874
|
def resource_types_scope(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3890
|
-
'''
|
|
3875
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.ResourceTypesScope``.
|
|
3891
3876
|
|
|
3892
3877
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-resourcetypesscope
|
|
3893
3878
|
'''
|
|
@@ -3896,9 +3881,7 @@ class CfnOrganizationConfigRule(
|
|
|
3896
3881
|
|
|
3897
3882
|
@builtins.property
|
|
3898
3883
|
def tag_key_scope(self) -> typing.Optional[builtins.str]:
|
|
3899
|
-
'''
|
|
3900
|
-
|
|
3901
|
-
A key is a general label that acts like a category for more specific tag values.
|
|
3884
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.TagKeyScope``.
|
|
3902
3885
|
|
|
3903
3886
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-tagkeyscope
|
|
3904
3887
|
'''
|
|
@@ -3907,9 +3890,7 @@ class CfnOrganizationConfigRule(
|
|
|
3907
3890
|
|
|
3908
3891
|
@builtins.property
|
|
3909
3892
|
def tag_value_scope(self) -> typing.Optional[builtins.str]:
|
|
3910
|
-
'''
|
|
3911
|
-
|
|
3912
|
-
A value acts as a descriptor within a tag category (key).
|
|
3893
|
+
'''``CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.TagValueScope``.
|
|
3913
3894
|
|
|
3914
3895
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustompolicyrulemetadata.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata-tagvaluescope
|
|
3915
3896
|
'''
|
|
@@ -4343,7 +4324,7 @@ class CfnOrganizationConfigRuleProps:
|
|
|
4343
4324
|
|
|
4344
4325
|
:param organization_config_rule_name: The name that you assign to organization AWS Config rule.
|
|
4345
4326
|
:param excluded_accounts: A comma-separated list of accounts excluded from organization AWS Config rule.
|
|
4346
|
-
:param organization_custom_policy_rule_metadata:
|
|
4327
|
+
:param organization_custom_policy_rule_metadata: ``AWS::Config::OrganizationConfigRule.OrganizationCustomPolicyRuleMetadata``.
|
|
4347
4328
|
:param organization_custom_rule_metadata: An ``OrganizationCustomRuleMetadata`` object.
|
|
4348
4329
|
:param organization_managed_rule_metadata: An ``OrganizationManagedRuleMetadata`` object.
|
|
4349
4330
|
|
|
@@ -4445,9 +4426,7 @@ class CfnOrganizationConfigRuleProps:
|
|
|
4445
4426
|
def organization_custom_policy_rule_metadata(
|
|
4446
4427
|
self,
|
|
4447
4428
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty]]:
|
|
4448
|
-
'''
|
|
4449
|
-
|
|
4450
|
-
The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of AWS resource, and organization trigger types that initiate AWS Config to evaluate AWS resources against a rule.
|
|
4429
|
+
'''``AWS::Config::OrganizationConfigRule.OrganizationCustomPolicyRuleMetadata``.
|
|
4451
4430
|
|
|
4452
4431
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata
|
|
4453
4432
|
'''
|
|
@@ -11607,7 +11586,6 @@ class CustomPolicy(
|
|
|
11607
11586
|
|
|
11608
11587
|
Example::
|
|
11609
11588
|
|
|
11610
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
11611
11589
|
sample_policy_text = """
|
|
11612
11590
|
# This rule checks if point in time recovery (PITR) is enabled on active Amazon DynamoDB tables
|
|
11613
11591
|
let status = ['ACTIVE']
|
|
@@ -11625,7 +11603,7 @@ class CustomPolicy(
|
|
|
11625
11603
|
}
|
|
11626
11604
|
"""
|
|
11627
11605
|
|
|
11628
|
-
config.CustomPolicy(
|
|
11606
|
+
config.CustomPolicy(self, "Custom",
|
|
11629
11607
|
policy_text=sample_policy_text,
|
|
11630
11608
|
enable_debug_log=True,
|
|
11631
11609
|
rule_scope=config.RuleScope.from_resources([config.ResourceType.DYNAMODB_TABLE
|
|
@@ -11908,7 +11886,6 @@ class CustomPolicyProps(RuleProps):
|
|
|
11908
11886
|
|
|
11909
11887
|
Example::
|
|
11910
11888
|
|
|
11911
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
11912
11889
|
sample_policy_text = """
|
|
11913
11890
|
# This rule checks if point in time recovery (PITR) is enabled on active Amazon DynamoDB tables
|
|
11914
11891
|
let status = ['ACTIVE']
|
|
@@ -11926,7 +11903,7 @@ class CustomPolicyProps(RuleProps):
|
|
|
11926
11903
|
}
|
|
11927
11904
|
"""
|
|
11928
11905
|
|
|
11929
|
-
config.CustomPolicy(
|
|
11906
|
+
config.CustomPolicy(self, "Custom",
|
|
11930
11907
|
policy_text=sample_policy_text,
|
|
11931
11908
|
enable_debug_log=True,
|
|
11932
11909
|
rule_scope=config.RuleScope.from_resources([config.ResourceType.DYNAMODB_TABLE
|