Struct aws_sdk_scheduler::model::Target
source · #[non_exhaustive]pub struct Target { /* private fields */ }
Expand description
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.
Implementations§
source§impl Target
impl Target
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
sourcepub fn dead_letter_config(&self) -> Option<&DeadLetterConfig>
pub fn dead_letter_config(&self) -> Option<&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.
sourcepub fn retry_policy(&self) -> Option<&RetryPolicy>
pub fn retry_policy(&self) -> Option<&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.
sourcepub fn input(&self) -> Option<&str>
pub fn input(&self) -> Option<&str>
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.
sourcepub fn ecs_parameters(&self) -> Option<&EcsParameters>
pub fn ecs_parameters(&self) -> Option<&EcsParameters>
The templated target type for the Amazon ECS RunTask
API operation.
sourcepub fn event_bridge_parameters(&self) -> Option<&EventBridgeParameters>
pub fn event_bridge_parameters(&self) -> Option<&EventBridgeParameters>
The templated target type for the EventBridge PutEvents
API operation.
sourcepub fn kinesis_parameters(&self) -> Option<&KinesisParameters>
pub fn kinesis_parameters(&self) -> Option<&KinesisParameters>
The templated target type for the Amazon Kinesis PutRecord
API operation.
sourcepub fn sage_maker_pipeline_parameters(
&self
) -> Option<&SageMakerPipelineParameters>
pub fn sage_maker_pipeline_parameters(
&self
) -> Option<&SageMakerPipelineParameters>
The templated target type for the Amazon SageMaker StartPipelineExecution
API operation.
sourcepub fn sqs_parameters(&self) -> Option<&SqsParameters>
pub fn sqs_parameters(&self) -> Option<&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.