#[non_exhaustive]
pub struct TargetBuilder { /* private fields */ }
Expand description

A builder for Target.

Implementations§

source§

impl TargetBuilder

source

pub fn arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the target.

source

pub fn set_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the target.

source

pub fn get_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the target.

source

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.

source

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.

source

pub fn get_role_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.

source

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.

source

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.

source

pub fn get_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.

source

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.

source

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.

source

pub fn get_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.

source

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.

source

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.

source

pub fn get_input(&self) -> &Option<String>

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.

source

pub fn ecs_parameters(self, input: EcsParameters) -> Self

The templated target type for the Amazon ECS RunTask API operation.

source

pub fn set_ecs_parameters(self, input: Option<EcsParameters>) -> Self

The templated target type for the Amazon ECS RunTask API operation.

source

pub fn get_ecs_parameters(&self) -> &Option<EcsParameters>

The templated target type for the Amazon ECS RunTask API operation.

source

pub fn event_bridge_parameters(self, input: EventBridgeParameters) -> Self

The templated target type for the EventBridge PutEvents API operation.

source

pub fn set_event_bridge_parameters( self, input: Option<EventBridgeParameters> ) -> Self

The templated target type for the EventBridge PutEvents API operation.

source

pub fn get_event_bridge_parameters(&self) -> &Option<EventBridgeParameters>

The templated target type for the EventBridge PutEvents API operation.

source

pub fn kinesis_parameters(self, input: KinesisParameters) -> Self

The templated target type for the Amazon Kinesis PutRecord API operation.

source

pub fn set_kinesis_parameters(self, input: Option<KinesisParameters>) -> Self

The templated target type for the Amazon Kinesis PutRecord API operation.

source

pub fn get_kinesis_parameters(&self) -> &Option<KinesisParameters>

The templated target type for the Amazon Kinesis PutRecord API operation.

source

pub fn sage_maker_pipeline_parameters( self, input: SageMakerPipelineParameters ) -> Self

The templated target type for the Amazon SageMaker StartPipelineExecution API operation.

source

pub fn set_sage_maker_pipeline_parameters( self, input: Option<SageMakerPipelineParameters> ) -> Self

The templated target type for the Amazon SageMaker StartPipelineExecution API operation.

source

pub fn get_sage_maker_pipeline_parameters( &self ) -> &Option<SageMakerPipelineParameters>

The templated target type for the Amazon SageMaker StartPipelineExecution API operation.

source

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.

source

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.

source

pub fn get_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.

source

pub fn build(self) -> Target

Consumes the builder and constructs a Target.

Trait Implementations§

source§

impl Clone for TargetBuilder

source§

fn clone(&self) -> TargetBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TargetBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TargetBuilder

source§

fn default() -> TargetBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<TargetBuilder> for TargetBuilder

source§

fn eq(&self, other: &TargetBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for TargetBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more