Class CfnListenerRule.FixedResponseConfigProperty
Specifies information required when returning a custom HTTP response.
Inheritance
System.Object
CfnListenerRule.FixedResponseConfigProperty
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class FixedResponseConfigProperty : Object, CfnListenerRule.IFixedResponseConfigProperty
Syntax (vb)
Public Class FixedResponseConfigProperty
Inherits Object
Implements CfnListenerRule.IFixedResponseConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
var fixedResponseConfigProperty = new FixedResponseConfigProperty {
StatusCode = "statusCode",
// the properties below are optional
ContentType = "contentType",
MessageBody = "messageBody"
};
Synopsis
Constructors
FixedResponseConfigProperty() |
Properties
ContentType | The content type. |
MessageBody | The message. |
StatusCode | The HTTP response code (2XX, 4XX, or 5XX). |
Constructors
FixedResponseConfigProperty()
public FixedResponseConfigProperty()
Properties
ContentType
The content type.
public string ContentType { get; set; }
Property Value
System.String
Remarks
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
MessageBody
The message.
public string MessageBody { get; set; }
Property Value
System.String
Remarks
StatusCode
The HTTP response code (2XX, 4XX, or 5XX).
public string StatusCode { get; set; }
Property Value
System.String