#[non_exhaustive]pub struct UpdateRetrievalConfigurationBuilder { /* private fields */ }
Expand description
A builder for UpdateRetrievalConfiguration
.
Implementations§
source§impl UpdateRetrievalConfigurationBuilder
impl UpdateRetrievalConfigurationBuilder
sourcepub fn retrieval_mode(self, input: RetrievalMode) -> Self
pub fn retrieval_mode(self, input: RetrievalMode) -> Self
The access method to use when retrieving sensitive data from affected S3 objects. Valid values are: ASSUME_ROLE, assume an IAM role that is in the affected Amazon Web Services account and delegates access to Amazon Macie; and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data. If you specify ASSUME_ROLE, also specify the name of an existing IAM role for Macie to assume (roleName).
If you change this value from ASSUME_ROLE to CALLER_CREDENTIALS for an existing configuration, Macie permanently deletes the external ID and role name currently specified for the configuration. These settings can't be recovered after they're deleted.
sourcepub fn set_retrieval_mode(self, input: Option<RetrievalMode>) -> Self
pub fn set_retrieval_mode(self, input: Option<RetrievalMode>) -> Self
The access method to use when retrieving sensitive data from affected S3 objects. Valid values are: ASSUME_ROLE, assume an IAM role that is in the affected Amazon Web Services account and delegates access to Amazon Macie; and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data. If you specify ASSUME_ROLE, also specify the name of an existing IAM role for Macie to assume (roleName).
If you change this value from ASSUME_ROLE to CALLER_CREDENTIALS for an existing configuration, Macie permanently deletes the external ID and role name currently specified for the configuration. These settings can't be recovered after they're deleted.
sourcepub fn get_retrieval_mode(&self) -> &Option<RetrievalMode>
pub fn get_retrieval_mode(&self) -> &Option<RetrievalMode>
The access method to use when retrieving sensitive data from affected S3 objects. Valid values are: ASSUME_ROLE, assume an IAM role that is in the affected Amazon Web Services account and delegates access to Amazon Macie; and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data. If you specify ASSUME_ROLE, also specify the name of an existing IAM role for Macie to assume (roleName).
If you change this value from ASSUME_ROLE to CALLER_CREDENTIALS for an existing configuration, Macie permanently deletes the external ID and role name currently specified for the configuration. These settings can't be recovered after they're deleted.
sourcepub fn role_name(self, input: impl Into<String>) -> Self
pub fn role_name(self, input: impl Into<String>) -> Self
The name of the IAM role that is in the affected Amazon Web Services account and Amazon Macie is allowed to assume when retrieving sensitive data from affected S3 objects for the account. The trust and permissions policies for the role must meet all requirements for Macie to assume the role.
sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The name of the IAM role that is in the affected Amazon Web Services account and Amazon Macie is allowed to assume when retrieving sensitive data from affected S3 objects for the account. The trust and permissions policies for the role must meet all requirements for Macie to assume the role.
sourcepub fn get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
The name of the IAM role that is in the affected Amazon Web Services account and Amazon Macie is allowed to assume when retrieving sensitive data from affected S3 objects for the account. The trust and permissions policies for the role must meet all requirements for Macie to assume the role.
sourcepub fn build(self) -> UpdateRetrievalConfiguration
pub fn build(self) -> UpdateRetrievalConfiguration
Consumes the builder and constructs a UpdateRetrievalConfiguration
.
Trait Implementations§
source§impl Clone for UpdateRetrievalConfigurationBuilder
impl Clone for UpdateRetrievalConfigurationBuilder
source§fn clone(&self) -> UpdateRetrievalConfigurationBuilder
fn clone(&self) -> UpdateRetrievalConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateRetrievalConfigurationBuilder
impl Default for UpdateRetrievalConfigurationBuilder
source§fn default() -> UpdateRetrievalConfigurationBuilder
fn default() -> UpdateRetrievalConfigurationBuilder
source§impl PartialEq for UpdateRetrievalConfigurationBuilder
impl PartialEq for UpdateRetrievalConfigurationBuilder
source§fn eq(&self, other: &UpdateRetrievalConfigurationBuilder) -> bool
fn eq(&self, other: &UpdateRetrievalConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.