Class: AWSCDK::Glue::CfnDataCatalogEncryptionSettings::DataCatalogEncryptionSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnDataCatalogEncryptionSettings::DataCatalogEncryptionSettingsProperty
- Defined in:
- glue/cfn_data_catalog_encryption_settings.rb
Overview
Contains configuration information for maintaining Data Catalog security.
Instance Attribute Summary collapse
-
#connection_password_encryption ⇒ AWSCDK::IResolvable, ...
readonly
When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of
CreateConnectionorUpdateConnectionand store it in theENCRYPTED_PASSWORDfield in the connection properties. -
#encryption_at_rest ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the encryption-at-rest configuration for the Data Catalog.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_password_encryption: nil, encryption_at_rest: nil) ⇒ DataCatalogEncryptionSettingsProperty
constructor
A new instance of DataCatalogEncryptionSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_password_encryption: nil, encryption_at_rest: nil) ⇒ DataCatalogEncryptionSettingsProperty
Returns a new instance of DataCatalogEncryptionSettingsProperty.
568 569 570 571 572 573 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 568 def initialize(connection_password_encryption: nil, encryption_at_rest: nil) @connection_password_encryption = connection_password_encryption.is_a?(Hash) ? ::AWSCDK::Glue::CfnDataCatalogEncryptionSettings::ConnectionPasswordEncryptionProperty.new(**connection_password_encryption.transform_keys(&:to_sym)) : connection_password_encryption Jsii::Type.check_type(@connection_password_encryption, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmbkRhdGFDYXRhbG9nRW5jcnlwdGlvblNldHRpbmdzLkNvbm5lY3Rpb25QYXNzd29yZEVuY3J5cHRpb25Qcm9wZXJ0eSJ9XX19")), "connectionPasswordEncryption") unless @connection_password_encryption.nil? @encryption_at_rest = encryption_at_rest.is_a?(Hash) ? ::AWSCDK::Glue::CfnDataCatalogEncryptionSettings::EncryptionAtRestProperty.new(**encryption_at_rest.transform_keys(&:to_sym)) : encryption_at_rest Jsii::Type.check_type(@encryption_at_rest, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmbkRhdGFDYXRhbG9nRW5jcnlwdGlvblNldHRpbmdzLkVuY3J5cHRpb25BdFJlc3RQcm9wZXJ0eSJ9XX19")), "encryptionAtRest") unless @encryption_at_rest.nil? end |
Instance Attribute Details
#connection_password_encryption ⇒ AWSCDK::IResolvable, ... (readonly)
When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties.
You can enable catalog encryption or only password encryption.
581 582 583 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 581 def connection_password_encryption @connection_password_encryption end |
#encryption_at_rest ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the encryption-at-rest configuration for the Data Catalog.
586 587 588 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 586 def encryption_at_rest @encryption_at_rest end |
Class Method Details
.jsii_properties ⇒ Object
588 589 590 591 592 593 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 588 def self.jsii_properties { :connection_password_encryption => "connectionPasswordEncryption", :encryption_at_rest => "encryptionAtRest", } end |
Instance Method Details
#to_jsii ⇒ Object
595 596 597 598 599 600 601 602 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 595 def to_jsii result = {} result.merge!({ "connectionPasswordEncryption" => @connection_password_encryption, "encryptionAtRest" => @encryption_at_rest, }) result.compact end |