Class CfnProtectionProps
Properties for defining a CfnProtection
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Shield
Assembly: Amazon.CDK.AWS.Shield.dll
Syntax (csharp)
public class CfnProtectionProps : Object, ICfnProtectionProps
Syntax (vb)
Public Class CfnProtectionProps
Inherits Object
Implements ICfnProtectionProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-shield-protection.html
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 cfnProtectionProps = new CfnProtectionProps {
Name = "name",
ResourceArn = "resourceArn",
// the properties below are optional
ApplicationLayerAutomaticResponseConfiguration = new ApplicationLayerAutomaticResponseConfigurationProperty {
Action = new ActionProperty {
Block = block,
Count = count
},
Status = "status"
},
HealthCheckArns = new [] { "healthCheckArns" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnProtectionProps() |
Properties
ApplicationLayerAutomaticResponseConfiguration | The automatic application layer DDoS mitigation settings for the protection. |
HealthCheckArns | The ARN (Amazon Resource Name) of the health check to associate with the protection. |
Name | The name of the protection. |
ResourceArn | The ARN (Amazon Resource Name) of the AWS resource that is protected. |
Tags | Key:value pairs associated with an AWS resource. |
Constructors
CfnProtectionProps()
public CfnProtectionProps()
Properties
ApplicationLayerAutomaticResponseConfiguration
The automatic application layer DDoS mitigation settings for the protection.
public object ApplicationLayerAutomaticResponseConfiguration { get; set; }
Property Value
System.Object
Remarks
This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.
HealthCheckArns
The ARN (Amazon Resource Name) of the health check to associate with the protection.
public string[] HealthCheckArns { get; set; }
Property Value
System.String[]
Remarks
Health-based detection provides improved responsiveness and accuracy in attack detection and mitigation.
You can use this option with any resource type except for Route 53 hosted zones.
For more information, see Configuring health-based detection using health checks in the AWS Shield Advanced Developer Guide .
Name
The name of the protection.
public string Name { get; set; }
Property Value
System.String
Remarks
For example, My CloudFront distributions
.
ResourceArn
The ARN (Amazon Resource Name) of the AWS resource that is protected.
public string ResourceArn { get; set; }
Property Value
System.String
Remarks
Tags
Key:value pairs associated with an AWS resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
To modify tags on existing resources, use the AWS Shield Advanced APIs or command line interface. With AWS CloudFormation , you can only add tags to resources during resource creation.