Class FireLensLogDriver

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.LogDriver
software.amazon.awscdk.services.ecs.FireLensLogDriver
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.467Z") @Stability(Stable) public class FireLensLogDriver extends LogDriver
FireLens enables you to use task definition parameters to route logs to an AWS service or AWS Partner Network (APN) destination for log storage and analytics.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 Secret secret;
 FireLensLogDriver fireLensLogDriver = FireLensLogDriver.Builder.create()
         .env(List.of("env"))
         .envRegex("envRegex")
         .labels(List.of("labels"))
         .options(Map.of(
                 "optionsKey", "options"))
         .secretOptions(Map.of(
                 "secretOptionsKey", secret))
         .tag("tag")
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for FireLensLogDriver.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Constructs a new instance of the FireLensLogDriver class.
    protected
    FireLensLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    FireLensLogDriver(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct _scope, ContainerDefinition _containerDefinition)
    Called when the log driver is configured on a container.

    Methods inherited from class software.amazon.awscdk.services.ecs.LogDriver

    awsLogs

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • FireLensLogDriver

      protected FireLensLogDriver(software.amazon.jsii.JsiiObjectRef objRef)
    • FireLensLogDriver

      protected FireLensLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • FireLensLogDriver

      @Stability(Stable) public FireLensLogDriver(@NotNull FireLensLogDriverProps props)
      Constructs a new instance of the FireLensLogDriver class.

      Parameters:
      props - the awsfirelens log driver configuration options. This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public LogDriverConfig bind(@NotNull software.constructs.Construct _scope, @NotNull ContainerDefinition _containerDefinition)
      Called when the log driver is configured on a container.

      Specified by:
      bind in class LogDriver
      Parameters:
      _scope - This parameter is required.
      _containerDefinition - This parameter is required.