Class: AWSCDK::EC2::IPAddresses

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

Overview

An abstract Provider of IpAddresses.

Note this is specific to the IPv4 CIDR.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ IPAddresses

Returns a new instance of IPAddresses.

Raises:

  • (NoMethodError)


10
11
12
# File 'ec2/ip_addresses.rb', line 10

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_ec2.IpAddresses does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.aws_ipam_allocation(props) ⇒ AWSCDK::EC2::IIPAddresses

Used to provide centralized Ip Address Management services for your VPC.

Uses VPC CIDR allocations from AWS IPAM

Note this is specific to the IPv4 CIDR.



28
29
30
31
32
# File 'ec2/ip_addresses.rb', line 28

def self.aws_ipam_allocation(props)
  props = props.is_a?(Hash) ? ::AWSCDK::EC2::AWSIpamProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkF3c0lwYW1Qcm9wcyJ9")), "props")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.IpAddresses", "awsIpamAllocation", [props])
end

.cidr(cidr_block) ⇒ AWSCDK::EC2::IIPAddresses

Used to provide local Ip Address Management services for your VPC.

VPC CIDR is supplied at creation and subnets are calculated locally

Note this is specific to the IPv4 CIDR.

Parameters:

  • cidr_block (String)

Returns:



42
43
44
45
# File 'ec2/ip_addresses.rb', line 42

def self.cidr(cidr_block)
  Jsii::Type.check_type(cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidrBlock")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.IpAddresses", "cidr", [cidr_block])
end

.jsii_overridable_methodsObject



14
15
16
17
# File 'ec2/ip_addresses.rb', line 14

def self.jsii_overridable_methods
  {
  }
end