SecurityAgent / Client / get_artifact

get_artifact

SecurityAgent.Client.get_artifact(**kwargs)

Retrieve an Artifact for the given agent space

See also: AWS API Documentation

Request Syntax

response = client.get_artifact(
    agentSpaceId='string',
    artifactId='string'
)
Parameters:
  • agentSpaceId (string) –

    [REQUIRED]

    Unique identifier of the agent space

  • artifactId (string) –

    [REQUIRED]

    Unique identifier of the artifact

Return type:

dict

Returns:

Response Syntax

{
    'agentSpaceId': 'string',
    'artifactId': 'string',
    'artifact': {
        'contents': 'string',
        'type': 'TXT'|'PNG'|'JPEG'|'MD'|'PDF'|'DOCX'|'DOC'|'JSON'|'YAML'
    },
    'fileName': 'string',
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • agentSpaceId (string) –

      Unique identifier of the agent space

    • artifactId (string) –

      Unique identifier of the artifact

    • artifact (dict) –

      Artifact details

      • contents (string) –

        The content of the artifact

      • type (string) –

        The file type of the artifact

    • fileName (string) –

      Name of the artifact file

    • updatedAt (datetime) –

      Timestamp when the artifact was last updated

Exceptions

  • SecurityAgent.Client.exceptions.ValidationException

  • SecurityAgent.Client.exceptions.InternalServerException

  • SecurityAgent.Client.exceptions.ResourceNotFoundException

  • SecurityAgent.Client.exceptions.ThrottlingException

  • SecurityAgent.Client.exceptions.AccessDeniedException