Skip to main content

artifacts

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

Overview

Nameartifacts
TypeResource
Idaws.securityagent.artifacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_space_idstringUnique identifier of the agent space.
artifactobjectThe artifact content and type.
artifact_idstringThe id of the artifact.
file_namestringThe file name of the artifact.
updated_atstring (date-time)The date and time the artifact was last updated, in UTC format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_artifactselectregionRetrieves an artifact from an agent space.
list_artifactsselectregionReturns a paginated list of artifact summaries for the specified agent space.
add_artifactupdateregion, agentSpaceId, artifactContent, artifactType, fileNameUploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.
delete_artifactdeleteregionDeletes an artifact from an agent space.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves an artifact from an agent space.

SELECT
agent_space_id,
artifact,
artifact_id,
file_name,
updated_at
FROM aws.securityagent.artifacts
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Uploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.

UPDATE aws.securityagent.artifacts
SET
agentSpaceId = '{{ agentSpaceId }}',
artifactContent = '{{ artifactContent }}',
artifactType = '{{ artifactType }}',
fileName = '{{ fileName }}'
WHERE
region = '{{ region }}' --required
AND agentSpaceId = '{{ agentSpaceId }}' --required
AND artifactContent = '{{ artifactContent }}' --required
AND artifactType = '{{ artifactType }}' --required
AND fileName = '{{ fileName }}' --required
RETURNING
artifact_id;

DELETE examples

Deletes an artifact from an agent space.

DELETE FROM aws.securityagent.artifacts
WHERE region = '{{ region }}' --required
;