#[non_exhaustive]pub struct GetDataAccessInput {
pub account_id: Option<String>,
pub target: Option<String>,
pub permission: Option<Permission>,
pub duration_seconds: Option<i32>,
pub privilege: Option<Privilege>,
pub target_type: Option<S3PrefixType>,
}
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.account_id: Option<String>
The ID of the Amazon Web Services account that is making this request.
target: Option<String>
The S3 URI path of the data to which you are requesting temporary access credentials. If the requesting account has an access grant for this data, S3 Access Grants vends temporary access credentials in the response.
permission: 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.
duration_seconds: Option<i32>
The session duration, in seconds, of the temporary access credential that S3 Access Grants vends to the grantee or client application. The default value is 1 hour, but the grantee can specify a range from 900 seconds (15 minutes) up to 43200 seconds (12 hours). If the grantee requests a value higher than this maximum, the operation fails.
privilege: Option<Privilege>
The scope of the temporary access credential that S3 Access Grants vends to the grantee or client application.
-
Default
– The scope of the returned temporary access token is the scope of the grant that is closest to the target scope. -
Minimal
– The scope of the returned temporary access token is the same as the requested target scope as long as the requested scope is the same as or a subset of the grant scope.
target_type: Option<S3PrefixType>
The type of Target
. The only possible value is Object
. Pass this value if the target data that you would like to access is a path to an object. Do not pass this value if the target data is a bucket or a bucket and a prefix.
Implementations§
source§impl GetDataAccessInput
impl GetDataAccessInput
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that is making this request.
sourcepub fn target(&self) -> Option<&str>
pub fn target(&self) -> Option<&str>
The S3 URI path of the data to which you are requesting temporary access credentials. If the requesting account has an access grant for this data, S3 Access Grants vends temporary access credentials in the response.
sourcepub fn permission(&self) -> Option<&Permission>
pub fn 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 duration_seconds(&self) -> Option<i32>
pub fn duration_seconds(&self) -> Option<i32>
The session duration, in seconds, of the temporary access credential that S3 Access Grants vends to the grantee or client application. The default value is 1 hour, but the grantee can specify a range from 900 seconds (15 minutes) up to 43200 seconds (12 hours). If the grantee requests a value higher than this maximum, the operation fails.
sourcepub fn privilege(&self) -> Option<&Privilege>
pub fn privilege(&self) -> Option<&Privilege>
The scope of the temporary access credential that S3 Access Grants vends to the grantee or client application.
-
Default
– The scope of the returned temporary access token is the scope of the grant that is closest to the target scope. -
Minimal
– The scope of the returned temporary access token is the same as the requested target scope as long as the requested scope is the same as or a subset of the grant scope.
sourcepub fn target_type(&self) -> Option<&S3PrefixType>
pub fn target_type(&self) -> Option<&S3PrefixType>
The type of Target
. The only possible value is Object
. Pass this value if the target data that you would like to access is a path to an object. Do not pass this value if the target data is a bucket or a bucket and a prefix.
source§impl GetDataAccessInput
impl GetDataAccessInput
sourcepub fn builder() -> GetDataAccessInputBuilder
pub fn builder() -> GetDataAccessInputBuilder
Creates a new builder-style object to manufacture GetDataAccessInput
.
Trait Implementations§
source§impl Clone for GetDataAccessInput
impl Clone for GetDataAccessInput
source§fn clone(&self) -> GetDataAccessInput
fn clone(&self) -> GetDataAccessInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetDataAccessInput
impl Debug for GetDataAccessInput
source§impl PartialEq for GetDataAccessInput
impl PartialEq for GetDataAccessInput
impl StructuralPartialEq for GetDataAccessInput
Auto Trait Implementations§
impl Freeze for GetDataAccessInput
impl RefUnwindSafe for GetDataAccessInput
impl Send for GetDataAccessInput
impl Sync for GetDataAccessInput
impl Unpin for GetDataAccessInput
impl UnwindSafe for GetDataAccessInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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