Class: AWSCDK::EC2::CfnSubnetCIDRBlockProps

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

Overview

Properties for defining a CfnSubnetCidrBlock.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subnet_id:, ipv6_cidr_block: nil, ipv6_ipam_pool_id: nil, ipv6_netmask_length: nil) ⇒ CfnSubnetCIDRBlockProps

Returns a new instance of CfnSubnetCIDRBlockProps.

Parameters:

  • subnet_id (String, AWSCDK::Interfaces::AWSEC2::ISubnetRef)

    The ID of the subnet.

  • ipv6_cidr_block (String, nil) (defaults to: nil)

    The IPv6 network range for the subnet, in CIDR notation.

  • ipv6_ipam_pool_id (String, nil) (defaults to: nil)

    An IPv6 IPAM pool ID for the subnet.

  • ipv6_netmask_length (Numeric, nil) (defaults to: nil)

    An IPv6 netmask length for the subnet.



13
14
15
16
17
18
19
20
21
22
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 13

def initialize(subnet_id:, ipv6_cidr_block: nil, ipv6_ipam_pool_id: nil, ipv6_netmask_length: nil)
  @subnet_id = subnet_id
  Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVN1Ym5ldFJlZiJ9XX19")), "subnetId")
  @ipv6_cidr_block = ipv6_cidr_block
  Jsii::Type.check_type(@ipv6_cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6CidrBlock") unless @ipv6_cidr_block.nil?
  @ipv6_ipam_pool_id = ipv6_ipam_pool_id
  Jsii::Type.check_type(@ipv6_ipam_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6IpamPoolId") unless @ipv6_ipam_pool_id.nil?
  @ipv6_netmask_length = ipv6_netmask_length
  Jsii::Type.check_type(@ipv6_netmask_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ipv6NetmaskLength") unless @ipv6_netmask_length.nil?
end

Instance Attribute Details

#ipv6_cidr_blockString? (readonly)

The IPv6 network range for the subnet, in CIDR notation.



33
34
35
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 33

def ipv6_cidr_block
  @ipv6_cidr_block
end

#ipv6_ipam_pool_idString? (readonly)

An IPv6 IPAM pool ID for the subnet.



38
39
40
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 38

def ipv6_ipam_pool_id
  @ipv6_ipam_pool_id
end

#ipv6_netmask_lengthNumeric? (readonly)

An IPv6 netmask length for the subnet.



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

def ipv6_netmask_length
  @ipv6_netmask_length
end

#subnet_idString, AWSCDK::Interfaces::AWSEC2::ISubnetRef (readonly)

The ID of the subnet.



28
29
30
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 28

def subnet_id
  @subnet_id
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 45

def self.jsii_properties
  {
    :subnet_id => "subnetId",
    :ipv6_cidr_block => "ipv6CidrBlock",
    :ipv6_ipam_pool_id => "ipv6IpamPoolId",
    :ipv6_netmask_length => "ipv6NetmaskLength",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "subnetId" => @subnet_id,
    "ipv6CidrBlock" => @ipv6_cidr_block,
    "ipv6IpamPoolId" => @ipv6_ipam_pool_id,
    "ipv6NetmaskLength" => @ipv6_netmask_length,
  })
  result.compact
end