Class: AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpointProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
global_accelerator_endpoints/cfn_eip_endpoint_props.rb

Overview

Properties for a NetworkLoadBalancerEndpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(weight: nil) ⇒ CfnEipEndpointProps

Returns a new instance of CfnEipEndpointProps.

Parameters:

  • weight (Numeric, nil) (defaults to: nil)

    Endpoint weight across all endpoints in the group.



8
9
10
11
# File 'global_accelerator_endpoints/cfn_eip_endpoint_props.rb', line 8

def initialize(weight: nil)
  @weight = weight
  Jsii::Type.check_type(@weight, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "weight") unless @weight.nil?
end

Instance Attribute Details

#weightNumeric? (readonly)

Note:

Default: 128

Endpoint weight across all endpoints in the group.

Must be a value between 0 and 255.

Returns:

  • (Numeric, nil)


19
20
21
# File 'global_accelerator_endpoints/cfn_eip_endpoint_props.rb', line 19

def weight
  @weight
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'global_accelerator_endpoints/cfn_eip_endpoint_props.rb', line 21

def self.jsii_properties
  {
    :weight => "weight",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'global_accelerator_endpoints/cfn_eip_endpoint_props.rb', line 27

def to_jsii
  result = {}
  result.merge!({
    "weight" => @weight,
  })
  result.compact
end