aws-cdk-lib.aws_apigateway.CfnApiKey.StageKeyProperty

interface StageKeyProperty

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.CfnApiKey.StageKeyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#CfnApiKey_StageKeyProperty
Javasoftware.amazon.awscdk.services.apigateway.CfnApiKey.StageKeyProperty
Pythonaws_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

NameTypeDescription
restApiId?stringThe string identifier of the associated RestApi.
stageName?stringThe 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.