Skip to main content

network_insights_paths

Creates, updates, deletes or gets a network_insights_path resource or lists network_insights_paths in a region

Overview

Namenetwork_insights_paths
TypeResource
DescriptionResource schema for AWS::EC2::NetworkInsightsPath
Idaws.ec2.network_insights_paths

Fields

NameDatatypeDescription
network_insights_path_idstring
network_insights_path_arnstring
created_datestring
source_ipstring
filter_at_sourceobject
filter_at_destinationobject
destination_ipstring
sourcestring
destinationstring
source_arnstring
destination_arnstring
protocolstring
destination_portinteger
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTProtocol, Source, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all network_insights_paths in a region.

SELECT
region,
network_insights_path_id,
network_insights_path_arn,
created_date,
source_ip,
filter_at_source,
filter_at_destination,
destination_ip,
source,
destination,
source_arn,
destination_arn,
protocol,
destination_port,
tags
FROM aws.ec2.network_insights_paths
WHERE region = 'us-east-1';

Gets all properties from an individual network_insights_path.

SELECT
region,
network_insights_path_id,
network_insights_path_arn,
created_date,
source_ip,
filter_at_source,
filter_at_destination,
destination_ip,
source,
destination,
source_arn,
destination_arn,
protocol,
destination_port,
tags
FROM aws.ec2.network_insights_paths
WHERE region = 'us-east-1' AND data__Identifier = '<NetworkInsightsPathId>';

INSERT example

Use the following StackQL query and manifest file to create a new network_insights_path resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.network_insights_paths (
Source,
Protocol,
region
)
SELECT
'{{ Source }}',
'{{ Protocol }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.network_insights_paths
WHERE data__Identifier = '<NetworkInsightsPathId>'
AND region = 'us-east-1';

Permissions

To operate on the network_insights_paths resource, the following permissions are required:

Create

ec2:CreateNetworkInsightsPath,
ec2:CreateTags

Delete

ec2:DeleteNetworkInsightsPath,
ec2:DeleteTags

Read

ec2:DescribeNetworkInsightsPaths

List

ec2:DescribeNetworkInsightsPaths

Update

ec2:DescribeNetworkInsightsPaths,
ec2:CreateTags,
ec2:DeleteTags