StageAttributes
- class aws_cdk.aws_apigateway.StageAttributes(*, rest_api, stage_name)
Bases:
object
The attributes of an imported Stage.
- Parameters:
rest_api (
IRestApi
) – The RestApi that the stage belongs to.stage_name (
str
) – The name of the stage.
- ExampleMetadata:
infused
Example:
# rest_api: apigateway.IRestApi imported_stage = apigateway.Stage.from_stage_attributes(self, "imported-stage", stage_name="myStageName", rest_api=rest_api ) imported_stage.add_api_key("MyApiKey")
Attributes
- rest_api
The RestApi that the stage belongs to.
- stage_name
The name of the stage.