Struct aws_sdk_appmesh::model::file_access_log::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FileAccessLog
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
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.
sourcepub fn format(self, input: LoggingFormat) -> Self
pub fn format(self, input: LoggingFormat) -> Self
The specified format for the logs. The format is either json_format
or text_format
.
sourcepub fn set_format(self, input: Option<LoggingFormat>) -> Self
pub fn set_format(self, input: Option<LoggingFormat>) -> Self
The specified format for the logs. The format is either json_format
or text_format
.
sourcepub fn build(self) -> FileAccessLog
pub fn build(self) -> FileAccessLog
Consumes the builder and constructs a FileAccessLog
.