Struct aws_sdk_athena::model::encryption_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EncryptionConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn encryption_option(self, input: EncryptionOption) -> Self
pub fn encryption_option(self, input: EncryptionOption) -> Self
Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used.
If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.
sourcepub fn set_encryption_option(self, input: Option<EncryptionOption>) -> Self
pub fn set_encryption_option(self, input: Option<EncryptionOption>) -> Self
Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used.
If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.
sourcepub fn kms_key(self, input: impl Into<String>) -> Self
pub fn kms_key(self, input: impl Into<String>) -> Self
For SSE_KMS
and CSE_KMS
, this is the KMS key ARN or ID.
sourcepub fn set_kms_key(self, input: Option<String>) -> Self
pub fn set_kms_key(self, input: Option<String>) -> Self
For SSE_KMS
and CSE_KMS
, this is the KMS key ARN or ID.
sourcepub fn build(self) -> EncryptionConfiguration
pub fn build(self) -> EncryptionConfiguration
Consumes the builder and constructs a EncryptionConfiguration
.