PacketHeaderStatementRequestProperty Struct
Describes a packet header statement.
| Source | |
|---|---|
| Type last changed |
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 packetHeaderStatementRequestProperty: ec2.CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty = {
destinationAddresses: ['destinationAddresses'],
destinationPorts: ['destinationPorts'],
destinationPrefixLists: ['destinationPrefixLists'],
protocols: ['protocols'],
sourceAddresses: ['sourceAddresses'],
sourcePorts: ['sourcePorts'],
sourcePrefixLists: ['sourcePrefixLists'],
};
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
packet_header_statement_request_property = 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"]
)
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.*;
PacketHeaderStatementRequestProperty packetHeaderStatementRequestProperty = 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();
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 packetHeaderStatementRequestProperty = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
};
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"
packetHeaderStatementRequestProperty := &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"),
},
}
Properties
destinationAddressesoptionalstring[]destination_addressesoptionaltyping.List[str]destinationAddressesoptionalList<String>DestinationAddressesoptionalstring[]DestinationAddressesoptional*[]*string #The destination addresses.
destinationPortsoptionalstring[]destination_portsoptionaltyping.List[str]destinationPortsoptionalList<String>DestinationPortsoptionalstring[]DestinationPortsoptional*[]*string #The destination ports.
destinationPrefixListsoptionalstring[]destination_prefix_listsoptionaltyping.List[str]destinationPrefixListsoptionalList<String>DestinationPrefixListsoptionalstring[]DestinationPrefixListsoptional*[]*string #The destination prefix lists.
protocolsoptionalstring[]protocolsoptionaltyping.List[str]protocolsoptionalList<String>Protocolsoptionalstring[]Protocolsoptional*[]*string #The protocols.
sourceAddressesoptionalstring[]source_addressesoptionaltyping.List[str]sourceAddressesoptionalList<String>SourceAddressesoptionalstring[]SourceAddressesoptional*[]*string #The source addresses.
sourcePortsoptionalstring[]source_portsoptionaltyping.List[str]sourcePortsoptionalList<String>SourcePortsoptionalstring[]SourcePortsoptional*[]*string #The source ports.
sourcePrefixListsoptionalstring[]source_prefix_listsoptionaltyping.List[str]sourcePrefixListsoptionalList<String>SourcePrefixListsoptionalstring[]SourcePrefixListsoptional*[]*string #The source prefix lists.