ActionProperty Struct
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.
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.
| 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_shield as shield } from 'aws-cdk-lib';
declare const block: any;
declare const count: any;
const actionProperty: shield.CfnProtection.ActionProperty = {
block: block,
count: count,
};
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_shield as shield
# block: Any
# count: Any
action_property = shield.CfnProtection.ActionProperty(
block=block,
count=count
)
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.shield.*;
Object block;
Object count;
ActionProperty actionProperty = ActionProperty.builder()
.block(block)
.count(count)
.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.Shield;
var block;
var count;
var actionProperty = new ActionProperty {
Block = block,
Count = count
};
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"
var block interface{}
var count interface{}
actionProperty := &ActionProperty{
Block: block,
Count: count,
}
Properties
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF `Block` action.
You must specify exactly one action, either Block or Count .
Example JSON: { "Block": {} }
Example YAML: Block: {}
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF `Count` action.
You must specify exactly one action, either Block or Count .
Example JSON: { "Count": {} }
Example YAML: Count: {}