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/plainmessage_body (
Optional
[str
]) – (deprecated) The message. Default: no message
- Deprecated:
superceded by
ListenerAction.fixedResponse()
.- Stability:
deprecated
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_elasticloadbalancingv2 as elbv2 fixed_response = elbv2.FixedResponse( status_code="statusCode", # the properties below are optional content_type=elbv2.ContentType.TEXT_PLAIN, message_body="messageBody" )
Attributes
- content_type
(deprecated) The content type.
- Default:
text/plain
- Stability:
deprecated
- message_body
(deprecated) The message.
- Default:
no message
- Stability:
deprecated
- status_code
(deprecated) The HTTP response code (2XX, 4XX or 5XX).
- Stability:
deprecated