aws-cdk-lib 2.142.0__py3-none-any.whl → 2.143.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/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.142.0.jsii.tgz → aws-cdk-lib@2.143.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +12 -5
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_batch/__init__.py +237 -0
- aws_cdk/aws_bedrock/__init__.py +700 -16
- aws_cdk/aws_budgets/__init__.py +282 -3
- aws_cdk/aws_cloudtrail/__init__.py +12 -2
- aws_cdk/aws_codebuild/__init__.py +44 -0
- aws_cdk/aws_codepipeline/__init__.py +91 -4
- aws_cdk/aws_cognito/__init__.py +75 -0
- aws_cdk/aws_datazone/__init__.py +1743 -448
- aws_cdk/aws_dynamodb/__init__.py +60 -25
- aws_cdk/aws_ec2/__init__.py +112 -39
- aws_cdk/aws_ecs/__init__.py +3 -3
- aws_cdk/aws_ecs_patterns/__init__.py +106 -0
- aws_cdk/aws_eks/__init__.py +13 -10
- aws_cdk/aws_elasticache/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +219 -14
- aws_cdk/aws_events_targets/__init__.py +140 -3
- aws_cdk/aws_fms/__init__.py +42 -43
- aws_cdk/aws_fsx/__init__.py +3 -3
- aws_cdk/aws_identitystore/__init__.py +11 -11
- aws_cdk/aws_lambda/__init__.py +45 -0
- aws_cdk/aws_lambda_nodejs/__init__.py +16 -6
- aws_cdk/aws_lightsail/__init__.py +9 -0
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_mediaconnect/__init__.py +1789 -39
- aws_cdk/aws_mediatailor/__init__.py +21 -1
- aws_cdk/aws_mwaa/__init__.py +82 -0
- aws_cdk/aws_neptune/__init__.py +374 -0
- aws_cdk/aws_personalize/__init__.py +9 -3
- aws_cdk/aws_pipes/__init__.py +7 -7
- aws_cdk/aws_quicksight/__init__.py +684 -156
- aws_cdk/aws_rds/__init__.py +88 -24
- aws_cdk/aws_redshift/__init__.py +0 -46
- aws_cdk/aws_route53resolver/__init__.py +23 -0
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_sagemaker/__init__.py +185 -4
- aws_cdk/aws_securityhub/__init__.py +387 -1
- aws_cdk/aws_ssm/__init__.py +14 -6
- aws_cdk/aws_sso/__init__.py +1243 -34
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.142.0.dist-info → aws_cdk_lib-2.143.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_events/__init__.py
CHANGED
|
@@ -1167,6 +1167,15 @@ class CfnArchive(
|
|
|
1167
1167
|
'''Creates an archive of events with the specified settings.
|
|
1168
1168
|
|
|
1169
1169
|
When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an archive.
|
|
1170
|
+
.. epigraph::
|
|
1171
|
+
|
|
1172
|
+
Archives and schema discovery are not supported for event buses encrypted using a customer managed key. EventBridge returns an error if:
|
|
1173
|
+
|
|
1174
|
+
- You call ``[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)`` on an event bus set to use a customer managed key for encryption.
|
|
1175
|
+
- You call ``[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)`` on an event bus set to use a customer managed key for encryption.
|
|
1176
|
+
- You call ``[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)`` to set a customer managed key on an event bus with an archives or schema discovery enabled.
|
|
1177
|
+
|
|
1178
|
+
To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For more information, see `Data encryption in EventBridge <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html>`_ in the *Amazon EventBridge User Guide* .
|
|
1170
1179
|
|
|
1171
1180
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-archive.html
|
|
1172
1181
|
:cloudformationResource: AWS::Events::Archive
|
|
@@ -2616,7 +2625,7 @@ class CfnEndpoint(
|
|
|
2616
2625
|
):
|
|
2617
2626
|
'''A global endpoint used to improve your application's availability by making it regional-fault tolerant.
|
|
2618
2627
|
|
|
2619
|
-
For more information about global endpoints, see `Making applications Regional-fault tolerant with global endpoints and event replication <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-global-endpoints.html>`_ in the
|
|
2628
|
+
For more information about global endpoints, see `Making applications Regional-fault tolerant with global endpoints and event replication <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-global-endpoints.html>`_ in the **Amazon EventBridge User Guide** .
|
|
2620
2629
|
|
|
2621
2630
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-endpoint.html
|
|
2622
2631
|
:cloudformationResource: AWS::Events::Endpoint
|
|
@@ -3413,7 +3422,12 @@ class CfnEventBus(
|
|
|
3413
3422
|
name="name",
|
|
3414
3423
|
|
|
3415
3424
|
# the properties below are optional
|
|
3425
|
+
dead_letter_config=events.CfnEventBus.DeadLetterConfigProperty(
|
|
3426
|
+
arn="arn"
|
|
3427
|
+
),
|
|
3428
|
+
description="description",
|
|
3416
3429
|
event_source_name="eventSourceName",
|
|
3430
|
+
kms_key_identifier="kmsKeyIdentifier",
|
|
3417
3431
|
policy=policy,
|
|
3418
3432
|
tags=[CfnTag(
|
|
3419
3433
|
key="key",
|
|
@@ -3428,7 +3442,10 @@ class CfnEventBus(
|
|
|
3428
3442
|
id: builtins.str,
|
|
3429
3443
|
*,
|
|
3430
3444
|
name: builtins.str,
|
|
3445
|
+
dead_letter_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventBus.DeadLetterConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3446
|
+
description: typing.Optional[builtins.str] = None,
|
|
3431
3447
|
event_source_name: typing.Optional[builtins.str] = None,
|
|
3448
|
+
kms_key_identifier: typing.Optional[builtins.str] = None,
|
|
3432
3449
|
policy: typing.Any = None,
|
|
3433
3450
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3434
3451
|
) -> None:
|
|
@@ -3436,7 +3453,10 @@ class CfnEventBus(
|
|
|
3436
3453
|
:param scope: Scope in which this resource is defined.
|
|
3437
3454
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
3438
3455
|
:param name: The name of the new event bus. Custom event bus names can't contain the ``/`` character, but you can use the ``/`` character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to. You can't use the name ``default`` for a custom event bus, as this name is already used for your account's default event bus.
|
|
3456
|
+
:param dead_letter_config: Dead Letter Queue for the event bus.
|
|
3457
|
+
:param description: The description of the event bus.
|
|
3439
3458
|
:param event_source_name: If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
|
|
3459
|
+
:param kms_key_identifier: Kms Key Identifier used to encrypt events at rest in the event bus.
|
|
3440
3460
|
:param policy: The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.
|
|
3441
3461
|
:param tags: Tags to associate with the event bus.
|
|
3442
3462
|
'''
|
|
@@ -3445,7 +3465,13 @@ class CfnEventBus(
|
|
|
3445
3465
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
3446
3466
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
3447
3467
|
props = CfnEventBusProps(
|
|
3448
|
-
name=name,
|
|
3468
|
+
name=name,
|
|
3469
|
+
dead_letter_config=dead_letter_config,
|
|
3470
|
+
description=description,
|
|
3471
|
+
event_source_name=event_source_name,
|
|
3472
|
+
kms_key_identifier=kms_key_identifier,
|
|
3473
|
+
policy=policy,
|
|
3474
|
+
tags=tags,
|
|
3449
3475
|
)
|
|
3450
3476
|
|
|
3451
3477
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -3530,6 +3556,37 @@ class CfnEventBus(
|
|
|
3530
3556
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3531
3557
|
jsii.set(self, "name", value)
|
|
3532
3558
|
|
|
3559
|
+
@builtins.property
|
|
3560
|
+
@jsii.member(jsii_name="deadLetterConfig")
|
|
3561
|
+
def dead_letter_config(
|
|
3562
|
+
self,
|
|
3563
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventBus.DeadLetterConfigProperty"]]:
|
|
3564
|
+
'''Dead Letter Queue for the event bus.'''
|
|
3565
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventBus.DeadLetterConfigProperty"]], jsii.get(self, "deadLetterConfig"))
|
|
3566
|
+
|
|
3567
|
+
@dead_letter_config.setter
|
|
3568
|
+
def dead_letter_config(
|
|
3569
|
+
self,
|
|
3570
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventBus.DeadLetterConfigProperty"]],
|
|
3571
|
+
) -> None:
|
|
3572
|
+
if __debug__:
|
|
3573
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fc97dfb9dbc0d381febd2f96730220d379dd42692f2f5998d93180f615e3faf2)
|
|
3574
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3575
|
+
jsii.set(self, "deadLetterConfig", value)
|
|
3576
|
+
|
|
3577
|
+
@builtins.property
|
|
3578
|
+
@jsii.member(jsii_name="description")
|
|
3579
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
3580
|
+
'''The description of the event bus.'''
|
|
3581
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
3582
|
+
|
|
3583
|
+
@description.setter
|
|
3584
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
3585
|
+
if __debug__:
|
|
3586
|
+
type_hints = typing.get_type_hints(_typecheckingstub__12daea1a97de9fdcc62356b01478c286131a64c32156d150d334eaa095132837)
|
|
3587
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3588
|
+
jsii.set(self, "description", value)
|
|
3589
|
+
|
|
3533
3590
|
@builtins.property
|
|
3534
3591
|
@jsii.member(jsii_name="eventSourceName")
|
|
3535
3592
|
def event_source_name(self) -> typing.Optional[builtins.str]:
|
|
@@ -3543,6 +3600,19 @@ class CfnEventBus(
|
|
|
3543
3600
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3544
3601
|
jsii.set(self, "eventSourceName", value)
|
|
3545
3602
|
|
|
3603
|
+
@builtins.property
|
|
3604
|
+
@jsii.member(jsii_name="kmsKeyIdentifier")
|
|
3605
|
+
def kms_key_identifier(self) -> typing.Optional[builtins.str]:
|
|
3606
|
+
'''Kms Key Identifier used to encrypt events at rest in the event bus.'''
|
|
3607
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "kmsKeyIdentifier"))
|
|
3608
|
+
|
|
3609
|
+
@kms_key_identifier.setter
|
|
3610
|
+
def kms_key_identifier(self, value: typing.Optional[builtins.str]) -> None:
|
|
3611
|
+
if __debug__:
|
|
3612
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1899d0d8378d7d8ade574708aa2d0221794e2fcd5f946287a6f238e594717360)
|
|
3613
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3614
|
+
jsii.set(self, "kmsKeyIdentifier", value)
|
|
3615
|
+
|
|
3546
3616
|
@builtins.property
|
|
3547
3617
|
@jsii.member(jsii_name="policy")
|
|
3548
3618
|
def policy(self) -> typing.Any:
|
|
@@ -3569,6 +3639,56 @@ class CfnEventBus(
|
|
|
3569
3639
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3570
3640
|
jsii.set(self, "tags", value)
|
|
3571
3641
|
|
|
3642
|
+
@jsii.data_type(
|
|
3643
|
+
jsii_type="aws-cdk-lib.aws_events.CfnEventBus.DeadLetterConfigProperty",
|
|
3644
|
+
jsii_struct_bases=[],
|
|
3645
|
+
name_mapping={"arn": "arn"},
|
|
3646
|
+
)
|
|
3647
|
+
class DeadLetterConfigProperty:
|
|
3648
|
+
def __init__(self, *, arn: typing.Optional[builtins.str] = None) -> None:
|
|
3649
|
+
'''Dead Letter Queue for the event bus.
|
|
3650
|
+
|
|
3651
|
+
:param arn:
|
|
3652
|
+
|
|
3653
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbus-deadletterconfig.html
|
|
3654
|
+
:exampleMetadata: fixture=_generated
|
|
3655
|
+
|
|
3656
|
+
Example::
|
|
3657
|
+
|
|
3658
|
+
# The code below shows an example of how to instantiate this type.
|
|
3659
|
+
# The values are placeholders you should change.
|
|
3660
|
+
from aws_cdk import aws_events as events
|
|
3661
|
+
|
|
3662
|
+
dead_letter_config_property = events.CfnEventBus.DeadLetterConfigProperty(
|
|
3663
|
+
arn="arn"
|
|
3664
|
+
)
|
|
3665
|
+
'''
|
|
3666
|
+
if __debug__:
|
|
3667
|
+
type_hints = typing.get_type_hints(_typecheckingstub__19cc778177531cf61ae62a46e1a008d0fb9f91cd857dc37c522f0cd73c2cda44)
|
|
3668
|
+
check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
|
|
3669
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3670
|
+
if arn is not None:
|
|
3671
|
+
self._values["arn"] = arn
|
|
3672
|
+
|
|
3673
|
+
@builtins.property
|
|
3674
|
+
def arn(self) -> typing.Optional[builtins.str]:
|
|
3675
|
+
'''
|
|
3676
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbus-deadletterconfig.html#cfn-events-eventbus-deadletterconfig-arn
|
|
3677
|
+
'''
|
|
3678
|
+
result = self._values.get("arn")
|
|
3679
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3680
|
+
|
|
3681
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3682
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3683
|
+
|
|
3684
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3685
|
+
return not (rhs == self)
|
|
3686
|
+
|
|
3687
|
+
def __repr__(self) -> str:
|
|
3688
|
+
return "DeadLetterConfigProperty(%s)" % ", ".join(
|
|
3689
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3690
|
+
)
|
|
3691
|
+
|
|
3572
3692
|
|
|
3573
3693
|
@jsii.implements(_IInspectable_c2943556)
|
|
3574
3694
|
class CfnEventBusPolicy(
|
|
@@ -3578,7 +3698,7 @@ class CfnEventBusPolicy(
|
|
|
3578
3698
|
):
|
|
3579
3699
|
'''Running ``PutPermission`` permits the specified AWS account or AWS organization to put events to the specified *event bus* .
|
|
3580
3700
|
|
|
3581
|
-
Amazon EventBridge
|
|
3701
|
+
Amazon EventBridge rules in your account are triggered by these events arriving to an event bus in your account.
|
|
3582
3702
|
|
|
3583
3703
|
For another account to send events to your account, that external account must have an EventBridge rule with your account's event bus as a target.
|
|
3584
3704
|
|
|
@@ -4048,7 +4168,10 @@ class CfnEventBusPolicyProps:
|
|
|
4048
4168
|
jsii_struct_bases=[],
|
|
4049
4169
|
name_mapping={
|
|
4050
4170
|
"name": "name",
|
|
4171
|
+
"dead_letter_config": "deadLetterConfig",
|
|
4172
|
+
"description": "description",
|
|
4051
4173
|
"event_source_name": "eventSourceName",
|
|
4174
|
+
"kms_key_identifier": "kmsKeyIdentifier",
|
|
4052
4175
|
"policy": "policy",
|
|
4053
4176
|
"tags": "tags",
|
|
4054
4177
|
},
|
|
@@ -4058,14 +4181,20 @@ class CfnEventBusProps:
|
|
|
4058
4181
|
self,
|
|
4059
4182
|
*,
|
|
4060
4183
|
name: builtins.str,
|
|
4184
|
+
dead_letter_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventBus.DeadLetterConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4185
|
+
description: typing.Optional[builtins.str] = None,
|
|
4061
4186
|
event_source_name: typing.Optional[builtins.str] = None,
|
|
4187
|
+
kms_key_identifier: typing.Optional[builtins.str] = None,
|
|
4062
4188
|
policy: typing.Any = None,
|
|
4063
4189
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4064
4190
|
) -> None:
|
|
4065
4191
|
'''Properties for defining a ``CfnEventBus``.
|
|
4066
4192
|
|
|
4067
4193
|
:param name: The name of the new event bus. Custom event bus names can't contain the ``/`` character, but you can use the ``/`` character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to. You can't use the name ``default`` for a custom event bus, as this name is already used for your account's default event bus.
|
|
4194
|
+
:param dead_letter_config: Dead Letter Queue for the event bus.
|
|
4195
|
+
:param description: The description of the event bus.
|
|
4068
4196
|
:param event_source_name: If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
|
|
4197
|
+
:param kms_key_identifier: Kms Key Identifier used to encrypt events at rest in the event bus.
|
|
4069
4198
|
:param policy: The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.
|
|
4070
4199
|
:param tags: Tags to associate with the event bus.
|
|
4071
4200
|
|
|
@@ -4084,7 +4213,12 @@ class CfnEventBusProps:
|
|
|
4084
4213
|
name="name",
|
|
4085
4214
|
|
|
4086
4215
|
# the properties below are optional
|
|
4216
|
+
dead_letter_config=events.CfnEventBus.DeadLetterConfigProperty(
|
|
4217
|
+
arn="arn"
|
|
4218
|
+
),
|
|
4219
|
+
description="description",
|
|
4087
4220
|
event_source_name="eventSourceName",
|
|
4221
|
+
kms_key_identifier="kmsKeyIdentifier",
|
|
4088
4222
|
policy=policy,
|
|
4089
4223
|
tags=[CfnTag(
|
|
4090
4224
|
key="key",
|
|
@@ -4095,14 +4229,23 @@ class CfnEventBusProps:
|
|
|
4095
4229
|
if __debug__:
|
|
4096
4230
|
type_hints = typing.get_type_hints(_typecheckingstub__79e3f734387b70ada8040490433e9e9ec9b92701ddfb55826c4adc11103c69a9)
|
|
4097
4231
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
4232
|
+
check_type(argname="argument dead_letter_config", value=dead_letter_config, expected_type=type_hints["dead_letter_config"])
|
|
4233
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
4098
4234
|
check_type(argname="argument event_source_name", value=event_source_name, expected_type=type_hints["event_source_name"])
|
|
4235
|
+
check_type(argname="argument kms_key_identifier", value=kms_key_identifier, expected_type=type_hints["kms_key_identifier"])
|
|
4099
4236
|
check_type(argname="argument policy", value=policy, expected_type=type_hints["policy"])
|
|
4100
4237
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
4101
4238
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4102
4239
|
"name": name,
|
|
4103
4240
|
}
|
|
4241
|
+
if dead_letter_config is not None:
|
|
4242
|
+
self._values["dead_letter_config"] = dead_letter_config
|
|
4243
|
+
if description is not None:
|
|
4244
|
+
self._values["description"] = description
|
|
4104
4245
|
if event_source_name is not None:
|
|
4105
4246
|
self._values["event_source_name"] = event_source_name
|
|
4247
|
+
if kms_key_identifier is not None:
|
|
4248
|
+
self._values["kms_key_identifier"] = kms_key_identifier
|
|
4106
4249
|
if policy is not None:
|
|
4107
4250
|
self._values["policy"] = policy
|
|
4108
4251
|
if tags is not None:
|
|
@@ -4122,6 +4265,26 @@ class CfnEventBusProps:
|
|
|
4122
4265
|
assert result is not None, "Required property 'name' is missing"
|
|
4123
4266
|
return typing.cast(builtins.str, result)
|
|
4124
4267
|
|
|
4268
|
+
@builtins.property
|
|
4269
|
+
def dead_letter_config(
|
|
4270
|
+
self,
|
|
4271
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventBus.DeadLetterConfigProperty]]:
|
|
4272
|
+
'''Dead Letter Queue for the event bus.
|
|
4273
|
+
|
|
4274
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig
|
|
4275
|
+
'''
|
|
4276
|
+
result = self._values.get("dead_letter_config")
|
|
4277
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventBus.DeadLetterConfigProperty]], result)
|
|
4278
|
+
|
|
4279
|
+
@builtins.property
|
|
4280
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
4281
|
+
'''The description of the event bus.
|
|
4282
|
+
|
|
4283
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description
|
|
4284
|
+
'''
|
|
4285
|
+
result = self._values.get("description")
|
|
4286
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4287
|
+
|
|
4125
4288
|
@builtins.property
|
|
4126
4289
|
def event_source_name(self) -> typing.Optional[builtins.str]:
|
|
4127
4290
|
'''If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
|
|
@@ -4131,6 +4294,15 @@ class CfnEventBusProps:
|
|
|
4131
4294
|
result = self._values.get("event_source_name")
|
|
4132
4295
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
4133
4296
|
|
|
4297
|
+
@builtins.property
|
|
4298
|
+
def kms_key_identifier(self) -> typing.Optional[builtins.str]:
|
|
4299
|
+
'''Kms Key Identifier used to encrypt events at rest in the event bus.
|
|
4300
|
+
|
|
4301
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-kmskeyidentifier
|
|
4302
|
+
'''
|
|
4303
|
+
result = self._values.get("kms_key_identifier")
|
|
4304
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4305
|
+
|
|
4134
4306
|
@builtins.property
|
|
4135
4307
|
def policy(self) -> typing.Any:
|
|
4136
4308
|
'''The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.
|
|
@@ -4350,12 +4522,12 @@ class CfnRule(
|
|
|
4350
4522
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
4351
4523
|
:param description: The description of the rule.
|
|
4352
4524
|
:param event_bus_name: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
|
|
4353
|
-
:param event_pattern: The event pattern of the rule. For more information, see `Events and Event Patterns <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html>`_ in the
|
|
4525
|
+
:param event_pattern: The event pattern of the rule. For more information, see `Events and Event Patterns <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html>`_ in the **Amazon EventBridge User Guide** .
|
|
4354
4526
|
:param name: The name of the rule.
|
|
4355
4527
|
:param role_arn: The Amazon Resource Name (ARN) of the role that is used for target invocation. If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a ``RoleArn`` with proper permissions in the ``Target`` structure, instead of here in this parameter.
|
|
4356
4528
|
:param schedule_expression: The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see `Creating an Amazon EventBridge rule that runs on a schedule <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html>`_ .
|
|
4357
|
-
:param state: The state of the rule. Valid values include: - ``DISABLED`` : The rule is disabled. EventBridge does not match any events against the rule. - ``ENABLED`` : The rule is enabled. EventBridge matches events against the rule, *except* for AWS management events delivered through CloudTrail. - ``ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS`` : The rule is enabled for all events, including AWS management events delivered through CloudTrail. Management events provide visibility into management operations that are performed on resources in your AWS account. These are also known as control plane operations. For more information, see `Logging management events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events>`_ in the *CloudTrail User Guide* , and `Filtering management events from AWS services <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail>`_ in the
|
|
4358
|
-
:param targets: Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. The maximum number of entries per request is 10. .. epigraph:: Each rule can have up to five (5) targets associated with it at one time. For a list of services you can configure as targets for events, see `EventBridge targets <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html>`_ in the
|
|
4529
|
+
:param state: The state of the rule. Valid values include: - ``DISABLED`` : The rule is disabled. EventBridge does not match any events against the rule. - ``ENABLED`` : The rule is enabled. EventBridge matches events against the rule, *except* for AWS management events delivered through CloudTrail. - ``ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS`` : The rule is enabled for all events, including AWS management events delivered through CloudTrail. Management events provide visibility into management operations that are performed on resources in your AWS account. These are also known as control plane operations. For more information, see `Logging management events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events>`_ in the *CloudTrail User Guide* , and `Filtering management events from AWS services <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail>`_ in the **Amazon EventBridge User Guide** . This value is only valid for rules on the `default <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses>`_ event bus or `custom event buses <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html>`_ . It does not apply to `partner event buses <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html>`_ .
|
|
4530
|
+
:param targets: Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. The maximum number of entries per request is 10. .. epigraph:: Each rule can have up to five (5) targets associated with it at one time. For a list of services you can configure as targets for events, see `EventBridge targets <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html>`_ in the **Amazon EventBridge User Guide** . Creating rules with built-in targets is supported only in the AWS Management Console . The built-in targets are: - ``Amazon EBS CreateSnapshot API call`` - ``Amazon EC2 RebootInstances API call`` - ``Amazon EC2 StopInstances API call`` - ``Amazon EC2 TerminateInstances API call`` For some target types, ``PutTargets`` provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the ``KinesisParameters`` argument. To invoke a command on multiple EC2 instances with one rule, you can use the ``RunCommandParameters`` field. To be able to make API calls against the resources that you own, Amazon EventBridge needs the appropriate permissions: - For AWS Lambda and Amazon SNS resources, EventBridge relies on resource-based policies. - For EC2 instances, Kinesis Data Streams, AWS Step Functions state machines and API Gateway APIs, EventBridge relies on IAM roles that you specify in the ``RoleARN`` argument in ``PutTargets`` . For more information, see `Authentication and Access Control <https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html>`_ in the **Amazon EventBridge User Guide** . If another AWS account is in the same region and has granted you permission (using ``PutPermission`` ), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the ``Arn`` value when you run ``PutTargets`` . If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event is not charged. For more information, see `Amazon EventBridge Pricing <https://docs.aws.amazon.com/eventbridge/pricing/>`_ . .. epigraph:: ``Input`` , ``InputPath`` , and ``InputTransformer`` are not available with ``PutTarget`` if the target is an event bus of a different AWS account. If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a ``RoleArn`` with proper permissions in the ``Target`` structure. For more information, see `Sending and Receiving Events Between AWS Accounts <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html>`_ in the *Amazon EventBridge User Guide* . .. epigraph:: If you have an IAM role on a cross-account event bus target, a ``PutTargets`` call without a role on the same target (same ``Id`` and ``Arn`` ) will not remove the role. For more information about enabling cross-account events, see `PutPermission <https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html>`_ . *Input* , *InputPath* , and *InputTransformer* are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event: - If none of the following arguments are specified for a target, then the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target). - If *Input* is specified in the form of valid JSON, then the matched event is overridden with this constant. - If *InputPath* is specified in the form of JSONPath (for example, ``$.detail`` ), then only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed). - If *InputTransformer* is specified, then one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target. When you specify ``InputPath`` or ``InputTransformer`` , you must use JSON dot notation, not bracket notation. When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect. This action can partially fail if too many requests are made at the same time. If that happens, ``FailedEntryCount`` is non-zero in the response and each entry in ``FailedEntries`` provides the ID of the failed target and the error code.
|
|
4359
4531
|
'''
|
|
4360
4532
|
if __debug__:
|
|
4361
4533
|
type_hints = typing.get_type_hints(_typecheckingstub__e06314755e55e41a2976ff974daa36bbbb473330c92c9fef111b716f2fe49cce)
|
|
@@ -5018,7 +5190,9 @@ class CfnRule(
|
|
|
5018
5190
|
)
|
|
5019
5191
|
class DeadLetterConfigProperty:
|
|
5020
5192
|
def __init__(self, *, arn: typing.Optional[builtins.str] = None) -> None:
|
|
5021
|
-
'''
|
|
5193
|
+
'''Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).
|
|
5194
|
+
|
|
5195
|
+
For more information, see `Event retry policy and using dead-letter queues <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html>`_ in the *EventBridge User Guide* .
|
|
5022
5196
|
|
|
5023
5197
|
:param arn: The ARN of the SQS queue specified as the target for the dead-letter queue.
|
|
5024
5198
|
|
|
@@ -7026,12 +7200,12 @@ class CfnRuleProps:
|
|
|
7026
7200
|
|
|
7027
7201
|
:param description: The description of the rule.
|
|
7028
7202
|
:param event_bus_name: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
|
|
7029
|
-
:param event_pattern: The event pattern of the rule. For more information, see `Events and Event Patterns <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html>`_ in the
|
|
7203
|
+
:param event_pattern: The event pattern of the rule. For more information, see `Events and Event Patterns <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html>`_ in the **Amazon EventBridge User Guide** .
|
|
7030
7204
|
:param name: The name of the rule.
|
|
7031
7205
|
:param role_arn: The Amazon Resource Name (ARN) of the role that is used for target invocation. If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a ``RoleArn`` with proper permissions in the ``Target`` structure, instead of here in this parameter.
|
|
7032
7206
|
:param schedule_expression: The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see `Creating an Amazon EventBridge rule that runs on a schedule <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html>`_ .
|
|
7033
|
-
:param state: The state of the rule. Valid values include: - ``DISABLED`` : The rule is disabled. EventBridge does not match any events against the rule. - ``ENABLED`` : The rule is enabled. EventBridge matches events against the rule, *except* for AWS management events delivered through CloudTrail. - ``ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS`` : The rule is enabled for all events, including AWS management events delivered through CloudTrail. Management events provide visibility into management operations that are performed on resources in your AWS account. These are also known as control plane operations. For more information, see `Logging management events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events>`_ in the *CloudTrail User Guide* , and `Filtering management events from AWS services <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail>`_ in the
|
|
7034
|
-
:param targets: Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. The maximum number of entries per request is 10. .. epigraph:: Each rule can have up to five (5) targets associated with it at one time. For a list of services you can configure as targets for events, see `EventBridge targets <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html>`_ in the
|
|
7207
|
+
:param state: The state of the rule. Valid values include: - ``DISABLED`` : The rule is disabled. EventBridge does not match any events against the rule. - ``ENABLED`` : The rule is enabled. EventBridge matches events against the rule, *except* for AWS management events delivered through CloudTrail. - ``ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS`` : The rule is enabled for all events, including AWS management events delivered through CloudTrail. Management events provide visibility into management operations that are performed on resources in your AWS account. These are also known as control plane operations. For more information, see `Logging management events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events>`_ in the *CloudTrail User Guide* , and `Filtering management events from AWS services <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail>`_ in the **Amazon EventBridge User Guide** . This value is only valid for rules on the `default <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses>`_ event bus or `custom event buses <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html>`_ . It does not apply to `partner event buses <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html>`_ .
|
|
7208
|
+
:param targets: Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. The maximum number of entries per request is 10. .. epigraph:: Each rule can have up to five (5) targets associated with it at one time. For a list of services you can configure as targets for events, see `EventBridge targets <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html>`_ in the **Amazon EventBridge User Guide** . Creating rules with built-in targets is supported only in the AWS Management Console . The built-in targets are: - ``Amazon EBS CreateSnapshot API call`` - ``Amazon EC2 RebootInstances API call`` - ``Amazon EC2 StopInstances API call`` - ``Amazon EC2 TerminateInstances API call`` For some target types, ``PutTargets`` provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the ``KinesisParameters`` argument. To invoke a command on multiple EC2 instances with one rule, you can use the ``RunCommandParameters`` field. To be able to make API calls against the resources that you own, Amazon EventBridge needs the appropriate permissions: - For AWS Lambda and Amazon SNS resources, EventBridge relies on resource-based policies. - For EC2 instances, Kinesis Data Streams, AWS Step Functions state machines and API Gateway APIs, EventBridge relies on IAM roles that you specify in the ``RoleARN`` argument in ``PutTargets`` . For more information, see `Authentication and Access Control <https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html>`_ in the **Amazon EventBridge User Guide** . If another AWS account is in the same region and has granted you permission (using ``PutPermission`` ), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the ``Arn`` value when you run ``PutTargets`` . If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event is not charged. For more information, see `Amazon EventBridge Pricing <https://docs.aws.amazon.com/eventbridge/pricing/>`_ . .. epigraph:: ``Input`` , ``InputPath`` , and ``InputTransformer`` are not available with ``PutTarget`` if the target is an event bus of a different AWS account. If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a ``RoleArn`` with proper permissions in the ``Target`` structure. For more information, see `Sending and Receiving Events Between AWS Accounts <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html>`_ in the *Amazon EventBridge User Guide* . .. epigraph:: If you have an IAM role on a cross-account event bus target, a ``PutTargets`` call without a role on the same target (same ``Id`` and ``Arn`` ) will not remove the role. For more information about enabling cross-account events, see `PutPermission <https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html>`_ . *Input* , *InputPath* , and *InputTransformer* are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event: - If none of the following arguments are specified for a target, then the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target). - If *Input* is specified in the form of valid JSON, then the matched event is overridden with this constant. - If *InputPath* is specified in the form of JSONPath (for example, ``$.detail`` ), then only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed). - If *InputTransformer* is specified, then one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target. When you specify ``InputPath`` or ``InputTransformer`` , you must use JSON dot notation, not bracket notation. When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect. This action can partially fail if too many requests are made at the same time. If that happens, ``FailedEntryCount`` is non-zero in the response and each entry in ``FailedEntries`` provides the ID of the failed target and the error code.
|
|
7035
7209
|
|
|
7036
7210
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html
|
|
7037
7211
|
:exampleMetadata: fixture=_generated
|
|
@@ -7224,7 +7398,7 @@ class CfnRuleProps:
|
|
|
7224
7398
|
def event_pattern(self) -> typing.Any:
|
|
7225
7399
|
'''The event pattern of the rule.
|
|
7226
7400
|
|
|
7227
|
-
For more information, see `Events and Event Patterns <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html>`_ in the
|
|
7401
|
+
For more information, see `Events and Event Patterns <https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html>`_ in the **Amazon EventBridge User Guide** .
|
|
7228
7402
|
|
|
7229
7403
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern
|
|
7230
7404
|
'''
|
|
@@ -7272,7 +7446,7 @@ class CfnRuleProps:
|
|
|
7272
7446
|
- ``ENABLED`` : The rule is enabled. EventBridge matches events against the rule, *except* for AWS management events delivered through CloudTrail.
|
|
7273
7447
|
- ``ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS`` : The rule is enabled for all events, including AWS management events delivered through CloudTrail.
|
|
7274
7448
|
|
|
7275
|
-
Management events provide visibility into management operations that are performed on resources in your AWS account. These are also known as control plane operations. For more information, see `Logging management events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events>`_ in the *CloudTrail User Guide* , and `Filtering management events from AWS services <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail>`_ in the
|
|
7449
|
+
Management events provide visibility into management operations that are performed on resources in your AWS account. These are also known as control plane operations. For more information, see `Logging management events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events>`_ in the *CloudTrail User Guide* , and `Filtering management events from AWS services <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail>`_ in the **Amazon EventBridge User Guide** .
|
|
7276
7450
|
|
|
7277
7451
|
This value is only valid for rules on the `default <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses>`_ event bus or `custom event buses <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html>`_ . It does not apply to `partner event buses <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html>`_ .
|
|
7278
7452
|
|
|
@@ -7294,7 +7468,7 @@ class CfnRuleProps:
|
|
|
7294
7468
|
|
|
7295
7469
|
Each rule can have up to five (5) targets associated with it at one time.
|
|
7296
7470
|
|
|
7297
|
-
For a list of services you can configure as targets for events, see `EventBridge targets <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html>`_ in the
|
|
7471
|
+
For a list of services you can configure as targets for events, see `EventBridge targets <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html>`_ in the **Amazon EventBridge User Guide** .
|
|
7298
7472
|
|
|
7299
7473
|
Creating rules with built-in targets is supported only in the AWS Management Console . The built-in targets are:
|
|
7300
7474
|
|
|
@@ -7310,7 +7484,7 @@ class CfnRuleProps:
|
|
|
7310
7484
|
- For AWS Lambda and Amazon SNS resources, EventBridge relies on resource-based policies.
|
|
7311
7485
|
- For EC2 instances, Kinesis Data Streams, AWS Step Functions state machines and API Gateway APIs, EventBridge relies on IAM roles that you specify in the ``RoleARN`` argument in ``PutTargets`` .
|
|
7312
7486
|
|
|
7313
|
-
For more information, see `Authentication and Access Control <https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html>`_ in the
|
|
7487
|
+
For more information, see `Authentication and Access Control <https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html>`_ in the **Amazon EventBridge User Guide** .
|
|
7314
7488
|
|
|
7315
7489
|
If another AWS account is in the same region and has granted you permission (using ``PutPermission`` ), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the ``Arn`` value when you run ``PutTargets`` . If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event is not charged. For more information, see `Amazon EventBridge Pricing <https://docs.aws.amazon.com/eventbridge/pricing/>`_ .
|
|
7316
7490
|
.. epigraph::
|
|
@@ -11850,7 +12024,10 @@ def _typecheckingstub__5766595a149723459145d9f55c6afa7ed3017d49f4af7cec85e0fffe2
|
|
|
11850
12024
|
id: builtins.str,
|
|
11851
12025
|
*,
|
|
11852
12026
|
name: builtins.str,
|
|
12027
|
+
dead_letter_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventBus.DeadLetterConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12028
|
+
description: typing.Optional[builtins.str] = None,
|
|
11853
12029
|
event_source_name: typing.Optional[builtins.str] = None,
|
|
12030
|
+
kms_key_identifier: typing.Optional[builtins.str] = None,
|
|
11854
12031
|
policy: typing.Any = None,
|
|
11855
12032
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11856
12033
|
) -> None:
|
|
@@ -11875,12 +12052,30 @@ def _typecheckingstub__2680ef109a97ceadd954f8fe5661198157b1e148558350afc66483501
|
|
|
11875
12052
|
"""Type checking stubs"""
|
|
11876
12053
|
pass
|
|
11877
12054
|
|
|
12055
|
+
def _typecheckingstub__fc97dfb9dbc0d381febd2f96730220d379dd42692f2f5998d93180f615e3faf2(
|
|
12056
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventBus.DeadLetterConfigProperty]],
|
|
12057
|
+
) -> None:
|
|
12058
|
+
"""Type checking stubs"""
|
|
12059
|
+
pass
|
|
12060
|
+
|
|
12061
|
+
def _typecheckingstub__12daea1a97de9fdcc62356b01478c286131a64c32156d150d334eaa095132837(
|
|
12062
|
+
value: typing.Optional[builtins.str],
|
|
12063
|
+
) -> None:
|
|
12064
|
+
"""Type checking stubs"""
|
|
12065
|
+
pass
|
|
12066
|
+
|
|
11878
12067
|
def _typecheckingstub__1c09871ed225f5073f64a2472bb4ad2653f751351d1d800cc2db527a49057b5c(
|
|
11879
12068
|
value: typing.Optional[builtins.str],
|
|
11880
12069
|
) -> None:
|
|
11881
12070
|
"""Type checking stubs"""
|
|
11882
12071
|
pass
|
|
11883
12072
|
|
|
12073
|
+
def _typecheckingstub__1899d0d8378d7d8ade574708aa2d0221794e2fcd5f946287a6f238e594717360(
|
|
12074
|
+
value: typing.Optional[builtins.str],
|
|
12075
|
+
) -> None:
|
|
12076
|
+
"""Type checking stubs"""
|
|
12077
|
+
pass
|
|
12078
|
+
|
|
11884
12079
|
def _typecheckingstub__6069dbf8a749c1a9a0cd15c07c6efbd2f70dbd4c7e3a6e98efd29bdb8c7acb24(
|
|
11885
12080
|
value: typing.Any,
|
|
11886
12081
|
) -> None:
|
|
@@ -11893,6 +12088,13 @@ def _typecheckingstub__7839bb5f17e47516f1a7287848eb4905b08ca899cd21b2544645df1f4
|
|
|
11893
12088
|
"""Type checking stubs"""
|
|
11894
12089
|
pass
|
|
11895
12090
|
|
|
12091
|
+
def _typecheckingstub__19cc778177531cf61ae62a46e1a008d0fb9f91cd857dc37c522f0cd73c2cda44(
|
|
12092
|
+
*,
|
|
12093
|
+
arn: typing.Optional[builtins.str] = None,
|
|
12094
|
+
) -> None:
|
|
12095
|
+
"""Type checking stubs"""
|
|
12096
|
+
pass
|
|
12097
|
+
|
|
11896
12098
|
def _typecheckingstub__c6df7e81a60de40e0e425694b7757e614a634ac89c7c10147ca4c807819a6b71(
|
|
11897
12099
|
scope: _constructs_77d1e7e8.Construct,
|
|
11898
12100
|
id: builtins.str,
|
|
@@ -11979,7 +12181,10 @@ def _typecheckingstub__43619a723736073ccd156eb5b7283900de3d8a1d8a66a15f291419f5b
|
|
|
11979
12181
|
def _typecheckingstub__79e3f734387b70ada8040490433e9e9ec9b92701ddfb55826c4adc11103c69a9(
|
|
11980
12182
|
*,
|
|
11981
12183
|
name: builtins.str,
|
|
12184
|
+
dead_letter_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEventBus.DeadLetterConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12185
|
+
description: typing.Optional[builtins.str] = None,
|
|
11982
12186
|
event_source_name: typing.Optional[builtins.str] = None,
|
|
12187
|
+
kms_key_identifier: typing.Optional[builtins.str] = None,
|
|
11983
12188
|
policy: typing.Any = None,
|
|
11984
12189
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11985
12190
|
) -> None:
|