Class: AWSCDK::AppMesh::CfnVirtualNode::FileAccessLogProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::FileAccessLogProperty
- Defined in:
- app_mesh/cfn_virtual_node.rb
Overview
An object that represents an access log file.
Instance Attribute Summary collapse
-
#format ⇒ AWSCDK::IResolvable, ...
readonly
The specified format for the logs.
-
#path ⇒ String
readonly
The file path to write access logs to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path:, format: nil) ⇒ FileAccessLogProperty
constructor
A new instance of FileAccessLogProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(path:, format: nil) ⇒ FileAccessLogProperty
Returns a new instance of FileAccessLogProperty.
1089 1090 1091 1092 1093 1094 |
# File 'app_mesh/cfn_virtual_node.rb', line 1089 def initialize(path:, format: nil) @path = path Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") @format = format.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::LoggingFormatProperty.new(**format.transform_keys(&:to_sym)) : format Jsii::Type.check_type(@format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkxvZ2dpbmdGb3JtYXRQcm9wZXJ0eSJ9XX19")), "format") unless @format.nil? end |
Instance Attribute Details
#format ⇒ AWSCDK::IResolvable, ... (readonly)
The specified format for the logs.
The format is either json_format or text_format .
1111 1112 1113 |
# File 'app_mesh/cfn_virtual_node.rb', line 1111 def format @format end |
#path ⇒ String (readonly)
The file path to write access logs to.
You can use /dev/stdout to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs , to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.
The Envoy process must have write permissions to the path that you specify here. Otherwise, Envoy fails to bootstrap properly.
1104 1105 1106 |
# File 'app_mesh/cfn_virtual_node.rb', line 1104 def path @path end |
Class Method Details
.jsii_properties ⇒ Object
1113 1114 1115 1116 1117 1118 |
# File 'app_mesh/cfn_virtual_node.rb', line 1113 def self.jsii_properties { :path => "path", :format => "format", } end |
Instance Method Details
#to_jsii ⇒ Object
1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'app_mesh/cfn_virtual_node.rb', line 1120 def to_jsii result = {} result.merge!({ "path" => @path, "format" => @format, }) result.compact end |