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