Skip to content
v2.274.0

RouteSettingsProperty Struct ​

The RouteSettings property overrides the route settings for an API Gateway-managed route.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const routeSettingsProperty: apigatewayv2.CfnApiGatewayManagedOverrides.RouteSettingsProperty = {
  dataTraceEnabled: false,
  detailedMetricsEnabled: false,
  loggingLevel: 'loggingLevel',
  throttlingBurstLimit: 123,
  throttlingRateLimit: 123,
};

Properties ​

dataTraceEnabledoptionalboolean | IResolvabledata_trace_enabledoptionaltyping.Union[bool, IResolvable]dataTraceEnabledoptionalBooleanDataTraceEnabledoptionalboolDataTraceEnabledoptionalinterface{}#
Specifies whether ( `true` ) or not ( `false` ) data trace logging is enabled for this route.

This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.

detailedMetricsEnabledoptionalboolean | IResolvabledetailed_metrics_enabledoptionaltyping.Union[bool, IResolvable]detailedMetricsEnabledoptionalBooleanDetailedMetricsEnabledoptionalboolDetailedMetricsEnabledoptionalinterface{}#
Specifies whether detailed metrics are enabled.
loggingLeveloptionalstringlogging_leveloptionalstrloggingLeveloptionalStringLoggingLeveloptionalstringLoggingLeveloptional*string#
Specifies the logging level for this route: `INFO` , `ERROR` , or `OFF` .

This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.

throttlingBurstLimitoptionalnumberthrottling_burst_limitoptionalint | floatthrottlingBurstLimitoptionalNumberThrottlingBurstLimitoptionaldoubleThrottlingBurstLimitoptional*float64#
Specifies the throttling burst limit.
throttlingRateLimitoptionalnumberthrottling_rate_limitoptionalint | floatthrottlingRateLimitoptionalNumberThrottlingRateLimitoptionaldoubleThrottlingRateLimitoptional*float64#
Specifies the throttling rate limit.