Class: AWSCDK::IoT::CfnTopicRule::ElasticsearchActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

Describes an action that writes data to an Amazon OpenSearch Service domain.

The Elasticsearch action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use the OpenSearch rule action instead. For more information, see OpenSearchAction .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint:, id:, index:, role_arn:, type:) ⇒ ElasticsearchActionProperty

Returns a new instance of ElasticsearchActionProperty.

Parameters:

  • endpoint (String)

    The endpoint of your OpenSearch domain.

  • id (String)

    The unique identifier for the document you are storing.

  • index (String)

    The index where you want to store your data.

  • role_arn (String)

    The IAM role ARN that has access to OpenSearch.

  • type (String)

    The type of document you are storing.



1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
# File 'io_t/cfn_topic_rule.rb', line 1434

def initialize(endpoint:, id:, index:, role_arn:, type:)
  @endpoint = endpoint
  Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint")
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @index = index
  Jsii::Type.check_type(@index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "index")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#endpointString (readonly)

The endpoint of your OpenSearch domain.



1451
1452
1453
# File 'io_t/cfn_topic_rule.rb', line 1451

def endpoint
  @endpoint
end

#idString (readonly)

The unique identifier for the document you are storing.



1456
1457
1458
# File 'io_t/cfn_topic_rule.rb', line 1456

def id
  @id
end

#indexString (readonly)

The index where you want to store your data.



1461
1462
1463
# File 'io_t/cfn_topic_rule.rb', line 1461

def index
  @index
end

#role_arnString (readonly)

The IAM role ARN that has access to OpenSearch.



1466
1467
1468
# File 'io_t/cfn_topic_rule.rb', line 1466

def role_arn
  @role_arn
end

#typeString (readonly)

The type of document you are storing.



1471
1472
1473
# File 'io_t/cfn_topic_rule.rb', line 1471

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1473
1474
1475
1476
1477
1478
1479
1480
1481
# File 'io_t/cfn_topic_rule.rb', line 1473

def self.jsii_properties
  {
    :endpoint => "endpoint",
    :id => "id",
    :index => "index",
    :role_arn => "roleArn",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'io_t/cfn_topic_rule.rb', line 1483

def to_jsii
  result = {}
  result.merge!({
    "endpoint" => @endpoint,
    "id" => @id,
    "index" => @index,
    "roleArn" => @role_arn,
    "type" => @type,
  })
  result.compact
end