Class: AWSCDK::GlobalAcceleratorEndpoints::NetworkLoadBalancerEndpoint

Inherits:
Jsii::Object
  • Object
show all
Includes:
AWSCDK::GlobalAccelerator::IEndpoint
Defined in:
global_accelerator_endpoints/network_load_balancer_endpoint.rb

Overview

Use a Network Load Balancer as a Global Accelerator Endpoint.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(load_balancer, options = nil) ⇒ NetworkLoadBalancerEndpoint

Returns a new instance of NetworkLoadBalancerEndpoint.



11
12
13
14
15
16
# File 'global_accelerator_endpoints/network_load_balancer_endpoint.rb', line 11

def initialize(load_balancer, options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::GlobalAcceleratorEndpoints::NetworkLoadBalancerEndpointProps.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(load_balancer, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5JTmV0d29ya0xvYWRCYWxhbmNlciJ9")), "loadBalancer")
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2xvYmFsYWNjZWxlcmF0b3JfZW5kcG9pbnRzLk5ldHdvcmtMb2FkQmFsYW5jZXJFbmRwb2ludFByb3BzIn0=")), "options") unless options.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(load_balancer, options)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
23
# File 'global_accelerator_endpoints/network_load_balancer_endpoint.rb', line 18

def self.jsii_overridable_methods
  {
    :region => { kind: :property, name: "region", is_optional: true },
    :render_endpoint_configuration => { kind: :method, name: "renderEndpointConfiguration", is_optional: false },
  }
end

Instance Method Details

#regionString?

The region where the endpoint is located.

If the region cannot be determined, undefined is returned

Returns:

  • (String, nil)


30
31
32
# File 'global_accelerator_endpoints/network_load_balancer_endpoint.rb', line 30

def region()
  jsii_get_property("region")
end

#render_endpoint_configurationObject

Render the endpoint to an endpoint configuration.

Returns:

  • (Object)


37
38
39
# File 'global_accelerator_endpoints/network_load_balancer_endpoint.rb', line 37

def render_endpoint_configuration()
  jsii_call_method("renderEndpointConfiguration", [])
end