NetworkFlowMonitor / Client / get_monitor_scope_suggestions

get_monitor_scope_suggestions

NetworkFlowMonitor.Client.get_monitor_scope_suggestions(**kwargs)

Returns the accounts that are sending traffic to, or receiving traffic from, resources in a monitor, but that aren’t included in the monitoring scope for the monitor. By adding the suggested accounts to your scope, you enable Network Flow Monitor to resolve the network paths for that traffic.

See also: AWS API Documentation

Request Syntax

response = client.get_monitor_scope_suggestions(
    monitorArn='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • monitorArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the monitor that you want to return scope suggestions for.

  • maxResults (integer) – The number of query results that you want to return with this call.

  • nextToken (string) – The token for the next set of results. You receive this token from a previous call.

Return type:

dict

Returns:

Response Syntax

{
    'status': 'COMPLETE'|'INCOMPLETE'|'PENDING'|'STALE',
    'accountsToAdd': [
        {
            'accountId': 'string',
            'region': 'string',
            'membership': 'IN_ORG'|'NOT_IN_ORG'|'UNKNOWN'
        },
    ],
    'nextToken': 'string',
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • status (string) –

      The coverage status of the monitoring scope for the monitor. The status can be one of the following

      • COMPLETE: The scope includes every account that sends traffic to, or receives traffic from, resources in the monitor.

      • INCOMPLETE: There are accounts that you can add to the scope.

      • PENDING: Network Flow Monitor is determining the coverage of the scope.

      • STALE: The coverage of the scope was last determined too long ago to be current.

    • accountsToAdd (list) –

      The accounts that you can add to the monitoring scope, so that Network Flow Monitor can resolve the network paths for traffic to and from resources in those accounts.

      • (dict) –

        An account that you can add to the monitoring scope for a monitor, so that Network Flow Monitor can resolve the network paths for traffic to and from resources in the account.

        • accountId (string) –

          The ID of the account that you can add to the monitoring scope.

        • region (string) –

          The Amazon Web Services Region of the traffic that Network Flow Monitor identified for the account.

        • membership (string) –

          Whether the account is a member of the same organization as the account that owns the monitor. The membership status can be one of the following

          • IN_ORG: The account is a member of the same organization.

          • NOT_IN_ORG: The account isn’t a member of the same organization.

          • UNKNOWN: Network Flow Monitor can’t determine the organization membership of the account.

    • nextToken (string) –

      The token for the next set of results. You receive this token from a previous call.

    • updatedAt (datetime) –

      The date and time when Network Flow Monitor last determined the coverage of the monitoring scope.

Exceptions

  • NetworkFlowMonitor.Client.exceptions.ResourceNotFoundException

  • NetworkFlowMonitor.Client.exceptions.ValidationException

  • NetworkFlowMonitor.Client.exceptions.ThrottlingException

  • NetworkFlowMonitor.Client.exceptions.AccessDeniedException

  • NetworkFlowMonitor.Client.exceptions.InternalServerException