#[non_exhaustive]pub struct CreateAccessGrantOutput {
pub created_at: Option<DateTime>,
pub access_grant_id: Option<String>,
pub access_grant_arn: Option<String>,
pub grantee: Option<Grantee>,
pub access_grants_location_id: Option<String>,
pub access_grants_location_configuration: Option<AccessGrantsLocationConfiguration>,
pub permission: Option<Permission>,
pub application_arn: Option<String>,
pub grant_scope: 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 your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
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.
permission: Option<Permission>
The type of access that you are granting 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.
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.
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.
Implementations§
source§impl CreateAccessGrantOutput
impl CreateAccessGrantOutput
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 your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
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 permission(&self) -> Option<&Permission>
pub fn permission(&self) -> Option<&Permission>
The type of access that you are granting 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 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.
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.
source§impl CreateAccessGrantOutput
impl CreateAccessGrantOutput
sourcepub fn builder() -> CreateAccessGrantOutputBuilder
pub fn builder() -> CreateAccessGrantOutputBuilder
Creates a new builder-style object to manufacture CreateAccessGrantOutput
.
Trait Implementations§
source§impl Clone for CreateAccessGrantOutput
impl Clone for CreateAccessGrantOutput
source§fn clone(&self) -> CreateAccessGrantOutput
fn clone(&self) -> CreateAccessGrantOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAccessGrantOutput
impl Debug for CreateAccessGrantOutput
source§impl PartialEq for CreateAccessGrantOutput
impl PartialEq for CreateAccessGrantOutput
source§fn eq(&self, other: &CreateAccessGrantOutput) -> bool
fn eq(&self, other: &CreateAccessGrantOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateAccessGrantOutput
impl RequestId for CreateAccessGrantOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateAccessGrantOutput
Auto Trait Implementations§
impl Freeze for CreateAccessGrantOutput
impl RefUnwindSafe for CreateAccessGrantOutput
impl Send for CreateAccessGrantOutput
impl Sync for CreateAccessGrantOutput
impl Unpin for CreateAccessGrantOutput
impl UnwindSafe for CreateAccessGrantOutput
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