Interface CfnListenerRule.FixedResponseConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListenerRule.FixedResponseConfigProperty.Jsii$Proxy
- Enclosing class:
CfnListenerRule
@Stability(Stable)
public static interface CfnListenerRule.FixedResponseConfigProperty
extends software.amazon.jsii.JsiiSerializable
Specifies information required when returning a custom HTTP response.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticloadbalancingv2.*; FixedResponseConfigProperty fixedResponseConfigProperty = FixedResponseConfigProperty.builder() .statusCode("statusCode") // the properties below are optional .contentType("contentType") .messageBody("messageBody") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnListenerRule.FixedResponseConfigProperty
static final class
An implementation forCfnListenerRule.FixedResponseConfigProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatusCode
The HTTP response code (2XX, 4XX, or 5XX).- See Also:
-
getContentType
The content type.Valid Values: text/plain | text/css | text/html | application/javascript | application/json
- See Also:
-
getMessageBody
The message.- See Also:
-
builder
-