Class: AWSCDK::EC2::PrefixListLookupOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::PrefixListLookupOptions
- Defined in:
- ec2/prefix_list_lookup_options.rb
Overview
Properties for looking up an existing managed prefix list.
Instance Attribute Summary collapse
-
#address_family ⇒ AWSCDK::EC2::AddressFamily?
readonly
The address family of the managed prefix list.
-
#owner_id ⇒ String?
readonly
The ID of the AWS account that owns the managed prefix list.
-
#prefix_list_name ⇒ String
readonly
The name of the managed prefix list.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prefix_list_name:, address_family: nil, owner_id: nil) ⇒ PrefixListLookupOptions
constructor
A new instance of PrefixListLookupOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prefix_list_name:, address_family: nil, owner_id: nil) ⇒ PrefixListLookupOptions
Returns a new instance of PrefixListLookupOptions.
10 11 12 13 14 15 16 17 |
# File 'ec2/prefix_list_lookup_options.rb', line 10 def initialize(prefix_list_name:, address_family: nil, owner_id: nil) @prefix_list_name = prefix_list_name Jsii::Type.check_type(@prefix_list_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixListName") @address_family = address_family Jsii::Type.check_type(@address_family, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkFkZHJlc3NGYW1pbHkifQ==")), "addressFamily") unless @address_family.nil? @owner_id = owner_id Jsii::Type.check_type(@owner_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerId") unless @owner_id.nil? end |
Instance Attribute Details
#address_family ⇒ AWSCDK::EC2::AddressFamily? (readonly)
Note:
Default: - Don't filter on addressFamily
The address family of the managed prefix list.
27 28 29 |
# File 'ec2/prefix_list_lookup_options.rb', line 27 def address_family @address_family end |
#owner_id ⇒ String? (readonly)
Note:
Default: - Don't filter on ownerId
The ID of the AWS account that owns the managed prefix list.
32 33 34 |
# File 'ec2/prefix_list_lookup_options.rb', line 32 def owner_id @owner_id end |
#prefix_list_name ⇒ String (readonly)
The name of the managed prefix list.
22 23 24 |
# File 'ec2/prefix_list_lookup_options.rb', line 22 def prefix_list_name @prefix_list_name end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 40 |
# File 'ec2/prefix_list_lookup_options.rb', line 34 def self.jsii_properties { :prefix_list_name => "prefixListName", :address_family => "addressFamily", :owner_id => "ownerId", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'ec2/prefix_list_lookup_options.rb', line 42 def to_jsii result = {} result.merge!({ "prefixListName" => @prefix_list_name, "addressFamily" => @address_family, "ownerId" => @owner_id, }) result.compact end |