Class CfnProtection.ActionProperty
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Shield
Assembly: Amazon.CDK.AWS.Shield.dll
Syntax (csharp)
public class ActionProperty : Object, CfnProtection.IActionProperty
Syntax (vb)
Public Class ActionProperty
Inherits Object
Implements CfnProtection.IActionProperty
Remarks
You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Shield;
var block;
var count;
var actionProperty = new ActionProperty {
Block = block,
Count = count
};
Synopsis
Constructors
ActionProperty() |
Properties
Block | Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF |
Count | Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF |
Constructors
ActionProperty()
public ActionProperty()
Properties
Block
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block
action.
public object Block { get; set; }
Property Value
System.Object
Remarks
You must specify exactly one action, either Block
or Count
.
Example JSON: { "Block": {} }
Example YAML: Block: {}
Count
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count
action.
public object Count { get; set; }
Property Value
System.Object
Remarks
You must specify exactly one action, either Block
or Count
.
Example JSON: { "Count": {} }
Example YAML: Count: {}