Module: AWSCDK::EC2::IIPAddresses
- Defined in:
- ec2/iip_addresses.rb
Overview
Implementations for ip address management.
Note this is specific to the IPv4 CIDR.
Class Method Summary collapse
Instance Method Summary collapse
-
#allocate_subnets_cidr(input) ⇒ AWSCDK::EC2::SubnetIpamOptions
Called by the VPC to retrieve Subnet options from the Ipam.
-
#allocate_vpc_cidr ⇒ AWSCDK::EC2::VPCIpamOptions
Called by the VPC to retrieve VPC options from the Ipam.
Class Method Details
.jsii_overridable_methods ⇒ Object
30 31 32 33 34 35 |
# File 'ec2/iip_addresses.rb', line 30 def self.jsii_overridable_methods { :allocate_subnets_cidr => { kind: :method, name: "allocateSubnetsCidr", is_optional: false }, :allocate_vpc_cidr => { kind: :method, name: "allocateVpcCidr", is_optional: false }, } end |
Instance Method Details
#allocate_subnets_cidr(input) ⇒ AWSCDK::EC2::SubnetIpamOptions
Called by the VPC to retrieve Subnet options from the Ipam.
Don't call this directly, the VPC will call it automatically.
15 16 17 18 19 |
# File 'ec2/iip_addresses.rb', line 15 def allocate_subnets_cidr(input) input = input.is_a?(Hash) ? ::AWSCDK::EC2::AllocateCIDRRequest.new(**input.transform_keys(&:to_sym)) : input Jsii::Type.check_type(input, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkFsbG9jYXRlQ2lkclJlcXVlc3QifQ==")), "input") jsii_call_method("allocateSubnetsCidr", [input]) end |
#allocate_vpc_cidr ⇒ AWSCDK::EC2::VPCIpamOptions
Called by the VPC to retrieve VPC options from the Ipam.
Don't call this directly, the VPC will call it automatically.
26 27 28 |
# File 'ec2/iip_addresses.rb', line 26 def allocate_vpc_cidr() jsii_call_method("allocateVpcCidr", []) end |