WebSocketStageAttributes Struct
The attributes used to import existing WebSocketStage.
Example
ts
declare const webSocketApi: apigwv2.IWebSocketApi;
const importedStage = apigwv2.WebSocketStage.fromWebSocketStageAttributes(this, 'imported-stage', {
stageName: 'myStage',
api: webSocketApi,
});
const apiKey = new apigwv2.ApiKey(this, 'MyApiKey');
const usagePlan = new apigwv2.UsagePlan(this, 'MyUsagePlan', {
apiStages: [{ api: webSocketApi, stage: importedStage }],
});
usagePlan.addApiKey(apiKey);
Properties
The API to which this stage is associated.
The name of the stage.