Class: AWSCDK::AppMesh::CfnVirtualGateway::LoggingFormatProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualGateway::LoggingFormatProperty
- Defined in:
- app_mesh/cfn_virtual_gateway.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.
668 669 670 671 672 673 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 668 def initialize(json: nil, text: nil) @json = json Jsii::Type.check_type(@json, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5WaXJ0dWFsR2F0ZXdheS5Kc29uRm9ybWF0UmVmUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "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.
679 680 681 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 679 def json @json end |
#text ⇒ String? (readonly)
The logging format for text.
684 685 686 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 684 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
686 687 688 689 690 691 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 686 def self.jsii_properties { :json => "json", :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
693 694 695 696 697 698 699 700 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 693 def to_jsii result = {} result.merge!({ "json" => @json, "text" => @text, }) result.compact end |