aws_sdk_sqs/client/
get_queue_url.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetQueueUrl`](crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`queue_name(impl Into<String>)`](crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder::queue_name) / [`set_queue_name(Option<String>)`](crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder::set_queue_name):<br>required: **true**<br><p>(Required) The name of the queue for which you want to fetch the URL. The name can be up to 80 characters long and can include alphanumeric characters, hyphens (-), and underscores (_). Queue URLs and names are case-sensitive.</p><br>
7    ///   - [`queue_owner_aws_account_id(impl Into<String>)`](crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder::queue_owner_aws_account_id) / [`set_queue_owner_aws_account_id(Option<String>)`](crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder::set_queue_owner_aws_account_id):<br>required: **false**<br><p>(Optional) The Amazon Web Services account ID of the account that created the queue. This is only required when you are attempting to access a queue owned by another Amazon Web Services account.</p><br>
8    /// - On success, responds with [`GetQueueUrlOutput`](crate::operation::get_queue_url::GetQueueUrlOutput) with field(s):
9    ///   - [`queue_url(Option<String>)`](crate::operation::get_queue_url::GetQueueUrlOutput::queue_url): <p>The URL of the queue.</p>
10    /// - On failure, responds with [`SdkError<GetQueueUrlError>`](crate::operation::get_queue_url::GetQueueUrlError)
11    pub fn get_queue_url(&self) -> crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder {
12        crate::operation::get_queue_url::builders::GetQueueUrlFluentBuilder::new(self.handle.clone())
13    }
14}