Class CfnApiKey.StageKeyProperty
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
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.
public class CfnApiKey.StageKeyProperty : CfnApiKey.IStageKeyProperty
- Inheritance
-
CfnApiKey.StageKeyProperty
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
var stageKeyProperty = new StageKeyProperty {
RestApiId = "restApiId",
StageName = "stageName"
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
StageKeyProperty()
public StageKeyProperty()
Properties
RestApiId
The string identifier of the associated RestApi.
public string? RestApiId { get; set; }
Property Value
Remarks
StageName
The stage name associated with the stage key.
public string? StageName { get; set; }