FixedResponse

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

Bases: object

(deprecated) A fixed response.

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

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

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

Deprecated

superceded by ListenerAction.fixedResponse().

Stability

deprecated

Attributes

content_type

(deprecated) The content type.

Default

text/plain

Stability

deprecated

Return type

Optional[ContentType]

message_body

(deprecated) The message.

Default

no message

Stability

deprecated

Return type

Optional[str]

status_code

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

Stability

deprecated

Return type

str