Class GenericLogDriver.Builder

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

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

    • create

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

      @Stability(Stable) public GenericLogDriver.Builder logDriver(String logDriver)
      The log driver to use for the container.

      The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.

      For tasks using the Fargate launch type, the supported log drivers are awslogs and splunk. For tasks using the EC2 launch type, the supported log drivers are awslogs, syslog, gelf, fluentd, splunk, journald, and json-file.

      For more information about using the awslogs log driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.

      Parameters:
      logDriver - The log driver to use for the container. This parameter is required.
      Returns:
      this
    • options

      @Stability(Stable) public GenericLogDriver.Builder options(Map<String,String> options)
      The configuration options to send to the log driver.

      Default: - the log driver options.

      Parameters:
      options - The configuration options to send to the log driver. This parameter is required.
      Returns:
      this
    • secretOptions

      @Stability(Stable) public GenericLogDriver.Builder secretOptions(Map<String,? extends Secret> secretOptions)
      The secrets to pass to the log configuration.

      Default: - no secret options provided.

      Parameters:
      secretOptions - The secrets to pass to the log configuration. This parameter is required.
      Returns:
      this
    • build

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