Struct aws_sdk_scheduler::model::target::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Target.
Implementations§
source§impl Builder
impl Builder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the target.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the target.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
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, input: DeadLetterConfig) -> Self
pub fn dead_letter_config(self, input: DeadLetterConfig) -> Self
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 set_dead_letter_config(self, input: Option<DeadLetterConfig>) -> Self
pub fn set_dead_letter_config(self, input: Option<DeadLetterConfig>) -> Self
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, input: RetryPolicy) -> Self
pub fn retry_policy(self, input: RetryPolicy) -> Self
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 set_retry_policy(self, input: Option<RetryPolicy>) -> Self
pub fn set_retry_policy(self, input: Option<RetryPolicy>) -> Self
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, input: impl Into<String>) -> Self
pub fn input(self, input: impl Into<String>) -> Self
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 set_input(self, input: Option<String>) -> Self
pub fn set_input(self, input: Option<String>) -> Self
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, input: EcsParameters) -> Self
pub fn ecs_parameters(self, input: EcsParameters) -> Self
The templated target type for the Amazon ECS RunTask API operation.
sourcepub fn set_ecs_parameters(self, input: Option<EcsParameters>) -> Self
pub fn set_ecs_parameters(self, input: Option<EcsParameters>) -> Self
The templated target type for the Amazon ECS RunTask API operation.
sourcepub fn event_bridge_parameters(self, input: EventBridgeParameters) -> Self
pub fn event_bridge_parameters(self, input: EventBridgeParameters) -> Self
The templated target type for the EventBridge PutEvents API operation.
sourcepub fn set_event_bridge_parameters(
self,
input: Option<EventBridgeParameters>
) -> Self
pub fn set_event_bridge_parameters(
self,
input: Option<EventBridgeParameters>
) -> Self
The templated target type for the EventBridge PutEvents API operation.
sourcepub fn kinesis_parameters(self, input: KinesisParameters) -> Self
pub fn kinesis_parameters(self, input: KinesisParameters) -> Self
The templated target type for the Amazon Kinesis PutRecord API operation.
sourcepub fn set_kinesis_parameters(self, input: Option<KinesisParameters>) -> Self
pub fn set_kinesis_parameters(self, input: Option<KinesisParameters>) -> Self
The templated target type for the Amazon Kinesis PutRecord API operation.
sourcepub fn sage_maker_pipeline_parameters(
self,
input: SageMakerPipelineParameters
) -> Self
pub fn sage_maker_pipeline_parameters(
self,
input: SageMakerPipelineParameters
) -> Self
The templated target type for the Amazon SageMaker StartPipelineExecution API operation.
sourcepub fn set_sage_maker_pipeline_parameters(
self,
input: Option<SageMakerPipelineParameters>
) -> Self
pub fn set_sage_maker_pipeline_parameters(
self,
input: Option<SageMakerPipelineParameters>
) -> Self
The templated target type for the Amazon SageMaker StartPipelineExecution API operation.
sourcepub fn sqs_parameters(self, input: SqsParameters) -> Self
pub fn sqs_parameters(self, input: SqsParameters) -> Self
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.
sourcepub fn set_sqs_parameters(self, input: Option<SqsParameters>) -> Self
pub fn set_sqs_parameters(self, input: Option<SqsParameters>) -> Self
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.