@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Target extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
Target |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the target.
|
DeadLetterConfig |
getDeadLetterConfig()
An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter
queue for your schedule.
|
EcsParameters |
getEcsParameters()
The templated target type for the Amazon ECS
RunTask API
operation. |
EventBridgeParameters |
getEventBridgeParameters()
The templated target type for the EventBridge
PutEvents
API operation. |
String |
getInput()
The text, or well-formed JSON, passed to the target.
|
KinesisParameters |
getKinesisParameters()
The templated target type for the Amazon Kinesis
PutRecord API operation. |
RetryPolicy |
getRetryPolicy()
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. |
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the
schedule is invoked.
|
SageMakerPipelineParameters |
getSageMakerPipelineParameters()
The templated target type for the Amazon SageMaker
StartPipelineExecution API operation. |
SqsParameters |
getSqsParameters()
The templated target type for the Amazon SQS
SendMessage API operation. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the target.
|
void |
setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter
queue for your schedule.
|
void |
setEcsParameters(EcsParameters ecsParameters)
The templated target type for the Amazon ECS
RunTask API
operation. |
void |
setEventBridgeParameters(EventBridgeParameters eventBridgeParameters)
The templated target type for the EventBridge
PutEvents
API operation. |
void |
setInput(String input)
The text, or well-formed JSON, passed to the target.
|
void |
setKinesisParameters(KinesisParameters kinesisParameters)
The templated target type for the Amazon Kinesis
PutRecord API operation. |
void |
setRetryPolicy(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. |
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the
schedule is invoked.
|
void |
setSageMakerPipelineParameters(SageMakerPipelineParameters sageMakerPipelineParameters)
The templated target type for the Amazon SageMaker
StartPipelineExecution API operation. |
void |
setSqsParameters(SqsParameters sqsParameters)
The templated target type for the Amazon SQS
SendMessage API operation. |
String |
toString()
Returns a string representation of this object.
|
Target |
withArn(String arn)
The Amazon Resource Name (ARN) of the target.
|
Target |
withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter
queue for your schedule.
|
Target |
withEcsParameters(EcsParameters ecsParameters)
The templated target type for the Amazon ECS
RunTask API
operation. |
Target |
withEventBridgeParameters(EventBridgeParameters eventBridgeParameters)
The templated target type for the EventBridge
PutEvents
API operation. |
Target |
withInput(String input)
The text, or well-formed JSON, passed to the target.
|
Target |
withKinesisParameters(KinesisParameters kinesisParameters)
The templated target type for the Amazon Kinesis
PutRecord API operation. |
Target |
withRetryPolicy(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. |
Target |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the
schedule is invoked.
|
Target |
withSageMakerPipelineParameters(SageMakerPipelineParameters sageMakerPipelineParameters)
The templated target type for the Amazon SageMaker
StartPipelineExecution API operation. |
Target |
withSqsParameters(SqsParameters sqsParameters)
The templated target type for the Amazon SQS
SendMessage API operation. |
public void setArn(String arn)
The Amazon Resource Name (ARN) of the target.
arn
- The Amazon Resource Name (ARN) of the target.public String getArn()
The Amazon Resource Name (ARN) of the target.
public Target withArn(String arn)
The Amazon Resource Name (ARN) of the target.
arn
- The Amazon Resource Name (ARN) of the target.public void setDeadLetterConfig(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.
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.public DeadLetterConfig getDeadLetterConfig()
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.
public Target withDeadLetterConfig(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.
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.public void setEcsParameters(EcsParameters ecsParameters)
The templated target type for the Amazon ECS RunTask
API
operation.
ecsParameters
- The templated target type for the Amazon ECS RunTask
API operation.public EcsParameters getEcsParameters()
The templated target type for the Amazon ECS RunTask
API
operation.
RunTask
API operation.public Target withEcsParameters(EcsParameters ecsParameters)
The templated target type for the Amazon ECS RunTask
API
operation.
ecsParameters
- The templated target type for the Amazon ECS RunTask
API operation.public void setEventBridgeParameters(EventBridgeParameters eventBridgeParameters)
The templated target type for the EventBridge PutEvents
API operation.
eventBridgeParameters
- The templated target type for the EventBridge
PutEvents
API operation.public EventBridgeParameters getEventBridgeParameters()
The templated target type for the EventBridge PutEvents
API operation.
PutEvents
API operation.public Target withEventBridgeParameters(EventBridgeParameters eventBridgeParameters)
The templated target type for the EventBridge PutEvents
API operation.
eventBridgeParameters
- The templated target type for the EventBridge
PutEvents
API operation.public void setInput(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.
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.public String getInput()
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.
public Target withInput(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.
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.public void setKinesisParameters(KinesisParameters kinesisParameters)
The templated target type for the Amazon Kinesis
PutRecord
API operation.
kinesisParameters
- The templated target type for the Amazon Kinesis
PutRecord
API operation.public KinesisParameters getKinesisParameters()
The templated target type for the Amazon Kinesis
PutRecord
API operation.
PutRecord
API operation.public Target withKinesisParameters(KinesisParameters kinesisParameters)
The templated target type for the Amazon Kinesis
PutRecord
API operation.
kinesisParameters
- The templated target type for the Amazon Kinesis
PutRecord
API operation.public void setRetryPolicy(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.
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.public RetryPolicy getRetryPolicy()
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.
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.public Target withRetryPolicy(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.
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.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
roleArn
- The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when
the schedule is invoked.public String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
public Target withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
roleArn
- The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when
the schedule is invoked.public void setSageMakerPipelineParameters(SageMakerPipelineParameters sageMakerPipelineParameters)
The templated target type for the Amazon SageMaker
StartPipelineExecution
API operation.
sageMakerPipelineParameters
- The templated target type for the Amazon SageMaker
StartPipelineExecution
API operation.public SageMakerPipelineParameters getSageMakerPipelineParameters()
The templated target type for the Amazon SageMaker
StartPipelineExecution
API operation.
StartPipelineExecution
API operation.public Target withSageMakerPipelineParameters(SageMakerPipelineParameters sageMakerPipelineParameters)
The templated target type for the Amazon SageMaker
StartPipelineExecution
API operation.
sageMakerPipelineParameters
- The templated target type for the Amazon SageMaker
StartPipelineExecution
API operation.public void setSqsParameters(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.
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.public SqsParameters getSqsParameters()
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.
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.public Target withSqsParameters(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.
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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.