Class: AWSCDK::CloudFront::CfnAnycastIPList::IpamCIDRConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_anycast_ip_list.rb

Overview

Configuration for an IPAM CIDR that defines a specific IP address range, IPAM pool, and associated Anycast IP address.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidr:, ipam_pool_arn:) ⇒ IpamCIDRConfigProperty

Returns a new instance of IpamCIDRConfigProperty.

Parameters:

  • cidr (String)

    The CIDR that specifies the IP address range for this IPAM configuration.

  • ipam_pool_arn (String)

    The Amazon Resource Name (ARN) of the IPAM pool that the CIDR block is assigned to.



715
716
717
718
719
720
# File 'cloud_front/cfn_anycast_ip_list.rb', line 715

def initialize(cidr:, ipam_pool_arn:)
  @cidr = cidr
  Jsii::Type.check_type(@cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidr")
  @ipam_pool_arn = ipam_pool_arn
  Jsii::Type.check_type(@ipam_pool_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamPoolArn")
end

Instance Attribute Details

#cidrString (readonly)

The CIDR that specifies the IP address range for this IPAM configuration.



726
727
728
# File 'cloud_front/cfn_anycast_ip_list.rb', line 726

def cidr
  @cidr
end

#ipam_pool_arnString (readonly)

The Amazon Resource Name (ARN) of the IPAM pool that the CIDR block is assigned to.



731
732
733
# File 'cloud_front/cfn_anycast_ip_list.rb', line 731

def ipam_pool_arn
  @ipam_pool_arn
end

Class Method Details

.jsii_propertiesObject



733
734
735
736
737
738
# File 'cloud_front/cfn_anycast_ip_list.rb', line 733

def self.jsii_properties
  {
    :cidr => "cidr",
    :ipam_pool_arn => "ipamPoolArn",
  }
end

Instance Method Details

#to_jsiiObject



740
741
742
743
744
745
746
747
# File 'cloud_front/cfn_anycast_ip_list.rb', line 740

def to_jsii
  result = {}
  result.merge!({
    "cidr" => @cidr,
    "ipamPoolArn" => @ipam_pool_arn,
  })
  result.compact
end