Class: AWSCDK::ServiceCatalogAppRegistry::CfnApplicationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog_app_registry/cfn_application_props.rb

Overview

Properties for defining a CfnApplication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, tags: nil) ⇒ CfnApplicationProps

Returns a new instance of CfnApplicationProps.

Parameters:

  • name (String)

    The name of the application.

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

    The description of the application.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Key-value pairs you can use to associate with the application.



12
13
14
15
16
17
18
19
# File 'service_catalog_app_registry/cfn_application_props.rb', line 12

def initialize(name:, description: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the application.



32
33
34
# File 'service_catalog_app_registry/cfn_application_props.rb', line 32

def description
  @description
end

#nameString (readonly)

The name of the application.

The name must be unique in the region in which you are creating the application.



27
28
29
# File 'service_catalog_app_registry/cfn_application_props.rb', line 27

def name
  @name
end

#tagsHash{String => String}? (readonly)

Key-value pairs you can use to associate with the application.



37
38
39
# File 'service_catalog_app_registry/cfn_application_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'service_catalog_app_registry/cfn_application_props.rb', line 39

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'service_catalog_app_registry/cfn_application_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end