aws-cdk-lib 2.146.0__py3-none-any.whl → 2.147.1__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 (68) hide show
  1. aws_cdk/__init__.py +11 -12
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.146.0.jsii.tgz → aws-cdk-lib@2.147.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +32 -12
  5. aws_cdk/aws_apigatewayv2/__init__.py +48 -2
  6. aws_cdk/aws_apigatewayv2_integrations/__init__.py +142 -4
  7. aws_cdk/aws_appconfig/__init__.py +8 -4
  8. aws_cdk/aws_applicationsignals/__init__.py +1766 -0
  9. aws_cdk/aws_auditmanager/__init__.py +5 -1
  10. aws_cdk/aws_autoscaling/__init__.py +65 -20
  11. aws_cdk/aws_batch/__init__.py +215 -0
  12. aws_cdk/aws_bedrock/__init__.py +272 -103
  13. aws_cdk/aws_cloudformation/__init__.py +5 -11
  14. aws_cdk/aws_cloudfront/__init__.py +10 -3
  15. aws_cdk/aws_cloudtrail/__init__.py +56 -2
  16. aws_cdk/aws_codebuild/__init__.py +62 -29
  17. aws_cdk/aws_codepipeline/__init__.py +10 -5
  18. aws_cdk/aws_datazone/__init__.py +80 -68
  19. aws_cdk/aws_deadline/__init__.py +603 -17
  20. aws_cdk/aws_ec2/__init__.py +237 -112
  21. aws_cdk/aws_ecs/__init__.py +20 -18
  22. aws_cdk/aws_eks/__init__.py +15 -9
  23. aws_cdk/aws_elasticloadbalancingv2/__init__.py +11 -5
  24. aws_cdk/aws_emrserverless/__init__.py +5 -5
  25. aws_cdk/aws_events/__init__.py +36 -16
  26. aws_cdk/aws_fsx/__init__.py +126 -21
  27. aws_cdk/aws_globalaccelerator/__init__.py +2 -1
  28. aws_cdk/aws_globalaccelerator_endpoints/__init__.py +35 -4
  29. aws_cdk/aws_glue/__init__.py +26 -0
  30. aws_cdk/aws_grafana/__init__.py +4 -4
  31. aws_cdk/aws_groundstation/__init__.py +55 -35
  32. aws_cdk/aws_guardduty/__init__.py +826 -0
  33. aws_cdk/aws_iot/__init__.py +3 -3
  34. aws_cdk/aws_lambda/__init__.py +7 -5
  35. aws_cdk/aws_lightsail/__init__.py +1 -1
  36. aws_cdk/aws_location/__init__.py +10 -11
  37. aws_cdk/aws_mediapackagev2/__init__.py +38 -20
  38. aws_cdk/aws_mediatailor/__init__.py +2 -2
  39. aws_cdk/aws_msk/__init__.py +4 -4
  40. aws_cdk/aws_mwaa/__init__.py +16 -8
  41. aws_cdk/aws_nimblestudio/__init__.py +9 -9
  42. aws_cdk/aws_opensearchservice/__init__.py +5 -4
  43. aws_cdk/aws_opsworks/__init__.py +3 -3
  44. aws_cdk/aws_osis/__init__.py +33 -4
  45. aws_cdk/aws_pipes/__init__.py +97 -45
  46. aws_cdk/aws_quicksight/__init__.py +23 -21
  47. aws_cdk/aws_rds/__init__.py +43 -11
  48. aws_cdk/aws_refactorspaces/__init__.py +3 -3
  49. aws_cdk/aws_rolesanywhere/__init__.py +21 -14
  50. aws_cdk/aws_route53/__init__.py +3 -3
  51. aws_cdk/aws_sagemaker/__init__.py +5 -2
  52. aws_cdk/aws_securityhub/__init__.py +163 -78
  53. aws_cdk/aws_securitylake/__init__.py +7 -5
  54. aws_cdk/aws_ses/__init__.py +117 -0
  55. aws_cdk/aws_simspaceweaver/__init__.py +2 -2
  56. aws_cdk/aws_sns/__init__.py +6 -4
  57. aws_cdk/aws_sqs/__init__.py +3 -3
  58. aws_cdk/aws_stepfunctions/__init__.py +51 -28
  59. aws_cdk/aws_stepfunctions_tasks/__init__.py +56 -2
  60. aws_cdk/aws_transfer/__init__.py +8 -2
  61. aws_cdk/aws_wafv2/__init__.py +10 -10
  62. aws_cdk/aws_workspacesweb/__init__.py +8 -8
  63. {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.1.dist-info}/METADATA +1 -1
  64. {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.1.dist-info}/RECORD +68 -67
  65. {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.1.dist-info}/LICENSE +0 -0
  66. {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.1.dist-info}/NOTICE +0 -0
  67. {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.1.dist-info}/WHEEL +0 -0
  68. {aws_cdk_lib-2.146.0.dist-info → aws_cdk_lib-2.147.1.dist-info}/top_level.txt +0 -0
