Class: AWS.NetworkMonitor
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.NetworkMonitor
- Identifier:
- networkmonitor
- API Version:
- 2023-08-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon CloudWatch Network Monitor is an Amazon Web Services active network monitoring service that identifies if a network issues exists within the Amazon Web Services network or your own company network. Within Network Monitor you'll choose the source VPCs and subnets from the Amazon Web Services network in which you operate and then you'll choose the destination IP addresses from your on-premises network. From these sources and destinations, Network Monitor creates a monitor containing all the possible source and destination combinations, each of which is called a probe, within a single monitor. These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.
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 Monitor doesn’t support creation on cross-account resources, but you can create a Network Monitor in any subnet belonging to a VPC owned by your Account.
For more information, see Using Amazon CloudWatch Network Monitor in the Amazon CloudWatch User Guide.
Sending a Request Using NetworkMonitor
var networkmonitor = new AWS.NetworkMonitor();
networkmonitor.createMonitor(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the NetworkMonitor object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var networkmonitor = new AWS.NetworkMonitor({apiVersion: '2023-08-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the networkmonitor service identifier:
AWS.config.apiVersions = {
networkmonitor: '2023-08-01',
// other service API versions
};
var networkmonitor = new AWS.NetworkMonitor();
Constructor Summary collapse
-
new AWS.NetworkMonitor(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createMonitor(params = {}, callback) ⇒ AWS.Request
Creates a monitor between a source subnet and destination IP address.
-
createProbe(params = {}, callback) ⇒ AWS.Request
Create a probe within a monitor.
-
deleteMonitor(params = {}, callback) ⇒ AWS.Request
Deletes a specified monitor.
This action requires the
monitorName
parameter. -
deleteProbe(params = {}, callback) ⇒ AWS.Request
Deletes the specified probe.
-
getMonitor(params = {}, callback) ⇒ AWS.Request
Returns details about a specific monitor.
-
getProbe(params = {}, callback) ⇒ AWS.Request
Returns the details about a probe.
-
listMonitors(params = {}, callback) ⇒ AWS.Request
Returns a list of all of your monitors.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists the tags assigned to this resource.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds key-value pairs to a monitor or probe.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes a key-value pair from a monitor or probe.
.
-
updateMonitor(params = {}, callback) ⇒ AWS.Request
Updates the
aggregationPeriod
for a monitor. -
updateProbe(params = {}, callback) ⇒ AWS.Request
Updates a monitor probe.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given NetworkMonitor resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.NetworkMonitor(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
createMonitor(params = {}, callback) ⇒ AWS.Request
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.
You can also create a monitor with probes using this command. For each probe, you define the following:
-
source
—The subnet IDs where the probes will be created. -
destination
— The target destination IP address for the probe. -
destinationPort
—Required only if the protocol isTCP
. -
protocol
—The communication protocol between the source and destination. This will be eitherTCP
orICMP
. -
packetSize
—The size of the packets. This must be a number between56
and8500
. -
(Optional)
tags
—Key-value pairs created and assigned to the probe.
createProbe(params = {}, callback) ⇒ AWS.Request
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. This action requires the monitorName
parameter. Run ListMonitors
to get a list of monitor names. Note the name of the monitorName
you want to create the probe for.
deleteMonitor(params = {}, callback) ⇒ AWS.Request
Deletes a specified monitor.
This action requires the monitorName
parameter. Run ListMonitors
to get a list of monitor names.
deleteProbe(params = {}, callback) ⇒ AWS.Request
Deletes the specified probe. Once a probe is deleted you'll no longer incur any billing fees for that probe.
This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs. You can only delete a single probe at a time using this action.
getMonitor(params = {}, callback) ⇒ AWS.Request
Returns details about a specific monitor.
This action requires the monitorName
parameter. Run ListMonitors
to get a list of monitor names.
getProbe(params = {}, callback) ⇒ AWS.Request
Returns the details about a probe. This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs.
untagResource(params = {}, callback) ⇒ AWS.Request
Removes a key-value pair from a monitor or probe.
updateMonitor(params = {}, callback) ⇒ AWS.Request
Updates the aggregationPeriod
for a monitor. Monitors support an aggregationPeriod
of either 30
or 60
seconds. This action requires the monitorName
and probeId
parameter. Run ListMonitors
to get a list of monitor names.
updateProbe(params = {}, callback) ⇒ AWS.Request
Updates a monitor probe. This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs.
You can update the following para create a monitor with probes using this command. For each probe, you define the following:
-
state
—The state of the probe. -
destination
— The target destination IP address for the probe. -
destinationPort
—Required only if the protocol isTCP
. -
protocol
—The communication protocol between the source and destination. This will be eitherTCP
orICMP
. -
packetSize
—The size of the packets. This must be a number between56
and8500
. -
(Optional)
tags
—Key-value pairs created and assigned to the probe.
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given NetworkMonitor resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.