# RuleVariablesProperty

Settings that are available for use in the rules in the rule group where this is defined.

- 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_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const ruleVariablesProperty: networkfirewall.CfnRuleGroup.RuleVariablesProperty = {
  ipSets: {
    ipSetsKey: {
      definition: ['definition'],
    },
  },
  portSets: {
    portSetsKey: {
      definition: ['definition'],
    },
  },
};
```

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

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

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

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"

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

- `ipSets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuleGroup.IPSetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.IPSetProperty.html) } — A list of IP addresses and address ranges, in CIDR notation.

- `portSets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuleGroup.PortSetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.PortSetProperty.html) } — A list of port ranges.
