#[non_exhaustive]pub struct EncryptionConfigurationBuilder { /* private fields */ }Expand description
A builder for EncryptionConfiguration.
Implementations§
source§impl EncryptionConfigurationBuilder
impl EncryptionConfigurationBuilder
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.
This field is required.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 get_encryption_option(&self) -> &Option<EncryptionOption>
pub fn get_encryption_option(&self) -> &Option<EncryptionOption>
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 get_kms_key(&self) -> &Option<String>
pub fn get_kms_key(&self) -> &Option<String>
For SSE_KMS and CSE_KMS, this is the KMS key ARN or ID.
sourcepub fn build(self) -> Result<EncryptionConfiguration, BuildError>
pub fn build(self) -> Result<EncryptionConfiguration, BuildError>
Consumes the builder and constructs a EncryptionConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EncryptionConfigurationBuilder
impl Clone for EncryptionConfigurationBuilder
source§fn clone(&self) -> EncryptionConfigurationBuilder
fn clone(&self) -> EncryptionConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for EncryptionConfigurationBuilder
impl Default for EncryptionConfigurationBuilder
source§fn default() -> EncryptionConfigurationBuilder
fn default() -> EncryptionConfigurationBuilder
source§impl PartialEq for EncryptionConfigurationBuilder
impl PartialEq for EncryptionConfigurationBuilder
source§fn eq(&self, other: &EncryptionConfigurationBuilder) -> bool
fn eq(&self, other: &EncryptionConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.