CmdID / aws / aws networkflowmonitor
aws networkflowmonitor create-scope
In Network Flow Monitor, you specify a scope for the service to generate metrics for. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To create a scope
The following create-scope example creates a scope that includes a set of resources for which Network Flow Monitor will generate network traffic metrics.
aws networkflowmonitor create-scope --targets '[{"targetIdentifier":{"targetId":{"accountId":"123456789012"},"targetType":"ACCOUNT"},"region":"us-west-2"}]'Identify--targetsThe targets to define the scope to be monitored.Its output
{
"scopeId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"status": "IN_PROGRESS",
"tags": {}
}For more information, see Components and features of Network Flow Monitor in the Amazon CloudWatch User Guide.
Options
--client-tokenA unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request.--tagsThe tags for a scope.--targetsThe targets to define the scope to be monitored.