# LoggingConfig

Configuration for logging with log type and destination.

- Source: [`aws-bedrockagentcore/lib/runtime/observability.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/runtime/observability.ts#L48)
- Type last changed: v2.255.0 · 19 May 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';

declare const loggingDestination: bedrockagentcore.LoggingDestination;
declare const logType: bedrockagentcore.LogType;
const loggingConfig: bedrockagentcore.LoggingConfig = {
  destination: loggingDestination,
  logType: logType,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

# logging_destination: bedrockagentcore.LoggingDestination
# log_type: bedrockagentcore.LogType

logging_config = bedrockagentcore.LoggingConfig(
    destination=logging_destination,
    log_type=log_type
)
```

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.bedrockagentcore.*;

LoggingDestination loggingDestination;
LogType logType;

LoggingConfig loggingConfig = LoggingConfig.builder()
        .destination(loggingDestination)
        .logType(logType)
        .build();
```

C# / .NET:

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

LoggingDestination loggingDestination;
LogType logType;

var loggingConfig = new LoggingConfig {
    Destination = loggingDestination,
    LogType = logType
};
```

Golang:

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

var loggingDestination LoggingDestination
var logType LogType

loggingConfig := &LoggingConfig{
	Destination: loggingDestination,
	LogType: logType,
}
```

## Properties

- `destination`: [LoggingDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.LoggingDestination.html) (required) — The destination for logs.

- `logType`: [LogType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.LogType.html) (required) — The type of logs to deliver.
