Class: AWSCDK::Glue::CfnDataCatalogEncryptionSettings::EncryptionAtRestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnDataCatalogEncryptionSettings::EncryptionAtRestProperty
- Defined in:
- glue/cfn_data_catalog_encryption_settings.rb
Overview
Specifies the encryption-at-rest configuration for the Data Catalog.
Instance Attribute Summary collapse
-
#catalog_encryption_mode ⇒ String?
readonly
The encryption-at-rest mode for encrypting Data Catalog data.
-
#catalog_encryption_service_role ⇒ String?
readonly
The role that AWS Glue assumes to encrypt and decrypt the Data Catalog objects on the caller's behalf.
-
#sse_aws_kms_key_id ⇒ String?
readonly
The ID of the AWS key to use for encryption at rest.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(catalog_encryption_mode: nil, catalog_encryption_service_role: nil, sse_aws_kms_key_id: nil) ⇒ EncryptionAtRestProperty
constructor
A new instance of EncryptionAtRestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(catalog_encryption_mode: nil, catalog_encryption_service_role: nil, sse_aws_kms_key_id: nil) ⇒ EncryptionAtRestProperty
Returns a new instance of EncryptionAtRestProperty.
614 615 616 617 618 619 620 621 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 614 def initialize(catalog_encryption_mode: nil, catalog_encryption_service_role: nil, sse_aws_kms_key_id: nil) @catalog_encryption_mode = catalog_encryption_mode Jsii::Type.check_type(@catalog_encryption_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogEncryptionMode") unless @catalog_encryption_mode.nil? @catalog_encryption_service_role = catalog_encryption_service_role Jsii::Type.check_type(@catalog_encryption_service_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogEncryptionServiceRole") unless @catalog_encryption_service_role.nil? @sse_aws_kms_key_id = sse_aws_kms_key_id Jsii::Type.check_type(@sse_aws_kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sseAwsKmsKeyId") unless @sse_aws_kms_key_id.nil? end |
Instance Attribute Details
#catalog_encryption_mode ⇒ String? (readonly)
The encryption-at-rest mode for encrypting Data Catalog data.
627 628 629 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 627 def catalog_encryption_mode @catalog_encryption_mode end |
#catalog_encryption_service_role ⇒ String? (readonly)
The role that AWS Glue assumes to encrypt and decrypt the Data Catalog objects on the caller's behalf.
632 633 634 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 632 def catalog_encryption_service_role @catalog_encryption_service_role end |
#sse_aws_kms_key_id ⇒ String? (readonly)
The ID of the AWS key to use for encryption at rest.
637 638 639 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 637 def sse_aws_kms_key_id @sse_aws_kms_key_id end |
Class Method Details
.jsii_properties ⇒ Object
639 640 641 642 643 644 645 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 639 def self.jsii_properties { :catalog_encryption_mode => "catalogEncryptionMode", :catalog_encryption_service_role => "catalogEncryptionServiceRole", :sse_aws_kms_key_id => "sseAwsKmsKeyId", } end |
Instance Method Details
#to_jsii ⇒ Object
647 648 649 650 651 652 653 654 655 |
# File 'glue/cfn_data_catalog_encryption_settings.rb', line 647 def to_jsii result = {} result.merge!({ "catalogEncryptionMode" => @catalog_encryption_mode, "catalogEncryptionServiceRole" => @catalog_encryption_service_role, "sseAwsKmsKeyId" => @sse_aws_kms_key_id, }) result.compact end |