Class: AWSCDK::GlobalAcceleratorEndpoints::ApplicationLoadBalancerEndpoint
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::GlobalAcceleratorEndpoints::ApplicationLoadBalancerEndpoint
- Includes:
- AWSCDK::GlobalAccelerator::IEndpoint
- Defined in:
- global_accelerator_endpoints/application_load_balancer_endpoint.rb
Overview
Use an Application Load Balancer as a Global Accelerator Endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(load_balancer, options = nil) ⇒ ApplicationLoadBalancerEndpoint
constructor
A new instance of ApplicationLoadBalancerEndpoint.
-
#region ⇒ String?
The region where the endpoint is located.
-
#render_endpoint_configuration ⇒ Object
Render the endpoint to an endpoint configuration.
Constructor Details
#initialize(load_balancer, options = nil) ⇒ ApplicationLoadBalancerEndpoint
Returns a new instance of ApplicationLoadBalancerEndpoint.
11 12 13 14 15 16 |
# File 'global_accelerator_endpoints/application_load_balancer_endpoint.rb', line 11 def initialize(load_balancer, = nil) = .is_a?(Hash) ? ::AWSCDK::GlobalAcceleratorEndpoints::ApplicationLoadBalancerEndpointOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(load_balancer, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5JQXBwbGljYXRpb25Mb2FkQmFsYW5jZXIifQ==")), "loadBalancer") Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2xvYmFsYWNjZWxlcmF0b3JfZW5kcG9pbnRzLkFwcGxpY2F0aW9uTG9hZEJhbGFuY2VyRW5kcG9pbnRPcHRpb25zIn0=")), "options") unless .nil? Jsii::Object.instance_method(:initialize).bind(self).call(load_balancer, ) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 23 |
# File 'global_accelerator_endpoints/application_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
#region ⇒ String?
The region where the endpoint is located.
If the region cannot be determined, undefined is returned
30 31 32 |
# File 'global_accelerator_endpoints/application_load_balancer_endpoint.rb', line 30 def region() jsii_get_property("region") end |
#render_endpoint_configuration ⇒ Object
Render the endpoint to an endpoint configuration.
37 38 39 |
# File 'global_accelerator_endpoints/application_load_balancer_endpoint.rb', line 37 def render_endpoint_configuration() jsii_call_method("renderEndpointConfiguration", []) end |