# AnalysisPacketHeaderProperty

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: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    } }
};
```

Golang:

```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

- `destinationAddresses`: string[] — The destination addresses.

- `destinationPortRanges`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsAnalysis.PortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.PortRangeProperty.html)[] — The destination port ranges.

- `protocol`: string — The protocol.

- `sourceAddresses`: string[] — The source addresses.

- `sourcePortRanges`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsAnalysis.PortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.PortRangeProperty.html)[] — The source port ranges.
