-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packageeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
It's not possible to enable DetailedMetricsEnabled with the L2 construct.
Use Case
Get detailed metrics with HttpApi.
Proposed Solution
No response
Other Information
- the
RestApihas the stage's optionmetricsEnabledhttps://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.StageOptions.html - in the meantime I can do it using the escape hatch:
const cfnStage = stage.node.defaultChild as apigateway.CfnStage;
cfnStage.addOverride('Properties.DefaultRouteSettings.DetailedMetricsEnabled', true);
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.165.0 (build 00f70f1)
Environment details (OS name and version, etc.)
macos
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packageeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2