Class: AWSCDK::EC2::CfnIPAMPrefixListResolverProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnIPAMPrefixListResolverProps
- Defined in:
- ec2/cfn_ipam_prefix_list_resolver_props.rb
Overview
Properties for defining a CfnIPAMPrefixListResolver.
Instance Attribute Summary collapse
-
#address_family ⇒ String
readonly
The address family of the address space in this Prefix List Resolver.
- #description ⇒ String? readonly
-
#ipam_id ⇒ String?
readonly
The Id of the IPAM this Prefix List Resolver is a part of.
-
#rules ⇒ AWSCDK::IResolvable, ...
readonly
Rules define the business logic for selecting CIDRs from IPAM.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address_family:, description: nil, ipam_id: nil, rules: nil, tags: nil) ⇒ CfnIPAMPrefixListResolverProps
constructor
A new instance of CfnIPAMPrefixListResolverProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(address_family:, description: nil, ipam_id: nil, rules: nil, tags: nil) ⇒ CfnIPAMPrefixListResolverProps
Returns a new instance of CfnIPAMPrefixListResolverProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 14 def initialize(address_family:, description: nil, ipam_id: nil, rules: nil, tags: nil) @address_family = address_family Jsii::Type.check_type(@address_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addressFamily") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @ipam_id = ipam_id Jsii::Type.check_type(@ipam_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamId") unless @ipam_id.nil? @rules = rules Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbklQQU1QcmVmaXhMaXN0UmVzb2x2ZXIuSXBhbVByZWZpeExpc3RSZXNvbHZlclJ1bGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "rules") unless @rules.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#address_family ⇒ String (readonly)
The address family of the address space in this Prefix List Resolver.
Either IPv4 or IPv6.
33 34 35 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 33 def address_family @address_family end |
#description ⇒ String? (readonly)
36 37 38 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 36 def description @description end |
#ipam_id ⇒ String? (readonly)
The Id of the IPAM this Prefix List Resolver is a part of.
41 42 43 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 41 def ipam_id @ipam_id end |
#rules ⇒ AWSCDK::IResolvable, ... (readonly)
Rules define the business logic for selecting CIDRs from IPAM.
46 47 48 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 46 def rules @rules end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
51 52 53 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 53 def self.jsii_properties { :address_family => "addressFamily", :description => "description", :ipam_id => "ipamId", :rules => "rules", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'ec2/cfn_ipam_prefix_list_resolver_props.rb', line 63 def to_jsii result = {} result.merge!({ "addressFamily" => @address_family, "description" => @description, "ipamId" => @ipam_id, "rules" => @rules, "tags" => @tags, }) result.compact end |