Class: AWSCDK::AppMesh::CfnVirtualNode::LoggingFormatProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_virtual_node.rb

Overview

An object that represents the format for the logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json: nil, text: nil) ⇒ LoggingFormatProperty

Returns a new instance of LoggingFormatProperty.

Parameters:



1831
1832
1833
1834
1835
1836
# File 'app_mesh/cfn_virtual_node.rb', line 1831

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

Instance Attribute Details

#textString? (readonly)

The logging format for text.



1847
1848
1849
# File 'app_mesh/cfn_virtual_node.rb', line 1847

def text
  @text
end

Class Method Details

.jsii_propertiesObject



1849
1850
1851
1852
1853
1854
# File 'app_mesh/cfn_virtual_node.rb', line 1849

def self.jsii_properties
  {
    :json => "json",
    :text => "text",
  }
end

Instance Method Details

#to_jsiiObject



1856
1857
1858
1859
1860
1861
1862
1863
# File 'app_mesh/cfn_virtual_node.rb', line 1856

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