#[non_exhaustive]pub struct GetDataAccessInputBuilder { /* private fields */ }
Expand description
A builder for GetDataAccessInput
.
Implementations§
source§impl GetDataAccessInputBuilder
impl GetDataAccessInputBuilder
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 target(self, input: impl Into<String>) -> Self
pub fn target(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_target(self, input: Option<String>) -> Self
pub fn set_target(self, input: Option<String>) -> Self
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 get_target(&self) -> &Option<String>
pub fn get_target(&self) -> &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.
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 duration_seconds(self, input: i32) -> Self
pub fn duration_seconds(self, input: i32) -> Self
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 set_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_duration_seconds(self, input: Option<i32>) -> Self
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 get_duration_seconds(&self) -> &Option<i32>
pub fn get_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, input: Privilege) -> Self
pub fn privilege(self, input: Privilege) -> Self
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 set_privilege(self, input: Option<Privilege>) -> Self
pub fn set_privilege(self, input: Option<Privilege>) -> Self
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 get_privilege(&self) -> &Option<Privilege>
pub fn get_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, input: S3PrefixType) -> Self
pub fn target_type(self, input: S3PrefixType) -> Self
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.
sourcepub fn set_target_type(self, input: Option<S3PrefixType>) -> Self
pub fn set_target_type(self, input: Option<S3PrefixType>) -> Self
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.
sourcepub fn get_target_type(&self) -> &Option<S3PrefixType>
pub fn get_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.
sourcepub fn build(self) -> Result<GetDataAccessInput, BuildError>
pub fn build(self) -> Result<GetDataAccessInput, BuildError>
Consumes the builder and constructs a GetDataAccessInput
.
source§impl GetDataAccessInputBuilder
impl GetDataAccessInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetDataAccessOutput, SdkError<GetDataAccessError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetDataAccessOutput, SdkError<GetDataAccessError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetDataAccessInputBuilder
impl Clone for GetDataAccessInputBuilder
source§fn clone(&self) -> GetDataAccessInputBuilder
fn clone(&self) -> GetDataAccessInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetDataAccessInputBuilder
impl Debug for GetDataAccessInputBuilder
source§impl Default for GetDataAccessInputBuilder
impl Default for GetDataAccessInputBuilder
source§fn default() -> GetDataAccessInputBuilder
fn default() -> GetDataAccessInputBuilder
impl StructuralPartialEq for GetDataAccessInputBuilder
Auto Trait Implementations§
impl Freeze for GetDataAccessInputBuilder
impl RefUnwindSafe for GetDataAccessInputBuilder
impl Send for GetDataAccessInputBuilder
impl Sync for GetDataAccessInputBuilder
impl Unpin for GetDataAccessInputBuilder
impl UnwindSafe for GetDataAccessInputBuilder
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