AccessScopePathRequestProperty Struct
Describes a path.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const accessScopePathRequestProperty: ec2.CfnNetworkInsightsAccessScope.AccessScopePathRequestProperty = {
destination: {
packetHeaderStatement: {
destinationAddresses: ['destinationAddresses'],
destinationPorts: ['destinationPorts'],
destinationPrefixLists: ['destinationPrefixLists'],
protocols: ['protocols'],
sourceAddresses: ['sourceAddresses'],
sourcePorts: ['sourcePorts'],
sourcePrefixLists: ['sourcePrefixLists'],
},
resourceStatement: {
resources: ['resources'],
resourceTypes: ['resourceTypes'],
},
},
source: {
packetHeaderStatement: {
destinationAddresses: ['destinationAddresses'],
destinationPorts: ['destinationPorts'],
destinationPrefixLists: ['destinationPrefixLists'],
protocols: ['protocols'],
sourceAddresses: ['sourceAddresses'],
sourcePorts: ['sourcePorts'],
sourcePrefixLists: ['sourcePrefixLists'],
},
resourceStatement: {
resources: ['resources'],
resourceTypes: ['resourceTypes'],
},
},
throughResources: [{
resourceStatement: {
resources: ['resources'],
resourceTypes: ['resourceTypes'],
},
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
access_scope_path_request_property = ec2.CfnNetworkInsightsAccessScope.AccessScopePathRequestProperty(
destination=ec2.CfnNetworkInsightsAccessScope.PathStatementRequestProperty(
packet_header_statement=ec2.CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty(
destination_addresses=["destinationAddresses"],
destination_ports=["destinationPorts"],
destination_prefix_lists=["destinationPrefixLists"],
protocols=["protocols"],
source_addresses=["sourceAddresses"],
source_ports=["sourcePorts"],
source_prefix_lists=["sourcePrefixLists"]
),
resource_statement=ec2.CfnNetworkInsightsAccessScope.ResourceStatementRequestProperty(
resources=["resources"],
resource_types=["resourceTypes"]
)
),
source=ec2.CfnNetworkInsightsAccessScope.PathStatementRequestProperty(
packet_header_statement=ec2.CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty(
destination_addresses=["destinationAddresses"],
destination_ports=["destinationPorts"],
destination_prefix_lists=["destinationPrefixLists"],
protocols=["protocols"],
source_addresses=["sourceAddresses"],
source_ports=["sourcePorts"],
source_prefix_lists=["sourcePrefixLists"]
),
resource_statement=ec2.CfnNetworkInsightsAccessScope.ResourceStatementRequestProperty(
resources=["resources"],
resource_types=["resourceTypes"]
)
),
through_resources=[ec2.CfnNetworkInsightsAccessScope.ThroughResourcesStatementRequestProperty(
resource_statement=ec2.CfnNetworkInsightsAccessScope.ResourceStatementRequestProperty(
resources=["resources"],
resource_types=["resourceTypes"]
)
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
AccessScopePathRequestProperty accessScopePathRequestProperty = AccessScopePathRequestProperty.builder()
.destination(PathStatementRequestProperty.builder()
.packetHeaderStatement(PacketHeaderStatementRequestProperty.builder()
.destinationAddresses(List.of("destinationAddresses"))
.destinationPorts(List.of("destinationPorts"))
.destinationPrefixLists(List.of("destinationPrefixLists"))
.protocols(List.of("protocols"))
.sourceAddresses(List.of("sourceAddresses"))
.sourcePorts(List.of("sourcePorts"))
.sourcePrefixLists(List.of("sourcePrefixLists"))
.build())
.resourceStatement(ResourceStatementRequestProperty.builder()
.resources(List.of("resources"))
.resourceTypes(List.of("resourceTypes"))
.build())
.build())
.source(PathStatementRequestProperty.builder()
.packetHeaderStatement(PacketHeaderStatementRequestProperty.builder()
.destinationAddresses(List.of("destinationAddresses"))
.destinationPorts(List.of("destinationPorts"))
.destinationPrefixLists(List.of("destinationPrefixLists"))
.protocols(List.of("protocols"))
.sourceAddresses(List.of("sourceAddresses"))
.sourcePorts(List.of("sourcePorts"))
.sourcePrefixLists(List.of("sourcePrefixLists"))
.build())
.resourceStatement(ResourceStatementRequestProperty.builder()
.resources(List.of("resources"))
.resourceTypes(List.of("resourceTypes"))
.build())
.build())
.throughResources(List.of(ThroughResourcesStatementRequestProperty.builder()
.resourceStatement(ResourceStatementRequestProperty.builder()
.resources(List.of("resources"))
.resourceTypes(List.of("resourceTypes"))
.build())
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var accessScopePathRequestProperty = new AccessScopePathRequestProperty {
Destination = new PathStatementRequestProperty {
PacketHeaderStatement = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
},
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
},
Source = new PathStatementRequestProperty {
PacketHeaderStatement = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
},
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
},
ThroughResources = new [] { new ThroughResourcesStatementRequestProperty {
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
accessScopePathRequestProperty := &AccessScopePathRequestProperty{
Destination: &PathStatementRequestProperty{
PacketHeaderStatement: &PacketHeaderStatementRequestProperty{
DestinationAddresses: []*string{
jsii.String("destinationAddresses"),
},
DestinationPorts: []*string{
jsii.String("destinationPorts"),
},
DestinationPrefixLists: []*string{
jsii.String("destinationPrefixLists"),
},
Protocols: []*string{
jsii.String("protocols"),
},
SourceAddresses: []*string{
jsii.String("sourceAddresses"),
},
SourcePorts: []*string{
jsii.String("sourcePorts"),
},
SourcePrefixLists: []*string{
jsii.String("sourcePrefixLists"),
},
},
ResourceStatement: &ResourceStatementRequestProperty{
Resources: []*string{
jsii.String("resources"),
},
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
},
},
Source: &PathStatementRequestProperty{
PacketHeaderStatement: &PacketHeaderStatementRequestProperty{
DestinationAddresses: []*string{
jsii.String("destinationAddresses"),
},
DestinationPorts: []*string{
jsii.String("destinationPorts"),
},
DestinationPrefixLists: []*string{
jsii.String("destinationPrefixLists"),
},
Protocols: []*string{
jsii.String("protocols"),
},
SourceAddresses: []*string{
jsii.String("sourceAddresses"),
},
SourcePorts: []*string{
jsii.String("sourcePorts"),
},
SourcePrefixLists: []*string{
jsii.String("sourcePrefixLists"),
},
},
ResourceStatement: &ResourceStatementRequestProperty{
Resources: []*string{
jsii.String("resources"),
},
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
},
},
ThroughResources: []interface{}{
&ThroughResourcesStatementRequestProperty{
ResourceStatement: &ResourceStatementRequestProperty{
Resources: []*string{
jsii.String("resources"),
},
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
},
},
},
}
Properties
destinationoptionalIResolvable | CfnNetworkInsightsAccessScope.PathStatementRequestPropertydestinationoptionaltyping.Union[IResolvable, PathStatementRequestProperty]destinationoptionalIResolvableDestinationoptionalIResolvableDestinationoptionalinterface{}#The destination.
sourceoptionalIResolvable | CfnNetworkInsightsAccessScope.PathStatementRequestPropertysourceoptionaltyping.Union[IResolvable, PathStatementRequestProperty]sourceoptionalIResolvableSourceoptionalIResolvableSourceoptionalinterface{}#The source.
throughResourcesoptionalIResolvable | IResolvable | CfnNetworkInsightsAccessScope.ThroughResourcesStatementRequestProperty[]through_resourcesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ThroughResourcesStatementRequestProperty]]]throughResourcesoptionalIResolvableThroughResourcesoptionalIResolvableThroughResourcesoptionalinterface{}#The through resources.