Class: AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpoint
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpoint
- 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
-
#initialize(eip, options = nil) ⇒ CfnEipEndpoint
constructor
A new instance of CfnEipEndpoint.
-
#region ⇒ String?
The region where the endpoint is located.
-
#render_endpoint_configuration ⇒ Object
Render the endpoint to an endpoint configuration.
Constructor Details
#initialize(eip, options = nil) ⇒ CfnEipEndpoint
Returns a new instance of CfnEipEndpoint.
11 12 13 14 15 16 |
# File 'global_accelerator_endpoints/cfn_eip_endpoint.rb', line 11 def initialize(eip, = nil) = .is_a?(Hash) ? ::AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpointProps.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(eip, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbkVJUCJ9")), "eip") Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2xvYmFsYWNjZWxlcmF0b3JfZW5kcG9pbnRzLkNmbkVpcEVuZHBvaW50UHJvcHMifQ==")), "options") unless .nil? Jsii::Object.instance_method(:initialize).bind(self).call(eip, ) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
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
#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/cfn_eip_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/cfn_eip_endpoint.rb', line 37 def render_endpoint_configuration() jsii_call_method("renderEndpointConfiguration", []) end |