Class FirewallRuleAction
(experimental) A Firewall Rule.
Inheritance
Namespace: Amazon.CDK.AWS.Route53Resolver
Assembly: Amazon.CDK.AWS.Route53Resolver.dll
Syntax (csharp)
public abstract class FirewallRuleAction : DeputyBase
Syntax (vb)
Public MustInherit Class FirewallRuleAction
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
FirewallDomainList myBlockList;
new FirewallRuleGroup(this, "RuleGroup", new FirewallRuleGroupProps {
Rules = new [] { new FirewallRule {
Priority = 10,
FirewallDomainList = myBlockList,
// block and reply with NODATA
Action = FirewallRuleAction.Block()
} }
});
Synopsis
Constructors
FirewallRuleAction() | |
FirewallRuleAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FirewallRuleAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Action | (experimental) 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 | (experimental) The way that you want DNS Firewall to block the request. |
Methods
Alert() | (experimental) Permit the request to go through but send an alert to the logs. |
Allow() | (experimental) Permit the request to go through. |
Block(DnsBlockResponse) | (experimental) Disallow the request. |
Constructors
FirewallRuleAction()
protected FirewallRuleAction()
Remarks
Stability: Experimental
FirewallRuleAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FirewallRuleAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FirewallRuleAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FirewallRuleAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Action
(experimental) The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
public abstract string Action { get; }
Property Value
System.String
Remarks
Stability: Experimental
BlockResponse
(experimental) The way that you want DNS Firewall to block the request.
public abstract DnsBlockResponse BlockResponse { get; }
Property Value
Remarks
Stability: Experimental
Methods
Alert()
(experimental) Permit the request to go through but send an alert to the logs.
public static FirewallRuleAction Alert()
Returns
Remarks
Stability: Experimental
Allow()
(experimental) Permit the request to go through.
public static FirewallRuleAction Allow()
Returns
Remarks
Stability: Experimental
Block(DnsBlockResponse)
(experimental) Disallow the request.
public static FirewallRuleAction Block(DnsBlockResponse response = null)
Parameters
- response DnsBlockResponse
The way that you want DNS Firewall to block the request.
Returns
Remarks
Stability: Experimental