CloudWatchNetworkMonitorClient#
Index > CloudWatchNetworkMonitor > CloudWatchNetworkMonitorClient
Auto-generated documentation for CloudWatchNetworkMonitor type annotations stubs module mypy-boto3-networkmonitor.
CloudWatchNetworkMonitorClient#
Type annotations and code completion for boto3.client("networkmonitor")
.
boto3 documentation
# CloudWatchNetworkMonitorClient usage example
from boto3.session import Session
from mypy_boto3_networkmonitor.client import CloudWatchNetworkMonitorClient
def get_networkmonitor_client() -> CloudWatchNetworkMonitorClient:
return Session().client("networkmonitor")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("networkmonitor").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("networkmonitor")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_networkmonitor.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("networkmonitor").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("networkmonitor").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_monitor#
Creates a monitor between a source subnet and destination IP address.
Type annotations and code completion for boto3.client("networkmonitor").create_monitor
method.
boto3 documentation
# create_monitor method definition
def create_monitor(
self,
*,
monitorName: str,
probes: Sequence[CreateMonitorProbeInputTypeDef] = ..., # (1)
aggregationPeriod: int = ...,
clientToken: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateMonitorOutputTypeDef: # (2)
...
# create_monitor method usage example with argument unpacking
kwargs: CreateMonitorInputRequestTypeDef = { # (1)
"monitorName": ...,
}
parent.create_monitor(**kwargs)
create_probe#
Create a probe within a monitor.
Type annotations and code completion for boto3.client("networkmonitor").create_probe
method.
boto3 documentation
# create_probe method definition
def create_probe(
self,
*,
monitorName: str,
probe: ProbeInputTypeDef, # (1)
clientToken: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateProbeOutputTypeDef: # (2)
...
# create_probe method usage example with argument unpacking
kwargs: CreateProbeInputRequestTypeDef = { # (1)
"monitorName": ...,
"probe": ...,
}
parent.create_probe(**kwargs)
delete_monitor#
Deletes a specified monitor.
Type annotations and code completion for boto3.client("networkmonitor").delete_monitor
method.
boto3 documentation
# delete_monitor method definition
def delete_monitor(
self,
*,
monitorName: str,
) -> Dict[str, Any]:
...
# delete_monitor method usage example with argument unpacking
kwargs: DeleteMonitorInputRequestTypeDef = { # (1)
"monitorName": ...,
}
parent.delete_monitor(**kwargs)
delete_probe#
Deletes the specified probe.
Type annotations and code completion for boto3.client("networkmonitor").delete_probe
method.
boto3 documentation
# delete_probe method definition
def delete_probe(
self,
*,
monitorName: str,
probeId: str,
) -> Dict[str, Any]:
...
# delete_probe method usage example with argument unpacking
kwargs: DeleteProbeInputRequestTypeDef = { # (1)
"monitorName": ...,
"probeId": ...,
}
parent.delete_probe(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("networkmonitor").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_monitor#
Returns details about a specific monitor.
Type annotations and code completion for boto3.client("networkmonitor").get_monitor
method.
boto3 documentation
# get_monitor method definition
def get_monitor(
self,
*,
monitorName: str,
) -> GetMonitorOutputTypeDef: # (1)
...
# get_monitor method usage example with argument unpacking
kwargs: GetMonitorInputRequestTypeDef = { # (1)
"monitorName": ...,
}
parent.get_monitor(**kwargs)
get_probe#
Returns the details about a probe.
Type annotations and code completion for boto3.client("networkmonitor").get_probe
method.
boto3 documentation
# get_probe method definition
def get_probe(
self,
*,
monitorName: str,
probeId: str,
) -> GetProbeOutputTypeDef: # (1)
...
# get_probe method usage example with argument unpacking
kwargs: GetProbeInputRequestTypeDef = { # (1)
"monitorName": ...,
"probeId": ...,
}
parent.get_probe(**kwargs)
list_monitors#
Returns a list of all of your monitors.
Type annotations and code completion for boto3.client("networkmonitor").list_monitors
method.