Class: AWSCDK::CloudAssemblySchema::MetadataEntry
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::MetadataEntry
- Defined in:
- cloud_assembly_schema/metadata_entry.rb
Overview
A metadata entry in a cloud assembly artifact.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ String, ...
readonly
The data.
-
#trace ⇒ Array<String>?
readonly
A stack trace for when the entry was created.
-
#type ⇒ String
readonly
The type of the metadata entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, data: nil, trace: nil) ⇒ MetadataEntry
constructor
A new instance of MetadataEntry.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, data: nil, trace: nil) ⇒ MetadataEntry
Returns a new instance of MetadataEntry.
10 11 12 13 14 15 16 17 |
# File 'cloud_assembly_schema/metadata_entry.rb', line 10 def initialize(type:, data: nil, trace: nil) @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? end |
Instance Attribute Details
#data ⇒ String, ... (readonly)
Note:
Default: - no data.
The data.
27 28 29 |
# File 'cloud_assembly_schema/metadata_entry.rb', line 27 def data @data end |
#trace ⇒ Array<String>? (readonly)
Note:
Default: - no trace.
A stack trace for when the entry was created.
32 33 34 |
# File 'cloud_assembly_schema/metadata_entry.rb', line 32 def trace @trace end |
#type ⇒ String (readonly)
The type of the metadata entry.
22 23 24 |
# File 'cloud_assembly_schema/metadata_entry.rb', line 22 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 40 |
# File 'cloud_assembly_schema/metadata_entry.rb', line 34 def self.jsii_properties { :type => "type", :data => "data", :trace => "trace", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'cloud_assembly_schema/metadata_entry.rb', line 42 def to_jsii result = {} result.merge!({ "type" => @type, "data" => @data, "trace" => @trace, }) result.compact end |