Class: AWSCDK::OpenSearchService::DomainAttributes

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

Overview

Reference to an Amazon OpenSearch Service domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_arn:, domain_endpoint:) ⇒ DomainAttributes

Returns a new instance of DomainAttributes.

Parameters:

  • domain_arn (String)

    The ARN of the Amazon OpenSearch Service domain.

  • domain_endpoint (String)

    The domain endpoint of the Amazon OpenSearch Service domain.



9
10
11
12
13
14
# File 'open_search_service/domain_attributes.rb', line 9

def initialize(domain_arn:, domain_endpoint:)
  @domain_arn = domain_arn
  Jsii::Type.check_type(@domain_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainArn")
  @domain_endpoint = domain_endpoint
  Jsii::Type.check_type(@domain_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainEndpoint")
end

Instance Attribute Details

#domain_arnString (readonly)

The ARN of the Amazon OpenSearch Service domain.

Returns:

  • (String)


19
20
21
# File 'open_search_service/domain_attributes.rb', line 19

def domain_arn
  @domain_arn
end

#domain_endpointString (readonly)

The domain endpoint of the Amazon OpenSearch Service domain.

Returns:

  • (String)


23
24
25
# File 'open_search_service/domain_attributes.rb', line 23

def domain_endpoint
  @domain_endpoint
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'open_search_service/domain_attributes.rb', line 25

def self.jsii_properties
  {
    :domain_arn => "domainArn",
    :domain_endpoint => "domainEndpoint",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'open_search_service/domain_attributes.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "domainArn" => @domain_arn,
    "domainEndpoint" => @domain_endpoint,
  })
  result.compact
end