pub struct ListDirectoryBucketsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListDirectoryBuckets
.
Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide.
Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.
- Permissions
-
You must have the
s3express:ListAllMyDirectoryBuckets
permission in an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource. For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide. - HTTP Host header syntax
-
Directory buckets - The HTTP Host header syntax is
s3express-control.region.amazonaws.com
.
The BucketRegion
response element is not part of the ListDirectoryBuckets
Response Syntax.
Implementations§
source§impl ListDirectoryBucketsFluentBuilder
impl ListDirectoryBucketsFluentBuilder
sourcepub fn as_input(&self) -> &ListDirectoryBucketsInputBuilder
pub fn as_input(&self) -> &ListDirectoryBucketsInputBuilder
Access the ListDirectoryBuckets as a reference.
sourcepub async fn send(
self,
) -> Result<ListDirectoryBucketsOutput, SdkError<ListDirectoryBucketsError, HttpResponse>>
pub async fn send( self, ) -> Result<ListDirectoryBucketsOutput, SdkError<ListDirectoryBucketsError, 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<ListDirectoryBucketsOutput, ListDirectoryBucketsError, Self>
pub fn customize( self, ) -> CustomizableOperation<ListDirectoryBucketsOutput, ListDirectoryBucketsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListDirectoryBucketsPaginator
pub fn into_paginator(self) -> ListDirectoryBucketsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn continuation_token(self, input: impl Into<String>) -> Self
pub fn continuation_token(self, input: impl Into<String>) -> Self
ContinuationToken
indicates to Amazon S3 that the list is being continued on buckets in this account with a token. ContinuationToken
is obfuscated and is not a real bucket name. You can use this ContinuationToken
for the pagination of the list results.
sourcepub fn set_continuation_token(self, input: Option<String>) -> Self
pub fn set_continuation_token(self, input: Option<String>) -> Self
ContinuationToken
indicates to Amazon S3 that the list is being continued on buckets in this account with a token. ContinuationToken
is obfuscated and is not a real bucket name. You can use this ContinuationToken
for the pagination of the list results.
sourcepub fn get_continuation_token(&self) -> &Option<String>
pub fn get_continuation_token(&self) -> &Option<String>
ContinuationToken
indicates to Amazon S3 that the list is being continued on buckets in this account with a token. ContinuationToken
is obfuscated and is not a real bucket name. You can use this ContinuationToken
for the pagination of the list results.
sourcepub fn max_directory_buckets(self, input: i32) -> Self
pub fn max_directory_buckets(self, input: i32) -> Self
Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an Amazon Web Services account, return all the buckets in response.
sourcepub fn set_max_directory_buckets(self, input: Option<i32>) -> Self
pub fn set_max_directory_buckets(self, input: Option<i32>) -> Self
Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an Amazon Web Services account, return all the buckets in response.
sourcepub fn get_max_directory_buckets(&self) -> &Option<i32>
pub fn get_max_directory_buckets(&self) -> &Option<i32>
Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an Amazon Web Services account, return all the buckets in response.
Trait Implementations§
source§impl Clone for ListDirectoryBucketsFluentBuilder
impl Clone for ListDirectoryBucketsFluentBuilder
source§fn clone(&self) -> ListDirectoryBucketsFluentBuilder
fn clone(&self) -> ListDirectoryBucketsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ListDirectoryBucketsFluentBuilder
impl !RefUnwindSafe for ListDirectoryBucketsFluentBuilder
impl Send for ListDirectoryBucketsFluentBuilder
impl Sync for ListDirectoryBucketsFluentBuilder
impl Unpin for ListDirectoryBucketsFluentBuilder
impl !UnwindSafe for ListDirectoryBucketsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more