Assurance / Client / get_comment

get_comment

Assurance.Client.get_comment(**kwargs)

Retrieves a specific comment by its identifying fields.

See also: AWS API Documentation

Request Syntax

response = client.get_comment(
    environmentArn='string',
    project='string',
    framework='string',
    frameworkVersion='string',
    controlId='string',
    commentId='string'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The ARN of this governance environment.

  • project (string) –

    [REQUIRED]

    The name of the project.

  • framework (string) –

    [REQUIRED]

    The name of the compliance framework.

  • frameworkVersion (string) –

    [REQUIRED]

    The version of the compliance framework.

  • controlId (string) –

    [REQUIRED]

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • commentId (string) –

    [REQUIRED]

    The unique identifier of the comment.

Return type:

dict

Returns:

Response Syntax

{
    'comment': {
        'environment': 'string',
        'project': 'string',
        'framework': 'string',
        'frameworkVersion': 'string',
        'controlId': 'string',
        'taskId': 'string',
        'commentId': 'string',
        'content': 'string',
        'addedBy': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    • comment (dict) –

      The comment.

      • environment (string) –

        The name of the governance environment the comment belongs to.

      • project (string) –

        The name of the project.

      • framework (string) –

        The name of the compliance framework.

      • frameworkVersion (string) –

        The version of the compliance framework.

      • controlId (string) –

        The control identifier. Optional. If omitted, the operation applies to the full framework.

      • taskId (string) –

        The identifier of the task.

      • commentId (string) –

        The unique identifier of the comment.

      • content (string) –

        The free-text content of the comment.

      • addedBy (string) –

        The identity of the principal who added the comment.

      • createdAt (datetime) –

        The timestamp when the comment was created.

      • updatedAt (datetime) –

        The timestamp when the comment was last updated.

Exceptions