Class CfnVirtualNode.FileAccessLogProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualNode.FileAccessLogProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNode.FileAccessLogProperty>
- Enclosing interface:
CfnVirtualNode.FileAccessLogProperty
@Stability(Stable)
public static final class CfnVirtualNode.FileAccessLogProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNode.FileAccessLogProperty>
A builder for
CfnVirtualNode.FileAccessLogProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.format
(IResolvable format) Sets the value ofCfnVirtualNode.FileAccessLogProperty.getFormat()
Sets the value ofCfnVirtualNode.FileAccessLogProperty.getFormat()
Sets the value ofCfnVirtualNode.FileAccessLogProperty.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofCfnVirtualNode.FileAccessLogProperty.getPath()
- Parameters:
path
- The file path to write access logs to. This parameter is required. You can use/dev/stdout
to send access logs to standard out and configure your Envoy container to use a log driver, such asawslogs
, 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.
- Returns:
this
-
format
Sets the value ofCfnVirtualNode.FileAccessLogProperty.getFormat()
- Parameters:
format
- The specified format for the logs. The format is eitherjson_format
ortext_format
.- Returns:
this
-
format
@Stability(Stable) public CfnVirtualNode.FileAccessLogProperty.Builder format(CfnVirtualNode.LoggingFormatProperty format) Sets the value ofCfnVirtualNode.FileAccessLogProperty.getFormat()
- Parameters:
format
- The specified format for the logs. The format is eitherjson_format
ortext_format
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVirtualNode.FileAccessLogProperty>
- Returns:
- a new instance of
CfnVirtualNode.FileAccessLogProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-