Class FirelensOptions.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • configFileType

      @Stability(Stable) public FirelensOptions.Builder configFileType(FirelensConfigFileType configFileType)
      Parameters:
      configFileType - Custom configuration file, s3 or file. Both configFileType and configFileValue must be used together to define a custom configuration source.
      Returns:
      this
    • configFileValue

      @Stability(Stable) public FirelensOptions.Builder configFileValue(String configFileValue)
      Parameters:
      configFileValue - Custom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source.
      Returns:
      this
    • enableEcsLogMetadata

      @Stability(Stable) public FirelensOptions.Builder enableEcsLogMetadata(Boolean enableEcsLogMetadata)
      Sets the value of
      invalid @link
      FirelensOptions#getEnableEcsLogMetadata
      Parameters:
      enableEcsLogMetadata - By default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs. You can disable this action by setting enable-ecs-log-metadata to false.
      Returns:
      this
    • build

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