Class GelfLogDriver

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.371Z") @Stability(Stable) public class GelfLogDriver extends LogDriver
A log driver that sends log information to journald Logs.

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.*;
 import software.amazon.awscdk.core.*;
 GelfLogDriver gelfLogDriver = GelfLogDriver.Builder.create()
         .address("address")
         // the properties below are optional
         .compressionLevel(123)
         .compressionType(GelfCompressionType.GZIP)
         .env(List.of("env"))
         .envRegex("envRegex")
         .labels(List.of("labels"))
         .tag("tag")
         .tcpMaxReconnect(123)
         .tcpReconnectDelay(Duration.minutes(30))
         .build();
 
  • Nested Class Summary

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

    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 GelfLogDriver class.
    protected
    GelfLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    GelfLogDriver(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(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

    • GelfLogDriver

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

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

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

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

    • bind

      @Stability(Stable) @NotNull public LogDriverConfig bind(@NotNull 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.