SecurityAgent / Client / add_artifact

add_artifact

SecurityAgent.Client.add_artifact(**kwargs)

Adds an Artifact for the given agent space

See also: AWS API Documentation

Request Syntax

response = client.add_artifact(
    agentSpaceId='string',
    artifactContent=b'bytes',
    artifactType='TXT'|'PNG'|'JPEG'|'MD'|'PDF'|'DOCX'|'DOC'|'JSON'|'YAML',
    fileName='string'
)
Parameters:
  • agentSpaceId (string) –

    [REQUIRED]

    Unique identifier of the agent space

  • artifactContent (bytes) –

    [REQUIRED]

    Binary content of the artifact

  • artifactType (string) –

    [REQUIRED]

    Type of the artifact file

  • fileName (string) –

    [REQUIRED]

    Name of the artifact file

Return type:

dict

Returns:

Response Syntax

{
    'artifactId': 'string'
}

Response Structure

  • (dict) –

    • artifactId (string) –

      Unique identifier of the created artifact

Exceptions

  • SecurityAgent.Client.exceptions.ValidationException

  • SecurityAgent.Client.exceptions.InternalServerException

  • SecurityAgent.Client.exceptions.ResourceNotFoundException

  • SecurityAgent.Client.exceptions.ThrottlingException

  • SecurityAgent.Client.exceptions.AccessDeniedException