deleteAgentRuntimeEndpoint method
Deletes an AAgentCore Runtime endpoint.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter agentRuntimeId :
The unique identifier of the AgentCore Runtime associated with the
endpoint.
Parameter endpointName :
The name of the AgentCore Runtime endpoint to delete.
Parameter clientToken :
A unique, case-sensitive identifier to ensure idempotency of the request.
Implementation
Future<DeleteAgentRuntimeEndpointResponse> deleteAgentRuntimeEndpoint({
required String agentRuntimeId,
required String endpointName,
String? clientToken,
}) async {
final $query = <String, List<String>>{
if (clientToken != null) 'clientToken': [clientToken],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/runtimes/${Uri.encodeComponent(agentRuntimeId)}/runtime-endpoints/${Uri.encodeComponent(endpointName)}/',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DeleteAgentRuntimeEndpointResponse.fromJson(response);
}