Struct aws_sdk_macie2::types::builders::RevealConfigurationBuilder
source · #[non_exhaustive]pub struct RevealConfigurationBuilder { /* private fields */ }
Expand description
A builder for RevealConfiguration
.
Implementations§
source§impl RevealConfigurationBuilder
impl RevealConfigurationBuilder
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved. The key must be an existing, customer managed, symmetric encryption key that's enabled in the same Amazon Web Services Region as the Amazon Macie account.
If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved. The key must be an existing, customer managed, symmetric encryption key that's enabled in the same Amazon Web Services Region as the Amazon Macie account.
If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved. The key must be an existing, customer managed, symmetric encryption key that's enabled in the same Amazon Web Services Region as the Amazon Macie account.
If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.
sourcepub fn status(self, input: RevealStatus) -> Self
pub fn status(self, input: RevealStatus) -> Self
The status of the configuration for the Amazon Macie account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account.
If you disable the configuration, you also permanently delete current settings that specify how to access affected S3 objects. If your current access method is ASSUME_ROLE, Macie also 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_status(self, input: Option<RevealStatus>) -> Self
pub fn set_status(self, input: Option<RevealStatus>) -> Self
The status of the configuration for the Amazon Macie account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account.
If you disable the configuration, you also permanently delete current settings that specify how to access affected S3 objects. If your current access method is ASSUME_ROLE, Macie also 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_status(&self) -> &Option<RevealStatus>
pub fn get_status(&self) -> &Option<RevealStatus>
The status of the configuration for the Amazon Macie account. In a response, possible values are: ENABLED, the configuration is currently enabled for the account; and, DISABLED, the configuration is currently disabled for the account. In a request, valid values are: ENABLED, enable the configuration for the account; and, DISABLED, disable the configuration for the account.
If you disable the configuration, you also permanently delete current settings that specify how to access affected S3 objects. If your current access method is ASSUME_ROLE, Macie also deletes the external ID and role name currently specified for the configuration. These settings can't be recovered after they're deleted.
sourcepub fn build(self) -> RevealConfiguration
pub fn build(self) -> RevealConfiguration
Consumes the builder and constructs a RevealConfiguration
.
Trait Implementations§
source§impl Clone for RevealConfigurationBuilder
impl Clone for RevealConfigurationBuilder
source§fn clone(&self) -> RevealConfigurationBuilder
fn clone(&self) -> RevealConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RevealConfigurationBuilder
impl Debug for RevealConfigurationBuilder
source§impl Default for RevealConfigurationBuilder
impl Default for RevealConfigurationBuilder
source§fn default() -> RevealConfigurationBuilder
fn default() -> RevealConfigurationBuilder
source§impl PartialEq for RevealConfigurationBuilder
impl PartialEq for RevealConfigurationBuilder
source§fn eq(&self, other: &RevealConfigurationBuilder) -> bool
fn eq(&self, other: &RevealConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.