Class: AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpoint

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

Overview

Use an EC2 Instance as a Global Accelerator Endpoint.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eip, options = nil) ⇒ CfnEipEndpoint

Returns a new instance of CfnEipEndpoint.

Parameters:



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

def initialize(eip, options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpointProps.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(eip, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbkVJUCJ9")), "eip")
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2xvYmFsYWNjZWxlcmF0b3JfZW5kcG9pbnRzLkNmbkVpcEVuZHBvaW50UHJvcHMifQ==")), "options") unless options.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(eip, options)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
23
# File 'global_accelerator_endpoints/cfn_eip_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/cfn_eip_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/cfn_eip_endpoint.rb', line 37

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