Class: AWSCDK::ServiceCatalog::CfnPortfolioShareProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cfn_portfolio_share_props.rb

Overview

Properties for defining a CfnPortfolioShare.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, portfolio_id:, accept_language: nil, share_tag_options: nil) ⇒ CfnPortfolioShareProps

Returns a new instance of CfnPortfolioShareProps.

Parameters:

  • account_id (String)

    The AWS account ID.

  • portfolio_id (String)

    The portfolio identifier.

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

    The language code.

  • share_tag_options (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether TagOptions sharing is enabled or disabled for the portfolio share.



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 = 
  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 = 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_languageString? (readonly)

The language code.

  • jp - Japanese
  • zh - Chinese


43
44
45
# File 'service_catalog/cfn_portfolio_share_props.rb', line 43

def accept_language
  @accept_language
end

#account_idString (readonly)

The AWS account ID.

For example, 123456789012 .



30
31
32
# File 'service_catalog/cfn_portfolio_share_props.rb', line 30

def 
  @account_id
end

#portfolio_idString (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_optionsBoolean, ... (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
  @share_tag_options
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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