Skip to content

Commit bbd68ba

Browse files
author
awstools
committed
docs(client-networkmonitor): Examples were added to CloudWatch Network Monitor commands.
1 parent 0c61153 commit bbd68ba

File tree

14 files changed

+134
-36
lines changed

14 files changed

+134
-36
lines changed

clients/client-networkmonitor/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ the destination IP addresses from your on-premises network. From these sources a
1414
destinations, Network Monitor creates a monitor containing all the possible source and
1515
destination combinations, each of which is called a probe, within a single monitor.
1616
These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.</p>
17+
<p>Before you begin, ensure the Amazon Web Services CLI is configured in the Amazon Web Services Account where you will create the Network Monitor resource. Network
18+
Monitor doesn’t support creation on cross-account resources, but you can create a
19+
Network Monitor in any subnet belonging to a VPC owned by your Account.</p>
1720
<p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/what-is-network-monitor.html">Using Amazon CloudWatch Network Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
1821

1922
## Installing

clients/client-networkmonitor/src/NetworkMonitor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ export interface NetworkMonitor {
205205
* destinations, Network Monitor creates a monitor containing all the possible source and
206206
* destination combinations, each of which is called a probe, within a single monitor.
207207
* These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.</p>
208+
* <p>Before you begin, ensure the Amazon Web Services CLI is configured in the Amazon Web Services Account where you will create the Network Monitor resource. Network
209+
* Monitor doesn’t support creation on cross-account resources, but you can create a
210+
* Network Monitor in any subnet belonging to a VPC owned by your Account.</p>
208211
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/what-is-network-monitor.html">Using Amazon CloudWatch Network Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
209212
* @public
210213
*/

clients/client-networkmonitor/src/NetworkMonitorClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ export interface NetworkMonitorClientResolvedConfig extends NetworkMonitorClient
293293
* destinations, Network Monitor creates a monitor containing all the possible source and
294294
* destination combinations, each of which is called a probe, within a single monitor.
295295
* These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.</p>
296+
* <p>Before you begin, ensure the Amazon Web Services CLI is configured in the Amazon Web Services Account where you will create the Network Monitor resource. Network
297+
* Monitor doesn’t support creation on cross-account resources, but you can create a
298+
* Network Monitor in any subnet belonging to a VPC owned by your Account.</p>
296299
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/what-is-network-monitor.html">Using Amazon CloudWatch Network Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
297300
* @public
298301
*/

clients/client-networkmonitor/src/commands/CreateMonitorCommand.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,38 @@ export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __Metad
2828

2929
/**
3030
* <p>Creates a monitor between a source subnet and destination IP address. Within a monitor you'll create one or more probes that monitor network traffic between your source Amazon Web Services VPC subnets and your destination IP addresses. Each probe then aggregates and sends metrics to Amazon CloudWatch.</p>
31+
* <p>You can also create a monitor with probes using this command. For each probe, you
32+
* define the following:</p>
33+
* <ul>
34+
* <li>
35+
* <p>
36+
* <code>source</code>—The subnet IDs where the probes will be created.</p>
37+
* </li>
38+
* <li>
39+
* <p>
40+
* <code>destination</code>— The target destination IP address for the
41+
* probe.</p>
42+
* </li>
43+
* <li>
44+
* <p>
45+
* <code>destinationPort</code>—Required only if the protocol is
46+
* <code>TCP</code>.</p>
47+
* </li>
48+
* <li>
49+
* <p>
50+
* <code>protocol</code>—The communication protocol between the source and
51+
* destination. This will be either <code>TCP</code> or <code>ICMP</code>.</p>
52+
* </li>
53+
* <li>
54+
* <p>
55+
* <code>packetSize</code>—The size of the packets. This must be a number between
56+
* <code>56</code> and <code>8500</code>.</p>
57+
* </li>
58+
* <li>
59+
* <p>(Optional) <code>tags</code> —Key-value pairs created and assigned to the
60+
* probe.</p>
61+
* </li>
62+
* </ul>
3163
* @example
3264
* Use a bare-bones client and the command you need to make an API call.
3365
* ```javascript

clients/client-networkmonitor/src/commands/CreateProbeCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export interface CreateProbeCommandInput extends CreateProbeInput {}
2727
export interface CreateProbeCommandOutput extends CreateProbeOutput, __MetadataBearer {}
2828

2929
/**
30-
* <p>Create a probe within a monitor. Once you create a probe, and it begins monitoring your network traffic, you'll incur billing charges for that probe. </p>
30+
* <p>Create a probe within a monitor. Once you create a probe, and it begins monitoring your
31+
* network traffic, you'll incur billing charges for that probe. This action requires the
32+
* <code>monitorName</code> parameter. Run <code>ListMonitors</code> to get a list of
33+
* monitor names. Note the name of the <code>monitorName</code> you want to create the
34+
* probe for.</p>
3135
* @example
3236
* Use a bare-bones client and the command you need to make an API call.
3337
* ```javascript

clients/client-networkmonitor/src/commands/DeleteMonitorCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export interface DeleteMonitorCommandOutput extends DeleteMonitorOutput, __Metad
2828

2929
/**
3030
* <p>Deletes a specified monitor.</p>
31+
* <p>This action requires the <code>monitorName</code> parameter. Run
32+
* <code>ListMonitors</code> to get a list of monitor names. </p>
3133
* @example
3234
* Use a bare-bones client and the command you need to make an API call.
3335
* ```javascript

clients/client-networkmonitor/src/commands/DeleteProbeCommand.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ export interface DeleteProbeCommandInput extends DeleteProbeInput {}
2727
export interface DeleteProbeCommandOutput extends DeleteProbeOutput, __MetadataBearer {}
2828

2929
/**
30-
* <p>Deletes the specified monitor. Once a probe is deleted you'll no longer incur any billing fees for that probe.</p>
30+
* <p>Deletes the specified probe. Once a probe is deleted you'll no longer incur any billing
31+
* fees for that probe.</p>
32+
* <p>This action requires both the <code>monitorName</code> and <code>probeId</code>
33+
* parameters. Run <code>ListMonitors</code> to get a list of monitor names. Run
34+
* <code>GetMonitor</code> to get a list of probes and probe IDs. You can only delete a
35+
* single probe at a time using this action. </p>
3136
* @example
3237
* Use a bare-bones client and the command you need to make an API call.
3338
* ```javascript

clients/client-networkmonitor/src/commands/GetMonitorCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export interface GetMonitorCommandInput extends GetMonitorInput {}
2727
export interface GetMonitorCommandOutput extends GetMonitorOutput, __MetadataBearer {}
2828

2929
/**
30-
* <p>Returns details about a specific monitor.</p>
30+
* <p>Returns details about a specific monitor. </p>
31+
* <p>This action requires the <code>monitorName</code> parameter. Run
32+
* <code>ListMonitors</code> to get a list of monitor names. </p>
3133
* @example
3234
* Use a bare-bones client and the command you need to make an API call.
3335
* ```javascript

clients/client-networkmonitor/src/commands/GetProbeCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ export interface GetProbeCommandInput extends GetProbeInput {}
2727
export interface GetProbeCommandOutput extends GetProbeOutput, __MetadataBearer {}
2828

2929
/**
30-
* <p>Returns the details about a probe. You'll need both the <code>monitorName</code> and <code>probeId</code>. </p>
30+
* <p>Returns the details about a probe. This action requires both the
31+
* <code>monitorName</code> and <code>probeId</code> parameters. Run
32+
* <code>ListMonitors</code> to get a list of monitor names. Run
33+
* <code>GetMonitor</code> to get a list of probes and probe IDs. </p>
3134
* @example
3235
* Use a bare-bones client and the command you need to make an API call.
3336
* ```javascript

clients/client-networkmonitor/src/commands/UpdateMonitorCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ export interface UpdateMonitorCommandInput extends UpdateMonitorInput {}
2727
export interface UpdateMonitorCommandOutput extends UpdateMonitorOutput, __MetadataBearer {}
2828

2929
/**
30-
* <p>Updates the <code>aggregationPeriod</code> for a monitor. Monitors support an <code>aggregationPeriod</code> of either <code>30</code> or <code>60</code> seconds.</p>
30+
* <p>Updates the <code>aggregationPeriod</code> for a monitor. Monitors support an
31+
* <code>aggregationPeriod</code> of either <code>30</code> or <code>60</code> seconds.
32+
* This action requires the <code>monitorName</code> and <code>probeId</code> parameter.
33+
* Run <code>ListMonitors</code> to get a list of monitor names. </p>
3134
* @example
3235
* Use a bare-bones client and the command you need to make an API call.
3336
* ```javascript

0 commit comments

Comments
 (0)