Class: AWSCDK::Elasticsearch::EncryptionAtRestOptions Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticsearch::EncryptionAtRestOptions
- Defined in:
- elasticsearch/encryption_at_rest_options.rb
Overview
Deprecated.
use opensearchservice module instead
Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service (KMS) key to use.
Can only be used to create a new domain, not update an existing one. Requires Elasticsearch version 5.1 or later.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#kms_key ⇒ AWSCDK::Interfaces::AWSKMS::IKeyRef?
readonly
deprecated
Deprecated.
use opensearchservice module instead
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, kms_key: nil) ⇒ EncryptionAtRestOptions
constructor
A new instance of EncryptionAtRestOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, kms_key: nil) ⇒ EncryptionAtRestOptions
Returns a new instance of EncryptionAtRestOptions.
14 15 16 17 18 19 |
# File 'elasticsearch/encryption_at_rest_options.rb', line 14 def initialize(enabled: nil, kms_key: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enabled") unless @enabled.nil? @kms_key = kms_key Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19rbXMuSUtleVJlZiJ9")), "kmsKey") unless @kms_key.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean? (readonly)
Deprecated.
use opensearchservice module instead
Note:
Default: - encryption at rest is disabled.
Specify true to enable encryption at rest.
26 27 28 |
# File 'elasticsearch/encryption_at_rest_options.rb', line 26 def enabled @enabled end |
#kms_key ⇒ AWSCDK::Interfaces::AWSKMS::IKeyRef? (readonly)
Deprecated.
use opensearchservice module instead
Note:
Default: - uses default aws/es KMS key.
Supply if using KMS key for encryption at rest.
32 33 34 |
# File 'elasticsearch/encryption_at_rest_options.rb', line 32 def kms_key @kms_key end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 |
# File 'elasticsearch/encryption_at_rest_options.rb', line 34 def self.jsii_properties { :enabled => "enabled", :kms_key => "kmsKey", } end |
Instance Method Details
#to_jsii ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'elasticsearch/encryption_at_rest_options.rb', line 41 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "kmsKey" => @kms_key, }) result.compact end |