Class: AWSCDK::Elasticsearch::CfnDomain::ColdStorageOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticsearch/cfn_domain.rb

Overview

Specifies options for cold storage. For more information, see Cold storage for Amazon Elasticsearch Service .

The AWS::Elasticsearch::Domain resource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil) ⇒ ColdStorageOptionsProperty

Returns a new instance of ColdStorageOptionsProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether to enable or disable cold storage on the domain.



903
904
905
906
# File 'elasticsearch/cfn_domain.rb', line 903

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

Instance Attribute Details

#enabledBoolean, ... (readonly)

Whether to enable or disable cold storage on the domain.

You must enable UltraWarm storage in order to enable cold storage.



914
915
916
# File 'elasticsearch/cfn_domain.rb', line 914

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



916
917
918
919
920
# File 'elasticsearch/cfn_domain.rb', line 916

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

Instance Method Details

#to_jsiiObject



922
923
924
925
926
927
928
# File 'elasticsearch/cfn_domain.rb', line 922

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