PolicyVariablesProperty Struct
Contains variables that you can use to override default Suricata settings in your firewall policy.
| 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 policyVariablesProperty: networkfirewall.CfnFirewallPolicy.PolicyVariablesProperty = {
ruleVariables: {
ruleVariablesKey: {
definition: ['definition'],
},
},
};
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
policy_variables_property = networkfirewall.CfnFirewallPolicy.PolicyVariablesProperty(
rule_variables={
"rule_variables_key": {
"definition": ["definition"]
}
}
)
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.*;
PolicyVariablesProperty policyVariablesProperty = PolicyVariablesProperty.builder()
.ruleVariables(Map.of(
"ruleVariablesKey", Map.of(
"definition", List.of("definition"))))
.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 policyVariablesProperty = new PolicyVariablesProperty {
RuleVariables = new Dictionary<string, object> {
{ "ruleVariablesKey", new Dictionary<string, string[]?> {
{ "definition", new [] { "definition" } }
} }
}
};
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"
policyVariablesProperty := &PolicyVariablesProperty{
RuleVariables: map[string]interface{}{
"ruleVariablesKey": map[string][]*string{
"definition": []*string{
jsii.String("definition"),
},
},
},
}
Properties
ruleVariablesoptionalIResolvable | { [key: string]: IResolvable | CfnFirewallPolicy.IPSetProperty }rule_variablesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, IPSetProperty]]]ruleVariablesoptionalIResolvableRuleVariablesoptionalIResolvableRuleVariablesoptionalinterface{} #The IPv4 or IPv6 addresses in CIDR notation to use for the Suricata `HOME_NET` variable.
notes
If your firewall uses an inspection VPC, you might want to override the HOME_NET variable with the CIDRs of your home networks. If you don't override HOME_NET with your own CIDRs, Network Firewall by default uses the CIDR of your inspection VPC.