@@ -1366,7 +1366,9 @@ class CfnSubscriberNotification(
1366
1366
  metaclass=jsii.JSIIMeta,
1367
1367
  jsii_type="aws-cdk-lib.aws_securitylake.CfnSubscriberNotification",
1368
1368
  ):
1369
- '''Resource Type definition for AWS::SecurityLake::SubscriberNotification.
1369
+ '''Notifies the subscriber when new data is written to the data lake for the sources that the subscriber consumes in Security Lake.
1370
+
1371
+ You can create only one subscriber notification per subscriber.
1370
1372
 
1371
1373
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html
1372
1374
  :cloudformationResource: AWS::SecurityLake::SubscriberNotification
@@ -1393,7 +1395,7 @@ class CfnSubscriberNotification(
1393
1395
  '''
1394
1396
  :param scope: Scope in which this resource is defined.
1395
1397
  :param id: Construct identifier for this resource (unique in its scope).
1396
- :param subscriber_arn: The ARN for the subscriber.
1398
+ :param subscriber_arn: The Amazon Resource Name (ARN) of the Security Lake subscriber.
1397
1399
  '''
1398
1400
  if __debug__:
1399
1401
  type_hints = typing.get_type_hints(_typecheckingstub__12d097a0b2763ed8532079d34366f79ee45e7139fbdd98f5e181dd9c1fc456ee)
@@ -1450,7 +1452,7 @@ class CfnSubscriberNotification(
1450
1452
  @builtins.property
1451
1453
  @jsii.member(jsii_name="subscriberArn")
1452
1454
  def subscriber_arn(self) -> builtins.str:
1453
- '''The ARN for the subscriber.'''
1455
+ '''The Amazon Resource Name (ARN) of the Security Lake subscriber.'''
1454
1456
  return typing.cast(builtins.str, jsii.get(self, "subscriberArn"))
1455
1457
 
1456
1458
  @subscriber_arn.setter
@@ -1470,7 +1472,7 @@ class CfnSubscriberNotificationProps:
1470
1472
  def __init__(self, *, subscriber_arn: builtins.str) -> None:
1471
1473
  '''Properties for defining a ``CfnSubscriberNotification``.
1472
1474
 
1473
- :param subscriber_arn: The ARN for the subscriber.
1475
+ :param subscriber_arn: The Amazon Resource Name (ARN) of the Security Lake subscriber.
1474
1476
 
1475
1477
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html
1476
1478
  :exampleMetadata: fixture=_generated
@@ -1494,7 +1496,7 @@ class CfnSubscriberNotificationProps:
1494
1496
 
1495
1497
  @builtins.property
1496
1498
  def subscriber_arn(self) -> builtins.str:
1497
- '''The ARN for the subscriber.
1499
+ '''The Amazon Resource Name (ARN) of the Security Lake subscriber.
1498
1500
 
1499
1501
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-subscriberarn
1500
1502
  '''
@@ -240,6 +240,21 @@ Use the `VdmAttributes` construct to configure the Virtual Deliverability Manage
240
240
  # Enables engagement tracking and optimized shared delivery by default
241
241
  ses.VdmAttributes(self, "Vdm")
242
242
  ```
243
+
244
+ If you want to override the VDM settings in the specified configuration set, use `vdmOptions` in the `ConfigurationSet` construct.
245
+
246
+ > **Note:** The configuration set level settings need to be used together with the account level settings. (To set the account level settings using CDK, use the `VdmAttributes` Construct.)
247
+ > If you enable only the configuration set level settings, VDM will not be enabled until the account level settings are configured.
248
+ > For more information, see [Virtual Deliverability Manager settings](https://docs.aws.amazon.com/ses/latest/dg/vdm-settings.html).
249
+
250
+ ```python
251
+ ses.ConfigurationSet(self, "ConfigurationSetWithVdmOptions",
252
+ vdm_options=ses.VdmOptions(
253
+ engagement_metrics=True,
254
+ optimized_shared_delivery=True
255
+ )
256
+ )
257
+ ```
243
258
  '''
244
259
  from pkgutil import extend_path
245
260
  __path__ = extend_path(__path__, __name__)
@@ -6629,6 +6644,7 @@ class ConfigurationSetEventDestinationProps(ConfigurationSetEventDestinationOpti
6629
6644
  "sending_enabled": "sendingEnabled",
6630
6645
  "suppression_reasons": "suppressionReasons",
6631
6646
  "tls_policy": "tlsPolicy",
6647
+ "vdm_options": "vdmOptions",
6632
6648
  },
6633
6649
  )
6634
6650
  class ConfigurationSetProps:
@@ -6642,6 +6658,7 @@ class ConfigurationSetProps:
6642
6658
  sending_enabled: typing.Optional[builtins.bool] = None,
6643
6659
  suppression_reasons: typing.Optional["SuppressionReasons"] = None,
6644
6660
  tls_policy: typing.Optional["ConfigurationSetTlsPolicy"] = None,
6661
+ vdm_options: typing.Optional[typing.Union["VdmOptions", typing.Dict[builtins.str, typing.Any]]] = None,
6645
6662
  ) -> None:
6646
6663
  '''Properties for a configuration set.
6647
6664
 
@@ -6652,6 +6669,7 @@ class ConfigurationSetProps:
6652
6669
  :param sending_enabled: Whether email sending is enabled. Default: true
6653
6670
  :param suppression_reasons: The reasons for which recipient email addresses should be automatically added to your account's suppression list. Default: - use account level settings
6654
6671
  :param tls_policy: Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). Default: ConfigurationSetTlsPolicy.OPTIONAL
6672
+ :param vdm_options: The Virtual Deliverability Manager (VDM) options that apply to the configuration set. Default: - VDM options not configured at the configuration set level. In this case, use account level settings. (To set the account level settings using CDK, use the ``VdmAttributes`` Construct.)
6655
6673
 
6656
6674
  :exampleMetadata: infused
6657
6675
 
@@ -6667,6 +6685,8 @@ class ConfigurationSetProps:
6667
6685
  dedicated_ip_pool=my_pool
6668
6686
  )
6669
6687
  '''
6688
+ if isinstance(vdm_options, dict):
6689
+ vdm_options = VdmOptions(**vdm_options)
6670
6690
  if __debug__:
6671
6691
  type_hints = typing.get_type_hints(_typecheckingstub__fb010161f6c1e40b88122d9cb7754dae093e9cbe5bbfc72b19737729a4f4523d)
6672
6692
  check_type(argname="argument configuration_set_name", value=configuration_set_name, expected_type=type_hints["configuration_set_name"])
@@ -6676,6 +6696,7 @@ class ConfigurationSetProps:
6676
6696
  check_type(argname="argument sending_enabled", value=sending_enabled, expected_type=type_hints["sending_enabled"])
6677
6697
  check_type(argname="argument suppression_reasons", value=suppression_reasons, expected_type=type_hints["suppression_reasons"])
6678
6698
  check_type(argname="argument tls_policy", value=tls_policy, expected_type=type_hints["tls_policy"])
6699
+ check_type(argname="argument vdm_options", value=vdm_options, expected_type=type_hints["vdm_options"])
6679
6700
  self._values: typing.Dict[builtins.str, typing.Any] = {}
6680
6701
  if configuration_set_name is not None:
6681
6702
  self._values["configuration_set_name"] = configuration_set_name
@@ -6691,6 +6712,8 @@ class ConfigurationSetProps:
6691
6712
  self._values["suppression_reasons"] = suppression_reasons
6692
6713
  if tls_policy is not None:
6693
6714
  self._values["tls_policy"] = tls_policy
6715
+ if vdm_options is not None:
6716
+ self._values["vdm_options"] = vdm_options
6694
6717
 
6695
6718
  @builtins.property
6696
6719
  def configuration_set_name(self) -> typing.Optional[builtins.str]:
@@ -6755,6 +6778,15 @@ class ConfigurationSetProps:
6755
6778
  result = self._values.get("tls_policy")
6756
6779
  return typing.cast(typing.Optional["ConfigurationSetTlsPolicy"], result)
6757
6780
 
6781
+ @builtins.property
6782
+ def vdm_options(self) -> typing.Optional["VdmOptions"]:
6783
+ '''The Virtual Deliverability Manager (VDM) options that apply to the configuration set.
6784
+
6785
+ :default: - VDM options not configured at the configuration set level. In this case, use account level settings. (To set the account level settings using CDK, use the ``VdmAttributes`` Construct.)
6786
+ '''
6787
+ result = self._values.get("vdm_options")
6788
+ return typing.cast(typing.Optional["VdmOptions"], result)
6789
+
6758
6790
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
6759
6791
  return isinstance(rhs, self.__class__) and rhs._values == self._values
6760
6792
 
@@ -9597,6 +9629,77 @@ class VdmAttributesProps:
9597
9629
  )
9598
9630
 
9599
9631
 
9632
+ @jsii.data_type(
9633
+ jsii_type="aws-cdk-lib.aws_ses.VdmOptions",
9634
+ jsii_struct_bases=[],
9635
+ name_mapping={
9636
+ "engagement_metrics": "engagementMetrics",
9637
+ "optimized_shared_delivery": "optimizedSharedDelivery",
9638
+ },
9639
+ )
9640
+ class VdmOptions:
9641
+ def __init__(
9642
+ self,
9643
+ *,
9644
+ engagement_metrics: typing.Optional[builtins.bool] = None,
9645
+ optimized_shared_delivery: typing.Optional[builtins.bool] = None,
9646
+ ) -> None:
9647
+ '''Properties for the Virtual Deliverability Manager (VDM) options that apply to the configuration set.
9648
+
9649
+ :param engagement_metrics: If true, engagement metrics are enabled for the configuration set. Default: - Engagement metrics not configured at the configuration set level. In this case, use account level settings.
9650
+ :param optimized_shared_delivery: If true, optimized shared delivery is enabled for the configuration set. Default: - Optimized shared delivery not configured at the configuration set level. In this case, use account level settings.
9651
+
9652
+ :exampleMetadata: infused
9653
+
9654
+ Example::
9655
+
9656
+ ses.ConfigurationSet(self, "ConfigurationSetWithVdmOptions",
9657
+ vdm_options=ses.VdmOptions(
9658
+ engagement_metrics=True,
9659
+ optimized_shared_delivery=True
9660
+ )
9661
+ )
9662
+ '''
9663
+ if __debug__:
9664
+ type_hints = typing.get_type_hints(_typecheckingstub__2a8516e8026df071dc99524fe916f8b7e253b71bc1734a0073475e2c6eca17aa)
9665
+ check_type(argname="argument engagement_metrics", value=engagement_metrics, expected_type=type_hints["engagement_metrics"])
9666
+ check_type(argname="argument optimized_shared_delivery", value=optimized_shared_delivery, expected_type=type_hints["optimized_shared_delivery"])
9667
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
9668
+ if engagement_metrics is not None:
9669
+ self._values["engagement_metrics"] = engagement_metrics
9670
+ if optimized_shared_delivery is not None:
9671
+ self._values["optimized_shared_delivery"] = optimized_shared_delivery
9672
+
9673
+ @builtins.property
9674
+ def engagement_metrics(self) -> typing.Optional[builtins.bool]:
9675
+ '''If true, engagement metrics are enabled for the configuration set.
9676
+
9677
+ :default: - Engagement metrics not configured at the configuration set level. In this case, use account level settings.
9678
+ '''
9679
+ result = self._values.get("engagement_metrics")
9680
+ return typing.cast(typing.Optional[builtins.bool], result)
9681
+
9682
+ @builtins.property
9683
+ def optimized_shared_delivery(self) -> typing.Optional[builtins.bool]:
9684
+ '''If true, optimized shared delivery is enabled for the configuration set.
9685
+
9686
+ :default: - Optimized shared delivery not configured at the configuration set level. In this case, use account level settings.
9687
+ '''
9688
+ result = self._values.get("optimized_shared_delivery")
9689
+ return typing.cast(typing.Optional[builtins.bool], result)
9690
+
9691
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
9692
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
9693
+
9694
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
9695
+ return not (rhs == self)
9696
+
9697
+ def __repr__(self) -> str:
9698
+ return "VdmOptions(%s)" % ", ".join(
9699
+ k + "=" + repr(v) for k, v in self._values.items()
9700
+ )
9701
+
9702
+
9600
9703
  @jsii.data_type(
9601
9704
  jsii_type="aws-cdk-lib.aws_ses.WorkmailActionConfig",
9602
9705
  jsii_struct_bases=[],
@@ -9707,6 +9810,7 @@ class ConfigurationSet(
9707
9810
  sending_enabled: typing.Optional[builtins.bool] = None,
9708
9811
  suppression_reasons: typing.Optional[SuppressionReasons] = None,
9709
9812
  tls_policy: typing.Optional[ConfigurationSetTlsPolicy] = None,
9813
+ vdm_options: typing.Optional[typing.Union[VdmOptions, typing.Dict[builtins.str, typing.Any]]] = None,
9710
9814
  ) -> None:
9711
9815
  '''
9712
9816
  :param scope: -
@@ -9718,6 +9822,7 @@ class ConfigurationSet(
9718
9822
  :param sending_enabled: Whether email sending is enabled. Default: true
9719
9823
  :param suppression_reasons: The reasons for which recipient email addresses should be automatically added to your account's suppression list. Default: - use account level settings
9720
9824
  :param tls_policy: Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). Default: ConfigurationSetTlsPolicy.OPTIONAL
9825
+ :param vdm_options: The Virtual Deliverability Manager (VDM) options that apply to the configuration set. Default: - VDM options not configured at the configuration set level. In this case, use account level settings. (To set the account level settings using CDK, use the ``VdmAttributes`` Construct.)
9721
9826
  '''
9722
9827
  if __debug__:
9723
9828
  type_hints = typing.get_type_hints(_typecheckingstub__52b42851a408d3eb2b07399f2b34603200cef443be5e9f913f4a1d80a47ac83e)
@@ -9731,6 +9836,7 @@ class ConfigurationSet(
9731
9836
  sending_enabled=sending_enabled,
9732
9837
  suppression_reasons=suppression_reasons,
9733
9838
  tls_policy=tls_policy,
9839
+ vdm_options=vdm_options,
9734
9840
  )
9735
9841
 
9736
9842
  jsii.create(self.__class__, self, [scope, id, props])
@@ -10388,6 +10494,7 @@ __all__ = [
10388
10494
  "TlsPolicy",
10389
10495
  "VdmAttributes",
10390
10496
  "VdmAttributesProps",
10497
+ "VdmOptions",
10391
10498
  "WorkmailActionConfig",
10392
10499
  ]
10393
10500
 
@@ -11244,6 +11351,7 @@ def _typecheckingstub__fb010161f6c1e40b88122d9cb7754dae093e9cbe5bbfc72b19737729a
11244
11351
  sending_enabled: typing.Optional[builtins.bool] = None,
11245
11352
  suppression_reasons: typing.Optional[SuppressionReasons] = None,
11246
11353
  tls_policy: typing.Optional[ConfigurationSetTlsPolicy] = None,
11354
+ vdm_options: typing.Optional[typing.Union[VdmOptions, typing.Dict[builtins.str, typing.Any]]] = None,
11247
11355
  ) -> None:
11248
11356
  """Type checking stubs"""
11249
11357
  pass
@@ -11571,6 +11679,14 @@ def _typecheckingstub__1882e9d1289b07868b3ffcfb9d92629e699992b01e6475750adbffc01
11571
11679
  """Type checking stubs"""
11572
11680
  pass
11573
11681
 
11682
+ def _typecheckingstub__2a8516e8026df071dc99524fe916f8b7e253b71bc1734a0073475e2c6eca17aa(
11683
+ *,
11684
+ engagement_metrics: typing.Optional[builtins.bool] = None,
11685
+ optimized_shared_delivery: typing.Optional[builtins.bool] = None,
11686
+ ) -> None:
11687
+ """Type checking stubs"""
11688
+ pass
11689
+
11574
11690
  def _typecheckingstub__08a56aa5b57fd1699d7c92c360d0709a2cfb31d3cb323b992c4b4e89432c836b(
11575
11691
  *,
11576
11692
  organization_arn: builtins.str,
@@ -11590,6 +11706,7 @@ def _typecheckingstub__52b42851a408d3eb2b07399f2b34603200cef443be5e9f913f4a1d80a
11590
11706
  sending_enabled: typing.Optional[builtins.bool] = None,
11591
11707
  suppression_reasons: typing.Optional[SuppressionReasons] = None,
11592
11708
  tls_policy: typing.Optional[ConfigurationSetTlsPolicy] = None,
11709
+ vdm_options: typing.Optional[typing.Union[VdmOptions, typing.Dict[builtins.str, typing.Any]]] = None,
11593
11710
  ) -> None:
11594
11711
  """Type checking stubs"""
11595
11712
  pass
@@ -258,7 +258,7 @@ class CfnSimulation(
258
258
  '''A location in Amazon Simple Storage Service ( Amazon S3 ) where SimSpace Weaver stores simulation data, such as your app .zip files and schema file. For more information about Amazon S3 , see the `*Amazon Simple Storage Service User Guide* <https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html>`_ .
259
259
 
260
260
  :param bucket_name: The name of an Amazon S3 bucket. For more information about buckets, see `Creating, configuring, and working with Amazon S3 buckets <https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html>`_ in the *Amazon Simple Storage Service User Guide* .
261
- :param object_key: The key name of an object in Amazon S3 . For more information about Amazon S3 objects and object keys, see `Uploading, downloading, and working with objects in Amazon S3 <https://docs.aws.amazon.com/AmazonS3/latest/userguide/uploading-downloading-objects.html>`_ in the *Amazon Simple Storage Service User Guide* .
261
+ :param object_key: The key name of an object in Amazon S3. For more information about Amazon S3 objects and object keys, see `Uploading, downloading, and working with objects in Amazon S3 <https://docs.aws.amazon.com/AmazonS3/latest/userguide/uploading-downloading-objects.html>`_ in the *Amazon Simple Storage Service User Guide* .
262
262
 
263
263
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simspaceweaver-simulation-s3location.html
264
264
  :exampleMetadata: fixture=_generated
@@ -297,7 +297,7 @@ class CfnSimulation(
297
297
 
298
298
  @builtins.property
299
299
  def object_key(self) -> builtins.str:
300
- '''The key name of an object in Amazon S3 .
300
+ '''The key name of an object in Amazon S3.
301
301
 
302
302
  For more information about Amazon S3 objects and object keys, see `Uploading, downloading, and working with objects in Amazon S3 <https://docs.aws.amazon.com/AmazonS3/latest/userguide/uploading-downloading-objects.html>`_ in the *Amazon Simple Storage Service User Guide* .
303
303
 
@@ -492,7 +492,7 @@ class CfnSubscription(
492
492
  ):
493
493
  '''The ``AWS::SNS::Subscription`` resource subscribes an endpoint to an Amazon SNS topic.
494
494
 
495
- For a subscription to be created, the owner of the endpoint must confirm the subscription.
495
+ For a subscription to be created, the owner of the endpoint must` confirm the subscription.
496
496
 
497
497
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html
498
498
  :cloudformationResource: AWS::SNS::Subscription
@@ -555,7 +555,7 @@ class CfnSubscription(
555
555
  :param raw_message_delivery: When set to ``true`` , enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints. For more information, see ``[GetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html)`` in the *Amazon SNS API Reference* .
556
556
  :param redrive_policy: When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing. For more information about the redrive policy and dead-letter queues, see `Amazon SQS dead-letter queues <https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html>`_ in the *Amazon SQS Developer Guide* .
557
557
  :param region: For cross-region subscriptions, the region in which the topic resides. If no region is specified, AWS CloudFormation uses the region of the caller as the default. If you perform an update operation that only updates the ``Region`` property of a ``AWS::SNS::Subscription`` resource, that operation will fail unless you are either: - Updating the ``Region`` from ``NULL`` to the caller region. - Updating the ``Region`` from the caller region to ``NULL`` .
558
- :param replay_policy:
558
+ :param replay_policy: Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
559
559
  :param subscription_role_arn: This property applies only to Amazon Data Firehose delivery stream subscriptions. Specify the ARN of the IAM role that has the following: - Permission to write to the Amazon Data Firehose delivery stream - Amazon SNS listed as a trusted entity Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see `Fanout to Amazon Data Firehose delivery streams <https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html>`_ in the *Amazon SNS Developer Guide.*
560
560
  '''
561
561
  if __debug__:
@@ -746,6 +746,7 @@ class CfnSubscription(
746
746
  @builtins.property
747
747
  @jsii.member(jsii_name="replayPolicy")
748
748
  def replay_policy(self) -> typing.Any:
749
+ '''Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.'''
749
750
  return typing.cast(typing.Any, jsii.get(self, "replayPolicy"))
750
751
 
751
752
  @replay_policy.setter
@@ -813,7 +814,7 @@ class CfnSubscriptionProps:
813
814
  :param raw_message_delivery: When set to ``true`` , enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints. For more information, see ``[GetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html)`` in the *Amazon SNS API Reference* .
814
815
  :param redrive_policy: When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing. For more information about the redrive policy and dead-letter queues, see `Amazon SQS dead-letter queues <https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html>`_ in the *Amazon SQS Developer Guide* .
815
816
  :param region: For cross-region subscriptions, the region in which the topic resides. If no region is specified, AWS CloudFormation uses the region of the caller as the default. If you perform an update operation that only updates the ``Region`` property of a ``AWS::SNS::Subscription`` resource, that operation will fail unless you are either: - Updating the ``Region`` from ``NULL`` to the caller region. - Updating the ``Region`` from the caller region to ``NULL`` .
816
- :param replay_policy:
817
+ :param replay_policy: Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
817
818
  :param subscription_role_arn: This property applies only to Amazon Data Firehose delivery stream subscriptions. Specify the ARN of the IAM role that has the following: - Permission to write to the Amazon Data Firehose delivery stream - Amazon SNS listed as a trusted entity Specifying a valid ARN for this attribute is required for Firehose delivery stream subscriptions. For more information, see `Fanout to Amazon Data Firehose delivery streams <https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html>`_ in the *Amazon SNS Developer Guide.*
818
819
 
819
820
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html
@@ -993,7 +994,8 @@ class CfnSubscriptionProps:
993
994
 
994
995
  @builtins.property
995
996
  def replay_policy(self) -> typing.Any:
996
- '''
997
+ '''Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
998
+
997
999
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-replaypolicy
998
1000
  '''
999
1001
  result = self._values.get("replay_policy")
@@ -806,7 +806,7 @@ class CfnQueuePolicy(
806
806
  :param scope: Scope in which this resource is defined.
807
807
  :param id: Construct identifier for this resource (unique in its scope).
808
808
  :param policy_document: A policy document that contains the permissions for the specified Amazon SQS queues. For more information about Amazon SQS policies, see `Using custom policies with the Amazon SQS access policy language <https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html>`_ in the *Amazon SQS Developer Guide* .
809
- :param queues: The URLs of the queues to which you want to add the policy. You can use the ``[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)`` function to specify an ``[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)`` resource.
809
+ :param queues: The URLs of the queues to which you want to add the policy. You can use the ``[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)`` function to specify an ``[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)`` resource.
810
810
  '''
811
811
  if __debug__:
812
812
  type_hints = typing.get_type_hints(_typecheckingstub__cf0938ca02c83217053a748eaced04a040ecea55f727e4a44ff3eff90a9ea987)
@@ -902,7 +902,7 @@ class CfnQueuePolicyProps:
902
902
  '''Properties for defining a ``CfnQueuePolicy``.
903
903
 
904
904
  :param policy_document: A policy document that contains the permissions for the specified Amazon SQS queues. For more information about Amazon SQS policies, see `Using custom policies with the Amazon SQS access policy language <https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html>`_ in the *Amazon SQS Developer Guide* .
905
- :param queues: The URLs of the queues to which you want to add the policy. You can use the ``[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)`` function to specify an ``[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)`` resource.
905
+ :param queues: The URLs of the queues to which you want to add the policy. You can use the ``[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)`` function to specify an ``[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)`` resource.
906
906
 
907
907
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html
908
908
  :exampleMetadata: fixture=_generated
@@ -945,7 +945,7 @@ class CfnQueuePolicyProps:
945
945
  def queues(self) -> typing.List[builtins.str]:
946
946
  '''The URLs of the queues to which you want to add the policy.
947
947
 
948
- You can use the ``[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)`` function to specify an ``[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)`` resource.
948
+ You can use the ``[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)`` function to specify an ``[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)`` resource.
949
949
 
950
950
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues
951
951
  '''
@@ -592,6 +592,21 @@ distributed_map = sfn.DistributedMap(self, "Distributed Map State",
592
592
  distributed_map.item_processor(sfn.Pass(self, "Pass State"))
593
593
  ```
594
594
 
595
+ If you want to specify the execution type for the ItemProcessor in the DistributedMap, you must set the `mapExecutionType` property in the `DistributedMap` class. When using the `DistributedMap` class, the `ProcessorConfig.executionType` property is ignored.
596
+
597
+ In the following example, the execution type for the ItemProcessor in the DistributedMap is set to `EXPRESS` based on the value specified for `mapExecutionType`.
598
+
599
+ ```python
600
+ distributed_map = sfn.DistributedMap(self, "DistributedMap",
601
+ map_execution_type=sfn.StateMachineType.EXPRESS
602
+ )
603
+
604
+ distributed_map.item_processor(sfn.Pass(self, "Pass"),
605
+ mode=sfn.ProcessorMode.DISTRIBUTED,
606
+ execution_type=sfn.ProcessorType.STANDARD
607
+ )
608
+ ```
609
+
595
610
  ### Custom State
596
611
 
597
612
  It's possible that the high-level constructs for the states or `stepfunctions-tasks` do not have
@@ -8184,8 +8199,8 @@ class ProcessorConfig:
8184
8199
  ) -> None:
8185
8200
  '''Specifies the configuration for the processor Map state.
8186
8201
 
8187
- :param execution_type: Specifies the execution type for the Map workflow. You must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. Default: - no execution type
8188
- :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE
8202
+ :param execution_type: Specifies the execution type for the Map workflow. If you use the ``Map`` class, you must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. If you use the ``DistributedMap`` class, this property is ignored. Use the ``mapExecutionType`` in the ``DistributedMap`` class instead. Default: - no execution type
8203
+ :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE if using the ``Map`` class, ProcessorMode.DISTRIBUTED if using the ``DistributedMap`` class
8189
8204
 
8190
8205
  :exampleMetadata: infused
8191
8206
 
@@ -8219,7 +8234,10 @@ class ProcessorConfig:
8219
8234
  def execution_type(self) -> typing.Optional["ProcessorType"]:
8220
8235
  '''Specifies the execution type for the Map workflow.
8221
8236
 
8222
- You must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field.
8237
+ If you use the ``Map`` class, you must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field.
8238
+
8239
+ If you use the ``DistributedMap`` class, this property is ignored.
8240
+ Use the ``mapExecutionType`` in the ``DistributedMap`` class instead.
8223
8241
 
8224
8242
  :default: - no execution type
8225
8243
  '''
@@ -8230,7 +8248,7 @@ class ProcessorConfig:
8230
8248
  def mode(self) -> typing.Optional["ProcessorMode"]:
8231
8249
  '''Specifies the execution mode for the Map workflow.
8232
8250
 
8233
- :default: - ProcessorMode.INLINE
8251
+ :default: - ProcessorMode.INLINE if using the ``Map`` class, ProcessorMode.DISTRIBUTED if using the ``DistributedMap`` class
8234
8252
  '''
8235
8253
  result = self._values.get("mode")
8236
8254
  return typing.cast(typing.Optional["ProcessorMode"], result)
@@ -9621,8 +9639,8 @@ class State(
9621
9639
  '''Add a item processor to this state.
9622
9640
 
9623
9641
  :param processor: -
9624
- :param execution_type: Specifies the execution type for the Map workflow. You must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. Default: - no execution type
9625
- :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE
9642
+ :param execution_type: Specifies the execution type for the Map workflow. If you use the ``Map`` class, you must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. If you use the ``DistributedMap`` class, this property is ignored. Use the ``mapExecutionType`` in the ``DistributedMap`` class instead. Default: - no execution type
9643
+ :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE if using the ``Map`` class, ProcessorMode.DISTRIBUTED if using the ``DistributedMap`` class
9626
9644
  '''
9627
9645
  if __debug__:
9628
9646
  type_hints = typing.get_type_hints(_typecheckingstub__5de90784fdeaa0fa9de5d18b85a161ebed718ee0e26df2989a66073001fcb12d)
@@ -11008,16 +11026,13 @@ class StateMachineType(enum.Enum):
11008
11026
 
11009
11027
  Example::
11010
11028
 
11011
- state_machine_definition = stepfunctions.Pass(self, "PassState")
11012
-
11013
- state_machine = stepfunctions.StateMachine(self, "StateMachine",
11014
- definition=state_machine_definition,
11015
- state_machine_type=stepfunctions.StateMachineType.EXPRESS
11029
+ distributed_map = sfn.DistributedMap(self, "DistributedMap",
11030
+ map_execution_type=sfn.StateMachineType.EXPRESS
11016
11031
  )
11017
11032
 
11018
- apigateway.StepFunctionsRestApi(self, "StepFunctionsRestApi",
11019
- deploy=True,
11020
- state_machine=state_machine
11033
+ distributed_map.item_processor(sfn.Pass(self, "Pass"),
11034
+ mode=sfn.ProcessorMode.DISTRIBUTED,
11035
+ execution_type=sfn.ProcessorType.STANDARD
11021
11036
  )
11022
11037
  '''
11023
11038
 
@@ -14266,7 +14281,7 @@ class DistributedMapProps(MapBaseProps):
14266
14281
  :param item_batcher: Specifies to process a group of items in a single child workflow execution. Default: - No itemBatcher
14267
14282
  :param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
14268
14283
  :param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
14269
- :param map_execution_type: MapExecutionType. The execution type of the distributed map state Default: StateMachineType.STANDARD
14284
+ :param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
14270
14285
  :param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
14271
14286
  :param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
14272
14287
  :param tolerated_failure_count_path: ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath
@@ -14277,11 +14292,14 @@ class DistributedMapProps(MapBaseProps):
14277
14292
 
14278
14293
  Example::
14279
14294
 
14280
- distributed_map = sfn.DistributedMap(self, "Distributed Map State",
14281
- max_concurrency=1,
14282
- items_path=sfn.JsonPath.string_at("$.inputForMap")
14295
+ distributed_map = sfn.DistributedMap(self, "DistributedMap",
14296
+ map_execution_type=sfn.StateMachineType.EXPRESS
14297
+ )
14298
+
14299
+ distributed_map.item_processor(sfn.Pass(self, "Pass"),
14300
+ mode=sfn.ProcessorMode.DISTRIBUTED,
14301
+ execution_type=sfn.ProcessorType.STANDARD
14283
14302
  )
14284
- distributed_map.item_processor(sfn.Pass(self, "Pass State"))
14285
14303
  '''
14286
14304
  if __debug__:
14287
14305
  type_hints = typing.get_type_hints(_typecheckingstub__e484af477b46c0e70f635ed9610c7183f70c2184fd7a48f091a5477df9ee3d5d)
@@ -14499,6 +14517,8 @@ class DistributedMapProps(MapBaseProps):
14499
14517
 
14500
14518
  The execution type of the distributed map state
14501
14519
 
14520
+ This property overwrites ProcessorConfig.executionType
14521
+
14502
14522
  :default: StateMachineType.STANDARD
14503
14523
  '''
14504
14524
  result = self._values.get("map_execution_type")
@@ -15165,11 +15185,14 @@ class DistributedMap(
15165
15185
 
15166
15186
  Example::
15167
15187
 
15168
- distributed_map = sfn.DistributedMap(self, "Distributed Map State",
15169
- max_concurrency=1,
15170
- items_path=sfn.JsonPath.string_at("$.inputForMap")
15188
+ distributed_map = sfn.DistributedMap(self, "DistributedMap",
15189
+ map_execution_type=sfn.StateMachineType.EXPRESS
15190
+ )
15191
+
15192
+ distributed_map.item_processor(sfn.Pass(self, "Pass"),
15193
+ mode=sfn.ProcessorMode.DISTRIBUTED,
15194
+ execution_type=sfn.ProcessorType.STANDARD
15171
15195
  )
15172
- distributed_map.item_processor(sfn.Pass(self, "Pass State"))
15173
15196
  '''
15174
15197
 
15175
15198
  def __init__(
@@ -15203,7 +15226,7 @@ class DistributedMap(
15203
15226
  :param item_batcher: Specifies to process a group of items in a single child workflow execution. Default: - No itemBatcher
15204
15227
  :param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
15205
15228
  :param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
15206
- :param map_execution_type: MapExecutionType. The execution type of the distributed map state Default: StateMachineType.STANDARD
15229
+ :param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
15207
15230
  :param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
15208
15231
  :param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
15209
15232
  :param tolerated_failure_count_path: ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath
@@ -15331,8 +15354,8 @@ class DistributedMap(
15331
15354
  A Distributed Map must have a non-empty item processor
15332
15355
 
15333
15356
  :param processor: -
15334
- :param execution_type: Specifies the execution type for the Map workflow. You must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. Default: - no execution type
15335
- :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE
15357
+ :param execution_type: Specifies the execution type for the Map workflow. If you use the ``Map`` class, you must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. If you use the ``DistributedMap`` class, this property is ignored. Use the ``mapExecutionType`` in the ``DistributedMap`` class instead. Default: - no execution type
15358
+ :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE if using the ``Map`` class, ProcessorMode.DISTRIBUTED if using the ``DistributedMap`` class
15336
15359
  '''
15337
15360
  if __debug__:
15338
15361
  type_hints = typing.get_type_hints(_typecheckingstub__f10278e982625ca06b2d3266813a2418de02709637602f80e07445047d125579)
@@ -15529,8 +15552,8 @@ class Map(
15529
15552
  A Map must either have a non-empty iterator or a non-empty item processor (mutually exclusive with ``iterator``).
15530
15553
 
15531
15554
  :param processor: -
15532
- :param execution_type: Specifies the execution type for the Map workflow. You must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. Default: - no execution type
15533
- :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE
15555
+ :param execution_type: Specifies the execution type for the Map workflow. If you use the ``Map`` class, you must provide this field if you specified ``DISTRIBUTED`` for the ``mode`` sub-field. If you use the ``DistributedMap`` class, this property is ignored. Use the ``mapExecutionType`` in the ``DistributedMap`` class instead. Default: - no execution type
15556
+ :param mode: Specifies the execution mode for the Map workflow. Default: - ProcessorMode.INLINE if using the ``Map`` class, ProcessorMode.DISTRIBUTED if using the ``DistributedMap`` class
15534
15557
  '''
15535
15558
  if __debug__:
15536
15559
  type_hints = typing.get_type_hints(_typecheckingstub__57880144217f818052832dac038a8875120f8ef30f1d286864bba6785bb1afd5)