Class FixedResponse
(deprecated) A fixed response.
Inheritance
System.Object
FixedResponse
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class FixedResponse : Object, IFixedResponse
Syntax (vb)
Public Class FixedResponse
Inherits Object
Implements IFixedResponse
Remarks
Stability: Deprecated
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 fixedResponse = new FixedResponse {
StatusCode = "statusCode",
// the properties below are optional
ContentType = ContentType.TEXT_PLAIN,
MessageBody = "messageBody"
};
Synopsis
Constructors
FixedResponse() |
Properties
ContentType | (deprecated) The content type. |
MessageBody | (deprecated) The message. |
StatusCode | (deprecated) The HTTP response code (2XX, 4XX or 5XX). |
Constructors
FixedResponse()
public FixedResponse()
Properties
ContentType
(deprecated) The content type.
public Nullable<ContentType> ContentType { get; set; }
Property Value
System.Nullable<ContentType>
Remarks
Default: text/plain
Stability: Deprecated
MessageBody
(deprecated) The message.
public string MessageBody { get; set; }
Property Value
System.String
Remarks
Default: no message
Stability: Deprecated
StatusCode
(deprecated) The HTTP response code (2XX, 4XX or 5XX).
public string StatusCode { get; set; }
Property Value
System.String
Remarks
Stability: Deprecated