Class ConnectionPasswordEncryption
- java.lang.Object
-
- software.amazon.awssdk.services.glue.model.ConnectionPasswordEncryption
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConnectionPasswordEncryption.Builder,ConnectionPasswordEncryption>
@Generated("software.amazon.awssdk:codegen") public final class ConnectionPasswordEncryption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConnectionPasswordEncryption.Builder,ConnectionPasswordEncryption>
The data structure used by the Data Catalog to encrypt the password as part of
CreateConnectionorUpdateConnectionand store it in theENCRYPTED_PASSWORDfield in the connection properties. You can enable catalog encryption or only password encryption.When a
CreationConnectionrequest arrives containing a password, the Data Catalog first encrypts the password using your KMS key. It then encrypts the whole connection object again if catalog encryption is also enabled.This encryption requires that you set KMS key permissions to enable or restrict access on the password key according to your security requirements. For example, you might want only administrators to have decrypt permission on the password key.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConnectionPasswordEncryption.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringawsKmsKeyId()An KMS key that is used to encrypt the connection password.static ConnectionPasswordEncryption.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanreturnConnectionPasswordEncrypted()When theReturnConnectionPasswordEncryptedflag is set to "true", passwords remain encrypted in the responses ofGetConnectionandGetConnections.List<SdkField<?>>sdkFields()static Class<? extends ConnectionPasswordEncryption.Builder>serializableBuilderClass()ConnectionPasswordEncryption.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
returnConnectionPasswordEncrypted
public final Boolean returnConnectionPasswordEncrypted()
When the
ReturnConnectionPasswordEncryptedflag is set to "true", passwords remain encrypted in the responses ofGetConnectionandGetConnections. This encryption takes effect independently from catalog encryption.- Returns:
- When the
ReturnConnectionPasswordEncryptedflag is set to "true", passwords remain encrypted in the responses ofGetConnectionandGetConnections. This encryption takes effect independently from catalog encryption.
-
awsKmsKeyId
public final String awsKmsKeyId()
An KMS key that is used to encrypt the connection password.
If connection password protection is enabled, the caller of
CreateConnectionandUpdateConnectionneeds at leastkms:Encryptpermission on the specified 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:
- An KMS key that is used to encrypt the connection password.
If connection password protection is enabled, the caller of
CreateConnectionandUpdateConnectionneeds at leastkms:Encryptpermission on the specified 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.
-
toBuilder
public ConnectionPasswordEncryption.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConnectionPasswordEncryption.Builder,ConnectionPasswordEncryption>
-
builder
public static ConnectionPasswordEncryption.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConnectionPasswordEncryption.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-