Class BaseLogDriverProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • env

      @Stability(Stable) public BaseLogDriverProps.Builder env(List<String> env)
      Sets the value of BaseLogDriverProps.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

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

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

      @Stability(Stable) public BaseLogDriverProps.Builder tag(String tag)
      Sets the value of BaseLogDriverProps.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

      @Stability(Stable) public BaseLogDriverProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<BaseLogDriverProps>
      Returns:
      a new instance of BaseLogDriverProps
      Throws:
      NullPointerException - if any required attribute was not provided