Class CfnRouteResponseProps
Properties for defining a CfnRouteResponse
.
Inheritance
System.Object
CfnRouteResponseProps
Implements
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public class CfnRouteResponseProps : Object, ICfnRouteResponseProps
Syntax (vb)
Public Class CfnRouteResponseProps
Inherits Object
Implements ICfnRouteResponseProps
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.APIGatewayv2;
var responseModels;
var cfnRouteResponseProps = new CfnRouteResponseProps {
ApiId = "apiId",
RouteId = "routeId",
RouteResponseKey = "routeResponseKey",
// the properties below are optional
ModelSelectionExpression = "modelSelectionExpression",
ResponseModels = responseModels,
ResponseParameters = new Dictionary<string, object> {
{ "responseParametersKey", new ParameterConstraintsProperty {
Required = false
} }
}
};
Synopsis
Constructors
CfnRouteResponseProps() |
Properties
ApiId | The API identifier. |
ModelSelectionExpression | The model selection expression for the route response. |
ResponseModels | The response models for the route response. |
ResponseParameters | The route response parameters. |
RouteId | The route ID. |
RouteResponseKey | The route response key. |
Constructors
CfnRouteResponseProps()
public CfnRouteResponseProps()
Properties
ApiId
The API identifier.
public string ApiId { get; set; }
Property Value
System.String
Remarks
ModelSelectionExpression
The model selection expression for the route response.
public string ModelSelectionExpression { get; set; }
Property Value
System.String
Remarks
Supported only for WebSocket APIs.
ResponseModels
The response models for the route response.
public object ResponseModels { get; set; }
Property Value
System.Object
Remarks
ResponseParameters
The route response parameters.
public object ResponseParameters { get; set; }
Property Value
System.Object
Remarks
RouteId
The route ID.
public string RouteId { get; set; }
Property Value
System.String
Remarks
RouteResponseKey
The route response key.
public string RouteResponseKey { get; set; }
Property Value
System.String