SDK for PHP V3

Client: Aws\NetworkFlowMonitor\NetworkFlowMonitorClient
Service ID: networkflowmonitor
Version: 2023-04-19

This page describes the parameters and results for the operations of the Network Flow Monitor (2023-04-19), and shows how to use the Aws\NetworkFlowMonitor\NetworkFlowMonitorClient object to call the described operations. This documentation is specific to the 2023-04-19 API version of the service.

Service Description

Network Flow Monitor is a feature of Amazon CloudWatch Network Monitoring that provides visibility into the performance of network flows for your Amazon Web Services workloads, between instances in subnets, as well as to and from Amazon Web Services. Lightweight agents that you install on the instances capture performance metrics for your network flows, such as packet loss and latency, and send them to the Network Flow Monitor backend. Then, you can view and analyze metrics from the top contributors for each metric type, to help troubleshoot issues.

In addition, when you create a monitor, Network Flow Monitor provides a network health indicator (NHI) that informs you whether there were Amazon Web Services network issues for one or more of the network flows tracked by a monitor, during a time period that you choose. By using this value, you can independently determine if the Amazon Web Services network is impacting your workload during a specific time frame, to help you focus troubleshooting efforts.

To learn more about Network Flow Monitor, see the Network Flow Monitor User Guide in the Amazon CloudWatch User Guide.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

CreateMonitor ( array $params = [] )
Create a monitor for specific network flows between local and remote resources, so that you can monitor network performance for one or several of your workloads.
CreatePerformanceMonitor ( array $params = [] )
Create a performance monitor to monitor the traffic of the Amazon Virtual Private Clouds (VPCs) that you specify as targets, to determine whether the Amazon Web Services network is causing issues for your workloads.
CreateScope ( array $params = [] )
In Network Flow Monitor, you specify a scope for the service to generate metrics for.
DeleteMonitor ( array $params = [] )
Deletes a monitor in Network Flow Monitor.
DeletePerformanceMonitor ( array $params = [] )
Delete a performance monitor.
DeleteScope ( array $params = [] )
Deletes a scope that has been defined.
GetMonitor ( array $params = [] )
Gets information about a monitor in Network Flow Monitor based on a monitor name.
GetMonitorScopeSuggestions ( array $params = [] )
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.
GetPerformanceMonitor ( array $params = [] )
Returns information about a performance monitor, including the resources that it monitors, its status, and the tags for the monitor.
GetQueryResultsMonitorTopContributors ( array $params = [] )
Return the data for a query with the Network Flow Monitor query interface.
GetQueryResultsPerformanceMonitor ( array $params = [] )
Returns the results of a query for the Network Flow Monitor query interface, for a specified query ID and performance monitor.
GetQueryResultsWorkloadInsightsTopContributors ( array $params = [] )
Return the data for a query with the Network Flow Monitor query interface.
GetQueryResultsWorkloadInsightsTopContributorsData ( array $params = [] )
Return the data for a query with the Network Flow Monitor query interface.
GetQueryStatusMonitorTopContributors ( array $params = [] )
Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and monitor.
GetQueryStatusPerformanceMonitor ( array $params = [] )
Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and performance monitor.
GetQueryStatusWorkloadInsightsTopContributors ( array $params = [] )
Return the data for a query with the Network Flow Monitor query interface.
GetQueryStatusWorkloadInsightsTopContributorsData ( array $params = [] )
Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and monitor.
GetScope ( array $params = [] )
Gets information about a scope, including the name, status, tags, and target details.
ListMonitors ( array $params = [] )
List all monitors in an account.
ListPerformanceMonitors ( array $params = [] )
Returns a list of the performance monitors in an account.
ListScopes ( array $params = [] )
List all the scopes for an account.
ListTagsForResource ( array $params = [] )
Returns all the tags for a resource.
StartQueryMonitorTopContributors ( array $params = [] )
Create a query that you can use with the Network Flow Monitor query interface to return the top contributors for a monitor.
StartQueryPerformanceMonitor ( array $params = [] )
Create a query that you can use with the Network Flow Monitor query interface to return the top paths for a performance monitor.
StartQueryWorkloadInsightsTopContributors ( array $params = [] )
Create a query with the Network Flow Monitor query interface that you can run to return workload insights top contributors.
StartQueryWorkloadInsightsTopContributorsData ( array $params = [] )
Create a query with the Network Flow Monitor query interface that you can run to return data for workload insights top contributors.
StopQueryMonitorTopContributors ( array $params = [] )
Stop a top contributors query for a monitor.
StopQueryPerformanceMonitor ( array $params = [] )
Stop a query for the Network Flow Monitor query interface, for a specified query ID and performance monitor.
StopQueryWorkloadInsightsTopContributors ( array $params = [] )
Stop a top contributors query for workload insights.
StopQueryWorkloadInsightsTopContributorsData ( array $params = [] )
Stop a top contributors data query for workload insights.
TagResource ( array $params = [] )
Adds a tag to a resource.
UntagResource ( array $params = [] )
Removes a tag from a resource.
UpdateMonitor ( array $params = [] )
Update a monitor to add or remove local or remote resources.
UpdatePerformanceMonitor ( array $params = [] )
Update a performance monitor, to add or remove the resources that the monitor tracks network performance for.
UpdateScope ( array $params = [] )
Update a scope to add or remove resources that you want to be available for Network Flow Monitor to generate metrics for, when you have active agents on those resources sending metrics reports to the Network Flow Monitor backend.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

GetMonitorScopeSuggestions
GetQueryResultsMonitorTopContributors
GetQueryResultsPerformanceMonitor
GetQueryResultsWorkloadInsightsTopContributors
GetQueryResultsWorkloadInsightsTopContributorsData
ListMonitors
ListPerformanceMonitors
ListScopes

Operations

CreateMonitor

$result = $client->createMonitor([/* ... */]);
$promise = $client->createMonitorAsync([/* ... */]);

Create a monitor for specific network flows between local and remote resources, so that you can monitor network performance for one or several of your workloads. For each monitor, Network Flow Monitor publishes detailed end-to-end performance metrics and a network health indicator (NHI) that informs you whether there were Amazon Web Services network issues for one or more of the network flows tracked by a monitor, during a time period that you choose.

Parameter Syntax

$result = $client->createMonitor([
    'clientToken' => '<string>',
    'localResources' => [ // REQUIRED
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::Region|AWS::EKS::Cluster', // REQUIRED
        ],
        // ...
    ],
    'monitorName' => '<string>', // REQUIRED
    'remoteResources' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::AWSService|AWS::Region', // REQUIRED
        ],
        // ...
    ],
    'scopeArn' => '<string>', // REQUIRED
    'tags' => ['<string>', ...],
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.

localResources
Required: Yes
Type: Array of MonitorLocalResource structures

The local resources to monitor. A local resource in a workload is the location of the host, or hosts, where the Network Flow Monitor agent is installed. For example, if a workload consists of an interaction between a web service and a backend database (for example, Amazon Dynamo DB), the subnet with the EC2 instance that hosts the web service, which also runs the agent, is the local resource.

Be aware that all local resources must belong to the current Region.

monitorName
Required: Yes
Type: string

The name of the monitor.

remoteResources
Type: Array of MonitorRemoteResource structures

The remote resources to monitor. A remote resource is the other endpoint in the bi-directional flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.

When you specify remote resources, be aware that specific combinations of resources are allowed and others are not, including the following constraints:

  • All remote resources that you specify must all belong to a single Region.

  • If you specify Amazon Web Services services as remote resources, any other remote resources that you specify must be in the current Region.

  • When you specify a remote resource for another Region, you can only specify the Region resource type. You cannot specify a subnet, VPC, or Availability Zone in another Region.

  • If you leave the RemoteResources parameter empty, the monitor will include all network flows that terminate in the current Region.

scopeArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the scope for the monitor.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a monitor. You can add a maximum of 200 tags.

Result Syntax

[
    'createdAt' => <DateTime>,
    'localResources' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::Region|AWS::EKS::Cluster',
        ],
        // ...
    ],
    'modifiedAt' => <DateTime>,
    'monitorArn' => '<string>',
    'monitorName' => '<string>',
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'remoteResources' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::AWSService|AWS::Region',
        ],
        // ...
    ],
    'tags' => ['<string>', ...],
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the monitor was created.

