Class: AWSCDK::AppMesh::CfnVirtualNode::FileAccessLogProperty

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

Overview

An object that represents an access log file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, format: nil) ⇒ FileAccessLogProperty

Returns a new instance of FileAccessLogProperty.

Parameters:



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

#formatAWSCDK::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

#pathString (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_propertiesObject



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_jsiiObject



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