Class AwsLogDriverProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.AwsLogDriverProps.Jsii$Proxy
All Implemented Interfaces:
AwsLogDriverProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
AwsLogDriverProps

@Stability(Stable) @Internal public static final class AwsLogDriverProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AwsLogDriverProps
An implementation for AwsLogDriverProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(AwsLogDriverProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the AwsLogDriverProps.Builder.
  • Method Details

    • getStreamPrefix

      public final String getStreamPrefix()
      Description copied from interface: AwsLogDriverProps
      Prefix for the log streams.

      The awslogs-stream-prefix option allows you to associate a log stream with the specified prefix, the container name, and the ID of the Amazon ECS task to which the container belongs. If you specify a prefix with this option, then the log stream takes the following format:

        prefix-name/container-name/ecs-task-id
       
      Specified by:
      getStreamPrefix in interface AwsLogDriverProps
    • getDatetimeFormat

      public final String getDatetimeFormat()
      Description copied from interface: AwsLogDriverProps
      This option defines a multiline start pattern in Python strftime format.

      A log message consists of a line that matches the pattern and any following lines that don’t match the pattern. Thus the matched line is the delimiter between log messages.

      Default: - No multiline matching.

      Specified by:
      getDatetimeFormat in interface AwsLogDriverProps
    • getLogGroup

      public final ILogGroup getLogGroup()
      Description copied from interface: AwsLogDriverProps
      The log group to log to.

      Default: - A log group is automatically created.

      Specified by:
      getLogGroup in interface AwsLogDriverProps
    • getLogRetention

      public final RetentionDays getLogRetention()
      Description copied from interface: AwsLogDriverProps
      The number of days log events are kept in CloudWatch Logs when the log group is automatically created by this construct.

      Default: - Logs never expire.

      Specified by:
      getLogRetention in interface AwsLogDriverProps
    • getMode

      public final AwsLogDriverMode getMode()
      Description copied from interface: AwsLogDriverProps
      The delivery mode of log messages from the container to awslogs.

      Default: - AwsLogDriverMode.BLOCKING

      Specified by:
      getMode in interface AwsLogDriverProps
    • getMultilinePattern

      public final String getMultilinePattern()
      Description copied from interface: AwsLogDriverProps
      This option defines a multiline start pattern using a regular expression.

      A log message consists of a line that matches the pattern and any following lines that don’t match the pattern. Thus the matched line is the delimiter between log messages.

      This option is ignored if datetimeFormat is also configured.

      Default: - No multiline matching.

      Specified by:
      getMultilinePattern in interface AwsLogDriverProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object