interface FixedResponseConfigProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.CfnListener.FixedResponseConfigProperty | 
|  Java | software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.FixedResponseConfigProperty | 
|  Python | aws_cdk.aws_elasticloadbalancingv2.CfnListener.FixedResponseConfigProperty | 
|  TypeScript | @aws-cdk/aws-elasticloadbalancingv2»CfnListener»FixedResponseConfigProperty | 
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 * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
const fixedResponseConfigProperty: elbv2.CfnListener.FixedResponseConfigProperty = {
  statusCode: 'statusCode',
  // the properties below are optional
  contentType: 'contentType',
  messageBody: 'messageBody',
};
Properties
| Name | Type | Description | 
|---|---|---|
| status | string | The HTTP response code (2XX, 4XX, or 5XX). | 
| content | string | The content type. | 
| message | string | The message. | 
statusCode
Type:
string
The HTTP response code (2XX, 4XX, or 5XX).
contentType?
Type:
string
(optional)
The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
messageBody?
Type:
string
(optional)
The message.
