LoggingDestination

class aws_cdk.aws_bedrock_agentcore_alpha.LoggingDestination

Bases: object

(experimental) 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

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
from aws_cdk import aws_logs as logs

# log_group: logs.LogGroup

logging_destination = bedrock_agentcore_alpha.LoggingDestination.cloud_watch_logs(log_group)
Stability:

experimental

Static Methods

classmethod cloud_watch_logs(log_group)

(experimental) Create a logging destination that sends logs to a CloudWatch Log Group.

Parameters:

log_group (ILogGroup) – The CloudWatch Log Group to send logs to.

Stability:

experimental

Return type:

LoggingDestination

classmethod firehose(stream)

(experimental) Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.

Parameters:

stream (IDeliveryStream) – The Firehose delivery stream to send logs to.

Stability:

experimental

Return type:

LoggingDestination

classmethod s3(bucket)

(experimental) Create a logging destination that sends logs to an S3 bucket.

Parameters:

bucket (IBucket) – The S3 bucket to send logs to.

Stability:

experimental

Return type:

LoggingDestination