Struct aws_sdk_macie2::types::RetrievalConfiguration
source · #[non_exhaustive]pub struct RetrievalConfiguration {
pub external_id: Option<String>,
pub retrieval_mode: Option<RetrievalMode>,
pub role_name: Option<String>,
}
Expand description
Provides information about the access method and settings that are used to retrieve occurrences of sensitive data reported by findings.
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.external_id: 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). This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
This ID is a unique alphanumeric string that Amazon Macie generates automatically after you configure it to assume an IAM role. For a Macie administrator to retrieve sensitive data from an affected S3 object for a member account, the trust policy for the role in the member account must include an sts:ExternalId condition that requires this ID.
retrieval_mode: Option<RetrievalMode>
The access method that's used to retrieve 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.
role_name: 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.
Implementations§
source§impl RetrievalConfiguration
impl RetrievalConfiguration
sourcepub fn external_id(&self) -> Option<&str>
pub fn external_id(&self) -> Option<&str>
The external ID to specify in the trust policy for the IAM role to assume when retrieving sensitive data from affected S3 objects (roleName). This value is null if the value for retrievalMode is CALLER_CREDENTIALS.
This ID is a unique alphanumeric string that Amazon Macie generates automatically after you configure it to assume an IAM role. For a Macie administrator to retrieve sensitive data from an affected S3 object for a member account, the trust policy for the role in the member account must include an sts:ExternalId condition that requires this ID.
sourcepub fn retrieval_mode(&self) -> Option<&RetrievalMode>
pub fn retrieval_mode(&self) -> Option<&RetrievalMode>
The access method that's used to retrieve 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) -> Option<&str>
pub fn role_name(&self) -> Option<&str>
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.
source§impl RetrievalConfiguration
impl RetrievalConfiguration
sourcepub fn builder() -> RetrievalConfigurationBuilder
pub fn builder() -> RetrievalConfigurationBuilder
Creates a new builder-style object to manufacture RetrievalConfiguration
.
Trait Implementations§
source§impl Clone for RetrievalConfiguration
impl Clone for RetrievalConfiguration
source§fn clone(&self) -> RetrievalConfiguration
fn clone(&self) -> RetrievalConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetrievalConfiguration
impl Debug for RetrievalConfiguration
source§impl PartialEq for RetrievalConfiguration
impl PartialEq for RetrievalConfiguration
source§fn eq(&self, other: &RetrievalConfiguration) -> bool
fn eq(&self, other: &RetrievalConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.