Class CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty>
- Enclosing interface:
CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty
@Stability(Stable)
public static final class CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.returnConnectionPasswordEncrypted
(Boolean returnConnectionPasswordEncrypted) returnConnectionPasswordEncrypted
(IResolvable returnConnectionPasswordEncrypted)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
@Stability(Stable) public CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- An AWS KMS key that is used to encrypt the connection password. If connection password protection is enabled, the caller ofCreateConnection
andUpdateConnection
needs at leastkms:Encrypt
permission on the specified AWS KMS key, to encrypt passwords before storing them in the Data Catalog. You can set the decrypt permission to enable or restrict access on the password key according to your security requirements.- Returns:
this
-
returnConnectionPasswordEncrypted
@Stability(Stable) public CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.Builder returnConnectionPasswordEncrypted(Boolean returnConnectionPasswordEncrypted) Sets the value ofCfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.getReturnConnectionPasswordEncrypted()
- Parameters:
returnConnectionPasswordEncrypted
- When theReturnConnectionPasswordEncrypted
flag is set to "true", passwords remain encrypted in the responses ofGetConnection
andGetConnections
. This encryption takes effect independently from catalog encryption.- Returns:
this
-
returnConnectionPasswordEncrypted
@Stability(Stable) public CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.Builder returnConnectionPasswordEncrypted(IResolvable returnConnectionPasswordEncrypted) Sets the value ofCfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty.getReturnConnectionPasswordEncrypted()
- Parameters:
returnConnectionPasswordEncrypted
- When theReturnConnectionPasswordEncrypted
flag is set to "true", passwords remain encrypted in the responses ofGetConnection
andGetConnections
. This encryption takes effect independently from catalog encryption.- Returns:
this
-
build
@Stability(Stable) public CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty>
- Returns:
- a new instance of
CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-