DataSourceConfigBindResult Struct
The result of binding a DataSourceConfig.
| Source | aws-bedrockagentcore/lib/evaluation/types.ts |
|---|---|
| Type last changed |
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';
const dataSourceConfigBindResult: bedrockagentcore.DataSourceConfigBindResult = {
cloudWatchLogs: {
logGroupNames: ['logGroupNames'],
serviceNames: ['serviceNames'],
},
};
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
data_source_config_bind_result = bedrockagentcore.DataSourceConfigBindResult(
cloud_watch_logs=bedrockagentcore.CloudWatchLogsDataSourceConfig(
log_group_names=["logGroupNames"],
service_names=["serviceNames"]
)
)
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.*;
DataSourceConfigBindResult dataSourceConfigBindResult = DataSourceConfigBindResult.builder()
.cloudWatchLogs(CloudWatchLogsDataSourceConfig.builder()
.logGroupNames(List.of("logGroupNames"))
.serviceNames(List.of("serviceNames"))
.build())
.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;
var dataSourceConfigBindResult = new DataSourceConfigBindResult {
CloudWatchLogs = new CloudWatchLogsDataSourceConfig {
LogGroupNames = new [] { "logGroupNames" },
ServiceNames = new [] { "serviceNames" }
}
};
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"
dataSourceConfigBindResult := &DataSourceConfigBindResult{
CloudWatchLogs: &CloudWatchLogsDataSourceConfig{
LogGroupNames: []*string{
jsii.String("logGroupNames"),
},
ServiceNames: []*string{
jsii.String("serviceNames"),
},
},
}
Properties
cloudWatchLogsCloudWatchLogsDataSourceConfigcloud_watch_logsCloudWatchLogsDataSourceConfigcloudWatchLogsCloudWatchLogsDataSourceConfigCloudWatchLogsCloudWatchLogsDataSourceConfigCloudWatchLogsCloudWatchLogsDataSourceConfig required #The CloudWatch Logs data source configuration.