Skip to content
v2.278.0

OnlineEvaluationConfigAttributes Struct ​

Attributes for importing an existing OnlineEvaluationConfig.

Example ​

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';
const onlineEvaluationConfigAttributes: bedrock_agentcore_alpha.OnlineEvaluationConfigAttributes = {
  onlineEvaluationConfigArn: 'onlineEvaluationConfigArn',
  onlineEvaluationConfigId: 'onlineEvaluationConfigId',
  onlineEvaluationConfigName: 'onlineEvaluationConfigName',

  // the properties below are optional
  executionRoleArn: 'executionRoleArn',
};
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

online_evaluation_config_attributes = bedrock_agentcore_alpha.OnlineEvaluationConfigAttributes(
    online_evaluation_config_arn="onlineEvaluationConfigArn",
    online_evaluation_config_id="onlineEvaluationConfigId",
    online_evaluation_config_name="onlineEvaluationConfigName",

    # the properties below are optional
    execution_role_arn="executionRoleArn"
)
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.*;

OnlineEvaluationConfigAttributes onlineEvaluationConfigAttributes = OnlineEvaluationConfigAttributes.builder()
        .onlineEvaluationConfigArn("onlineEvaluationConfigArn")
        .onlineEvaluationConfigId("onlineEvaluationConfigId")
        .onlineEvaluationConfigName("onlineEvaluationConfigName")

        // the properties below are optional
        .executionRoleArn("executionRoleArn")
        .build();
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;

var onlineEvaluationConfigAttributes = new OnlineEvaluationConfigAttributes {
    OnlineEvaluationConfigArn = "onlineEvaluationConfigArn",
    OnlineEvaluationConfigId = "onlineEvaluationConfigId",
    OnlineEvaluationConfigName = "onlineEvaluationConfigName",

    // the properties below are optional
    ExecutionRoleArn = "executionRoleArn"
};
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"

onlineEvaluationConfigAttributes := &OnlineEvaluationConfigAttributes{
	OnlineEvaluationConfigArn: jsii.String("onlineEvaluationConfigArn"),
	OnlineEvaluationConfigId: jsii.String("onlineEvaluationConfigId"),
	OnlineEvaluationConfigName: jsii.String("onlineEvaluationConfigName"),

	// the properties below are optional
	ExecutionRoleArn: jsii.String("executionRoleArn"),
}

Properties ​

executionRoleArnoptionalstringexecution_role_arnoptionalstrexecutionRoleArnoptionalStringExecutionRoleArnoptionalstringExecutionRoleArnoptional*string #
The ARN of the IAM execution role.

Default: No role ARN provided

onlineEvaluationConfigArnstringonline_evaluation_config_arnstronlineEvaluationConfigArnStringOnlineEvaluationConfigArnstringOnlineEvaluationConfigArn*string required #
The ARN of the online evaluation configuration.
onlineEvaluationConfigIdstringonline_evaluation_config_idstronlineEvaluationConfigIdStringOnlineEvaluationConfigIdstringOnlineEvaluationConfigId*string required #
The ID of the online evaluation configuration.
onlineEvaluationConfigNamestringonline_evaluation_config_namestronlineEvaluationConfigNameStringOnlineEvaluationConfigNamestringOnlineEvaluationConfigName*string required #
The name of the online evaluation configuration.