Class: AWSCDK::EC2::NatGatewayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::NatGatewayProps
- Defined in:
- ec2/nat_gateway_props.rb
Overview
Properties for a NAT gateway.
Instance Attribute Summary collapse
-
#eip_allocation_ids ⇒ Array<String>?
readonly
EIP allocation IDs for the NAT gateways.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(eip_allocation_ids: nil) ⇒ NatGatewayProps
constructor
A new instance of NatGatewayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(eip_allocation_ids: nil) ⇒ NatGatewayProps
Returns a new instance of NatGatewayProps.
8 9 10 11 |
# File 'ec2/nat_gateway_props.rb', line 8 def initialize(eip_allocation_ids: nil) @eip_allocation_ids = eip_allocation_ids Jsii::Type.check_type(@eip_allocation_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "eipAllocationIds") unless @eip_allocation_ids.nil? end |
Instance Attribute Details
#eip_allocation_ids ⇒ Array<String>? (readonly)
Note:
Default: - No fixed EIPs allocated for the NAT gateways
EIP allocation IDs for the NAT gateways.
17 18 19 |
# File 'ec2/nat_gateway_props.rb', line 17 def eip_allocation_ids @eip_allocation_ids end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'ec2/nat_gateway_props.rb', line 19 def self.jsii_properties { :eip_allocation_ids => "eipAllocationIds", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'ec2/nat_gateway_props.rb', line 25 def to_jsii result = {} result.merge!({ "eipAllocationIds" => @eip_allocation_ids, }) result.compact end |