Class: Aws::WAFV2::Types::CustomHTTPHeader

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

Overview

Note:

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

{
  name: "CustomHTTPHeaderName", # required
  value: "CustomHTTPHeaderValue", # required
}

A custom header for custom request and response handling. This is used in CustomResponse and CustomRequestHandling.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the custom header.

For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

Returns:

  • (String)


2516
2517
2518
2519
2520
2521
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 2516

class CustomHTTPHeader < Struct.new(
  :name,
  :value)
  SENSITIVE = []
  include Aws::Structure
end

#valueString

The value of the custom header.

Returns:

  • (String)


2516
2517
2518
2519
2520
2521
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 2516

class CustomHTTPHeader < Struct.new(
  :name,
  :value)
  SENSITIVE = []
  include Aws::Structure
end