Class CfnEventBus.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBus>
- Enclosing class:
CfnEventBus
CfnEventBus
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnEventBus.Builder
deadLetterConfig
(IResolvable deadLetterConfig) Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).deadLetterConfig
(CfnEventBus.DeadLetterConfigProperty deadLetterConfig) Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).description
(String description) The event bus description.eventSourceName
(String eventSourceName) If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.kmsKeyIdentifier
(String kmsKeyIdentifier) The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus.The name of the new event bus.The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.Tags to associate with the event bus.
-
Method Details
-
create
@Stability(Stable) public static CfnEventBus.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnEventBus.Builder
.
-
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.- Parameters:
name
- The name of the new event bus. This parameter is required.- Returns:
this
- See Also:
-
deadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).For more information, see Using dead-letter queues to process undelivered events in the EventBridge User Guide .
- Parameters:
deadLetterConfig
- Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ). This parameter is required.- Returns:
this
- See Also:
-
deadLetterConfig
@Stability(Stable) public CfnEventBus.Builder deadLetterConfig(CfnEventBus.DeadLetterConfigProperty deadLetterConfig) Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).For more information, see Using dead-letter queues to process undelivered events in the EventBridge User Guide .
- Parameters:
deadLetterConfig
- Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ). This parameter is required.- Returns:
this
- See Also:
-
description
The event bus description.- Parameters:
description
- The event bus description. This parameter is required.- Returns:
this
- See Also:
-
eventSourceName
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.- Parameters:
eventSourceName
- If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with. This parameter is required.- Returns:
this
- See Also:
-
kmsKeyIdentifier
The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus.The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.
If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to encrypt events on the event bus.
For more information, see Managing keys in the AWS Key Management Service Developer Guide .
Archives and schema discovery are not supported for event buses encrypted using a customer managed key. EventBridge returns an error if:
- 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. - 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. - 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.
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 in the Amazon EventBridge User Guide .
- Parameters:
kmsKeyIdentifier
- The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus. This parameter is required.- Returns:
this
- See Also:
- You call
-
policy
The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.- Parameters:
policy
- The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus. This parameter is required.- Returns:
this
- See Also:
-
tags
Tags to associate with the event bus.- Parameters:
tags
- Tags to associate with the event bus. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventBus>
- Returns:
- a newly built instance of
CfnEventBus
.
-