Struct aws_sdk_glue::model::connection_password_encryption::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ConnectionPasswordEncryption.
Implementations§
source§impl Builder
impl Builder
sourcepub fn return_connection_password_encrypted(self, input: bool) -> Self
pub fn return_connection_password_encrypted(self, input: bool) -> Self
When the ReturnConnectionPasswordEncrypted flag is set to "true", passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently from catalog encryption.
sourcepub fn set_return_connection_password_encrypted(
self,
input: Option<bool>
) -> Self
pub fn set_return_connection_password_encrypted(
self,
input: Option<bool>
) -> Self
When the ReturnConnectionPasswordEncrypted flag is set to "true", passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently from catalog encryption.
sourcepub fn aws_kms_key_id(self, input: impl Into<String>) -> Self
pub fn aws_kms_key_id(self, input: impl Into<String>) -> Self
An KMS key that is used to encrypt the connection password.
If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least kms:Encrypt permission 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.
sourcepub fn set_aws_kms_key_id(self, input: Option<String>) -> Self
pub fn set_aws_kms_key_id(self, input: Option<String>) -> Self
An KMS key that is used to encrypt the connection password.
If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least kms:Encrypt permission 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.
sourcepub fn build(self) -> ConnectionPasswordEncryption
pub fn build(self) -> ConnectionPasswordEncryption
Consumes the builder and constructs a ConnectionPasswordEncryption.