add_artifact
¶
add_artifact(
agent_space_id: AgentSpaceId,
artifact_content: bytes,
artifact_type: ArtifactType,
file_name: str,
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
) -> AddArtifactOutput
Uploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.
Parameters:
-
agent_space_id(AgentSpaceId) –The unique identifier of the agent space to add the artifact to.
-
artifact_content(bytes) –The binary content of the artifact to upload.
-
artifact_type(ArtifactType) –The file type of the artifact. Valid values include TXT, PNG, JPEG, MD, PDF, DOCX, DOC, JSON, and YAML.
-
file_name(str) –The file name of the artifact.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An unexpected error occurred during the processing of your request.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.