ApiStageProperty Struct
API stage name of the associated API stage in a usage plan.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 apiStageProperty: apigateway.CfnUsagePlan.ApiStageProperty = {
apiId: 'apiId',
stage: 'stage',
throttle: {
throttleKey: {
burstLimit: 123,
rateLimit: 123,
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigateway as apigateway
api_stage_property = apigateway.CfnUsagePlan.ApiStageProperty(
api_id="apiId",
stage="stage",
throttle={
"throttle_key": apigateway.CfnUsagePlan.ThrottleSettingsProperty(
burst_limit=123,
rate_limit=123
)
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
ApiStageProperty apiStageProperty = ApiStageProperty.builder()
.apiId("apiId")
.stage("stage")
.throttle(Map.of(
"throttleKey", ThrottleSettingsProperty.builder()
.burstLimit(123)
.rateLimit(123)
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 apiStageProperty = new ApiStageProperty {
ApiId = "apiId",
Stage = "stage",
Throttle = new Dictionary<string, object> {
{ "throttleKey", new ThrottleSettingsProperty {
BurstLimit = 123,
RateLimit = 123
} }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
apiStageProperty := &ApiStageProperty{
ApiId: jsii.String("apiId"),
Stage: jsii.String("stage"),
Throttle: map[string]interface{}{
"throttleKey": &ThrottleSettingsProperty{
"burstLimit": jsii.Number(123),
"rateLimit": jsii.Number(123),
},
},
}
Properties
API Id of the associated API stage in a usage plan.
API stage name of the associated API stage in a usage plan.
throttleoptionalIResolvable | { [key: string]: IResolvable | CfnUsagePlan.throttleoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ThrottleSettingsProperty]]]throttleoptionalIResolvableThrottleoptionalIResolvableThrottleoptionalinterface{} #Map containing method level throttling information for API stage in a usage plan.