localResources
Required: Yes
Type: Array of MonitorLocalResource structures

The local resources to monitor. A local resource in a workload is the location of hosts where the Network Flow Monitor agent is installed.

modifiedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The last date and time that the monitor was modified.

monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the monitor.

monitorName
Required: Yes
Type: string

The name of the monitor.

monitorStatus
Required: Yes
Type: string

The status of a monitor. The status can be one of the following

  • PENDING: The monitor is in the process of being created.

  • ACTIVE: The monitor is active.

  • INACTIVE: The monitor is inactive.

  • ERROR: Monitor creation failed due to an error.

  • DELETING: The monitor is in the process of being deleted.

remoteResources
Required: Yes
Type: Array of MonitorRemoteResource structures

The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a monitor.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

CreatePerformanceMonitor

$result = $client->createPerformanceMonitor([/* ... */]);
$promise = $client->createPerformanceMonitorAsync([/* ... */]);

Create a performance monitor to monitor the traffic of the Amazon Virtual Private Clouds (VPCs) that you specify as targets, to determine whether the Amazon Web Services network is causing issues for your workloads. With a performance monitor, you can identify network degradation across paths between Availability Zones and across Amazon Web Services Regions.

Parameter Syntax

$result = $client->createPerformanceMonitor([
    'clientToken' => '<string>',
    'monitorName' => '<string>', // REQUIRED
    'scopeArn' => '<string>',
    'tags' => ['<string>', ...],
    'targets' => [ // REQUIRED
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. If the token matches a previous request, the service ignores the request without returning an error. Don't reuse the same client token for other API requests.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

scopeArn
Type: string

The Amazon Resource Name (ARN) of the scope for the performance monitor.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a performance monitor. You can add a maximum of 200 tags.

targets
Required: Yes
Type: Array of PerformanceMonitorTarget structures

The resources to monitor. Each target identifies a resource, currently a VPC, for which you can track network performance. For a VPC, specify the VPC ARN.

Result Syntax

[
    'createdAt' => <DateTime>,
    'modifiedAt' => <DateTime>,
    'monitorArn' => '<string>',
    'monitorName' => '<string>',
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'monitorType' => 'VPC',
    'tags' => ['<string>', ...],
    'targets' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC',
        ],
        // ...
    ],
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the performance monitor was created.

modifiedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the performance monitor was last modified.

monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the performance monitor.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

monitorStatus
Required: Yes
Type: string

The status of a performance monitor. The status can be one of the following

  • PENDING: The performance monitor is in the process of being created.

  • ACTIVE: The performance monitor is active.

  • INACTIVE: The performance monitor is inactive.

  • ERROR: The performance monitor can't be created or updated.

  • DELETING: The performance monitor is in the process of being deleted.

monitorType
Required: Yes
Type: string

The type of resource that you monitor determines the type of the performance monitor.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a performance monitor.

targets
Required: Yes
Type: Array of PerformanceMonitorTarget structures

The resources that the performance monitor tracks network performance for.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

CreateScope

$result = $client->createScope([/* ... */]);
$promise = $client->createScopeAsync([/* ... */]);

In Network Flow Monitor, you specify a scope for the service to generate metrics for. By using the scope, Network Flow Monitor can generate a topology of all the resources to measure performance metrics for. When you create a scope, you enable permissions for Network Flow Monitor.

A scope is a Region-account pair or multiple Region-account pairs. Network Flow Monitor uses your scope to determine all the resources (the topology) where Network Flow Monitor will gather network flow performance metrics for you. To provide performance metrics, Network Flow Monitor uses the data that is sent by the Network Flow Monitor agents you install on the resources.

To define the Region-account pairs for your scope, the Network Flow Monitor API uses the following constucts, which allow for future flexibility in defining scopes:

  • Targets, which are arrays of targetResources.

  • Target resources, which are Region-targetIdentifier pairs.

  • Target identifiers, made up of a targetID (currently always an account ID) and a targetType (currently always an account).

Parameter Syntax

$result = $client->createScope([
    'clientToken' => '<string>',
    'tags' => ['<string>', ...],
    'targets' => [ // REQUIRED
        [
            'region' => '<string>', // REQUIRED
            'targetIdentifier' => [ // REQUIRED
                'targetId' => [ // REQUIRED
                    'accountId' => '<string>',
                ],
                'targetType' => 'ACCOUNT', // REQUIRED
            ],
        ],
        // ...
    ],
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a scope. You can add a maximum of 200 tags.

targets
Required: Yes
Type: Array of TargetResource structures

The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.

Result Syntax

[
    'scopeArn' => '<string>',
    'scopeId' => '<string>',
    'status' => 'SUCCEEDED|IN_PROGRESS|FAILED|DEACTIVATING|DEACTIVATED',
    'tags' => ['<string>', ...],
]

Result Details

Members
scopeArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the scope.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get metrics for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

status
Required: Yes
Type: string

The status for a scope. The status can be one of the following: SUCCEEDED, IN_PROGRESS, FAILED, DEACTIVATING, or DEACTIVATED.

A status of DEACTIVATING means that you've requested a scope to be deactivated and Network Flow Monitor is in the process of deactivating the scope. A status of DEACTIVATED means that the deactivating process is complete.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a scope.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

DeleteMonitor

$result = $client->deleteMonitor([/* ... */]);
$promise = $client->deleteMonitorAsync([/* ... */]);

Deletes a monitor in Network Flow Monitor.

Parameter Syntax

$result = $client->deleteMonitor([
    'monitorName' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the monitor to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

DeletePerformanceMonitor

$result = $client->deletePerformanceMonitor([/* ... */]);
$promise = $client->deletePerformanceMonitorAsync([/* ... */]);

Delete a performance monitor. Network Flow Monitor stops tracking network performance for the resources that the monitor included.

Parameter Syntax

$result = $client->deletePerformanceMonitor([
    'monitorName' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the performance monitor.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

DeleteScope

$result = $client->deleteScope([/* ... */]);
$promise = $client->deleteScopeAsync([/* ... */]);

Deletes a scope that has been defined.

Parameter Syntax

$result = $client->deleteScope([
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetMonitor

$result = $client->getMonitor([/* ... */]);
$promise = $client->getMonitorAsync([/* ... */]);

Gets information about a monitor in Network Flow Monitor based on a monitor name. The information returned includes the Amazon Resource Name (ARN), create time, modified time, resources included in the monitor, and status information.

Parameter Syntax

$result = $client->getMonitor([
    'monitorName' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the monitor.

Result Syntax

[
    'createdAt' => <DateTime>,
    'localResources' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::Region|AWS::EKS::Cluster',
        ],
        // ...
    ],
    'modifiedAt' => <DateTime>,
    'monitorArn' => '<string>',
    'monitorName' => '<string>',
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'remoteResources' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::AWSService|AWS::Region',
        ],
        // ...
    ],
    'tags' => ['<string>', ...],
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the monitor was created.

localResources
Required: Yes
Type: Array of MonitorLocalResource structures

The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.

modifiedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the monitor was last modified.

monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the monitor.

monitorName
Required: Yes
Type: string

The name of the monitor.

monitorStatus
Required: Yes
Type: string

The status of a monitor. The status can be one of the following

  • PENDING: The monitor is in the process of being created.

  • ACTIVE: The monitor is active.

  • INACTIVE: The monitor is inactive.

  • ERROR: Monitor creation failed due to an error.

  • DELETING: The monitor is in the process of being deleted.

remoteResources
Required: Yes
Type: Array of MonitorRemoteResource structures

The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a monitor.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetMonitorScopeSuggestions

$result = $client->getMonitorScopeSuggestions([/* ... */]);
$promise = $client->getMonitorScopeSuggestionsAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->getMonitorScopeSuggestions([
    'maxResults' => <integer>,
    'monitorArn' => '<string>', // REQUIRED
    'nextToken' => '<string>',
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

monitorArn
Required: Yes
Type: string

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

nextToken
Type: string

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

Result Syntax

[
    'accountsToAdd' => [
        [
            'accountId' => '<string>',
            'membership' => 'IN_ORG|NOT_IN_ORG|UNKNOWN',
            'region' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
    'status' => 'COMPLETE|INCOMPLETE|PENDING|STALE',
    'updatedAt' => <DateTime>,
]

Result Details

Members
accountsToAdd
Required: Yes
Type: Array of AccountToAdd structures

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.

nextToken
Type: string

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

status
Required: Yes
Type: 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.

updatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetPerformanceMonitor

$result = $client->getPerformanceMonitor([/* ... */]);
$promise = $client->getPerformanceMonitorAsync([/* ... */]);

Returns information about a performance monitor, including the resources that it monitors, its status, and the tags for the monitor.

Parameter Syntax

$result = $client->getPerformanceMonitor([
    'monitorName' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the performance monitor.

Result Syntax

[
    'createdAt' => <DateTime>,
    'modifiedAt' => <DateTime>,
    'monitorArn' => '<string>',
    'monitorName' => '<string>',
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'monitorType' => 'VPC',
    'tags' => ['<string>', ...],
    'targets' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC',
        ],
        // ...
    ],
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the performance monitor was created.

modifiedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the performance monitor was last modified.

monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the performance monitor.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

monitorStatus
Required: Yes
Type: string

The status of a performance monitor. The status can be one of the following

  • PENDING: The performance monitor is in the process of being created.

  • ACTIVE: The performance monitor is active.

  • INACTIVE: The performance monitor is inactive.

  • ERROR: The performance monitor can't be created or updated.

  • DELETING: The performance monitor is in the process of being deleted.

monitorType
Required: Yes
Type: string

The type of resource that you monitor determines the type of the performance monitor.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a performance monitor.

targets
Required: Yes
Type: Array of PerformanceMonitorTarget structures

The resources that the performance monitor tracks network performance for.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryResultsMonitorTopContributors

$result = $client->getQueryResultsMonitorTopContributors([/* ... */]);
$promise = $client->getQueryResultsMonitorTopContributorsAsync([/* ... */]);

Return the data for a query with the Network Flow Monitor query interface. You specify the query that you want to return results for by providing a query ID and a monitor name. This query returns the top contributors for a specific monitor.

Create a query ID for this call by calling the corresponding API call to start the query, StartQueryMonitorTopContributors. Use the scope ID that was returned for your account by CreateScope.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->getQueryResultsMonitorTopContributors([
    'maxResults' => <integer>,
    'monitorName' => '<string>', // REQUIRED
    'nextToken' => '<string>',
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

monitorName
Required: Yes
Type: string

The name of the monitor.

nextToken
Type: string

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

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to create a query.

Result Syntax

[
    'nextToken' => '<string>',
    'topContributors' => [
        [
            'additionalFlowInfo' => [
                'clientLocation' => [
                    'city' => '<string>',
                    'country' => '<string>',
                    'subdivision' => '<string>',
                ],
                'network' => [
                    'asName' => '<string>',
                    'asNumber' => <integer>,
                ],
            ],
            'destinationCategory' => 'INTRA_AZ|INTER_AZ|INTER_VPC|UNCLASSIFIED|AMAZON_S3|AMAZON_DYNAMODB|INTER_REGION|INTERNET|AWS_SERVICE|LOCAL_ZONE|TRANSIT_GATEWAY',
            'dnatIp' => '<string>',
            'kubernetesMetadata' => [
                'localPodName' => '<string>',
                'localPodNamespace' => '<string>',
                'localServiceName' => '<string>',
                'remotePodName' => '<string>',
                'remotePodNamespace' => '<string>',
                'remoteServiceName' => '<string>',
            ],
            'localAz' => '<string>',
            'localInstanceArn' => '<string>',
            'localInstanceId' => '<string>',
            'localIp' => '<string>',
            'localRegion' => '<string>',
            'localSubnetArn' => '<string>',
            'localSubnetId' => '<string>',
            'localVpcArn' => '<string>',
            'localVpcId' => '<string>',
            'remoteAz' => '<string>',
            'remoteInstanceArn' => '<string>',
            'remoteInstanceId' => '<string>',
            'remoteIp' => '<string>',
            'remoteRegion' => '<string>',
            'remoteSubnetArn' => '<string>',
            'remoteSubnetId' => '<string>',
            'remoteVpcArn' => '<string>',
            'remoteVpcId' => '<string>',
            'snatIp' => '<string>',
            'targetPort' => <integer>,
            'traversedConstructs' => [
                [
                    'componentArn' => '<string>',
                    'componentId' => '<string>',
                    'componentType' => '<string>',
                    'serviceName' => '<string>',
                ],
                // ...
            ],
            'value' => <integer>,
        ],
        // ...
    ],
    'unit' => 'Seconds|Microseconds|Milliseconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes/Second|Kilobytes/Second|Megabytes/Second|Gigabytes/Second|Terabytes/Second|Bits/Second|Kilobits/Second|Megabits/Second|Gigabits/Second|Terabits/Second|Count/Second|None',
]

Result Details

Members
nextToken
Type: string

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

topContributors
Type: Array of MonitorTopContributorsRow structures

The top contributor network flows overall for a specific metric type, for example, the number of retransmissions.

unit
Type: string

The units for a metric returned by the query.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryResultsPerformanceMonitor

$result = $client->getQueryResultsPerformanceMonitor([/* ... */]);
$promise = $client->getQueryResultsPerformanceMonitorAsync([/* ... */]);

Returns the results of a query for the Network Flow Monitor query interface, for a specified query ID and performance monitor. This call returns the top paths for a performance monitor.

Create a query with StartQueryPerformanceMonitor, and then use the query ID with this call to return the results.

Parameter Syntax

$result = $client->getQueryResultsPerformanceMonitor([
    'maxResults' => <integer>,
    'monitorName' => '<string>', // REQUIRED
    'nextToken' => '<string>',
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

nextToken
Type: string

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

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Result Syntax

[
    'data' => [
        ['<string>', ...],
        // ...
    ],
    'fields' => [
        [
            'name' => '<string>',
            'type' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
data
Required: Yes
Type: Array of stringss

The results of the query. Each row contains the values for the columns that fields describes, in the same order.

fields
Required: Yes
Type: Array of QueryField structures

The columns that the query returns, in the order that the values for each row appear in data.

nextToken
Type: string

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

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryResultsWorkloadInsightsTopContributors

$result = $client->getQueryResultsWorkloadInsightsTopContributors([/* ... */]);
$promise = $client->getQueryResultsWorkloadInsightsTopContributorsAsync([/* ... */]);

Return the data for a query with the Network Flow Monitor query interface. You specify the query that you want to return results for by providing a query ID and a monitor name.

This query returns the top contributors for a scope for workload insights. Workload insights provide a high level view of network flow performance data collected by agents. To return the data for the top contributors, see GetQueryResultsWorkloadInsightsTopContributorsData.

Create a query ID for this call by calling the corresponding API call to start the query, StartQueryWorkloadInsightsTopContributors. Use the scope ID that was returned for your account by CreateScope.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->getQueryResultsWorkloadInsightsTopContributors([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'queryId' => '<string>', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

nextToken
Type: string

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

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to create a query.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[
    'nextToken' => '<string>',
    'topContributors' => [
        [
            'accountId' => '<string>',
            'localAz' => '<string>',
            'localRegion' => '<string>',
            'localSubnetArn' => '<string>',
            'localSubnetId' => '<string>',
            'localVpcArn' => '<string>',
            'localVpcId' => '<string>',
            'remoteIdentifier' => '<string>',
            'value' => <integer>,
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

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

topContributors
Type: Array of WorkloadInsightsTopContributorsRow structures

The top contributor network flows overall for a specific metric type, for example, the number of retransmissions.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryResultsWorkloadInsightsTopContributorsData

$result = $client->getQueryResultsWorkloadInsightsTopContributorsData([/* ... */]);
$promise = $client->getQueryResultsWorkloadInsightsTopContributorsDataAsync([/* ... */]);

Return the data for a query with the Network Flow Monitor query interface. Specify the query that you want to return results for by providing a query ID and a scope ID.

This query returns the data for top contributors for workload insights for a specific scope. Workload insights provide a high level view of network flow performance data collected by agents for a scope. To return just the top contributors, see GetQueryResultsWorkloadInsightsTopContributors.

Create a query ID for this call by calling the corresponding API call to start the query, StartQueryWorkloadInsightsTopContributorsData. Use the scope ID that was returned for your account by CreateScope.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

The top contributor network flows overall are for a specific metric type, for example, the number of retransmissions.

Parameter Syntax

$result = $client->getQueryResultsWorkloadInsightsTopContributorsData([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'queryId' => '<string>', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

nextToken
Type: string

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

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to create a query.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[
    'datapoints' => [
        [
            'label' => '<string>',
            'timestamps' => [<DateTime>, ...],
            'values' => [<float>, ...],
        ],
        // ...
    ],
    'nextToken' => '<string>',
    'unit' => 'Seconds|Microseconds|Milliseconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes/Second|Kilobytes/Second|Megabytes/Second|Gigabytes/Second|Terabytes/Second|Bits/Second|Kilobits/Second|Megabits/Second|Gigabits/Second|Terabits/Second|Count/Second|None',
]

Result Details

Members
datapoints
Required: Yes
Type: Array of WorkloadInsightsTopContributorsDataPoint structures

The datapoints returned by the query.

nextToken
Type: string

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

unit
Required: Yes
Type: string

The units for a metric returned by the query.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryStatusMonitorTopContributors

$result = $client->getQueryStatusMonitorTopContributors([/* ... */]);
$promise = $client->getQueryStatusMonitorTopContributorsAsync([/* ... */]);

Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and monitor. This call returns the query status for the top contributors for a monitor.

When you create a query, use this call to check the status of the query to make sure that it has has SUCCEEDED before you review the results. Use the same query ID that you used for the corresponding API call to start (create) the query, StartQueryMonitorTopContributors.

When you run a query, use this call to check the status of the query to make sure that the query has SUCCEEDED before you review the results.

Parameter Syntax

$result = $client->getQueryStatusMonitorTopContributors([
    'monitorName' => '<string>', // REQUIRED
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the monitor.

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Result Syntax

[
    'status' => 'QUEUED|RUNNING|SUCCEEDED|FAILED|CANCELED',
]

Result Details

Members
status
Required: Yes
Type: string

When you run a query, use this call to check the status of the query to make sure that the query has SUCCEEDED before you review the results.

  • QUEUED: The query is scheduled to run.

  • RUNNING: The query is in progress but not complete.

  • SUCCEEDED: The query completed sucessfully.

  • FAILED: The query failed due to an error.

  • CANCELED: The query was canceled.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryStatusPerformanceMonitor

$result = $client->getQueryStatusPerformanceMonitor([/* ... */]);
$promise = $client->getQueryStatusPerformanceMonitorAsync([/* ... */]);

Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and performance monitor. This call returns the query status for the top paths for a performance monitor.

When you run a query, use this call to check the status of the query to make sure that the query has SUCCEEDED before you review the results. Use the same query ID that you used for the corresponding API call to start (create) the query, StartQueryPerformanceMonitor.

Parameter Syntax

$result = $client->getQueryStatusPerformanceMonitor([
    'monitorName' => '<string>', // REQUIRED
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the performance monitor.

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Result Syntax

[
    'status' => 'QUEUED|RUNNING|SUCCEEDED|FAILED|CANCELED',
]

Result Details

Members
status
Required: Yes
Type: string

When you run a query, use this call to check the status of the query to make sure that the query has SUCCEEDED before you review the results.

  • QUEUED: The query is scheduled to run.

  • RUNNING: The query is in progress but not complete.

  • SUCCEEDED: The query completed successfully.

  • FAILED: The query failed due to an error.

  • CANCELED: The query was canceled.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryStatusWorkloadInsightsTopContributors

$result = $client->getQueryStatusWorkloadInsightsTopContributors([/* ... */]);
$promise = $client->getQueryStatusWorkloadInsightsTopContributorsAsync([/* ... */]);

Return the data for a query with the Network Flow Monitor query interface. Specify the query that you want to return results for by providing a query ID and a monitor name. This query returns the top contributors for workload insights.

When you start a query, use this call to check the status of the query to make sure that it has has SUCCEEDED before you review the results. Use the same query ID that you used for the corresponding API call to start the query, StartQueryWorkloadInsightsTopContributors.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->getQueryStatusWorkloadInsightsTopContributors([
    'queryId' => '<string>', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[
    'status' => 'QUEUED|RUNNING|SUCCEEDED|FAILED|CANCELED',
]

Result Details

Members
status
Required: Yes
Type: string

When you run a query, use this call to check the status of the query to make sure that the query has SUCCEEDED before you review the results.

  • QUEUED: The query is scheduled to run.

  • RUNNING: The query is in progress but not complete.

  • SUCCEEDED: The query completed sucessfully.

  • FAILED: The query failed due to an error.

  • CANCELED: The query was canceled.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetQueryStatusWorkloadInsightsTopContributorsData

$result = $client->getQueryStatusWorkloadInsightsTopContributorsData([/* ... */]);
$promise = $client->getQueryStatusWorkloadInsightsTopContributorsDataAsync([/* ... */]);

Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and monitor. This call returns the query status for the top contributors data for workload insights.

When you start a query, use this call to check the status of the query to make sure that it has has SUCCEEDED before you review the results. Use the same query ID that you used for the corresponding API call to start the query, StartQueryWorkloadInsightsTopContributorsData.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

The top contributor network flows overall are for a specific metric type, for example, the number of retransmissions.

Parameter Syntax

$result = $client->getQueryStatusWorkloadInsightsTopContributorsData([
    'queryId' => '<string>', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a CreateScope API call.

Result Syntax

[
    'status' => 'QUEUED|RUNNING|SUCCEEDED|FAILED|CANCELED',
]

Result Details

Members
status
Required: Yes
Type: string

The status of a query for top contributors data.

  • QUEUED: The query is scheduled to run.

  • RUNNING: The query is in progress but not complete.

  • SUCCEEDED: The query completed sucessfully.

  • FAILED: The query failed due to an error.

  • CANCELED: The query was canceled.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

GetScope

$result = $client->getScope([/* ... */]);
$promise = $client->getScopeAsync([/* ... */]);

Gets information about a scope, including the name, status, tags, and target details. The scope in Network Flow Monitor is an account.

Parameter Syntax

$result = $client->getScope([
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a CreateScope API call.

Result Syntax

[
    'scopeArn' => '<string>',
    'scopeId' => '<string>',
    'status' => 'SUCCEEDED|IN_PROGRESS|FAILED|DEACTIVATING|DEACTIVATED',
    'tags' => ['<string>', ...],
    'targets' => [
        [
            'region' => '<string>',
            'targetIdentifier' => [
                'targetId' => [
                    'accountId' => '<string>',
                ],
                'targetType' => 'ACCOUNT',
            ],
        ],
        // ...
    ],
]

Result Details

Members
scopeArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the scope.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a CreateScope API call.

status
Required: Yes
Type: string

The status for a scope. The status can be one of the following: SUCCEEDED, IN_PROGRESS, FAILED, DEACTIVATING, or DEACTIVATED.

A status of DEACTIVATING means that you've requested a scope to be deactivated and Network Flow Monitor is in the process of deactivating the scope. A status of DEACTIVATED means that the deactivating process is complete.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a scope.

targets
Required: Yes
Type: Array of TargetResource structures

The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

ListMonitors

$result = $client->listMonitors([/* ... */]);
$promise = $client->listMonitorsAsync([/* ... */]);

List all monitors in an account. Optionally, you can list only monitors that have a specific status, by using the STATUS parameter.

Parameter Syntax

$result = $client->listMonitors([
    'maxResults' => <integer>,
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'nextToken' => '<string>',
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

monitorStatus
Type: string

The status of a monitor. The status can be one of the following

  • PENDING: The monitor is in the process of being created.

  • ACTIVE: The monitor is active.

  • INACTIVE: The monitor is inactive.

  • ERROR: Monitor creation failed due to an error.

  • DELETING: The monitor is in the process of being deleted.

nextToken
Type: string

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

Result Syntax

[
    'monitors' => [
        [
            'monitorArn' => '<string>',
            'monitorName' => '<string>',
            'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
monitors
Required: Yes
Type: Array of MonitorSummary structures

The monitors that are in an account.

nextToken
Type: string

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

Errors

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

ListPerformanceMonitors

$result = $client->listPerformanceMonitors([/* ... */]);
$promise = $client->listPerformanceMonitorsAsync([/* ... */]);

Returns a list of the performance monitors in an account. You can optionally return only the monitors that have a specific status or type.

Results are paginated. Use the nextToken parameter to return additional results.

Parameter Syntax

$result = $client->listPerformanceMonitors([
    'maxResults' => <integer>,
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'monitorType' => 'VPC',
    'nextToken' => '<string>',
]);

Parameter Details

Members
maxResults
Type: int

The number of performance monitors that you want to return with this call. If you don't specify a value, the default is 25.

monitorStatus
Type: string

The status of the performance monitors that you want to return. If you don't specify a status, Network Flow Monitor returns performance monitors with any status.

monitorType
Type: string

The type of the performance monitors that you want to return. If you don't specify a type, Network Flow Monitor returns performance monitors of any type.

nextToken
Type: string

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

Result Syntax

[
    'monitors' => [
        [
            'monitorArn' => '<string>',
            'monitorName' => '<string>',
            'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
            'monitorType' => 'VPC',
            'targets' => [
                [
                    'identifier' => '<string>',
                    'type' => 'AWS::EC2::VPC',
                ],
                // ...
            ],
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
monitors
Required: Yes
Type: Array of PerformanceMonitorSummary structures

The performance monitors in the account.

nextToken
Type: string

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

Errors

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

ListScopes

$result = $client->listScopes([/* ... */]);
$promise = $client->listScopesAsync([/* ... */]);

List all the scopes for an account.

Parameter Syntax

$result = $client->listScopes([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
maxResults
Type: int

The number of query results that you want to return with this call.

nextToken
Type: string

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

Result Syntax

[
    'nextToken' => '<string>',
    'scopes' => [
        [
            'scopeArn' => '<string>',
            'scopeId' => '<string>',
            'status' => 'SUCCEEDED|IN_PROGRESS|FAILED|DEACTIVATING|DEACTIVATED',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

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

scopes
Required: Yes
Type: Array of ScopeSummary structures

The scopes returned by the call.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

Returns all the tags for a resource.

Parameter Syntax

$result = $client->listTagsForResource([
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

Result Syntax

[
    'tags' => ['<string>', ...],
]

Result Details

Members
tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a resource.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StartQueryMonitorTopContributors

$result = $client->startQueryMonitorTopContributors([/* ... */]);
$promise = $client->startQueryMonitorTopContributorsAsync([/* ... */]);

Create a query that you can use with the Network Flow Monitor query interface to return the top contributors for a monitor. Specify the monitor that you want to create the query for.

The call returns a query ID that you can use with GetQueryResultsMonitorTopContributors to run the query and return the top contributors for a specific monitor.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable APIs for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->startQueryMonitorTopContributors([
    'destinationCategory' => 'INTRA_AZ|INTER_AZ|INTER_VPC|UNCLASSIFIED|AMAZON_S3|AMAZON_DYNAMODB|INTER_REGION|INTERNET|AWS_SERVICE|LOCAL_ZONE|TRANSIT_GATEWAY', // REQUIRED
    'endTime' => <integer || string || DateTime>, // REQUIRED
    'limit' => <integer>,
    'metricName' => 'ROUND_TRIP_TIME|TIMEOUTS|RETRANSMISSIONS|DATA_TRANSFERRED', // REQUIRED
    'monitorName' => '<string>', // REQUIRED
    'startTime' => <integer || string || DateTime>, // REQUIRED
]);

Parameter Details

Members
destinationCategory
Required: Yes
Type: string

The category that you want to query top contributors for, for a specific monitor. Destination categories can be one of the following:

  • INTRA_AZ: Top contributor network flows within a single Availability Zone

  • INTER_AZ: Top contributor network flows between Availability Zones

  • INTER_REGION: Top contributor network flows between Regions (to the edge of another Region)

  • INTER_VPC: Top contributor network flows between VPCs

  • AMAZON_S3: Top contributor network flows to or from Amazon S3

  • AMAZON_DYNAMODB: Top contributor network flows to or from Amazon Dynamo DB

  • UNCLASSIFIED: Top contributor network flows that do not have a bucket classification

endTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time end of the period that you want to retrieve results for with your query.

limit
Type: int

The maximum number of top contributors to return.

metricName
Required: Yes
Type: string

The metric that you want to query top contributors for. That is, you can specify a metric with this call and return the top contributor network flows, for that type of metric, for a monitor and (optionally) within a specific category, such as network flows between Availability Zones.

monitorName
Required: Yes
Type: string

The name of the monitor.

startTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time that is the beginning of the period that you want to retrieve results for with your query.

Result Syntax

[
    'queryId' => '<string>',
]

Result Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StartQueryPerformanceMonitor

$result = $client->startQueryPerformanceMonitor([/* ... */]);
$promise = $client->startQueryPerformanceMonitorAsync([/* ... */]);

Create a query that you can use with the Network Flow Monitor query interface to return the top paths for a performance monitor. Specify the performance monitor that you want to create the query for.

The call returns a query ID that you can use with GetQueryResultsPerformanceMonitor to return the results of the query.

Top paths in Network Flow Monitor are the network paths used by the traffic for the resources that a performance monitor tracks, ranked by impact score and then by traffic volume. Each path includes the traffic and round-trip time for the path, together with a breakdown of the subnet pairs that the path includes.

Parameter Syntax

$result = $client->startQueryPerformanceMonitor([
    'endTime' => <integer || string || DateTime>, // REQUIRED
    'filterParameters' => [
        [
            'field' => '<string>', // REQUIRED
            'operator' => 'EQUALS|NOT_EQUALS|IN|CONTAINS', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'limit' => <integer>,
    'monitorName' => '<string>', // REQUIRED
    'queryType' => 'TOP_PATHS', // REQUIRED
    'startTime' => <integer || string || DateTime>, // REQUIRED
]);

Parameter Details

Members
endTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time end of the period that you want to retrieve results for with your query.

filterParameters
Type: Array of FilterParameter structures

The filters for the query, to return a subset of the top paths. For a TOP_PATHS query, you can filter on the following fields:

  • local_az_id: The Availability Zone ID of the local end of a path

  • remote_az_id: The Availability Zone ID of the remote end of a path

  • impact_level: The impact level of a path

When you filter on impact_level, Network Flow Monitor compares the filter with the most severe impact level for the path over the time period of the query, and the traffic and round-trip time that Network Flow Monitor returns for each path still cover the full time period. Paths that have no impact data don't match an impact_level filter, including a NOT_EQUALS filter. Network Flow Monitor doesn't filter the subnet pairs within a path by impact level.

limit
Type: int

The maximum number of top paths that you want the query to return.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

queryType
Required: Yes
Type: string

The type of query that you want to create. Specify TOP_PATHS to return the top paths for the performance monitor.

startTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time that is the beginning of the period that you want to retrieve results for with your query.

Result Syntax

[
    'queryId' => '<string>',
]

Result Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StartQueryWorkloadInsightsTopContributors

$result = $client->startQueryWorkloadInsightsTopContributors([/* ... */]);
$promise = $client->startQueryWorkloadInsightsTopContributorsAsync([/* ... */]);

Create a query with the Network Flow Monitor query interface that you can run to return workload insights top contributors. Specify the scope that you want to create a query for.

The call returns a query ID that you can use with GetQueryResultsWorkloadInsightsTopContributors to run the query and return the top contributors for the workload insights for a scope.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable APIs for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->startQueryWorkloadInsightsTopContributors([
    'destinationCategory' => 'INTRA_AZ|INTER_AZ|INTER_VPC|UNCLASSIFIED|AMAZON_S3|AMAZON_DYNAMODB|INTER_REGION|INTERNET|AWS_SERVICE|LOCAL_ZONE|TRANSIT_GATEWAY', // REQUIRED
    'endTime' => <integer || string || DateTime>, // REQUIRED
    'limit' => <integer>,
    'metricName' => 'TIMEOUTS|RETRANSMISSIONS|DATA_TRANSFERRED', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
    'startTime' => <integer || string || DateTime>, // REQUIRED
]);

Parameter Details

Members
destinationCategory
Required: Yes
Type: string

The destination category for a top contributors row. Destination categories can be one of the following:

  • INTRA_AZ: Top contributor network flows within a single Availability Zone

  • INTER_AZ: Top contributor network flows between Availability Zones

  • INTER_REGION: Top contributor network flows between Regions (to the edge of another Region)

  • INTER_VPC: Top contributor network flows between VPCs

  • AWS_SERVICES: Top contributor network flows to or from Amazon Web Services services

  • UNCLASSIFIED: Top contributor network flows that do not have a bucket classification

endTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time end of the period that you want to retrieve results for with your query.

limit
Type: int

The maximum number of top contributors to return.

metricName
Required: Yes
Type: string

The metric that you want to query top contributors for. That is, you can specify this metric to return the top contributor network flows, for this type of metric, for a monitor and (optionally) within a specific category, such as network flows between Availability Zones.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a CreateScope API call.

startTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time that is the beginning of the period that you want to retrieve results for with your query.

Result Syntax

[
    'queryId' => '<string>',
]

Result Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StartQueryWorkloadInsightsTopContributorsData

$result = $client->startQueryWorkloadInsightsTopContributorsData([/* ... */]);
$promise = $client->startQueryWorkloadInsightsTopContributorsDataAsync([/* ... */]);

Create a query with the Network Flow Monitor query interface that you can run to return data for workload insights top contributors. Specify the scope that you want to create a query for.

The call returns a query ID that you can use with GetQueryResultsWorkloadInsightsTopContributorsData to run the query and return the data for the top contributors for the workload insights for a scope.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->startQueryWorkloadInsightsTopContributorsData([
    'destinationCategory' => 'INTRA_AZ|INTER_AZ|INTER_VPC|UNCLASSIFIED|AMAZON_S3|AMAZON_DYNAMODB|INTER_REGION|INTERNET|AWS_SERVICE|LOCAL_ZONE|TRANSIT_GATEWAY', // REQUIRED
    'endTime' => <integer || string || DateTime>, // REQUIRED
    'metricName' => 'TIMEOUTS|RETRANSMISSIONS|DATA_TRANSFERRED', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
    'startTime' => <integer || string || DateTime>, // REQUIRED
]);

Parameter Details

Members
destinationCategory
Required: Yes
Type: string

The destination category for a top contributors. Destination categories can be one of the following:

  • INTRA_AZ: Top contributor network flows within a single Availability Zone

  • INTER_AZ: Top contributor network flows between Availability Zones

  • INTER_REGION: Top contributor network flows between Regions (to the edge of another Region)

  • INTER_VPC: Top contributor network flows between VPCs

  • AWS_SERVICES: Top contributor network flows to or from Amazon Web Services services

  • UNCLASSIFIED: Top contributor network flows that do not have a bucket classification

endTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time end of the period that you want to retrieve results for with your query.

metricName
Required: Yes
Type: string

The metric that you want to query top contributors for. That is, you can specify this metric to return the top contributor network flows, for this type of metric, for a monitor and (optionally) within a specific category, such as network flows between Availability Zones.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

startTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp that is the date and time that is the beginning of the period that you want to retrieve results for with your query.

Result Syntax

[
    'queryId' => '<string>',
]

Result Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StopQueryMonitorTopContributors

$result = $client->stopQueryMonitorTopContributors([/* ... */]);
$promise = $client->stopQueryMonitorTopContributorsAsync([/* ... */]);

Stop a top contributors query for a monitor. Specify the query that you want to stop by providing a query ID and a monitor name.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->stopQueryMonitorTopContributors([
    'monitorName' => '<string>', // REQUIRED
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the monitor.

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to create a query.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StopQueryPerformanceMonitor

$result = $client->stopQueryPerformanceMonitor([/* ... */]);
$promise = $client->stopQueryPerformanceMonitorAsync([/* ... */]);

Stop a query for the Network Flow Monitor query interface, for a specified query ID and performance monitor. Use the same query ID that you used for the corresponding API call to start the query, StartQueryPerformanceMonitor.

Parameter Syntax

$result = $client->stopQueryPerformanceMonitor([
    'monitorName' => '<string>', // REQUIRED
    'queryId' => '<string>', // REQUIRED
]);

Parameter Details

Members
monitorName
Required: Yes
Type: string

The name of the performance monitor.

queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StopQueryWorkloadInsightsTopContributors

$result = $client->stopQueryWorkloadInsightsTopContributors([/* ... */]);
$promise = $client->stopQueryWorkloadInsightsTopContributorsAsync([/* ... */]);

Stop a top contributors query for workload insights. Specify the query that you want to stop by providing a query ID and a scope ID.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->stopQueryWorkloadInsightsTopContributors([
    'queryId' => '<string>', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to create a query.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

StopQueryWorkloadInsightsTopContributorsData

$result = $client->stopQueryWorkloadInsightsTopContributorsData([/* ... */]);
$promise = $client->stopQueryWorkloadInsightsTopContributorsDataAsync([/* ... */]);

Stop a top contributors data query for workload insights. Specify the query that you want to stop by providing a query ID and a scope ID.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

Parameter Syntax

$result = $client->stopQueryWorkloadInsightsTopContributorsData([
    'queryId' => '<string>', // REQUIRED
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
queryId
Required: Yes
Type: string

The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to create a query.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds a tag to a resource.

Parameter Syntax

$result = $client->tagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

tags
Required: Yes
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a resource.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes a tag from a resource.

Parameter Syntax

$result = $client->untagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

tagKeys
Required: Yes
Type: Array of strings

Keys that you specified when you tagged a resource.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

UpdateMonitor

$result = $client->updateMonitor([/* ... */]);
$promise = $client->updateMonitorAsync([/* ... */]);

Update a monitor to add or remove local or remote resources.

Parameter Syntax

$result = $client->updateMonitor([
    'clientToken' => '<string>',
    'localResourcesToAdd' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::Region|AWS::EKS::Cluster', // REQUIRED
        ],
        // ...
    ],
    'localResourcesToRemove' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::Region|AWS::EKS::Cluster', // REQUIRED
        ],
        // ...
    ],
    'monitorName' => '<string>', // REQUIRED
    'remoteResourcesToAdd' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::AWSService|AWS::Region', // REQUIRED
        ],
        // ...
    ],
    'remoteResourcesToRemove' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::AWSService|AWS::Region', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.

localResourcesToAdd
Type: Array of MonitorLocalResource structures

Additional local resources to specify network flows for a monitor, as an array of resources with identifiers and types. A local resource in a workload is the location of hosts where the Network Flow Monitor agent is installed.

localResourcesToRemove
Type: Array of MonitorLocalResource structures

The local resources to remove, as an array of resources with identifiers and types.

monitorName
Required: Yes
Type: string

The name of the monitor.

remoteResourcesToAdd
Type: Array of MonitorRemoteResource structures

The remote resources to add, as an array of resources with identifiers and types.

A remote resource is the other endpoint in the flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.

remoteResourcesToRemove
Type: Array of MonitorRemoteResource structures

The remote resources to remove, as an array of resources with identifiers and types.

A remote resource is the other endpoint specified for the network flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.

Result Syntax

[
    'createdAt' => <DateTime>,
    'localResources' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::Region|AWS::EKS::Cluster',
        ],
        // ...
    ],
    'modifiedAt' => <DateTime>,
    'monitorArn' => '<string>',
    'monitorName' => '<string>',
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'remoteResources' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC|AWS::AvailabilityZone|AWS::EC2::Subnet|AWS::AWSService|AWS::Region',
        ],
        // ...
    ],
    'tags' => ['<string>', ...],
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the monitor was created.

localResources
Required: Yes
Type: Array of MonitorLocalResource structures

The local resources to monitor. A local resource in a workload is the location of hosts where the Network Flow Monitor agent is installed.

modifiedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The last date and time that the monitor was modified.

monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the monitor.

monitorName
Required: Yes
Type: string

The name of the monitor.

monitorStatus
Required: Yes
Type: string

The status of a monitor. The status can be one of the following

  • PENDING: The monitor is in the process of being created.

  • ACTIVE: The monitor is active.

  • INACTIVE: The monitor is inactive.

  • ERROR: Monitor creation failed due to an error.

  • DELETING: The monitor is in the process of being deleted.

remoteResources
Required: Yes
Type: Array of MonitorRemoteResource structures

The remote resources updated for a monitor, as an array of resources with identifiers and types.

A remote resource is the other endpoint specified for the network flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a monitor.

Errors

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

UpdatePerformanceMonitor

$result = $client->updatePerformanceMonitor([/* ... */]);
$promise = $client->updatePerformanceMonitorAsync([/* ... */]);

Update a performance monitor, to add or remove the resources that the monitor tracks network performance for.

Parameter Syntax

$result = $client->updatePerformanceMonitor([
    'clientToken' => '<string>',
    'monitorName' => '<string>', // REQUIRED
    'targetsToAdd' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC', // REQUIRED
        ],
        // ...
    ],
    'targetsToRemove' => [
        [
            'identifier' => '<string>', // REQUIRED
            'type' => 'AWS::EC2::VPC', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. If the token matches a previous request, the service ignores the request without returning an error. Don't reuse the same client token for other API requests.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

targetsToAdd
Type: Array of PerformanceMonitorTarget structures

The resources to add to the performance monitor.

targetsToRemove
Type: Array of PerformanceMonitorTarget structures

The resources to remove from the performance monitor.

Result Syntax

[
    'createdAt' => <DateTime>,
    'modifiedAt' => <DateTime>,
    'monitorArn' => '<string>',
    'monitorName' => '<string>',
    'monitorStatus' => 'PENDING|ACTIVE|INACTIVE|ERROR|DELETING',
    'monitorType' => 'VPC',
    'tags' => ['<string>', ...],
    'targets' => [
        [
            'identifier' => '<string>',
            'type' => 'AWS::EC2::VPC',
        ],
        // ...
    ],
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the performance monitor was created.

modifiedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time when the performance monitor was last modified.

monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the performance monitor.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

monitorStatus
Required: Yes
Type: string

The status of a performance monitor. The status can be one of the following

  • PENDING: The performance monitor is in the process of being created.

  • ACTIVE: The performance monitor is active.

  • INACTIVE: The performance monitor is inactive.

  • ERROR: The performance monitor can't be created or updated.

  • DELETING: The performance monitor is in the process of being deleted.

monitorType
Required: Yes
Type: string

The type of resource that you monitor determines the type of the performance monitor.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a performance monitor.

targets
Required: Yes
Type: Array of PerformanceMonitorTarget structures

The resources that the performance monitor tracks network performance for.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

UpdateScope

$result = $client->updateScope([/* ... */]);
$promise = $client->updateScopeAsync([/* ... */]);

Update a scope to add or remove resources that you want to be available for Network Flow Monitor to generate metrics for, when you have active agents on those resources sending metrics reports to the Network Flow Monitor backend.

Parameter Syntax

$result = $client->updateScope([
    'resourcesToAdd' => [
        [
            'region' => '<string>', // REQUIRED
            'targetIdentifier' => [ // REQUIRED
                'targetId' => [ // REQUIRED
                    'accountId' => '<string>',
                ],
                'targetType' => 'ACCOUNT', // REQUIRED
            ],
        ],
        // ...
    ],
    'resourcesToDelete' => [
        [
            'region' => '<string>', // REQUIRED
            'targetIdentifier' => [ // REQUIRED
                'targetId' => [ // REQUIRED
                    'accountId' => '<string>',
                ],
                'targetType' => 'ACCOUNT', // REQUIRED
            ],
        ],
        // ...
    ],
    'scopeId' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourcesToAdd
Type: Array of TargetResource structures

A list of resources to add to a scope.

resourcesToDelete
Type: Array of TargetResource structures

A list of resources to delete from a scope.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

Result Syntax

[
    'scopeArn' => '<string>',
    'scopeId' => '<string>',
    'status' => 'SUCCEEDED|IN_PROGRESS|FAILED|DEACTIVATING|DEACTIVATED',
    'tags' => ['<string>', ...],
]

Result Details

Members
scopeArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the scope.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.

status
Required: Yes
Type: string

The status for a scope. The status can be one of the following: SUCCEEDED, IN_PROGRESS, FAILED, DEACTIVATING, or DEACTIVATED.

A status of DEACTIVATING means that you've requested a scope to be deactivated and Network Flow Monitor is in the process of deactivating the scope. A status of DEACTIVATED means that the deactivating process is complete.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for a scope.

Errors

ServiceQuotaExceededException:

The request exceeded a service quota.

ResourceNotFoundException:

The request specifies a resource that doesn't exist.

ConflictException:

The requested resource is in use.

ValidationException:

Invalid request.

ThrottlingException:

The request was denied due to request throttling.

AccessDeniedException:

You don't have sufficient permission to perform this action.

InternalServerException:

An internal error occurred.

Shapes

AccessDeniedException

Description

You don't have sufficient permission to perform this action.

Members
message
Type: string

AccountToAdd

Description

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.

Members
accountId
Required: Yes
Type: string

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

membership
Required: Yes
Type: 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.

region
Required: Yes
Type: string

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

AdditionalFlowInfo

Description

Additional information about a network flow, such as the network that the remote address belongs to and the location of the client.

Members
clientLocation
Type: ClientLocation structure

The location of the client for the network flow.

network
Type: Network structure

The network that the remote address of the network flow belongs to.

ClientLocation

Description

The geographic location of the client for a network flow.

Members
city
Type: string

The city where the client is located.

country
Type: string

The country where the client is located.

subdivision
Type: string

The subdivision, such as a state or province, where the client is located.

ConflictException

Description

The requested resource is in use.

Members
message
Type: string

FilterParameter

Description

A filter for a query, to return a subset of the results.

Members
field
Required: Yes
Type: string

The name of the field that you want to filter on. The fields that you can specify depend on the type of query.

operator
Required: Yes
Type: string

The operator to use to compare the field with the values that you specify. The operator can be one of the following

  • EQUALS: The field matches a single value.

  • NOT_EQUALS: The field doesn't match a single value.

  • IN: The field matches any one of several values.

  • CONTAINS: The field contains a value.

values
Required: Yes
Type: Array of strings

The values to compare the field with.

InternalServerException

Description

An internal error occurred.

Members
message
Type: string

KubernetesMetadata

Description

Meta data about Kubernetes resources.

Members
localPodName
Type: string

The name of the pod for a local resource.

localPodNamespace
Type: string

The namespace of the pod for a local resource.

localServiceName
Type: string

The service name for a local resource.

remotePodName
Type: string

The name of the pod for a remote resource.

remotePodNamespace
Type: string

The namespace of the pod for a remote resource.

remoteServiceName
Type: string

The service name for a remote resource.

MonitorLocalResource

Description

A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, an Availability Zone, an EKS cluster or an Amazon Web Services Region.

Members
identifier
Required: Yes
Type: string

The identifier of the local resource. The values you can specify are the following:

  • For a VPC, subnet or EKS cluster, this identifier is the VPC Amazon Resource Name (ARN), subnet ARN or cluster ARN.

  • For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.

  • For a Region, this identifier is the Region name, for example, us-west-2.

type
Required: Yes
Type: string

The type of the local resource. Valid values are AWS::EC2::VPC AWS::AvailabilityZone, AWS::EC2::Subnet, AWS::EKS::Cluster, or AWS::Region.

MonitorRemoteResource

Description

A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. The values you can specify are the following:

  • For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN.

  • For a service, this identifier is one of the following strings: S3 or DynamoDB.

  • For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.

  • For a Region, this identifier is the Region name, for example, us-west-2.

When a remote resource is an Amazon Web Services Region, Network Flow Monitor provides network performance measurements up to the edge of the Region that you specify.

Members
identifier
Required: Yes
Type: string

The identifier of the remote resource. For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN. For an Availability Zone, this identifier is the AZ name, for example, us-west-2b. For an Amazon Web Services Region , this identifier is the Region name, for example, us-west-2.

type
Required: Yes
Type: string

The type of the remote resource. Valid values are AWS::EC2::VPC AWS::AvailabilityZone, AWS::EC2::Subnet, AWS::AWSService, or AWS::Region.

MonitorSummary

Description

A summary of information about a monitor, including the ARN, the name, and the status.

Members
monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the monitor.

monitorName
Required: Yes
Type: string

The name of the monitor.

monitorStatus
Required: Yes
Type: string

The status of a monitor. The status can be one of the following

  • PENDING: The monitor is in the process of being created.

  • ACTIVE: The monitor is active.

  • INACTIVE: The monitor is inactive.

  • ERROR: Monitor creation failed due to an error.

  • DELETING: The monitor is in the process of being deleted.

MonitorTopContributorsRow

Description

A set of information for a top contributor network flow in a monitor. In a monitor, Network Flow Monitor returns information about the network flows for top contributors for each metric. Top contributors are network flows with the top values for each metric type.

Members
additionalFlowInfo
Type: AdditionalFlowInfo structure

Additional information about the network flow, such as the network that the remote address belongs to and the location of the client.

destinationCategory
Type: string

The destination category for a top contributors row. Destination categories can be one of the following:

  • INTRA_AZ: Top contributor network flows within a single Availability Zone

  • INTER_AZ: Top contributor network flows between Availability Zones

  • INTER_REGION: Top contributor network flows between Regions (to the edge of another Region)

  • INTER_VPC: Top contributor network flows between VPCs

  • AWS_SERVICES: Top contributor network flows to or from Amazon Web Services services

  • UNCLASSIFIED: Top contributor network flows that do not have a bucket classification

dnatIp
Type: string

The destination network address translation (DNAT) IP address for a top contributor network flow.

kubernetesMetadata
Type: KubernetesMetadata structure

Meta data about Kubernetes resources.

localAz
Type: string

The Availability Zone for the local resource for a top contributor network flow.

localInstanceArn
Type: string

The Amazon Resource Name (ARN) of a local resource.

localInstanceId
Type: string

The instance identifier for the local resource for a top contributor network flow.

localIp
Type: string

The IP address of the local resource for a top contributor network flow.

localRegion
Type: string

The Amazon Web Services Region for the local resource for a top contributor network flow.

localSubnetArn
Type: string

The Amazon Resource Name (ARN) of a local subnet.

localSubnetId
Type: string

The subnet ID for the local resource for a top contributor network flow.

localVpcArn
Type: string

The Amazon Resource Name (ARN) of a local VPC.

localVpcId
Type: string

The VPC ID for a top contributor network flow for the local resource.

remoteAz
Type: string

The Availability Zone for the remote resource for a top contributor network flow.

remoteInstanceArn
Type: string

The Amazon Resource Name (ARN) of a remote resource.

remoteInstanceId
Type: string

The instance identifier for the remote resource for a top contributor network flow.

remoteIp
Type: string

The IP address of the remote resource for a top contributor network flow.

remoteRegion
Type: string

The Amazon Web Services Region for the remote resource for a top contributor network flow.

remoteSubnetArn
Type: string

The Amazon Resource Name (ARN) of a remote subnet.

remoteSubnetId
Type: string

The subnet ID for the remote resource for a top contributor network flow.

remoteVpcArn
Type: string

The Amazon Resource Name (ARN) of a remote VPC.

remoteVpcId
Type: string

The VPC ID for a top contributor network flow for the remote resource.

snatIp
Type: string

The secure network address translation (SNAT) IP address for a top contributor network flow.

targetPort
Type: int

The target port.

traversedConstructs
Type: Array of TraversedComponent structures

The constructs traversed by a network flow.

value
Type: long (int|float)

The value of the metric for a top contributor network flow.

Network

Description

The network that an address in a network flow belongs to.

Members
asName
Type: string

The name of the autonomous system that the network belongs to.

asNumber
Type: long (int|float)

The autonomous system number (ASN) of the autonomous system that the network belongs to.

PerformanceMonitorSummary

Description

A summary of information about a performance monitor, including the ARN, the name, the status, and the resources that it tracks network performance for.

Members
monitorArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the performance monitor.

monitorName
Required: Yes
Type: string

The name of the performance monitor.

monitorStatus
Required: Yes
Type: string

The status of a performance monitor. The status can be one of the following

  • PENDING: The performance monitor is in the process of being created.

  • ACTIVE: The performance monitor is active.

  • INACTIVE: The performance monitor is inactive.

  • ERROR: The performance monitor can't be created or updated.

  • DELETING: The performance monitor is in the process of being deleted.

monitorType
Required: Yes
Type: string

The type of resource that you monitor determines the type of the performance monitor.

targets
Type: Array of PerformanceMonitorTarget structures

The resources that the performance monitor tracks network performance for.

PerformanceMonitorTarget

Description

A resource that a performance monitor tracks network performance for.

Members
identifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource that you want Network Flow Monitor to track network performance for.

type
Required: Yes
Type: string

The type of the resource that you want Network Flow Monitor to track network performance for. Specify AWS::EC2::VPC.

QueryField

Description

A column that a query returns, with its name and data type.

Members
name
Required: Yes
Type: string

The name of the column.

type
Required: Yes
Type: string

The data type of the values in the column.

ResourceNotFoundException

Description

The request specifies a resource that doesn't exist.

Members
message
Type: string

ScopeSummary

Description

A summary of information about a scope, including the ARN, target ID, and Amazon Web Services Region.

Members
scopeArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the scope.

scopeId
Required: Yes
Type: string

The identifier for the scope that includes the resources that you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for the accounts in a scope.

status
Required: Yes
Type: string

The status for a scope. The status can be one of the following: SUCCEEDED, IN_PROGRESS, FAILED, DEACTIVATING, or DEACTIVATED.

A status of DEACTIVATING means that you've requested a scope to be deactivated and Network Flow Monitor is in the process of deactivating the scope. A status of DEACTIVATED means that the deactivating process is complete.

ServiceQuotaExceededException

Description

The request exceeded a service quota.

Members
message
Type: string

TargetId

Description

A target ID is an internally-generated identifier for a target. A target allows you to identify all the resources in a Network Flow Monitor scope. Currently, a target is always an Amazon Web Services account.

Members
accountId
Type: string

The identifier for the account for a target.

TargetIdentifier

Description

A target identifier is a pair of identifying information for a scope that is included in a target. A target identifier is made up of a target ID and a target type. Currently the target ID is always an account ID and the target type is always ACCOUNT.

Members
targetId
Required: Yes
Type: TargetId structure

The identifier for a target, which is currently always an account ID .

targetType
Required: Yes
Type: string

The type of a target. A target type is currently always ACCOUNT.

TargetResource

Description

A target resource in a scope. The resource is identified by a Region and an account, defined by a target identifier. A target identifier is made up of a target ID (currently always an account ID) and a target type (currently always ACCOUNT).

Members
region
Required: Yes
Type: string

The Amazon Web Services Region for the scope.

targetIdentifier
Required: Yes
Type: TargetIdentifier structure

A target identifier is a pair of identifying information for a scope. A target identifier is made up of a targetID (currently always an account ID) and a targetType (currently always an account).

ThrottlingException

Description

The request was denied due to request throttling.

Members
message
Type: string

TraversedComponent

Description

A section of the network that a network flow has traveled through.

Members
componentArn
Type: string

The Amazon Resource Name (ARN) of a traversed component.

componentId
Type: string

The identifier for the traversed component.

componentType
Type: string

The type of component that was traversed.

serviceName
Type: string

The service name for the traversed component.

ValidationException

Description

Invalid request.

Members
message
Type: string

WorkloadInsightsTopContributorsDataPoint

Description

A data point for a top contributor network flow in a scope. Network Flow Monitor returns information about the network flows with the top values for each metric type, which are called top contributors.

Members
label
Required: Yes
Type: string

The label identifying the data point.

timestamps
Required: Yes
Type: Array of timestamp (string|DateTime or anything parsable by strtotime)s

An array of the timestamps for the data point.

values
Required: Yes
Type: Array of doubles

The values for the data point.

WorkloadInsightsTopContributorsRow

Description

A row for a top contributor for a scope.

Members
accountId
Type: string

The account ID for a specific row of data.

localAz
Type: string

The identifier for the Availability Zone where the local resource is located.

localRegion
Type: string

The Amazon Web Services Region where the local resource is located.

localSubnetArn
Type: string

The Amazon Resource Name (ARN) of a local subnet.

localSubnetId
Type: string

The subnet identifier for the local resource.

localVpcArn
Type: string

The Amazon Resource Name (ARN) of a local VPC.

localVpcId
Type: string

The identifier for the VPC for the local resource.

remoteIdentifier
Type: string

The identifier of a remote resource. For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN. For an Availability Zone, this identifier is the AZ name, for example, us-west-2b. For an Amazon Web Services Region , this identifier is the Region name, for example, us-west-2.

value
Type: long (int|float)

The value for a metric.