@Stability(value=Experimental) public static final class SyslogLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<SyslogLogDriverProps>
SyslogLogDriverProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public SyslogLogDriverProps.Builder address(String address)
SyslogLogDriverProps.getAddress()address - The address of an external syslog server.
The URI specifier may be
[tcp|udp|tcp+tls]://host:port, unix://path, or unixgram://path.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder facility(String facility)
SyslogLogDriverProps.getFacility()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.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder format(String format)
SyslogLogDriverProps.getFormat()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.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder tlsCaCert(String tlsCaCert)
SyslogLogDriverProps.getTlsCaCert()tlsCaCert - The absolute path to the trust certificates signed by the CA.
Ignored
if the address protocol is not tcp+tls.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder tlsCert(String tlsCert)
SyslogLogDriverProps.getTlsCert()tlsCert - The absolute path to the TLS certificate file.
Ignored if the address
protocol is not tcp+tls.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder tlsKey(String tlsKey)
SyslogLogDriverProps.getTlsKey()tlsKey - The absolute path to the TLS key file.
Ignored if the address protocol
is not tcp+tls.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder tlsSkipVerify(Boolean tlsSkipVerify)
SyslogLogDriverProps.getTlsSkipVerify()tlsSkipVerify - If set to true, TLS verification is skipped when connecting to the syslog daemon.
Ignored if the address protocol is not tcp+tls.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder env(List<String> env)
BaseLogDriverProps.getEnv()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.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder envRegex(String envRegex)
BaseLogDriverProps.getEnvRegex()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.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder labels(List<String> labels)
BaseLogDriverProps.getLabels()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.this@Stability(value=Experimental) public SyslogLogDriverProps.Builder tag(String tag)
BaseLogDriverProps.getTag()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.this@Stability(value=Experimental) public SyslogLogDriverProps build()
build in interface software.amazon.jsii.Builder<SyslogLogDriverProps>SyslogLogDriverPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.