Class: AWSCDK::CloudAssemblySchema::PropertyMutationMetadataEntry

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_assembly_schema/property_mutation_metadata_entry.rb

Overview

Metadata type of a PropertyMutation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property_name:, stack_trace:) ⇒ PropertyMutationMetadataEntry

Returns a new instance of PropertyMutationMetadataEntry.

Parameters:

  • property_name (String)

    Name of the property.

  • stack_trace (Array<String>)

    Stack trace of the mutation.



9
10
11
12
13
14
# File 'cloud_assembly_schema/property_mutation_metadata_entry.rb', line 9

def initialize(property_name:, stack_trace:)
  @property_name = property_name
  Jsii::Type.check_type(@property_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "propertyName")
  @stack_trace = stack_trace
  Jsii::Type.check_type(@stack_trace, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "stackTrace")
end

Instance Attribute Details

#property_nameString (readonly)

Name of the property.

Returns:

  • (String)


19
20
21
# File 'cloud_assembly_schema/property_mutation_metadata_entry.rb', line 19

def property_name
  @property_name
end

#stack_traceArray<String> (readonly)

Stack trace of the mutation.

Returns:

  • (Array<String>)


23
24
25
# File 'cloud_assembly_schema/property_mutation_metadata_entry.rb', line 23

def stack_trace
  @stack_trace
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'cloud_assembly_schema/property_mutation_metadata_entry.rb', line 25

def self.jsii_properties
  {
    :property_name => "propertyName",
    :stack_trace => "stackTrace",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'cloud_assembly_schema/property_mutation_metadata_entry.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "propertyName" => @property_name,
    "stackTrace" => @stack_trace,
  })
  result.compact
end