Class: AWSCDK::Interfaces::AWSEC2::PrefixListReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEC2::PrefixListReference
- Defined in:
- interfaces/awsec2/prefix_list_reference.rb
Overview
A reference to a PrefixList resource.
Instance Attribute Summary collapse
-
#prefix_list_arn ⇒ String
readonly
The ARN of the PrefixList resource.
-
#prefix_list_id ⇒ String
readonly
The PrefixListId of the PrefixList resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prefix_list_arn:, prefix_list_id:) ⇒ PrefixListReference
constructor
A new instance of PrefixListReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prefix_list_arn:, prefix_list_id:) ⇒ PrefixListReference
Returns a new instance of PrefixListReference.
9 10 11 12 13 14 |
# File 'interfaces/awsec2/prefix_list_reference.rb', line 9 def initialize(prefix_list_arn:, prefix_list_id:) @prefix_list_arn = prefix_list_arn Jsii::Type.check_type(@prefix_list_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixListArn") @prefix_list_id = prefix_list_id Jsii::Type.check_type(@prefix_list_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixListId") end |
Instance Attribute Details
#prefix_list_arn ⇒ String (readonly)
The ARN of the PrefixList resource.
19 20 21 |
# File 'interfaces/awsec2/prefix_list_reference.rb', line 19 def prefix_list_arn @prefix_list_arn end |
#prefix_list_id ⇒ String (readonly)
The PrefixListId of the PrefixList resource.
23 24 25 |
# File 'interfaces/awsec2/prefix_list_reference.rb', line 23 def prefix_list_id @prefix_list_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsec2/prefix_list_reference.rb', line 25 def self.jsii_properties { :prefix_list_arn => "prefixListArn", :prefix_list_id => "prefixListId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsec2/prefix_list_reference.rb', line 32 def to_jsii result = {} result.merge!({ "prefixListArn" => @prefix_list_arn, "prefixListId" => @prefix_list_id, }) result.compact end |