aws-cdk-lib 2.213.0__py3-none-any.whl → 2.214.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 +23 -3
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.213.0.jsii.tgz → aws-cdk-lib@2.214.0.jsii.tgz} +0 -0
- aws_cdk/aws_appconfig/__init__.py +18 -6
- aws_cdk/aws_appintegrations/__init__.py +4 -4
- aws_cdk/aws_apprunner/__init__.py +5 -8
- aws_cdk/aws_aps/__init__.py +243 -10
- aws_cdk/aws_b2bi/__init__.py +1015 -128
- aws_cdk/aws_batch/__init__.py +33 -11
- aws_cdk/aws_bedrock/__init__.py +22 -216
- aws_cdk/aws_budgets/__init__.py +18 -0
- aws_cdk/aws_certificatemanager/__init__.py +96 -15
- aws_cdk/aws_cloudformation/__init__.py +3 -3
- aws_cdk/aws_cloudwatch/__init__.py +80 -49
- aws_cdk/aws_cognito/__init__.py +76 -5
- aws_cdk/aws_connect/__init__.py +188 -2
- aws_cdk/aws_datazone/__init__.py +2267 -0
- aws_cdk/aws_deadline/__init__.py +6 -5
- aws_cdk/aws_dynamodb/__init__.py +27 -16
- aws_cdk/aws_ec2/__init__.py +51 -10
- aws_cdk/aws_ecs/__init__.py +288 -25
- aws_cdk/aws_ecs_patterns/__init__.py +2 -0
- aws_cdk/aws_eks/__init__.py +124 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +6 -2
- aws_cdk/aws_entityresolution/__init__.py +107 -0
- aws_cdk/aws_events/__init__.py +153 -55
- aws_cdk/aws_events_targets/__init__.py +87 -36
- aws_cdk/aws_fsx/__init__.py +62 -0
- aws_cdk/aws_gameliftstreams/__init__.py +1 -1
- aws_cdk/aws_glue/__init__.py +205 -23
- aws_cdk/aws_guardduty/__init__.py +205 -100
- aws_cdk/aws_iam/__init__.py +24 -21
- aws_cdk/aws_inspectorv2/__init__.py +125 -80
- aws_cdk/aws_iot/__init__.py +37 -19
- aws_cdk/aws_iotsitewise/__init__.py +111 -75
- aws_cdk/aws_ivs/__init__.py +17 -17
- aws_cdk/aws_kinesisanalytics/__init__.py +122 -3
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +122 -3
- aws_cdk/aws_lambda/__init__.py +23 -2
- aws_cdk/aws_logs/__init__.py +20 -15
- aws_cdk/aws_mediapackagev2/__init__.py +2 -2
- aws_cdk/aws_networkfirewall/__init__.py +6 -6
- aws_cdk/aws_omics/__init__.py +477 -2
- aws_cdk/aws_qbusiness/__init__.py +4 -2
- aws_cdk/aws_rds/__init__.py +132 -4
- aws_cdk/aws_route53/__init__.py +18 -11
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_s3_deployment/__init__.py +45 -0
- aws_cdk/aws_sagemaker/__init__.py +653 -0
- aws_cdk/aws_servicediscovery/__init__.py +22 -37
- aws_cdk/aws_sns/__init__.py +12 -2
- aws_cdk/aws_sns_subscriptions/__init__.py +3 -1
- aws_cdk/aws_sqs/__init__.py +5 -5
- aws_cdk/aws_ssm/__init__.py +8 -3
- aws_cdk/aws_ssmquicksetup/__init__.py +2 -2
- aws_cdk/aws_synthetics/__init__.py +222 -12
- aws_cdk/aws_transfer/__init__.py +15 -2
- aws_cdk/aws_vpclattice/__init__.py +41 -0
- aws_cdk/aws_workspacesweb/__init__.py +71 -41
- {aws_cdk_lib-2.213.0.dist-info → aws_cdk_lib-2.214.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.213.0.dist-info → aws_cdk_lib-2.214.0.dist-info}/RECORD +65 -65
- {aws_cdk_lib-2.213.0.dist-info → aws_cdk_lib-2.214.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.213.0.dist-info → aws_cdk_lib-2.214.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.213.0.dist-info → aws_cdk_lib-2.214.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.213.0.dist-info → aws_cdk_lib-2.214.0.dist-info}/top_level.txt +0 -0
|
@@ -329,6 +329,25 @@ s3deploy.BucketDeployment(self, "DeployWithInvalidation",
|
|
|
329
329
|
)
|
|
330
330
|
```
|
|
331
331
|
|
|
332
|
+
By default, the deployment will wait for invalidation to succeed to complete. This will poll Cloudfront for a maximum of 13 minutes to check for a successful invalidation. The drawback to this is that the deployment will fail if invalidation fails or if it takes longer than 13 minutes. As a workaround, there is the option `waitForDistributionInvalidation`, which can be set to false to skip waiting for the invalidation, but this can be risky as invalidation errors will not be reported.
|
|
333
|
+
|
|
334
|
+
```python
|
|
335
|
+
import aws_cdk.aws_cloudfront as cloudfront
|
|
336
|
+
|
|
337
|
+
# bucket: s3.IBucket
|
|
338
|
+
# distribution: cloudfront.IDistribution
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
s3deploy.BucketDeployment(self, "DeployWithInvalidation",
|
|
342
|
+
sources=[s3deploy.Source.asset("./website-dist")],
|
|
343
|
+
destination_bucket=bucket,
|
|
344
|
+
distribution=distribution,
|
|
345
|
+
distribution_paths=["/images/*.png"],
|
|
346
|
+
# Invalidate cache but don't wait or verify that invalidation has completed successfully.
|
|
347
|
+
wait_for_distribution_invalidation=False
|
|
348
|
+
)
|
|
349
|
+
```
|
|
350
|
+
|
|
332
351
|
## Signed Content Payloads
|
|
333
352
|
|
|
334
353
|
By default, deployment uses streaming uploads which set the `x-amz-content-sha256`
|
|
@@ -678,6 +697,7 @@ class BucketDeployment(
|
|
|
678
697
|
use_efs: typing.Optional[builtins.bool] = None,
|
|
679
698
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
680
699
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
700
|
+
wait_for_distribution_invalidation: typing.Optional[builtins.bool] = None,
|
|
681
701
|
website_redirect_location: typing.Optional[builtins.str] = None,
|
|
682
702
|
) -> None:
|
|
683
703
|
'''
|
|
@@ -715,6 +735,7 @@ class BucketDeployment(
|
|
|
715
735
|
:param use_efs: Mount an EFS file system. Enable this if your assets are large and you encounter disk space errors. Enabling this option will require a VPC to be specified. Default: - No EFS. Lambda has access only to 512MB of disk space.
|
|
716
736
|
:param vpc: The VPC network to place the deployment lambda handler in. This is required if ``useEfs`` is set. Default: None
|
|
717
737
|
:param vpc_subnets: Where in the VPC to place the deployment lambda handler. Only used if 'vpc' is supplied. Default: - the Vpc default strategy if not specified
|
|
738
|
+
:param wait_for_distribution_invalidation: In case of using a cloudfront distribtuion, if this property is set to false then the custom resource will not wait and verify for Cloudfront invalidation to complete. This may speed up deployment and avoid intermittent Cloudfront issues. However, this is risky and not recommended as cache invalidation can silently fail. Default: true
|
|
718
739
|
:param website_redirect_location: System-defined x-amz-website-redirect-location metadata to be set on all objects in the deployment. Default: - No website redirection.
|
|
719
740
|
'''
|
|
720
741
|
if __debug__:
|
|
@@ -754,6 +775,7 @@ class BucketDeployment(
|
|
|
754
775
|
use_efs=use_efs,
|
|
755
776
|
vpc=vpc,
|
|
756
777
|
vpc_subnets=vpc_subnets,
|
|
778
|
+
wait_for_distribution_invalidation=wait_for_distribution_invalidation,
|
|
757
779
|
website_redirect_location=website_redirect_location,
|
|
758
780
|
)
|
|
759
781
|
|
|
@@ -861,6 +883,7 @@ class BucketDeployment(
|
|
|
861
883
|
"use_efs": "useEfs",
|
|
862
884
|
"vpc": "vpc",
|
|
863
885
|
"vpc_subnets": "vpcSubnets",
|
|
886
|
+
"wait_for_distribution_invalidation": "waitForDistributionInvalidation",
|
|
864
887
|
"website_redirect_location": "websiteRedirectLocation",
|
|
865
888
|
},
|
|
866
889
|
)
|
|
@@ -900,6 +923,7 @@ class BucketDeploymentProps:
|
|
|
900
923
|
use_efs: typing.Optional[builtins.bool] = None,
|
|
901
924
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
902
925
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
926
|
+
wait_for_distribution_invalidation: typing.Optional[builtins.bool] = None,
|
|
903
927
|
website_redirect_location: typing.Optional[builtins.str] = None,
|
|
904
928
|
) -> None:
|
|
905
929
|
'''Properties for ``BucketDeployment``.
|
|
@@ -936,6 +960,7 @@ class BucketDeploymentProps:
|
|
|
936
960
|
:param use_efs: Mount an EFS file system. Enable this if your assets are large and you encounter disk space errors. Enabling this option will require a VPC to be specified. Default: - No EFS. Lambda has access only to 512MB of disk space.
|
|
937
961
|
:param vpc: The VPC network to place the deployment lambda handler in. This is required if ``useEfs`` is set. Default: None
|
|
938
962
|
:param vpc_subnets: Where in the VPC to place the deployment lambda handler. Only used if 'vpc' is supplied. Default: - the Vpc default strategy if not specified
|
|
963
|
+
:param wait_for_distribution_invalidation: In case of using a cloudfront distribtuion, if this property is set to false then the custom resource will not wait and verify for Cloudfront invalidation to complete. This may speed up deployment and avoid intermittent Cloudfront issues. However, this is risky and not recommended as cache invalidation can silently fail. Default: true
|
|
939
964
|
:param website_redirect_location: System-defined x-amz-website-redirect-location metadata to be set on all objects in the deployment. Default: - No website redirection.
|
|
940
965
|
|
|
941
966
|
:exampleMetadata: infused
|
|
@@ -993,6 +1018,7 @@ class BucketDeploymentProps:
|
|
|
993
1018
|
check_type(argname="argument use_efs", value=use_efs, expected_type=type_hints["use_efs"])
|
|
994
1019
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
995
1020
|
check_type(argname="argument vpc_subnets", value=vpc_subnets, expected_type=type_hints["vpc_subnets"])
|
|
1021
|
+
check_type(argname="argument wait_for_distribution_invalidation", value=wait_for_distribution_invalidation, expected_type=type_hints["wait_for_distribution_invalidation"])
|
|
996
1022
|
check_type(argname="argument website_redirect_location", value=website_redirect_location, expected_type=type_hints["website_redirect_location"])
|
|
997
1023
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
998
1024
|
"destination_bucket": destination_bucket,
|
|
@@ -1058,6 +1084,8 @@ class BucketDeploymentProps:
|
|
|
1058
1084
|
self._values["vpc"] = vpc
|
|
1059
1085
|
if vpc_subnets is not None:
|
|
1060
1086
|
self._values["vpc_subnets"] = vpc_subnets
|
|
1087
|
+
if wait_for_distribution_invalidation is not None:
|
|
1088
|
+
self._values["wait_for_distribution_invalidation"] = wait_for_distribution_invalidation
|
|
1061
1089
|
if website_redirect_location is not None:
|
|
1062
1090
|
self._values["website_redirect_location"] = website_redirect_location
|
|
1063
1091
|
|
|
@@ -1426,6 +1454,21 @@ class BucketDeploymentProps:
|
|
|
1426
1454
|
result = self._values.get("vpc_subnets")
|
|
1427
1455
|
return typing.cast(typing.Optional[_SubnetSelection_e57d76df], result)
|
|
1428
1456
|
|
|
1457
|
+
@builtins.property
|
|
1458
|
+
def wait_for_distribution_invalidation(self) -> typing.Optional[builtins.bool]:
|
|
1459
|
+
'''In case of using a cloudfront distribtuion, if this property is set to false then the custom resource will not wait and verify for Cloudfront invalidation to complete.
|
|
1460
|
+
|
|
1461
|
+
This may speed up deployment and avoid
|
|
1462
|
+
intermittent Cloudfront issues. However, this is risky and not recommended as cache invalidation
|
|
1463
|
+
can silently fail.
|
|
1464
|
+
|
|
1465
|
+
:default: true
|
|
1466
|
+
|
|
1467
|
+
:see: https://github.com/aws/aws-cdk/issues/15891
|
|
1468
|
+
'''
|
|
1469
|
+
result = self._values.get("wait_for_distribution_invalidation")
|
|
1470
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
1471
|
+
|
|
1429
1472
|
@builtins.property
|
|
1430
1473
|
def website_redirect_location(self) -> typing.Optional[builtins.str]:
|
|
1431
1474
|
'''System-defined x-amz-website-redirect-location metadata to be set on all objects in the deployment.
|
|
@@ -2507,6 +2550,7 @@ def _typecheckingstub__2544491e92aa50a255b927ef16b9cde2961eae48803afca3b5d1105bf
|
|
|
2507
2550
|
use_efs: typing.Optional[builtins.bool] = None,
|
|
2508
2551
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
2509
2552
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2553
|
+
wait_for_distribution_invalidation: typing.Optional[builtins.bool] = None,
|
|
2510
2554
|
website_redirect_location: typing.Optional[builtins.str] = None,
|
|
2511
2555
|
) -> None:
|
|
2512
2556
|
"""Type checking stubs"""
|
|
@@ -2552,6 +2596,7 @@ def _typecheckingstub__cbabf07e8b4adfb2b2058c075c4f35512ebc580f80a6db9bf13e90589
|
|
|
2552
2596
|
use_efs: typing.Optional[builtins.bool] = None,
|
|
2553
2597
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
2554
2598
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2599
|
+
wait_for_distribution_invalidation: typing.Optional[builtins.bool] = None,
|
|
2555
2600
|
website_redirect_location: typing.Optional[builtins.str] = None,
|
|
2556
2601
|
) -> None:
|
|
2557
2602
|
"""Type checking stubs"""
|