aws-cdk-lib 2.202.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 +46 -47
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.202.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_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 +61 -18
- aws_cdk/aws_cloudfront/experimental/__init__.py +37 -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 +140 -20
- 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 +159 -7
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- 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_iam/__init__.py +8 -8
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +14 -8
- aws_cdk/aws_lambda/__init__.py +191 -24
- 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_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 +171 -41
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +3 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +6 -2
- 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 +156 -51
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +15 -14
- aws_cdk/pipelines/__init__.py +31 -3
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +62 -59
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
|
@@ -488,6 +488,7 @@ from .. import (
|
|
|
488
488
|
DockerRunOptions as _DockerRunOptions_81583d32,
|
|
489
489
|
DockerVolume as _DockerVolume_849485b7,
|
|
490
490
|
Duration as _Duration_4839e8c3,
|
|
491
|
+
RemovalPolicy as _RemovalPolicy_9f93c814,
|
|
491
492
|
Size as _Size_7b441c34,
|
|
492
493
|
)
|
|
493
494
|
from ..aws_codeguruprofiler import IProfilingGroup as _IProfilingGroup_0bba72c4
|
|
@@ -1595,6 +1596,7 @@ class NodejsFunction(
|
|
|
1595
1596
|
log_format: typing.Optional[builtins.str] = None,
|
|
1596
1597
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
1597
1598
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
1599
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
1598
1600
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
1599
1601
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1600
1602
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -1656,7 +1658,8 @@ class NodejsFunction(
|
|
|
1656
1658
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
1657
1659
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
1658
1660
|
: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
|
|
1659
|
-
:param
|
|
1661
|
+
: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
|
|
1662
|
+
: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
|
|
1660
1663
|
: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.
|
|
1661
1664
|
: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.
|
|
1662
1665
|
: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
|
|
@@ -1719,6 +1722,7 @@ class NodejsFunction(
|
|
|
1719
1722
|
log_format=log_format,
|
|
1720
1723
|
logging_format=logging_format,
|
|
1721
1724
|
log_group=log_group,
|
|
1725
|
+
log_removal_policy=log_removal_policy,
|
|
1722
1726
|
log_retention=log_retention,
|
|
1723
1727
|
log_retention_retry_options=log_retention_retry_options,
|
|
1724
1728
|
log_retention_role=log_retention_role,
|
|
@@ -1781,6 +1785,7 @@ class NodejsFunction(
|
|
|
1781
1785
|
"log_format": "logFormat",
|
|
1782
1786
|
"logging_format": "loggingFormat",
|
|
1783
1787
|
"log_group": "logGroup",
|
|
1788
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
1784
1789
|
"log_retention": "logRetention",
|
|
1785
1790
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
1786
1791
|
"log_retention_role": "logRetentionRole",
|
|
@@ -1844,6 +1849,7 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1844
1849
|
log_format: typing.Optional[builtins.str] = None,
|
|
1845
1850
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
1846
1851
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
1852
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
1847
1853
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
1848
1854
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1849
1855
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -1904,7 +1910,8 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1904
1910
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
1905
1911
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
1906
1912
|
: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
|
|
1907
|
-
:param
|
|
1913
|
+
: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
|
|
1914
|
+
: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
|
|
1908
1915
|
: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.
|
|
1909
1916
|
: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.
|
|
1910
1917
|
: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
|
|
@@ -1988,6 +1995,7 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1988
1995
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
1989
1996
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
1990
1997
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
1998
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
1991
1999
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
1992
2000
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
1993
2001
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -2076,6 +2084,8 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
2076
2084
|
self._values["logging_format"] = logging_format
|
|
2077
2085
|
if log_group is not None:
|
|
2078
2086
|
self._values["log_group"] = log_group
|
|
2087
|
+
if log_removal_policy is not None:
|
|
2088
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
2079
2089
|
if log_retention is not None:
|
|
2080
2090
|
self._values["log_retention"] = log_retention
|
|
2081
2091
|
if log_retention_retry_options is not None:
|
|
@@ -2475,9 +2485,27 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
2475
2485
|
result = self._values.get("log_group")
|
|
2476
2486
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
2477
2487
|
|
|
2488
|
+
@builtins.property
|
|
2489
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
2490
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
2491
|
+
|
|
2492
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
2493
|
+
from logs even after a deployment that no longer includes the log group.
|
|
2494
|
+
In that case, use the normal date-based retention policy to age out your
|
|
2495
|
+
logs.
|
|
2496
|
+
|
|
2497
|
+
:default: RemovalPolicy.Retain
|
|
2498
|
+
|
|
2499
|
+
:deprecated: use ``logGroup`` instead
|
|
2500
|
+
|
|
2501
|
+
:stability: deprecated
|
|
2502
|
+
'''
|
|
2503
|
+
result = self._values.get("log_removal_policy")
|
|
2504
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
2505
|
+
|
|
2478
2506
|
@builtins.property
|
|
2479
2507
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
2480
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
2508
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
2481
2509
|
|
|
2482
2510
|
When updating
|
|
2483
2511
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -2498,6 +2526,10 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
2498
2526
|
my_log_group.log_group_name
|
|
2499
2527
|
|
|
2500
2528
|
:default: logs.RetentionDays.INFINITE
|
|
2529
|
+
|
|
2530
|
+
:deprecated: use ``logGroup`` instead
|
|
2531
|
+
|
|
2532
|
+
:stability: deprecated
|
|
2501
2533
|
'''
|
|
2502
2534
|
result = self._values.get("log_retention")
|
|
2503
2535
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -3070,6 +3102,7 @@ def _typecheckingstub__ece177829b26ef102d4080d730f168e29d7d310d1518738839cd3fc82
|
|
|
3070
3102
|
log_format: typing.Optional[builtins.str] = None,
|
|
3071
3103
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
3072
3104
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
3105
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
3073
3106
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
3074
3107
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
3075
3108
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -3129,6 +3162,7 @@ def _typecheckingstub__2da45b394f0332be0f6d6b7468d9fb54961953d56265da69955d36ffa
|
|
|
3129
3162
|
log_format: typing.Optional[builtins.str] = None,
|
|
3130
3163
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
3131
3164
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
3165
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
3132
3166
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
3133
3167
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
3134
3168
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|