aws-cdk-lib 2.137.0__py3-none-any.whl → 2.138.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 (56) hide show
  1. aws_cdk/__init__.py +8 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.137.0.jsii.tgz → aws-cdk-lib@2.138.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +29 -113
  5. aws_cdk/aws_appconfig/__init__.py +26 -33
  6. aws_cdk/aws_apprunner/__init__.py +5 -2
  7. aws_cdk/aws_appsync/__init__.py +400 -13
  8. aws_cdk/aws_aps/__init__.py +64 -47
  9. aws_cdk/aws_b2bi/__init__.py +2 -6
  10. aws_cdk/aws_backup/__init__.py +27 -23
  11. aws_cdk/aws_batch/__init__.py +103 -0
  12. aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
  13. aws_cdk/aws_chatbot/__init__.py +6 -4
  14. aws_cdk/aws_cleanrooms/__init__.py +526 -3
  15. aws_cdk/aws_cleanroomsml/__init__.py +960 -0
  16. aws_cdk/aws_cloudtrail/__init__.py +10 -10
  17. aws_cdk/aws_cloudwatch/__init__.py +124 -8
  18. aws_cdk/aws_codebuild/__init__.py +27 -22
  19. aws_cdk/aws_codeconnections/__init__.py +435 -0
  20. aws_cdk/aws_cognito/__init__.py +175 -79
  21. aws_cdk/aws_deadline/__init__.py +5394 -0
  22. aws_cdk/aws_ec2/__init__.py +279 -163
  23. aws_cdk/aws_ecs/__init__.py +240 -1
  24. aws_cdk/aws_efs/__init__.py +2 -2
  25. aws_cdk/aws_elasticache/__init__.py +86 -32
  26. aws_cdk/aws_elasticloadbalancingv2/__init__.py +52 -2
  27. aws_cdk/aws_emr/__init__.py +2 -2
  28. aws_cdk/aws_entityresolution/__init__.py +1982 -773
  29. aws_cdk/aws_globalaccelerator/__init__.py +443 -0
  30. aws_cdk/aws_iam/__init__.py +1 -2
  31. aws_cdk/aws_internetmonitor/__init__.py +14 -6
  32. aws_cdk/aws_ivs/__init__.py +1273 -71
  33. aws_cdk/aws_mediatailor/__init__.py +41 -0
  34. aws_cdk/aws_personalize/__init__.py +8 -6
  35. aws_cdk/aws_pinpoint/__init__.py +5 -3
  36. aws_cdk/aws_pipes/__init__.py +5 -1
  37. aws_cdk/aws_quicksight/__init__.py +12 -6
  38. aws_cdk/aws_rds/__init__.py +355 -85
  39. aws_cdk/aws_route53/__init__.py +587 -14
  40. aws_cdk/aws_sagemaker/__init__.py +233 -2
  41. aws_cdk/aws_securityhub/__init__.py +4940 -102
  42. aws_cdk/aws_securitylake/__init__.py +1237 -55
  43. aws_cdk/aws_sns/__init__.py +61 -4
  44. aws_cdk/aws_ssmcontacts/__init__.py +11 -4
  45. aws_cdk/aws_stepfunctions/__init__.py +8 -16
  46. aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
  47. aws_cdk/aws_transfer/__init__.py +4 -4
  48. aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
  49. aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
  50. aws_cdk/custom_resources/__init__.py +248 -26
  51. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/METADATA +3 -3
  52. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/RECORD +56 -52
  53. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/LICENSE +0 -0
  54. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/NOTICE +0 -0
  55. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/WHEEL +0 -0
  56. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/top_level.txt +0 -0
