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.
- aws_cdk/__init__.py +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.137.0.jsii.tgz → aws-cdk-lib@2.138.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +29 -113
- aws_cdk/aws_appconfig/__init__.py +26 -33
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appsync/__init__.py +400 -13
- aws_cdk/aws_aps/__init__.py +64 -47
- aws_cdk/aws_b2bi/__init__.py +2 -6
- aws_cdk/aws_backup/__init__.py +27 -23
- aws_cdk/aws_batch/__init__.py +103 -0
- aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
- aws_cdk/aws_chatbot/__init__.py +6 -4
- aws_cdk/aws_cleanrooms/__init__.py +526 -3
- aws_cdk/aws_cleanroomsml/__init__.py +960 -0
- aws_cdk/aws_cloudtrail/__init__.py +10 -10
- aws_cdk/aws_cloudwatch/__init__.py +124 -8
- aws_cdk/aws_codebuild/__init__.py +27 -22
- aws_cdk/aws_codeconnections/__init__.py +435 -0
- aws_cdk/aws_cognito/__init__.py +175 -79
- aws_cdk/aws_deadline/__init__.py +5394 -0
- aws_cdk/aws_ec2/__init__.py +279 -163
- aws_cdk/aws_ecs/__init__.py +240 -1
- aws_cdk/aws_efs/__init__.py +2 -2
- aws_cdk/aws_elasticache/__init__.py +86 -32
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +52 -2
- aws_cdk/aws_emr/__init__.py +2 -2
- aws_cdk/aws_entityresolution/__init__.py +1982 -773
- aws_cdk/aws_globalaccelerator/__init__.py +443 -0
- aws_cdk/aws_iam/__init__.py +1 -2
- aws_cdk/aws_internetmonitor/__init__.py +14 -6
- aws_cdk/aws_ivs/__init__.py +1273 -71
- aws_cdk/aws_mediatailor/__init__.py +41 -0
- aws_cdk/aws_personalize/__init__.py +8 -6
- aws_cdk/aws_pinpoint/__init__.py +5 -3
- aws_cdk/aws_pipes/__init__.py +5 -1
- aws_cdk/aws_quicksight/__init__.py +12 -6
- aws_cdk/aws_rds/__init__.py +355 -85
- aws_cdk/aws_route53/__init__.py +587 -14
- aws_cdk/aws_sagemaker/__init__.py +233 -2
- aws_cdk/aws_securityhub/__init__.py +4940 -102
- aws_cdk/aws_securitylake/__init__.py +1237 -55
- aws_cdk/aws_sns/__init__.py +61 -4
- aws_cdk/aws_ssmcontacts/__init__.py +11 -4
- aws_cdk/aws_stepfunctions/__init__.py +8 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
- aws_cdk/aws_transfer/__init__.py +4 -4
- aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
- aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
- aws_cdk/custom_resources/__init__.py +248 -26
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/RECORD +56 -52
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.138.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_sns/__init__.py
CHANGED
|
@@ -323,6 +323,23 @@ topic = sns.Topic(self, "MyTopic",
|
|
|
323
323
|
```
|
|
324
324
|
|
|
325
325
|
**Note**: The `messageRetentionPeriodInDays` property is only available for FIFO topics.
|
|
326
|
+
|
|
327
|
+
## TracingConfig
|
|
328
|
+
|
|
329
|
+
Tracing mode of an Amazon SNS topic.
|
|
330
|
+
|
|
331
|
+
If PassThrough, the topic passes trace headers received from the Amazon SNS publisher to its subscription.
|
|
332
|
+
If set to Active, Amazon SNS will vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true.
|
|
333
|
+
|
|
334
|
+
The default TracingConfig is `TracingConfig.PASS_THROUGH`.
|
|
335
|
+
|
|
336
|
+
Example with a tracingConfig set to Active:
|
|
337
|
+
|
|
338
|
+
```python
|
|
339
|
+
topic = sns.Topic(self, "MyTopic",
|
|
340
|
+
tracing_config=sns.TracingConfig.ACTIVE
|
|
341
|
+
)
|
|
342
|
+
```
|
|
326
343
|
'''
|
|
327
344
|
from pkgutil import extend_path
|
|
328
345
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -5167,6 +5184,7 @@ class TopicPolicyProps:
|
|
|
5167
5184
|
"message_retention_period_in_days": "messageRetentionPeriodInDays",
|
|
5168
5185
|
"signature_version": "signatureVersion",
|
|
5169
5186
|
"topic_name": "topicName",
|
|
5187
|
+
"tracing_config": "tracingConfig",
|
|
5170
5188
|
},
|
|
5171
5189
|
)
|
|
5172
5190
|
class TopicProps:
|
|
@@ -5182,6 +5200,7 @@ class TopicProps:
|
|
|
5182
5200
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
5183
5201
|
signature_version: typing.Optional[builtins.str] = None,
|
|
5184
5202
|
topic_name: typing.Optional[builtins.str] = None,
|
|
5203
|
+
tracing_config: typing.Optional["TracingConfig"] = None,
|
|
5185
5204
|
) -> None:
|
|
5186
5205
|
'''Properties for a new SNS topic.
|
|
5187
5206
|
|
|
@@ -5194,15 +5213,14 @@ class TopicProps:
|
|
|
5194
5213
|
:param message_retention_period_in_days: The number of days Amazon SNS retains messages. It can only be set for FIFO topics. Default: - do not archive messages
|
|
5195
5214
|
:param signature_version: The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. Default: 1
|
|
5196
5215
|
:param topic_name: A name for the topic. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type. Default: Generated name
|
|
5216
|
+
:param tracing_config: Tracing mode of an Amazon SNS topic. Default: TracingConfig.PASS_THROUGH
|
|
5197
5217
|
|
|
5198
5218
|
:exampleMetadata: infused
|
|
5199
5219
|
|
|
5200
5220
|
Example::
|
|
5201
5221
|
|
|
5202
|
-
topic = sns.Topic(self, "
|
|
5203
|
-
|
|
5204
|
-
display_name="Customer subscription topic",
|
|
5205
|
-
fifo=True
|
|
5222
|
+
topic = sns.Topic(self, "MyTopic",
|
|
5223
|
+
tracing_config=sns.TracingConfig.ACTIVE
|
|
5206
5224
|
)
|
|
5207
5225
|
'''
|
|
5208
5226
|
if __debug__:
|
|
@@ -5216,6 +5234,7 @@ class TopicProps:
|
|
|
5216
5234
|
check_type(argname="argument message_retention_period_in_days", value=message_retention_period_in_days, expected_type=type_hints["message_retention_period_in_days"])
|
|
5217
5235
|
check_type(argname="argument signature_version", value=signature_version, expected_type=type_hints["signature_version"])
|
|
5218
5236
|
check_type(argname="argument topic_name", value=topic_name, expected_type=type_hints["topic_name"])
|
|
5237
|
+
check_type(argname="argument tracing_config", value=tracing_config, expected_type=type_hints["tracing_config"])
|
|
5219
5238
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
5220
5239
|
if content_based_deduplication is not None:
|
|
5221
5240
|
self._values["content_based_deduplication"] = content_based_deduplication
|
|
@@ -5235,6 +5254,8 @@ class TopicProps:
|
|
|
5235
5254
|
self._values["signature_version"] = signature_version
|
|
5236
5255
|
if topic_name is not None:
|
|
5237
5256
|
self._values["topic_name"] = topic_name
|
|
5257
|
+
if tracing_config is not None:
|
|
5258
|
+
self._values["tracing_config"] = tracing_config
|
|
5238
5259
|
|
|
5239
5260
|
@builtins.property
|
|
5240
5261
|
def content_based_deduplication(self) -> typing.Optional[builtins.bool]:
|
|
@@ -5331,6 +5352,17 @@ class TopicProps:
|
|
|
5331
5352
|
result = self._values.get("topic_name")
|
|
5332
5353
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
5333
5354
|
|
|
5355
|
+
@builtins.property
|
|
5356
|
+
def tracing_config(self) -> typing.Optional["TracingConfig"]:
|
|
5357
|
+
'''Tracing mode of an Amazon SNS topic.
|
|
5358
|
+
|
|
5359
|
+
:default: TracingConfig.PASS_THROUGH
|
|
5360
|
+
|
|
5361
|
+
:see: https://docs.aws.amazon.com/sns/latest/dg/sns-active-tracing.html
|
|
5362
|
+
'''
|
|
5363
|
+
result = self._values.get("tracing_config")
|
|
5364
|
+
return typing.cast(typing.Optional["TracingConfig"], result)
|
|
5365
|
+
|
|
5334
5366
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5335
5367
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5336
5368
|
|
|
@@ -5602,6 +5634,25 @@ class TopicSubscriptionConfig(SubscriptionOptions):
|
|
|
5602
5634
|
)
|
|
5603
5635
|
|
|
5604
5636
|
|
|
5637
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_sns.TracingConfig")
|
|
5638
|
+
class TracingConfig(enum.Enum):
|
|
5639
|
+
'''The tracing mode of an Amazon SNS topic.
|
|
5640
|
+
|
|
5641
|
+
:exampleMetadata: infused
|
|
5642
|
+
|
|
5643
|
+
Example::
|
|
5644
|
+
|
|
5645
|
+
topic = sns.Topic(self, "MyTopic",
|
|
5646
|
+
tracing_config=sns.TracingConfig.ACTIVE
|
|
5647
|
+
)
|
|
5648
|
+
'''
|
|
5649
|
+
|
|
5650
|
+
PASS_THROUGH = "PASS_THROUGH"
|
|
5651
|
+
'''The mode that topic passes trace headers received from the Amazon SNS publisher to its subscription.'''
|
|
5652
|
+
ACTIVE = "ACTIVE"
|
|
5653
|
+
'''The mode that Amazon SNS vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true.'''
|
|
5654
|
+
|
|
5655
|
+
|
|
5605
5656
|
class Filter(
|
|
5606
5657
|
FilterOrPolicy,
|
|
5607
5658
|
metaclass=jsii.JSIIMeta,
|
|
@@ -5681,6 +5732,7 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5681
5732
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
5682
5733
|
signature_version: typing.Optional[builtins.str] = None,
|
|
5683
5734
|
topic_name: typing.Optional[builtins.str] = None,
|
|
5735
|
+
tracing_config: typing.Optional[TracingConfig] = None,
|
|
5684
5736
|
) -> None:
|
|
5685
5737
|
'''
|
|
5686
5738
|
:param scope: -
|
|
@@ -5694,6 +5746,7 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5694
5746
|
:param message_retention_period_in_days: The number of days Amazon SNS retains messages. It can only be set for FIFO topics. Default: - do not archive messages
|
|
5695
5747
|
:param signature_version: The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. Default: 1
|
|
5696
5748
|
:param topic_name: A name for the topic. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type. Default: Generated name
|
|
5749
|
+
:param tracing_config: Tracing mode of an Amazon SNS topic. Default: TracingConfig.PASS_THROUGH
|
|
5697
5750
|
'''
|
|
5698
5751
|
if __debug__:
|
|
5699
5752
|
type_hints = typing.get_type_hints(_typecheckingstub__5bf7b7a1001dc600e81a7f1c5015e367dc471dcd727360f62a7eaf6ebf762afd)
|
|
@@ -5709,6 +5762,7 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5709
5762
|
message_retention_period_in_days=message_retention_period_in_days,
|
|
5710
5763
|
signature_version=signature_version,
|
|
5711
5764
|
topic_name=topic_name,
|
|
5765
|
+
tracing_config=tracing_config,
|
|
5712
5766
|
)
|
|
5713
5767
|
|
|
5714
5768
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -5856,6 +5910,7 @@ __all__ = [
|
|
|
5856
5910
|
"TopicPolicyProps",
|
|
5857
5911
|
"TopicProps",
|
|
5858
5912
|
"TopicSubscriptionConfig",
|
|
5913
|
+
"TracingConfig",
|
|
5859
5914
|
]
|
|
5860
5915
|
|
|
5861
5916
|
publication.publish()
|
|
@@ -6450,6 +6505,7 @@ def _typecheckingstub__093960c1ab5457cc6797eb4a06c9e8fc74e41d4eaa9d0a17f00fa896d
|
|
|
6450
6505
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
6451
6506
|
signature_version: typing.Optional[builtins.str] = None,
|
|
6452
6507
|
topic_name: typing.Optional[builtins.str] = None,
|
|
6508
|
+
tracing_config: typing.Optional[TracingConfig] = None,
|
|
6453
6509
|
) -> None:
|
|
6454
6510
|
"""Type checking stubs"""
|
|
6455
6511
|
pass
|
|
@@ -6490,6 +6546,7 @@ def _typecheckingstub__5bf7b7a1001dc600e81a7f1c5015e367dc471dcd727360f62a7eaf6eb
|
|
|
6490
6546
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
6491
6547
|
signature_version: typing.Optional[builtins.str] = None,
|
|
6492
6548
|
topic_name: typing.Optional[builtins.str] = None,
|
|
6549
|
+
tracing_config: typing.Optional[TracingConfig] = None,
|
|
6493
6550
|
) -> None:
|
|
6494
6551
|
"""Type checking stubs"""
|
|
6495
6552
|
pass
|
|
@@ -1652,11 +1652,11 @@ class CfnRotation(
|
|
|
1652
1652
|
'''
|
|
1653
1653
|
:param scope: Scope in which this resource is defined.
|
|
1654
1654
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
1655
|
-
:param contact_ids: The Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
|
|
1655
|
+
:param contact_ids: The Amazon Resource Names (ARNs) of the contacts to add to the rotation. .. epigraph:: Only the ``PERSONAL`` contact type is supported. The contact types ``ESCALATION`` and ``ONCALL_SCHEDULE`` are not supported for this operation. The order in which you list the contacts is their shift order in the rotation schedule.
|
|
1656
1656
|
:param name: The name for the rotation.
|
|
1657
1657
|
:param recurrence: Information about the rule that specifies when shift team members rotate.
|
|
1658
1658
|
:param start_time: The date and time the rotation goes into effect.
|
|
1659
|
-
:param time_zone_id: The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the `Time Zone Database <https://docs.aws.amazon.com/https://www.iana.org/time-zones>`_ on the IANA website.
|
|
1659
|
+
:param time_zone_id: The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the `Time Zone Database <https://docs.aws.amazon.com/https://www.iana.org/time-zones>`_ on the IANA website. .. epigraph:: Designators for time zones that don’t support Daylight Savings Time rules, such as Pacific Standard Time (PST), are not supported.
|
|
1660
1660
|
:param tags: Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see `Tagging Incident Manager resources <https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html>`_ in the *Incident Manager User Guide* .
|
|
1661
1661
|
'''
|
|
1662
1662
|
if __debug__:
|
|
@@ -2277,11 +2277,11 @@ class CfnRotationProps:
|
|
|
2277
2277
|
) -> None:
|
|
2278
2278
|
'''Properties for defining a ``CfnRotation``.
|
|
2279
2279
|
|
|
2280
|
-
:param contact_ids: The Amazon Resource Names (ARNs) of the contacts to add to the rotation. The order in which you list the contacts is their shift order in the rotation schedule.
|
|
2280
|
+
:param contact_ids: The Amazon Resource Names (ARNs) of the contacts to add to the rotation. .. epigraph:: Only the ``PERSONAL`` contact type is supported. The contact types ``ESCALATION`` and ``ONCALL_SCHEDULE`` are not supported for this operation. The order in which you list the contacts is their shift order in the rotation schedule.
|
|
2281
2281
|
:param name: The name for the rotation.
|
|
2282
2282
|
:param recurrence: Information about the rule that specifies when shift team members rotate.
|
|
2283
2283
|
:param start_time: The date and time the rotation goes into effect.
|
|
2284
|
-
:param time_zone_id: The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the `Time Zone Database <https://docs.aws.amazon.com/https://www.iana.org/time-zones>`_ on the IANA website.
|
|
2284
|
+
:param time_zone_id: The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the `Time Zone Database <https://docs.aws.amazon.com/https://www.iana.org/time-zones>`_ on the IANA website. .. epigraph:: Designators for time zones that don’t support Daylight Savings Time rules, such as Pacific Standard Time (PST), are not supported.
|
|
2285
2285
|
:param tags: Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see `Tagging Incident Manager resources <https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html>`_ in the *Incident Manager User Guide* .
|
|
2286
2286
|
|
|
2287
2287
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-rotation.html
|
|
@@ -2350,6 +2350,10 @@ class CfnRotationProps:
|
|
|
2350
2350
|
def contact_ids(self) -> typing.List[builtins.str]:
|
|
2351
2351
|
'''The Amazon Resource Names (ARNs) of the contacts to add to the rotation.
|
|
2352
2352
|
|
|
2353
|
+
.. epigraph::
|
|
2354
|
+
|
|
2355
|
+
Only the ``PERSONAL`` contact type is supported. The contact types ``ESCALATION`` and ``ONCALL_SCHEDULE`` are not supported for this operation.
|
|
2356
|
+
|
|
2353
2357
|
The order in which you list the contacts is their shift order in the rotation schedule.
|
|
2354
2358
|
|
|
2355
2359
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-rotation.html#cfn-ssmcontacts-rotation-contactids
|
|
@@ -2395,6 +2399,9 @@ class CfnRotationProps:
|
|
|
2395
2399
|
'''The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format.
|
|
2396
2400
|
|
|
2397
2401
|
For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the `Time Zone Database <https://docs.aws.amazon.com/https://www.iana.org/time-zones>`_ on the IANA website.
|
|
2402
|
+
.. epigraph::
|
|
2403
|
+
|
|
2404
|
+
Designators for time zones that don’t support Daylight Savings Time rules, such as Pacific Standard Time (PST), are not supported.
|
|
2398
2405
|
|
|
2399
2406
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-rotation.html#cfn-ssmcontacts-rotation-timezoneid
|
|
2400
2407
|
'''
|
|
@@ -11645,23 +11645,15 @@ class TaskInput(
|
|
|
11645
11645
|
|
|
11646
11646
|
Example::
|
|
11647
11647
|
|
|
11648
|
-
|
|
11648
|
+
# fn: lambda.Function
|
|
11649
11649
|
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
"text_generation_config": {
|
|
11658
|
-
"max_token_count": 100,
|
|
11659
|
-
"temperature": 1
|
|
11660
|
-
}
|
|
11661
|
-
}),
|
|
11662
|
-
result_selector={
|
|
11663
|
-
"names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
|
|
11664
|
-
}
|
|
11650
|
+
tasks.LambdaInvoke(self, "Invoke with callback",
|
|
11651
|
+
lambda_function=fn,
|
|
11652
|
+
integration_pattern=sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
|
|
11653
|
+
payload=sfn.TaskInput.from_object({
|
|
11654
|
+
"token": sfn.JsonPath.task_token,
|
|
11655
|
+
"input": sfn.JsonPath.string_at("$.someField")
|
|
11656
|
+
})
|
|
11665
11657
|
)
|
|
11666
11658
|
'''
|
|
11667
11659
|
|