Skip to main content

network_insights_access_scopes

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

Overview

Namenetwork_insights_access_scopes
TypeResource
Idaws.ec2.network_insights_access_scopes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_datestringThe creation date.
network_insights_access_scope_arnstringThe Amazon Resource Name (ARN) of the Network Access Scope.
network_insights_access_scope_idstringThe ID of the Network Access Scope.
tagsstringThe tags.
updated_datestringThe last updated date.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_network_insights_access_scopesselectregionNetworkInsightsAccessScopeId, Filter, MaxResults, DryRun, NextTokenDescribes the specified Network Access Scopes.
create_network_insights_access_scopeinsertClientToken, regionMatchPath, ExcludePath, TagSpecification, DryRunCreates a Network Access Scope. Amazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams to verify that their networks on Amazon Web Services conform to their network security and governance objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.
delete_network_insights_access_scopedeleteNetworkInsightsAccessScopeId, regionDryRunDeletes the specified Network Access Scope.
delete_network_insights_access_scope_analysisdeleteNetworkInsightsAccessScopeAnalysisId, regionDryRunDeletes the specified Network Access Scope analysis.
start_network_insights_access_scope_analysisexecNetworkInsightsAccessScopeId, ClientToken, regionDryRun, TagSpecificationStarts analyzing the specified Network Access Scope.

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.
NetworkInsightsAccessScopeAnalysisIdstringThe ID of the Network Access Scope analysis.
NetworkInsightsAccessScopeIdstringThe ID of the Network Access Scope.
regionstringAWS region (default: us-east-1)
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.
ExcludePatharrayThe paths to exclude.
FilterarrayThere are no supported filters.
MatchPatharrayThe paths to match.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NetworkInsightsAccessScopeIdarrayThe IDs of the Network Access Scopes.
NextTokenstringThe token for the next page of results.
TagSpecificationarrayThe tags to apply.

SELECT examples

Describes the specified Network Access Scopes.

SELECT
created_date,
network_insights_access_scope_arn,
network_insights_access_scope_id,
tags,
updated_date
FROM aws.ec2.network_insights_access_scopes
WHERE region = '{{ region }}' -- required
AND NetworkInsightsAccessScopeId = '{{ NetworkInsightsAccessScopeId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND DryRun = '{{ DryRun }}'
AND NextToken = '{{ NextToken }}'
;

INSERT examples

Creates a Network Access Scope. Amazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams to verify that their networks on Amazon Web Services conform to their network security and governance objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.

INSERT INTO aws.ec2.network_insights_access_scopes (
ClientToken,
region,
MatchPath,
ExcludePath,
TagSpecification,
DryRun
)
SELECT
'{{ ClientToken }}',
'{{ region }}',
'{{ MatchPath }}',
'{{ ExcludePath }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
created_date,
network_insights_access_scope_arn,
network_insights_access_scope_id,
tags,
updated_date
;

DELETE examples

Deletes the specified Network Access Scope.

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

Lifecycle Methods

Starts analyzing the specified Network Access Scope.

EXEC aws.ec2.network_insights_access_scopes.start_network_insights_access_scope_analysis
@NetworkInsightsAccessScopeId='{{ NetworkInsightsAccessScopeId }}' --required,
@ClientToken='{{ ClientToken }}' --required,
@region='{{ region }}' --required,
@DryRun={{ DryRun }},
@TagSpecification='{{ TagSpecification }}'
;