Struct aws_sdk_s3control::operation::update_access_grants_location::builders::UpdateAccessGrantsLocationInputBuilder
source · #[non_exhaustive]pub struct UpdateAccessGrantsLocationInputBuilder { /* private fields */ }Expand description
A builder for UpdateAccessGrantsLocationInput.
Implementations§
source§impl UpdateAccessGrantsLocationInputBuilder
impl UpdateAccessGrantsLocationInputBuilder
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 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 that you are updating. 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.
The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered 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.
If you are passing the default location, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in the Subprefix field.
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 that you are updating. 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.
The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered 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.
If you are passing the default location, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in the Subprefix field.
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 that you are updating. 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.
The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered 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.
If you are passing the default location, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in the Subprefix field.
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.
This field is required.sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.
sourcepub fn get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.
sourcepub fn build(self) -> Result<UpdateAccessGrantsLocationInput, BuildError>
pub fn build(self) -> Result<UpdateAccessGrantsLocationInput, BuildError>
Consumes the builder and constructs a UpdateAccessGrantsLocationInput.
source§impl UpdateAccessGrantsLocationInputBuilder
impl UpdateAccessGrantsLocationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateAccessGrantsLocationOutput, SdkError<UpdateAccessGrantsLocationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateAccessGrantsLocationOutput, SdkError<UpdateAccessGrantsLocationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateAccessGrantsLocationInputBuilder
impl Clone for UpdateAccessGrantsLocationInputBuilder
source§fn clone(&self) -> UpdateAccessGrantsLocationInputBuilder
fn clone(&self) -> UpdateAccessGrantsLocationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateAccessGrantsLocationInputBuilder
impl Default for UpdateAccessGrantsLocationInputBuilder
source§fn default() -> UpdateAccessGrantsLocationInputBuilder
fn default() -> UpdateAccessGrantsLocationInputBuilder
source§impl PartialEq for UpdateAccessGrantsLocationInputBuilder
impl PartialEq for UpdateAccessGrantsLocationInputBuilder
source§fn eq(&self, other: &UpdateAccessGrantsLocationInputBuilder) -> bool
fn eq(&self, other: &UpdateAccessGrantsLocationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.