Class: AWSCDK::EC2::PrefixListLookupOptions

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

Overview

Properties for looking up an existing managed prefix list.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prefix_list_name:, address_family: nil, owner_id: nil) ⇒ PrefixListLookupOptions

Returns a new instance of PrefixListLookupOptions.

Parameters:

  • prefix_list_name (String)

    The name of the managed prefix list.

  • address_family (AWSCDK::EC2::AddressFamily, nil) (defaults to: nil)

    The address family of the managed prefix list.

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

    The ID of the AWS account that owns the managed prefix list.



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_familyAWSCDK::EC2::AddressFamily? (readonly)

Note:

Default: - Don't filter on addressFamily

The address family of the managed prefix list.

Returns:



27
28
29
# File 'ec2/prefix_list_lookup_options.rb', line 27

def address_family
  @address_family
end

#owner_idString? (readonly)

Note:

Default: - Don't filter on ownerId

The ID of the AWS account that owns the managed prefix list.

Returns:

  • (String, nil)


32
33
34
# File 'ec2/prefix_list_lookup_options.rb', line 32

def owner_id
  @owner_id
end

#prefix_list_nameString (readonly)

The name of the managed prefix list.

Returns:

  • (String)


22
23
24
# File 'ec2/prefix_list_lookup_options.rb', line 22

def prefix_list_name
  @prefix_list_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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