FirewallRuleTypeProperty Struct
Firewall rule type union.
Exactly one member must be set. Mutually exclusive with FirewallDomainListId and DnsThreatProtection/ConfidenceThreshold.
| 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_route53resolver as route53resolver } from 'aws-cdk-lib';
const firewallRuleTypeProperty: route53resolver.CfnFirewallRuleGroup.FirewallRuleTypeProperty = {
firewallAdvancedContentCategory: {
category: 'category',
},
firewallAdvancedThreatCategory: {
category: 'category',
},
partnerThreatProtection: {
partner: 'partner',
},
};
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
// 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();
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"
}
};
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
firewallAdvancedContentCategoryoptionalIResolvable | CfnFirewallRuleGroup.firewall_advanced_content_categoryoptionaltyping.Union[IResolvable, FirewallAdvancedContentCategoryConfigProperty]firewallAdvancedContentCategoryoptionalIResolvableFirewallAdvancedContentCategoryoptionalIResolvableFirewallAdvancedContentCategoryoptionalinterface{} #Configuration for an advanced content category rule type.
firewallAdvancedThreatCategoryoptionalIResolvable | CfnFirewallRuleGroup.firewall_advanced_threat_categoryoptionaltyping.Union[IResolvable, FirewallAdvancedThreatCategoryConfigProperty]firewallAdvancedThreatCategoryoptionalIResolvableFirewallAdvancedThreatCategoryoptionalIResolvableFirewallAdvancedThreatCategoryoptionalinterface{} #Configuration for an advanced threat category rule type.
partnerThreatProtectionoptionalIResolvable | CfnFirewallRuleGroup.partner_threat_protectionoptionaltyping.Union[IResolvable, PartnerThreatProtectionConfigProperty]partnerThreatProtectionoptionalIResolvablePartnerThreatProtectionoptionalIResolvablePartnerThreatProtectionoptionalinterface{} #Configuration for a partner threat protection rule type.