Skip to main content

agent_runtimes

Creates, updates, deletes, gets or lists an agent_runtimes resource.

Overview

Nameagent_runtimes
TypeResource
Idaws.bedrock_agentcore_control.agent_runtimes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_runtime_arnstringThe Amazon Resource Name (ARN) of the AgentCore Runtime. (pattern: <code>arn:aws(-[^:]+)?:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:runtime/[a-zA-Z][a-zA-Z0-9_]{0,47}-[a-zA-Z0-9]{10}</code>)
agent_runtime_artifactobjectThe artifact of the agent.
agent_runtime_idstringThe unique identifier of the AgentCore Runtime. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,99}-[a-zA-Z0-9]{10}</code>)
agent_runtime_namestringThe name of the AgentCore Runtime. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,47}</code>)
agent_runtime_versionstringThe version of the AgentCore Runtime. (pattern: <code>([1-9][0-9]{0,4})</code>)
authorizer_configurationobjectRepresents inbound authorization configuration options used to authenticate incoming requests.
capacity_provider_configurationobjectConfiguration for customer-managed compute capacity for the AgentCore Runtime. A capacity provider runs the AgentCore Runtime on the Instances compute type, using Amazon Web Services managed compute in your account.
created_atstring (date-time)The timestamp when the AgentCore Runtime was created.
descriptionstringThe description of the AgentCore Runtime.
environment_variablesobjectEnvironment variables set in the AgentCore Runtime environment.
failure_reasonstringThe reason for failure if the AgentCore Runtime is in a failed state.
filesystem_configurationsarrayThe filesystem configurations mounted into the AgentCore Runtime.
last_updated_atstring (date-time)The timestamp when the AgentCore Runtime was last updated.
lifecycle_configurationobjectLifecycleConfiguration lets you manage the lifecycle of runtime sessions and resources in AgentCore Runtime. This configuration helps optimize resource utilization by automatically cleaning up idle sessions and preventing long-running instances from consuming resources indefinitely.
metadata_configurationobjectConfiguration for microVM Metadata Service (MMDS) settings for the AgentCore Runtime.
network_configurationobjectSecurityConfig for the Agent.
protocol_configurationobjectThe protocol configuration for an agent runtime. This structure defines how the agent runtime communicates with clients.
request_header_configurationobjectConfiguration for HTTP request headers that will be passed through to the runtime.
role_arnstringThe IAM role ARN that provides permissions for the AgentCore Runtime. (pattern: <code>arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+</code>)
statusstringThe current status of the AgentCore Runtime. (CREATING, CREATE_FAILED, UPDATING, UPDATE_FAILED, READY, DELETING)
workload_identity_detailsobjectThe information about the workload identity.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_runtimeselectagent_runtime_id, regionversionGets an Amazon Bedrock AgentCore Runtime.
list_agent_runtimesselectregionmaxResults, nextTokenLists all Amazon Secure Agents in your account.
create_agent_runtimeinsertregion, agentRuntimeName, agentRuntimeArtifact, roleArnCreates an Amazon Bedrock AgentCore Runtime.
update_agent_runtimeupdateagent_runtime_id, region, agentRuntimeArtifact, roleArnUpdates an existing Amazon Secure Agent.
delete_agent_runtimedeleteagent_runtime_id, regionversion, clientTokenDeletes an Amazon Bedrock AgentCore Runtime, or a single version of an AgentCore Runtime when you provide the version qualifier.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agent_runtime_idstringThe unique identifier of the AgentCore Runtime to delete.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
maxResultsintegerThe maximum number of results to return in the response.
nextTokenstringA token to retrieve the next page of results.
versionstringThe version of the AgentCore Runtime to delete. When you provide this value, only that version is deleted. When you omit it, the entire AgentCore Runtime and all of its versions are deleted.

SELECT examples

Gets an Amazon Bedrock AgentCore Runtime.

SELECT
agent_runtime_arn,
agent_runtime_artifact,
agent_runtime_id,
agent_runtime_name,
agent_runtime_version,
authorizer_configuration,
capacity_provider_configuration,
created_at,
description,
environment_variables,
failure_reason,
filesystem_configurations,
last_updated_at,
lifecycle_configuration,
metadata_configuration,
network_configuration,
protocol_configuration,
request_header_configuration,
role_arn,
status,
workload_identity_details
FROM aws.bedrock_agentcore_control.agent_runtimes
WHERE agent_runtime_id = '{{ agent_runtime_id }}' -- required
AND region = '{{ region }}' -- required
AND version = '{{ version }}'
;

INSERT examples

Creates an Amazon Bedrock AgentCore Runtime.

INSERT INTO aws.bedrock_agentcore_control.agent_runtimes (
agentRuntimeName,
agentRuntimeArtifact,
roleArn,
networkConfiguration,
clientToken,
description,
authorizerConfiguration,
requestHeaderConfiguration,
protocolConfiguration,
lifecycleConfiguration,
environmentVariables,
filesystemConfigurations,
capacityProviderConfiguration,
tags,
region
)
SELECT
'{{ agentRuntimeName }}' /* required */,
'{{ agentRuntimeArtifact }}' /* required */,
'{{ roleArn }}' /* required */,
'{{ networkConfiguration }}',
'{{ clientToken }}',
'{{ description }}',
'{{ authorizerConfiguration }}',
'{{ requestHeaderConfiguration }}',
'{{ protocolConfiguration }}',
'{{ lifecycleConfiguration }}',
'{{ environmentVariables }}',
'{{ filesystemConfigurations }}',
'{{ capacityProviderConfiguration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
agent_runtime_arn,
agent_runtime_id,
agent_runtime_version,
created_at,
status,
workload_identity_details
;

UPDATE examples

Updates an existing Amazon Secure Agent.

UPDATE aws.bedrock_agentcore_control.agent_runtimes
SET
agentRuntimeArtifact = '{{ agentRuntimeArtifact }}',
roleArn = '{{ roleArn }}',
networkConfiguration = '{{ networkConfiguration }}',
description = '{{ description }}',
authorizerConfiguration = '{{ authorizerConfiguration }}',
requestHeaderConfiguration = '{{ requestHeaderConfiguration }}',
protocolConfiguration = '{{ protocolConfiguration }}',
lifecycleConfiguration = '{{ lifecycleConfiguration }}',
metadataConfiguration = '{{ metadataConfiguration }}',
environmentVariables = '{{ environmentVariables }}',
filesystemConfigurations = '{{ filesystemConfigurations }}',
capacityProviderConfiguration = '{{ capacityProviderConfiguration }}',
clientToken = '{{ clientToken }}'
WHERE
agent_runtime_id = '{{ agent_runtime_id }}' --required
AND region = '{{ region }}' --required
AND agentRuntimeArtifact = '{{ agentRuntimeArtifact }}' --required
AND roleArn = '{{ roleArn }}' --required
RETURNING
agent_runtime_arn,
agent_runtime_id,
agent_runtime_version,
created_at,
last_updated_at,
status,
workload_identity_details;

DELETE examples

Deletes an Amazon Bedrock AgentCore Runtime, or a single version of an AgentCore Runtime when you provide the version qualifier.

DELETE FROM aws.bedrock_agentcore_control.agent_runtimes
WHERE agent_runtime_id = '{{ agent_runtime_id }}' --required
AND region = '{{ region }}' --required
AND version = '{{ version }}'
AND clientToken = '{{ clientToken }}'
;