Class: Aws::Shield::Types::ResponseAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb

Overview

Note:

When making an API call, you may pass ResponseAction data as a hash:

{
  block: {
  },
  count: {
  },
}

Specifies the action setting that Shield Advanced should use in the 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 WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#blockTypes::BlockAction

Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.

You must specify exactly one action, either Block or Count.

Returns:

  • (Types::BlockAction)


2077
2078
2079
2080
2081
2082
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 2077

class ResponseAction < Struct.new(
  :block,
  :count)
  SENSITIVE = []
  include Aws::Structure
end

#countTypes::CountAction

Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.

You must specify exactly one action, either Block or Count.

Returns:

  • (Types::CountAction)


2077
2078
2079
2080
2081
2082
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 2077

class ResponseAction < Struct.new(
  :block,
  :count)
  SENSITIVE = []
  include Aws::Structure
end