Class: AWSCDK::ExportValueOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
export_value_options.rb

Overview

Options for the stack.exportValue() method.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description: nil, name: nil) ⇒ ExportValueOptions

Returns a new instance of ExportValueOptions.

Parameters:

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

    The description of the outputs.

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

    The name of the export to create.



9
10
11
12
13
14
# File 'export_value_options.rb', line 9

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

Instance Attribute Details

#descriptionString? (readonly)

Note:

Default: - No description

The description of the outputs.

Returns:

  • (String, nil)


20
21
22
# File 'export_value_options.rb', line 20

def description
  @description
end

#nameString? (readonly)

Note:

Default: - A name is automatically chosen

The name of the export to create.

Returns:

  • (String, nil)


25
26
27
# File 'export_value_options.rb', line 25

def name
  @name
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'export_value_options.rb', line 27

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

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'export_value_options.rb', line 34

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