interface StageKeyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApiGateway.Mixins.CfnApiKeyPropsMixin.StageKeyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapigateway/mixins#CfnApiKeyPropsMixin_StageKeyProperty |
Java | software.amazon.awscdk.mixins.preview.services.apigateway.mixins.CfnApiKeyPropsMixin.StageKeyProperty |
Python | aws_cdk.mixins_preview.aws_apigateway.mixins.CfnApiKeyPropsMixin.StageKeyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_apigateway » mixins » 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 { mixins as apigateway_mixins } from '@aws-cdk/mixins-preview/aws-apigateway';
const stageKeyProperty: apigateway_mixins.CfnApiKeyPropsMixin.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