Class CfnRuntime
- All Implemented Interfaces:
IInspectable,ITaggableV2,IRuntimeRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AgentCore Runtime is a secure, serverless runtime purpose-built for deploying and scaling dynamic AI agents and tools using any open-source framework including LangGraph, CrewAI, and Strands Agents, any protocol, and any model.
For more information about using agent runtime in Amazon Bedrock AgentCore, see Host agent or tools with Amazon Bedrock AgentCore Runtime .
See the Properties section below for descriptions of both the required and optional properties.
Example:
// 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.*;
CfnRuntime cfnRuntime = CfnRuntime.Builder.create(this, "MyCfnRuntime")
.agentRuntimeArtifact(AgentRuntimeArtifactProperty.builder()
.containerConfiguration(ContainerConfigurationProperty.builder()
.containerUri("containerUri")
.build())
.build())
.agentRuntimeName("agentRuntimeName")
.networkConfiguration(NetworkConfigurationProperty.builder()
.networkMode("networkMode")
// the properties below are optional
.networkModeConfig(VpcConfigProperty.builder()
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build())
.roleArn("roleArn")
// the properties below are optional
.authorizerConfiguration(AuthorizerConfigurationProperty.builder()
.customJwtAuthorizer(CustomJWTAuthorizerConfigurationProperty.builder()
.discoveryUrl("discoveryUrl")
// the properties below are optional
.allowedAudience(List.of("allowedAudience"))
.allowedClients(List.of("allowedClients"))
.build())
.build())
.description("description")
.environmentVariables(Map.of(
"environmentVariablesKey", "environmentVariables"))
.protocolConfiguration("protocolConfiguration")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe artifact of the agent.static interfaceThe authorizer configuration.static final classA fluent builder forCfnRuntime.static interfaceThe container configuration.static interfaceConfiguration for custom JWT authorizer.static interfaceThe network configuration for the agent.static interfaceNetwork mode configuration for VPC.static interfaceThe workload identity details for the agent.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IRuntimeRef
IRuntimeRef.Jsii$Default, IRuntimeRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRuntime(software.amazon.jsii.JsiiObjectRef objRef) CfnRuntime(software.constructs.Construct scope, String id, CfnRuntimeProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe artifact of the agent.The name of the AgentCore Runtime endpoint.The agent runtime ARN.The ID for the agent runtime.The version for the agent runtime.The time at which the runtime was created.The time at which the runtime was last updated.The status for the agent runtime.Configuration for workload identity.Represents inbound authorization configuration options used to authenticate incoming requests.Tag Manager which manages the tags for this resource.The agent runtime description.The environment variables for the agent.The network configuration.The protocol configuration for an agent runtime.The Amazon Resource Name (ARN) for for the role.A reference to a Runtime resource.getTags()The tags for the agent.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe artifact of the agent.voidThe artifact of the agent.voidsetAgentRuntimeName(String value) The name of the AgentCore Runtime endpoint.voidRepresents inbound authorization configuration options used to authenticate incoming requests.voidRepresents inbound authorization configuration options used to authenticate incoming requests.voidsetDescription(String value) The agent runtime description.voidsetEnvironmentVariables(Map<String, String> value) The environment variables for the agent.voidThe environment variables for the agent.voidThe network configuration.voidThe network configuration.voidsetProtocolConfiguration(String value) The protocol configuration for an agent runtime.voidsetRoleArn(String value) The Amazon Resource Name (ARN) for for the role.voidThe tags for the agent.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRuntime
protected CfnRuntime(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRuntime
protected CfnRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRuntime
@Stability(Stable) public CfnRuntime(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRuntimeProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAgentRuntimeArn
The agent runtime ARN. -
getAttrAgentRuntimeId
The ID for the agent runtime. -
getAttrAgentRuntimeVersion
The version for the agent runtime. -
getAttrCreatedAt
The time at which the runtime was created. -
getAttrLastUpdatedAt
The time at which the runtime was last updated. -
getAttrStatus
The status for the agent runtime. -
getAttrWorkloadIdentityDetails
Configuration for workload identity. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRuntimeRef
A reference to a Runtime resource.- Specified by:
getRuntimeRefin interfaceIRuntimeRef
-
getAgentRuntimeArtifact
The artifact of the agent.Returns union: either
IResolvableorCfnRuntime.AgentRuntimeArtifactProperty -
setAgentRuntimeArtifact
The artifact of the agent. -
setAgentRuntimeArtifact
@Stability(Stable) public void setAgentRuntimeArtifact(@NotNull CfnRuntime.AgentRuntimeArtifactProperty value) The artifact of the agent. -
getAgentRuntimeName
The name of the AgentCore Runtime endpoint. -
setAgentRuntimeName
The name of the AgentCore Runtime endpoint. -
getNetworkConfiguration
The network configuration.Returns union: either
IResolvableorCfnRuntime.NetworkConfigurationProperty -
setNetworkConfiguration
The network configuration. -
setNetworkConfiguration
@Stability(Stable) public void setNetworkConfiguration(@NotNull CfnRuntime.NetworkConfigurationProperty value) The network configuration. -
getRoleArn
The Amazon Resource Name (ARN) for for the role. -
setRoleArn
The Amazon Resource Name (ARN) for for the role. -
getAuthorizerConfiguration
Represents inbound authorization configuration options used to authenticate incoming requests.Returns union: either
IResolvableorCfnRuntime.AuthorizerConfigurationProperty -
setAuthorizerConfiguration
Represents inbound authorization configuration options used to authenticate incoming requests. -
setAuthorizerConfiguration
@Stability(Stable) public void setAuthorizerConfiguration(@Nullable CfnRuntime.AuthorizerConfigurationProperty value) Represents inbound authorization configuration options used to authenticate incoming requests. -
getDescription
The agent runtime description. -
setDescription
The agent runtime description. -
getEnvironmentVariables
The environment variables for the agent.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setEnvironmentVariables
The environment variables for the agent. -
setEnvironmentVariables
The environment variables for the agent. -
getProtocolConfiguration
The protocol configuration for an agent runtime. -
setProtocolConfiguration
The protocol configuration for an agent runtime. -
getTags
The tags for the agent. -
setTags
The tags for the agent.
-