@aws-cdk/metrics-facade-alpha 2.261.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/.jsii +1 -0
  2. package/.jsii.gz +0 -0
  3. package/.jsii.tabl.json.gz +0 -0
  4. package/.warnings.jsii.js +50 -0
  5. package/LICENSE +201 -0
  6. package/NOTICE +2 -0
  7. package/README.md +123 -0
  8. package/awslint.json +4 -0
  9. package/eslint-suppressions.json +2 -0
  10. package/jest.config.js +2 -0
  11. package/lib/index.d.ts +1 -0
  12. package/lib/index.js +3 -0
  13. package/lib/services/aws-amazonmq/.jsiirc.json +16 -0
  14. package/lib/services/aws-amazonmq/index.d.ts +1 -0
  15. package/lib/services/aws-amazonmq/index.js +17 -0
  16. package/lib/services/aws-amazonmq/metrics.generated.d.ts +141 -0
  17. package/lib/services/aws-amazonmq/metrics.generated.js +316 -0
  18. package/lib/services/aws-apigateway/.jsiirc.json +16 -0
  19. package/lib/services/aws-apigateway/index.d.ts +1 -0
  20. package/lib/services/aws-apigateway/index.js +17 -0
  21. package/lib/services/aws-apigateway/metrics.generated.d.ts +358 -0
  22. package/lib/services/aws-apigateway/metrics.generated.js +589 -0
  23. package/lib/services/aws-apigatewayv2/.jsiirc.json +16 -0
  24. package/lib/services/aws-apigatewayv2/index.d.ts +1 -0
  25. package/lib/services/aws-apigatewayv2/index.js +17 -0
  26. package/lib/services/aws-apigatewayv2/metrics.generated.d.ts +441 -0
  27. package/lib/services/aws-apigatewayv2/metrics.generated.js +779 -0
  28. package/lib/services/aws-appstream/.jsiirc.json +16 -0
  29. package/lib/services/aws-appstream/index.d.ts +1 -0
  30. package/lib/services/aws-appstream/index.js +17 -0
  31. package/lib/services/aws-appstream/metrics.generated.d.ts +255 -0
  32. package/lib/services/aws-appstream/metrics.generated.js +487 -0
  33. package/lib/services/aws-appsync/.jsiirc.json +16 -0
  34. package/lib/services/aws-appsync/index.d.ts +1 -0
  35. package/lib/services/aws-appsync/index.js +17 -0
  36. package/lib/services/aws-appsync/metrics.generated.d.ts +51 -0
  37. package/lib/services/aws-appsync/metrics.generated.js +106 -0
  38. package/lib/services/aws-autoscaling/.jsiirc.json +16 -0
  39. package/lib/services/aws-autoscaling/index.d.ts +1 -0
  40. package/lib/services/aws-autoscaling/index.js +17 -0
  41. package/lib/services/aws-autoscaling/metrics.generated.d.ts +86 -0
  42. package/lib/services/aws-autoscaling/metrics.generated.js +184 -0
  43. package/lib/services/aws-bedrock/.jsiirc.json +16 -0
  44. package/lib/services/aws-bedrock/index.d.ts +1 -0
  45. package/lib/services/aws-bedrock/index.js +17 -0
  46. package/lib/services/aws-bedrock/metrics.generated.d.ts +312 -0
  47. package/lib/services/aws-bedrock/metrics.generated.js +563 -0
  48. package/lib/services/aws-cloudfront/.jsiirc.json +16 -0
  49. package/lib/services/aws-cloudfront/index.d.ts +1 -0
  50. package/lib/services/aws-cloudfront/index.js +17 -0
  51. package/lib/services/aws-cloudfront/metrics.generated.d.ts +80 -0
  52. package/lib/services/aws-cloudfront/metrics.generated.js +157 -0
  53. package/lib/services/aws-cloudwatch/.jsiirc.json +16 -0
  54. package/lib/services/aws-cloudwatch/index.d.ts +1 -0
  55. package/lib/services/aws-cloudwatch/index.js +17 -0
  56. package/lib/services/aws-cloudwatch/metrics.generated.d.ts +56 -0
  57. package/lib/services/aws-cloudwatch/metrics.generated.js +114 -0
  58. package/lib/services/aws-codebuild/.jsiirc.json +16 -0
  59. package/lib/services/aws-codebuild/index.d.ts +1 -0
  60. package/lib/services/aws-codebuild/index.js +17 -0
  61. package/lib/services/aws-codebuild/metrics.generated.d.ts +62 -0
  62. package/lib/services/aws-codebuild/metrics.generated.js +128 -0
  63. package/lib/services/aws-codepipeline/.jsiirc.json +16 -0
  64. package/lib/services/aws-codepipeline/index.d.ts +1 -0
  65. package/lib/services/aws-codepipeline/index.js +17 -0
  66. package/lib/services/aws-codepipeline/metrics.generated.d.ts +27 -0
  67. package/lib/services/aws-codepipeline/metrics.generated.js +76 -0
  68. package/lib/services/aws-cognito/.jsiirc.json +16 -0
  69. package/lib/services/aws-cognito/index.d.ts +1 -0
  70. package/lib/services/aws-cognito/index.js +17 -0
  71. package/lib/services/aws-cognito/metrics.generated.d.ts +49 -0
  72. package/lib/services/aws-cognito/metrics.generated.js +93 -0
  73. package/lib/services/aws-datasync/.jsiirc.json +16 -0
  74. package/lib/services/aws-datasync/index.d.ts +1 -0
  75. package/lib/services/aws-datasync/index.js +17 -0
  76. package/lib/services/aws-datasync/metrics.generated.d.ts +138 -0
  77. package/lib/services/aws-datasync/metrics.generated.js +274 -0
  78. package/lib/services/aws-dax/.jsiirc.json +16 -0
  79. package/lib/services/aws-dax/index.d.ts +1 -0
  80. package/lib/services/aws-dax/index.js +17 -0
  81. package/lib/services/aws-dax/metrics.generated.d.ts +105 -0
  82. package/lib/services/aws-dax/metrics.generated.js +258 -0
  83. package/lib/services/aws-dms/.jsiirc.json +16 -0
  84. package/lib/services/aws-dms/index.d.ts +1 -0
  85. package/lib/services/aws-dms/index.js +17 -0
  86. package/lib/services/aws-dms/metrics.generated.d.ts +268 -0
  87. package/lib/services/aws-dms/metrics.generated.js +569 -0
  88. package/lib/services/aws-docdb/.jsiirc.json +16 -0
  89. package/lib/services/aws-docdb/index.d.ts +1 -0
  90. package/lib/services/aws-docdb/index.js +17 -0
  91. package/lib/services/aws-docdb/metrics.generated.d.ts +63 -0
  92. package/lib/services/aws-docdb/metrics.generated.js +134 -0
  93. package/lib/services/aws-dynamodb/.jsiirc.json +16 -0
  94. package/lib/services/aws-dynamodb/index.d.ts +1 -0
  95. package/lib/services/aws-dynamodb/index.js +17 -0
  96. package/lib/services/aws-dynamodb/metrics.generated.d.ts +444 -0
  97. package/lib/services/aws-dynamodb/metrics.generated.js +734 -0
  98. package/lib/services/aws-ec2/.jsiirc.json +16 -0
  99. package/lib/services/aws-ec2/index.d.ts +1 -0
  100. package/lib/services/aws-ec2/index.js +17 -0
  101. package/lib/services/aws-ec2/metrics.generated.d.ts +1226 -0
  102. package/lib/services/aws-ec2/metrics.generated.js +2434 -0
  103. package/lib/services/aws-ecs/.jsiirc.json +16 -0
  104. package/lib/services/aws-ecs/index.d.ts +1 -0
  105. package/lib/services/aws-ecs/index.js +17 -0
  106. package/lib/services/aws-ecs/metrics.generated.d.ts +105 -0
  107. package/lib/services/aws-ecs/metrics.generated.js +185 -0
  108. package/lib/services/aws-efs/.jsiirc.json +16 -0
  109. package/lib/services/aws-efs/index.d.ts +1 -0
  110. package/lib/services/aws-efs/index.js +17 -0
  111. package/lib/services/aws-efs/metrics.generated.d.ts +130 -0
  112. package/lib/services/aws-efs/metrics.generated.js +235 -0
  113. package/lib/services/aws-eks/.jsiirc.json +16 -0
  114. package/lib/services/aws-eks/index.d.ts +1 -0
  115. package/lib/services/aws-eks/index.js +17 -0
  116. package/lib/services/aws-eks/metrics.generated.d.ts +146 -0
  117. package/lib/services/aws-eks/metrics.generated.js +324 -0
  118. package/lib/services/aws-elasticache/.jsiirc.json +16 -0
  119. package/lib/services/aws-elasticache/index.d.ts +1 -0
  120. package/lib/services/aws-elasticache/index.js +17 -0
  121. package/lib/services/aws-elasticache/metrics.generated.d.ts +1729 -0
  122. package/lib/services/aws-elasticache/metrics.generated.js +3969 -0
  123. package/lib/services/aws-elasticbeanstalk/.jsiirc.json +16 -0
  124. package/lib/services/aws-elasticbeanstalk/index.d.ts +1 -0
  125. package/lib/services/aws-elasticbeanstalk/index.js +17 -0
  126. package/lib/services/aws-elasticbeanstalk/metrics.generated.d.ts +68 -0
  127. package/lib/services/aws-elasticbeanstalk/metrics.generated.js +142 -0
  128. package/lib/services/aws-elasticloadbalancing/.jsiirc.json +16 -0
  129. package/lib/services/aws-elasticloadbalancing/index.d.ts +1 -0
  130. package/lib/services/aws-elasticloadbalancing/index.js +17 -0
  131. package/lib/services/aws-elasticloadbalancing/metrics.generated.d.ts +231 -0
  132. package/lib/services/aws-elasticloadbalancing/metrics.generated.js +479 -0
  133. package/lib/services/aws-elasticloadbalancingv2/.jsiirc.json +16 -0
  134. package/lib/services/aws-elasticloadbalancingv2/index.d.ts +1 -0
  135. package/lib/services/aws-elasticloadbalancingv2/index.js +17 -0
  136. package/lib/services/aws-elasticloadbalancingv2/metrics.generated.d.ts +1110 -0
  137. package/lib/services/aws-elasticloadbalancingv2/metrics.generated.js +2168 -0
  138. package/lib/services/aws-emr/.jsiirc.json +16 -0
  139. package/lib/services/aws-emr/index.d.ts +1 -0
  140. package/lib/services/aws-emr/index.js +17 -0
  141. package/lib/services/aws-emr/metrics.generated.d.ts +333 -0
  142. package/lib/services/aws-emr/metrics.generated.js +764 -0
  143. package/lib/services/aws-events/.jsiirc.json +16 -0
  144. package/lib/services/aws-events/index.d.ts +1 -0
  145. package/lib/services/aws-events/index.js +17 -0
  146. package/lib/services/aws-events/metrics.generated.d.ts +75 -0
  147. package/lib/services/aws-events/metrics.generated.js +162 -0
  148. package/lib/services/aws-fsx/.jsiirc.json +16 -0
  149. package/lib/services/aws-fsx/index.d.ts +1 -0
  150. package/lib/services/aws-fsx/index.js +17 -0
  151. package/lib/services/aws-fsx/metrics.generated.d.ts +134 -0
  152. package/lib/services/aws-fsx/metrics.generated.js +296 -0
  153. package/lib/services/aws-gamelift/.jsiirc.json +16 -0
  154. package/lib/services/aws-gamelift/index.d.ts +1 -0
  155. package/lib/services/aws-gamelift/index.js +17 -0
  156. package/lib/services/aws-gamelift/metrics.generated.d.ts +80 -0
  157. package/lib/services/aws-gamelift/metrics.generated.js +170 -0
  158. package/lib/services/aws-iot/.jsiirc.json +16 -0
  159. package/lib/services/aws-iot/index.d.ts +1 -0
  160. package/lib/services/aws-iot/index.js +17 -0
  161. package/lib/services/aws-iot/metrics.generated.d.ts +62 -0
  162. package/lib/services/aws-iot/metrics.generated.js +128 -0
  163. package/lib/services/aws-kinesis/.jsiirc.json +16 -0
  164. package/lib/services/aws-kinesis/index.d.ts +1 -0
  165. package/lib/services/aws-kinesis/index.js +17 -0
  166. package/lib/services/aws-kinesis/metrics.generated.d.ts +110 -0
  167. package/lib/services/aws-kinesis/metrics.generated.js +240 -0
  168. package/lib/services/aws-kinesisanalytics/.jsiirc.json +16 -0
  169. package/lib/services/aws-kinesisanalytics/index.d.ts +1 -0
  170. package/lib/services/aws-kinesisanalytics/index.js +17 -0
  171. package/lib/services/aws-kinesisanalytics/metrics.generated.d.ts +39 -0
  172. package/lib/services/aws-kinesisanalytics/metrics.generated.js +78 -0
  173. package/lib/services/aws-kinesisfirehose/.jsiirc.json +16 -0
  174. package/lib/services/aws-kinesisfirehose/index.d.ts +1 -0
  175. package/lib/services/aws-kinesisfirehose/index.js +17 -0
  176. package/lib/services/aws-kinesisfirehose/metrics.generated.d.ts +182 -0
  177. package/lib/services/aws-kinesisfirehose/metrics.generated.js +408 -0
  178. package/lib/services/aws-kinesisvideo/.jsiirc.json +16 -0
  179. package/lib/services/aws-kinesisvideo/index.d.ts +1 -0
  180. package/lib/services/aws-kinesisvideo/index.js +17 -0
  181. package/lib/services/aws-kinesisvideo/metrics.generated.d.ts +86 -0
  182. package/lib/services/aws-kinesisvideo/metrics.generated.js +184 -0
  183. package/lib/services/aws-kms/.jsiirc.json +16 -0
  184. package/lib/services/aws-kms/index.d.ts +1 -0
  185. package/lib/services/aws-kms/index.js +17 -0
  186. package/lib/services/aws-kms/metrics.generated.d.ts +44 -0
  187. package/lib/services/aws-kms/metrics.generated.js +86 -0
  188. package/lib/services/aws-lambda/.jsiirc.json +16 -0
  189. package/lib/services/aws-lambda/index.d.ts +1 -0
  190. package/lib/services/aws-lambda/index.js +17 -0
  191. package/lib/services/aws-lambda/metrics.generated.d.ts +395 -0
  192. package/lib/services/aws-lambda/metrics.generated.js +801 -0
  193. package/lib/services/aws-lex/.jsiirc.json +16 -0
  194. package/lib/services/aws-lex/index.d.ts +1 -0
  195. package/lib/services/aws-lex/index.js +17 -0
  196. package/lib/services/aws-lex/metrics.generated.d.ts +95 -0
  197. package/lib/services/aws-lex/metrics.generated.js +192 -0
  198. package/lib/services/aws-logs/.jsiirc.json +16 -0
  199. package/lib/services/aws-logs/index.d.ts +1 -0
  200. package/lib/services/aws-logs/index.js +17 -0
  201. package/lib/services/aws-logs/metrics.generated.d.ts +110 -0
  202. package/lib/services/aws-logs/metrics.generated.js +240 -0
  203. package/lib/services/aws-mediaconvert/.jsiirc.json +16 -0
  204. package/lib/services/aws-mediaconvert/index.d.ts +1 -0
  205. package/lib/services/aws-mediaconvert/index.js +17 -0
  206. package/lib/services/aws-mediaconvert/metrics.generated.d.ts +87 -0
  207. package/lib/services/aws-mediaconvert/metrics.generated.js +190 -0
  208. package/lib/services/aws-medialive/.jsiirc.json +16 -0
  209. package/lib/services/aws-medialive/index.d.ts +1 -0
  210. package/lib/services/aws-medialive/index.js +17 -0
  211. package/lib/services/aws-medialive/metrics.generated.d.ts +121 -0
  212. package/lib/services/aws-medialive/metrics.generated.js +261 -0
  213. package/lib/services/aws-mediapackage/.jsiirc.json +16 -0
  214. package/lib/services/aws-mediapackage/index.d.ts +1 -0
  215. package/lib/services/aws-mediapackage/index.js +17 -0
  216. package/lib/services/aws-mediapackage/metrics.generated.d.ts +51 -0
  217. package/lib/services/aws-mediapackage/metrics.generated.js +106 -0
  218. package/lib/services/aws-mediastore/.jsiirc.json +16 -0
  219. package/lib/services/aws-mediastore/index.d.ts +1 -0
  220. package/lib/services/aws-mediastore/index.js +17 -0
  221. package/lib/services/aws-mediastore/metrics.generated.d.ts +79 -0
  222. package/lib/services/aws-mediastore/metrics.generated.js +163 -0
  223. package/lib/services/aws-memorydb/.jsiirc.json +16 -0
  224. package/lib/services/aws-memorydb/index.d.ts +1 -0
  225. package/lib/services/aws-memorydb/index.js +17 -0
  226. package/lib/services/aws-memorydb/metrics.generated.d.ts +236 -0
  227. package/lib/services/aws-memorydb/metrics.generated.js +534 -0
  228. package/lib/services/aws-neptune/.jsiirc.json +16 -0
  229. package/lib/services/aws-neptune/index.d.ts +1 -0
  230. package/lib/services/aws-neptune/index.js +17 -0
  231. package/lib/services/aws-neptune/metrics.generated.d.ts +116 -0
  232. package/lib/services/aws-neptune/metrics.generated.js +254 -0
  233. package/lib/services/aws-opsworks/.jsiirc.json +16 -0
  234. package/lib/services/aws-opsworks/index.d.ts +1 -0
  235. package/lib/services/aws-opsworks/index.js +17 -0
  236. package/lib/services/aws-opsworks/metrics.generated.d.ts +376 -0
  237. package/lib/services/aws-opsworks/metrics.generated.js +788 -0
  238. package/lib/services/aws-qldb/.jsiirc.json +16 -0
  239. package/lib/services/aws-qldb/index.d.ts +1 -0
  240. package/lib/services/aws-qldb/index.js +17 -0
  241. package/lib/services/aws-qldb/metrics.generated.d.ts +93 -0
  242. package/lib/services/aws-qldb/metrics.generated.js +204 -0
  243. package/lib/services/aws-quicksight/.jsiirc.json +16 -0
  244. package/lib/services/aws-quicksight/index.d.ts +1 -0
  245. package/lib/services/aws-quicksight/index.js +17 -0
  246. package/lib/services/aws-quicksight/metrics.generated.d.ts +217 -0
  247. package/lib/services/aws-quicksight/metrics.generated.js +394 -0
  248. package/lib/services/aws-rds/.jsiirc.json +16 -0
  249. package/lib/services/aws-rds/index.d.ts +1 -0
  250. package/lib/services/aws-rds/index.js +17 -0
  251. package/lib/services/aws-rds/metrics.generated.d.ts +189 -0
  252. package/lib/services/aws-rds/metrics.generated.js +388 -0
  253. package/lib/services/aws-redshift/.jsiirc.json +16 -0
  254. package/lib/services/aws-redshift/index.d.ts +1 -0
  255. package/lib/services/aws-redshift/index.js +17 -0
  256. package/lib/services/aws-redshift/metrics.generated.d.ts +594 -0
  257. package/lib/services/aws-redshift/metrics.generated.js +911 -0
  258. package/lib/services/aws-route53/.jsiirc.json +16 -0
  259. package/lib/services/aws-route53/index.d.ts +1 -0
  260. package/lib/services/aws-route53/index.js +17 -0
  261. package/lib/services/aws-route53/metrics.generated.d.ts +74 -0
  262. package/lib/services/aws-route53/metrics.generated.js +156 -0
  263. package/lib/services/aws-route53resolver/.jsiirc.json +16 -0
  264. package/lib/services/aws-route53resolver/index.d.ts +1 -0
  265. package/lib/services/aws-route53resolver/index.js +17 -0
  266. package/lib/services/aws-route53resolver/metrics.generated.d.ts +51 -0
  267. package/lib/services/aws-route53resolver/metrics.generated.js +106 -0
  268. package/lib/services/aws-s3/.jsiirc.json +16 -0
  269. package/lib/services/aws-s3/index.d.ts +1 -0
  270. package/lib/services/aws-s3/index.js +17 -0
  271. package/lib/services/aws-s3/metrics.generated.d.ts +58 -0
  272. package/lib/services/aws-s3/metrics.generated.js +103 -0
  273. package/lib/services/aws-sagemaker/.jsiirc.json +16 -0
  274. package/lib/services/aws-sagemaker/index.d.ts +1 -0
  275. package/lib/services/aws-sagemaker/index.js +17 -0
  276. package/lib/services/aws-sagemaker/metrics.generated.d.ts +73 -0
  277. package/lib/services/aws-sagemaker/metrics.generated.js +149 -0
  278. package/lib/services/aws-servicecatalog/.jsiirc.json +16 -0
  279. package/lib/services/aws-servicecatalog/index.d.ts +1 -0
  280. package/lib/services/aws-servicecatalog/index.js +17 -0
  281. package/lib/services/aws-servicecatalog/metrics.generated.d.ts +39 -0
  282. package/lib/services/aws-servicecatalog/metrics.generated.js +78 -0
  283. package/lib/services/aws-ses/.jsiirc.json +16 -0
  284. package/lib/services/aws-ses/index.d.ts +1 -0
  285. package/lib/services/aws-ses/index.js +17 -0
  286. package/lib/services/aws-ses/metrics.generated.d.ts +162 -0
  287. package/lib/services/aws-ses/metrics.generated.js +356 -0
  288. package/lib/services/aws-sns/.jsiirc.json +16 -0
  289. package/lib/services/aws-sns/index.d.ts +1 -0
  290. package/lib/services/aws-sns/index.js +17 -0
  291. package/lib/services/aws-sns/metrics.generated.d.ts +130 -0
  292. package/lib/services/aws-sns/metrics.generated.js +203 -0
  293. package/lib/services/aws-sqs/.jsiirc.json +16 -0
  294. package/lib/services/aws-sqs/index.d.ts +1 -0
  295. package/lib/services/aws-sqs/index.js +17 -0
  296. package/lib/services/aws-sqs/metrics.generated.d.ts +87 -0
  297. package/lib/services/aws-sqs/metrics.generated.js +190 -0
  298. package/lib/services/aws-stepfunctions/.jsiirc.json +16 -0
  299. package/lib/services/aws-stepfunctions/index.d.ts +1 -0
  300. package/lib/services/aws-stepfunctions/index.js +17 -0
  301. package/lib/services/aws-stepfunctions/metrics.generated.d.ts +159 -0
  302. package/lib/services/aws-stepfunctions/metrics.generated.js +318 -0
  303. package/lib/services/aws-synthetics/.jsiirc.json +16 -0
  304. package/lib/services/aws-synthetics/index.d.ts +1 -0
  305. package/lib/services/aws-synthetics/index.js +17 -0
  306. package/lib/services/aws-synthetics/metrics.generated.d.ts +80 -0
  307. package/lib/services/aws-synthetics/metrics.generated.js +170 -0
  308. package/lib/services/aws-timestream/.jsiirc.json +16 -0
  309. package/lib/services/aws-timestream/index.d.ts +1 -0
  310. package/lib/services/aws-timestream/index.js +17 -0
  311. package/lib/services/aws-timestream/metrics.generated.d.ts +54 -0
  312. package/lib/services/aws-timestream/metrics.generated.js +88 -0
  313. package/lib/services/aws-transfer/.jsiirc.json +16 -0
  314. package/lib/services/aws-transfer/index.d.ts +1 -0
  315. package/lib/services/aws-transfer/index.js +17 -0
  316. package/lib/services/aws-transfer/metrics.generated.d.ts +45 -0
  317. package/lib/services/aws-transfer/metrics.generated.js +92 -0
  318. package/lib/services/aws-workspaces/.jsiirc.json +16 -0
  319. package/lib/services/aws-workspaces/index.d.ts +1 -0
  320. package/lib/services/aws-workspaces/index.js +17 -0
  321. package/lib/services/aws-workspaces/metrics.generated.d.ts +836 -0
  322. package/lib/services/aws-workspaces/metrics.generated.js +1724 -0
  323. package/lib/services/index.d.ts +62 -0
  324. package/lib/services/index.js +99 -0
  325. package/package.json +189 -0
  326. package/rosetta/_generated.ts-fixture +6 -0
  327. package/rosetta/default.ts-fixture +5 -0
  328. package/scripts/config.d.ts +6 -0
  329. package/scripts/config.js +9 -0
  330. package/scripts/gen.d.ts +1 -0
  331. package/scripts/gen.js +133 -0
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.DocDBMetrics = void 0;
37
+ /* eslint-disable @stylistic/max-len, eol-last */
38
+ const cloudwatch = __importStar(require("aws-cdk-lib/aws-cloudwatch"));
39
+ /**
40
+ * CloudWatch metrics facade for AWS/DocDB
41
+ * This class contains helper functions to initialize the dimension-sets classes
42
+ * for selected resources if available.
43
+ *
44
+ * @stability external
45
+ */
46
+ class DocDBMetrics {
47
+ }
48
+ exports.DocDBMetrics = DocDBMetrics;
49
+ (function (DocDBMetrics) {
50
+ /**
51
+ * Metrics for dimension set: DatabaseInstance {DBInstanceIdentifier}
52
+ *
53
+ * @stability external
54
+ */
55
+ class DatabaseInstanceMetrics {
56
+ dimensions;
57
+ constructor(props) {
58
+ this.dimensions = {
59
+ DBInstanceIdentifier: props.dbInstanceIdentifier
60
+ };
61
+ }
62
+ /**
63
+ * Average of the CPUUtilization metric
64
+ *
65
+ * @default - Average over 5 minutes
66
+ */
67
+ cpuUtilization(options) {
68
+ return new cloudwatch.Metric({
69
+ namespace: "AWS/DocDB",
70
+ metricName: "CPUUtilization",
71
+ dimensionsMap: this.dimensions,
72
+ statistic: "Average",
73
+ ...options
74
+ });
75
+ }
76
+ /**
77
+ * Average of the DatabaseConnections metric
78
+ *
79
+ * @default - Average over 5 minutes
80
+ */
81
+ databaseConnections(options) {
82
+ return new cloudwatch.Metric({
83
+ namespace: "AWS/DocDB",
84
+ metricName: "DatabaseConnections",
85
+ dimensionsMap: this.dimensions,
86
+ statistic: "Average",
87
+ ...options
88
+ });
89
+ }
90
+ /**
91
+ * Average of the EngineUptime metric
92
+ *
93
+ * @default - Average over 5 minutes
94
+ */
95
+ engineUptime(options) {
96
+ return new cloudwatch.Metric({
97
+ namespace: "AWS/DocDB",
98
+ metricName: "EngineUptime",
99
+ dimensionsMap: this.dimensions,
100
+ statistic: "Average",
101
+ ...options
102
+ });
103
+ }
104
+ /**
105
+ * Sum of the ReadThroughput metric
106
+ *
107
+ * @default - Sum over 5 minutes
108
+ */
109
+ readThroughput(options) {
110
+ return new cloudwatch.Metric({
111
+ namespace: "AWS/DocDB",
112
+ metricName: "ReadThroughput",
113
+ dimensionsMap: this.dimensions,
114
+ statistic: "Sum",
115
+ ...options
116
+ });
117
+ }
118
+ /**
119
+ * Sum of the WriteThroughput metric
120
+ *
121
+ * @default - Sum over 5 minutes
122
+ */
123
+ writeThroughput(options) {
124
+ return new cloudwatch.Metric({
125
+ namespace: "AWS/DocDB",
126
+ metricName: "WriteThroughput",
127
+ dimensionsMap: this.dimensions,
128
+ statistic: "Sum",
129
+ ...options
130
+ });
131
+ }
132
+ }
133
+ DocDBMetrics.DatabaseInstanceMetrics = DatabaseInstanceMetrics;
134
+ })(DocDBMetrics || (exports.DocDBMetrics = DocDBMetrics = {}));
@@ -0,0 +1,16 @@
1
+ {
2
+ "targets": {
3
+ "java": {
4
+ "package": "software.amazon.awscdk.metricsfacade.alpha.services.dynamodb"
5
+ },
6
+ "dotnet": {
7
+ "namespace": "Amazon.CDK.MetricsFacade.Alpha.AWS.DynamoDB"
8
+ },
9
+ "python": {
10
+ "module": "aws_cdk.metrics_facade_alpha.aws_dynamodb"
11
+ },
12
+ "go": {
13
+ "packageName": "metricsfacadealphaawsdynamodb"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1 @@
1
+ export * from './metrics.generated';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./metrics.generated"), exports);
@@ -0,0 +1,444 @@
1
+ import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
2
+ import { ITableRef } from "aws-cdk-lib/aws-dynamodb";
3
+ /**
4
+ * CloudWatch metrics facade for AWS/DynamoDB
5
+ * This class contains helper functions to initialize the dimension-sets classes
6
+ * for selected resources if available.
7
+ *
8
+ * @stability external
9
+ */
10
+ export declare abstract class DynamoDBMetrics {
11
+ /**
12
+ * Create TableMetrics from a Table reference
13
+ */
14
+ static fromTable(ref: ITableRef): DynamoDBMetrics.TableMetrics;
15
+ }
16
+ export declare namespace DynamoDBMetrics {
17
+ /**
18
+ * Metrics for dimension set: Table {TableName}
19
+ *
20
+ * @stability external
21
+ */
22
+ class TableMetrics {
23
+ private readonly dimensions;
24
+ constructor(props: DynamoDBMetrics.TableMetricsProps);
25
+ /**
26
+ * Sum of the ConditionalCheckFailedRequests metric
27
+ *
28
+ * @default - Sum over 5 minutes
29
+ */
30
+ conditionalCheckFailedRequests(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
31
+ /**
32
+ * Sum of the ConsumedReadCapacityUnits metric
33
+ *
34
+ * @default - Sum over 5 minutes
35
+ */
36
+ consumedReadCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
37
+ /**
38
+ * Sum of the ConsumedWriteCapacityUnits metric
39
+ *
40
+ * @default - Sum over 5 minutes
41
+ */
42
+ consumedWriteCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
43
+ /**
44
+ * Average of the ProvisionedReadCapacityUnits metric
45
+ *
46
+ * @default - Average over 5 minutes
47
+ */
48
+ provisionedReadCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
49
+ /**
50
+ * Average of the ProvisionedWriteCapacityUnits metric
51
+ *
52
+ * @default - Average over 5 minutes
53
+ */
54
+ provisionedWriteCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
55
+ /**
56
+ * Sum of the ReadThrottleEvents metric
57
+ *
58
+ * @default - Sum over 5 minutes
59
+ */
60
+ readThrottleEvents(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
61
+ /**
62
+ * Sum of the TimeToLiveDeletedItemCount metric
63
+ *
64
+ * @default - Sum over 5 minutes
65
+ */
66
+ timeToLiveDeletedItemCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
67
+ /**
68
+ * Average of the TransactionConflict metric
69
+ *
70
+ * @default - Average over 5 minutes
71
+ */
72
+ transactionConflict(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
73
+ /**
74
+ * Sum of the WriteThrottleEvents metric
75
+ *
76
+ * @default - Sum over 5 minutes
77
+ */
78
+ writeThrottleEvents(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
79
+ }
80
+ /**
81
+ * Dimensions for TableMetrics
82
+ *
83
+ * @struct
84
+ * @stability external
85
+ */
86
+ interface TableMetricsProps {
87
+ /**
88
+ * The TableName dimension
89
+ */
90
+ readonly tableName: string;
91
+ }
92
+ /**
93
+ * Metrics for dimension set: GlobalSecondaryIndex {TableName, GlobalSecondaryIndexName}
94
+ *
95
+ * @stability external
96
+ */
97
+ class GlobalSecondaryIndexMetrics {
98
+ private readonly dimensions;
99
+ constructor(props: DynamoDBMetrics.GlobalSecondaryIndexMetricsProps);
100
+ /**
101
+ * Sum of the ConsumedReadCapacityUnits metric
102
+ *
103
+ * @default - Sum over 5 minutes
104
+ */
105
+ consumedReadCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
106
+ /**
107
+ * Sum of the ConsumedWriteCapacityUnits metric
108
+ *
109
+ * @default - Sum over 5 minutes
110
+ */
111
+ consumedWriteCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
112
+ /**
113
+ * Average of the ProvisionedReadCapacityUnits metric
114
+ *
115
+ * @default - Average over 5 minutes
116
+ */
117
+ provisionedReadCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
118
+ /**
119
+ * Average of the ProvisionedWriteCapacityUnits metric
120
+ *
121
+ * @default - Average over 5 minutes
122
+ */
123
+ provisionedWriteCapacityUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
124
+ /**
125
+ * Sum of the ReadThrottleEvents metric
126
+ *
127
+ * @default - Sum over 5 minutes
128
+ */
129
+ readThrottleEvents(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
130
+ /**
131
+ * Sum of the WriteThrottleEvents metric
132
+ *
133
+ * @default - Sum over 5 minutes
134
+ */
135
+ writeThrottleEvents(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
136
+ /**
137
+ * Sum of the OnlineIndexConsumedWriteCapacity metric
138
+ *
139
+ * @default - Sum over 5 minutes
140
+ */
141
+ onlineIndexConsumedWriteCapacity(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
142
+ /**
143
+ * Average of the OnlineIndexPercentageProgress metric
144
+ *
145
+ * @default - Average over 5 minutes
146
+ */
147
+ onlineIndexPercentageProgress(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
148
+ /**
149
+ * Sum of the OnlineIndexThrottleEvents metric
150
+ *
151
+ * @default - Sum over 5 minutes
152
+ */
153
+ onlineIndexThrottleEvents(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
154
+ }
155
+ /**
156
+ * Dimensions for GlobalSecondaryIndexMetrics
157
+ *
158
+ * @struct
159
+ * @stability external
160
+ */
161
+ interface GlobalSecondaryIndexMetricsProps {
162
+ /**
163
+ * The TableName dimension
164
+ */
165
+ readonly tableName: string;
166
+ /**
167
+ * The GlobalSecondaryIndexName dimension
168
+ */
169
+ readonly globalSecondaryIndexName: DynamoDBMetrics.GlobalSecondaryIndexMetricsGlobalSecondaryIndexName;
170
+ }
171
+ /**
172
+ * Known values for the GlobalSecondaryIndexName dimension
173
+ */
174
+ enum GlobalSecondaryIndexMetricsGlobalSecondaryIndexName {
175
+ /** GlobalSecondaryIndexName = GlobalSecondaryIndexName */
176
+ GLOBAL_SECONDARY_INDEX_NAME = "GlobalSecondaryIndexName"
177
+ }
178
+ /**
179
+ * Metrics for dimension set: Operation {TableName, Operation}
180
+ *
181
+ * @stability external
182
+ */
183
+ class OperationMetrics {
184
+ private readonly dimensions;
185
+ constructor(props: DynamoDBMetrics.OperationMetricsProps);
186
+ /**
187
+ * Sum of the ReturnedItemCount metric
188
+ *
189
+ * @default - Sum over 5 minutes
190
+ */
191
+ returnedItemCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
192
+ /**
193
+ * Average of the SuccessfulRequestLatency metric
194
+ *
195
+ * @default - Average over 5 minutes
196
+ */
197
+ successfulRequestLatency(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
198
+ /**
199
+ * Sum of the SystemErrors metric
200
+ *
201
+ * @default - Sum over 5 minutes
202
+ */
203
+ systemErrors(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
204
+ /**
205
+ * Sum of the ThrottledRequests metric
206
+ *
207
+ * @default - Sum over 5 minutes
208
+ */
209
+ throttledRequests(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
210
+ }
211
+ /**
212
+ * Dimensions for OperationMetrics
213
+ *
214
+ * @struct
215
+ * @stability external
216
+ */
217
+ interface OperationMetricsProps {
218
+ /**
219
+ * The TableName dimension
220
+ */
221
+ readonly tableName: string;
222
+ /**
223
+ * The Operation dimension
224
+ */
225
+ readonly operation: DynamoDBMetrics.OperationMetricsOperation;
226
+ }
227
+ /**
228
+ * Known values for the Operation dimension
229
+ */
230
+ enum OperationMetricsOperation {
231
+ /** Operation = GetItem */
232
+ GET_ITEM = "GetItem",
233
+ /** Operation = PutItem */
234
+ PUT_ITEM = "PutItem",
235
+ /** Operation = Scan */
236
+ SCAN = "Scan",
237
+ /** Operation = BatchExecuteStatement */
238
+ BATCH_EXECUTE_STATEMENT = "BatchExecuteStatement",
239
+ /** Operation = BatchGetItem */
240
+ BATCH_GET_ITEM = "BatchGetItem",
241
+ /** Operation = BatchWriteItem */
242
+ BATCH_WRITE_ITEM = "BatchWriteItem",
243
+ /** Operation = DeleteItem */
244
+ DELETE_ITEM = "DeleteItem",
245
+ /** Operation = ExecuteStatement */
246
+ EXECUTE_STATEMENT = "ExecuteStatement",
247
+ /** Operation = ExecuteTransaction */
248
+ EXECUTE_TRANSACTION = "ExecuteTransaction",
249
+ /** Operation = Query */
250
+ QUERY = "Query",
251
+ /** Operation = TransactGetItems */
252
+ TRANSACT_GET_ITEMS = "TransactGetItems",
253
+ /** Operation = TransactWriteItems */
254
+ TRANSACT_WRITE_ITEMS = "TransactWriteItems",
255
+ /** Operation = UpdateItem */
256
+ UPDATE_ITEM = "UpdateItem",
257
+ /** Operation = GetRecords */
258
+ GET_RECORDS = "GetRecords"
259
+ }
260
+ /**
261
+ * Metrics for dimension set: DelegatedOperation {TableName, DelegatedOperation}
262
+ *
263
+ * @stability external
264
+ */
265
+ class DelegatedOperationMetrics {
266
+ private readonly dimensions;
267
+ constructor(props: DynamoDBMetrics.DelegatedOperationMetricsProps);
268
+ /**
269
+ * Average of the AgeOfOldestUnreplicatedRecord metric
270
+ *
271
+ * @default - Average over 5 minutes
272
+ */
273
+ ageOfOldestUnreplicatedRecord(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
274
+ /**
275
+ * Average of the ConsumedChangeDataCaptureUnits metric
276
+ *
277
+ * @default - Average over 5 minutes
278
+ */
279
+ consumedChangeDataCaptureUnits(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
280
+ /**
281
+ * Average of the ThrottledPutRecordCount metric
282
+ *
283
+ * @default - Average over 5 minutes
284
+ */
285
+ throttledPutRecordCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
286
+ }
287
+ /**
288
+ * Dimensions for DelegatedOperationMetrics
289
+ *
290
+ * @struct
291
+ * @stability external
292
+ */
293
+ interface DelegatedOperationMetricsProps {
294
+ /**
295
+ * The TableName dimension
296
+ */
297
+ readonly tableName: string;
298
+ /**
299
+ * The DelegatedOperation dimension
300
+ */
301
+ readonly delegatedOperation: string;
302
+ }
303
+ /**
304
+ * Metrics for dimension set: ReceivingRegion {TableName, ReceivingRegion}
305
+ *
306
+ * @stability external
307
+ */
308
+ class ReceivingRegionMetrics {
309
+ private readonly dimensions;
310
+ constructor(props: DynamoDBMetrics.ReceivingRegionMetricsProps);
311
+ /**
312
+ * Average of the PendingReplicationCount metric
313
+ *
314
+ * @default - Average over 5 minutes
315
+ */
316
+ pendingReplicationCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
317
+ /**
318
+ * Average of the ReplicationLatency metric
319
+ *
320
+ * @default - Average over 5 minutes
321
+ */
322
+ replicationLatency(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
323
+ }
324
+ /**
325
+ * Dimensions for ReceivingRegionMetrics
326
+ *
327
+ * @struct
328
+ * @stability external
329
+ */
330
+ interface ReceivingRegionMetricsProps {
331
+ /**
332
+ * The TableName dimension
333
+ */
334
+ readonly tableName: string;
335
+ /**
336
+ * The ReceivingRegion dimension
337
+ */
338
+ readonly receivingRegion: string;
339
+ }
340
+ /**
341
+ * Metrics for dimension set: OperationPerStream {TableName, StreamLabel, Operation}
342
+ *
343
+ * @stability external
344
+ */
345
+ class OperationPerStreamMetrics {
346
+ private readonly dimensions;
347
+ constructor(props: DynamoDBMetrics.OperationPerStreamMetricsProps);
348
+ /**
349
+ * Average of the ReturnedBytes metric
350
+ *
351
+ * @default - Average over 5 minutes
352
+ */
353
+ returnedBytes(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
354
+ /**
355
+ * Average of the ReturnedRecordsCount metric
356
+ *
357
+ * @default - Average over 5 minutes
358
+ */
359
+ returnedRecordsCount(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
360
+ }
361
+ /**
362
+ * Dimensions for OperationPerStreamMetrics
363
+ *
364
+ * @struct
365
+ * @stability external
366
+ */
367
+ interface OperationPerStreamMetricsProps {
368
+ /**
369
+ * The TableName dimension
370
+ */
371
+ readonly tableName: string;
372
+ /**
373
+ * The StreamLabel dimension
374
+ */
375
+ readonly streamLabel: string;
376
+ /**
377
+ * The Operation dimension
378
+ */
379
+ readonly operation: string;
380
+ }
381
+ /**
382
+ * Metrics for dimension set: Account {no dimensions}
383
+ *
384
+ * @stability external
385
+ */
386
+ class AccountMetrics {
387
+ private readonly dimensions;
388
+ constructor();
389
+ /**
390
+ * Maximum of the AccountMaxReads metric
391
+ *
392
+ * @default - Maximum over 5 minutes
393
+ */
394
+ accountMaxReads(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
395
+ /**
396
+ * Maximum of the AccountMaxTableLevelReads metric
397
+ *
398
+ * @default - Maximum over 5 minutes
399
+ */
400
+ accountMaxTableLevelReads(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
401
+ /**
402
+ * Maximum of the AccountMaxTableLevelWrites metric
403
+ *
404
+ * @default - Maximum over 5 minutes
405
+ */
406
+ accountMaxTableLevelWrites(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
407
+ /**
408
+ * Maximum of the AccountMaxWrites metric
409
+ *
410
+ * @default - Maximum over 5 minutes
411
+ */
412
+ accountMaxWrites(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
413
+ /**
414
+ * Average of the AccountProvisionedReadCapacityUtilization metric
415
+ *
416
+ * @default - Average over 5 minutes
417
+ */
418
+ accountProvisionedReadCapacityUtilization(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
419
+ /**
420
+ * Average of the AccountProvisionedWriteCapacityUtilization metric
421
+ *
422
+ * @default - Average over 5 minutes
423
+ */
424
+ accountProvisionedWriteCapacityUtilization(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
425
+ /**
426
+ * Average of the MaxProvisionedTableReadCapacityUtilization metric
427
+ *
428
+ * @default - Average over 5 minutes
429
+ */
430
+ maxProvisionedTableReadCapacityUtilization(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
431
+ /**
432
+ * Average of the MaxProvisionedTableWriteCapacityUtilization metric
433
+ *
434
+ * @default - Average over 5 minutes
435
+ */
436
+ maxProvisionedTableWriteCapacityUtilization(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
437
+ /**
438
+ * Sum of the UserErrors metric
439
+ *
440
+ * @default - Sum over 5 minutes
441
+ */
442
+ userErrors(options?: cloudwatch.MetricOptions): cloudwatch.IMetric;
443
+ }
444
+ }