Class: AWSCDK::GlobalAccelerator::RawEndpoint

Inherits:
Jsii::Object
  • Object
show all
Includes:
IEndpoint
Defined in:
global_accelerator/raw_endpoint.rb

Overview

Untyped endpoint implementation.

Prefer using the classes in the aws-globalaccelerator-endpoints package instead, as they accept typed constructs. You can use this class if you want to use an endpoint type that does not have an appropriate class in that package yet.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ RawEndpoint

Returns a new instance of RawEndpoint.



14
15
16
17
18
# File 'global_accelerator/raw_endpoint.rb', line 14

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::GlobalAccelerator::RawEndpointProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2xvYmFsYWNjZWxlcmF0b3IuUmF3RW5kcG9pbnRQcm9wcyJ9")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



20
21
22
23
24
25
# File 'global_accelerator/raw_endpoint.rb', line 20

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)


32
33
34
# File 'global_accelerator/raw_endpoint.rb', line 32

def region()
  jsii_get_property("region")
end

#render_endpoint_configurationObject

Render the endpoint to an endpoint configuration.

Returns:

  • (Object)


39
40
41
# File 'global_accelerator/raw_endpoint.rb', line 39

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