#[non_exhaustive]pub struct GetAccessGrantOutput {
pub created_at: Option<DateTime>,
pub access_grant_id: Option<String>,
pub access_grant_arn: Option<String>,
pub grantee: Option<Grantee>,
pub permission: Option<Permission>,
pub access_grants_location_id: Option<String>,
pub access_grants_location_configuration: Option<AccessGrantsLocationConfiguration>,
pub grant_scope: Option<String>,
pub application_arn: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created_at: Option<DateTime>
The date and time when you created the access grant.
access_grant_id: Option<String>
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
access_grant_arn: Option<String>
The Amazon Resource Name (ARN) of the access grant.
grantee: 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.
permission: 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.
access_grants_location_id: 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.
access_grants_location_configuration: 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.
grant_scope: 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.
application_arn: 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.
Implementations§
source§impl GetAccessGrantOutput
impl GetAccessGrantOutput
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time when you created the access grant.
sourcepub fn access_grant_id(&self) -> Option<&str>
pub fn access_grant_id(&self) -> Option<&str>
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) -> Option<&str>
pub fn access_grant_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the access grant.
sourcepub fn grantee(&self) -> Option<&Grantee>
pub fn 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) -> Option<&Permission>
pub fn 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) -> Option<&str>
pub fn access_grants_location_id(&self) -> Option<&str>
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
) -> Option<&AccessGrantsLocationConfiguration>
pub fn 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) -> Option<&str>
pub fn grant_scope(&self) -> Option<&str>
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) -> Option<&str>
pub fn application_arn(&self) -> Option<&str>
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.
source§impl GetAccessGrantOutput
impl GetAccessGrantOutput
sourcepub fn builder() -> GetAccessGrantOutputBuilder
pub fn builder() -> GetAccessGrantOutputBuilder
Creates a new builder-style object to manufacture GetAccessGrantOutput
.
Trait Implementations§
source§impl Clone for GetAccessGrantOutput
impl Clone for GetAccessGrantOutput
source§fn clone(&self) -> GetAccessGrantOutput
fn clone(&self) -> GetAccessGrantOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetAccessGrantOutput
impl Debug for GetAccessGrantOutput
source§impl PartialEq for GetAccessGrantOutput
impl PartialEq for GetAccessGrantOutput
source§fn eq(&self, other: &GetAccessGrantOutput) -> bool
fn eq(&self, other: &GetAccessGrantOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetAccessGrantOutput
impl RequestId for GetAccessGrantOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetAccessGrantOutput
Auto Trait Implementations§
impl Freeze for GetAccessGrantOutput
impl RefUnwindSafe for GetAccessGrantOutput
impl Send for GetAccessGrantOutput
impl Sync for GetAccessGrantOutput
impl Unpin for GetAccessGrantOutput
impl UnwindSafe for GetAccessGrantOutput
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