Class: AWSCDK::Route53Targets::InterfaceVPCEndpointTarget

Inherits:
Jsii::Object
  • Object
show all
Includes:
AWSCDK::Route53::IAliasRecordTarget
Defined in:
route53_targets/interface_vpc_endpoint_target.rb

Overview

Set an InterfaceVpcEndpoint as a target for an ARecord.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc_endpoint) ⇒ InterfaceVPCEndpointTarget

Returns a new instance of InterfaceVPCEndpointTarget.

Parameters:



10
11
12
13
# File 'route53_targets/interface_vpc_endpoint_target.rb', line 10

def initialize(vpc_endpoint)
  Jsii::Type.check_type(vpc_endpoint, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkludGVyZmFjZVZwY0VuZHBvaW50In0=")), "vpcEndpoint")
  Jsii::Object.instance_method(:initialize).bind(self).call(vpc_endpoint)
end

Class Method Details

.jsii_overridable_methodsObject



15
16
17
18
19
# File 'route53_targets/interface_vpc_endpoint_target.rb', line 15

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(_record, _zone = nil) ⇒ AWSCDK::Route53::AliasRecordTargetConfig

Return hosted zone ID and DNS name, usable for Route53 alias targets.

Parameters:

Returns:



26
27
28
29
30
# File 'route53_targets/interface_vpc_endpoint_target.rb', line 26

def bind(_record, _zone = nil)
  Jsii::Type.check_type(_record, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JUmVjb3JkU2V0In0=")), "_record")
  Jsii::Type.check_type(_zone, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JSG9zdGVkWm9uZSJ9")), "_zone") unless _zone.nil?
  jsii_call_method("bind", [_record, _zone])
end