Class: AWSCDK::ServiceCatalog::CfnPortfolioShareProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceCatalog::CfnPortfolioShareProps
- Defined in:
- service_catalog/cfn_portfolio_share_props.rb
Overview
Properties for defining a CfnPortfolioShare.
Instance Attribute Summary collapse
-
#accept_language ⇒ String?
readonly
The language code.
-
#account_id ⇒ String
readonly
The AWS account ID.
-
#portfolio_id ⇒ String
readonly
The portfolio identifier.
-
#share_tag_options ⇒ Boolean, ...
readonly
Indicates whether TagOptions sharing is enabled or disabled for the portfolio share.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, portfolio_id:, accept_language: nil, share_tag_options: nil) ⇒ CfnPortfolioShareProps
constructor
A new instance of CfnPortfolioShareProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, portfolio_id:, accept_language: nil, share_tag_options: nil) ⇒ CfnPortfolioShareProps
Returns a new instance of CfnPortfolioShareProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 13 def initialize(account_id:, portfolio_id:, accept_language: nil, share_tag_options: nil) @account_id = account_id Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId") @portfolio_id = portfolio_id Jsii::Type.check_type(@portfolio_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "portfolioId") @accept_language = accept_language Jsii::Type.check_type(@accept_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acceptLanguage") unless @accept_language.nil? @share_tag_options = Jsii::Type.check_type(@share_tag_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "shareTagOptions") unless @share_tag_options.nil? end |
Instance Attribute Details
#accept_language ⇒ String? (readonly)
The language code.
jp- Japanesezh- Chinese
43 44 45 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 43 def accept_language @accept_language end |
#account_id ⇒ String (readonly)
The AWS account ID.
For example, 123456789012 .
30 31 32 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 30 def account_id @account_id end |
#portfolio_id ⇒ String (readonly)
The portfolio identifier.
35 36 37 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 35 def portfolio_id @portfolio_id end |
#share_tag_options ⇒ Boolean, ... (readonly)
Indicates whether TagOptions sharing is enabled or disabled for the portfolio share.
48 49 50 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 48 def @share_tag_options end |
Class Method Details
.jsii_properties ⇒ Object
50 51 52 53 54 55 56 57 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 50 def self.jsii_properties { :account_id => "accountId", :portfolio_id => "portfolioId", :accept_language => "acceptLanguage", :share_tag_options => "shareTagOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
59 60 61 62 63 64 65 66 67 68 |
# File 'service_catalog/cfn_portfolio_share_props.rb', line 59 def to_jsii result = {} result.merge!({ "accountId" => @account_id, "portfolioId" => @portfolio_id, "acceptLanguage" => @accept_language, "shareTagOptions" => @share_tag_options, }) result.compact end |