Struct aws_sdk_sqs::client::fluent_builders::DeleteMessageBatch
source · pub struct DeleteMessageBatch { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteMessageBatch
.
Deletes up to ten messages from the specified queue. This is a batch version of
The result of the action on each message is reported individually in the response.DeleteMessage
.
Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200
.
Some actions take lists of parameters. These lists are specified using the param.n
notation. Values of n
are integers starting from 1. For example, a parameter list with two elements looks like this:
&AttributeName.1=first
&AttributeName.2=second
Implementations§
source§impl DeleteMessageBatch
impl DeleteMessageBatch
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteMessageBatch, AwsResponseRetryClassifier>, SdkError<DeleteMessageBatchError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteMessageBatch, AwsResponseRetryClassifier>, SdkError<DeleteMessageBatchError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteMessageBatchOutput, SdkError<DeleteMessageBatchError>>
pub async fn send(
self
) -> Result<DeleteMessageBatchOutput, SdkError<DeleteMessageBatchError>>
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 queue_url(self, input: impl Into<String>) -> Self
pub fn queue_url(self, input: impl Into<String>) -> Self
The URL of the Amazon SQS queue from which messages are deleted.
Queue URLs and names are case-sensitive.
sourcepub fn set_queue_url(self, input: Option<String>) -> Self
pub fn set_queue_url(self, input: Option<String>) -> Self
The URL of the Amazon SQS queue from which messages are deleted.
Queue URLs and names are case-sensitive.
sourcepub fn entries(self, input: DeleteMessageBatchRequestEntry) -> Self
pub fn entries(self, input: DeleteMessageBatchRequestEntry) -> Self
Appends an item to Entries
.
To override the contents of this collection use set_entries
.
A list of receipt handles for the messages to be deleted.
sourcepub fn set_entries(
self,
input: Option<Vec<DeleteMessageBatchRequestEntry>>
) -> Self
pub fn set_entries(
self,
input: Option<Vec<DeleteMessageBatchRequestEntry>>
) -> Self
A list of receipt handles for the messages to be deleted.
Trait Implementations§
source§impl Clone for DeleteMessageBatch
impl Clone for DeleteMessageBatch
source§fn clone(&self) -> DeleteMessageBatch
fn clone(&self) -> DeleteMessageBatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more