# FirewallRuleTypeProperty

Firewall rule type union.

Exactly one member must be set. Mutually exclusive with FirewallDomainListId and DnsThreatProtection/ConfidenceThreshold.

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53resolver as route53resolver } from 'aws-cdk-lib';
const firewallRuleTypeProperty: route53resolver.CfnFirewallRuleGroup.FirewallRuleTypeProperty = {
  firewallAdvancedContentCategory: {
    category: 'category',
  },
  firewallAdvancedThreatCategory: {
    category: 'category',
  },
  partnerThreatProtection: {
    partner: 'partner',
  },
};
```

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_route53resolver as route53resolver

firewall_rule_type_property = route53resolver.CfnFirewallRuleGroup.FirewallRuleTypeProperty(
    firewall_advanced_content_category=route53resolver.CfnFirewallRuleGroup.FirewallAdvancedContentCategoryConfigProperty(
        category="category"
    ),
    firewall_advanced_threat_category=route53resolver.CfnFirewallRuleGroup.FirewallAdvancedThreatCategoryConfigProperty(
        category="category"
    ),
    partner_threat_protection=route53resolver.CfnFirewallRuleGroup.PartnerThreatProtectionConfigProperty(
        partner="partner"
    )
)
```

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.route53resolver.*;

FirewallRuleTypeProperty firewallRuleTypeProperty = FirewallRuleTypeProperty.builder()
        .firewallAdvancedContentCategory(FirewallAdvancedContentCategoryConfigProperty.builder()
                .category("category")
                .build())
        .firewallAdvancedThreatCategory(FirewallAdvancedThreatCategoryConfigProperty.builder()
                .category("category")
                .build())
        .partnerThreatProtection(PartnerThreatProtectionConfigProperty.builder()
                .partner("partner")
                .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.Route53Resolver;

var firewallRuleTypeProperty = new FirewallRuleTypeProperty {
    FirewallAdvancedContentCategory = new FirewallAdvancedContentCategoryConfigProperty {
        Category = "category"
    },
    FirewallAdvancedThreatCategory = new FirewallAdvancedThreatCategoryConfigProperty {
        Category = "category"
    },
    PartnerThreatProtection = new PartnerThreatProtectionConfigProperty {
        Partner = "partner"
    }
};
```

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"

firewallRuleTypeProperty := &FirewallRuleTypeProperty{
	FirewallAdvancedContentCategory: &FirewallAdvancedContentCategoryConfigProperty{
		Category: jsii.String("category"),
	},
	FirewallAdvancedThreatCategory: &FirewallAdvancedThreatCategoryConfigProperty{
		Category: jsii.String("category"),
	},
	PartnerThreatProtection: &PartnerThreatProtectionConfigProperty{
		Partner: jsii.String("partner"),
	},
}
```

## Properties

- `firewallAdvancedContentCategory`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFirewallRuleGroup.FirewallAdvancedContentCategoryConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53resolver.CfnFirewallRuleGroup.FirewallAdvancedContentCategoryConfigProperty.html) — Configuration for an advanced content category rule type.

- `firewallAdvancedThreatCategory`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFirewallRuleGroup.FirewallAdvancedThreatCategoryConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53resolver.CfnFirewallRuleGroup.FirewallAdvancedThreatCategoryConfigProperty.html) — Configuration for an advanced threat category rule type.

- `partnerThreatProtection`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFirewallRuleGroup.PartnerThreatProtectionConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53resolver.CfnFirewallRuleGroup.PartnerThreatProtectionConfigProperty.html) — Configuration for a partner threat protection rule type.
