Class CfnProtection.Builder

java.lang.Object
software.amazon.awscdk.services.shield.CfnProtection.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProtection>
Enclosing class:
CfnProtection

@Stability(Stable) public static final class CfnProtection.Builder extends Object implements software.amazon.jsii.Builder<CfnProtection>
A fluent builder for CfnProtection.
  • Method Details

    • create

      @Stability(Stable) public static CfnProtection.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnProtection.Builder.
    • name

      @Stability(Stable) public CfnProtection.Builder name(String name)
      The name of the protection.

      For example, My CloudFront distributions .

      Parameters:
      name - The name of the protection. This parameter is required.
      Returns:
      this
    • resourceArn

      @Stability(Stable) public CfnProtection.Builder resourceArn(String resourceArn)
      The ARN (Amazon Resource Name) of the AWS resource that is protected.

      Parameters:
      resourceArn - The ARN (Amazon Resource Name) of the AWS resource that is protected. This parameter is required.
      Returns:
      this
    • applicationLayerAutomaticResponseConfiguration

      @Stability(Stable) public CfnProtection.Builder applicationLayerAutomaticResponseConfiguration(IResolvable applicationLayerAutomaticResponseConfiguration)
      The automatic application layer DDoS mitigation settings for the protection.

      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.

      Parameters:
      applicationLayerAutomaticResponseConfiguration - The automatic application layer DDoS mitigation settings for the protection. This parameter is required.
      Returns:
      this
    • applicationLayerAutomaticResponseConfiguration

      @Stability(Stable) public CfnProtection.Builder applicationLayerAutomaticResponseConfiguration(CfnProtection.ApplicationLayerAutomaticResponseConfigurationProperty applicationLayerAutomaticResponseConfiguration)
      The automatic application layer DDoS mitigation settings for the protection.

      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.

      Parameters:
      applicationLayerAutomaticResponseConfiguration - The automatic application layer DDoS mitigation settings for the protection. This parameter is required.
      Returns:
      this
    • healthCheckArns

      @Stability(Stable) public CfnProtection.Builder healthCheckArns(List<String> healthCheckArns)
      The ARN (Amazon Resource Name) of the health check to associate with the protection.

      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 .

      Parameters:
      healthCheckArns - The ARN (Amazon Resource Name) of the health check to associate with the protection. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnProtection.Builder tags(List<? extends CfnTag> tags)
      Key:value pairs associated with an AWS resource.

      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.

      Parameters:
      tags - Key:value pairs associated with an AWS resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnProtection build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnProtection>
      Returns:
      a newly built instance of CfnProtection.