interface StageAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.APIGateway.StageAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#StageAttributes |
![]() | software.amazon.awscdk.services.apigateway.StageAttributes |
![]() | aws_cdk.aws_apigateway.StageAttributes |
![]() | aws-cdk-lib » aws_apigateway » StageAttributes |
The attributes of an imported Stage.
Example
declare const restApi: apigateway.IRestApi;
const importedStage = apigateway.Stage.fromStageAttributes(this, 'imported-stage', {
stageName: 'myStageName',
restApi,
});
importedStage.addApiKey('MyApiKey');
Properties
Name | Type | Description |
---|---|---|
rest | IRest | The RestApi that the stage belongs to. |
stage | string | The name of the stage. |
restApi
Type:
IRest
The RestApi that the stage belongs to.
stageName
Type:
string
The name of the stage.