Class CfnWorkGroup.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroup.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroup.EncryptionConfigurationProperty>
- Enclosing interface:
CfnWorkGroup.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnWorkGroup.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroup.EncryptionConfigurationProperty>
A builder for
CfnWorkGroup.EncryptionConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionOption(String encryptionOption) Sets the value ofCfnWorkGroup.EncryptionConfigurationProperty.getEncryptionOption()Sets the value ofCfnWorkGroup.EncryptionConfigurationProperty.getKmsKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionOption
@Stability(Stable) public CfnWorkGroup.EncryptionConfigurationProperty.Builder encryptionOption(String encryptionOption) Sets the value ofCfnWorkGroup.EncryptionConfigurationProperty.getEncryptionOption()- Parameters:
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. This parameter is required. 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.- Returns:
this
-
kmsKey
@Stability(Stable) public CfnWorkGroup.EncryptionConfigurationProperty.Builder kmsKey(String kmsKey) Sets the value ofCfnWorkGroup.EncryptionConfigurationProperty.getKmsKey()- Parameters:
kmsKey- ForSSE_KMSandCSE_KMS, this is the KMS key ARN or ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkGroup.EncryptionConfigurationProperty>- Returns:
- a new instance of
CfnWorkGroup.EncryptionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-