# LoggingDestination

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

Obtainable from: LoggingDestination.cloudWatchLogs, LoggingDestination.firehose, LoggingDestination.s3

- Source: [`lib/runtime/observability.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/runtime/observability.ts#L82)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import { aws_logs as logs } from 'aws-cdk-lib';

declare const logGroup: logs.LogGroup;
const loggingDestination = bedrock_agentcore_alpha.LoggingDestination.cloudWatchLogs(logGroup);
```

Python:

```python
# 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)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
import software.amazon.awscdk.services.logs.*;

LogGroup logGroup;

LoggingDestination loggingDestination = LoggingDestination.cloudWatchLogs(logGroup);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
using Amazon.CDK.AWS.Logs;

LogGroup logGroup;

var loggingDestination = LoggingDestination.CloudWatchLogs(logGroup);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
import "github.com/aws/aws-cdk-go/awscdk"

var logGroup LogGroup

loggingDestination := bedrock_agentcore_alpha.LoggingDestination_CloudWatchLogs(logGroup)
```

## Initializer

TypeScript:

```ts
new LoggingDestination()
```

Python:

```python
LoggingDestination()
```

Java:

```java
new LoggingDestination()
```

C# / .NET:

```csharp
new LoggingDestination()
```

Golang:

```go
NewLoggingDestination()
```

## Methods

- `cloudWatchLogs(logGroup: ILogGroup): LoggingDestination // chainable` (static) — Create a logging destination that sends logs to a CloudWatch Log Group.

  **Parameters**

  - `logGroup` — The CloudWatch Log Group to send logs to.

- `firehose(stream: IDeliveryStream): LoggingDestination // chainable` (static) — Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.

  **Parameters**

  - `stream` — The Firehose delivery stream to send logs to.

- `s3(bucket: IBucket): LoggingDestination // chainable` (static) — Create a logging destination that sends logs to an S3 bucket.

  **Parameters**

  - `bucket` — The S3 bucket to send logs to.
