@aws-cdk_aws-route53resolver-alpha.FirewallRuleAction

class FirewallRuleAction ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Route53Resolver.Alpha.FirewallRuleAction
Gogithub.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2#FirewallRuleAction
Javasoftware.amazon.awscdk.services.route53resolver.alpha.FirewallRuleAction
Pythonaws_cdk.aws_route53resolver_alpha.FirewallRuleAction
TypeScript (source)@aws-cdk/aws-route53resolver-alpha ยป FirewallRuleAction

A Firewall Rule.

Example

declare const myBlockList: route53resolver.FirewallDomainList;
new route53resolver.FirewallRuleGroup(this, 'RuleGroup', {
  rules: [
    {
      priority: 10,
      firewallDomainList: myBlockList,
      // block and reply with NODATA
      action: route53resolver.FirewallRuleAction.block(),
    },
  ],
});

Initializer

new FirewallRuleAction()

Properties

NameTypeDescription
action๐Ÿ”นstringThe action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
blockResponse?๐Ÿ”นDnsBlockResponseThe way that you want DNS Firewall to block the request.

action๐Ÿ”น

Type: string

The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.


blockResponse?๐Ÿ”น

Type: DnsBlockResponse (optional)

The way that you want DNS Firewall to block the request.

Methods

NameDescription
static alert()๐Ÿ”นPermit the request to go through but send an alert to the logs.
static allow()๐Ÿ”นPermit the request to go through.
static block(response?)๐Ÿ”นDisallow the request.

static alert()๐Ÿ”น

public static alert(): FirewallRuleAction

Returns

  • FirewallRuleAction

Permit the request to go through but send an alert to the logs.


static allow()๐Ÿ”น

public static allow(): FirewallRuleAction

Returns

  • FirewallRuleAction

Permit the request to go through.


static block(response?)๐Ÿ”น

public static block(response?: DnsBlockResponse): FirewallRuleAction

Parameters

  • response DnsBlockResponse โ€” The way that you want DNS Firewall to block the request.

Returns

  • FirewallRuleAction

Disallow the request.