Class: AWSCDK::OpenSearchService::CfnApplication::AppConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_service/cfn_application.rb

Overview

Configuration settings for an OpenSearch application.

For more information, see Using the OpenSearch user interface in Amazon OpenSearch Service .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ AppConfigProperty

Returns a new instance of AppConfigProperty.

Parameters:

  • key (String)

    The configuration item to set, such as the admin role for the OpenSearch application.

  • value (String)

    The value assigned to the configuration key, such as an IAM user ARN.



611
612
613
614
615
616
# File 'open_search_service/cfn_application.rb', line 611

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The configuration item to set, such as the admin role for the OpenSearch application.



622
623
624
# File 'open_search_service/cfn_application.rb', line 622

def key
  @key
end

#valueString (readonly)

The value assigned to the configuration key, such as an IAM user ARN.



627
628
629
# File 'open_search_service/cfn_application.rb', line 627

def value
  @value
end

Class Method Details

.jsii_propertiesObject



629
630
631
632
633
634
# File 'open_search_service/cfn_application.rb', line 629

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

Instance Method Details

#to_jsiiObject



636
637
638
639
640
641
642
643
# File 'open_search_service/cfn_application.rb', line 636

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