Class CfnRule.FixedResponseProperty
Describes an action that returns a custom HTTP response.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRule.FixedResponseProperty : CfnRule.IFixedResponseProperty
Syntax (vb)
Public Class CfnRule.FixedResponseProperty Implements CfnRule.IFixedResponseProperty
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.VpcLattice;
var fixedResponseProperty = new FixedResponseProperty {
StatusCode = 123
};
Synopsis
Constructors
FixedResponseProperty() | Describes an action that returns a custom HTTP response. |
Properties
StatusCode | The HTTP response code. |
Constructors
FixedResponseProperty()
Describes an action that returns a custom HTTP response.
public FixedResponseProperty()
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.VpcLattice;
var fixedResponseProperty = new FixedResponseProperty {
StatusCode = 123
};
Properties
StatusCode
The HTTP response code.
public double StatusCode { get; set; }
Property Value
Remarks
Only 404
and 500
status codes are supported.