Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Class: Aws::ElasticLoadBalancingV2::Types::FixedResponseActionConfig

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

Overview

Information about an action that returns a custom HTTP response.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeString

The content type.

Valid Values: text/plain | text/css | text/html | application/javascript | application/json

Returns:

  • (String)

1863
1864
1865
1866
1867
1868
1869
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 1863

class FixedResponseActionConfig < Struct.new(
  :message_body,
  :status_code,
  :content_type)
  SENSITIVE = []
  include Aws::Structure
end

#message_bodyString

The message.

Returns:

  • (String)

1863
1864
1865
1866
1867
1868
1869
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 1863

class FixedResponseActionConfig < Struct.new(
  :message_body,
  :status_code,
  :content_type)
  SENSITIVE = []
  include Aws::Structure
end

#status_codeString

The HTTP response code (2XX, 4XX, or 5XX).

Returns:

  • (String)

1863
1864
1865
1866
1867
1868
1869
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 1863

class FixedResponseActionConfig < Struct.new(
  :message_body,
  :status_code,
  :content_type)
  SENSITIVE = []
  include Aws::Structure
end