# AWS::Shield Construct Library

---

![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)

> All classes with the `Cfn` prefix in this module ([CFN Resources]) are always stable and safe to use.
>
> [CFN Resources]: https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib

---

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as shield from 'aws-cdk-lib/aws-shield';
```

Python:

```python
import aws_cdk.aws_shield as shield
```

Java:

```java
import software.amazon.awscdk.services.shield.*;
```

C#:

```csharp
using Amazon.CDK.AWS.Shield;
```

Go:

```go
import shield "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for Shield construct libraries](https://constructs.dev/search?q=shield)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::Shield resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Shield.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::Shield](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Shield.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnDRTAccess`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnDRTAccess.html) Construct (L1) Provides permissions for the AWS Shield Advanced Shield response team (SRT) to access your account and your resource protections, to help you mitigate potential distributed denial of service (DDoS) attacks.
- [`CfnProactiveEngagement`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProactiveEngagement.html) Construct (L1) Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
- [`CfnProtection`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProtection.html) Construct (L1) Enables AWS Shield Advanced for a specific AWS resource.
- [`CfnProtectionGroup`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProtectionGroup.html) Construct (L1) Creates a grouping of protected resources so they can be handled as a collective.

### Structs

- [`CfnDRTAccessProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnDRTAccessProps.html) Struct Properties for defining a `CfnDRTAccess`.
- [`CfnProactiveEngagement.EmergencyContactProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProactiveEngagement.EmergencyContactProperty.html) Struct Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.
- [`CfnProactiveEngagementProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProactiveEngagementProps.html) Struct Properties for defining a `CfnProactiveEngagement`.
- [`CfnProtection.ActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProtection.ActionProperty.html) 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.
- [`CfnProtection.ApplicationLayerAutomaticResponseConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProtection.ApplicationLayerAutomaticResponseConfigurationProperty.html) Struct The automatic application layer DDoS mitigation settings for a `Protection` .
- [`CfnProtectionGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProtectionGroupProps.html) Struct Properties for defining a `CfnProtectionGroup`.
- [`CfnProtectionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_shield.CfnProtectionProps.html) Struct Properties for defining a `CfnProtection`.
