#[non_exhaustive]pub struct UpdateRetrievalConfiguration {
pub retrieval_mode: Option<RetrievalMode>,
pub role_name: Option<String>,
}
Expand description
Specifies the access method and settings to use when retrieving occurrences of sensitive data reported by findings. If your request specifies an Identity and Access Management (IAM) role to assume, Amazon Macie verifies that the role exists and the attached policies are configured correctly. If there's an issue, Macie returns an error. For information about addressing the issue, see Configuration options and requirements for retrieving sensitive data samples in the Amazon Macie User Guide.
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.retrieval_mode: 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.
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. The trust and permissions policies for the role must meet all requirements for Macie to assume the role.
Implementations§
source§impl UpdateRetrievalConfiguration
impl UpdateRetrievalConfiguration
sourcepub fn retrieval_mode(&self) -> Option<&RetrievalMode>
pub fn 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) -> 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. The trust and permissions policies for the role must meet all requirements for Macie to assume the role.
source§impl UpdateRetrievalConfiguration
impl UpdateRetrievalConfiguration
sourcepub fn builder() -> UpdateRetrievalConfigurationBuilder
pub fn builder() -> UpdateRetrievalConfigurationBuilder
Creates a new builder-style object to manufacture UpdateRetrievalConfiguration
.
Trait Implementations§
source§impl Clone for UpdateRetrievalConfiguration
impl Clone for UpdateRetrievalConfiguration
source§fn clone(&self) -> UpdateRetrievalConfiguration
fn clone(&self) -> UpdateRetrievalConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateRetrievalConfiguration
impl Debug for UpdateRetrievalConfiguration
source§impl PartialEq for UpdateRetrievalConfiguration
impl PartialEq for UpdateRetrievalConfiguration
source§fn eq(&self, other: &UpdateRetrievalConfiguration) -> bool
fn eq(&self, other: &UpdateRetrievalConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.