Interface CloudWatchLoggingOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CloudWatchLoggingOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:15.866Z") @Stability(Stable) public interface CloudWatchLoggingOptions extends software.amazon.jsii.JsiiSerializable
Information about logs built to a CloudWatch Log Group for a build project.

Example:

 Project.Builder.create(this, "Project")
         .logging(LoggingOptions.builder()
                 .cloudWatch(CloudWatchLoggingOptions.builder()
                         .logGroup(new LogGroup(this, "MyLogGroup"))
                         .build())
                 .build())
         .build();
 
  • Method Details

    • getEnabled

      @Stability(Stable) @Nullable default Boolean getEnabled()
      The current status of the logs in Amazon CloudWatch Logs for a build project.

      Default: true

    • getLogGroup

      @Stability(Stable) @Nullable default ILogGroup getLogGroup()
      The Log Group to send logs to.

      Default: - no log group specified

    • getPrefix

      @Stability(Stable) @Nullable default String getPrefix()
      The prefix of the stream name of the Amazon CloudWatch Logs.

      Default: - no prefix

    • builder

      @Stability(Stable) static CloudWatchLoggingOptions.Builder builder()
      Returns:
      a CloudWatchLoggingOptions.Builder of CloudWatchLoggingOptions