Skip to content
v2.278.0

LoggingConfig Struct ​

Configuration for logging with log type and destination.

Example ​

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
# 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
// 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();
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
};
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 ​

destinationLoggingDestinationdestinationLoggingDestinationdestinationLoggingDestinationDestinationLoggingDestinationDestinationLoggingDestination required #
The destination for logs.
logTypeLogTypelog_typeLogTypelogTypeLogTypeLogTypeLogTypeLogTypeLogType required #
The type of logs to deliver.