Class: AWSCDK::Shield::CfnProtection::ApplicationLayerAutomaticResponseConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
shield/cfn_protection.rb

Overview

The automatic application layer DDoS mitigation settings for a 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.

If you use CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the guidance for the AWS::WAFv2::WebACL resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, status:) ⇒ ApplicationLayerAutomaticResponseConfigurationProperty

Returns a new instance of ApplicationLayerAutomaticResponseConfigurationProperty.

Parameters:

  • action (AWSCDK::IResolvable, AWSCDK::Shield::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.

  • status (String)

    Indicates whether automatic application layer DDoS mitigation is enabled for the protection.



662
663
664
665
666
667
# File 'shield/cfn_protection.rb', line 662

def initialize(action:, status:)
  @action = action.is_a?(Hash) ? ::AWSCDK::Shield::CfnProtection::ActionProperty.new(**action.transform_keys(&:to_sym)) : action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zaGllbGQuQ2ZuUHJvdGVjdGlvbi5BY3Rpb25Qcm9wZXJ0eSJ9XX19")), "action")
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status")
end

Instance Attribute Details

#actionAWSCDK::IResolvable, AWSCDK::Shield::CfnProtection::ActionProperty (readonly)

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.



675
676
677
# File 'shield/cfn_protection.rb', line 675

def action
  @action
end

#statusString (readonly)

Indicates whether automatic application layer DDoS mitigation is enabled for the protection.



680
681
682
# File 'shield/cfn_protection.rb', line 680

def status
  @status
end

Class Method Details

.jsii_propertiesObject



682
683
684
685
686
687
# File 'shield/cfn_protection.rb', line 682

def self.jsii_properties
  {
    :action => "action",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



689
690
691
692
693
694
695
696
# File 'shield/cfn_protection.rb', line 689

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "status" => @status,
  })
  result.compact
end