interface CfnSubscriberProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EventsV2.CfnSubscriberProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseventsv2#CfnSubscriberProps |
Java | software.amazon.awscdk.services.eventsv2.CfnSubscriberProps |
Python | aws_cdk.aws_eventsv2.CfnSubscriberProps |
TypeScript | aws-cdk-lib » aws_eventsv2 » CfnSubscriberProps |
Properties for defining a CfnSubscriber.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eventsv2-subscriber.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const cfnSubscriberProps: eventsv2.CfnSubscriberProps = {
eventBusArn: 'eventBusArn',
name: 'name',
// the properties below are optional
batchConfiguration: {
maxBatchSize: 123,
maxBatchWindowInSeconds: 123,
},
description: 'description',
filterConfiguration: {
filters: [{
pattern: 'pattern',
scope: 'scope',
}],
// the properties below are optional
language: 'language',
},
logConfiguration: {
includePayload: 'includePayload',
level: 'level',
},
onFailureConfiguration: {
arn: 'arn',
},
pointInTimeConfiguration: {
pointType: 'pointType',
// the properties below are optional
endPoint: 123,
startingPoint: 123,
},
resumePosition: 'resumePosition',
retryPolicy: {
maxEventAgeInSeconds: 123,
maxRetryAttempts: 123,
retryStrategy: 'retryStrategy',
},
startingPosition: 'startingPosition',
state: 'state',
tags: [{
key: 'key',
value: 'value',
}],
transformer: {
jsonataConfiguration: {
expression: 'expression',
},
type: 'type',
},
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| event | string | The ARN of the event bus this subscriber belongs to. |
| name | string | The name of the subscriber. |
| batch | IResolvable | Batch | Configuration for batching events into a single delivery. |
| description? | string | A description of the subscriber. |
| filter | IResolvable | Filter | Configuration for filtering which events are delivered to the target. |
| log | IResolvable | Log | Delivery logging configuration. |
| on | IResolvable | On | The destination for events that could not be delivered. |
| point | IResolvable | Point | The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME. |
| resume | string | Resume-time control, never returned by the service. |
| retry | IResolvable | Retry | The retry policy for failed deliveries. |
| starting | string | Where the subscriber starts reading events: LATEST starts from the newest events; |
| state? | string | The run state of the subscriber. |
| tags? | Cfn[] | The tags assigned to the subscriber. |
| transformer? | IResolvable | Transformer | Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression. |
| type? | string | The delivery ordering mode of the subscriber. |
eventBusArn
Type:
string
The ARN of the event bus this subscriber belongs to.
name
Type:
string
The name of the subscriber.
The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
batchConfiguration?
Type:
IResolvable | Batch
(optional)
Configuration for batching events into a single delivery.
description?
Type:
string
(optional)
A description of the subscriber.
Control characters and Unicode line separators are not allowed.
filterConfiguration?
Type:
IResolvable | Filter
(optional)
Configuration for filtering which events are delivered to the target.
An event must match every filter to be delivered.
logConfiguration?
Type:
IResolvable | Log
(optional)
Delivery logging configuration.
onFailureConfiguration?
Type:
IResolvable | On
(optional)
The destination for events that could not be delivered.
pointInTimeConfiguration?
Type:
IResolvable | Point
(optional)
The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.
resumePosition?
Type:
string
(optional)
Resume-time control, never returned by the service.
Applied only when an update transitions State from STOPPED to RUNNING: LAST_PROCESSED (default) resumes from the last processed event, LATEST skips to the newest. Ignored on create and on any update that does not perform that transition.
retryPolicy?
Type:
IResolvable | Retry
(optional)
The retry policy for failed deliveries.
startingPosition?
Type:
string
(optional)
Where the subscriber starts reading events: LATEST starts from the newest events;
POINT_IN_TIME starts from the point specified in PointInTimeConfiguration.
state?
Type:
string
(optional)
The run state of the subscriber.
Events are delivered only while the state is RUNNING. Setting the state to STOPPED pauses delivery. When an update sets a stopped subscriber back to RUNNING, ResumePosition controls where delivery resumes.
tags?
Type:
Cfn[]
(optional)
The tags assigned to the subscriber.
transformer?
Type:
IResolvable | Transformer
(optional)
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.
type?
Type:
string
(optional)
The delivery ordering mode of the subscriber.
FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.

.NET
Go
Java
Python
TypeScript