Class SyslogLogDriver.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.SyslogLogDriver.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SyslogLogDriver>
Enclosing class:
SyslogLogDriver

@Stability(Stable) public static final class SyslogLogDriver.Builder extends Object implements software.amazon.jsii.Builder<SyslogLogDriver>
A fluent builder for SyslogLogDriver.
  • Method Details

    • create

      @Stability(Stable) public static SyslogLogDriver.Builder create()
      Returns:
      a new instance of SyslogLogDriver.Builder.
    • env

      @Stability(Stable) public SyslogLogDriver.Builder env(List<String> 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.

      Default: - No env

      Parameters:
      env - The env option takes an array of keys. This parameter is required.
      Returns:
      this
    • envRegex

      @Stability(Stable) public SyslogLogDriver.Builder envRegex(String 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.

      Default: - No envRegex

      Parameters:
      envRegex - The env-regex option is similar to and compatible with env. This parameter is required.
      Returns:
      this
    • labels

      @Stability(Stable) public SyslogLogDriver.Builder labels(List<String> 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.

      Default: - No labels

      Parameters:
      labels - The labels option takes an array of keys. This parameter is required.
      Returns:
      this
    • tag

      @Stability(Stable) public SyslogLogDriver.Builder tag(String 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.

      Default: - The first 12 characters of the container ID

      Parameters:
      tag - By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.
      Returns:
      this
    • address

      @Stability(Stable) public SyslogLogDriver.Builder address(String address)
      The address of an external syslog server.

      The URI specifier may be [tcp|udp|tcp+tls]://host:port, unix://path, or unixgram://path.

      Default: - If the transport is tcp, udp, or tcp+tls, the default port is 514.

      Parameters:
      address - The address of an external syslog server. This parameter is required.
      Returns:
      this
    • facility

      @Stability(Stable) public SyslogLogDriver.Builder facility(String 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.

      Default: - facility not set

      Parameters:
      facility - The syslog facility to use. This parameter is required.
      Returns:
      this
    • format

      @Stability(Stable) public SyslogLogDriver.Builder format(String 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.

      Default: - format not set

      Parameters:
      format - The syslog message format to use. This parameter is required.
      Returns:
      this
    • tlsCaCert

      @Stability(Stable) public SyslogLogDriver.Builder tlsCaCert(String tlsCaCert)
      The absolute path to the trust certificates signed by the CA.

      Ignored if the address protocol is not tcp+tls.

      Default: - tlsCaCert not set

      Parameters:
      tlsCaCert - The absolute path to the trust certificates signed by the CA. This parameter is required.
      Returns:
      this
    • tlsCert

      @Stability(Stable) public SyslogLogDriver.Builder tlsCert(String tlsCert)
      The absolute path to the TLS certificate file.

      Ignored if the address protocol is not tcp+tls.

      Default: - tlsCert not set

      Parameters:
      tlsCert - The absolute path to the TLS certificate file. This parameter is required.
      Returns:
      this
    • tlsKey

      @Stability(Stable) public SyslogLogDriver.Builder tlsKey(String tlsKey)
      The absolute path to the TLS key file.

      Ignored if the address protocol is not tcp+tls.

      Default: - tlsKey not set

      Parameters:
      tlsKey - The absolute path to the TLS key file. This parameter is required.
      Returns:
      this
    • tlsSkipVerify

      @Stability(Stable) public SyslogLogDriver.Builder tlsSkipVerify(Boolean tlsSkipVerify)
      If set to true, TLS verification is skipped when connecting to the syslog daemon.

      Ignored if the address protocol is not tcp+tls.

      Default: - false

      Parameters:
      tlsSkipVerify - If set to true, TLS verification is skipped when connecting to the syslog daemon. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public SyslogLogDriver build()
      Specified by:
      build in interface software.amazon.jsii.Builder<SyslogLogDriver>
      Returns:
      a newly built instance of SyslogLogDriver.