Class SyslogLogDriverProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.SyslogLogDriverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SyslogLogDriverProps>
- Enclosing interface:
SyslogLogDriverProps
@Stability(Stable)
public static final class SyslogLogDriverProps.Builder
extends Object
implements software.amazon.jsii.Builder<SyslogLogDriverProps>
A builder for
SyslogLogDriverProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofSyslogLogDriverProps.getAddress()
build()
Builds the configured instance.Sets the value ofBaseLogDriverProps.getEnv()
Sets the value ofBaseLogDriverProps.getEnvRegex()
Sets the value ofSyslogLogDriverProps.getFacility()
Sets the value ofSyslogLogDriverProps.getFormat()
Sets the value ofBaseLogDriverProps.getLabels()
Sets the value ofBaseLogDriverProps.getTag()
Sets the value ofSyslogLogDriverProps.getTlsCaCert()
Sets the value ofSyslogLogDriverProps.getTlsCert()
Sets the value ofSyslogLogDriverProps.getTlsKey()
tlsSkipVerify
(Boolean tlsSkipVerify) Sets the value ofSyslogLogDriverProps.getTlsSkipVerify()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofSyslogLogDriverProps.getAddress()
- Parameters:
address
- The address of an external syslog server. The URI specifier may be [tcp|udp|tcp+tls]://host:port, unix://path, or unixgram://path.- Returns:
this
-
facility
Sets the value ofSyslogLogDriverProps.getFacility()
- Parameters:
facility
- The syslog facility to use. Can be the number or name for any valid syslog facility. See the syslog documentation: https://tools.ietf.org/html/rfc5424#section-6.2.1.- Returns:
this
-
format
Sets the value ofSyslogLogDriverProps.getFormat()
- Parameters:
format
- The syslog message format to use. If not specified the local UNIX syslog format is used, without a specified hostname. Specify rfc3164 for the RFC-3164 compatible format, rfc5424 for RFC-5424 compatible format, or rfc5424micro for RFC-5424 compatible format with microsecond timestamp resolution.- Returns:
this
-
tlsCaCert
Sets the value ofSyslogLogDriverProps.getTlsCaCert()
- Parameters:
tlsCaCert
- The absolute path to the trust certificates signed by the CA. Ignored if the address protocol is not tcp+tls.- Returns:
this
-
tlsCert
Sets the value ofSyslogLogDriverProps.getTlsCert()
- Parameters:
tlsCert
- The absolute path to the TLS certificate file. Ignored if the address protocol is not tcp+tls.- Returns:
this
-
tlsKey
Sets the value ofSyslogLogDriverProps.getTlsKey()
- Parameters:
tlsKey
- The absolute path to the TLS key file. Ignored if the address protocol is not tcp+tls.- Returns:
this
-
tlsSkipVerify
Sets the value ofSyslogLogDriverProps.getTlsSkipVerify()
- Parameters:
tlsSkipVerify
- If set to true, TLS verification is skipped when connecting to the syslog daemon. Ignored if the address protocol is not tcp+tls.- Returns:
this
-
env
Sets the value ofBaseLogDriverProps.getEnv()
- Parameters:
env
- The env option takes an array of keys. If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.- Returns:
this
-
envRegex
Sets the value ofBaseLogDriverProps.getEnvRegex()
- Parameters:
envRegex
- The env-regex option is similar to and compatible with env. Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.- Returns:
this
-
labels
Sets the value ofBaseLogDriverProps.getLabels()
- Parameters:
labels
- The labels option takes an array of keys. If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.- Returns:
this
-
tag
Sets the value ofBaseLogDriverProps.getTag()
- Parameters:
tag
- By default, Docker uses the first 12 characters of the container ID to tag log messages. Refer to the log tag option documentation for customizing the log tag format.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SyslogLogDriverProps>
- Returns:
- a new instance of
SyslogLogDriverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-