1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::head_bucket::_head_bucket_output::HeadBucketOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::head_bucket::_head_bucket_input::HeadBucketInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::head_bucket::_head_bucket_output::HeadBucketOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::head_bucket::builders::HeadBucketInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::head_bucket::HeadBucketOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::head_bucket::HeadBucketError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.head_bucket();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `HeadBucket`.
|
24 24 | ///
|
25 25 | /// <p>You can use this operation to determine if a bucket exists and if you have permission to access it. The action returns a <code>200 OK</code> if the bucket exists and you have permission to access it.</p><note>
|
26 26 | /// <p>If the bucket does not exist or you do not have permission to access it, the <code>HEAD</code> request returns a generic <code>400 Bad Request</code>, <code>403 Forbidden</code> or <code>404 Not Found</code> code. A message body is not included, so you cannot determine the exception beyond these HTTP response codes.</p>
|
27 27 | /// </note>
|
28 28 | /// <dl>
|
29 29 | /// <dt>
|
30 30 | /// Authentication and authorization
|
31 31 | /// </dt>
|
32 32 | /// <dd>
|
33 33 | /// <p><b>General purpose buckets</b> - Request to public buckets that grant the s3:ListBucket permission publicly do not need to be signed. All other <code>HeadBucket</code> requests must be authenticated and signed by using IAM credentials (access key ID and secret access key for the IAM identities). All headers with the <code>x-amz-</code> prefix, including <code>x-amz-copy-source</code>, must be signed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
|
34 34 | /// <p><b>Directory buckets</b> - You must use IAM credentials to authenticate and authorize your access to the <code>HeadBucket</code> API operation, instead of using the temporary security credentials through the <code>CreateSession</code> API operation.</p>
|
35 35 | /// <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
|