Class: AWSCDK::EC2::NatGatewayProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/nat_gateway_props.rb

Overview

Properties for a NAT gateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eip_allocation_ids: nil) ⇒ NatGatewayProps

Returns a new instance of NatGatewayProps.

Parameters:

  • eip_allocation_ids (Array<String>, nil) (defaults to: nil)

    EIP allocation IDs for the NAT gateways.



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_idsArray<String>? (readonly)

Note:

Default: - No fixed EIPs allocated for the NAT gateways

EIP allocation IDs for the NAT gateways.

Returns:

  • (Array<String>, nil)


17
18
19
# File 'ec2/nat_gateway_props.rb', line 17

def eip_allocation_ids
  @eip_allocation_ids
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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