Struct aws_sdk_s3control::operation::list_access_grants::builders::ListAccessGrantsFluentBuilder
source · pub struct ListAccessGrantsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListAccessGrants
.
Returns the list of access grants in your S3 Access Grants instance.
- Permissions
-
You must have the
s3:ListAccessGrants
permission to use this operation.
Implementations§
source§impl ListAccessGrantsFluentBuilder
impl ListAccessGrantsFluentBuilder
sourcepub fn as_input(&self) -> &ListAccessGrantsInputBuilder
pub fn as_input(&self) -> &ListAccessGrantsInputBuilder
Access the ListAccessGrants as a reference.
sourcepub async fn send(
self
) -> Result<ListAccessGrantsOutput, SdkError<ListAccessGrantsError, HttpResponse>>
pub async fn send( self ) -> Result<ListAccessGrantsOutput, SdkError<ListAccessGrantsError, 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<ListAccessGrantsOutput, ListAccessGrantsError, Self>
pub fn customize( self ) -> CustomizableOperation<ListAccessGrantsOutput, ListAccessGrantsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListAccessGrantsPaginator
pub fn into_paginator(self) -> ListAccessGrantsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that is making this request.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that is making this request.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The ID of the Amazon Web Services account that is making this request.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A pagination token to request the next page of results. Pass this value into a subsequent List Access Grants
request in order to retrieve the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A pagination token to request the next page of results. Pass this value into a subsequent List Access Grants
request in order to retrieve the next page of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
A pagination token to request the next page of results. Pass this value into a subsequent List Access Grants
request in order to retrieve the next page of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of access grants that you would like returned in the List Access Grants
response. If the results include the pagination token NextToken
, make another call using the NextToken
to determine if there are more results.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of access grants that you would like returned in the List Access Grants
response. If the results include the pagination token NextToken
, make another call using the NextToken
to determine if there are more results.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of access grants that you would like returned in the List Access Grants
response. If the results include the pagination token NextToken
, make another call using the NextToken
to determine if there are more results.
sourcepub fn grantee_type(self, input: GranteeType) -> Self
pub fn grantee_type(self, input: GranteeType) -> Self
The type of the grantee to which access has been granted. It can be one of the following values:
-
IAM
- An IAM user or role. -
DIRECTORY_USER
- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP
- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
sourcepub fn set_grantee_type(self, input: Option<GranteeType>) -> Self
pub fn set_grantee_type(self, input: Option<GranteeType>) -> Self
The type of the grantee to which access has been granted. It can be one of the following values:
-
IAM
- An IAM user or role. -
DIRECTORY_USER
- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP
- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
sourcepub fn get_grantee_type(&self) -> &Option<GranteeType>
pub fn get_grantee_type(&self) -> &Option<GranteeType>
The type of the grantee to which access has been granted. It can be one of the following values:
-
IAM
- An IAM user or role. -
DIRECTORY_USER
- Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance. -
DIRECTORY_GROUP
- Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.
sourcepub fn grantee_identifier(self, input: impl Into<String>) -> Self
pub fn grantee_identifier(self, input: impl Into<String>) -> Self
The unique identifer of the Grantee
. If the grantee type is IAM
, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.
sourcepub fn set_grantee_identifier(self, input: Option<String>) -> Self
pub fn set_grantee_identifier(self, input: Option<String>) -> Self
The unique identifer of the Grantee
. If the grantee type is IAM
, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.
sourcepub fn get_grantee_identifier(&self) -> &Option<String>
pub fn get_grantee_identifier(&self) -> &Option<String>
The unique identifer of the Grantee
. If the grantee type is IAM
, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.
sourcepub fn permission(self, input: Permission) -> Self
pub fn permission(self, input: Permission) -> Self
The type of permission granted to your S3 data, which can be set to one of the following values:
-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
sourcepub fn set_permission(self, input: Option<Permission>) -> Self
pub fn set_permission(self, input: Option<Permission>) -> Self
The type of permission granted to your S3 data, which can be set to one of the following values:
-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
sourcepub fn get_permission(&self) -> &Option<Permission>
pub fn get_permission(&self) -> &Option<Permission>
The type of permission granted to your S3 data, which can be set to one of the following values:
-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
sourcepub fn grant_scope(self, input: impl Into<String>) -> Self
pub fn grant_scope(self, input: impl Into<String>) -> Self
The S3 path of the data to which you are granting access. It is the result of appending the Subprefix
to the location scope.
sourcepub fn set_grant_scope(self, input: Option<String>) -> Self
pub fn set_grant_scope(self, input: Option<String>) -> Self
The S3 path of the data to which you are granting access. It is the result of appending the Subprefix
to the location scope.
sourcepub fn get_grant_scope(&self) -> &Option<String>
pub fn get_grant_scope(&self) -> &Option<String>
The S3 path of the data to which you are granting access. It is the result of appending the Subprefix
to the location scope.
sourcepub fn application_arn(self, input: impl Into<String>) -> Self
pub fn application_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
sourcepub fn set_application_arn(self, input: Option<String>) -> Self
pub fn set_application_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
sourcepub fn get_application_arn(&self) -> &Option<String>
pub fn get_application_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
Trait Implementations§
source§impl Clone for ListAccessGrantsFluentBuilder
impl Clone for ListAccessGrantsFluentBuilder
source§fn clone(&self) -> ListAccessGrantsFluentBuilder
fn clone(&self) -> ListAccessGrantsFluentBuilder
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 ListAccessGrantsFluentBuilder
impl !RefUnwindSafe for ListAccessGrantsFluentBuilder
impl Send for ListAccessGrantsFluentBuilder
impl Sync for ListAccessGrantsFluentBuilder
impl Unpin for ListAccessGrantsFluentBuilder
impl !UnwindSafe for ListAccessGrantsFluentBuilder
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