published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
Provides a Network Insights Access Scope resource. Part of the “Network Access Analyzer” service in the AWS VPC console.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.NetworkInsightsAccessScope("example", {matchPaths: [{
source: {
resourceStatement: {
resourceTypes: ["AWS::EC2::NetworkInterface"],
},
},
destination: {
resourceStatement: {
resourceTypes: ["AWS::EC2::InternetGateway"],
},
},
}]});
import pulumi
import pulumi_aws as aws
example = aws.ec2.NetworkInsightsAccessScope("example", match_paths=[{
"source": {
"resource_statement": {
"resource_types": ["AWS::EC2::NetworkInterface"],
},
},
"destination": {
"resource_statement": {
"resource_types": ["AWS::EC2::InternetGateway"],
},
},
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewNetworkInsightsAccessScope(ctx, "example", &ec2.NetworkInsightsAccessScopeArgs{
MatchPaths: ec2.NetworkInsightsAccessScopeMatchPathArray{
&ec2.NetworkInsightsAccessScopeMatchPathArgs{
Source: &ec2.NetworkInsightsAccessScopeMatchPathSourceArgs{
ResourceStatement: &ec2.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("AWS::EC2::NetworkInterface"),
},
},
},
Destination: &ec2.NetworkInsightsAccessScopeMatchPathDestinationArgs{
ResourceStatement: &ec2.NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("AWS::EC2::InternetGateway"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2.NetworkInsightsAccessScope("example", new()
{
MatchPaths = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathArgs
{
Source = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourceArgs
{
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs
{
ResourceTypes = new[]
{
"AWS::EC2::NetworkInterface",
},
},
},
Destination = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathDestinationArgs
{
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs
{
ResourceTypes = new[]
{
"AWS::EC2::InternetGateway",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.NetworkInsightsAccessScope;
import com.pulumi.aws.ec2.NetworkInsightsAccessScopeArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathSourceArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathDestinationArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new NetworkInsightsAccessScope("example", NetworkInsightsAccessScopeArgs.builder()
.matchPaths(NetworkInsightsAccessScopeMatchPathArgs.builder()
.source(NetworkInsightsAccessScopeMatchPathSourceArgs.builder()
.resourceStatement(NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs.builder()
.resourceTypes("AWS::EC2::NetworkInterface")
.build())
.build())
.destination(NetworkInsightsAccessScopeMatchPathDestinationArgs.builder()
.resourceStatement(NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs.builder()
.resourceTypes("AWS::EC2::InternetGateway")
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: aws:ec2:NetworkInsightsAccessScope
properties:
matchPaths:
- source:
resourceStatement:
resourceTypes:
- AWS::EC2::NetworkInterface
destination:
resourceStatement:
resourceTypes:
- AWS::EC2::InternetGateway
With Exclude Paths
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.NetworkInsightsAccessScope("example", {
matchPaths: [{
source: {
resourceStatement: {
resourceTypes: ["AWS::EC2::NetworkInterface"],
},
},
}],
excludePaths: [{
source: {
resourceStatement: {
resourceTypes: ["AWS::EC2::InternetGateway"],
},
},
throughResources: [{
resourceStatement: {
resourceTypes: ["AWS::EC2::NatGateway"],
},
}],
}],
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.NetworkInsightsAccessScope("example",
match_paths=[{
"source": {
"resource_statement": {
"resource_types": ["AWS::EC2::NetworkInterface"],
},
},
}],
exclude_paths=[{
"source": {
"resource_statement": {
"resource_types": ["AWS::EC2::InternetGateway"],
},
},
"through_resources": [{
"resource_statement": {
"resource_types": ["AWS::EC2::NatGateway"],
},
}],
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewNetworkInsightsAccessScope(ctx, "example", &ec2.NetworkInsightsAccessScopeArgs{
MatchPaths: ec2.NetworkInsightsAccessScopeMatchPathArray{
&ec2.NetworkInsightsAccessScopeMatchPathArgs{
Source: &ec2.NetworkInsightsAccessScopeMatchPathSourceArgs{
ResourceStatement: &ec2.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("AWS::EC2::NetworkInterface"),
},
},
},
},
},
ExcludePaths: ec2.NetworkInsightsAccessScopeExcludePathArray{
&ec2.NetworkInsightsAccessScopeExcludePathArgs{
Source: &ec2.NetworkInsightsAccessScopeExcludePathSourceArgs{
ResourceStatement: &ec2.NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("AWS::EC2::InternetGateway"),
},
},
},
ThroughResources: ec2.NetworkInsightsAccessScopeExcludePathThroughResourceArray{
&ec2.NetworkInsightsAccessScopeExcludePathThroughResourceArgs{
ResourceStatement: &ec2.NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("AWS::EC2::NatGateway"),
},
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2.NetworkInsightsAccessScope("example", new()
{
MatchPaths = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathArgs
{
Source = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourceArgs
{
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs
{
ResourceTypes = new[]
{
"AWS::EC2::NetworkInterface",
},
},
},
},
},
ExcludePaths = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathArgs
{
Source = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathSourceArgs
{
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs
{
ResourceTypes = new[]
{
"AWS::EC2::InternetGateway",
},
},
},
ThroughResources = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathThroughResourceArgs
{
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs
{
ResourceTypes = new[]
{
"AWS::EC2::NatGateway",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.NetworkInsightsAccessScope;
import com.pulumi.aws.ec2.NetworkInsightsAccessScopeArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathSourceArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeExcludePathArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeExcludePathSourceArgs;
import com.pulumi.aws.ec2.inputs.NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new NetworkInsightsAccessScope("example", NetworkInsightsAccessScopeArgs.builder()
.matchPaths(NetworkInsightsAccessScopeMatchPathArgs.builder()
.source(NetworkInsightsAccessScopeMatchPathSourceArgs.builder()
.resourceStatement(NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs.builder()
.resourceTypes("AWS::EC2::NetworkInterface")
.build())
.build())
.build())
.excludePaths(NetworkInsightsAccessScopeExcludePathArgs.builder()
.source(NetworkInsightsAccessScopeExcludePathSourceArgs.builder()
.resourceStatement(NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs.builder()
.resourceTypes("AWS::EC2::InternetGateway")
.build())
.build())
.throughResources(NetworkInsightsAccessScopeExcludePathThroughResourceArgs.builder()
.resourceStatement(NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs.builder()
.resourceTypes("AWS::EC2::NatGateway")
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: aws:ec2:NetworkInsightsAccessScope
properties:
matchPaths:
- source:
resourceStatement:
resourceTypes:
- AWS::EC2::NetworkInterface
excludePaths:
- source:
resourceStatement:
resourceTypes:
- AWS::EC2::InternetGateway
throughResources:
- resourceStatement:
resourceTypes:
- AWS::EC2::NatGateway
Create NetworkInsightsAccessScope Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkInsightsAccessScope(name: string, args?: NetworkInsightsAccessScopeArgs, opts?: CustomResourceOptions);@overload
def NetworkInsightsAccessScope(resource_name: str,
args: Optional[NetworkInsightsAccessScopeArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkInsightsAccessScope(resource_name: str,
opts: Optional[ResourceOptions] = None,
exclude_paths: Optional[Sequence[NetworkInsightsAccessScopeExcludePathArgs]] = None,
match_paths: Optional[Sequence[NetworkInsightsAccessScopeMatchPathArgs]] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewNetworkInsightsAccessScope(ctx *Context, name string, args *NetworkInsightsAccessScopeArgs, opts ...ResourceOption) (*NetworkInsightsAccessScope, error)public NetworkInsightsAccessScope(string name, NetworkInsightsAccessScopeArgs? args = null, CustomResourceOptions? opts = null)
public NetworkInsightsAccessScope(String name, NetworkInsightsAccessScopeArgs args)
public NetworkInsightsAccessScope(String name, NetworkInsightsAccessScopeArgs args, CustomResourceOptions options)
type: aws:ec2:NetworkInsightsAccessScope
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkInsightsAccessScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkInsightsAccessScopeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkInsightsAccessScopeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkInsightsAccessScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkInsightsAccessScopeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkInsightsAccessScopeResource = new Aws.Ec2.NetworkInsightsAccessScope("networkInsightsAccessScopeResource", new()
{
ExcludePaths = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathArgs
{
Destination = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathDestinationArgs
{
PacketHeaderStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathDestinationPacketHeaderStatementArgs
{
DestinationAddresses = new[]
{
"string",
},
DestinationPorts = new[]
{
"string",
},
DestinationPrefixLists = new[]
{
"string",
},
Protocols = new[]
{
"string",
},
SourceAddresses = new[]
{
"string",
},
SourcePorts = new[]
{
"string",
},
SourcePrefixLists = new[]
{
"string",
},
},
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathDestinationResourceStatementArgs
{
ResourceTypes = new[]
{
"string",
},
Resources = new[]
{
"string",
},
},
},
Source = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathSourceArgs
{
PacketHeaderStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathSourcePacketHeaderStatementArgs
{
DestinationAddresses = new[]
{
"string",
},
DestinationPorts = new[]
{
"string",
},
DestinationPrefixLists = new[]
{
"string",
},
Protocols = new[]
{
"string",
},
SourceAddresses = new[]
{
"string",
},
SourcePorts = new[]
{
"string",
},
SourcePrefixLists = new[]
{
"string",
},
},
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs
{
ResourceTypes = new[]
{
"string",
},
Resources = new[]
{
"string",
},
},
},
ThroughResources = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathThroughResourceArgs
{
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs
{
ResourceTypes = new[]
{
"string",
},
Resources = new[]
{
"string",
},
},
},
},
},
},
MatchPaths = new[]
{
new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathArgs
{
Destination = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathDestinationArgs
{
PacketHeaderStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathDestinationPacketHeaderStatementArgs
{
DestinationAddresses = new[]
{
"string",
},
DestinationPorts = new[]
{
"string",
},
DestinationPrefixLists = new[]
{
"string",
},
Protocols = new[]
{
"string",
},
SourceAddresses = new[]
{
"string",
},
SourcePorts = new[]
{
"string",
},
SourcePrefixLists = new[]
{
"string",
},
},
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs
{
ResourceTypes = new[]
{
"string",
},
Resources = new[]
{
"string",
},
},
},
Source = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourceArgs
{
PacketHeaderStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourcePacketHeaderStatementArgs
{
DestinationAddresses = new[]
{
"string",
},
DestinationPorts = new[]
{
"string",
},
DestinationPrefixLists = new[]
{
"string",
},
Protocols = new[]
{
"string",
},
SourceAddresses = new[]
{
"string",
},
SourcePorts = new[]
{
"string",
},
SourcePrefixLists = new[]
{
"string",
},
},
ResourceStatement = new Aws.Ec2.Inputs.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs
{
ResourceTypes = new[]
{
"string",
},
Resources = new[]
{
"string",
},
},
},
},
},
Region = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := ec2.NewNetworkInsightsAccessScope(ctx, "networkInsightsAccessScopeResource", &ec2.NetworkInsightsAccessScopeArgs{
ExcludePaths: ec2.NetworkInsightsAccessScopeExcludePathArray{
&ec2.NetworkInsightsAccessScopeExcludePathArgs{
Destination: &ec2.NetworkInsightsAccessScopeExcludePathDestinationArgs{
PacketHeaderStatement: &ec2.NetworkInsightsAccessScopeExcludePathDestinationPacketHeaderStatementArgs{
DestinationAddresses: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPorts: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
SourceAddresses: pulumi.StringArray{
pulumi.String("string"),
},
SourcePorts: pulumi.StringArray{
pulumi.String("string"),
},
SourcePrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
},
ResourceStatement: &ec2.NetworkInsightsAccessScopeExcludePathDestinationResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Source: &ec2.NetworkInsightsAccessScopeExcludePathSourceArgs{
PacketHeaderStatement: &ec2.NetworkInsightsAccessScopeExcludePathSourcePacketHeaderStatementArgs{
DestinationAddresses: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPorts: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
SourceAddresses: pulumi.StringArray{
pulumi.String("string"),
},
SourcePorts: pulumi.StringArray{
pulumi.String("string"),
},
SourcePrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
},
ResourceStatement: &ec2.NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ThroughResources: ec2.NetworkInsightsAccessScopeExcludePathThroughResourceArray{
&ec2.NetworkInsightsAccessScopeExcludePathThroughResourceArgs{
ResourceStatement: &ec2.NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
},
MatchPaths: ec2.NetworkInsightsAccessScopeMatchPathArray{
&ec2.NetworkInsightsAccessScopeMatchPathArgs{
Destination: &ec2.NetworkInsightsAccessScopeMatchPathDestinationArgs{
PacketHeaderStatement: &ec2.NetworkInsightsAccessScopeMatchPathDestinationPacketHeaderStatementArgs{
DestinationAddresses: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPorts: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
SourceAddresses: pulumi.StringArray{
pulumi.String("string"),
},
SourcePorts: pulumi.StringArray{
pulumi.String("string"),
},
SourcePrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
},
ResourceStatement: &ec2.NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Source: &ec2.NetworkInsightsAccessScopeMatchPathSourceArgs{
PacketHeaderStatement: &ec2.NetworkInsightsAccessScopeMatchPathSourcePacketHeaderStatementArgs{
DestinationAddresses: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPorts: pulumi.StringArray{
pulumi.String("string"),
},
DestinationPrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
SourceAddresses: pulumi.StringArray{
pulumi.String("string"),
},
SourcePorts: pulumi.StringArray{
pulumi.String("string"),
},
SourcePrefixLists: pulumi.StringArray{
pulumi.String("string"),
},
},
ResourceStatement: &ec2.NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs{
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkInsightsAccessScopeResource = new NetworkInsightsAccessScope("networkInsightsAccessScopeResource", NetworkInsightsAccessScopeArgs.builder()
.excludePaths(NetworkInsightsAccessScopeExcludePathArgs.builder()
.destination(NetworkInsightsAccessScopeExcludePathDestinationArgs.builder()
.packetHeaderStatement(NetworkInsightsAccessScopeExcludePathDestinationPacketHeaderStatementArgs.builder()
.destinationAddresses("string")
.destinationPorts("string")
.destinationPrefixLists("string")
.protocols("string")
.sourceAddresses("string")
.sourcePorts("string")
.sourcePrefixLists("string")
.build())
.resourceStatement(NetworkInsightsAccessScopeExcludePathDestinationResourceStatementArgs.builder()
.resourceTypes("string")
.resources("string")
.build())
.build())
.source(NetworkInsightsAccessScopeExcludePathSourceArgs.builder()
.packetHeaderStatement(NetworkInsightsAccessScopeExcludePathSourcePacketHeaderStatementArgs.builder()
.destinationAddresses("string")
.destinationPorts("string")
.destinationPrefixLists("string")
.protocols("string")
.sourceAddresses("string")
.sourcePorts("string")
.sourcePrefixLists("string")
.build())
.resourceStatement(NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs.builder()
.resourceTypes("string")
.resources("string")
.build())
.build())
.throughResources(NetworkInsightsAccessScopeExcludePathThroughResourceArgs.builder()
.resourceStatement(NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs.builder()
.resourceTypes("string")
.resources("string")
.build())
.build())
.build())
.matchPaths(NetworkInsightsAccessScopeMatchPathArgs.builder()
.destination(NetworkInsightsAccessScopeMatchPathDestinationArgs.builder()
.packetHeaderStatement(NetworkInsightsAccessScopeMatchPathDestinationPacketHeaderStatementArgs.builder()
.destinationAddresses("string")
.destinationPorts("string")
.destinationPrefixLists("string")
.protocols("string")
.sourceAddresses("string")
.sourcePorts("string")
.sourcePrefixLists("string")
.build())
.resourceStatement(NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs.builder()
.resourceTypes("string")
.resources("string")
.build())
.build())
.source(NetworkInsightsAccessScopeMatchPathSourceArgs.builder()
.packetHeaderStatement(NetworkInsightsAccessScopeMatchPathSourcePacketHeaderStatementArgs.builder()
.destinationAddresses("string")
.destinationPorts("string")
.destinationPrefixLists("string")
.protocols("string")
.sourceAddresses("string")
.sourcePorts("string")
.sourcePrefixLists("string")
.build())
.resourceStatement(NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs.builder()
.resourceTypes("string")
.resources("string")
.build())
.build())
.build())
.region("string")
.tags(Map.of("string", "string"))
.build());
network_insights_access_scope_resource = aws.ec2.NetworkInsightsAccessScope("networkInsightsAccessScopeResource",
exclude_paths=[{
"destination": {
"packet_header_statement": {
"destination_addresses": ["string"],
"destination_ports": ["string"],
"destination_prefix_lists": ["string"],
"protocols": ["string"],
"source_addresses": ["string"],
"source_ports": ["string"],
"source_prefix_lists": ["string"],
},
"resource_statement": {
"resource_types": ["string"],
"resources": ["string"],
},
},
"source": {
"packet_header_statement": {
"destination_addresses": ["string"],
"destination_ports": ["string"],
"destination_prefix_lists": ["string"],
"protocols": ["string"],
"source_addresses": ["string"],
"source_ports": ["string"],
"source_prefix_lists": ["string"],
},
"resource_statement": {
"resource_types": ["string"],
"resources": ["string"],
},
},
"through_resources": [{
"resource_statement": {
"resource_types": ["string"],
"resources": ["string"],
},
}],
}],
match_paths=[{
"destination": {
"packet_header_statement": {
"destination_addresses": ["string"],
"destination_ports": ["string"],
"destination_prefix_lists": ["string"],
"protocols": ["string"],
"source_addresses": ["string"],
"source_ports": ["string"],
"source_prefix_lists": ["string"],
},
"resource_statement": {
"resource_types": ["string"],
"resources": ["string"],
},
},
"source": {
"packet_header_statement": {
"destination_addresses": ["string"],
"destination_ports": ["string"],
"destination_prefix_lists": ["string"],
"protocols": ["string"],
"source_addresses": ["string"],
"source_ports": ["string"],
"source_prefix_lists": ["string"],
},
"resource_statement": {
"resource_types": ["string"],
"resources": ["string"],
},
},
}],
region="string",
tags={
"string": "string",
})
const networkInsightsAccessScopeResource = new aws.ec2.NetworkInsightsAccessScope("networkInsightsAccessScopeResource", {
excludePaths: [{
destination: {
packetHeaderStatement: {
destinationAddresses: ["string"],
destinationPorts: ["string"],
destinationPrefixLists: ["string"],
protocols: ["string"],
sourceAddresses: ["string"],
sourcePorts: ["string"],
sourcePrefixLists: ["string"],
},
resourceStatement: {
resourceTypes: ["string"],
resources: ["string"],
},
},
source: {
packetHeaderStatement: {
destinationAddresses: ["string"],
destinationPorts: ["string"],
destinationPrefixLists: ["string"],
protocols: ["string"],
sourceAddresses: ["string"],
sourcePorts: ["string"],
sourcePrefixLists: ["string"],
},
resourceStatement: {
resourceTypes: ["string"],
resources: ["string"],
},
},
throughResources: [{
resourceStatement: {
resourceTypes: ["string"],
resources: ["string"],
},
}],
}],
matchPaths: [{
destination: {
packetHeaderStatement: {
destinationAddresses: ["string"],
destinationPorts: ["string"],
destinationPrefixLists: ["string"],
protocols: ["string"],
sourceAddresses: ["string"],
sourcePorts: ["string"],
sourcePrefixLists: ["string"],
},
resourceStatement: {
resourceTypes: ["string"],
resources: ["string"],
},
},
source: {
packetHeaderStatement: {
destinationAddresses: ["string"],
destinationPorts: ["string"],
destinationPrefixLists: ["string"],
protocols: ["string"],
sourceAddresses: ["string"],
sourcePorts: ["string"],
sourcePrefixLists: ["string"],
},
resourceStatement: {
resourceTypes: ["string"],
resources: ["string"],
},
},
}],
region: "string",
tags: {
string: "string",
},
});
type: aws:ec2:NetworkInsightsAccessScope
properties:
excludePaths:
- destination:
packetHeaderStatement:
destinationAddresses:
- string
destinationPorts:
- string
destinationPrefixLists:
- string
protocols:
- string
sourceAddresses:
- string
sourcePorts:
- string
sourcePrefixLists:
- string
resourceStatement:
resourceTypes:
- string
resources:
- string
source:
packetHeaderStatement:
destinationAddresses:
- string
destinationPorts:
- string
destinationPrefixLists:
- string
protocols:
- string
sourceAddresses:
- string
sourcePorts:
- string
sourcePrefixLists:
- string
resourceStatement:
resourceTypes:
- string
resources:
- string
throughResources:
- resourceStatement:
resourceTypes:
- string
resources:
- string
matchPaths:
- destination:
packetHeaderStatement:
destinationAddresses:
- string
destinationPorts:
- string
destinationPrefixLists:
- string
protocols:
- string
sourceAddresses:
- string
sourcePorts:
- string
sourcePrefixLists:
- string
resourceStatement:
resourceTypes:
- string
resources:
- string
source:
packetHeaderStatement:
destinationAddresses:
- string
destinationPorts:
- string
destinationPrefixLists:
- string
protocols:
- string
sourceAddresses:
- string
sourcePorts:
- string
sourcePrefixLists:
- string
resourceStatement:
resourceTypes:
- string
resources:
- string
region: string
tags:
string: string
NetworkInsightsAccessScope Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkInsightsAccessScope resource accepts the following input properties:
- Exclude
Paths List<NetworkInsights Access Scope Exclude Path> - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - Match
Paths List<NetworkInsights Access Scope Match Path> Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Exclude
Paths []NetworkInsights Access Scope Exclude Path Args - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - Match
Paths []NetworkInsights Access Scope Match Path Args Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- exclude
Paths List<NetworkInsights Access Scope Exclude Path> - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match
Paths List<NetworkInsights Access Scope Match Path> Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- exclude
Paths NetworkInsights Access Scope Exclude Path[] - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match
Paths NetworkInsights Access Scope Match Path[] Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- exclude_
paths Sequence[NetworkInsights Access Scope Exclude Path Args] - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match_
paths Sequence[NetworkInsights Access Scope Match Path Args] Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- exclude
Paths List<Property Map> - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match
Paths List<Property Map> Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkInsightsAccessScope resource produces the following output properties:
Look up Existing NetworkInsightsAccessScope Resource
Get an existing NetworkInsightsAccessScope resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkInsightsAccessScopeState, opts?: CustomResourceOptions): NetworkInsightsAccessScope@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
exclude_paths: Optional[Sequence[NetworkInsightsAccessScopeExcludePathArgs]] = None,
match_paths: Optional[Sequence[NetworkInsightsAccessScopeMatchPathArgs]] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> NetworkInsightsAccessScopefunc GetNetworkInsightsAccessScope(ctx *Context, name string, id IDInput, state *NetworkInsightsAccessScopeState, opts ...ResourceOption) (*NetworkInsightsAccessScope, error)public static NetworkInsightsAccessScope Get(string name, Input<string> id, NetworkInsightsAccessScopeState? state, CustomResourceOptions? opts = null)public static NetworkInsightsAccessScope get(String name, Output<String> id, NetworkInsightsAccessScopeState state, CustomResourceOptions options)resources: _: type: aws:ec2:NetworkInsightsAccessScope get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the Network Insights Access Scope.
- Exclude
Paths List<NetworkInsights Access Scope Exclude Path> - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - Match
Paths List<NetworkInsights Access Scope Match Path> Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the Network Insights Access Scope.
- Exclude
Paths []NetworkInsights Access Scope Exclude Path Args - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - Match
Paths []NetworkInsights Access Scope Match Path Args Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the Network Insights Access Scope.
- exclude
Paths List<NetworkInsights Access Scope Exclude Path> - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match
Paths List<NetworkInsights Access Scope Match Path> Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the Network Insights Access Scope.
- exclude
Paths NetworkInsights Access Scope Exclude Path[] - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match
Paths NetworkInsights Access Scope Match Path[] Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the Network Insights Access Scope.
- exclude_
paths Sequence[NetworkInsights Access Scope Exclude Path Args] - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match_
paths Sequence[NetworkInsights Access Scope Match Path Args] Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the Network Insights Access Scope.
- exclude
Paths List<Property Map> - Set of access scope path statements to exclude.
See
excludePathsbelow for details. - match
Paths List<Property Map> Set of access scope path statements to match. At least one must be specified. See
matchPathsbelow for details.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the resource.
If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Supporting Types
NetworkInsightsAccessScopeExcludePath, NetworkInsightsAccessScopeExcludePathArgs
- Destination
Network
Insights Access Scope Exclude Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - Source
Network
Insights Access Scope Exclude Path Source - Path statement for the source.
See
sourceanddestinationbelow for details. - Through
Resources List<NetworkInsights Access Scope Exclude Path Through Resource> - Path statement for through resources.
See
throughResourcesbelow for details.
- Destination
Network
Insights Access Scope Exclude Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - Source
Network
Insights Access Scope Exclude Path Source - Path statement for the source.
See
sourceanddestinationbelow for details. - Through
Resources []NetworkInsights Access Scope Exclude Path Through Resource - Path statement for through resources.
See
throughResourcesbelow for details.
- destination
Network
Insights Access Scope Exclude Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - source
Network
Insights Access Scope Exclude Path Source - Path statement for the source.
See
sourceanddestinationbelow for details. - through
Resources List<NetworkInsights Access Scope Exclude Path Through Resource> - Path statement for through resources.
See
throughResourcesbelow for details.
- destination
Network
Insights Access Scope Exclude Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - source
Network
Insights Access Scope Exclude Path Source - Path statement for the source.
See
sourceanddestinationbelow for details. - through
Resources NetworkInsights Access Scope Exclude Path Through Resource[] - Path statement for through resources.
See
throughResourcesbelow for details.
- destination
Network
Insights Access Scope Exclude Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - source
Network
Insights Access Scope Exclude Path Source - Path statement for the source.
See
sourceanddestinationbelow for details. - through_
resources Sequence[NetworkInsights Access Scope Exclude Path Through Resource] - Path statement for through resources.
See
throughResourcesbelow for details.
- destination Property Map
- Path statement for the destination.
See
sourceanddestinationbelow for details. - source Property Map
- Path statement for the source.
See
sourceanddestinationbelow for details. - through
Resources List<Property Map> - Path statement for through resources.
See
throughResourcesbelow for details.
NetworkInsightsAccessScopeExcludePathDestination, NetworkInsightsAccessScopeExcludePathDestinationArgs
- Packet
Header NetworkStatement Insights Access Scope Exclude Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Exclude Path Destination Resource Statement
- Packet
Header NetworkStatement Insights Access Scope Exclude Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Exclude Path Destination Resource Statement
- packet
Header NetworkStatement Insights Access Scope Exclude Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Exclude Path Destination Resource Statement
- packet
Header NetworkStatement Insights Access Scope Exclude Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Exclude Path Destination Resource Statement
- packet_
header_ Networkstatement Insights Access Scope Exclude Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource_
statement NetworkInsights Access Scope Exclude Path Destination Resource Statement
- packet
Header Property MapStatement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement Property Map
NetworkInsightsAccessScopeExcludePathDestinationPacketHeaderStatement, NetworkInsightsAccessScopeExcludePathDestinationPacketHeaderStatementArgs
- Destination
Addresses List<string> - Set of destination addresses.
- Destination
Ports List<string> - Set of destination ports.
- Destination
Prefix List<string>Lists - Set of destination prefix lists.
- Protocols List<string>
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses List<string> - Set of source addresses.
- Source
Ports List<string> - Set of source ports.
- Source
Prefix List<string>Lists - Set of source prefix lists.
- Destination
Addresses []string - Set of destination addresses.
- Destination
Ports []string - Set of destination ports.
- Destination
Prefix []stringLists - Set of destination prefix lists.
- Protocols []string
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses []string - Set of source addresses.
- Source
Ports []string - Set of source ports.
- Source
Prefix []stringLists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
- destination
Addresses string[] - Set of destination addresses.
- destination
Ports string[] - Set of destination ports.
- destination
Prefix string[]Lists - Set of destination prefix lists.
- protocols string[]
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses string[] - Set of source addresses.
- source
Ports string[] - Set of source ports.
- source
Prefix string[]Lists - Set of source prefix lists.
- destination_
addresses Sequence[str] - Set of destination addresses.
- destination_
ports Sequence[str] - Set of destination ports.
- destination_
prefix_ Sequence[str]lists - Set of destination prefix lists.
- protocols Sequence[str]
- Set of protocols.
Valid values are
tcpandudp. - source_
addresses Sequence[str] - Set of source addresses.
- source_
ports Sequence[str] - Set of source ports.
- source_
prefix_ Sequence[str]lists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
NetworkInsightsAccessScopeExcludePathDestinationResourceStatement, NetworkInsightsAccessScopeExcludePathDestinationResourceStatementArgs
- Resource
Types List<string> - List of resource types.
Cannot be specified together with
resources. - Resources List<string>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- Resource
Types []string - List of resource types.
Cannot be specified together with
resources. - Resources []string
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types string[] - List of resource types.
Cannot be specified together with
resources. - resources string[]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource_
types Sequence[str] - List of resource types.
Cannot be specified together with
resources. - resources Sequence[str]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
NetworkInsightsAccessScopeExcludePathSource, NetworkInsightsAccessScopeExcludePathSourceArgs
- Packet
Header NetworkStatement Insights Access Scope Exclude Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Exclude Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- Packet
Header NetworkStatement Insights Access Scope Exclude Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Exclude Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet
Header NetworkStatement Insights Access Scope Exclude Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Exclude Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet
Header NetworkStatement Insights Access Scope Exclude Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Exclude Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet_
header_ Networkstatement Insights Access Scope Exclude Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource_
statement NetworkInsights Access Scope Exclude Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet
Header Property MapStatement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement Property Map - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
NetworkInsightsAccessScopeExcludePathSourcePacketHeaderStatement, NetworkInsightsAccessScopeExcludePathSourcePacketHeaderStatementArgs
- Destination
Addresses List<string> - Set of destination addresses.
- Destination
Ports List<string> - Set of destination ports.
- Destination
Prefix List<string>Lists - Set of destination prefix lists.
- Protocols List<string>
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses List<string> - Set of source addresses.
- Source
Ports List<string> - Set of source ports.
- Source
Prefix List<string>Lists - Set of source prefix lists.
- Destination
Addresses []string - Set of destination addresses.
- Destination
Ports []string - Set of destination ports.
- Destination
Prefix []stringLists - Set of destination prefix lists.
- Protocols []string
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses []string - Set of source addresses.
- Source
Ports []string - Set of source ports.
- Source
Prefix []stringLists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
- destination
Addresses string[] - Set of destination addresses.
- destination
Ports string[] - Set of destination ports.
- destination
Prefix string[]Lists - Set of destination prefix lists.
- protocols string[]
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses string[] - Set of source addresses.
- source
Ports string[] - Set of source ports.
- source
Prefix string[]Lists - Set of source prefix lists.
- destination_
addresses Sequence[str] - Set of destination addresses.
- destination_
ports Sequence[str] - Set of destination ports.
- destination_
prefix_ Sequence[str]lists - Set of destination prefix lists.
- protocols Sequence[str]
- Set of protocols.
Valid values are
tcpandudp. - source_
addresses Sequence[str] - Set of source addresses.
- source_
ports Sequence[str] - Set of source ports.
- source_
prefix_ Sequence[str]lists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
NetworkInsightsAccessScopeExcludePathSourceResourceStatement, NetworkInsightsAccessScopeExcludePathSourceResourceStatementArgs
- Resource
Types List<string> - List of resource types.
Cannot be specified together with
resources. - Resources List<string>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- Resource
Types []string - List of resource types.
Cannot be specified together with
resources. - Resources []string
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types string[] - List of resource types.
Cannot be specified together with
resources. - resources string[]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource_
types Sequence[str] - List of resource types.
Cannot be specified together with
resources. - resources Sequence[str]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
NetworkInsightsAccessScopeExcludePathThroughResource, NetworkInsightsAccessScopeExcludePathThroughResourceArgs
- Resource
Statement NetworkInsights Access Scope Exclude Path Through Resource Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- Resource
Statement NetworkInsights Access Scope Exclude Path Through Resource Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- resource
Statement NetworkInsights Access Scope Exclude Path Through Resource Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- resource
Statement NetworkInsights Access Scope Exclude Path Through Resource Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- resource_
statement NetworkInsights Access Scope Exclude Path Through Resource Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- resource
Statement Property Map - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatement, NetworkInsightsAccessScopeExcludePathThroughResourceResourceStatementArgs
- Resource
Types List<string> - List of resource types.
Cannot be specified together with
resources. - Resources List<string>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- Resource
Types []string - List of resource types.
Cannot be specified together with
resources. - Resources []string
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types string[] - List of resource types.
Cannot be specified together with
resources. - resources string[]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource_
types Sequence[str] - List of resource types.
Cannot be specified together with
resources. - resources Sequence[str]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
NetworkInsightsAccessScopeMatchPath, NetworkInsightsAccessScopeMatchPathArgs
- Destination
Network
Insights Access Scope Match Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - Source
Network
Insights Access Scope Match Path Source - Path statement for the source.
See
sourceanddestinationbelow for details.
- Destination
Network
Insights Access Scope Match Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - Source
Network
Insights Access Scope Match Path Source - Path statement for the source.
See
sourceanddestinationbelow for details.
- destination
Network
Insights Access Scope Match Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - source
Network
Insights Access Scope Match Path Source - Path statement for the source.
See
sourceanddestinationbelow for details.
- destination
Network
Insights Access Scope Match Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - source
Network
Insights Access Scope Match Path Source - Path statement for the source.
See
sourceanddestinationbelow for details.
- destination
Network
Insights Access Scope Match Path Destination - Path statement for the destination.
See
sourceanddestinationbelow for details. - source
Network
Insights Access Scope Match Path Source - Path statement for the source.
See
sourceanddestinationbelow for details.
- destination Property Map
- Path statement for the destination.
See
sourceanddestinationbelow for details. - source Property Map
- Path statement for the source.
See
sourceanddestinationbelow for details.
NetworkInsightsAccessScopeMatchPathDestination, NetworkInsightsAccessScopeMatchPathDestinationArgs
- Packet
Header NetworkStatement Insights Access Scope Match Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Match Path Destination Resource Statement
- Packet
Header NetworkStatement Insights Access Scope Match Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Match Path Destination Resource Statement
- packet
Header NetworkStatement Insights Access Scope Match Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Match Path Destination Resource Statement
- packet
Header NetworkStatement Insights Access Scope Match Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Match Path Destination Resource Statement
- packet_
header_ Networkstatement Insights Access Scope Match Path Destination Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource_
statement NetworkInsights Access Scope Match Path Destination Resource Statement
- packet
Header Property MapStatement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement Property Map
NetworkInsightsAccessScopeMatchPathDestinationPacketHeaderStatement, NetworkInsightsAccessScopeMatchPathDestinationPacketHeaderStatementArgs
- Destination
Addresses List<string> - Set of destination addresses.
- Destination
Ports List<string> - Set of destination ports.
- Destination
Prefix List<string>Lists - Set of destination prefix lists.
- Protocols List<string>
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses List<string> - Set of source addresses.
- Source
Ports List<string> - Set of source ports.
- Source
Prefix List<string>Lists - Set of source prefix lists.
- Destination
Addresses []string - Set of destination addresses.
- Destination
Ports []string - Set of destination ports.
- Destination
Prefix []stringLists - Set of destination prefix lists.
- Protocols []string
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses []string - Set of source addresses.
- Source
Ports []string - Set of source ports.
- Source
Prefix []stringLists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
- destination
Addresses string[] - Set of destination addresses.
- destination
Ports string[] - Set of destination ports.
- destination
Prefix string[]Lists - Set of destination prefix lists.
- protocols string[]
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses string[] - Set of source addresses.
- source
Ports string[] - Set of source ports.
- source
Prefix string[]Lists - Set of source prefix lists.
- destination_
addresses Sequence[str] - Set of destination addresses.
- destination_
ports Sequence[str] - Set of destination ports.
- destination_
prefix_ Sequence[str]lists - Set of destination prefix lists.
- protocols Sequence[str]
- Set of protocols.
Valid values are
tcpandudp. - source_
addresses Sequence[str] - Set of source addresses.
- source_
ports Sequence[str] - Set of source ports.
- source_
prefix_ Sequence[str]lists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
NetworkInsightsAccessScopeMatchPathDestinationResourceStatement, NetworkInsightsAccessScopeMatchPathDestinationResourceStatementArgs
- Resource
Types List<string> - List of resource types.
Cannot be specified together with
resources. - Resources List<string>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- Resource
Types []string - List of resource types.
Cannot be specified together with
resources. - Resources []string
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types string[] - List of resource types.
Cannot be specified together with
resources. - resources string[]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource_
types Sequence[str] - List of resource types.
Cannot be specified together with
resources. - resources Sequence[str]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
NetworkInsightsAccessScopeMatchPathSource, NetworkInsightsAccessScopeMatchPathSourceArgs
- Packet
Header NetworkStatement Insights Access Scope Match Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Match Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- Packet
Header NetworkStatement Insights Access Scope Match Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - Resource
Statement NetworkInsights Access Scope Match Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet
Header NetworkStatement Insights Access Scope Match Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Match Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet
Header NetworkStatement Insights Access Scope Match Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement NetworkInsights Access Scope Match Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet_
header_ Networkstatement Insights Access Scope Match Path Source Packet Header Statement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource_
statement NetworkInsights Access Scope Match Path Source Resource Statement - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
- packet
Header Property MapStatement - Packet header statement.
See
packetHeaderStatementbelow for details. - resource
Statement Property Map - Resource statement.
Exactly one of
resourcesorresourceTypesmust be specified. SeeresourceStatementbelow for details.
NetworkInsightsAccessScopeMatchPathSourcePacketHeaderStatement, NetworkInsightsAccessScopeMatchPathSourcePacketHeaderStatementArgs
- Destination
Addresses List<string> - Set of destination addresses.
- Destination
Ports List<string> - Set of destination ports.
- Destination
Prefix List<string>Lists - Set of destination prefix lists.
- Protocols List<string>
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses List<string> - Set of source addresses.
- Source
Ports List<string> - Set of source ports.
- Source
Prefix List<string>Lists - Set of source prefix lists.
- Destination
Addresses []string - Set of destination addresses.
- Destination
Ports []string - Set of destination ports.
- Destination
Prefix []stringLists - Set of destination prefix lists.
- Protocols []string
- Set of protocols.
Valid values are
tcpandudp. - Source
Addresses []string - Set of source addresses.
- Source
Ports []string - Set of source ports.
- Source
Prefix []stringLists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
- destination
Addresses string[] - Set of destination addresses.
- destination
Ports string[] - Set of destination ports.
- destination
Prefix string[]Lists - Set of destination prefix lists.
- protocols string[]
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses string[] - Set of source addresses.
- source
Ports string[] - Set of source ports.
- source
Prefix string[]Lists - Set of source prefix lists.
- destination_
addresses Sequence[str] - Set of destination addresses.
- destination_
ports Sequence[str] - Set of destination ports.
- destination_
prefix_ Sequence[str]lists - Set of destination prefix lists.
- protocols Sequence[str]
- Set of protocols.
Valid values are
tcpandudp. - source_
addresses Sequence[str] - Set of source addresses.
- source_
ports Sequence[str] - Set of source ports.
- source_
prefix_ Sequence[str]lists - Set of source prefix lists.
- destination
Addresses List<String> - Set of destination addresses.
- destination
Ports List<String> - Set of destination ports.
- destination
Prefix List<String>Lists - Set of destination prefix lists.
- protocols List<String>
- Set of protocols.
Valid values are
tcpandudp. - source
Addresses List<String> - Set of source addresses.
- source
Ports List<String> - Set of source ports.
- source
Prefix List<String>Lists - Set of source prefix lists.
NetworkInsightsAccessScopeMatchPathSourceResourceStatement, NetworkInsightsAccessScopeMatchPathSourceResourceStatementArgs
- Resource
Types List<string> - List of resource types.
Cannot be specified together with
resources. - Resources List<string>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- Resource
Types []string - List of resource types.
Cannot be specified together with
resources. - Resources []string
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types string[] - List of resource types.
Cannot be specified together with
resources. - resources string[]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource_
types Sequence[str] - List of resource types.
Cannot be specified together with
resources. - resources Sequence[str]
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
- resource
Types List<String> - List of resource types.
Cannot be specified together with
resources. - resources List<String>
- List of resource ARNs.
Cannot be specified together with
resourceTypes.
Import
Identity Schema
Required
id- (String) ID of the Network Insights Access Scope.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import Network Insights Access Scopes using the id. For example:
$ pulumi import aws:ec2/networkInsightsAccessScope:NetworkInsightsAccessScope example nis-0a1b2c3d4e5f6g7h8
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Apr 30, 2026 by Pulumi
