#[non_exhaustive]
pub struct PipeTargetParameters { pub input_template: Option<String>, pub lambda_function_parameters: Option<PipeTargetLambdaFunctionParameters>, pub step_function_state_machine_parameters: Option<PipeTargetStateMachineParameters>, pub kinesis_stream_parameters: Option<PipeTargetKinesisStreamParameters>, pub ecs_task_parameters: Option<PipeTargetEcsTaskParameters>, pub batch_job_parameters: Option<PipeTargetBatchJobParameters>, pub sqs_queue_parameters: Option<PipeTargetSqsQueueParameters>, pub http_parameters: Option<PipeTargetHttpParameters>, pub redshift_data_parameters: Option<PipeTargetRedshiftDataParameters>, pub sage_maker_pipeline_parameters: Option<PipeTargetSageMakerPipelineParameters>, pub event_bridge_event_bus_parameters: Option<PipeTargetEventBridgeEventBusParameters>, pub cloud_watch_logs_parameters: Option<PipeTargetCloudWatchLogsParameters>, }
Expand description

The parameters required to set up a target for your pipe.

For more information about pipe target parameters, including how to use dynamic path parameters, see Target parameters in the Amazon EventBridge User Guide.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§input_template: Option<String>

Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.

To remove an input template, specify an empty string.

§lambda_function_parameters: Option<PipeTargetLambdaFunctionParameters>

The parameters for using a Lambda function as a target.

§step_function_state_machine_parameters: Option<PipeTargetStateMachineParameters>

The parameters for using a Step Functions state machine as a target.

§kinesis_stream_parameters: Option<PipeTargetKinesisStreamParameters>

The parameters for using a Kinesis stream as a target.

§ecs_task_parameters: Option<PipeTargetEcsTaskParameters>

The parameters for using an Amazon ECS task as a target.

§batch_job_parameters: Option<PipeTargetBatchJobParameters>

The parameters for using an Batch job as a target.

§sqs_queue_parameters: Option<PipeTargetSqsQueueParameters>

The parameters for using a Amazon SQS stream as a target.

§http_parameters: Option<PipeTargetHttpParameters>

These are custom parameter to be used when the target is an API Gateway REST APIs or EventBridge ApiDestinations.

§redshift_data_parameters: Option<PipeTargetRedshiftDataParameters>

These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API BatchExecuteStatement.

§sage_maker_pipeline_parameters: Option<PipeTargetSageMakerPipelineParameters>

The parameters for using a SageMaker pipeline as a target.

§event_bridge_event_bus_parameters: Option<PipeTargetEventBridgeEventBusParameters>

The parameters for using an EventBridge event bus as a target.

§cloud_watch_logs_parameters: Option<PipeTargetCloudWatchLogsParameters>

The parameters for using an CloudWatch Logs log stream as a target.

Implementations§

source§

impl PipeTargetParameters

source

pub fn input_template(&self) -> Option<&str>

Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.

To remove an input template, specify an empty string.

source

pub fn lambda_function_parameters( &self ) -> Option<&PipeTargetLambdaFunctionParameters>

The parameters for using a Lambda function as a target.

source

pub fn step_function_state_machine_parameters( &self ) -> Option<&PipeTargetStateMachineParameters>

The parameters for using a Step Functions state machine as a target.

source

pub fn kinesis_stream_parameters( &self ) -> Option<&PipeTargetKinesisStreamParameters>

The parameters for using a Kinesis stream as a target.

source

pub fn ecs_task_parameters(&self) -> Option<&PipeTargetEcsTaskParameters>

The parameters for using an Amazon ECS task as a target.

source

pub fn batch_job_parameters(&self) -> Option<&PipeTargetBatchJobParameters>

The parameters for using an Batch job as a target.

source

pub fn sqs_queue_parameters(&self) -> Option<&PipeTargetSqsQueueParameters>

The parameters for using a Amazon SQS stream as a target.

source

pub fn http_parameters(&self) -> Option<&PipeTargetHttpParameters>

These are custom parameter to be used when the target is an API Gateway REST APIs or EventBridge ApiDestinations.

source

pub fn redshift_data_parameters( &self ) -> Option<&PipeTargetRedshiftDataParameters>

These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API BatchExecuteStatement.

source

pub fn sage_maker_pipeline_parameters( &self ) -> Option<&PipeTargetSageMakerPipelineParameters>

The parameters for using a SageMaker pipeline as a target.

source

pub fn event_bridge_event_bus_parameters( &self ) -> Option<&PipeTargetEventBridgeEventBusParameters>

The parameters for using an EventBridge event bus as a target.

source

pub fn cloud_watch_logs_parameters( &self ) -> Option<&PipeTargetCloudWatchLogsParameters>

The parameters for using an CloudWatch Logs log stream as a target.

source§

impl PipeTargetParameters

source

pub fn builder() -> PipeTargetParametersBuilder

Creates a new builder-style object to manufacture PipeTargetParameters.

Trait Implementations§

source§

impl Clone for PipeTargetParameters

source§

fn clone(&self) -> PipeTargetParameters

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 PipeTargetParameters

source§

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

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

impl PartialEq for PipeTargetParameters

source§

fn eq(&self, other: &PipeTargetParameters) -> 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 PipeTargetParameters

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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