Class CfnSchedule.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.scheduler.CfnSchedule.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedule.TargetProperty>
- Enclosing interface:
CfnSchedule.TargetProperty
@Stability(Stable)
public static final class CfnSchedule.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedule.TargetProperty>
A builder for
CfnSchedule.TargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnSchedule.TargetProperty.getArn()build()Builds the configured instance.deadLetterConfig(IResolvable deadLetterConfig) Sets the value ofCfnSchedule.TargetProperty.getDeadLetterConfig()deadLetterConfig(CfnSchedule.DeadLetterConfigProperty deadLetterConfig) Sets the value ofCfnSchedule.TargetProperty.getDeadLetterConfig()ecsParameters(IResolvable ecsParameters) Sets the value ofCfnSchedule.TargetProperty.getEcsParameters()ecsParameters(CfnSchedule.EcsParametersProperty ecsParameters) Sets the value ofCfnSchedule.TargetProperty.getEcsParameters()eventBridgeParameters(IResolvable eventBridgeParameters) Sets the value ofCfnSchedule.TargetProperty.getEventBridgeParameters()eventBridgeParameters(CfnSchedule.EventBridgeParametersProperty eventBridgeParameters) Sets the value ofCfnSchedule.TargetProperty.getEventBridgeParameters()Sets the value ofCfnSchedule.TargetProperty.getInput()kinesisParameters(IResolvable kinesisParameters) Sets the value ofCfnSchedule.TargetProperty.getKinesisParameters()kinesisParameters(CfnSchedule.KinesisParametersProperty kinesisParameters) Sets the value ofCfnSchedule.TargetProperty.getKinesisParameters()retryPolicy(IResolvable retryPolicy) Sets the value ofCfnSchedule.TargetProperty.getRetryPolicy()retryPolicy(CfnSchedule.RetryPolicyProperty retryPolicy) Sets the value ofCfnSchedule.TargetProperty.getRetryPolicy()Sets the value ofCfnSchedule.TargetProperty.getRoleArn()sageMakerPipelineParameters(IResolvable sageMakerPipelineParameters) Sets the value ofCfnSchedule.TargetProperty.getSageMakerPipelineParameters()sageMakerPipelineParameters(CfnSchedule.SageMakerPipelineParametersProperty sageMakerPipelineParameters) Sets the value ofCfnSchedule.TargetProperty.getSageMakerPipelineParameters()sqsParameters(IResolvable sqsParameters) Sets the value ofCfnSchedule.TargetProperty.getSqsParameters()sqsParameters(CfnSchedule.SqsParametersProperty sqsParameters) Sets the value ofCfnSchedule.TargetProperty.getSqsParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnSchedule.TargetProperty.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the target. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnSchedule.TargetProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked. This parameter is required.- Returns:
this
-
deadLetterConfig
@Stability(Stable) public CfnSchedule.TargetProperty.Builder deadLetterConfig(IResolvable deadLetterConfig) Sets the value ofCfnSchedule.TargetProperty.getDeadLetterConfig()- Parameters:
deadLetterConfig- An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue.- Returns:
this
-
deadLetterConfig
@Stability(Stable) public CfnSchedule.TargetProperty.Builder deadLetterConfig(CfnSchedule.DeadLetterConfigProperty deadLetterConfig) Sets the value ofCfnSchedule.TargetProperty.getDeadLetterConfig()- Parameters:
deadLetterConfig- An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue.- Returns:
this
-
ecsParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder ecsParameters(IResolvable ecsParameters) Sets the value ofCfnSchedule.TargetProperty.getEcsParameters()- Parameters:
ecsParameters- The templated target type for the Amazon ECSRunTaskAPI operation.- Returns:
this
-
ecsParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder ecsParameters(CfnSchedule.EcsParametersProperty ecsParameters) Sets the value ofCfnSchedule.TargetProperty.getEcsParameters()- Parameters:
ecsParameters- The templated target type for the Amazon ECSRunTaskAPI operation.- Returns:
this
-
eventBridgeParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder eventBridgeParameters(IResolvable eventBridgeParameters) Sets the value ofCfnSchedule.TargetProperty.getEventBridgeParameters()- Parameters:
eventBridgeParameters- The templated target type for the EventBridgePutEventsAPI operation.- Returns:
this
-
eventBridgeParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder eventBridgeParameters(CfnSchedule.EventBridgeParametersProperty eventBridgeParameters) Sets the value ofCfnSchedule.TargetProperty.getEventBridgeParameters()- Parameters:
eventBridgeParameters- The templated target type for the EventBridgePutEventsAPI operation.- Returns:
this
-
input
Sets the value ofCfnSchedule.TargetProperty.getInput()- Parameters:
input- The text, or well-formed JSON, passed to the target. If you are configuring a templated Lambda , AWS Step Functions , or Amazon EventBridge target, the input must be a well-formed JSON. For all other target types, a JSON is not required. If you do not specify anything for this field, Amazon EventBridge Scheduler delivers a default notification to the target.- Returns:
this
-
kinesisParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder kinesisParameters(IResolvable kinesisParameters) Sets the value ofCfnSchedule.TargetProperty.getKinesisParameters()- Parameters:
kinesisParameters- The templated target type for the Amazon KinesisPutRecordAPI operation.- Returns:
this
-
kinesisParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder kinesisParameters(CfnSchedule.KinesisParametersProperty kinesisParameters) Sets the value ofCfnSchedule.TargetProperty.getKinesisParameters()- Parameters:
kinesisParameters- The templated target type for the Amazon KinesisPutRecordAPI operation.- Returns:
this
-
retryPolicy
Sets the value ofCfnSchedule.TargetProperty.getRetryPolicy()- Parameters:
retryPolicy- ARetryPolicyobject that includes information about the retry policy settings, including the maximum age of an event, and the maximum number of times EventBridge Scheduler will try to deliver the event to a target.- Returns:
this
-
retryPolicy
@Stability(Stable) public CfnSchedule.TargetProperty.Builder retryPolicy(CfnSchedule.RetryPolicyProperty retryPolicy) Sets the value ofCfnSchedule.TargetProperty.getRetryPolicy()- Parameters:
retryPolicy- ARetryPolicyobject that includes information about the retry policy settings, including the maximum age of an event, and the maximum number of times EventBridge Scheduler will try to deliver the event to a target.- Returns:
this
-
sageMakerPipelineParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder sageMakerPipelineParameters(IResolvable sageMakerPipelineParameters) Sets the value ofCfnSchedule.TargetProperty.getSageMakerPipelineParameters()- Parameters:
sageMakerPipelineParameters- The templated target type for the Amazon SageMakerStartPipelineExecutionAPI operation.- Returns:
this
-
sageMakerPipelineParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder sageMakerPipelineParameters(CfnSchedule.SageMakerPipelineParametersProperty sageMakerPipelineParameters) Sets the value ofCfnSchedule.TargetProperty.getSageMakerPipelineParameters()- Parameters:
sageMakerPipelineParameters- The templated target type for the Amazon SageMakerStartPipelineExecutionAPI operation.- Returns:
this
-
sqsParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder sqsParameters(IResolvable sqsParameters) Sets the value ofCfnSchedule.TargetProperty.getSqsParameters()- Parameters:
sqsParameters- The templated target type for the Amazon SQSSendMessageAPI operation. Contains the message group ID to use when the target is a FIFO queue. If you specify an Amazon SQS FIFO queue as a target, the queue must have content-based deduplication enabled. For more information, see Using the Amazon SQS message deduplication ID in the Amazon SQS Developer Guide .- Returns:
this
-
sqsParameters
@Stability(Stable) public CfnSchedule.TargetProperty.Builder sqsParameters(CfnSchedule.SqsParametersProperty sqsParameters) Sets the value ofCfnSchedule.TargetProperty.getSqsParameters()- Parameters:
sqsParameters- The templated target type for the Amazon SQSSendMessageAPI operation. Contains the message group ID to use when the target is a FIFO queue. If you specify an Amazon SQS FIFO queue as a target, the queue must have content-based deduplication enabled. For more information, see Using the Amazon SQS message deduplication ID in the Amazon SQS Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSchedule.TargetProperty>- Returns:
- a new instance of
CfnSchedule.TargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-