> **Experimental**
>
> `@aws-cdk/aws-bedrock-agentcore-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# LoggingConfig

Configuration for logging with log type and destination.

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

## 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';

declare const loggingDestination: bedrock_agentcore_alpha.LoggingDestination;
declare const logType: bedrock_agentcore_alpha.LogType;
const loggingConfig: bedrock_agentcore_alpha.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.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

# logging_destination: bedrock_agentcore_alpha.LoggingDestination
# log_type: bedrock_agentcore_alpha.LogType

logging_config = bedrock_agentcore_alpha.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.bedrock.agentcore.alpha.*;

LoggingDestination loggingDestination;
LogType logType;

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

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;

LoggingDestination loggingDestination;
LogType logType;

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

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"

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_aws-bedrock-agentcore-alpha.LoggingDestination.html) (required) — The destination for logs.

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