Interface Target.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Target.Builder,Target>
,SdkBuilder<Target.Builder,Target>
,SdkPojo
- Enclosing class:
- Target
public static interface Target.Builder extends SdkPojo, CopyableBuilder<Target.Builder,Target>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Target.Builder
arn(String arn)
The Amazon Resource Name (ARN) of the target.default Target.Builder
deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule.Target.Builder
deadLetterConfig(DeadLetterConfig deadLetterConfig)
An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule.default Target.Builder
ecsParameters(Consumer<EcsParameters.Builder> ecsParameters)
The templated target type for the Amazon ECSRunTask
API operation.Target.Builder
ecsParameters(EcsParameters ecsParameters)
The templated target type for the Amazon ECSRunTask
API operation.default Target.Builder
eventBridgeParameters(Consumer<EventBridgeParameters.Builder> eventBridgeParameters)
The templated target type for the EventBridgePutEvents
API operation.Target.Builder
eventBridgeParameters(EventBridgeParameters eventBridgeParameters)
The templated target type for the EventBridgePutEvents
API operation.Target.Builder
input(String input)
The text, or well-formed JSON, passed to the target.default Target.Builder
kinesisParameters(Consumer<KinesisParameters.Builder> kinesisParameters)
The templated target type for the Amazon KinesisPutRecord
API operation.Target.Builder
kinesisParameters(KinesisParameters kinesisParameters)
The templated target type for the Amazon KinesisPutRecord
API operation.default Target.Builder
retryPolicy(Consumer<RetryPolicy.Builder> retryPolicy)
ARetryPolicy
object 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.Target.Builder
retryPolicy(RetryPolicy retryPolicy)
ARetryPolicy
object 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.Target.Builder
roleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.default Target.Builder
sageMakerPipelineParameters(Consumer<SageMakerPipelineParameters.Builder> sageMakerPipelineParameters)
The templated target type for the Amazon SageMakerStartPipelineExecution
API operation.Target.Builder
sageMakerPipelineParameters(SageMakerPipelineParameters sageMakerPipelineParameters)
The templated target type for the Amazon SageMakerStartPipelineExecution
API operation.default Target.Builder
sqsParameters(Consumer<SqsParameters.Builder> sqsParameters)
The templated target type for the Amazon SQSSendMessage
API operation.Target.Builder
sqsParameters(SqsParameters sqsParameters)
The templated target type for the Amazon SQSSendMessage
API operation.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
arn
Target.Builder arn(String arn)
The Amazon Resource Name (ARN) of the target.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deadLetterConfig
Target.Builder deadLetterConfig(DeadLetterConfig 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
deadLetterConfig
default Target.Builder deadLetterConfig(Consumer<DeadLetterConfig.Builder> 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.
This is a convenience method that creates an instance of theDeadLetterConfig.Builder
avoiding the need to create one manually viaDeadLetterConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeadLetterConfig(DeadLetterConfig)
.- Parameters:
deadLetterConfig
- a consumer that will call methods onDeadLetterConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
deadLetterConfig(DeadLetterConfig)
-
ecsParameters
Target.Builder ecsParameters(EcsParameters ecsParameters)
The templated target type for the Amazon ECS
RunTask
API operation.- Parameters:
ecsParameters
- The templated target type for the Amazon ECSRunTask
API operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecsParameters
default Target.Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters)
The templated target type for the Amazon ECS
This is a convenience method that creates an instance of theRunTask
API operation.EcsParameters.Builder
avoiding the need to create one manually viaEcsParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toecsParameters(EcsParameters)
.- Parameters:
ecsParameters
- a consumer that will call methods onEcsParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ecsParameters(EcsParameters)
-
eventBridgeParameters
Target.Builder eventBridgeParameters(EventBridgeParameters eventBridgeParameters)
The templated target type for the EventBridge
PutEvents
API operation.- Parameters:
eventBridgeParameters
- The templated target type for the EventBridgePutEvents
API operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBridgeParameters
default Target.Builder eventBridgeParameters(Consumer<EventBridgeParameters.Builder> eventBridgeParameters)
The templated target type for the EventBridge
This is a convenience method that creates an instance of thePutEvents
API operation.EventBridgeParameters.Builder
avoiding the need to create one manually viaEventBridgeParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventBridgeParameters(EventBridgeParameters)
.- Parameters:
eventBridgeParameters
- a consumer that will call methods onEventBridgeParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eventBridgeParameters(EventBridgeParameters)
-
input
Target.Builder input(String 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, EventBridge Scheduler delivers a default notification to the target.
- 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, EventBridge Scheduler delivers a default notification to the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kinesisParameters
Target.Builder kinesisParameters(KinesisParameters kinesisParameters)
The templated target type for the Amazon Kinesis
PutRecord
API operation.- Parameters:
kinesisParameters
- The templated target type for the Amazon KinesisPutRecord
API operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kinesisParameters
default Target.Builder kinesisParameters(Consumer<KinesisParameters.Builder> kinesisParameters)
The templated target type for the Amazon Kinesis
This is a convenience method that creates an instance of thePutRecord
API operation.KinesisParameters.Builder
avoiding the need to create one manually viaKinesisParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokinesisParameters(KinesisParameters)
.- Parameters:
kinesisParameters
- a consumer that will call methods onKinesisParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
kinesisParameters(KinesisParameters)
-
retryPolicy
Target.Builder retryPolicy(RetryPolicy retryPolicy)
A
RetryPolicy
object 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.- Parameters:
retryPolicy
- ARetryPolicy
object 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:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicy
default Target.Builder retryPolicy(Consumer<RetryPolicy.Builder> retryPolicy)
A
This is a convenience method that creates an instance of theRetryPolicy
object 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.RetryPolicy.Builder
avoiding the need to create one manually viaRetryPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretryPolicy(RetryPolicy)
.- Parameters:
retryPolicy
- a consumer that will call methods onRetryPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retryPolicy(RetryPolicy)
-
roleArn
Target.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sageMakerPipelineParameters
Target.Builder sageMakerPipelineParameters(SageMakerPipelineParameters sageMakerPipelineParameters)
The templated target type for the Amazon SageMaker
StartPipelineExecution
API operation.- Parameters:
sageMakerPipelineParameters
- The templated target type for the Amazon SageMakerStartPipelineExecution
API operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sageMakerPipelineParameters
default Target.Builder sageMakerPipelineParameters(Consumer<SageMakerPipelineParameters.Builder> sageMakerPipelineParameters)
The templated target type for the Amazon SageMaker
This is a convenience method that creates an instance of theStartPipelineExecution
API operation.SageMakerPipelineParameters.Builder
avoiding the need to create one manually viaSageMakerPipelineParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosageMakerPipelineParameters(SageMakerPipelineParameters)
.- Parameters:
sageMakerPipelineParameters
- a consumer that will call methods onSageMakerPipelineParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sageMakerPipelineParameters(SageMakerPipelineParameters)
-
sqsParameters
Target.Builder sqsParameters(SqsParameters sqsParameters)
The templated target type for the Amazon SQS
SendMessage
API 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.- Parameters:
sqsParameters
- The templated target type for the Amazon SQSSendMessage
API 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:
- Returns a reference to this object so that method calls can be chained together.
-
sqsParameters
default Target.Builder sqsParameters(Consumer<SqsParameters.Builder> sqsParameters)
The templated target type for the Amazon SQS
This is a convenience method that creates an instance of theSendMessage
API 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.SqsParameters.Builder
avoiding the need to create one manually viaSqsParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosqsParameters(SqsParameters)
.- Parameters:
sqsParameters
- a consumer that will call methods onSqsParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sqsParameters(SqsParameters)
-
-