# AgentRuntimeAttributes

Attributes for importing an existing Agent Runtime.

Used as argument in: [Runtime.fromAgentRuntimeAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.Runtime.html#fromagentruntimeattributes)

- Source: [`aws-bedrockagentcore/lib/runtime/runtime-base.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/runtime/runtime-base.ts#L503)
- Type last changed: v2.255.0 · 19 May 2026

## Example

TypeScript:

```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';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const securityGroup: ec2.SecurityGroup;
const agentRuntimeAttributes: bedrockagentcore.AgentRuntimeAttributes = {
  agentRuntimeArn: 'agentRuntimeArn',
  agentRuntimeId: 'agentRuntimeId',
  agentRuntimeName: 'agentRuntimeName',
  roleArn: 'roleArn',

  // the properties below are optional
  agentRuntimeVersion: 'agentRuntimeVersion',
  agentStatus: 'agentStatus',
  createdAt: 'createdAt',
  description: 'description',
  lastUpdatedAt: 'lastUpdatedAt',
  securityGroups: [securityGroup],
};
```

Python:

```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
from aws_cdk import aws_ec2 as ec2

# security_group: ec2.SecurityGroup

agent_runtime_attributes = bedrockagentcore.AgentRuntimeAttributes(
    agent_runtime_arn="agentRuntimeArn",
    agent_runtime_id="agentRuntimeId",
    agent_runtime_name="agentRuntimeName",
    role_arn="roleArn",

    # the properties below are optional
    agent_runtime_version="agentRuntimeVersion",
    agent_status="agentStatus",
    created_at="createdAt",
    description="description",
    last_updated_at="lastUpdatedAt",
    security_groups=[security_group]
)
```

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.bedrockagentcore.*;
import software.amazon.awscdk.services.ec2.*;

SecurityGroup securityGroup;

AgentRuntimeAttributes agentRuntimeAttributes = AgentRuntimeAttributes.builder()
        .agentRuntimeArn("agentRuntimeArn")
        .agentRuntimeId("agentRuntimeId")
        .agentRuntimeName("agentRuntimeName")
        .roleArn("roleArn")

        // the properties below are optional
        .agentRuntimeVersion("agentRuntimeVersion")
        .agentStatus("agentStatus")
        .createdAt("createdAt")
        .description("description")
        .lastUpdatedAt("lastUpdatedAt")
        .securityGroups(List.of(securityGroup))
        .build();
```

C# / .NET:

```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;
using Amazon.CDK.AWS.EC2;

SecurityGroup securityGroup;

var agentRuntimeAttributes = new AgentRuntimeAttributes {
    AgentRuntimeArn = "agentRuntimeArn",
    AgentRuntimeId = "agentRuntimeId",
    AgentRuntimeName = "agentRuntimeName",
    RoleArn = "roleArn",

    // the properties below are optional
    AgentRuntimeVersion = "agentRuntimeVersion",
    AgentStatus = "agentStatus",
    CreatedAt = "createdAt",
    Description = "description",
    LastUpdatedAt = "lastUpdatedAt",
    SecurityGroups = new [] { securityGroup }
};
```

Golang:

```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"
import "github.com/aws/aws-cdk-go/awscdk"

var securityGroup SecurityGroup

agentRuntimeAttributes := &AgentRuntimeAttributes{
	AgentRuntimeArn: jsii.String("agentRuntimeArn"),
	AgentRuntimeId: jsii.String("agentRuntimeId"),
	AgentRuntimeName: jsii.String("agentRuntimeName"),
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	AgentRuntimeVersion: jsii.String("agentRuntimeVersion"),
	AgentStatus: jsii.String("agentStatus"),
	CreatedAt: jsii.String("createdAt"),
	Description: jsii.String("description"),
	LastUpdatedAt: jsii.String("lastUpdatedAt"),
	SecurityGroups: []ISecurityGroup{
		securityGroup,
	},
}
```

## Properties

- `agentRuntimeArn`: string (required) — The ARN of the agent runtime.

- `agentRuntimeId`: string (required) — The ID of the agent runtime.

- `agentRuntimeName`: string (required) — The name of the agent runtime.

- `agentRuntimeVersion`: string = undefined — The version of the agent runtime When importing a runtime and this is not specified or undefined, endpoints created on this runtime will point to version "1" unless explicitly overridden.

- `agentStatus`: string — The current status of the agent runtime.

  **Default:** Status not available

- `createdAt`: string — The time at which the runtime was created.

  **Default:** Creation time not available

- `description`: string — The description of the agent runtime.

  **Default:** No description

- `lastUpdatedAt`: string — The time at which the runtime was last updated.

  **Default:** Last update time not available

- `roleArn`: string (required) — The IAM role ARN.

- `securityGroups`: [ISecurityGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html)[] — The security groups for this runtime, if in a VPC.

  **Default:** By default, the runtime is not in a VPC.