@@ -785,6 +785,19 @@ target_group = elbv2.ApplicationTargetGroup.from_target_group_attributes(self, "
785
785
 
786
786
  target_group_metrics = target_group.metrics
787
787
  ```
788
+
789
+ ## logicalIds on ExternalApplicationListener.addTargetGroups() and .addAction()
790
+
791
+ By default, the `addTargetGroups()` method does not follow the standard behavior
792
+ of adding a `Rule` suffix to the logicalId of the `ListenerRule` it creates.
793
+ If you are deploying new `ListenerRule`s using `addTargetGroups()` the recommendation
794
+ is to set the `removeRuleSuffixFromLogicalId: false` property.
795
+ If you have `ListenerRule`s deployed using the legacy behavior of `addTargetGroups()`,
796
+ which you need to switch over to being managed by the `addAction()` method,
797
+ then you will need to enable the `removeRuleSuffixFromLogicalId: true` property in the `addAction()` method.
798
+
799
+ `ListenerRule`s have a unique `priority` for a given `Listener`.
800
+ Because the `priority` must be unique, CloudFormation will always fail when creating a new `ListenerRule` to replace the existing one, unless you change the `priority` as well as the logicalId.
788
801
  '''
789
802
  from pkgutil import extend_path
790
803
  __path__ = extend_path(__path__, __name__)
@@ -18213,6 +18226,7 @@ class XffHeaderProcessingMode(enum.Enum):
18213
18226
  "conditions": "conditions",
18214
18227
  "priority": "priority",
18215
18228
  "action": "action",
18229
+ "remove_suffix": "removeSuffix",
18216
18230
  },
18217
18231
  )
18218
18232
  class AddApplicationActionProps(AddRuleProps):
@@ -18222,12 +18236,14 @@ class AddApplicationActionProps(AddRuleProps):
18222
18236
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
18223
18237
  priority: typing.Optional[jsii.Number] = None,
18224
18238
  action: ListenerAction,
18239
+ remove_suffix: typing.Optional[builtins.bool] = None,
18225
18240
  ) -> None:
18226
18241
  '''Properties for adding a new action to a listener.
18227
18242
 
18228
18243
  :param conditions: Rule applies if matches the conditions. Default: - No conditions.
18229
18244
  :param priority: Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaults
18230
18245
  :param action: Action to perform.
18246
+ :param remove_suffix: ``ListenerRule``s have a ``Rule`` suffix on their logicalId by default. This allows you to remove that suffix. Legacy behavior of the ``addTargetGroups()`` convenience method did not include the ``Rule`` suffix on the logicalId of the generated ``ListenerRule``. At some point, increasing complexity of requirements can require users to switch from the ``addTargetGroups()`` method to the ``addAction()`` method. When migrating ``ListenerRule``s deployed by a legacy version of ``addTargetGroups()``, you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace the ``ListenerRule`` and fail. Default: - use standard logicalId with the ``Rule`` suffix
18231
18247
 
18232
18248
  :exampleMetadata: infused
18233
18249
 
@@ -18252,6 +18268,7 @@ class AddApplicationActionProps(AddRuleProps):
18252
18268
  check_type(argname="argument conditions", value=conditions, expected_type=type_hints["conditions"])
18253
18269
  check_type(argname="argument priority", value=priority, expected_type=type_hints["priority"])
18254
18270
  check_type(argname="argument action", value=action, expected_type=type_hints["action"])
18271
+ check_type(argname="argument remove_suffix", value=remove_suffix, expected_type=type_hints["remove_suffix"])
18255
18272
  self._values: typing.Dict[builtins.str, typing.Any] = {
18256
18273
  "action": action,
18257
18274
  }
@@ -18259,6 +18276,8 @@ class AddApplicationActionProps(AddRuleProps):
18259
18276
  self._values["conditions"] = conditions
18260
18277
  if priority is not None:
18261
18278
  self._values["priority"] = priority
18279
+ if remove_suffix is not None:
18280
+ self._values["remove_suffix"] = remove_suffix
18262
18281
 
18263
18282
  @builtins.property
18264
18283
  def conditions(self) -> typing.Optional[typing.List[ListenerCondition]]:
@@ -18293,6 +18312,22 @@ class AddApplicationActionProps(AddRuleProps):
18293
18312
  assert result is not None, "Required property 'action' is missing"
18294
18313
  return typing.cast(ListenerAction, result)
18295
18314
 
18315
+ @builtins.property
18316
+ def remove_suffix(self) -> typing.Optional[builtins.bool]:
18317
+ '''``ListenerRule``s have a ``Rule`` suffix on their logicalId by default. This allows you to remove that suffix.
18318
+
18319
+ Legacy behavior of the ``addTargetGroups()`` convenience method did not include the ``Rule`` suffix on the logicalId of the generated ``ListenerRule``.
18320
+ At some point, increasing complexity of requirements can require users to switch from the ``addTargetGroups()`` method
18321
+ to the ``addAction()`` method.
18322
+ When migrating ``ListenerRule``s deployed by a legacy version of ``addTargetGroups()``,
18323
+ you will need to enable this flag to avoid changing the logicalId of your resource.
18324
+ Otherwise Cfn will attempt to replace the ``ListenerRule`` and fail.
18325
+
18326
+ :default: - use standard logicalId with the ``Rule`` suffix
18327
+ '''
18328
+ result = self._values.get("remove_suffix")
18329
+ return typing.cast(typing.Optional[builtins.bool], result)
18330
+
18296
18331
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
18297
18332
  return isinstance(rhs, self.__class__) and rhs._values == self._values
18298
18333
 
@@ -19933,6 +19968,7 @@ class IApplicationListener(
19933
19968
  id: builtins.str,
19934
19969
  *,
19935
19970
  action: ListenerAction,
19971
+ remove_suffix: typing.Optional[builtins.bool] = None,
19936
19972
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
19937
19973
  priority: typing.Optional[jsii.Number] = None,
19938
19974
  ) -> None:
@@ -19950,6 +19986,7 @@ class IApplicationListener(
19950
19986
 
19951
19987
  :param id: -
19952
19988
  :param action: Action to perform.
19989
+ :param remove_suffix: ``ListenerRule``s have a ``Rule`` suffix on their logicalId by default. This allows you to remove that suffix. Legacy behavior of the ``addTargetGroups()`` convenience method did not include the ``Rule`` suffix on the logicalId of the generated ``ListenerRule``. At some point, increasing complexity of requirements can require users to switch from the ``addTargetGroups()`` method to the ``addAction()`` method. When migrating ``ListenerRule``s deployed by a legacy version of ``addTargetGroups()``, you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace the ``ListenerRule`` and fail. Default: - use standard logicalId with the ``Rule`` suffix
19953
19990
  :param conditions: Rule applies if matches the conditions. Default: - No conditions.
19954
19991
  :param priority: Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaults
19955
19992
  '''
@@ -20065,6 +20102,7 @@ class _IApplicationListenerProxy(
20065
20102
  id: builtins.str,
20066
20103
  *,
20067
20104
  action: ListenerAction,
20105
+ remove_suffix: typing.Optional[builtins.bool] = None,
20068
20106
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
20069
20107
  priority: typing.Optional[jsii.Number] = None,
20070
20108
  ) -> None:
@@ -20082,6 +20120,7 @@ class _IApplicationListenerProxy(
20082
20120
 
20083
20121
  :param id: -
20084
20122
  :param action: Action to perform.
20123
+ :param remove_suffix: ``ListenerRule``s have a ``Rule`` suffix on their logicalId by default. This allows you to remove that suffix. Legacy behavior of the ``addTargetGroups()`` convenience method did not include the ``Rule`` suffix on the logicalId of the generated ``ListenerRule``. At some point, increasing complexity of requirements can require users to switch from the ``addTargetGroups()`` method to the ``addAction()`` method. When migrating ``ListenerRule``s deployed by a legacy version of ``addTargetGroups()``, you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace the ``ListenerRule`` and fail. Default: - use standard logicalId with the ``Rule`` suffix
20085
20124
  :param conditions: Rule applies if matches the conditions. Default: - No conditions.
20086
20125
  :param priority: Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaults
20087
20126
  '''
@@ -20089,7 +20128,10 @@ class _IApplicationListenerProxy(
20089
20128
  type_hints = typing.get_type_hints(_typecheckingstub__078c8c060ef52d807e9a62da847c7c1f9a2fb0a3f7bf8900246c80b1d9ff0a2e)
20090
20129
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
20091
20130
  props = AddApplicationActionProps(
20092
- action=action, conditions=conditions, priority=priority
20131
+ action=action,
20132
+ remove_suffix=remove_suffix,
20133
+ conditions=conditions,
20134
+ priority=priority,
20093
20135
  )
20094
20136
 
20095
20137
  return typing.cast(None, jsii.invoke(self, "addAction", [id, props]))
@@ -21241,6 +21283,7 @@ class ApplicationListener(
21241
21283
  id: builtins.str,
21242
21284
  *,
21243
21285
  action: ListenerAction,
21286
+ remove_suffix: typing.Optional[builtins.bool] = None,
21244
21287
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
21245
21288
  priority: typing.Optional[jsii.Number] = None,
21246
21289
  ) -> None:
@@ -21256,6 +21299,7 @@ class ApplicationListener(
21256
21299
 
21257
21300
  :param id: -
21258
21301
  :param action: Action to perform.
21302
+ :param remove_suffix: ``ListenerRule``s have a ``Rule`` suffix on their logicalId by default. This allows you to remove that suffix. Legacy behavior of the ``addTargetGroups()`` convenience method did not include the ``Rule`` suffix on the logicalId of the generated ``ListenerRule``. At some point, increasing complexity of requirements can require users to switch from the ``addTargetGroups()`` method to the ``addAction()`` method. When migrating ``ListenerRule``s deployed by a legacy version of ``addTargetGroups()``, you will need to enable this flag to avoid changing the logicalId of your resource. Otherwise Cfn will attempt to replace the ``ListenerRule`` and fail. Default: - use standard logicalId with the ``Rule`` suffix
21259
21303
  :param conditions: Rule applies if matches the conditions. Default: - No conditions.
21260
21304
  :param priority: Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaults
21261
21305
  '''
@@ -21263,7 +21307,10 @@ class ApplicationListener(
21263
21307
  type_hints = typing.get_type_hints(_typecheckingstub__646bd302ed3a63a28a30ea3b62d2e003bf976ae981493560776ad112cacb8001)
21264
21308
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
21265
21309
  props = AddApplicationActionProps(
21266
- action=action, conditions=conditions, priority=priority
21310
+ action=action,
21311
+ remove_suffix=remove_suffix,
21312
+ conditions=conditions,
21313
+ priority=priority,
21267
21314
  )
21268
21315
 
21269
21316
  return typing.cast(None, jsii.invoke(self, "addAction", [id, props]))
@@ -25201,6 +25248,7 @@ def _typecheckingstub__4107bd237140ac5f517872385fdbe42c3d9200e34f993d6b71eb7a020
25201
25248
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
25202
25249
  priority: typing.Optional[jsii.Number] = None,
25203
25250
  action: ListenerAction,
25251
+ remove_suffix: typing.Optional[builtins.bool] = None,
25204
25252
  ) -> None:
25205
25253
  """Type checking stubs"""
25206
25254
  pass
@@ -25333,6 +25381,7 @@ def _typecheckingstub__078c8c060ef52d807e9a62da847c7c1f9a2fb0a3f7bf8900246c80b1d
25333
25381
  id: builtins.str,
25334
25382
  *,
25335
25383
  action: ListenerAction,
25384
+ remove_suffix: typing.Optional[builtins.bool] = None,
25336
25385
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
25337
25386
  priority: typing.Optional[jsii.Number] = None,
25338
25387
  ) -> None:
@@ -25587,6 +25636,7 @@ def _typecheckingstub__646bd302ed3a63a28a30ea3b62d2e003bf976ae981493560776ad112c
25587
25636
  id: builtins.str,
25588
25637
  *,
25589
25638
  action: ListenerAction,
25639
+ remove_suffix: typing.Optional[builtins.bool] = None,
25590
25640
  conditions: typing.Optional[typing.Sequence[ListenerCondition]] = None,
25591
25641
  priority: typing.Optional[jsii.Number] = None,
25592
25642
  ) -> None:
@@ -3047,7 +3047,7 @@ class CfnCluster(
3047
3047
  :param emr_managed_master_security_group: The identifier of the Amazon EC2 security group for the master node. If you specify ``EmrManagedMasterSecurityGroup`` , you must also specify ``EmrManagedSlaveSecurityGroup`` .
3048
3048
  :param emr_managed_slave_security_group: The identifier of the Amazon EC2 security group for the core and task nodes. If you specify ``EmrManagedSlaveSecurityGroup`` , you must also specify ``EmrManagedMasterSecurityGroup`` .
3049
3049
  :param hadoop_version: Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid inputs are "0.18" (no longer maintained), "0.20" (no longer maintained), "0.20.205" (no longer maintained), "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless the ``AmiVersion`` parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.
3050
- :param keep_job_flow_alive_when_no_steps: Specifies whether the cluster should remain available after completing all steps. Defaults to ``true`` . For more information about configuring cluster termination, see `Control Cluster Termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ in the *EMR Management Guide* .
3050
+ :param keep_job_flow_alive_when_no_steps: Specifies whether the cluster should remain available after completing all steps. Defaults to ``false`` . For more information about configuring cluster termination, see `Control Cluster Termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ in the *EMR Management Guide* .
3051
3051
  :param master_instance_fleet: Describes the EC2 instances and instance configurations for the master instance fleet when using clusters with the instance fleet configuration.
3052
3052
  :param master_instance_group: Describes the EC2 instances and instance configurations for the master instance group when using clusters with the uniform instance group configuration.
3053
3053
  :param placement: The Availability Zone in which the cluster runs.
@@ -3637,7 +3637,7 @@ class CfnCluster(
3637
3637
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
3638
3638
  '''Specifies whether the cluster should remain available after completing all steps.
3639
3639
 
3640
- Defaults to ``true`` . For more information about configuring cluster termination, see `Control Cluster Termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ in the *EMR Management Guide* .
3640
+ Defaults to ``false`` . For more information about configuring cluster termination, see `Control Cluster Termination <https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html>`_ in the *EMR Management Guide* .
3641
3641
 
3642
3642
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-jobflowinstancesconfig.html#cfn-emr-cluster-jobflowinstancesconfig-keepjobflowalivewhennosteps
3643
3643
  '''