Class: AWSCDK::OpenSearchServerless::CfnIndex::IndexSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_serverless/cfn_index.rb

Overview

Index settings for the OpenSearch Serverless index.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index: nil) ⇒ IndexSettingsProperty

Returns a new instance of IndexSettingsProperty.

Parameters:



596
597
598
599
# File 'open_search_serverless/cfn_index.rb', line 596

def initialize(index: nil)
  @index = index.is_a?(Hash) ? ::AWSCDK::OpenSearchServerless::CfnIndex::IndexProperty.new(**index.transform_keys(&:to_sym)) : index
  Jsii::Type.check_type(@index, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vcGVuc2VhcmNoc2VydmVybGVzcy5DZm5JbmRleC5JbmRleFByb3BlcnR5In1dfX0=")), "index") unless @index.nil?
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



607
608
609
610
611
# File 'open_search_serverless/cfn_index.rb', line 607

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

Instance Method Details

#to_jsiiObject



613
614
615
616
617
618
619
# File 'open_search_serverless/cfn_index.rb', line 613

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