interface StageKeyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ApiGateway.CfnApiKeyPropsMixin.StageKeyProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsapigateway#CfnApiKeyPropsMixin_StageKeyProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.apigateway.CfnApiKeyPropsMixin.StageKeyProperty |
Python | aws_cdk.cfn_property_mixins.aws_apigateway.CfnApiKeyPropsMixin.StageKeyProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_apigateway » CfnApiKeyPropsMixin » StageKeyProperty |
StageKey is a property of the AWS::ApiGateway::ApiKey resource that specifies the stage to associate with the API key. This association allows only clients with the key to make requests to methods in that stage.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from '@aws-cdk/cfn-property-mixins';
const stageKeyProperty: apigateway.CfnApiKeyPropsMixin.StageKeyProperty = {
restApiId: 'restApiId',
stageName: 'stageName',
};
Properties
| Name | Type | Description |
|---|---|---|
| rest | string | IRest | The string identifier of the associated RestApi. |
| stage | string | IStage | The stage name associated with the stage key. |
restApiId?
Type:
string | IRest
(optional)
The string identifier of the associated RestApi.
stageName?
Type:
string | IStage
(optional)
The stage name associated with the stage key.

.NET
Go
Java
Python
TypeScript