#[non_exhaustive]pub struct RetrievalConfigurationBuilder { /* private fields */ }
Expand description
A builder for RetrievalConfiguration
.
Implementations§
source§impl RetrievalConfigurationBuilder
impl RetrievalConfigurationBuilder
sourcepub fn external_id(self, input: impl Into<String>) -> Self
pub fn external_id(self, input: impl Into<String>) -> Self
The external ID to specify in the trust policy for the IAM role to assume when retrieving sensitive data from affected S3 objects (roleName). The trust policy must include an sts:ExternalId condition that requires this ID.
This ID is a unique alphanumeric string that Amazon Macie generates automatically after you configure it to assume a role. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
sourcepub fn set_external_id(self, input: Option<String>) -> Self
pub fn set_external_id(self, input: Option<String>) -> Self
The external ID to specify in the trust policy for the IAM role to assume when retrieving sensitive data from affected S3 objects (roleName). The trust policy must include an sts:ExternalId condition that requires this ID.
This ID is a unique alphanumeric string that Amazon Macie generates automatically after you configure it to assume a role. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
sourcepub fn get_external_id(&self) -> &Option<String>
pub fn get_external_id(&self) -> &Option<String>
The external ID to specify in the trust policy for the IAM role to assume when retrieving sensitive data from affected S3 objects (roleName). The trust policy must include an sts:ExternalId condition that requires this ID.
This ID is a unique alphanumeric string that Amazon Macie generates automatically after you configure it to assume a role. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
sourcepub fn retrieval_mode(self, input: RetrievalMode) -> Self
pub fn retrieval_mode(self, input: RetrievalMode) -> Self
The access method that's used 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 (roleName); and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data.
This field is required.sourcepub fn set_retrieval_mode(self, input: Option<RetrievalMode>) -> Self
pub fn set_retrieval_mode(self, input: Option<RetrievalMode>) -> Self
The access method that's used 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 (roleName); and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data.
sourcepub fn get_retrieval_mode(&self) -> &Option<RetrievalMode>
pub fn get_retrieval_mode(&self) -> &Option<RetrievalMode>
The access method that's used 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 (roleName); and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data.
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. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
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. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
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. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
sourcepub fn build(self) -> RetrievalConfiguration
pub fn build(self) -> RetrievalConfiguration
Consumes the builder and constructs a RetrievalConfiguration
.
Trait Implementations§
source§impl Clone for RetrievalConfigurationBuilder
impl Clone for RetrievalConfigurationBuilder
source§fn clone(&self) -> RetrievalConfigurationBuilder
fn clone(&self) -> RetrievalConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RetrievalConfigurationBuilder
impl Default for RetrievalConfigurationBuilder
source§fn default() -> RetrievalConfigurationBuilder
fn default() -> RetrievalConfigurationBuilder
source§impl PartialEq for RetrievalConfigurationBuilder
impl PartialEq for RetrievalConfigurationBuilder
source§fn eq(&self, other: &RetrievalConfigurationBuilder) -> bool
fn eq(&self, other: &RetrievalConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.