Class LogGroupLogsDelivery.Builder

java.lang.Object
software.amazon.awscdk.mixins.preview.services.logs.LogGroupLogsDelivery.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<LogGroupLogsDelivery>
Enclosing class:
LogGroupLogsDelivery

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

    • create

      @Stability(Experimental) public static LogGroupLogsDelivery.Builder create(ILogGroupRef logGroup)
      Parameters:
      logGroup -
      • The CloudWatch Logs log group reference.
      This parameter is required.
      Returns:
      a new instance of LogGroupLogsDelivery.Builder.
    • mandatoryFields

      @Stability(Experimental) public LogGroupLogsDelivery.Builder mandatoryFields(List<String> mandatoryFields)
      (experimental) Any recordFields that a mandatory to be included in a log delivery of a certain log type.

      Default: - log type has no mandatory fields

      Parameters:
      mandatoryFields - Any recordFields that a mandatory to be included in a log delivery of a certain log type. This parameter is required.
      Returns:
      this
    • providedFields

      @Stability(Experimental) public LogGroupLogsDelivery.Builder providedFields(List<String> providedFields)
      (experimental) RecordFields the user has defined to be used in log delivery.

      Parameters:
      providedFields - RecordFields the user has defined to be used in log delivery. This parameter is required.
      Returns:
      this
    • outputFormat

      @Stability(Experimental) public LogGroupLogsDelivery.Builder outputFormat(String outputFormat)
      (experimental) Format of the logs that are sent to the delivery destination specified.

      Parameters:
      outputFormat - Format of the logs that are sent to the delivery destination specified. This parameter is required.
      Returns:
      this
    • build

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