Class: AWSCDK::Athena::CfnWorkGroup::ManagedStorageEncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
athena/cfn_work_group.rb

Overview

Indicates the encryption configuration for Athena Managed Storage.

If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kms_key: nil) ⇒ ManagedStorageEncryptionConfigurationProperty

Returns a new instance of ManagedStorageEncryptionConfigurationProperty.

Parameters:

  • kms_key (String, nil) (defaults to: nil)

    For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.



1090
1091
1092
1093
# File 'athena/cfn_work_group.rb', line 1090

def initialize(kms_key: nil)
  @kms_key = kms_key
  Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKey") unless @kms_key.nil?
end

Instance Attribute Details

#kms_keyString? (readonly)

For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.



1099
1100
1101
# File 'athena/cfn_work_group.rb', line 1099

def kms_key
  @kms_key
end

Class Method Details

.jsii_propertiesObject



1101
1102
1103
1104
1105
# File 'athena/cfn_work_group.rb', line 1101

def self.jsii_properties
  {
    :kms_key => "kmsKey",
  }
end

Instance Method Details

#to_jsiiObject



1107
1108
1109
1110
1111
1112
1113
# File 'athena/cfn_work_group.rb', line 1107

def to_jsii
  result = {}
  result.merge!({
    "kmsKey" => @kms_key,
  })
  result.compact
end