Class CloudwatchLogsLogDestination

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.pipes.alpha.CloudwatchLogsLogDestination
All Implemented Interfaces:
ILogDestination, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-16T11:43:25.681Z") @Stability(Experimental) public class CloudwatchLogsLogDestination extends software.amazon.jsii.JsiiObject implements ILogDestination
(experimental) CloudWatch Logs log group for delivery of pipe logs.

Example:

 Queue sourceQueue;
 Queue targetQueue;
 LogGroup logGroup;
 CloudwatchLogsLogDestination cwlLogDestination = new CloudwatchLogsLogDestination(logGroup);
 Pipe pipe = Pipe.Builder.create(this, "Pipe")
         .source(new SqsSource(sourceQueue))
         .target(new SqsTarget(targetQueue))
         .logLevel(LogLevel.TRACE)
         .logIncludeExecutionData(List.of(IncludeExecutionData.ALL))
         .logDestinations(List.of(cwlLogDestination))
         .build();
 
  • Constructor Details

    • CloudwatchLogsLogDestination

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

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

      @Stability(Experimental) public CloudwatchLogsLogDestination(@NotNull ILogGroup logGroup)
      Parameters:
      logGroup - This parameter is required.
  • Method Details

    • bind

      @Stability(Experimental) @NotNull public LogDestinationConfig bind(@NotNull IPipe _pipe)
      (experimental) Bind the log destination to the pipe.

      Specified by:
      bind in interface ILogDestination
      Parameters:
      _pipe - This parameter is required.
    • grantPush

      @Stability(Experimental) public void grantPush(@NotNull IRole pipeRole)
      (experimental) Grant the pipe role to push to the log destination.

      Specified by:
      grantPush in interface ILogDestination
      Parameters:
      pipeRole - This parameter is required.