Class CfnSubscriber.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriber>
- Enclosing class:
CfnSubscriber
CfnSubscriber.-
Method Summary
Modifier and TypeMethodDescriptionbatchConfiguration(IResolvable batchConfiguration) Configuration for batching events into a single delivery.batchConfiguration(CfnSubscriber.BatchConfigurationProperty batchConfiguration) Configuration for batching events into a single delivery.build()static CfnSubscriber.Builderdescription(String description) A description of the subscriber.eventBusArn(String eventBusArn) The ARN of the event bus this subscriber belongs to.filterConfiguration(IResolvable filterConfiguration) Configuration for filtering which events are delivered to the target.filterConfiguration(CfnSubscriber.FilterConfigurationProperty filterConfiguration) Configuration for filtering which events are delivered to the target.logConfiguration(IResolvable logConfiguration) Delivery logging configuration.logConfiguration(CfnSubscriber.LogConfigurationProperty logConfiguration) Delivery logging configuration.The name of the subscriber.onFailureConfiguration(IResolvable onFailureConfiguration) The destination for events that could not be delivered.onFailureConfiguration(CfnSubscriber.OnFailureConfigurationProperty onFailureConfiguration) The destination for events that could not be delivered.pointInTimeConfiguration(IResolvable pointInTimeConfiguration) The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.pointInTimeConfiguration(CfnSubscriber.PointInTimeConfigurationProperty pointInTimeConfiguration) The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.resumePosition(String resumePosition) Resume-time control, never returned by the service.retryPolicy(IResolvable retryPolicy) The retry policy for failed deliveries.retryPolicy(CfnSubscriber.RetryPolicyProperty retryPolicy) The retry policy for failed deliveries.startingPosition(String startingPosition) Where the subscriber starts reading events: LATEST starts from the newest events;The run state of the subscriber.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.transformer(CfnSubscriber.TransformerProperty transformer) Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.The delivery ordering mode of the subscriber.
-
Method Details
-
create
@Stability(Stable) public static CfnSubscriber.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
CfnSubscriber.Builder.
-
eventBusArn
The ARN of the event bus this subscriber belongs to.- Parameters:
eventBusArn- The ARN of the event bus this subscriber belongs to. This parameter is required.- Returns:
this- See Also:
-
name
The name of the subscriber.The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
- Parameters:
name- The name of the subscriber. This parameter is required.- Returns:
this- See Also:
-
batchConfiguration
Configuration for batching events into a single delivery.- Parameters:
batchConfiguration- Configuration for batching events into a single delivery. This parameter is required.- Returns:
this- See Also:
-
batchConfiguration
@Stability(Stable) public CfnSubscriber.Builder batchConfiguration(CfnSubscriber.BatchConfigurationProperty batchConfiguration) Configuration for batching events into a single delivery.- Parameters:
batchConfiguration- Configuration for batching events into a single delivery. This parameter is required.- Returns:
this- See Also:
-
description
A description of the subscriber.Control characters and Unicode line separators are not allowed.
- Parameters:
description- A description of the subscriber. This parameter is required.- Returns:
this- See Also:
-
filterConfiguration
@Stability(Stable) public CfnSubscriber.Builder filterConfiguration(IResolvable filterConfiguration) Configuration for filtering which events are delivered to the target.An event must match every filter to be delivered.
- Parameters:
filterConfiguration- Configuration for filtering which events are delivered to the target. This parameter is required.- Returns:
this- See Also:
-
filterConfiguration
@Stability(Stable) public CfnSubscriber.Builder filterConfiguration(CfnSubscriber.FilterConfigurationProperty filterConfiguration) Configuration for filtering which events are delivered to the target.An event must match every filter to be delivered.
- Parameters:
filterConfiguration- Configuration for filtering which events are delivered to the target. This parameter is required.- Returns:
this- See Also:
-
logConfiguration
Delivery logging configuration.- Parameters:
logConfiguration- Delivery logging configuration. This parameter is required.- Returns:
this- See Also:
-
logConfiguration
@Stability(Stable) public CfnSubscriber.Builder logConfiguration(CfnSubscriber.LogConfigurationProperty logConfiguration) Delivery logging configuration.- Parameters:
logConfiguration- Delivery logging configuration. This parameter is required.- Returns:
this- See Also:
-
onFailureConfiguration
@Stability(Stable) public CfnSubscriber.Builder onFailureConfiguration(IResolvable onFailureConfiguration) The destination for events that could not be delivered.- Parameters:
onFailureConfiguration- The destination for events that could not be delivered. This parameter is required.- Returns:
this- See Also:
-
onFailureConfiguration
@Stability(Stable) public CfnSubscriber.Builder onFailureConfiguration(CfnSubscriber.OnFailureConfigurationProperty onFailureConfiguration) The destination for events that could not be delivered.- Parameters:
onFailureConfiguration- The destination for events that could not be delivered. This parameter is required.- Returns:
this- See Also:
-
pointInTimeConfiguration
@Stability(Stable) public CfnSubscriber.Builder pointInTimeConfiguration(IResolvable pointInTimeConfiguration) The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.- Parameters:
pointInTimeConfiguration- The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME. This parameter is required.- Returns:
this- See Also:
-
pointInTimeConfiguration
@Stability(Stable) public CfnSubscriber.Builder pointInTimeConfiguration(CfnSubscriber.PointInTimeConfigurationProperty pointInTimeConfiguration) The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.- Parameters:
pointInTimeConfiguration- The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME. This parameter is required.- Returns:
this- See Also:
-
resumePosition
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.
- Parameters:
resumePosition- Resume-time control, never returned by the service. This parameter is required.- Returns:
this- See Also:
-
retryPolicy
The retry policy for failed deliveries.- Parameters:
retryPolicy- The retry policy for failed deliveries. This parameter is required.- Returns:
this- See Also:
-
retryPolicy
@Stability(Stable) public CfnSubscriber.Builder retryPolicy(CfnSubscriber.RetryPolicyProperty retryPolicy) The retry policy for failed deliveries.- Parameters:
retryPolicy- The retry policy for failed deliveries. This parameter is required.- Returns:
this- See Also:
-
startingPosition
Where the subscriber starts reading events: LATEST starts from the newest events;POINT_IN_TIME starts from the point specified in PointInTimeConfiguration.
- Parameters:
startingPosition- Where the subscriber starts reading events: LATEST starts from the newest events;. This parameter is required.- Returns:
this- See Also:
-
state
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.
- Parameters:
state- The run state of the subscriber. This parameter is required.- Returns:
this- See Also:
-
tags
The tags assigned to the subscriber.- Parameters:
tags- The tags assigned to the subscriber. This parameter is required.- Returns:
this- See Also:
-
transformer
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.- Parameters:
transformer- Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression. This parameter is required.- Returns:
this- See Also:
-
transformer
@Stability(Stable) public CfnSubscriber.Builder transformer(CfnSubscriber.TransformerProperty transformer) Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.- Parameters:
transformer- Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression. This parameter is required.- Returns:
this- See Also:
-
type
The delivery ordering mode of the subscriber.FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.
- Parameters:
type- The delivery ordering mode of the subscriber. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriber>- Returns:
- a newly built instance of
CfnSubscriber.
-