Class: AWSCDK::IoT::CfnTopicRule::OpenSearchActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::OpenSearchActionProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Describes an action that writes data to an Amazon OpenSearch Service domain.
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 OpenSearch 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:) ⇒ OpenSearchActionProperty
constructor
A new instance of OpenSearchActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(endpoint:, id:, index:, role_arn:, type:) ⇒ OpenSearchActionProperty
Returns a new instance of OpenSearchActionProperty.
2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 |
# File 'io_t/cfn_topic_rule.rb', line 2209 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.
2226 2227 2228 |
# File 'io_t/cfn_topic_rule.rb', line 2226 def endpoint @endpoint end |
#id ⇒ String (readonly)
The unique identifier for the document you are storing.
2231 2232 2233 |
# File 'io_t/cfn_topic_rule.rb', line 2231 def id @id end |
#index ⇒ String (readonly)
The OpenSearch index where you want to store your data.
2236 2237 2238 |
# File 'io_t/cfn_topic_rule.rb', line 2236 def index @index end |
#role_arn ⇒ String (readonly)
The IAM role ARN that has access to OpenSearch.
2241 2242 2243 |
# File 'io_t/cfn_topic_rule.rb', line 2241 def role_arn @role_arn end |
#type ⇒ String (readonly)
The type of document you are storing.
2246 2247 2248 |
# File 'io_t/cfn_topic_rule.rb', line 2246 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
2248 2249 2250 2251 2252 2253 2254 2255 2256 |
# File 'io_t/cfn_topic_rule.rb', line 2248 def self.jsii_properties { :endpoint => "endpoint", :id => "id", :index => "index", :role_arn => "roleArn", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 |
# File 'io_t/cfn_topic_rule.rb', line 2258 def to_jsii result = {} result.merge!({ "endpoint" => @endpoint, "id" => @id, "index" => @index, "roleArn" => @role_arn, "type" => @type, }) result.compact end |