Skip to main content

network_insights_analyses

Creates, updates, deletes or gets a network_insights_analysis resource or lists network_insights_analyses in a region

Overview

Namenetwork_insights_analyses
TypeResource
DescriptionResource schema for AWS::EC2::NetworkInsightsAnalysis
Idaws.ec2.network_insights_analyses

Fields

NameDatatypeDescription
statusstring
return_path_componentsarray
network_insights_analysis_idstring
network_insights_path_idstring
network_path_foundboolean
suggested_accountsarray
filter_in_arnsarray
network_insights_analysis_arnstring
status_messagestring
start_datestring
alternate_path_hintsarray
explanationsarray
forward_path_componentsarray
additional_accountsarray
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTNetworkInsightsPathId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all network_insights_analyses in a region.

SELECT
region,
status,
return_path_components,
network_insights_analysis_id,
network_insights_path_id,
network_path_found,
suggested_accounts,
filter_in_arns,
network_insights_analysis_arn,
status_message,
start_date,
alternate_path_hints,
explanations,
forward_path_components,
additional_accounts,
tags
FROM aws.ec2.network_insights_analyses
WHERE region = 'us-east-1';

Gets all properties from an individual network_insights_analysis.

SELECT
region,
status,
return_path_components,
network_insights_analysis_id,
network_insights_path_id,
network_path_found,
suggested_accounts,
filter_in_arns,
network_insights_analysis_arn,
status_message,
start_date,
alternate_path_hints,
explanations,
forward_path_components,
additional_accounts,
tags
FROM aws.ec2.network_insights_analyses
WHERE region = 'us-east-1' AND data__Identifier = '<NetworkInsightsAnalysisId>';

INSERT example

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

/*+ create */
INSERT INTO aws.ec2.network_insights_analyses (
NetworkInsightsPathId,
region
)
SELECT
'{{ NetworkInsightsPathId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Read

ec2:Describe*

Create

ec2:CreateTags,
ec2:StartNetworkInsightsAnalysis,
ec2:GetTransitGatewayRouteTablePropagations,
ec2:SearchTransitGatewayRoutes,
ec2:Describe*,
ec2:GetManagedPrefixListEntries,
elasticloadbalancing:Describe*,
directconnect:Describe*,
tiros:CreateQuery,
tiros:GetQueryAnswer,
tiros:GetQueryExplanation

Update

ec2:CreateTags,
ec2:Describe*,
ec2:DeleteTags

List

ec2:Describe*

Delete

ec2:DeleteNetworkInsightsAnalysis,
ec2:DeleteTags