Interface CfnSubscriberProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSubscriberProps.Jsii$Proxy
CfnSubscriber.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eventsv2.*;
CfnSubscriberProps cfnSubscriberProps = CfnSubscriberProps.builder()
.eventBusArn("eventBusArn")
.name("name")
// the properties below are optional
.batchConfiguration(BatchConfigurationProperty.builder()
.maxBatchSize(123)
.maxBatchWindowInSeconds(123)
.build())
.description("description")
.filterConfiguration(FilterConfigurationProperty.builder()
.filters(List.of(FilterProperty.builder()
.pattern("pattern")
.scope("scope")
.build()))
// the properties below are optional
.language("language")
.build())
.logConfiguration(LogConfigurationProperty.builder()
.includePayload("includePayload")
.level("level")
.build())
.onFailureConfiguration(OnFailureConfigurationProperty.builder()
.arn("arn")
.build())
.pointInTimeConfiguration(PointInTimeConfigurationProperty.builder()
.pointType("pointType")
// the properties below are optional
.endPoint(123)
.startingPoint(123)
.build())
.resumePosition("resumePosition")
.retryPolicy(RetryPolicyProperty.builder()
.maxEventAgeInSeconds(123)
.maxRetryAttempts(123)
.retryStrategy("retryStrategy")
.build())
.startingPosition("startingPosition")
.state("state")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.transformer(TransformerProperty.builder()
.jsonataConfiguration(JsonataConfigurationProperty.builder()
.expression("expression")
.build())
.type("type")
.build())
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSubscriberPropsstatic final classAn implementation forCfnSubscriberProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSubscriberProps.Builderbuilder()default ObjectConfiguration for batching events into a single delivery.default StringA description of the subscriber.The ARN of the event bus this subscriber belongs to.default ObjectConfiguration for filtering which events are delivered to the target.default ObjectDelivery logging configuration.getName()The name of the subscriber.default ObjectThe destination for events that could not be delivered.default ObjectThe point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.default StringResume-time control, never returned by the service.default ObjectThe retry policy for failed deliveries.default StringWhere the subscriber starts reading events: LATEST starts from the newest events;default StringgetState()The run state of the subscriber.getTags()The tags assigned to the subscriber.default ObjectConfiguration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.default StringgetType()The delivery ordering mode of the subscriber.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventBusArn
The ARN of the event bus this subscriber belongs to.- See Also:
-
getName
The name of the subscriber.The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
- See Also:
-
getBatchConfiguration
Configuration for batching events into a single delivery.Returns union: either
IResolvableorCfnSubscriber.BatchConfigurationProperty- See Also:
-
getDescription
A description of the subscriber.Control characters and Unicode line separators are not allowed.
- See Also:
-
getFilterConfiguration
Configuration for filtering which events are delivered to the target.An event must match every filter to be delivered.
Returns union: either
IResolvableorCfnSubscriber.FilterConfigurationProperty- See Also:
-
getLogConfiguration
Delivery logging configuration.Returns union: either
IResolvableorCfnSubscriber.LogConfigurationProperty- See Also:
-
getOnFailureConfiguration
The destination for events that could not be delivered.Returns union: either
IResolvableorCfnSubscriber.OnFailureConfigurationProperty- See Also:
-
getPointInTimeConfiguration
The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.Returns union: either
IResolvableorCfnSubscriber.PointInTimeConfigurationProperty- See Also:
-
getResumePosition
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.
- See Also:
-
getRetryPolicy
The retry policy for failed deliveries.Returns union: either
IResolvableorCfnSubscriber.RetryPolicyProperty- See Also:
-
getStartingPosition
Where the subscriber starts reading events: LATEST starts from the newest events;POINT_IN_TIME starts from the point specified in PointInTimeConfiguration.
- See Also:
-
getState
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.
- See Also:
-
getTags
The tags assigned to the subscriber.- See Also:
-
getTransformer
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.Returns union: either
IResolvableorCfnSubscriber.TransformerProperty- See Also:
-
getType
The delivery ordering mode of the subscriber.FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.
- See Also:
-
builder
- Returns:
- a
CfnSubscriberProps.BuilderofCfnSubscriberProps
-