network_insights_access_scope_analyses
Creates, updates, deletes or gets a network_insights_access_scope_analysis resource or lists network_insights_access_scope_analyses in a region
Overview
| Name | network_insights_access_scope_analyses |
| Type | Resource |
| Description | Resource schema for AWS::EC2::NetworkInsightsAccessScopeAnalysis |
| Id | awscc.ec2.network_insights_access_scope_analyses |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
network_insights_access_scope_analysis_id | string | |
network_insights_access_scope_analysis_arn | string | |
network_insights_access_scope_id | string | |
status | string | |
status_message | string | |
start_date | string | |
end_date | string | |
findings_found | string | |
analyzed_eni_count | integer | |
tags | array | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
network_insights_access_scope_analysis_id | string | |
region | string | AWS region. |
For more information, see AWS::EC2::NetworkInsightsAccessScopeAnalysis.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | network_insights_access_scope_analyses | INSERT | NetworkInsightsAccessScopeId, region |
delete_resource | network_insights_access_scope_analyses | DELETE | Identifier, region |
update_resource | network_insights_access_scope_analyses | UPDATE | Identifier, PatchDocument, region |
list_resources | network_insights_access_scope_analyses_list_only | SELECT | region |
get_resource | network_insights_access_scope_analyses | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual network_insights_access_scope_analysis.
SELECT
region,
network_insights_access_scope_analysis_id,
network_insights_access_scope_analysis_arn,
network_insights_access_scope_id,
status,
status_message,
start_date,
end_date,
findings_found,
analyzed_eni_count,
tags
FROM awscc.ec2.network_insights_access_scope_analyses
WHERE
region = 'us-east-1' AND
Identifier = '{{ network_insights_access_scope_analysis_id }}';
Lists all network_insights_access_scope_analyses in a region.
SELECT
region,
network_insights_access_scope_analysis_id
FROM awscc.ec2.network_insights_access_scope_analyses_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new network_insights_access_scope_analysis resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ec2.network_insights_access_scope_analyses (
NetworkInsightsAccessScopeId,
region
)
SELECT
'{{ network_insights_access_scope_id }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ec2.network_insights_access_scope_analyses (
NetworkInsightsAccessScopeId,
Tags,
region
)
SELECT
'{{ network_insights_access_scope_id }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: network_insights_access_scope_analysis
props:
- name: network_insights_access_scope_id
value: '{{ network_insights_access_scope_id }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a network_insights_access_scope_analysis resource, using stack-deploy.
/*+ update */
UPDATE awscc.ec2.network_insights_access_scope_analyses
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ network_insights_access_scope_analysis_id }}';
DELETE example
/*+ delete */
DELETE FROM awscc.ec2.network_insights_access_scope_analyses
WHERE
Identifier = '{{ network_insights_access_scope_analysis_id }}' AND
region = 'us-east-1';
Permissions
To operate on the network_insights_access_scope_analyses resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
ec2:CreateTags,
ec2:StartNetworkInsightsAccessScopeAnalysis,
ec2:GetTransitGatewayRouteTablePropagations,
ec2:Describe*,
elasticloadbalancing:Describe*,
directconnect:Describe*,
tiros:CreateQuery,
tiros:GetQueryAnswer,
tiros:GetQueryExplanation
ec2:DescribeNetworkInsightsAccessScopeAnalyses
ec2:DescribeNetworkInsightsAccessScopeAnalyses,
ec2:CreateTags,
ec2:DeleteTags
ec2:DeleteNetworkInsightsAccessScopeAnalysis,
ec2:DeleteTags
ec2:DescribeNetworkInsightsAccessScopeAnalyses