Skip to content

Commit

Permalink
Updated CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaitanya Gummadi committed Jan 8, 2025
1 parent 5955158 commit c6c0153
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 14 deletions.
2 changes: 1 addition & 1 deletion awscli/examples/networkflowmonitor/create-scope.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**To create a Scope**

The following ``create-scope`` creates a scope that includes a set of resources for which Network Flow Monitor will generate network traffic metrics. ::
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-east-1"}]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ Output::
}
],
"unit": "Bytes"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ Output::
"localVpcArn": "arn:aws:ec2:us-east-1:123456789012:vpc/vpc-03ea55eeda25adbb0"
}
]
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ Output::

{
"status": "SUCCEEDED"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ Output::

{
"status": "SUCCEEDED"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ Output::

{
"status": "SUCCEEDED"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ Output::
"Value": "Production",
"Key": "stack"
}
}
}

For more information, see `Tagging your Amazon CloudWatch resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ Output::

{
"queryId": "aecd3a88-0283-35b0-a17d-6e944dc8531d"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ Output::

{
"queryId": "cc4f4ab3-3103-33b8-80ff-d6597a0c6cea"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ Output::

{
"queryId": "1fc423d3-b144-37a6-80e6-e2c7d26eea0c"
}
}

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ The following ``stop-query-monitor-top-contributors`` example stops the query in
--monitor-name Demo \
--query-id aecd3a88-0283-35b0-a17d-6e944dc8531d

This command produces no output.
This command produces no output.

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ The following ``stop-query-workload-insights-top-contributors-data`` example sto
--scope-id e21cda79-30a0-4c12-9299-d8629d76d8cf \
--query-id cc4f4ab3-3103-33b8-80ff-d6597a0c6cea

This command produces no output.
This command produces no output.

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ The following ``stop-query-workload-insights-top-contributors`` example stops th
--scope-id e21cda79-30a0-4c12-9299-d8629d76d8cf \
--query-id 1fc423d3-b144-37a6-80e6-e2c7d26eea0c

This command produces no output.
This command produces no output.

For more information, see `Evaluate network flows with workload insights <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-NetworkFlowMonitor-configure-evaluate-flows.html>`__ in the *Amazon CloudWatch User Guide*.
2 changes: 2 additions & 0 deletions awscli/examples/networkflowmonitor/tag-resource.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ The following ``tag-resource`` example adds a tag to the monitor in the specifie
--tags Key=stack,Value=Production

This command produces no output.

For more information, see `Tagging your Amazon CloudWatch resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`__ in the *Amazon CloudWatch User Guide*.
4 changes: 3 additions & 1 deletion awscli/examples/networkflowmonitor/untag-resource.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ The following ``untag-resource`` example removes a tag to the monitor in the spe
--resource-arn arn:aws:networkflowmonitor:us-east-1:123456789012:monitor/Demo \
--tag-keys stack

This command produces no output.
This command produces no output.

For more information, see `Tagging your Amazon CloudWatch resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`__ in the *Amazon CloudWatch User Guide*.

0 comments on commit c6c0153

Please sign in to comment.