# OnlineEvaluationConfigAttributes

Struct · Deprecated

Deprecated: Use the equivalent construct from `aws-cdk-lib/aws-bedrockagentcore` instead.

Attributes for importing an existing OnlineEvaluationConfig.

Used as argument in: [OnlineEvaluationConfig.fromOnlineEvaluationConfigAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationConfig.html#fromonlineevaluationconfigattributes)

- Source: [`lib/evaluation/types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/evaluation/types.ts#L538)

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

  // the properties below are optional
  executionRoleArn: 'executionRoleArn',
};
```

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

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:

```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();
```

C#:

```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:

```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

- `executionRoleArn`: string — The ARN of the IAM execution role.

  **Default:** No role ARN provided

- `onlineEvaluationConfigArn`: string (required) — The ARN of the online evaluation configuration.

- `onlineEvaluationConfigId`: string (required) — The ID of the online evaluation configuration.

- `onlineEvaluationConfigName`: string (required) — The name of the online evaluation configuration.
