Skip to main content

network_insights_paths

Creates, updates, deletes, gets or lists a network_insights_paths resource.

Overview

Namenetwork_insights_paths
TypeResource
Idaws.ec2.network_insights_paths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_datestringThe time stamp when the path was created.
destinationstringThe ID of the destination.
destination_arnstringThe Amazon Resource Name (ARN) of the destination.
destination_ipstringThe IP address of the destination.
destination_portintegerThe destination port.
filter_at_destinationstringScopes the analysis to network paths that match specific filters at the destination.
filter_at_sourcestringScopes the analysis to network paths that match specific filters at the source.
network_insights_path_arnstringThe Amazon Resource Name (ARN) of the path.
network_insights_path_idstringThe ID of the path.
protocolstringThe protocol.
sourcestringThe ID of the source.
source_arnstringThe Amazon Resource Name (ARN) of the source.
source_ipstringThe IP address of the source.
tagsstringThe tags associated with the path.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_network_insights_pathsselectregionNetworkInsightsPathId, Filter, MaxResults, DryRun, NextTokenDescribes one or more of your paths.
create_network_insights_pathinsertClientToken, regionSourceIp, DestinationIp, Source, Destination, Protocol, DestinationPort, TagSpecification, DryRun, FilterAtSource, FilterAtDestinationCreates a path to analyze for reachability. Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see the Reachability Analyzer Guide.
delete_network_insights_pathdeleteNetworkInsightsPathId, regionDryRunDeletes the specified path.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ClientTokenstringUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
NetworkInsightsPathIdstringThe ID of the path.
regionstringAWS region (default: us-east-1)
DestinationstringThe ID or ARN of the destination. If the resource is in another account, you must specify an ARN.
DestinationIpstringThe IP address of the destination.
DestinationPortintegerThe destination port.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters. The following are the possible values: destination - The ID of the resource. filter-at-source.source-address - The source IPv4 address at the source. filter-at-source.source-port-range - The source port range at the source. filter-at-source.destination-address - The destination IPv4 address at the source. filter-at-source.destination-port-range - The destination port range at the source. filter-at-destination.source-address - The source IPv4 address at the destination. filter-at-destination.source-port-range - The source port range at the destination. filter-at-destination.destination-address - The destination IPv4 address at the destination. filter-at-destination.destination-port-range - The destination port range at the destination. protocol - The protocol. source - The ID of the resource.
FilterAtDestinationobjectScopes the analysis to network paths that match specific filters at the destination. If you specify this parameter, you can't specify the parameter for the destination IP address.
FilterAtSourceobjectScopes the analysis to network paths that match specific filters at the source. If you specify this parameter, you can't specify the parameters for the source IP address or the destination port.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NetworkInsightsPathIdarrayThe IDs of the paths.
NextTokenstringThe token for the next page of results.
ProtocolstringThe protocol.
SourcestringThe ID or ARN of the source. If the resource is in another account, you must specify an ARN.
SourceIpstringThe IP address of the source.
TagSpecificationarrayThe tags to add to the path.

SELECT examples

Describes one or more of your paths.

SELECT
created_date,
destination,
destination_arn,
destination_ip,
destination_port,
filter_at_destination,
filter_at_source,
network_insights_path_arn,
network_insights_path_id,
protocol,
source,
source_arn,
source_ip,
tags
FROM aws.ec2.network_insights_paths
WHERE region = '{{ region }}' -- required
AND NetworkInsightsPathId = '{{ NetworkInsightsPathId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND DryRun = '{{ DryRun }}'
AND NextToken = '{{ NextToken }}'
;

INSERT examples

Creates a path to analyze for reachability. Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see the Reachability Analyzer Guide.

INSERT INTO aws.ec2.network_insights_paths (
ClientToken,
region,
SourceIp,
DestinationIp,
Source,
Destination,
Protocol,
DestinationPort,
TagSpecification,
DryRun,
FilterAtSource,
FilterAtDestination
)
SELECT
'{{ ClientToken }}',
'{{ region }}',
'{{ SourceIp }}',
'{{ DestinationIp }}',
'{{ Source }}',
'{{ Destination }}',
'{{ Protocol }}',
'{{ DestinationPort }}',
'{{ TagSpecification }}',
'{{ DryRun }}',
'{{ FilterAtSource }}',
'{{ FilterAtDestination }}'
RETURNING
created_date,
destination,
destination_arn,
destination_ip,
destination_port,
filter_at_destination,
filter_at_source,
network_insights_path_arn,
network_insights_path_id,
protocol,
source,
source_arn,
source_ip,
tags
;

DELETE examples

Deletes the specified path.

DELETE FROM aws.ec2.network_insights_paths
WHERE NetworkInsightsPathId = '{{ NetworkInsightsPathId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;