Class LoggingDestination

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.LoggingDestination
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-19T19:44:37.149Z") @Stability(Stable) public abstract class LoggingDestination extends software.amazon.jsii.JsiiObject
Represents a logging destination for AgentCore Runtime.

Use the static factory methods to create instances:

  • LoggingDestination.cloudWatchLogs(logGroup) - Send logs to CloudWatch Logs
  • LoggingDestination.s3(bucket) - Send logs to S3
  • LoggingDestination.firehose(stream) - Send logs to Kinesis Data Firehose

Example:

 Repository repository = Repository.Builder.create(this, "TestRepository")
         .repositoryName("test-agent-runtime")
         .build();
 AgentRuntimeArtifact agentRuntimeArtifact = AgentRuntimeArtifact.fromEcrRepository(repository, "v1.0.0");
 // Create logging destinations
 LogGroup logGroup = new LogGroup(this, "RuntimeLogGroup");
 Bucket logBucket = new Bucket(this, "RuntimeLogBucket");
 DeliveryStream firehoseStream = DeliveryStream.Builder.create(this, "RuntimeLogStream")
         .destination(new S3Bucket(logBucket))
         .build();
 Runtime.Builder.create(this, "test-runtime")
         .runtimeName("test_runtime")
         .agentRuntimeArtifact(agentRuntimeArtifact)
         .tracingEnabled(true)
         .loggingConfigs(List.of(LoggingConfig.builder()
                 .logType(LogType.APPLICATION_LOGS)
                 .destination(LoggingDestination.cloudWatchLogs(logGroup))
                 .build(), LoggingConfig.builder()
                 .logType(LogType.APPLICATION_LOGS)
                 .destination(LoggingDestination.s3(logBucket))
                 .build(), LoggingConfig.builder()
                 .logType(LogType.APPLICATION_LOGS)
                 .destination(LoggingDestination.firehose(firehoseStream))
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    LoggingDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    LoggingDestination(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a logging destination that sends logs to a CloudWatch Log Group.
    Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.
    s3(IBucket bucket)
    Create a logging destination that sends logs to an S3 bucket.

    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

    • LoggingDestination

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

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

      @Stability(Stable) protected LoggingDestination()
  • Method Details

    • cloudWatchLogs

      @Stability(Stable) @NotNull public static LoggingDestination cloudWatchLogs(@NotNull ILogGroup logGroup)
      Create a logging destination that sends logs to a CloudWatch Log Group.

      Parameters:
      logGroup - The CloudWatch Log Group to send logs to. This parameter is required.
    • firehose

      @Stability(Stable) @NotNull public static LoggingDestination firehose(@NotNull IDeliveryStream stream)
      Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.

      Parameters:
      stream - The Firehose delivery stream to send logs to. This parameter is required.
    • s3

      @Stability(Stable) @NotNull public static LoggingDestination s3(@NotNull IBucket bucket)
      Create a logging destination that sends logs to an S3 bucket.

      Parameters:
      bucket - The S3 bucket to send logs to. This parameter is required.