Struct aws_sdk_s3control::operation::get_access_grant::builders::GetAccessGrantOutputBuilder
source · #[non_exhaustive]pub struct GetAccessGrantOutputBuilder { /* private fields */ }Expand description
A builder for GetAccessGrantOutput.
Implementations§
source§impl GetAccessGrantOutputBuilder
impl GetAccessGrantOutputBuilder
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time when you created the access grant.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date and time when you created the access grant.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time when you created the access grant.
sourcepub fn access_grant_id(self, input: impl Into<String>) -> Self
pub fn access_grant_id(self, input: impl Into<String>) -> Self
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
sourcepub fn set_access_grant_id(self, input: Option<String>) -> Self
pub fn set_access_grant_id(self, input: Option<String>) -> Self
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
sourcepub fn get_access_grant_id(&self) -> &Option<String>
pub fn get_access_grant_id(&self) -> &Option<String>
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
sourcepub fn access_grant_arn(self, input: impl Into<String>) -> Self
pub fn access_grant_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the access grant.
sourcepub fn set_access_grant_arn(self, input: Option<String>) -> Self
pub fn set_access_grant_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the access grant.
sourcepub fn get_access_grant_arn(&self) -> &Option<String>
pub fn get_access_grant_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the access grant.
sourcepub fn grantee(self, input: Grantee) -> Self
pub fn grantee(self, input: Grantee) -> Self
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the S3 Access Grants instance, the grantee can also be a corporate directory user or group.
sourcepub fn set_grantee(self, input: Option<Grantee>) -> Self
pub fn set_grantee(self, input: Option<Grantee>) -> Self
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the S3 Access Grants instance, the grantee can also be a corporate directory user or group.
sourcepub fn get_grantee(&self) -> &Option<Grantee>
pub fn get_grantee(&self) -> &Option<Grantee>
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the S3 Access Grants instance, the grantee can also be a corporate directory user or group.
sourcepub fn permission(self, input: Permission) -> Self
pub fn permission(self, input: Permission) -> Self
The type of permission that was granted in the access grant. Can be 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 that was granted in the access grant. Can be 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 that was granted in the access grant. Can be 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 access_grants_location_id(self, input: impl Into<String>) -> Self
pub fn access_grants_location_id(self, input: impl Into<String>) -> Self
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.
sourcepub fn set_access_grants_location_id(self, input: Option<String>) -> Self
pub fn set_access_grants_location_id(self, input: Option<String>) -> Self
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.
sourcepub fn get_access_grants_location_id(&self) -> &Option<String>
pub fn get_access_grants_location_id(&self) -> &Option<String>
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.
sourcepub fn access_grants_location_configuration(
self,
input: AccessGrantsLocationConfiguration
) -> Self
pub fn access_grants_location_configuration( self, input: AccessGrantsLocationConfiguration ) -> Self
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
sourcepub fn set_access_grants_location_configuration(
self,
input: Option<AccessGrantsLocationConfiguration>
) -> Self
pub fn set_access_grants_location_configuration( self, input: Option<AccessGrantsLocationConfiguration> ) -> Self
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
sourcepub fn get_access_grants_location_configuration(
&self
) -> &Option<AccessGrantsLocationConfiguration>
pub fn get_access_grants_location_configuration( &self ) -> &Option<AccessGrantsLocationConfiguration>
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
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) -> GetAccessGrantOutput
pub fn build(self) -> GetAccessGrantOutput
Consumes the builder and constructs a GetAccessGrantOutput.
Trait Implementations§
source§impl Clone for GetAccessGrantOutputBuilder
impl Clone for GetAccessGrantOutputBuilder
source§fn clone(&self) -> GetAccessGrantOutputBuilder
fn clone(&self) -> GetAccessGrantOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetAccessGrantOutputBuilder
impl Debug for GetAccessGrantOutputBuilder
source§impl Default for GetAccessGrantOutputBuilder
impl Default for GetAccessGrantOutputBuilder
source§fn default() -> GetAccessGrantOutputBuilder
fn default() -> GetAccessGrantOutputBuilder
source§impl PartialEq for GetAccessGrantOutputBuilder
impl PartialEq for GetAccessGrantOutputBuilder
source§fn eq(&self, other: &GetAccessGrantOutputBuilder) -> bool
fn eq(&self, other: &GetAccessGrantOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetAccessGrantOutputBuilder
Auto Trait Implementations§
impl Freeze for GetAccessGrantOutputBuilder
impl RefUnwindSafe for GetAccessGrantOutputBuilder
impl Send for GetAccessGrantOutputBuilder
impl Sync for GetAccessGrantOutputBuilder
impl Unpin for GetAccessGrantOutputBuilder
impl UnwindSafe for GetAccessGrantOutputBuilder
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