Class: AWSCDK::CXAPI::MetadataEntryResult Deprecated

Inherits:
AWSCDK::CloudAssemblySchema::MetadataEntry
  • Object
show all
Defined in:
cxapi/metadata_entry_result.rb

Overview

Deprecated.

The official definition of this type has moved to @aws-cdk/cloud-assembly-api.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, data: nil, trace: nil, path:) ⇒ MetadataEntryResult

Returns a new instance of MetadataEntryResult.

Parameters:



11
12
13
14
15
16
17
18
19
20
# File 'cxapi/metadata_entry_result.rb', line 11

def initialize(type:, data: nil, trace: nil, path:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @data = data
  Jsii::Type.check_type(@data, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJwcmltaXRpdmUiOiJudW1iZXIifSx7InByaW1pdGl2ZSI6ImJvb2xlYW4ifSx7ImZxbiI6ImF3cy1jZGstbGliLmNsb3VkX2Fzc2VtYmx5X3NjaGVtYS5GaWxlQXNzZXRNZXRhZGF0YUVudHJ5In0seyJmcW4iOiJhd3MtY2RrLWxpYi5jbG91ZF9hc3NlbWJseV9zY2hlbWEuQ29udGFpbmVySW1hZ2VBc3NldE1ldGFkYXRhRW50cnkifSx7ImZxbiI6ImF3cy1jZGstbGliLmNsb3VkX2Fzc2VtYmx5X3NjaGVtYS5Qcm9wZXJ0eU11dGF0aW9uTWV0YWRhdGFFbnRyeSJ9LHsiY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5jbG91ZF9hc3NlbWJseV9zY2hlbWEuVGFnIn1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "data") unless @data.nil?
  @trace = trace
  Jsii::Type.check_type(@trace, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "trace") unless @trace.nil?
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
end

Instance Attribute Details

#dataString, ... (readonly)

Note:

Default: - no data.

The data.



30
31
32
# File 'cxapi/metadata_entry_result.rb', line 30

def data
  @data
end

#pathString (readonly)

The path in which this entry was defined.

Returns:

  • (String)


39
40
41
# File 'cxapi/metadata_entry_result.rb', line 39

def path
  @path
end

#traceArray<String>? (readonly)

Note:

Default: - no trace.

A stack trace for when the entry was created.

Returns:

  • (Array<String>, nil)


35
36
37
# File 'cxapi/metadata_entry_result.rb', line 35

def trace
  @trace
end

#typeString (readonly)

The type of the metadata entry.

Returns:

  • (String)


25
26
27
# File 'cxapi/metadata_entry_result.rb', line 25

def type
  @type
end

Class Method Details

.jsii_propertiesObject



41
42
43
44
45
46
47
48
# File 'cxapi/metadata_entry_result.rb', line 41

def self.jsii_properties
  {
    :type => "type",
    :data => "data",
    :trace => "trace",
    :path => "path",
  }
end

Instance Method Details

#to_jsiiObject



50
51
52
53
54
55
56
57
58
59
60
# File 'cxapi/metadata_entry_result.rb', line 50

def to_jsii
  result = {}
  result.merge!(super)
  result.merge!({
    "type" => @type,
    "data" => @data,
    "trace" => @trace,
    "path" => @path,
  })
  result.compact
end