NetworkFlowMonitor / Client / update_performance_monitor

update_performance_monitor

NetworkFlowMonitor.Client.update_performance_monitor(**kwargs)

Update a performance monitor, to add or remove the resources that the monitor tracks network performance for.

See also: AWS API Documentation

Request Syntax

response = client.update_performance_monitor(
    monitorName='string',
    targetsToAdd=[
        {
            'type': 'AWS::EC2::VPC',
            'identifier': 'string'
        },
    ],
    targetsToRemove=[
        {
            'type': 'AWS::EC2::VPC',
            'identifier': 'string'
        },
    ],
    clientToken='string'
)
Parameters:
  • monitorName (string) –

    [REQUIRED]

    The name of the performance monitor.

  • targetsToAdd (list) –

    The resources to add to the performance monitor.

    • (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.

  • targetsToRemove (list) –

    The resources to remove from the performance monitor.

    • (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.

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.ServiceQuotaExceededException

  • NetworkFlowMonitor.Client.exceptions.ResourceNotFoundException

  • NetworkFlowMonitor.Client.exceptions.ConflictException

  • NetworkFlowMonitor.Client.exceptions.ValidationException

  • NetworkFlowMonitor.Client.exceptions.ThrottlingException

  • NetworkFlowMonitor.Client.exceptions.AccessDeniedException

  • NetworkFlowMonitor.Client.exceptions.InternalServerException