Skip to main content

agent_spaces

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

Overview

Nameagent_spaces
TypeResource
Idaws.devops_agent.agent_spaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_spaceobjectRepresents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.
tagsobjectTags associated with the AgentSpace.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_spaceselectagent_space_id, regionRetrieves detailed information about a specific AgentSpace.
list_agent_spacesselectregionmaxResults, nextTokenLists all AgentSpaces with optional pagination.
create_agent_spaceinsertregion, nameCreates a new AgentSpace with the specified name and description. Duplicate space names are allowed.
update_agent_spaceupdateagent_space_id, regionUpdates the information of an existing AgentSpace.
delete_agent_spacedeleteagent_space_id, regionDeletes an AgentSpace. This operation is idempotent and returns a 204 No Content response on success.
disable_operator_appexecagent_space_id, regionx-amzn-app-auth-flowDisable the Operator App for the specified AgentSpace
enable_operator_appexecagent_space_id, region, authFlow, operatorAppRoleArnEnable the Operator App to access the given AgentSpace
send_messageexecagent_space_id, region, executionId, contentSends a chat message and streams the response for the specified agent space execution

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_space_idstringThe agent space identifier
regionstringAWS region (default: us-east-1)
maxResultsintegerMaximum number of results to return in a single call.
nextTokenstringToken for the next page of results.
x-amzn-app-auth-flowstringThe authentication flow configured for the operator App. e.g. idc

SELECT examples

Retrieves detailed information about a specific AgentSpace.

SELECT
agent_space,
tags
FROM aws.devops_agent.agent_spaces
WHERE agent_space_id = '{{ agent_space_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new AgentSpace with the specified name and description. Duplicate space names are allowed.

INSERT INTO aws.devops_agent.agent_spaces (
name,
description,
locale,
kmsKeyArn,
clientToken,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ locale }}',
'{{ kmsKeyArn }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
agent_space,
tags
;

UPDATE examples

Updates the information of an existing AgentSpace.

UPDATE aws.devops_agent.agent_spaces
SET
name = '{{ name }}',
description = '{{ description }}',
locale = '{{ locale }}'
WHERE
agent_space_id = '{{ agent_space_id }}' --required
AND region = '{{ region }}' --required
RETURNING
agent_space;

DELETE examples

Deletes an AgentSpace. This operation is idempotent and returns a 204 No Content response on success.

DELETE FROM aws.devops_agent.agent_spaces
WHERE agent_space_id = '{{ agent_space_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Disable the Operator App for the specified AgentSpace

EXEC aws.devops_agent.agent_spaces.disable_operator_app
@agent_space_id='{{ agent_space_id }}' --required,
@region='{{ region }}' --required,
@x-amzn-app-auth-flow='{{ x-amzn-app-auth-flow }}'
;