PathStatementRequestProperty Struct
Describes a path statement.
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 pathStatementRequestProperty: ec2.CfnNetworkInsightsAccessScope.PathStatementRequestProperty = {
packetHeaderStatement: {
destinationAddresses: ['destinationAddresses'],
destinationPorts: ['destinationPorts'],
destinationPrefixLists: ['destinationPrefixLists'],
protocols: ['protocols'],
sourceAddresses: ['sourceAddresses'],
sourcePorts: ['sourcePorts'],
sourcePrefixLists: ['sourcePrefixLists'],
},
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
path_statement_request_property = 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"]
)
)
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.*;
PathStatementRequestProperty pathStatementRequestProperty = 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();
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 pathStatementRequestProperty = 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" }
}
};
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"
pathStatementRequestProperty := &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"),
},
},
}
Properties
packetHeaderStatementoptionalIResolvable | CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestPropertypacket_header_statementoptionaltyping.Union[IResolvable, PacketHeaderStatementRequestProperty]packetHeaderStatementoptionalIResolvablePacketHeaderStatementoptionalIResolvablePacketHeaderStatementoptionalinterface{}#The packet header statement.
resourceStatementoptionalIResolvable | CfnNetworkInsightsAccessScope.ResourceStatementRequestPropertyresource_statementoptionaltyping.Union[IResolvable, ResourceStatementRequestProperty]resourceStatementoptionalIResolvableResourceStatementoptionalIResolvableResourceStatementoptionalinterface{}#The resource statement.