Class CfnEventBusProps
Properties for defining a CfnEventBus.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEventBusProps : ICfnEventBusProps
Syntax (vb)
Public Class CfnEventBusProps Implements ICfnEventBusProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events;
var policy;
var cfnEventBusProps = new CfnEventBusProps {
Name = "name",
// the properties below are optional
DeadLetterConfig = new DeadLetterConfigProperty {
Arn = "arn"
},
Description = "description",
EventSourceName = "eventSourceName",
KmsKeyIdentifier = "kmsKeyIdentifier",
LogConfig = new LogConfigProperty {
IncludeDetail = "includeDetail",
Level = "level"
},
Policy = policy,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnEventBusProps() | Properties for defining a |
Properties
| DeadLetterConfig | Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ). |
| Description | The event bus description. |
| 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 | The identifier of the AWS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus. |
| LogConfig | The logging configuration settings for the event bus. |
| Name | The name of the new event bus. |
| Policy | The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus. |
| Tags | Tags to associate with the event bus. |
Constructors
CfnEventBusProps()
Properties for defining a CfnEventBus.
public CfnEventBusProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events;
var policy;
var cfnEventBusProps = new CfnEventBusProps {
Name = "name",
// the properties below are optional
DeadLetterConfig = new DeadLetterConfigProperty {
Arn = "arn"
},
Description = "description",
EventSourceName = "eventSourceName",
KmsKeyIdentifier = "kmsKeyIdentifier",
LogConfig = new LogConfigProperty {
IncludeDetail = "includeDetail",
Level = "level"
},
Policy = policy,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).
public object? DeadLetterConfig { get; set; }
Property Value
Remarks
For more information, see Using dead-letter queues to process undelivered events in the EventBridge User Guide .
Type union: either IResolvable or CfnEventBus.IDeadLetterConfigProperty
Description
The event bus description.
public string? Description { get; set; }
Property Value
Remarks
EventSourceName
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
public string? EventSourceName { get; set; }
Property Value
Remarks
KmsKeyIdentifier
The identifier of the AWS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus.
public string? KmsKeyIdentifier { get; set; }
Property Value
Remarks
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 Identify and view keys in the AWS Key Management Service Developer Guide .
Schema discovery is not supported for event buses encrypted using a customer managed key. EventBridge returns an error if:
To enable schema discovery on an event bus, choose to use an AWS owned key . For more information, see Encrypting events in the Amazon EventBridge User Guide . > If you have specified that EventBridge use a customer managed key for encrypting the source event bus, we strongly recommend you also specify a customer managed key for any archives for the event bus as well.
For more information, see Encrypting archives in the Amazon EventBridge User Guide .
LogConfig
The logging configuration settings for the event bus.
public object? LogConfig { get; set; }
Property Value
Remarks
For more information, see Configuring logs for event buses in the EventBridge User Guide .
Type union: either IResolvable or CfnEventBus.ILogConfigProperty
Name
The name of the new event bus.
public string Name { get; set; }
Property Value
Remarks
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.
Policy
The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.
public object? Policy { get; set; }
Property Value
Remarks
Tags
Tags to associate with the event bus.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]