Skip to content
v2.275.0

StageAttributes Struct ​

The attributes of an imported Stage.

Example ​

ts
declare const restApi: apigateway.IRestApi;
const importedStage = apigateway.Stage.fromStageAttributes(this, 'imported-stage', {
  stageName: 'myStageName',
  restApi,
});

importedStage.addApiKey('MyApiKey');

Properties ​

restApiIRestApirest_apiIRestApirestApiIRestApiRestApiIRestApiRestApiIRestApirequired#
The RestApi that the stage belongs to.
stageNamestringstage_namestrstageNameStringStageNamestringStageName*stringrequired#
The name of the stage.