Experimental
@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
AgentRuntimeAttributes Struct
Attributes for importing an existing Agent Runtime.
| Source | lib/runtime/runtime-base.ts |
|---|
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';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const securityGroup: ec2.SecurityGroup;
const agentRuntimeAttributes: bedrock_agentcore_alpha.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
# 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
from aws_cdk import aws_ec2 as ec2
# security_group: ec2.SecurityGroup
agent_runtime_attributes = bedrock_agentcore_alpha.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
// 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.*;
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();
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;
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 }
};
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"
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
agentRuntimeArnstringagent_runtime_arnstragentRuntimeArnStringAgentRuntimeArnstringAgentRuntimeArn*string required #The ARN of the agent runtime.
agentRuntimeIdstringagent_runtime_idstragentRuntimeIdStringAgentRuntimeIdstringAgentRuntimeId*string required #The ID of the agent runtime.
agentRuntimeNamestringagent_runtime_namestragentRuntimeNameStringAgentRuntimeNamestringAgentRuntimeName*string required #The name of the agent runtime.
agentRuntimeVersionoptionalstringagent_runtime_versionoptionalstragentRuntimeVersionoptionalStringAgentRuntimeVersionoptionalstringAgentRuntimeVersionoptional*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.
agentStatusoptionalstringagent_statusoptionalstragentStatusoptionalStringAgentStatusoptionalstringAgentStatusoptional*string #The current status of the agent runtime.
Default: Status not available
createdAtoptionalstringcreated_atoptionalstrcreatedAtoptionalStringCreatedAtoptionalstringCreatedAtoptional*string #The time at which the runtime was created.
Default: Creation time not available
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the agent runtime.
Default: No description
lastUpdatedAtoptionalstringlast_updated_atoptionalstrlastUpdatedAtoptionalStringLastUpdatedAtoptionalstringLastUpdatedAtoptional*string #The time at which the runtime was last updated.
Default: Last update time not available
The IAM role ARN.
securityGroupsoptionalISecurityGroup[]security_groupsoptionaltyping.List[ISecurityGroup]securityGroupsoptionalList<ISecurityGroup>SecurityGroupsoptionalISecurityGroup[]SecurityGroupsoptional*[]ISecurityGroup #The security groups for this runtime, if in a VPC.
Default: By default, the runtime is not in a VPC.