Interface IWebSocketStageProps
Properties to initialize an instance of WebSocketStage.
Inherited Members
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IWebSocketStageProps : IStageOptions
Syntax (vb)
Public Interface IWebSocketStageProps Inherits IStageOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
HttpApi httpApi;
WebSocketApi webSocketApi;
LogGroup logGroup;
new HttpStage(this, "HttpStage", new HttpStageProps {
HttpApi = httpApi,
AccessLogSettings = new Dictionary<string, IAccessLogDestination> {
{ "destination", new LogGroupLogDestination(logGroup) }
}
});
new WebSocketStage(this, "WebSocketStage", new WebSocketStageProps {
WebSocketApi = webSocketApi,
StageName = "dev",
AccessLogSettings = new Dictionary<string, IAccessLogDestination> {
{ "destination", new LogGroupLogDestination(logGroup) }
}
});
Synopsis
Properties
| StageName | The name of the stage. |
| WebSocketApi | The WebSocket API to which this stage is associated. |
Properties
StageName
The name of the stage.
string StageName { get; }
Property Value
Remarks
ExampleMetadata: infused
WebSocketApi
The WebSocket API to which this stage is associated.
IWebSocketApi WebSocketApi { get; }
Property Value
Remarks
ExampleMetadata: infused