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.

Files changed (62) hide show
  1. aws_cdk/__init__.py +46 -47
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.202.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_accessanalyzer/__init__.py +310 -4
  5. aws_cdk/aws_aiops/__init__.py +964 -0
  6. aws_cdk/aws_amplify/__init__.py +127 -0
  7. aws_cdk/aws_arczonalshift/__init__.py +8 -8
  8. aws_cdk/aws_b2bi/__init__.py +782 -3
  9. aws_cdk/aws_backup/__init__.py +22 -0
  10. aws_cdk/aws_batch/__init__.py +53 -1
  11. aws_cdk/aws_bedrock/__init__.py +123 -9
  12. aws_cdk/aws_cleanrooms/__init__.py +157 -154
  13. aws_cdk/aws_cloudformation/__init__.py +28 -28
  14. aws_cdk/aws_cloudfront/__init__.py +61 -18
  15. aws_cdk/aws_cloudfront/experimental/__init__.py +37 -3
  16. aws_cdk/aws_cloudwatch/__init__.py +228 -2
  17. aws_cdk/aws_connect/__init__.py +120 -8
  18. aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
  19. aws_cdk/aws_customerprofiles/__init__.py +140 -20
  20. aws_cdk/aws_datazone/__init__.py +23 -4
  21. aws_cdk/aws_deadline/__init__.py +4 -4
  22. aws_cdk/aws_dsql/__init__.py +148 -0
  23. aws_cdk/aws_ec2/__init__.py +159 -7
  24. aws_cdk/aws_ecr/__init__.py +3 -3
  25. aws_cdk/aws_ecs/__init__.py +48 -13
  26. aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
  27. aws_cdk/aws_emrserverless/__init__.py +118 -0
  28. aws_cdk/aws_fsx/__init__.py +891 -0
  29. aws_cdk/aws_iam/__init__.py +8 -8
  30. aws_cdk/aws_inspectorv2/__init__.py +442 -3
  31. aws_cdk/aws_kendra/__init__.py +10 -5
  32. aws_cdk/aws_kms/__init__.py +14 -8
  33. aws_cdk/aws_lambda/__init__.py +191 -24
  34. aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
  35. aws_cdk/aws_lex/__init__.py +703 -0
  36. aws_cdk/aws_logs/__init__.py +144 -0
  37. aws_cdk/aws_mediatailor/__init__.py +399 -0
  38. aws_cdk/aws_mpa/__init__.py +1475 -0
  39. aws_cdk/aws_networkfirewall/__init__.py +4 -2
  40. aws_cdk/aws_networkmanager/__init__.py +51 -3
  41. aws_cdk/aws_opsworkscm/__init__.py +44 -2
  42. aws_cdk/aws_rds/__init__.py +171 -41
  43. aws_cdk/aws_redshiftserverless/__init__.py +632 -0
  44. aws_cdk/aws_route53resolver/__init__.py +58 -10
  45. aws_cdk/aws_s3/__init__.py +3 -1
  46. aws_cdk/aws_s3tables/__init__.py +230 -0
  47. aws_cdk/aws_sagemaker/__init__.py +6 -2
  48. aws_cdk/aws_securityhub/__init__.py +2887 -56
  49. aws_cdk/aws_synthetics/__init__.py +21 -0
  50. aws_cdk/aws_vpclattice/__init__.py +6 -4
  51. aws_cdk/aws_wafv2/__init__.py +156 -51
  52. aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
  53. aws_cdk/cloud_assembly_schema/__init__.py +200 -4
  54. aws_cdk/cx_api/__init__.py +15 -14
  55. aws_cdk/pipelines/__init__.py +31 -3
  56. aws_cdk/triggers/__init__.py +41 -4
  57. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
  58. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +62 -59
  59. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
  60. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
  61. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
  62. {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
@@ -33,6 +33,7 @@ from ..._jsii import *
33
33
  import constructs as _constructs_77d1e7e8
34
34
  from ... import (
35
35
  Duration as _Duration_4839e8c3,
36
+ RemovalPolicy as _RemovalPolicy_9f93c814,
36
37
  Resource as _Resource_45bc6135,
37
38
  Size as _Size_7b441c34,
38
39
  )
@@ -181,6 +182,7 @@ class EdgeFunction(
181
182
  log_format: typing.Optional[builtins.str] = None,
182
183
  logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
183
184
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
185
+ log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
184
186
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
185
187
  log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
186
188
  log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
@@ -238,7 +240,8 @@ class EdgeFunction(
238
240
  :param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
239
241
  :param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
240
242
  :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
241
- :param log_retention: 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
243
+ :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
244
+ :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
242
245
  :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.
243
246
  :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.
244
247
  :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
@@ -297,6 +300,7 @@ class EdgeFunction(
297
300
  log_format=log_format,
298
301
  logging_format=logging_format,
299
302
  log_group=log_group,
303
+ log_removal_policy=log_removal_policy,
300
304
  log_retention=log_retention,
301
305
  log_retention_retry_options=log_retention_retry_options,
302
306
  log_retention_role=log_retention_role,
@@ -1000,6 +1004,7 @@ class EdgeFunction(
1000
1004
  "log_format": "logFormat",
1001
1005
  "logging_format": "loggingFormat",
1002
1006
  "log_group": "logGroup",
1007
+ "log_removal_policy": "logRemovalPolicy",
1003
1008
  "log_retention": "logRetention",
1004
1009
  "log_retention_retry_options": "logRetentionRetryOptions",
1005
1010
  "log_retention_role": "logRetentionRole",
@@ -1059,6 +1064,7 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
1059
1064
  log_format: typing.Optional[builtins.str] = None,
1060
1065
  logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
1061
1066
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
1067
+ log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
1062
1068
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
1063
1069
  log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
1064
1070
  log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
@@ -1115,7 +1121,8 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
1115
1121
  :param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
1116
1122
  :param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
1117
1123
  :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
1118
- :param log_retention: 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
1124
+ :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
1125
+ :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
1119
1126
  :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.
1120
1127
  :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.
1121
1128
  :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
@@ -1202,6 +1209,7 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
1202
1209
  check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
1203
1210
  check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
1204
1211
  check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
1212
+ check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
1205
1213
  check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
1206
1214
  check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
1207
1215
  check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
@@ -1290,6 +1298,8 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
1290
1298
  self._values["logging_format"] = logging_format
1291
1299
  if log_group is not None:
1292
1300
  self._values["log_group"] = log_group
1301
+ if log_removal_policy is not None:
1302
+ self._values["log_removal_policy"] = log_removal_policy
1293
1303
  if log_retention is not None:
1294
1304
  self._values["log_retention"] = log_retention
1295
1305
  if log_retention_retry_options is not None:
@@ -1675,9 +1685,27 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
1675
1685
  result = self._values.get("log_group")
1676
1686
  return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
1677
1687
 
1688
+ @builtins.property
1689
+ def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
1690
+ '''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
1691
+
1692
+ Normally you want to retain the log group so you can diagnose issues
1693
+ from logs even after a deployment that no longer includes the log group.
1694
+ In that case, use the normal date-based retention policy to age out your
1695
+ logs.
1696
+
1697
+ :default: RemovalPolicy.Retain
1698
+
1699
+ :deprecated: use ``logGroup`` instead
1700
+
1701
+ :stability: deprecated
1702
+ '''
1703
+ result = self._values.get("log_removal_policy")
1704
+ return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
1705
+
1678
1706
  @builtins.property
1679
1707
  def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
1680
- '''The number of days log events are kept in CloudWatch Logs.
1708
+ '''(deprecated) The number of days log events are kept in CloudWatch Logs.
1681
1709
 
1682
1710
  When updating
1683
1711
  this property, unsetting it doesn't remove the log retention policy. To
@@ -1698,6 +1726,10 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
1698
1726
  my_log_group.log_group_name
1699
1727
 
1700
1728
  :default: logs.RetentionDays.INFINITE
1729
+
1730
+ :deprecated: use ``logGroup`` instead
1731
+
1732
+ :stability: deprecated
1701
1733
  '''
1702
1734
  result = self._values.get("log_retention")
1703
1735
  return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
@@ -2034,6 +2066,7 @@ def _typecheckingstub__b2f96e5632f259adb036f7aba2bbc7c19fd9840c647d67a10a8135cb3
2034
2066
  log_format: typing.Optional[builtins.str] = None,
2035
2067
  logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
2036
2068
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
2069
+ log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
2037
2070
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
2038
2071
  log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
2039
2072
  log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
@@ -2213,6 +2246,7 @@ def _typecheckingstub__709cdcb05c7a5fc7f7bcd1d72557097c39c5c534076a00b6b8db807bd
2213
2246
  log_format: typing.Optional[builtins.str] = None,
2214
2247
  logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
2215
2248
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
2249
+ log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
2216
2250
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
2217
2251
  log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
2218
2252
  log_retention_role: typing.Optional[_IRole_235f5d8e] = None,