Class: AWSCDK::AppMesh::CfnVirtualNode::LoggingFormatProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::LoggingFormatProperty
- Defined in:
- app_mesh/cfn_virtual_node.rb
Overview
An object that represents the format for the logs.
Instance Attribute Summary collapse
-
#json ⇒ AWSCDK::IResolvable, ...
readonly
The logging format for JSON.
-
#text ⇒ String?
readonly
The logging format for text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json: nil, text: nil) ⇒ LoggingFormatProperty
constructor
A new instance of LoggingFormatProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(json: nil, text: nil) ⇒ LoggingFormatProperty
Returns a new instance of LoggingFormatProperty.
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
#json ⇒ AWSCDK::IResolvable, ... (readonly)
The logging format for JSON.
1842 1843 1844 |
# File 'app_mesh/cfn_virtual_node.rb', line 1842 def json @json end |
#text ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |