Struct aws_sdk_sqs::operation::start_message_move_task::builders::StartMessageMoveTaskFluentBuilder
source · pub struct StartMessageMoveTaskFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StartMessageMoveTask
.
Starts an asynchronous task to move messages from a specified source queue to a specified destination queue.
-
This action is currently limited to supporting message redrive from queues that are configured as dead-letter queues (DLQs) of other Amazon SQS queues only. Non-SQS queue sources of dead-letter queues, such as Lambda or Amazon SNS topics, are currently not supported.
-
In dead-letter queues redrive context, the
StartMessageMoveTask
the source queue is the DLQ, while the destination queue can be the original source queue (from which the messages were driven to the dead-letter-queue), or a custom destination queue. -
Currently, only standard queues support redrive. FIFO queues don't support redrive.
-
Only one active message movement task is supported per queue at any given time.
Implementations§
source§impl StartMessageMoveTaskFluentBuilder
impl StartMessageMoveTaskFluentBuilder
sourcepub fn as_input(&self) -> &StartMessageMoveTaskInputBuilder
pub fn as_input(&self) -> &StartMessageMoveTaskInputBuilder
Access the StartMessageMoveTask as a reference.
sourcepub async fn send(
self
) -> Result<StartMessageMoveTaskOutput, SdkError<StartMessageMoveTaskError, HttpResponse>>
pub async fn send( self ) -> Result<StartMessageMoveTaskOutput, SdkError<StartMessageMoveTaskError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<StartMessageMoveTaskOutput, StartMessageMoveTaskError, Self>
pub fn customize( self ) -> CustomizableOperation<StartMessageMoveTaskOutput, StartMessageMoveTaskError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn source_arn(self, input: impl Into<String>) -> Self
pub fn source_arn(self, input: impl Into<String>) -> Self
The ARN of the queue that contains the messages to be moved to another queue. Currently, only ARNs of dead-letter queues (DLQs) whose sources are other Amazon SQS queues are accepted. DLQs whose sources are non-SQS queues, such as Lambda or Amazon SNS topics, are not currently supported.
sourcepub fn set_source_arn(self, input: Option<String>) -> Self
pub fn set_source_arn(self, input: Option<String>) -> Self
The ARN of the queue that contains the messages to be moved to another queue. Currently, only ARNs of dead-letter queues (DLQs) whose sources are other Amazon SQS queues are accepted. DLQs whose sources are non-SQS queues, such as Lambda or Amazon SNS topics, are not currently supported.
sourcepub fn get_source_arn(&self) -> &Option<String>
pub fn get_source_arn(&self) -> &Option<String>
The ARN of the queue that contains the messages to be moved to another queue. Currently, only ARNs of dead-letter queues (DLQs) whose sources are other Amazon SQS queues are accepted. DLQs whose sources are non-SQS queues, such as Lambda or Amazon SNS topics, are not currently supported.
sourcepub fn destination_arn(self, input: impl Into<String>) -> Self
pub fn destination_arn(self, input: impl Into<String>) -> Self
The ARN of the queue that receives the moved messages. You can use this field to specify the destination queue where you would like to redrive messages. If this field is left blank, the messages will be redriven back to their respective original source queues.
sourcepub fn set_destination_arn(self, input: Option<String>) -> Self
pub fn set_destination_arn(self, input: Option<String>) -> Self
The ARN of the queue that receives the moved messages. You can use this field to specify the destination queue where you would like to redrive messages. If this field is left blank, the messages will be redriven back to their respective original source queues.
sourcepub fn get_destination_arn(&self) -> &Option<String>
pub fn get_destination_arn(&self) -> &Option<String>
The ARN of the queue that receives the moved messages. You can use this field to specify the destination queue where you would like to redrive messages. If this field is left blank, the messages will be redriven back to their respective original source queues.
sourcepub fn max_number_of_messages_per_second(self, input: i32) -> Self
pub fn max_number_of_messages_per_second(self, input: i32) -> Self
The number of messages to be moved per second (the message movement rate). You can use this field to define a fixed message movement rate. The maximum value for messages per second is 500. If this field is left blank, the system will optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task.
sourcepub fn set_max_number_of_messages_per_second(self, input: Option<i32>) -> Self
pub fn set_max_number_of_messages_per_second(self, input: Option<i32>) -> Self
The number of messages to be moved per second (the message movement rate). You can use this field to define a fixed message movement rate. The maximum value for messages per second is 500. If this field is left blank, the system will optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task.
sourcepub fn get_max_number_of_messages_per_second(&self) -> &Option<i32>
pub fn get_max_number_of_messages_per_second(&self) -> &Option<i32>
The number of messages to be moved per second (the message movement rate). You can use this field to define a fixed message movement rate. The maximum value for messages per second is 500. If this field is left blank, the system will optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task.
Trait Implementations§
source§impl Clone for StartMessageMoveTaskFluentBuilder
impl Clone for StartMessageMoveTaskFluentBuilder
source§fn clone(&self) -> StartMessageMoveTaskFluentBuilder
fn clone(&self) -> StartMessageMoveTaskFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more