1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | pub use crate::operation::list_tags_for_resource::_list_tags_for_resource_input::ListTagsForResourceInputBuilder;
|
3 3 |
|
4 4 | pub use crate::operation::list_tags_for_resource::_list_tags_for_resource_output::ListTagsForResourceOutputBuilder;
|
5 5 |
|
6 6 | impl crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder {
|
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::list_tags_for_resource::ListTagsForResourceOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::list_tags_for_resource::ListTagsForResourceError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.list_tags_for_resource();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `ListTagsForResource`.
|
24 24 | ///
|
25 25 | /// <p>This operation allows you to list all of the tags for a specified resource. Each tag is a label consisting of a key and value. Tags can help you organize, track costs for, and control access to resources.</p><note>
|
26 26 | /// <p>This operation is only supported for the following Amazon S3 resources:</p>
|
27 27 | /// <ul>
|
28 28 | /// <li>
|
29 + | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html">General purpose buckets</a></p></li>
|
30 + | /// <li>
|
29 31 | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-db-tagging.html">Access Points for directory buckets</a></p></li>
|
30 32 | /// <li>
|
31 33 | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-tagging.html">Access Points for general purpose buckets</a></p></li>
|
32 34 | /// <li>
|
33 35 | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Directory buckets</a></p></li>
|
34 36 | /// <li>
|
35 - | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html">Storage Lens groups</a></p></li>
|
37 + | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html">S3 Storage Lens groups</a></p></li>
|
36 38 | /// <li>
|
37 39 | /// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-grants-tagging.html">S3 Access Grants instances, registered locations, and grants</a>.</p></li>
|
38 40 | /// </ul>
|
39 41 | /// </note>
|
40 42 | /// <dl>
|
41 43 | /// <dt>
|
42 44 | /// Permissions
|
43 45 | /// </dt>
|
44 46 | /// <dd>
|
45 - | /// <p>For Storage Lens groups and S3 Access Grants, you must have the <code>s3:ListTagsForResource</code> permission to use this operation.</p>
|
46 - | /// <p>For more information about the required Storage Lens Groups permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions">Setting account permissions to use S3 Storage Lens groups</a>.</p>
|
47 + | /// <p>For general purpose buckets, access points for general purpose buckets, Storage Lens groups, and S3 Access Grants, you must have the <code>s3:ListTagsForResource</code> permission to use this operation.</p>
|
47 48 | /// </dd>
|
48 49 | /// <dt>
|
49 50 | /// Directory bucket permissions
|
50 51 | /// </dt>
|
51 52 | /// <dd>
|
52 - | /// <p>For directory buckets and access points for directory buckets, you must have the <code>s3express:ListTagsForResource</code> permission to use this operation. For more information about directory buckets policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-permissions.html">Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
|
53 + | /// <p>For directory buckets, you must have the <code>s3express:ListTagsForResource</code> permission to use this operation. For more information about directory buckets policies and permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-permissions.html">Identity and Access Management (IAM) for S3 Express One Zone</a> in the <i>Amazon S3 User Guide</i>.</p>
|
53 54 | /// </dd>
|
54 55 | /// <dt>
|
55 56 | /// HTTP Host header syntax
|
56 57 | /// </dt>
|
57 58 | /// <dd>
|
58 59 | /// <p><b>Directory buckets </b> - The HTTP Host header syntax is <code>s3express-control.<i>region</i>.amazonaws.com</code>.</p>
|
59 60 | /// </dd>
|
60 61 | /// </dl>
|
61 - | /// <p>For information about S3 Tagging errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList">List of Amazon S3 Tagging error codes</a>.</p><important>
|
62 - | /// <p>You must URL encode any signed header values that contain spaces. For example, if your header value is <code>my file.txt</code>, containing two spaces after <code>my</code>, you must URL encode this value to <code>my%20%20file.txt</code>.</p>
|
63 - | /// </important>
|
62 + | /// <p>For information about S3 Tagging errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList">List of Amazon S3 Tagging error codes</a>.</p>
|
64 63 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
65 64 | pub struct ListTagsForResourceFluentBuilder {
|
66 65 | handle: ::std::sync::Arc<crate::client::Handle>,
|
67 66 | inner: crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder,
|
68 67 | config_override: ::std::option::Option<crate::config::Builder>,
|
69 68 | }
|
70 69 | impl
|
71 70 | crate::client::customize::internal::CustomizableSend<
|
72 71 | crate::operation::list_tags_for_resource::ListTagsForResourceOutput,
|
73 72 | crate::operation::list_tags_for_resource::ListTagsForResourceError,
|
74 73 | > for ListTagsForResourceFluentBuilder
|
75 74 | {
|
76 75 | fn send(
|
77 76 | self,
|
78 77 | config_override: crate::config::Builder,
|
79 78 | ) -> crate::client::customize::internal::BoxFuture<
|
80 79 | crate::client::customize::internal::SendResult<
|
81 80 | crate::operation::list_tags_for_resource::ListTagsForResourceOutput,
|
82 81 | crate::operation::list_tags_for_resource::ListTagsForResourceError,
|
83 82 | >,
|
84 83 | > {
|
85 84 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
86 85 | }
|
87 86 | }
|
88 87 | impl ListTagsForResourceFluentBuilder {
|
89 88 | /// Creates a new `ListTagsForResourceFluentBuilder`.
|
90 89 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
91 90 | Self {
|
92 91 | handle,
|
93 92 | inner: ::std::default::Default::default(),
|