Skip to content

BedrockAgentCoreControlClient.create_agent_runtime

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): Creates an Amazon Bedrock AgentCore Runtime.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
    AgentRuntimeArtifact,
    AllowedPort,
    AuthorizerConfiguration,
    CapacityProviderConfiguration,
    CreateAgentRuntimeOutput,
    FilesystemConfiguration,
    LifecycleConfiguration,
    NetworkConfiguration,
    ProtocolConfiguration,
    RequestHeaderConfiguration,
    ResourceConfiguration,
    RuntimeHooksConfiguration,
)

Signature

async def create_agent_runtime(
    *,
    agent_runtime_name: str,
    agent_runtime_artifact: AgentRuntimeArtifact,
    role_arn: str,
    network_configuration: NetworkConfiguration | None = None,
    client_token: str | None = None,
    description: str | None = None,
    authorizer_configuration: AuthorizerConfiguration | None = None,
    request_header_configuration: RequestHeaderConfiguration | None = None,
    protocol_configuration: ProtocolConfiguration | None = None,
    lifecycle_configuration: LifecycleConfiguration | None = None,
    hooks_configuration: RuntimeHooksConfiguration | None = None,
    environment_variables: dict[str, str] | None = None,
    filesystem_configurations: Sequence[FilesystemConfiguration] | None = None,
    capacity_provider_configuration: CapacityProviderConfiguration | None = None,
    tags: dict[str, str] | None = None,
    platform_version: str | None = None,
    allowed_ports: Sequence[AllowedPort] | None = None,
    resource_configurations: Sequence[ResourceConfiguration] | None = None,
) -> CreateAgentRuntimeOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
agent_runtime_name Yes The name of the AgentCore Runtime.
agent_runtime_artifact Yes The artifact of the AgentCore Runtime.
role_arn Yes The IAM role ARN that provides permissions for the AgentCore Runtime.
network_configuration No The network configuration for the AgentCore Runtime.
client_token No A unique, case-sensitive identifier to ensure idempotency of the request.
description No The description of the AgentCore Runtime.
authorizer_configuration No The authorizer configuration for the AgentCore Runtime.
request_header_configuration No Configuration for HTTP request headers that will be passed through to the runtime.
protocol_configuration No The protocol configuration for the AgentCore Runtime, including the protocol, port, and path on which the agent server is available.
lifecycle_configuration No The life cycle configuration for the AgentCore Runtime.
hooks_configuration No The lifecycle hooks configuration for the AgentCore Runtime. Use lifecycle hooks to run actions in the agent's container at fixed points in the runtime's lifecycle, such as warming up the agent before sessions are created.
environment_variables No Environment variables to set in the AgentCore Runtime environment.
filesystem_configurations No The filesystem configurations to mount into the AgentCore Runtime. Use filesystem configurations to provide persistent storage to your AgentCore Runtime sessions.
capacity_provider_configuration No The capacity provider configuration for the AgentCore Runtime. Use a capacity provider to run the AgentCore Runtime on the Instances compute type, which provisions Amazon Web Services managed compute in your account.
tags No A map of tag keys and values to assign to the agent runtime. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
platform_version No The version of the runtime platform to use for the AgentCore Runtime.
allowed_ports No The additional ports on the AgentCore Runtime that are reachable through the runtime's session URL. Specify one to five non-overlapping entries, each containing either a single port or an inclusive port range. Ports must be between 8000 and 12000 , excluding the reserved port 8443 .
resource_configurations No The resource configurations for the AgentCore Runtime, such as the minimum amount of memory to allocate to the runtime. You can specify at most one resource configuration.

Output

CreateAgentRuntimeOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
agent_runtime_arn str Always present —
workload_identity_details WorkloadIdentityDetailsOutput | None Always present WorkloadIdentityDetailsOutput
agent_runtime_id str Always present —
agent_runtime_version str Always present —
created_at str Always present —
status AgentRuntimeStatusOutput Always present AgentRuntimeStatusOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

AgentRuntimeArtifact, AllowedPort, AuthorizerConfiguration, CapacityProviderConfiguration, CreateAgentRuntimeOutput, FilesystemConfiguration, LifecycleConfiguration, NetworkConfiguration, ProtocolConfiguration, RequestHeaderConfiguration, ResourceConfiguration, RuntimeHooksConfiguration

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore_control.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model