Michael Wolfenden
07/05/2021, 2:19 AMapi
construct so I can set these AWS::ApiGatewayV2::Stage RouteSettings
properties
{
"DetailedMetricsEnabled" : Boolean,
"ThrottlingBurstLimit" : Integer,
"ThrottlingRateLimit" : Double
}
Frank
const api = new sst.Api(...);
api.httpApi.defaultStage
Frank
api.httpApi.defaultStage
gives u the HTTP stage createdFrank
Michael Wolfenden
07/06/2021, 9:25 AM// see <https://docs.aws.amazon.com/cdk/latest/guide/cfn_layer.html#cfn_layer_resource>
const defaultStage = api.httpApi.defaultStage?.node.defaultChild as CfnStage
defaultStage.defaultRouteSettings = {
throttlingBurstLimit: 500,
throttlingRateLimit: 1000,
detailedMetricsEnabled: true,
}
Frank