Struct aws_sdk_s3control::operation::create_storage_lens_group::builders::CreateStorageLensGroupFluentBuilder
source · pub struct CreateStorageLensGroupFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateStorageLensGroup.
Creates a new S3 Storage Lens group and associates it with the specified Amazon Web Services account ID. An S3 Storage Lens group is a custom grouping of objects based on prefix, suffix, object tags, object size, object age, or a combination of these filters. For each Storage Lens group that you’ve created, you can also optionally add Amazon Web Services resource tags. For more information about S3 Storage Lens groups, see Working with S3 Storage Lens groups.
To use this operation, you must have the permission to perform the s3:CreateStorageLensGroup action. If you’re trying to create a Storage Lens group with Amazon Web Services resource tags, you must also have permission to perform the s3:TagResource action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
Implementations§
source§impl CreateStorageLensGroupFluentBuilder
impl CreateStorageLensGroupFluentBuilder
sourcepub fn as_input(&self) -> &CreateStorageLensGroupInputBuilder
pub fn as_input(&self) -> &CreateStorageLensGroupInputBuilder
Access the CreateStorageLensGroup as a reference.
sourcepub async fn send(
self
) -> Result<CreateStorageLensGroupOutput, SdkError<CreateStorageLensGroupError, HttpResponse>>
pub async fn send( self ) -> Result<CreateStorageLensGroupOutput, SdkError<CreateStorageLensGroupError, 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<CreateStorageLensGroupOutput, CreateStorageLensGroupError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateStorageLensGroupOutput, CreateStorageLensGroupError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
sourcepub fn storage_lens_group(self, input: StorageLensGroup) -> Self
pub fn storage_lens_group(self, input: StorageLensGroup) -> Self
The Storage Lens group configuration.
sourcepub fn set_storage_lens_group(self, input: Option<StorageLensGroup>) -> Self
pub fn set_storage_lens_group(self, input: Option<StorageLensGroup>) -> Self
The Storage Lens group configuration.
sourcepub fn get_storage_lens_group(&self) -> &Option<StorageLensGroup>
pub fn get_storage_lens_group(&self) -> &Option<StorageLensGroup>
The Storage Lens group configuration.
Appends an item to Tags.
To override the contents of this collection use set_tags.
The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
Trait Implementations§
source§impl Clone for CreateStorageLensGroupFluentBuilder
impl Clone for CreateStorageLensGroupFluentBuilder
source§fn clone(&self) -> CreateStorageLensGroupFluentBuilder
fn clone(&self) -> CreateStorageLensGroupFluentBuilder
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 CreateStorageLensGroupFluentBuilder
impl !RefUnwindSafe for CreateStorageLensGroupFluentBuilder
impl Send for CreateStorageLensGroupFluentBuilder
impl Sync for CreateStorageLensGroupFluentBuilder
impl Unpin for CreateStorageLensGroupFluentBuilder
impl !UnwindSafe for CreateStorageLensGroupFluentBuilder
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> 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