Skip to content
v2.278.0

CfnFirewallRuleGroupProps Struct ​

Properties for defining a CfnFirewallRuleGroup.

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 cfnFirewallRuleGroupProps: route53resolver.CfnFirewallRuleGroupProps = {
  firewallRules: [{
    action: 'action',
    priority: 123,

    // the properties below are optional
    blockOverrideDnsType: 'blockOverrideDnsType',
    blockOverrideDomain: 'blockOverrideDomain',
    blockOverrideTtl: 123,
    blockResponse: 'blockResponse',
    confidenceThreshold: 'confidenceThreshold',
    dnsThreatProtection: 'dnsThreatProtection',
    firewallDomainListId: 'firewallDomainListId',
    firewallDomainRedirectionAction: 'firewallDomainRedirectionAction',
    firewallRuleType: {
      firewallAdvancedContentCategory: {
        category: 'category',
      },
      firewallAdvancedThreatCategory: {
        category: 'category',
      },
      partnerThreatProtection: {
        partner: 'partner',
      },
    },
    firewallThreatProtectionId: 'firewallThreatProtectionId',
    qtype: 'qtype',
    status: 'status',
  }],
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_firewall_rule_group_props = route53resolver.CfnFirewallRuleGroupProps(
    firewall_rules=[route53resolver.CfnFirewallRuleGroup.FirewallRuleProperty(
        action="action",
        priority=123,

        # the properties below are optional
        block_override_dns_type="blockOverrideDnsType",
        block_override_domain="blockOverrideDomain",
        block_override_ttl=123,
        block_response="blockResponse",
        confidence_threshold="confidenceThreshold",
        dns_threat_protection="dnsThreatProtection",
        firewall_domain_list_id="firewallDomainListId",
        firewall_domain_redirection_action="firewallDomainRedirectionAction",
        firewall_rule_type=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"
            )
        ),
        firewall_threat_protection_id="firewallThreatProtectionId",
        qtype="qtype",
        status="status"
    )],
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnFirewallRuleGroupProps cfnFirewallRuleGroupProps = CfnFirewallRuleGroupProps.builder()
        .firewallRules(List.of(FirewallRuleProperty.builder()
                .action("action")
                .priority(123)

                // the properties below are optional
                .blockOverrideDnsType("blockOverrideDnsType")
                .blockOverrideDomain("blockOverrideDomain")
                .blockOverrideTtl(123)
                .blockResponse("blockResponse")
                .confidenceThreshold("confidenceThreshold")
                .dnsThreatProtection("dnsThreatProtection")
                .firewallDomainListId("firewallDomainListId")
                .firewallDomainRedirectionAction("firewallDomainRedirectionAction")
                .firewallRuleType(FirewallRuleTypeProperty.builder()
                        .firewallAdvancedContentCategory(FirewallAdvancedContentCategoryConfigProperty.builder()
                                .category("category")
                                .build())
                        .firewallAdvancedThreatCategory(FirewallAdvancedThreatCategoryConfigProperty.builder()
                                .category("category")
                                .build())
                        .partnerThreatProtection(PartnerThreatProtectionConfigProperty.builder()
                                .partner("partner")
                                .build())
                        .build())
                .firewallThreatProtectionId("firewallThreatProtectionId")
                .qtype("qtype")
                .status("status")
                .build()))
        .name("name")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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 cfnFirewallRuleGroupProps = new CfnFirewallRuleGroupProps {
    FirewallRules = new [] { new FirewallRuleProperty {
        Action = "action",
        Priority = 123,

        // the properties below are optional
        BlockOverrideDnsType = "blockOverrideDnsType",
        BlockOverrideDomain = "blockOverrideDomain",
        BlockOverrideTtl = 123,
        BlockResponse = "blockResponse",
        ConfidenceThreshold = "confidenceThreshold",
        DnsThreatProtection = "dnsThreatProtection",
        FirewallDomainListId = "firewallDomainListId",
        FirewallDomainRedirectionAction = "firewallDomainRedirectionAction",
        FirewallRuleType = new FirewallRuleTypeProperty {
            FirewallAdvancedContentCategory = new FirewallAdvancedContentCategoryConfigProperty {
                Category = "category"
            },
            FirewallAdvancedThreatCategory = new FirewallAdvancedThreatCategoryConfigProperty {
                Category = "category"
            },
            PartnerThreatProtection = new PartnerThreatProtectionConfigProperty {
                Partner = "partner"
            }
        },
        FirewallThreatProtectionId = "firewallThreatProtectionId",
        Qtype = "qtype",
        Status = "status"
    } },
    Name = "name",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnFirewallRuleGroupProps := &CfnFirewallRuleGroupProps{
	FirewallRules: []interface{}{
		&FirewallRuleProperty{
			Action: jsii.String("action"),
			Priority: jsii.Number(123),

			// the properties below are optional
			BlockOverrideDnsType: jsii.String("blockOverrideDnsType"),
			BlockOverrideDomain: jsii.String("blockOverrideDomain"),
			BlockOverrideTtl: jsii.Number(123),
			BlockResponse: jsii.String("blockResponse"),
			ConfidenceThreshold: jsii.String("confidenceThreshold"),
			DnsThreatProtection: jsii.String("dnsThreatProtection"),
			FirewallDomainListId: jsii.String("firewallDomainListId"),
			FirewallDomainRedirectionAction: jsii.String("firewallDomainRedirectionAction"),
			FirewallRuleType: &FirewallRuleTypeProperty{
				FirewallAdvancedContentCategory: &FirewallAdvancedContentCategoryConfigProperty{
					Category: jsii.String("category"),
				},
				FirewallAdvancedThreatCategory: &FirewallAdvancedThreatCategoryConfigProperty{
					Category: jsii.String("category"),
				},
				PartnerThreatProtection: &PartnerThreatProtectionConfigProperty{
					Partner: jsii.String("partner"),
				},
			},
			FirewallThreatProtectionId: jsii.String("firewallThreatProtectionId"),
			Qtype: jsii.String("qtype"),
			Status: jsii.String("status"),
		},
	},
	Name: jsii.String("name"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

firewallRulesoptionalIResolvable | IResolvable | CfnFirewallRuleGroup.FirewallRuleProperty[]firewall_rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FirewallRuleProperty]]]firewallRulesoptionalIResolvableFirewallRulesoptionalIResolvableFirewallRulesoptionalinterface{} #
A list of the rules that you have defined.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the rule group.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of the tag keys and values that you want to associate with the rule group.