NetworkFlowMonitor / Client / create_performance_monitor
create_performance_monitor¶
- NetworkFlowMonitor.Client.create_performance_monitor(**kwargs)¶
Create a performance monitor to monitor the traffic of the Amazon Virtual Private Clouds (VPCs) that you specify as targets, to determine whether the Amazon Web Services network is causing issues for your workloads. With a performance monitor, you can identify network degradation across paths between Availability Zones and across Amazon Web Services Regions.
See also: AWS API Documentation
Request Syntax
response = client.create_performance_monitor( monitorName='string', scopeArn='string', targets=[ { 'type': 'AWS::EC2::VPC', 'identifier': 'string' }, ], clientToken='string', tags={ 'string': 'string' } )
- Parameters:
monitorName (string) –
[REQUIRED]
The name of the performance monitor.
scopeArn (string) – The Amazon Resource Name (ARN) of the scope for the performance monitor.
targets (list) –
[REQUIRED]
The resources to monitor. Each target identifies a resource, currently a VPC, for which you can track network performance. For a VPC, specify the VPC ARN.
(dict) –
A resource that a performance monitor tracks network performance for.
type (string) – [REQUIRED]
The type of the resource that you want Network Flow Monitor to track network performance for. Specify
AWS::EC2::VPC.identifier (string) – [REQUIRED]
The Amazon Resource Name (ARN) of the resource that you want Network Flow Monitor to track network performance for.
clientToken (string) –
A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. If the token matches a previous request, the service ignores the request without returning an error. Don’t reuse the same client token for other API requests.
This field is autopopulated if not provided.
tags (dict) –
The tags for a performance monitor. You can add a maximum of 200 tags.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'monitorArn': 'string', 'monitorName': 'string', 'monitorStatus': 'PENDING'|'ACTIVE'|'INACTIVE'|'ERROR'|'DELETING', 'monitorType': 'VPC', 'targets': [ { 'type': 'AWS::EC2::VPC', 'identifier': 'string' }, ], 'createdAt': datetime(2015, 1, 1), 'modifiedAt': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }
Response Structure
(dict) –
monitorArn (string) –
The Amazon Resource Name (ARN) of the performance monitor.
monitorName (string) –
The name of the performance monitor.
monitorStatus (string) –
The status of a performance monitor. The status can be one of the following
PENDING: The performance monitor is in the process of being created.ACTIVE: The performance monitor is active.INACTIVE: The performance monitor is inactive.ERROR: The performance monitor can’t be created or updated.DELETING: The performance monitor is in the process of being deleted.
monitorType (string) –
The type of resource that you monitor determines the type of the performance monitor.
targets (list) –
The resources that the performance monitor tracks network performance for.
(dict) –
A resource that a performance monitor tracks network performance for.
type (string) –
The type of the resource that you want Network Flow Monitor to track network performance for. Specify
AWS::EC2::VPC.identifier (string) –
The Amazon Resource Name (ARN) of the resource that you want Network Flow Monitor to track network performance for.
createdAt (datetime) –
The date and time when the performance monitor was created.
modifiedAt (datetime) –
The date and time when the performance monitor was last modified.
tags (dict) –
The tags for a performance monitor.
(string) –
(string) –
Exceptions
NetworkFlowMonitor.Client.exceptions.ServiceQuotaExceededExceptionNetworkFlowMonitor.Client.exceptions.ConflictExceptionNetworkFlowMonitor.Client.exceptions.ValidationExceptionNetworkFlowMonitor.Client.exceptions.ThrottlingExceptionNetworkFlowMonitor.Client.exceptions.AccessDeniedExceptionNetworkFlowMonitor.Client.exceptions.InternalServerException