Class: AWSCDK::Elasticsearch::CustomEndpointOptions Deprecated

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticsearch/custom_endpoint_options.rb

Overview

Deprecated.

use opensearchservice module instead

Configures a custom domain endpoint for the ES domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_name:, certificate: nil, hosted_zone: nil) ⇒ CustomEndpointOptions

Returns a new instance of CustomEndpointOptions.

Parameters:



12
13
14
15
16
17
18
19
# File 'elasticsearch/custom_endpoint_options.rb', line 12

def initialize(domain_name:, certificate: nil, hosted_zone: nil)
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName")
  @certificate = certificate
  Jsii::Type.check_type(@certificate, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jZXJ0aWZpY2F0ZW1hbmFnZXIuSUNlcnRpZmljYXRlUmVmIn0=")), "certificate") unless @certificate.nil?
  @hosted_zone = hosted_zone
  Jsii::Type.check_type(@hosted_zone, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JSG9zdGVkWm9uZSJ9")), "hostedZone") unless @hosted_zone.nil?
end

Instance Attribute Details

#certificateAWSCDK::Interfaces::AWSCertificatemanager::ICertificateRef? (readonly)

Deprecated.

use opensearchservice module instead

Note:

Default: - create a new one

The certificate to use.



31
32
33
# File 'elasticsearch/custom_endpoint_options.rb', line 31

def certificate
  @certificate
end

#domain_nameString (readonly)

Deprecated.

use opensearchservice module instead

The custom domain name to assign.

Returns:

  • (String)


25
26
27
# File 'elasticsearch/custom_endpoint_options.rb', line 25

def domain_name
  @domain_name
end

#hosted_zoneAWSCDK::Route53::IHostedZone? (readonly)

Deprecated.

use opensearchservice module instead

Note:

Default: - do not create a CNAME

The hosted zone in Route53 to create the CNAME record in.



37
38
39
# File 'elasticsearch/custom_endpoint_options.rb', line 37

def hosted_zone
  @hosted_zone
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'elasticsearch/custom_endpoint_options.rb', line 39

def self.jsii_properties
  {
    :domain_name => "domainName",
    :certificate => "certificate",
    :hosted_zone => "hostedZone",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'elasticsearch/custom_endpoint_options.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "domainName" => @domain_name,
    "certificate" => @certificate,
    "hostedZone" => @hosted_zone,
  })
  result.compact
end