AnalysisPacketHeaderProperty Struct
Describes a header.
Reflects any changes made by a component as traffic passes through. The fields of an inbound header are null except for the first component of a path.
| 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 analysisPacketHeaderProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty = {
destinationAddresses: ['destinationAddresses'],
destinationPortRanges: [{
from: 123,
to: 123,
}],
protocol: 'protocol',
sourceAddresses: ['sourceAddresses'],
sourcePortRanges: [{
from: 123,
to: 123,
}],
};
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
analysis_packet_header_property = ec2.CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty(
destination_addresses=["destinationAddresses"],
destination_port_ranges=[ec2.CfnNetworkInsightsAnalysis.PortRangeProperty(
from=123,
to=123
)],
protocol="protocol",
source_addresses=["sourceAddresses"],
source_port_ranges=[ec2.CfnNetworkInsightsAnalysis.PortRangeProperty(
from=123,
to=123
)]
)
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.*;
AnalysisPacketHeaderProperty analysisPacketHeaderProperty = AnalysisPacketHeaderProperty.builder()
.destinationAddresses(List.of("destinationAddresses"))
.destinationPortRanges(List.of(PortRangeProperty.builder()
.from(123)
.to(123)
.build()))
.protocol("protocol")
.sourceAddresses(List.of("sourceAddresses"))
.sourcePortRanges(List.of(PortRangeProperty.builder()
.from(123)
.to(123)
.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 analysisPacketHeaderProperty = new AnalysisPacketHeaderProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPortRanges = new [] { new PortRangeProperty {
From = 123,
To = 123
} },
Protocol = "protocol",
SourceAddresses = new [] { "sourceAddresses" },
SourcePortRanges = new [] { new PortRangeProperty {
From = 123,
To = 123
} }
};
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"
analysisPacketHeaderProperty := &AnalysisPacketHeaderProperty{
DestinationAddresses: []*string{
jsii.String("destinationAddresses"),
},
DestinationPortRanges: []interface{}{
&PortRangeProperty{
From: jsii.Number(123),
To: jsii.Number(123),
},
},
Protocol: jsii.String("protocol"),
SourceAddresses: []*string{
jsii.String("sourceAddresses"),
},
SourcePortRanges: []interface{}{
&PortRangeProperty{
From: jsii.Number(123),
To: jsii.Number(123),
},
},
}
Properties
destinationAddressesoptionalstring[]destination_addressesoptionaltyping.List[str]destinationAddressesoptionalList<String>DestinationAddressesoptionalstring[]DestinationAddressesoptional*[]*string #The destination addresses.
destinationPortRangesoptionalIResolvable | IResolvable | CfnNetworkInsightsAnalysis.destination_port_rangesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PortRangeProperty]]]destinationPortRangesoptionalIResolvableDestinationPortRangesoptionalIResolvableDestinationPortRangesoptionalinterface{} #The destination port ranges.
protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #The protocol.
sourceAddressesoptionalstring[]source_addressesoptionaltyping.List[str]sourceAddressesoptionalList<String>SourceAddressesoptionalstring[]SourceAddressesoptional*[]*string #The source addresses.
sourcePortRangesoptionalIResolvable | IResolvable | CfnNetworkInsightsAnalysis.source_port_rangesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PortRangeProperty]]]sourcePortRangesoptionalIResolvableSourcePortRangesoptionalIResolvableSourcePortRangesoptionalinterface{} #The source port ranges.