Class: AWSCDK::EC2::AWSIpamProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::AWSIpamProps
- Defined in:
- ec2/aws_ipam_props.rb
Overview
Configuration for AwsIpam.
Instance Attribute Summary collapse
-
#default_subnet_ipv4_netmask_length ⇒ Numeric?
readonly
Default length for Subnet ipv4 Network mask.
-
#ipv4_ipam_pool_id ⇒ String
readonly
Ipam Pool Id for ipv4 allocation.
-
#ipv4_netmask_length ⇒ Numeric
readonly
Netmask length for Vpc.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipv4_ipam_pool_id:, ipv4_netmask_length:, default_subnet_ipv4_netmask_length: nil) ⇒ AWSIpamProps
constructor
A new instance of AWSIpamProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipv4_ipam_pool_id:, ipv4_netmask_length:, default_subnet_ipv4_netmask_length: nil) ⇒ AWSIpamProps
Returns a new instance of AWSIpamProps.
10 11 12 13 14 15 16 17 |
# File 'ec2/aws_ipam_props.rb', line 10 def initialize(ipv4_ipam_pool_id:, ipv4_netmask_length:, default_subnet_ipv4_netmask_length: nil) @ipv4_ipam_pool_id = ipv4_ipam_pool_id Jsii::Type.check_type(@ipv4_ipam_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv4IpamPoolId") @ipv4_netmask_length = ipv4_netmask_length Jsii::Type.check_type(@ipv4_netmask_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ipv4NetmaskLength") @default_subnet_ipv4_netmask_length = default_subnet_ipv4_netmask_length Jsii::Type.check_type(@default_subnet_ipv4_netmask_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "defaultSubnetIpv4NetmaskLength") unless @default_subnet_ipv4_netmask_length.nil? end |
Instance Attribute Details
#default_subnet_ipv4_netmask_length ⇒ Numeric? (readonly)
Note:
Default: - Default ipv4 Subnet Mask for subnets in Vpc
Default length for Subnet ipv4 Network mask.
Specify this option only if you do not specify all Subnets using SubnetConfiguration with a cidrMask
33 34 35 |
# File 'ec2/aws_ipam_props.rb', line 33 def default_subnet_ipv4_netmask_length @default_subnet_ipv4_netmask_length end |
#ipv4_ipam_pool_id ⇒ String (readonly)
Ipam Pool Id for ipv4 allocation.
22 23 24 |
# File 'ec2/aws_ipam_props.rb', line 22 def ipv4_ipam_pool_id @ipv4_ipam_pool_id end |
#ipv4_netmask_length ⇒ Numeric (readonly)
Netmask length for Vpc.
26 27 28 |
# File 'ec2/aws_ipam_props.rb', line 26 def ipv4_netmask_length @ipv4_netmask_length end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'ec2/aws_ipam_props.rb', line 35 def self.jsii_properties { :ipv4_ipam_pool_id => "ipv4IpamPoolId", :ipv4_netmask_length => "ipv4NetmaskLength", :default_subnet_ipv4_netmask_length => "defaultSubnetIpv4NetmaskLength", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'ec2/aws_ipam_props.rb', line 43 def to_jsii result = {} result.merge!({ "ipv4IpamPoolId" => @ipv4_ipam_pool_id, "ipv4NetmaskLength" => @ipv4_netmask_length, "defaultSubnetIpv4NetmaskLength" => @default_subnet_ipv4_netmask_length, }) result.compact end |