Class: AWSCDK::ServiceCatalogAppRegistry::CfnAttributeGroupProps

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

Overview

Properties for defining a CfnAttributeGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes:, name:, description: nil, tags: nil) ⇒ CfnAttributeGroupProps

Returns a new instance of CfnAttributeGroupProps.

Parameters:

  • attributes (Object)

    A nested object in a JSON or YAML template that supports arbitrary definitions.

  • name (String)

    The name of the attribute group.

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

    The description of the attribute group that the user provides.

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

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



13
14
15
16
17
18
19
20
21
22
# File 'service_catalog_app_registry/cfn_attribute_group_props.rb', line 13

def initialize(attributes:, name:, description: nil, tags: nil)
  @attributes = attributes
  Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "attributes")
  @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

#attributesObject (readonly)

A nested object in a JSON or YAML template that supports arbitrary definitions.

Represents the attributes in an attribute group that describes an application and its components.



30
31
32
# File 'service_catalog_app_registry/cfn_attribute_group_props.rb', line 30

def attributes
  @attributes
end

#descriptionString? (readonly)

The description of the attribute group that the user provides.



40
41
42
# File 'service_catalog_app_registry/cfn_attribute_group_props.rb', line 40

def description
  @description
end

#nameString (readonly)

The name of the attribute group.



35
36
37
# File 'service_catalog_app_registry/cfn_attribute_group_props.rb', line 35

def name
  @name
end

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

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



45
46
47
# File 'service_catalog_app_registry/cfn_attribute_group_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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

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

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'service_catalog_app_registry/cfn_attribute_group_props.rb', line 56

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