@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonNetworkMonitor
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonNetworkMonitor
instead.
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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateMonitorResult |
createMonitor(CreateMonitorRequest createMonitorRequest)
Creates a monitor between a source subnet and destination IP address.
|
CreateProbeResult |
createProbe(CreateProbeRequest createProbeRequest)
Create a probe within a monitor.
|
DeleteMonitorResult |
deleteMonitor(DeleteMonitorRequest deleteMonitorRequest)
Deletes a specified monitor.
|
DeleteProbeResult |
deleteProbe(DeleteProbeRequest deleteProbeRequest)
Deletes the specified probe.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetMonitorResult |
getMonitor(GetMonitorRequest getMonitorRequest)
Returns details about a specific monitor.
|
GetProbeResult |
getProbe(GetProbeRequest getProbeRequest)
Returns the details about a probe.
|
ListMonitorsResult |
listMonitors(ListMonitorsRequest listMonitorsRequest)
Returns a list of all of your monitors.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags assigned to this resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Adds key-value pairs to a monitor or probe.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a key-value pair from a monitor or probe.
|
UpdateMonitorResult |
updateMonitor(UpdateMonitorRequest updateMonitorRequest)
Updates the
aggregationPeriod for a monitor. |
UpdateProbeResult |
updateProbe(UpdateProbeRequest updateProbeRequest)
Updates a monitor probe.
|
static final String ENDPOINT_PREFIX
CreateMonitorResult createMonitor(CreateMonitorRequest createMonitorRequest)
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 is TCP
.
protocol
—The communication protocol between the source and destination. This will be either
TCP
or ICMP
.
packetSize
—The size of the packets. This must be a number between 56
and
8500
.
(Optional) tags
—Key-value pairs created and assigned to the probe.
createMonitorRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ConflictException
- This operation attempted to create a resource that already exists.ServiceQuotaExceededException
- This request exceeds a service quota.CreateProbeResult createProbe(CreateProbeRequest createProbeRequest)
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.
createProbeRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ServiceQuotaExceededException
- This request exceeds a service quota.DeleteMonitorResult deleteMonitor(DeleteMonitorRequest deleteMonitorRequest)
Deletes a specified monitor.
This action requires the monitorName
parameter. Run ListMonitors
to get a list of
monitor names.
deleteMonitorRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.DeleteProbeResult deleteProbe(DeleteProbeRequest deleteProbeRequest)
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.
deleteProbeRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ServiceQuotaExceededException
- This request exceeds a service quota.GetMonitorResult getMonitor(GetMonitorRequest getMonitorRequest)
Returns details about a specific monitor.
This action requires the monitorName
parameter. Run ListMonitors
to get a list of
monitor names.
getMonitorRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.GetProbeResult getProbe(GetProbeRequest getProbeRequest)
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.
getProbeRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ListMonitorsResult listMonitors(ListMonitorsRequest listMonitorsRequest)
Returns a list of all of your monitors.
listMonitorsRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags assigned to this resource.
listTagsForResourceRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ConflictException
- This operation attempted to create a resource that already exists.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Adds key-value pairs to a monitor or probe.
tagResourceRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ConflictException
- This operation attempted to create a resource that already exists.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes a key-value pair from a monitor or probe.
untagResourceRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ConflictException
- This operation attempted to create a resource that already exists.UpdateMonitorResult updateMonitor(UpdateMonitorRequest updateMonitorRequest)
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.
updateMonitorRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ServiceQuotaExceededException
- This request exceeds a service quota.UpdateProbeResult updateProbe(UpdateProbeRequest updateProbeRequest)
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 is TCP
.
protocol
—The communication protocol between the source and destination. This will be either
TCP
or ICMP
.
packetSize
—The size of the packets. This must be a number between 56
and
8500
.
(Optional) tags
—Key-value pairs created and assigned to the probe.
updateProbeRequest
- AccessDeniedException
- You do not have sufficient access to perform this action.ResourceNotFoundException
- The specified resource does not exist.ThrottlingException
- The request was denied due to request throttlingValidationException
- One of the parameters for the request is not valid.InternalServerException
- The request processing has failed because of an unknown error, exception or failure.ServiceQuotaExceededException
- This request exceeds a service quota.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.