Class: AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpointProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GlobalAcceleratorEndpoints::CfnEipEndpointProps
- Defined in:
- global_accelerator_endpoints/cfn_eip_endpoint_props.rb
Overview
Properties for a NetworkLoadBalancerEndpoint.
Instance Attribute Summary collapse
-
#weight ⇒ Numeric?
readonly
Endpoint weight across all endpoints in the group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(weight: nil) ⇒ CfnEipEndpointProps
constructor
A new instance of CfnEipEndpointProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(weight: nil) ⇒ CfnEipEndpointProps
Returns a new instance of CfnEipEndpointProps.
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
#weight ⇒ Numeric? (readonly)
Note:
Default: 128
Endpoint weight across all endpoints in the group.
Must be a value between 0 and 255.
19 20 21 |
# File 'global_accelerator_endpoints/cfn_eip_endpoint_props.rb', line 19 def weight @weight end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |