Class: AWSCDK::ServiceCatalog::CfnPortfolioProps

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

Overview

Properties for defining a CfnPortfolio.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(display_name:, provider_name:, accept_language: nil, description: nil, tags: nil) ⇒ CfnPortfolioProps

Returns a new instance of CfnPortfolioProps.

Parameters:

  • display_name (String)

    The name to use for display purposes.

  • provider_name (String)

    The name of the portfolio provider.

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

    The language code.

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

    The description of the portfolio.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    One or more tags.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'service_catalog/cfn_portfolio_props.rb', line 14

def initialize(display_name:, provider_name:, accept_language: nil, description: nil, tags: nil)
  @display_name = display_name
  Jsii::Type.check_type(@display_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "displayName")
  @provider_name = provider_name
  Jsii::Type.check_type(@provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "providerName")
  @accept_language = accept_language
  Jsii::Type.check_type(@accept_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acceptLanguage") unless @accept_language.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#accept_languageString? (readonly)

The language code.

  • jp - Japanese
  • zh - Chinese


44
45
46
# File 'service_catalog/cfn_portfolio_props.rb', line 44

def accept_language
  @accept_language
end

#descriptionString? (readonly)

The description of the portfolio.



49
50
51
# File 'service_catalog/cfn_portfolio_props.rb', line 49

def description
  @description
end

#display_nameString (readonly)

The name to use for display purposes.



31
32
33
# File 'service_catalog/cfn_portfolio_props.rb', line 31

def display_name
  @display_name
end

#provider_nameString (readonly)

The name of the portfolio provider.



36
37
38
# File 'service_catalog/cfn_portfolio_props.rb', line 36

def provider_name
  @provider_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

One or more tags.



54
55
56
# File 'service_catalog/cfn_portfolio_props.rb', line 54

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



56
57
58
59
60
61
62
63
64
# File 'service_catalog/cfn_portfolio_props.rb', line 56

def self.jsii_properties
  {
    :display_name => "displayName",
    :provider_name => "providerName",
    :accept_language => "acceptLanguage",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



66
67
68
69
70
71
72
73
74
75
76
# File 'service_catalog/cfn_portfolio_props.rb', line 66

def to_jsii
  result = {}
  result.merge!({
    "displayName" => @display_name,
    "providerName" => @provider_name,
    "acceptLanguage" => @accept_language,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end