NetworkFlowMonitor / Client / update_monitor
update_monitor#
- NetworkFlowMonitor.Client.update_monitor(**kwargs)#
- Update a monitor to add or remove local or remote resources. - See also: AWS API Documentation - Request Syntax- response = client.update_monitor( monitorName='string', localResourcesToAdd=[ { 'type': 'AWS::EC2::VPC'|'AWS::AvailabilityZone'|'AWS::EC2::Subnet', 'identifier': 'string' }, ], localResourcesToRemove=[ { 'type': 'AWS::EC2::VPC'|'AWS::AvailabilityZone'|'AWS::EC2::Subnet', 'identifier': 'string' }, ], remoteResourcesToAdd=[ { 'type': 'AWS::EC2::VPC'|'AWS::AvailabilityZone'|'AWS::EC2::Subnet'|'AWS::AWSService', 'identifier': 'string' }, ], remoteResourcesToRemove=[ { 'type': 'AWS::EC2::VPC'|'AWS::AvailabilityZone'|'AWS::EC2::Subnet'|'AWS::AWSService', 'identifier': 'string' }, ], clientToken='string' ) - Parameters:
- monitorName (string) – - [REQUIRED] - The name of the monitor. 
- localResourcesToAdd (list) – - The local resources to add, as an array of resources with identifiers and types. - (dict) – - A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, or an Availability Zone. - type (string) – [REQUIRED] - The type of the local resource. Valid values are - AWS::EC2::VPC- AWS::AvailabilityZoneor- AWS::EC2::Subnet.
- identifier (string) – [REQUIRED] - The identifier of the local resource, such as an ARN. 
 
 
- localResourcesToRemove (list) – - The local resources to remove, as an array of resources with identifiers and types. - (dict) – - A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, or an Availability Zone. - type (string) – [REQUIRED] - The type of the local resource. Valid values are - AWS::EC2::VPC- AWS::AvailabilityZoneor- AWS::EC2::Subnet.
- identifier (string) – [REQUIRED] - The identifier of the local resource, such as an ARN. 
 
 
- remoteResourcesToAdd (list) – - The remove resources to add, as an array of resources with identifiers and types. - (dict) – - A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. Remote resources can be a a subnet, a VPC, an Availability Zone, or an Amazon Web Services service. - type (string) – [REQUIRED] - The type of the remote resource. Valid values are - AWS::EC2::VPC- AWS::AvailabilityZone,- AWS::EC2::Subnet, or- AWS::AWSService.
- identifier (string) – [REQUIRED] - The identifier of the remote resource, such as an ARN. 
 
 
- remoteResourcesToRemove (list) – - The remove resources to remove, as an array of resources with identifiers and types. - (dict) – - A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. Remote resources can be a a subnet, a VPC, an Availability Zone, or an Amazon Web Services service. - type (string) – [REQUIRED] - The type of the remote resource. Valid values are - AWS::EC2::VPC- AWS::AvailabilityZone,- AWS::EC2::Subnet, or- AWS::AWSService.
- identifier (string) – [REQUIRED] - The identifier of the remote resource, such as an ARN. 
 
 
- clientToken (string) – - A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. 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', 'localResources': [ { 'type': 'AWS::EC2::VPC'|'AWS::AvailabilityZone'|'AWS::EC2::Subnet', 'identifier': 'string' }, ], 'remoteResources': [ { 'type': 'AWS::EC2::VPC'|'AWS::AvailabilityZone'|'AWS::EC2::Subnet'|'AWS::AWSService', '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 monitor. 
- monitorName (string) – - The name of the monitor. 
- monitorStatus (string) – - The status of a monitor. The status can be one of the following - PENDING: The monitor is in the process of being created.
- ACTIVE: The monitor is active.
- INACTIVE: The monitor is inactive.
- ERROR: Monitor creation failed due to an error.
- DELETING: The monitor is in the process of being deleted.
 
- localResources (list) – - The local resources updated for a monitor, as an array of resources with identifiers and types. - (dict) – - A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, or an Availability Zone. - type (string) – - The type of the local resource. Valid values are - AWS::EC2::VPC- AWS::AvailabilityZoneor- AWS::EC2::Subnet.
- identifier (string) – - The identifier of the local resource, such as an ARN. 
 
 
- remoteResources (list) – - The remote resources updated for a monitor, as an array of resources with identifiers and types. - (dict) – - A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. Remote resources can be a a subnet, a VPC, an Availability Zone, or an Amazon Web Services service. - type (string) – - The type of the remote resource. Valid values are - AWS::EC2::VPC- AWS::AvailabilityZone,- AWS::EC2::Subnet, or- AWS::AWSService.
- identifier (string) – - The identifier of the remote resource, such as an ARN. 
 
 
- createdAt (datetime) – - The date and time when the monitor was created. 
- modifiedAt (datetime) – - The last date and time that the monitor was modified. 
- tags (dict) – - The tags for a monitor. - (string) – - (string) – 
 
 
 
 
 - Exceptions- NetworkFlowMonitor.Client.exceptions.ResourceNotFoundException
- NetworkFlowMonitor.Client.exceptions.ValidationException
- NetworkFlowMonitor.Client.exceptions.ThrottlingException
- NetworkFlowMonitor.Client.exceptions.AccessDeniedException
- NetworkFlowMonitor.Client.exceptions.InternalServerException