aws-cdk-lib 2.201.0__py3-none-any.whl → 2.203.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 +70 -71
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.201.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +310 -4
- aws_cdk/aws_aiops/__init__.py +964 -0
- aws_cdk/aws_amplify/__init__.py +127 -0
- aws_cdk/aws_arczonalshift/__init__.py +8 -8
- aws_cdk/aws_athena/__init__.py +12 -11
- aws_cdk/aws_b2bi/__init__.py +782 -3
- aws_cdk/aws_backup/__init__.py +22 -0
- aws_cdk/aws_batch/__init__.py +53 -1
- aws_cdk/aws_bedrock/__init__.py +123 -9
- aws_cdk/aws_cleanrooms/__init__.py +157 -154
- aws_cdk/aws_cloudformation/__init__.py +28 -28
- aws_cdk/aws_cloudfront/__init__.py +92 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +42 -3
- aws_cdk/aws_cloudwatch/__init__.py +228 -2
- aws_cdk/aws_connect/__init__.py +120 -8
- aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
- aws_cdk/aws_customerprofiles/__init__.py +150 -30
- aws_cdk/aws_datazone/__init__.py +23 -4
- aws_cdk/aws_deadline/__init__.py +4 -4
- aws_cdk/aws_dsql/__init__.py +148 -0
- aws_cdk/aws_ec2/__init__.py +321 -19
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_efs/__init__.py +17 -6
- aws_cdk/aws_eks/__init__.py +180 -158
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
- aws_cdk/aws_emrserverless/__init__.py +118 -0
- aws_cdk/aws_fsx/__init__.py +891 -0
- aws_cdk/aws_glue/__init__.py +58 -24
- aws_cdk/aws_iam/__init__.py +11 -11
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +24 -12
- aws_cdk/aws_lambda/__init__.py +938 -36
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
- aws_cdk/aws_lex/__init__.py +703 -0
- aws_cdk/aws_logs/__init__.py +144 -0
- aws_cdk/aws_mediatailor/__init__.py +399 -0
- aws_cdk/aws_mpa/__init__.py +1475 -0
- aws_cdk/aws_msk/__init__.py +21 -2
- aws_cdk/aws_mwaa/__init__.py +45 -2
- aws_cdk/aws_networkfirewall/__init__.py +4 -2
- aws_cdk/aws_networkmanager/__init__.py +51 -3
- aws_cdk/aws_opsworkscm/__init__.py +44 -2
- aws_cdk/aws_rds/__init__.py +175 -42
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +19 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +14 -10
- aws_cdk/aws_securityhub/__init__.py +2887 -56
- aws_cdk/aws_synthetics/__init__.py +21 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -4
- aws_cdk/aws_wafv2/__init__.py +849 -18
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +29 -14
- aws_cdk/pipelines/__init__.py +178 -41
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +69 -66
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
aws_cdk/pipelines/__init__.py
CHANGED
|
@@ -540,6 +540,7 @@ pass in order to promote from the `PreProd` to the `Prod` environment:
|
|
|
540
540
|
|
|
541
541
|
preprod = MyApplicationStage(self, "PreProd")
|
|
542
542
|
prod = MyApplicationStage(self, "Prod")
|
|
543
|
+
topic = sns.Topic(self, "ChangeApprovalTopic")
|
|
543
544
|
|
|
544
545
|
pipeline.add_stage(preprod,
|
|
545
546
|
post=[
|
|
@@ -549,7 +550,12 @@ pipeline.add_stage(preprod,
|
|
|
549
550
|
]
|
|
550
551
|
)
|
|
551
552
|
pipeline.add_stage(prod,
|
|
552
|
-
pre=[pipelines.ManualApprovalStep("PromoteToProd"
|
|
553
|
+
pre=[pipelines.ManualApprovalStep("PromoteToProd",
|
|
554
|
+
# All options below are optional
|
|
555
|
+
comment="Please validate changes",
|
|
556
|
+
review_url="https://my.webservice.com/",
|
|
557
|
+
notification_topic=topic
|
|
558
|
+
)]
|
|
553
559
|
)
|
|
554
560
|
```
|
|
555
561
|
|
|
@@ -1837,19 +1843,18 @@ class AddStageOpts:
|
|
|
1837
1843
|
|
|
1838
1844
|
# pipeline: pipelines.CodePipeline
|
|
1839
1845
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1846
|
+
topic = sns.Topic(self, "SecurityChangesTopic")
|
|
1847
|
+
topic.add_subscription(subscriptions.EmailSubscription("test@email.com"))
|
|
1842
1848
|
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1849
|
+
stage = MyApplicationStage(self, "MyApplication")
|
|
1850
|
+
pipeline.add_stage(stage,
|
|
1851
|
+
pre=[
|
|
1852
|
+
pipelines.ConfirmPermissionsBroadening("Check",
|
|
1853
|
+
stage=stage,
|
|
1854
|
+
notification_topic=topic
|
|
1847
1855
|
)
|
|
1848
1856
|
]
|
|
1849
1857
|
)
|
|
1850
|
-
pipeline.add_stage(prod,
|
|
1851
|
-
pre=[pipelines.ManualApprovalStep("PromoteToProd")]
|
|
1852
|
-
)
|
|
1853
1858
|
'''
|
|
1854
1859
|
if __debug__:
|
|
1855
1860
|
type_hints = typing.get_type_hints(_typecheckingstub__1b9c1bc74292ecb27724ef07a41dc8f1b1ee5d9dc268940f2ec578982b596b0a)
|
|
@@ -2388,6 +2393,7 @@ class CodePipelineActionFactoryResult:
|
|
|
2388
2393
|
"synth": "synth",
|
|
2389
2394
|
"artifact_bucket": "artifactBucket",
|
|
2390
2395
|
"asset_publishing_code_build_defaults": "assetPublishingCodeBuildDefaults",
|
|
2396
|
+
"cdk_assets_cli_version": "cdkAssetsCliVersion",
|
|
2391
2397
|
"cli_version": "cliVersion",
|
|
2392
2398
|
"code_build_defaults": "codeBuildDefaults",
|
|
2393
2399
|
"code_pipeline": "codePipeline",
|
|
@@ -2416,6 +2422,7 @@ class CodePipelineProps:
|
|
|
2416
2422
|
synth: "IFileSetProducer",
|
|
2417
2423
|
artifact_bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
2418
2424
|
asset_publishing_code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2425
|
+
cdk_assets_cli_version: typing.Optional[builtins.str] = None,
|
|
2419
2426
|
cli_version: typing.Optional[builtins.str] = None,
|
|
2420
2427
|
code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2421
2428
|
code_pipeline: typing.Optional[_Pipeline_ea38de84] = None,
|
|
@@ -2441,7 +2448,8 @@ class CodePipelineProps:
|
|
|
2441
2448
|
:param synth: The build step that produces the CDK Cloud Assembly. The primary output of this step needs to be the ``cdk.out`` directory generated by the ``cdk synth`` command. If you use a ``ShellStep`` here and you don't configure an output directory, the output directory will automatically be assumed to be ``cdk.out``.
|
|
2442
2449
|
:param artifact_bucket: An existing S3 Bucket to use for storing the pipeline's artifact. Default: - A new S3 bucket will be created.
|
|
2443
2450
|
:param asset_publishing_code_build_defaults: Additional customizations to apply to the asset publishing CodeBuild projects. Default: - Only ``codeBuildDefaults`` are applied
|
|
2444
|
-
:param
|
|
2451
|
+
:param cdk_assets_cli_version: CDK CLI version to use in asset publishing steps. If you want to lock the ``cdk-assets`` version used in the pipeline, by steps that are automatically generated for you, specify the version here. We recommend you do not specify this value, as not specifying it always uses the latest CLI version which is backwards compatible with old versions. Default: - Latest version
|
|
2452
|
+
:param cli_version: CDK CLI version to use in self-mutation step. If you want to lock the CDK CLI version used in the pipeline, by steps that are automatically generated for you, specify the version here. We recommend you do not specify this value, as not specifying it always uses the latest CLI version which is backwards compatible with old versions. If you do specify it, be aware that this version should always be equal to or higher than the version of the CDK framework used by the CDK app, when the CDK commands are run during your pipeline execution. When you change this version, the *next time* the ``SelfMutate`` step runs it will still be using the CLI of the the *previous* version that was in this property: it will only start using the new version after ``SelfMutate`` completes successfully. That means that if you want to update both framework and CLI version, you should update the CLI version first, commit, push and deploy, and only then update the framework version. Default: - Latest version
|
|
2445
2453
|
:param code_build_defaults: Customize the CodeBuild projects created for this pipeline. Default: - All projects run non-privileged build, SMALL instance, LinuxBuildImage.STANDARD_7_0
|
|
2446
2454
|
:param code_pipeline: An existing Pipeline to be reused and built upon. [disable-awslint:ref-via-interface] Default: - a new underlying pipeline is created.
|
|
2447
2455
|
:param cross_account_keys: Create KMS keys for the artifact buckets, allowing cross-account deployments. The artifact buckets have to be encrypted to support deploying CDK apps to another account, so if you want to do that or want to have your artifact buckets encrypted, be sure to set this value to ``true``. Be aware there is a cost associated with maintaining the KMS keys. Default: false
|
|
@@ -2491,6 +2499,7 @@ class CodePipelineProps:
|
|
|
2491
2499
|
check_type(argname="argument synth", value=synth, expected_type=type_hints["synth"])
|
|
2492
2500
|
check_type(argname="argument artifact_bucket", value=artifact_bucket, expected_type=type_hints["artifact_bucket"])
|
|
2493
2501
|
check_type(argname="argument asset_publishing_code_build_defaults", value=asset_publishing_code_build_defaults, expected_type=type_hints["asset_publishing_code_build_defaults"])
|
|
2502
|
+
check_type(argname="argument cdk_assets_cli_version", value=cdk_assets_cli_version, expected_type=type_hints["cdk_assets_cli_version"])
|
|
2494
2503
|
check_type(argname="argument cli_version", value=cli_version, expected_type=type_hints["cli_version"])
|
|
2495
2504
|
check_type(argname="argument code_build_defaults", value=code_build_defaults, expected_type=type_hints["code_build_defaults"])
|
|
2496
2505
|
check_type(argname="argument code_pipeline", value=code_pipeline, expected_type=type_hints["code_pipeline"])
|
|
@@ -2517,6 +2526,8 @@ class CodePipelineProps:
|
|
|
2517
2526
|
self._values["artifact_bucket"] = artifact_bucket
|
|
2518
2527
|
if asset_publishing_code_build_defaults is not None:
|
|
2519
2528
|
self._values["asset_publishing_code_build_defaults"] = asset_publishing_code_build_defaults
|
|
2529
|
+
if cdk_assets_cli_version is not None:
|
|
2530
|
+
self._values["cdk_assets_cli_version"] = cdk_assets_cli_version
|
|
2520
2531
|
if cli_version is not None:
|
|
2521
2532
|
self._values["cli_version"] = cli_version
|
|
2522
2533
|
if code_build_defaults is not None:
|
|
@@ -2588,9 +2599,26 @@ class CodePipelineProps:
|
|
|
2588
2599
|
result = self._values.get("asset_publishing_code_build_defaults")
|
|
2589
2600
|
return typing.cast(typing.Optional[CodeBuildOptions], result)
|
|
2590
2601
|
|
|
2602
|
+
@builtins.property
|
|
2603
|
+
def cdk_assets_cli_version(self) -> typing.Optional[builtins.str]:
|
|
2604
|
+
'''CDK CLI version to use in asset publishing steps.
|
|
2605
|
+
|
|
2606
|
+
If you want to lock the ``cdk-assets`` version used in the pipeline, by steps
|
|
2607
|
+
that are automatically generated for you, specify the version here.
|
|
2608
|
+
|
|
2609
|
+
We recommend you do not specify this value, as not specifying it always
|
|
2610
|
+
uses the latest CLI version which is backwards compatible with old versions.
|
|
2611
|
+
|
|
2612
|
+
:default: - Latest version
|
|
2613
|
+
|
|
2614
|
+
:see: https://www.npmjs.com/package/cdk-assets
|
|
2615
|
+
'''
|
|
2616
|
+
result = self._values.get("cdk_assets_cli_version")
|
|
2617
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2618
|
+
|
|
2591
2619
|
@builtins.property
|
|
2592
2620
|
def cli_version(self) -> typing.Optional[builtins.str]:
|
|
2593
|
-
'''CDK CLI version to use in self-mutation
|
|
2621
|
+
'''CDK CLI version to use in self-mutation step.
|
|
2594
2622
|
|
|
2595
2623
|
If you want to lock the CDK CLI version used in the pipeline, by steps
|
|
2596
2624
|
that are automatically generated for you, specify the version here.
|
|
@@ -3759,32 +3787,64 @@ typing.cast(typing.Any, IFileSetProducer).__jsii_proxy_class__ = lambda : _IFile
|
|
|
3759
3787
|
@jsii.data_type(
|
|
3760
3788
|
jsii_type="aws-cdk-lib.pipelines.ManualApprovalStepProps",
|
|
3761
3789
|
jsii_struct_bases=[],
|
|
3762
|
-
name_mapping={
|
|
3790
|
+
name_mapping={
|
|
3791
|
+
"comment": "comment",
|
|
3792
|
+
"notification_topic": "notificationTopic",
|
|
3793
|
+
"review_url": "reviewUrl",
|
|
3794
|
+
},
|
|
3763
3795
|
)
|
|
3764
3796
|
class ManualApprovalStepProps:
|
|
3765
|
-
def __init__(
|
|
3797
|
+
def __init__(
|
|
3798
|
+
self,
|
|
3799
|
+
*,
|
|
3800
|
+
comment: typing.Optional[builtins.str] = None,
|
|
3801
|
+
notification_topic: typing.Optional[_ITopic_9eca4852] = None,
|
|
3802
|
+
review_url: typing.Optional[builtins.str] = None,
|
|
3803
|
+
) -> None:
|
|
3766
3804
|
'''Construction properties for a ``ManualApprovalStep``.
|
|
3767
3805
|
|
|
3768
3806
|
:param comment: The comment to display with this manual approval. Default: - No comment
|
|
3807
|
+
:param notification_topic: Optional SNS topic to send notifications to when an approval is pending. Default: - No notifications
|
|
3808
|
+
:param review_url: The URL for review associated with this manual approval. Default: - No URL
|
|
3769
3809
|
|
|
3770
|
-
:exampleMetadata:
|
|
3810
|
+
:exampleMetadata: infused
|
|
3771
3811
|
|
|
3772
3812
|
Example::
|
|
3773
3813
|
|
|
3774
|
-
#
|
|
3775
|
-
# The values are placeholders you should change.
|
|
3776
|
-
from aws_cdk import pipelines
|
|
3814
|
+
# pipeline: pipelines.CodePipeline
|
|
3777
3815
|
|
|
3778
|
-
|
|
3779
|
-
|
|
3816
|
+
preprod = MyApplicationStage(self, "PreProd")
|
|
3817
|
+
prod = MyApplicationStage(self, "Prod")
|
|
3818
|
+
topic = sns.Topic(self, "ChangeApprovalTopic")
|
|
3819
|
+
|
|
3820
|
+
pipeline.add_stage(preprod,
|
|
3821
|
+
post=[
|
|
3822
|
+
pipelines.ShellStep("Validate Endpoint",
|
|
3823
|
+
commands=["curl -Ssf https://my.webservice.com/"]
|
|
3824
|
+
)
|
|
3825
|
+
]
|
|
3826
|
+
)
|
|
3827
|
+
pipeline.add_stage(prod,
|
|
3828
|
+
pre=[pipelines.ManualApprovalStep("PromoteToProd",
|
|
3829
|
+
# All options below are optional
|
|
3830
|
+
comment="Please validate changes",
|
|
3831
|
+
review_url="https://my.webservice.com/",
|
|
3832
|
+
notification_topic=topic
|
|
3833
|
+
)]
|
|
3780
3834
|
)
|
|
3781
3835
|
'''
|
|
3782
3836
|
if __debug__:
|
|
3783
3837
|
type_hints = typing.get_type_hints(_typecheckingstub__5a0a42f985a6aa39b8db8606833d899bd8c93567a96ac5acb2c9407bde8793ed)
|
|
3784
3838
|
check_type(argname="argument comment", value=comment, expected_type=type_hints["comment"])
|
|
3839
|
+
check_type(argname="argument notification_topic", value=notification_topic, expected_type=type_hints["notification_topic"])
|
|
3840
|
+
check_type(argname="argument review_url", value=review_url, expected_type=type_hints["review_url"])
|
|
3785
3841
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3786
3842
|
if comment is not None:
|
|
3787
3843
|
self._values["comment"] = comment
|
|
3844
|
+
if notification_topic is not None:
|
|
3845
|
+
self._values["notification_topic"] = notification_topic
|
|
3846
|
+
if review_url is not None:
|
|
3847
|
+
self._values["review_url"] = review_url
|
|
3788
3848
|
|
|
3789
3849
|
@builtins.property
|
|
3790
3850
|
def comment(self) -> typing.Optional[builtins.str]:
|
|
@@ -3795,6 +3855,24 @@ class ManualApprovalStepProps:
|
|
|
3795
3855
|
result = self._values.get("comment")
|
|
3796
3856
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
3797
3857
|
|
|
3858
|
+
@builtins.property
|
|
3859
|
+
def notification_topic(self) -> typing.Optional[_ITopic_9eca4852]:
|
|
3860
|
+
'''Optional SNS topic to send notifications to when an approval is pending.
|
|
3861
|
+
|
|
3862
|
+
:default: - No notifications
|
|
3863
|
+
'''
|
|
3864
|
+
result = self._values.get("notification_topic")
|
|
3865
|
+
return typing.cast(typing.Optional[_ITopic_9eca4852], result)
|
|
3866
|
+
|
|
3867
|
+
@builtins.property
|
|
3868
|
+
def review_url(self) -> typing.Optional[builtins.str]:
|
|
3869
|
+
'''The URL for review associated with this manual approval.
|
|
3870
|
+
|
|
3871
|
+
:default: - No URL
|
|
3872
|
+
'''
|
|
3873
|
+
result = self._values.get("review_url")
|
|
3874
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3875
|
+
|
|
3798
3876
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3799
3877
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3800
3878
|
|
|
@@ -4505,17 +4583,26 @@ class ShellStepProps:
|
|
|
4505
4583
|
|
|
4506
4584
|
Example::
|
|
4507
4585
|
|
|
4508
|
-
#
|
|
4509
|
-
|
|
4586
|
+
# pipeline: pipelines.CodePipeline
|
|
4510
4587
|
|
|
4511
|
-
|
|
4588
|
+
preprod = MyApplicationStage(self, "PreProd")
|
|
4589
|
+
prod = MyApplicationStage(self, "Prod")
|
|
4590
|
+
topic = sns.Topic(self, "ChangeApprovalTopic")
|
|
4512
4591
|
|
|
4513
|
-
pipeline
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4592
|
+
pipeline.add_stage(preprod,
|
|
4593
|
+
post=[
|
|
4594
|
+
pipelines.ShellStep("Validate Endpoint",
|
|
4595
|
+
commands=["curl -Ssf https://my.webservice.com/"]
|
|
4596
|
+
)
|
|
4597
|
+
]
|
|
4598
|
+
)
|
|
4599
|
+
pipeline.add_stage(prod,
|
|
4600
|
+
pre=[pipelines.ManualApprovalStep("PromoteToProd",
|
|
4601
|
+
# All options below are optional
|
|
4602
|
+
comment="Please validate changes",
|
|
4603
|
+
review_url="https://my.webservice.com/",
|
|
4604
|
+
notification_topic=topic
|
|
4605
|
+
)]
|
|
4519
4606
|
)
|
|
4520
4607
|
'''
|
|
4521
4608
|
if __debug__:
|
|
@@ -6594,6 +6681,7 @@ class CodePipeline(
|
|
|
6594
6681
|
synth: IFileSetProducer,
|
|
6595
6682
|
artifact_bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
6596
6683
|
asset_publishing_code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
6684
|
+
cdk_assets_cli_version: typing.Optional[builtins.str] = None,
|
|
6597
6685
|
cli_version: typing.Optional[builtins.str] = None,
|
|
6598
6686
|
code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
6599
6687
|
code_pipeline: typing.Optional[_Pipeline_ea38de84] = None,
|
|
@@ -6620,7 +6708,8 @@ class CodePipeline(
|
|
|
6620
6708
|
:param synth: The build step that produces the CDK Cloud Assembly. The primary output of this step needs to be the ``cdk.out`` directory generated by the ``cdk synth`` command. If you use a ``ShellStep`` here and you don't configure an output directory, the output directory will automatically be assumed to be ``cdk.out``.
|
|
6621
6709
|
:param artifact_bucket: An existing S3 Bucket to use for storing the pipeline's artifact. Default: - A new S3 bucket will be created.
|
|
6622
6710
|
:param asset_publishing_code_build_defaults: Additional customizations to apply to the asset publishing CodeBuild projects. Default: - Only ``codeBuildDefaults`` are applied
|
|
6623
|
-
:param
|
|
6711
|
+
:param cdk_assets_cli_version: CDK CLI version to use in asset publishing steps. If you want to lock the ``cdk-assets`` version used in the pipeline, by steps that are automatically generated for you, specify the version here. We recommend you do not specify this value, as not specifying it always uses the latest CLI version which is backwards compatible with old versions. Default: - Latest version
|
|
6712
|
+
:param cli_version: CDK CLI version to use in self-mutation step. If you want to lock the CDK CLI version used in the pipeline, by steps that are automatically generated for you, specify the version here. We recommend you do not specify this value, as not specifying it always uses the latest CLI version which is backwards compatible with old versions. If you do specify it, be aware that this version should always be equal to or higher than the version of the CDK framework used by the CDK app, when the CDK commands are run during your pipeline execution. When you change this version, the *next time* the ``SelfMutate`` step runs it will still be using the CLI of the the *previous* version that was in this property: it will only start using the new version after ``SelfMutate`` completes successfully. That means that if you want to update both framework and CLI version, you should update the CLI version first, commit, push and deploy, and only then update the framework version. Default: - Latest version
|
|
6624
6713
|
:param code_build_defaults: Customize the CodeBuild projects created for this pipeline. Default: - All projects run non-privileged build, SMALL instance, LinuxBuildImage.STANDARD_7_0
|
|
6625
6714
|
:param code_pipeline: An existing Pipeline to be reused and built upon. [disable-awslint:ref-via-interface] Default: - a new underlying pipeline is created.
|
|
6626
6715
|
:param cross_account_keys: Create KMS keys for the artifact buckets, allowing cross-account deployments. The artifact buckets have to be encrypted to support deploying CDK apps to another account, so if you want to do that or want to have your artifact buckets encrypted, be sure to set this value to ``true``. Be aware there is a cost associated with maintaining the KMS keys. Default: false
|
|
@@ -6648,6 +6737,7 @@ class CodePipeline(
|
|
|
6648
6737
|
synth=synth,
|
|
6649
6738
|
artifact_bucket=artifact_bucket,
|
|
6650
6739
|
asset_publishing_code_build_defaults=asset_publishing_code_build_defaults,
|
|
6740
|
+
cdk_assets_cli_version=cdk_assets_cli_version,
|
|
6651
6741
|
cli_version=cli_version,
|
|
6652
6742
|
code_build_defaults=code_build_defaults,
|
|
6653
6743
|
code_pipeline=code_pipeline,
|
|
@@ -7317,6 +7407,7 @@ class ManualApprovalStep(
|
|
|
7317
7407
|
|
|
7318
7408
|
preprod = MyApplicationStage(self, "PreProd")
|
|
7319
7409
|
prod = MyApplicationStage(self, "Prod")
|
|
7410
|
+
topic = sns.Topic(self, "ChangeApprovalTopic")
|
|
7320
7411
|
|
|
7321
7412
|
pipeline.add_stage(preprod,
|
|
7322
7413
|
post=[
|
|
@@ -7326,7 +7417,12 @@ class ManualApprovalStep(
|
|
|
7326
7417
|
]
|
|
7327
7418
|
)
|
|
7328
7419
|
pipeline.add_stage(prod,
|
|
7329
|
-
pre=[pipelines.ManualApprovalStep("PromoteToProd"
|
|
7420
|
+
pre=[pipelines.ManualApprovalStep("PromoteToProd",
|
|
7421
|
+
# All options below are optional
|
|
7422
|
+
comment="Please validate changes",
|
|
7423
|
+
review_url="https://my.webservice.com/",
|
|
7424
|
+
notification_topic=topic
|
|
7425
|
+
)]
|
|
7330
7426
|
)
|
|
7331
7427
|
'''
|
|
7332
7428
|
|
|
@@ -7335,15 +7431,23 @@ class ManualApprovalStep(
|
|
|
7335
7431
|
id: builtins.str,
|
|
7336
7432
|
*,
|
|
7337
7433
|
comment: typing.Optional[builtins.str] = None,
|
|
7434
|
+
notification_topic: typing.Optional[_ITopic_9eca4852] = None,
|
|
7435
|
+
review_url: typing.Optional[builtins.str] = None,
|
|
7338
7436
|
) -> None:
|
|
7339
7437
|
'''
|
|
7340
7438
|
:param id: Identifier for this step.
|
|
7341
7439
|
:param comment: The comment to display with this manual approval. Default: - No comment
|
|
7440
|
+
:param notification_topic: Optional SNS topic to send notifications to when an approval is pending. Default: - No notifications
|
|
7441
|
+
:param review_url: The URL for review associated with this manual approval. Default: - No URL
|
|
7342
7442
|
'''
|
|
7343
7443
|
if __debug__:
|
|
7344
7444
|
type_hints = typing.get_type_hints(_typecheckingstub__e1bf3ac4525b2831190c490c38deb9452f7e662bb66f5cb63ba43cdac1db0dc4)
|
|
7345
7445
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
7346
|
-
props = ManualApprovalStepProps(
|
|
7446
|
+
props = ManualApprovalStepProps(
|
|
7447
|
+
comment=comment,
|
|
7448
|
+
notification_topic=notification_topic,
|
|
7449
|
+
review_url=review_url,
|
|
7450
|
+
)
|
|
7347
7451
|
|
|
7348
7452
|
jsii.create(self.__class__, self, [id, props])
|
|
7349
7453
|
|
|
@@ -7356,6 +7460,24 @@ class ManualApprovalStep(
|
|
|
7356
7460
|
'''
|
|
7357
7461
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "comment"))
|
|
7358
7462
|
|
|
7463
|
+
@builtins.property
|
|
7464
|
+
@jsii.member(jsii_name="notificationTopic")
|
|
7465
|
+
def notification_topic(self) -> typing.Optional[_ITopic_9eca4852]:
|
|
7466
|
+
'''Optional SNS topic to send notifications.
|
|
7467
|
+
|
|
7468
|
+
:default: - No notifications
|
|
7469
|
+
'''
|
|
7470
|
+
return typing.cast(typing.Optional[_ITopic_9eca4852], jsii.get(self, "notificationTopic"))
|
|
7471
|
+
|
|
7472
|
+
@builtins.property
|
|
7473
|
+
@jsii.member(jsii_name="reviewUrl")
|
|
7474
|
+
def review_url(self) -> typing.Optional[builtins.str]:
|
|
7475
|
+
'''The URL for review associated with this manual approval.
|
|
7476
|
+
|
|
7477
|
+
:default: - No URL
|
|
7478
|
+
'''
|
|
7479
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "reviewUrl"))
|
|
7480
|
+
|
|
7359
7481
|
|
|
7360
7482
|
class ShellStep(
|
|
7361
7483
|
Step,
|
|
@@ -7371,17 +7493,26 @@ class ShellStep(
|
|
|
7371
7493
|
|
|
7372
7494
|
Example::
|
|
7373
7495
|
|
|
7374
|
-
#
|
|
7375
|
-
|
|
7496
|
+
# pipeline: pipelines.CodePipeline
|
|
7376
7497
|
|
|
7377
|
-
|
|
7498
|
+
preprod = MyApplicationStage(self, "PreProd")
|
|
7499
|
+
prod = MyApplicationStage(self, "Prod")
|
|
7500
|
+
topic = sns.Topic(self, "ChangeApprovalTopic")
|
|
7378
7501
|
|
|
7379
|
-
pipeline
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7502
|
+
pipeline.add_stage(preprod,
|
|
7503
|
+
post=[
|
|
7504
|
+
pipelines.ShellStep("Validate Endpoint",
|
|
7505
|
+
commands=["curl -Ssf https://my.webservice.com/"]
|
|
7506
|
+
)
|
|
7507
|
+
]
|
|
7508
|
+
)
|
|
7509
|
+
pipeline.add_stage(prod,
|
|
7510
|
+
pre=[pipelines.ManualApprovalStep("PromoteToProd",
|
|
7511
|
+
# All options below are optional
|
|
7512
|
+
comment="Please validate changes",
|
|
7513
|
+
review_url="https://my.webservice.com/",
|
|
7514
|
+
notification_topic=topic
|
|
7515
|
+
)]
|
|
7385
7516
|
)
|
|
7386
7517
|
'''
|
|
7387
7518
|
|
|
@@ -7968,6 +8099,7 @@ def _typecheckingstub__c46bc21ca63efb27c935c31017ebbc8c85b3b93ae1798e54892dd3eae
|
|
|
7968
8099
|
synth: IFileSetProducer,
|
|
7969
8100
|
artifact_bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
7970
8101
|
asset_publishing_code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
8102
|
+
cdk_assets_cli_version: typing.Optional[builtins.str] = None,
|
|
7971
8103
|
cli_version: typing.Optional[builtins.str] = None,
|
|
7972
8104
|
code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
7973
8105
|
code_pipeline: typing.Optional[_Pipeline_ea38de84] = None,
|
|
@@ -8109,6 +8241,8 @@ def _typecheckingstub__99773084b7df122e2f7df8455d5966ec674016081ec53bbdb52b9a758
|
|
|
8109
8241
|
def _typecheckingstub__5a0a42f985a6aa39b8db8606833d899bd8c93567a96ac5acb2c9407bde8793ed(
|
|
8110
8242
|
*,
|
|
8111
8243
|
comment: typing.Optional[builtins.str] = None,
|
|
8244
|
+
notification_topic: typing.Optional[_ITopic_9eca4852] = None,
|
|
8245
|
+
review_url: typing.Optional[builtins.str] = None,
|
|
8112
8246
|
) -> None:
|
|
8113
8247
|
"""Type checking stubs"""
|
|
8114
8248
|
pass
|
|
@@ -8433,6 +8567,7 @@ def _typecheckingstub__7b4b4a0bcbd5fab3e4b78aa07ff9504469ae96c16799604ca3345bcb9
|
|
|
8433
8567
|
synth: IFileSetProducer,
|
|
8434
8568
|
artifact_bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
8435
8569
|
asset_publishing_code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
8570
|
+
cdk_assets_cli_version: typing.Optional[builtins.str] = None,
|
|
8436
8571
|
cli_version: typing.Optional[builtins.str] = None,
|
|
8437
8572
|
code_build_defaults: typing.Optional[typing.Union[CodeBuildOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
8438
8573
|
code_pipeline: typing.Optional[_Pipeline_ea38de84] = None,
|
|
@@ -8592,6 +8727,8 @@ def _typecheckingstub__e1bf3ac4525b2831190c490c38deb9452f7e662bb66f5cb63ba43cdac
|
|
|
8592
8727
|
id: builtins.str,
|
|
8593
8728
|
*,
|
|
8594
8729
|
comment: typing.Optional[builtins.str] = None,
|
|
8730
|
+
notification_topic: typing.Optional[_ITopic_9eca4852] = None,
|
|
8731
|
+
review_url: typing.Optional[builtins.str] = None,
|
|
8595
8732
|
) -> None:
|
|
8596
8733
|
"""Type checking stubs"""
|
|
8597
8734
|
pass
|
aws_cdk/triggers/__init__.py
CHANGED
|
@@ -142,7 +142,11 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
|
|
|
142
142
|
from .._jsii import *
|
|
143
143
|
|
|
144
144
|
import constructs as _constructs_77d1e7e8
|
|
145
|
-
from .. import
|
|
145
|
+
from .. import (
|
|
146
|
+
Duration as _Duration_4839e8c3,
|
|
147
|
+
RemovalPolicy as _RemovalPolicy_9f93c814,
|
|
148
|
+
Size as _Size_7b441c34,
|
|
149
|
+
)
|
|
146
150
|
from ..aws_codeguruprofiler import IProfilingGroup as _IProfilingGroup_0bba72c4
|
|
147
151
|
from ..aws_ec2 import (
|
|
148
152
|
ISecurityGroup as _ISecurityGroup_acf8a799,
|
|
@@ -445,6 +449,7 @@ class TriggerFunction(
|
|
|
445
449
|
log_format: typing.Optional[builtins.str] = None,
|
|
446
450
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
447
451
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
452
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
448
453
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
449
454
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
450
455
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -504,7 +509,8 @@ class TriggerFunction(
|
|
|
504
509
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
505
510
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
506
511
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
507
|
-
:param
|
|
512
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
513
|
+
:param log_retention: (deprecated) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
508
514
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
509
515
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - A new role is created.
|
|
510
516
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -565,6 +571,7 @@ class TriggerFunction(
|
|
|
565
571
|
log_format=log_format,
|
|
566
572
|
logging_format=logging_format,
|
|
567
573
|
log_group=log_group,
|
|
574
|
+
log_removal_policy=log_removal_policy,
|
|
568
575
|
log_retention=log_retention,
|
|
569
576
|
log_retention_retry_options=log_retention_retry_options,
|
|
570
577
|
log_retention_role=log_retention_role,
|
|
@@ -938,6 +945,7 @@ class TriggerProps(TriggerOptions):
|
|
|
938
945
|
"log_format": "logFormat",
|
|
939
946
|
"logging_format": "loggingFormat",
|
|
940
947
|
"log_group": "logGroup",
|
|
948
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
941
949
|
"log_retention": "logRetention",
|
|
942
950
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
943
951
|
"log_retention_role": "logRetentionRole",
|
|
@@ -999,6 +1007,7 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
999
1007
|
log_format: typing.Optional[builtins.str] = None,
|
|
1000
1008
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
1001
1009
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
1010
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
1002
1011
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
1003
1012
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1004
1013
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -1057,7 +1066,8 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1057
1066
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
1058
1067
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
1059
1068
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
1060
|
-
:param
|
|
1069
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
1070
|
+
:param log_retention: (deprecated) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
1061
1071
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
1062
1072
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - A new role is created.
|
|
1063
1073
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -1136,6 +1146,7 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1136
1146
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
1137
1147
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
1138
1148
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
1149
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
1139
1150
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
1140
1151
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
1141
1152
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -1226,6 +1237,8 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1226
1237
|
self._values["logging_format"] = logging_format
|
|
1227
1238
|
if log_group is not None:
|
|
1228
1239
|
self._values["log_group"] = log_group
|
|
1240
|
+
if log_removal_policy is not None:
|
|
1241
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
1229
1242
|
if log_retention is not None:
|
|
1230
1243
|
self._values["log_retention"] = log_retention
|
|
1231
1244
|
if log_retention_retry_options is not None:
|
|
@@ -1615,9 +1628,27 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1615
1628
|
result = self._values.get("log_group")
|
|
1616
1629
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
1617
1630
|
|
|
1631
|
+
@builtins.property
|
|
1632
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
1633
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
1634
|
+
|
|
1635
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
1636
|
+
from logs even after a deployment that no longer includes the log group.
|
|
1637
|
+
In that case, use the normal date-based retention policy to age out your
|
|
1638
|
+
logs.
|
|
1639
|
+
|
|
1640
|
+
:default: RemovalPolicy.Retain
|
|
1641
|
+
|
|
1642
|
+
:deprecated: use ``logGroup`` instead
|
|
1643
|
+
|
|
1644
|
+
:stability: deprecated
|
|
1645
|
+
'''
|
|
1646
|
+
result = self._values.get("log_removal_policy")
|
|
1647
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
1648
|
+
|
|
1618
1649
|
@builtins.property
|
|
1619
1650
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
1620
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
1651
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
1621
1652
|
|
|
1622
1653
|
When updating
|
|
1623
1654
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -1638,6 +1669,10 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1638
1669
|
my_log_group.log_group_name
|
|
1639
1670
|
|
|
1640
1671
|
:default: logs.RetentionDays.INFINITE
|
|
1672
|
+
|
|
1673
|
+
:deprecated: use ``logGroup`` instead
|
|
1674
|
+
|
|
1675
|
+
:stability: deprecated
|
|
1641
1676
|
'''
|
|
1642
1677
|
result = self._values.get("log_retention")
|
|
1643
1678
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -2053,6 +2088,7 @@ def _typecheckingstub__6f34c5ba084706d20d6ef37a7f59673b20ed3425ffc7035fc8ea888e9
|
|
|
2053
2088
|
log_format: typing.Optional[builtins.str] = None,
|
|
2054
2089
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
2055
2090
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
2091
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2056
2092
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
2057
2093
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2058
2094
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -2145,6 +2181,7 @@ def _typecheckingstub__b2f4b009b0160d566d798bfa6d813ccc8440e1a9e0f75c99449184a2f
|
|
|
2145
2181
|
log_format: typing.Optional[builtins.str] = None,
|
|
2146
2182
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
2147
2183
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
2184
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2148
2185
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
2149
2186
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2150
2187
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk-lib
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.203.0
|
|
4
4
|
Summary: Version 2 of the AWS Cloud Development Kit library
|
|
5
5
|
Home-page: https://github.com/aws/aws-cdk
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -20,9 +20,9 @@ Requires-Python: ~=3.9
|
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
License-File: NOTICE
|
|
23
|
-
Requires-Dist: aws-cdk.asset-awscli-v1==2.2.
|
|
23
|
+
Requires-Dist: aws-cdk.asset-awscli-v1==2.2.242
|
|
24
24
|
Requires-Dist: aws-cdk.asset-node-proxy-agent-v6<3.0.0,>=2.1.0
|
|
25
|
-
Requires-Dist: aws-cdk.cloud-assembly-schema<45.0.0,>=44.
|
|
25
|
+
Requires-Dist: aws-cdk.cloud-assembly-schema<45.0.0,>=44.8.0
|
|
26
26
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
27
|
Requires-Dist: jsii<2.0.0,>=1.112.0
|
|
28
28
|
Requires-Dist: publication>=0.0.3
|