interface StageKeyProperty
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.APIGateway.CfnApiKey.StageKeyProperty | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#CfnApiKey_StageKeyProperty | 
  Java | software.amazon.awscdk.services.apigateway.CfnApiKey.StageKeyProperty | 
  Python | aws_cdk.aws_apigateway.CfnApiKey.StageKeyProperty | 
  TypeScript  | aws-cdk-lib » aws_apigateway » CfnApiKey » 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-lib';
const stageKeyProperty: apigateway.CfnApiKey.StageKeyProperty = {
  restApiId: 'restApiId',
  stageName: 'stageName',
};
Properties
| Name | Type | Description | 
|---|---|---|
| rest | string | The string identifier of the associated RestApi. | 
| stage | string | The stage name associated with the stage key. | 
restApiId?
Type:
string
(optional)
The string identifier of the associated RestApi.
stageName?
Type:
string
(optional)
The stage name associated with the stage key.

 .NET
 Go
 Java
 Python
 TypeScript