Struct aws_sdk_s3control::operation::list_access_grants::builders::ListAccessGrantsInputBuilder
source · #[non_exhaustive]pub struct ListAccessGrantsInputBuilder { /* private fields */ }
Expand description
A builder for ListAccessGrantsInput
.
Implementations§
source§impl ListAccessGrantsInputBuilder
impl ListAccessGrantsInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<ListAccessGrantsInput, BuildError>
pub fn build(self) -> Result<ListAccessGrantsInput, BuildError>
Consumes the builder and constructs a ListAccessGrantsInput
.
source§impl ListAccessGrantsInputBuilder
impl ListAccessGrantsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListAccessGrantsOutput, SdkError<ListAccessGrantsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListAccessGrantsOutput, SdkError<ListAccessGrantsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListAccessGrantsInputBuilder
impl Clone for ListAccessGrantsInputBuilder
source§fn clone(&self) -> ListAccessGrantsInputBuilder
fn clone(&self) -> ListAccessGrantsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListAccessGrantsInputBuilder
impl Debug for ListAccessGrantsInputBuilder
source§impl Default for ListAccessGrantsInputBuilder
impl Default for ListAccessGrantsInputBuilder
source§fn default() -> ListAccessGrantsInputBuilder
fn default() -> ListAccessGrantsInputBuilder
source§impl PartialEq for ListAccessGrantsInputBuilder
impl PartialEq for ListAccessGrantsInputBuilder
source§fn eq(&self, other: &ListAccessGrantsInputBuilder) -> bool
fn eq(&self, other: &ListAccessGrantsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListAccessGrantsInputBuilder
Auto Trait Implementations§
impl Freeze for ListAccessGrantsInputBuilder
impl RefUnwindSafe for ListAccessGrantsInputBuilder
impl Send for ListAccessGrantsInputBuilder
impl Sync for ListAccessGrantsInputBuilder
impl Unpin for ListAccessGrantsInputBuilder
impl UnwindSafe for ListAccessGrantsInputBuilder
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