FixedResponse

class aws_cdk.aws_elasticloadbalancingv2.FixedResponse(*, status_code, content_type=None, message_body=None)

Bases: object

__init__(*, status_code, content_type=None, message_body=None)

A fixed response.

Parameters
  • status_code (str) – The HTTP response code (2XX, 4XX or 5XX).

  • content_type (Optional[ContentType]) – The content type. Default: text/plain

  • message_body (Optional[str]) – The message. Default: no message

Attributes

content_type

The content type.

default :default: text/plain

Return type

Optional[ContentType]

message_body

The message.

default :default: no message

Return type

Optional[str]

status_code

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

Return type

str