Class Target
- java.lang.Object
-
- software.amazon.awssdk.services.scheduler.model.Target
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Target.Builder,Target>
@Generated("software.amazon.awssdk:codegen") public final class Target extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Target.Builder,Target>
The schedule's target. EventBridge Scheduler supports templated target that invoke common API operations, as well as universal targets that you can customize to invoke over 6,000 API operations across more than 270 services. You can only specify one templated or universal target for a schedule.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTarget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the target.static Target.Builderbuilder()DeadLetterConfigdeadLetterConfig()An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule.EcsParametersecsParameters()The templated target type for the Amazon ECSRunTaskAPI operation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventBridgeParameterseventBridgeParameters()The templated target type for the EventBridgePutEventsAPI operation.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringinput()The text, or well-formed JSON, passed to the target.KinesisParameterskinesisParameters()The templated target type for the Amazon KinesisPutRecordAPI operation.RetryPolicyretryPolicy()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.StringroleArn()The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.SageMakerPipelineParameterssageMakerPipelineParameters()The templated target type for the Amazon SageMakerStartPipelineExecutionAPI operation.List<SdkField<?>>sdkFields()static Class<? extends Target.Builder>serializableBuilderClass()SqsParameterssqsParameters()The templated target type for the Amazon SQSSendMessageAPI operation.Target.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the target.
- Returns:
- The Amazon Resource Name (ARN) of the target.
-
deadLetterConfig
public final 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.
- Returns:
- 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.
-
ecsParameters
public final EcsParameters ecsParameters()
The templated target type for the Amazon ECS
RunTaskAPI operation.- Returns:
- The templated target type for the Amazon ECS
RunTaskAPI operation.
-
eventBridgeParameters
public final EventBridgeParameters eventBridgeParameters()
The templated target type for the EventBridge
PutEventsAPI operation.- Returns:
- The templated target type for the EventBridge
PutEventsAPI operation.
-
input
public final 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.
- Returns:
- 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.
-
kinesisParameters
public final KinesisParameters kinesisParameters()
The templated target type for the Amazon Kinesis
PutRecordAPI operation.- Returns:
- The templated target type for the Amazon Kinesis
PutRecordAPI operation.
-
retryPolicy
public final RetryPolicy retryPolicy()
A
RetryPolicyobject 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:
- A
RetryPolicyobject 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.
-
roleArn
public final String roleArn()
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
-
sageMakerPipelineParameters
public final SageMakerPipelineParameters sageMakerPipelineParameters()
The templated target type for the Amazon SageMaker
StartPipelineExecutionAPI operation.- Returns:
- The templated target type for the Amazon SageMaker
StartPipelineExecutionAPI operation.
-
sqsParameters
public final SqsParameters sqsParameters()
The templated target type for the Amazon SQS
SendMessageAPI 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:
- The templated target type for the Amazon SQS
SendMessageAPI 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.
-
toBuilder
public Target.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Target.Builder,Target>
-
builder
public static Target.Builder builder()
-
serializableBuilderClass
public static Class<? extends Target.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-