BedrockAgentCoreControlPlaneFrontingLayer / Client / update_agent_runtime
update_agent_runtime¶
- BedrockAgentCoreControlPlaneFrontingLayer.Client.update_agent_runtime(**kwargs)¶
Updates an existing Amazon Secure Agent.
See also: AWS API Documentation
Request Syntax
response = client.update_agent_runtime( agentRuntimeId='string', description='string', agentRuntimeArtifact={ 'containerConfiguration': { 'containerUri': 'string' } }, roleArn='string', networkConfiguration={ 'networkMode': 'PUBLIC' }, protocolConfiguration={ 'serverProtocol': 'MCP'|'HTTP' }, clientToken='string', environmentVariables={ 'string': 'string' }, authorizerConfiguration={ 'customJWTAuthorizer': { 'discoveryUrl': 'string', 'allowedAudience': [ 'string', ], 'allowedClients': [ 'string', ] } } )
- Parameters:
agentRuntimeId (string) –
[REQUIRED]
The unique identifier of the agent runtime to update.
description (string) – The updated description of the agent runtime.
agentRuntimeArtifact (dict) –
[REQUIRED]
The updated artifact of the agent runtime.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
containerConfiguration
.containerConfiguration (dict) –
The container configuration for the agent artifact.
containerUri (string) – [REQUIRED]
The ECR URI of the container.
roleArn (string) –
[REQUIRED]
The updated IAM role ARN that provides permissions for the agent runtime.
networkConfiguration (dict) –
[REQUIRED]
The updated network configuration for the agent runtime.
networkMode (string) – [REQUIRED]
The network mode for the agent runtime.
protocolConfiguration (dict) –
The protocol configuration for an agent runtime. This structure defines how the agent runtime communicates with clients.
serverProtocol (string) – [REQUIRED]
The server protocol for the agent runtime. This field specifies which protocol the agent runtime uses to communicate with clients.
clientToken (string) –
A unique, case-sensitive identifier to ensure idempotency of the request.
This field is autopopulated if not provided.
environmentVariables (dict) –
Updated environment variables to set in the agent runtime environment.
(string) –
(string) –
authorizerConfiguration (dict) –
The updated authorizer configuration for the agent runtime.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
customJWTAuthorizer
.customJWTAuthorizer (dict) –
The inbound JWT-based authorization, specifying how incoming requests should be authenticated.
discoveryUrl (string) – [REQUIRED]
This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.
allowedAudience (list) –
Represents individual audience values that are validated in the incoming JWT token validation process.
(string) –
allowedClients (list) –
Represents individual client IDs that are validated in the incoming JWT token validation process.
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'agentRuntimeArn': 'string', 'agentRuntimeId': 'string', 'workloadIdentityDetails': { 'workloadIdentityArn': 'string' }, 'agentRuntimeVersion': 'string', 'createdAt': datetime(2015, 1, 1), 'lastUpdatedAt': datetime(2015, 1, 1), 'status': 'CREATING'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'READY'|'DELETING' }
Response Structure
(dict) –
agentRuntimeArn (string) –
The Amazon Resource Name (ARN) of the updated agent runtime.
agentRuntimeId (string) –
The unique identifier of the updated agent runtime.
workloadIdentityDetails (dict) –
The workload identity details for the updated agent runtime.
workloadIdentityArn (string) –
The ARN associated with the workload identity.
agentRuntimeVersion (string) –
The version of the updated agent runtime.
createdAt (datetime) –
The timestamp when the agent runtime was created.
lastUpdatedAt (datetime) –
The timestamp when the agent runtime was last updated.
status (string) –
The current status of the updated agent runtime.
Exceptions
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ServiceQuotaExceededException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.AccessDeniedException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ConflictException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ValidationException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ResourceNotFoundException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ThrottlingException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.InternalServerException