RuleVariablesProperty Struct
Settings that are available for use in the rules in the rule group where this is defined.
| 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 ruleVariablesProperty: networkfirewall.CfnRuleGroup.RuleVariablesProperty = {
ipSets: {
ipSetsKey: {
definition: ['definition'],
},
},
portSets: {
portSetsKey: {
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
rule_variables_property = networkfirewall.CfnRuleGroup.RuleVariablesProperty(
ip_sets={
"ip_sets_key": {
"definition": ["definition"]
}
},
port_sets={
"port_sets_key": networkfirewall.CfnRuleGroup.PortSetProperty(
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.*;
RuleVariablesProperty ruleVariablesProperty = RuleVariablesProperty.builder()
.ipSets(Map.of(
"ipSetsKey", Map.of(
"definition", List.of("definition"))))
.portSets(Map.of(
"portSetsKey", PortSetProperty.builder()
.definition(List.of("definition"))
.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.NetworkFirewall;
var ruleVariablesProperty = new RuleVariablesProperty {
IpSets = new Dictionary<string, object> {
{ "ipSetsKey", new Dictionary<string, string[]?> {
{ "definition", new [] { "definition" } }
} }
},
PortSets = new Dictionary<string, object> {
{ "portSetsKey", new PortSetProperty {
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"
ruleVariablesProperty := &RuleVariablesProperty{
IpSets: map[string]interface{}{
"ipSetsKey": map[string][]*string{
"definition": []*string{
jsii.String("definition"),
},
},
},
PortSets: map[string]interface{}{
"portSetsKey": &PortSetProperty{
"definition": []*string{
jsii.String("definition"),
},
},
},
}
Properties
ipSetsoptionalIResolvable | { [key: string]: IResolvable | CfnRuleGroup.IPSetProperty }ip_setsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, IPSetProperty]]]ipSetsoptionalIResolvableIpSetsoptionalIResolvableIpSetsoptionalinterface{} #A list of IP addresses and address ranges, in CIDR notation.
portSetsoptionalIResolvable | { [key: string]: IResolvable | CfnRuleGroup.PortSetProperty }port_setsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, PortSetProperty]]]portSetsoptionalIResolvablePortSetsoptionalIResolvablePortSetsoptionalinterface{} #A list of port ranges.