Skip to main content

associations

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

Overview

Nameassociations
TypeResource
Idaws.devops_agent.associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_space_idstringUnique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters) (pattern: <code>[a-zA-Z0-9-]{1,64}</code>)
association_idstringThe unique identifier of the given association. (pattern: <code>[a-zA-Z0-9-]+</code>)
capabilitiesobjectEnabled capabilities for this association.
configurationobjectUnion of all supported service configuration types. Each service has its own specific configuration structure.
created_atstring (date-time)The timestamp when the resource was created.
service_idstringUnique identifier for a registered service (pattern: <code>[a-zA-Z0-9_-]+</code>)
statusstringValidation status (valid, invalid, pending-confirmation)
updated_atstring (date-time)The timestamp when the resource was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_associationselectagent_space_id, association_id, regionRetrieves given associations configured for a specific AgentSpace.
list_associationsselectagent_space_id, regionmaxResults, nextToken, filterServiceTypesList all associations for given AgentSpace
update_associationupdateagent_space_id, association_id, region, configurationPartially updates the configuration of an existing service association for an AgentSpace. Present fields are fully replaced; absent fields are left unchanged. Returns 200 OK on success.
validate_aws_associationsexecagent_space_id, regionValidates an aws association and set status and returns a 204 No Content response on success.

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 unique identifier of the AgentSpace
association_idstringThe unique identifier of the given association.
regionstringAWS region (default: us-east-1)
filterServiceTypesstringA comma-separated list of service types to filter list associations output
maxResultsintegerMaximum number of results to return in a single call.
nextTokenstringToken for the next page of results.

SELECT examples

Retrieves given associations configured for a specific AgentSpace.

SELECT
agent_space_id,
association_id,
capabilities,
configuration,
created_at,
service_id,
status,
updated_at
FROM aws.devops_agent.associations
WHERE agent_space_id = '{{ agent_space_id }}' -- required
AND association_id = '{{ association_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Partially updates the configuration of an existing service association for an AgentSpace. Present fields are fully replaced; absent fields are left unchanged. Returns 200 OK on success.

UPDATE aws.devops_agent.associations
SET
configuration = '{{ configuration }}',
capabilities = '{{ capabilities }}'
WHERE
agent_space_id = '{{ agent_space_id }}' --required
AND association_id = '{{ association_id }}' --required
AND region = '{{ region }}' --required
AND configuration = '{{ configuration }}' --required
RETURNING
association,
webhook;

Lifecycle Methods

Validates an aws association and set status and returns a 204 No Content response on success.

EXEC aws.devops_agent.associations.validate_aws_associations
@agent_space_id='{{ agent_space_id }}' --required,
@region='{{ region }}' --required
;