Class: AWSCDK::IoT::CfnTopicRule::ElasticsearchActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::ElasticsearchActionProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Describes an action that writes data to an Amazon OpenSearch Service domain.
The
Elasticsearchaction can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use theOpenSearchrule action instead. For more information, see OpenSearchAction .
Instance Attribute Summary collapse
-
#endpoint ⇒ String
readonly
The endpoint of your OpenSearch domain.
-
#id ⇒ String
readonly
The unique identifier for the document you are storing.
-
#index ⇒ String
readonly
The index where you want to store your data.
-
#role_arn ⇒ String
readonly
The IAM role ARN that has access to OpenSearch.
-
#type ⇒ String
readonly
The type of document you are storing.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(endpoint:, id:, index:, role_arn:, type:) ⇒ ElasticsearchActionProperty
constructor
A new instance of ElasticsearchActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(endpoint:, id:, index:, role_arn:, type:) ⇒ ElasticsearchActionProperty
Returns a new instance of ElasticsearchActionProperty.
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
#endpoint ⇒ String (readonly)
The endpoint of your OpenSearch domain.
1451 1452 1453 |
# File 'io_t/cfn_topic_rule.rb', line 1451 def endpoint @endpoint end |
#id ⇒ String (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 |
#index ⇒ String (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_arn ⇒ String (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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |