network_insights_access_scopes
Creates, updates, deletes or gets a network_insights_access_scope
resource or lists network_insights_access_scopes
in a region
Overview
Name | network_insights_access_scopes |
Type | Resource |
Description | Resource schema for AWS::EC2::NetworkInsightsAccessScope |
Id | aws.ec2.network_insights_access_scopes |
Fields
Name | Datatype | Description |
---|---|---|
network_insights_access_scope_id | string | |
network_insights_access_scope_arn | string | |
created_date | string | |
updated_date | string | |
tags | array | |
match_paths | array | |
exclude_paths | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all network_insights_access_scopes
in a region.
SELECT
region,
network_insights_access_scope_id,
network_insights_access_scope_arn,
created_date,
updated_date,
tags,
match_paths,
exclude_paths
FROM aws.ec2.network_insights_access_scopes
WHERE region = 'us-east-1';
Gets all properties from an individual network_insights_access_scope
.
SELECT
region,
network_insights_access_scope_id,
network_insights_access_scope_arn,
created_date,
updated_date,
tags,
match_paths,
exclude_paths
FROM aws.ec2.network_insights_access_scopes
WHERE region = 'us-east-1' AND data__Identifier = '<NetworkInsightsAccessScopeId>';
INSERT
example
Use the following StackQL query and manifest file to create a new network_insights_access_scope
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.network_insights_access_scopes (
Tags,
MatchPaths,
ExcludePaths,
region
)
SELECT
'{{ Tags }}',
'{{ MatchPaths }}',
'{{ ExcludePaths }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.network_insights_access_scopes (
Tags,
MatchPaths,
ExcludePaths,
region
)
SELECT
'{{ Tags }}',
'{{ MatchPaths }}',
'{{ ExcludePaths }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: network_insights_access_scope
props:
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: MatchPaths
value:
- Source:
PacketHeaderStatement:
SourceAddresses:
- '{{ SourceAddresses[0] }}'
DestinationAddresses:
- '{{ DestinationAddresses[0] }}'
SourcePorts:
- '{{ SourcePorts[0] }}'
DestinationPorts:
- '{{ DestinationPorts[0] }}'
SourcePrefixLists:
- '{{ SourcePrefixLists[0] }}'
DestinationPrefixLists:
- '{{ DestinationPrefixLists[0] }}'
Protocols:
- '{{ Protocols[0] }}'
ResourceStatement:
Resources:
- '{{ Resources[0] }}'
ResourceTypes:
- '{{ ResourceTypes[0] }}'
Destination: null
ThroughResources:
- ResourceStatement: null
- name: ExcludePaths
value:
- null
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.network_insights_access_scopes
WHERE data__Identifier = '<NetworkInsightsAccessScopeId>'
AND region = 'us-east-1';
Permissions
To operate on the network_insights_access_scopes
resource, the following permissions are required:
Create
ec2:CreateNetworkInsightsAccessScope,
ec2:CreateTags,
tiros:CreateQuery
Read
ec2:DescribeNetworkInsightsAccessScopes,
ec2:GetNetworkInsightsAccessScopeContent
Update
ec2:DescribeNetworkInsightsAccessScopes,
ec2:GetNetworkInsightsAccessScopeContent,
ec2:CreateTags,
ec2:DeleteTags
Delete
ec2:DeleteNetworkInsightsAccessScope,
ec2:DeleteTags
List
ec2:DescribeNetworkInsightsAccessScopes