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 LogsLoggingDestination.s3(bucket)- Send logs to S3LoggingDestination.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
ConstructorsModifierConstructorDescriptionprotectedprotectedLoggingDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLoggingDestination(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingDestinationcloudWatchLogs(ILogGroup logGroup) Create a logging destination that sends logs to a CloudWatch Log Group.static LoggingDestinationfirehose(IDeliveryStream stream) Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.static LoggingDestinationCreate 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Create a logging destination that sends logs to an S3 bucket.- Parameters:
bucket- The S3 bucket to send logs to. This parameter is required.
-