Class CfnSubscriberMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnSubscriberMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriberMixinProps>
- Enclosing interface:
CfnSubscriberMixinProps
@Stability(Stable)
public static final class CfnSubscriberMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriberMixinProps>
A builder for
CfnSubscriberMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchConfiguration(CfnSubscriberPropsMixin.BatchConfigurationProperty batchConfiguration) Sets the value ofCfnSubscriberMixinProps.getBatchConfiguration()batchConfiguration(IResolvable batchConfiguration) Sets the value ofCfnSubscriberMixinProps.getBatchConfiguration()build()Builds the configured instance.description(String description) Sets the value ofCfnSubscriberMixinProps.getDescription()eventBusArn(String eventBusArn) Sets the value ofCfnSubscriberMixinProps.getEventBusArn()filterConfiguration(CfnSubscriberPropsMixin.FilterConfigurationProperty filterConfiguration) Sets the value ofCfnSubscriberMixinProps.getFilterConfiguration()filterConfiguration(IResolvable filterConfiguration) Sets the value ofCfnSubscriberMixinProps.getFilterConfiguration()logConfiguration(CfnSubscriberPropsMixin.LogConfigurationProperty logConfiguration) Sets the value ofCfnSubscriberMixinProps.getLogConfiguration()logConfiguration(IResolvable logConfiguration) Sets the value ofCfnSubscriberMixinProps.getLogConfiguration()Sets the value ofCfnSubscriberMixinProps.getName()onFailureConfiguration(CfnSubscriberPropsMixin.OnFailureConfigurationProperty onFailureConfiguration) Sets the value ofCfnSubscriberMixinProps.getOnFailureConfiguration()onFailureConfiguration(IResolvable onFailureConfiguration) Sets the value ofCfnSubscriberMixinProps.getOnFailureConfiguration()pointInTimeConfiguration(CfnSubscriberPropsMixin.PointInTimeConfigurationProperty pointInTimeConfiguration) Sets the value ofCfnSubscriberMixinProps.getPointInTimeConfiguration()pointInTimeConfiguration(IResolvable pointInTimeConfiguration) Sets the value ofCfnSubscriberMixinProps.getPointInTimeConfiguration()resumePosition(String resumePosition) Sets the value ofCfnSubscriberMixinProps.getResumePosition()retryPolicy(CfnSubscriberPropsMixin.RetryPolicyProperty retryPolicy) Sets the value ofCfnSubscriberMixinProps.getRetryPolicy()retryPolicy(IResolvable retryPolicy) Sets the value ofCfnSubscriberMixinProps.getRetryPolicy()startingPosition(String startingPosition) Sets the value ofCfnSubscriberMixinProps.getStartingPosition()Sets the value ofCfnSubscriberMixinProps.getState()Sets the value ofCfnSubscriberMixinProps.getTags()transformer(CfnSubscriberPropsMixin.TransformerProperty transformer) Sets the value ofCfnSubscriberMixinProps.getTransformer()transformer(IResolvable transformer) Sets the value ofCfnSubscriberMixinProps.getTransformer()Sets the value ofCfnSubscriberMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder batchConfiguration(IResolvable batchConfiguration) Sets the value ofCfnSubscriberMixinProps.getBatchConfiguration()- Parameters:
batchConfiguration- Configuration for batching events into a single delivery.- Returns:
this
-
batchConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder batchConfiguration(CfnSubscriberPropsMixin.BatchConfigurationProperty batchConfiguration) Sets the value ofCfnSubscriberMixinProps.getBatchConfiguration()- Parameters:
batchConfiguration- Configuration for batching events into a single delivery.- Returns:
this
-
description
Sets the value ofCfnSubscriberMixinProps.getDescription()- Parameters:
description- A description of the subscriber. Control characters and Unicode line separators are not allowed.- Returns:
this
-
eventBusArn
Sets the value ofCfnSubscriberMixinProps.getEventBusArn()- Parameters:
eventBusArn- The ARN of the event bus this subscriber belongs to.- Returns:
this
-
filterConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder filterConfiguration(IResolvable filterConfiguration) Sets the value ofCfnSubscriberMixinProps.getFilterConfiguration()- Parameters:
filterConfiguration- Configuration for filtering which events are delivered to the target. An event must match every filter to be delivered.- Returns:
this
-
filterConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder filterConfiguration(CfnSubscriberPropsMixin.FilterConfigurationProperty filterConfiguration) Sets the value ofCfnSubscriberMixinProps.getFilterConfiguration()- Parameters:
filterConfiguration- Configuration for filtering which events are delivered to the target. An event must match every filter to be delivered.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder logConfiguration(IResolvable logConfiguration) Sets the value ofCfnSubscriberMixinProps.getLogConfiguration()- Parameters:
logConfiguration- Delivery logging configuration.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder logConfiguration(CfnSubscriberPropsMixin.LogConfigurationProperty logConfiguration) Sets the value ofCfnSubscriberMixinProps.getLogConfiguration()- Parameters:
logConfiguration- Delivery logging configuration.- Returns:
this
-
name
Sets the value ofCfnSubscriberMixinProps.getName()- Parameters:
name- The name of the subscriber. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.- Returns:
this
-
onFailureConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder onFailureConfiguration(IResolvable onFailureConfiguration) Sets the value ofCfnSubscriberMixinProps.getOnFailureConfiguration()- Parameters:
onFailureConfiguration- The destination for events that could not be delivered.- Returns:
this
-
onFailureConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder onFailureConfiguration(CfnSubscriberPropsMixin.OnFailureConfigurationProperty onFailureConfiguration) Sets the value ofCfnSubscriberMixinProps.getOnFailureConfiguration()- Parameters:
onFailureConfiguration- The destination for events that could not be delivered.- Returns:
this
-
pointInTimeConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder pointInTimeConfiguration(IResolvable pointInTimeConfiguration) Sets the value ofCfnSubscriberMixinProps.getPointInTimeConfiguration()- Parameters:
pointInTimeConfiguration- The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.- Returns:
this
-
pointInTimeConfiguration
@Stability(Stable) public CfnSubscriberMixinProps.Builder pointInTimeConfiguration(CfnSubscriberPropsMixin.PointInTimeConfigurationProperty pointInTimeConfiguration) Sets the value ofCfnSubscriberMixinProps.getPointInTimeConfiguration()- Parameters:
pointInTimeConfiguration- The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.- Returns:
this
-
resumePosition
Sets the value ofCfnSubscriberMixinProps.getResumePosition()- Parameters:
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.- Returns:
this
-
retryPolicy
Sets the value ofCfnSubscriberMixinProps.getRetryPolicy()- Parameters:
retryPolicy- The retry policy for failed deliveries.- Returns:
this
-
retryPolicy
@Stability(Stable) public CfnSubscriberMixinProps.Builder retryPolicy(CfnSubscriberPropsMixin.RetryPolicyProperty retryPolicy) Sets the value ofCfnSubscriberMixinProps.getRetryPolicy()- Parameters:
retryPolicy- The retry policy for failed deliveries.- Returns:
this
-
startingPosition
Sets the value ofCfnSubscriberMixinProps.getStartingPosition()- Parameters:
startingPosition- Where the subscriber starts reading events: LATEST starts from the newest events;. POINT_IN_TIME starts from the point specified in PointInTimeConfiguration.- Returns:
this
-
state
Sets the value ofCfnSubscriberMixinProps.getState()- Parameters:
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.- Returns:
this
-
tags
Sets the value ofCfnSubscriberMixinProps.getTags()- Parameters:
tags- The tags assigned to the subscriber.- Returns:
this
-
transformer
Sets the value ofCfnSubscriberMixinProps.getTransformer()- Parameters:
transformer- Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.- Returns:
this
-
transformer
@Stability(Stable) public CfnSubscriberMixinProps.Builder transformer(CfnSubscriberPropsMixin.TransformerProperty transformer) Sets the value ofCfnSubscriberMixinProps.getTransformer()- Parameters:
transformer- Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.- Returns:
this
-
type
Sets the value ofCfnSubscriberMixinProps.getType()- Parameters:
type- The delivery ordering mode of the subscriber. FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriberMixinProps>- Returns:
- a new instance of
CfnSubscriberMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-