ContentType

class aws_cdk.aws_elasticloadbalancingv2.ContentType(value)

Bases: enum.Enum

(deprecated) The content type for a fixed response.

Deprecated

superceded by FixedResponseOptions.

Stability

deprecated

ExampleMetadata

infused

Example:

# listener: elbv2.ApplicationListener


listener.add_action("Fixed",
    priority=10,
    conditions=[
        elbv2.ListenerCondition.path_patterns(["/ok"])
    ],
    action=elbv2.ListenerAction.fixed_response(200,
        content_type=elbv2.ContentType.TEXT_PLAIN,
        message_body="OK"
    )
)

Attributes

APPLICATION_JAVASCRIPT
Stability

deprecated

APPLICATION_JSON
Stability

deprecated

TEXT_CSS
Stability

deprecated

TEXT_HTML
Stability

deprecated

TEXT_PLAIN
Stability

deprecated