Detective / Client / batch_get_graph_member_datasources

batch_get_graph_member_datasources#

Detective.Client.batch_get_graph_member_datasources(**kwargs)#

Gets data source package information for the behavior graph.

See also: AWS API Documentation

Request Syntax

response = client.batch_get_graph_member_datasources(
    GraphArn='string',
    AccountIds=[
        'string',
    ]
)
Parameters:
  • GraphArn (string) –

    [REQUIRED]

    The ARN of the behavior graph.

  • AccountIds (list) –

    [REQUIRED]

    The list of Amazon Web Services accounts to get data source package information on.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'MemberDatasources': [
        {
            'AccountId': 'string',
            'GraphArn': 'string',
            'DatasourcePackageIngestHistory': {
                'string': {
                    'string': {
                        'Timestamp': datetime(2015, 1, 1)
                    }
                }
            }
        },
    ],
    'UnprocessedAccounts': [
        {
            'AccountId': 'string',
            'Reason': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • MemberDatasources (list) –

      Details on the status of data source packages for members of the behavior graph.

      • (dict) –

        Details on data source packages for members of the behavior graph.

        • AccountId (string) –

          The account identifier of the Amazon Web Services account.

        • GraphArn (string) –

          The ARN of the organization behavior graph.

        • DatasourcePackageIngestHistory (dict) –

          Details on when a data source package was added to a behavior graph.

          • (string) –

            • (dict) –

              • (string) –

                • (dict) –

                  Details on when data collection began for a source package.

                  • Timestamp (datetime) –

                    The data and time when data collection began for a source package. The value is an ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z.

    • UnprocessedAccounts (list) –

      Accounts that data source package information could not be retrieved for.

      • (dict) –

        A member account that was included in a request but for which the request could not be processed.

        • AccountId (string) –

          The Amazon Web Services account identifier of the member account that was not processed.

        • Reason (string) –

          The reason that the member account request could not be processed.

Exceptions

  • Detective.Client.exceptions.AccessDeniedException

  • Detective.Client.exceptions.InternalServerException

  • Detective.Client.exceptions.ResourceNotFoundException

  • Detective.Client.exceptions.ValidationException