TCPFlagFieldProperty
Struct External
TCP flags and masks to inspect packets for. This is used in the match attributes specification.
For example:
"TCPFlags": [ { "Flags": [ "ECE", "SYN" ], "Masks": [ "SYN", "ECE" ] } ]
| 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_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const tCPFlagFieldProperty: networkfirewall.CfnRuleGroup.TCPFlagFieldProperty = {
flags: ['flags'],
// the properties below are optional
masks: ['masks'],
};
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_networkfirewall as networkfirewall
t_cp_flag_field_property = networkfirewall.CfnRuleGroup.TCPFlagFieldProperty(
flags=["flags"],
# the properties below are optional
masks=["masks"]
)
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.networkfirewall.*;
TCPFlagFieldProperty tCPFlagFieldProperty = TCPFlagFieldProperty.builder()
.flags(List.of("flags"))
// the properties below are optional
.masks(List.of("masks"))
.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.NetworkFirewall;
var tCPFlagFieldProperty = new TCPFlagFieldProperty {
Flags = new [] { "flags" },
// the properties below are optional
Masks = new [] { "masks" }
};
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"
tCPFlagFieldProperty := &TCPFlagFieldProperty{
Flags: []*string{
jsii.String("flags"),
},
// the properties below are optional
Masks: []*string{
jsii.String("masks"),
},
}
Properties
Used in conjunction with the `Masks` setting to define the flags that must be set and flags that must not be set in order for the packet to match.
notes
This setting can only specify values that are also specified in the Masks setting.
For the flags that are specified in the masks setting, the following must be true for the packet to match:
- The ones that are set in this flags setting must be set in the packet.
- The ones that are not set in this flags setting must also not be set in the packet.
masksoptionalstring[]masksoptionaltyping.List[str]masksoptionalList<String>Masksoptionalstring[]Masksoptional*[]*string #The set of flags to consider in the inspection.
To inspect all flags in the valid values list, leave this with no setting.