@epilot360/icons 0.0.2 → 0.1.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 (479) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.map +1 -1
  3. package/index.js.map +1 -1
  4. package/package.json +35 -8
  5. package/react/Close/index.d.ts +4 -0
  6. package/react/Close/index.js +28 -0
  7. package/react/Close/index.js.map +1 -0
  8. package/react/ContentCopy/index.d.ts +4 -0
  9. package/react/ContentCopy/index.js +28 -0
  10. package/react/ContentCopy/index.js.map +1 -0
  11. package/react/DataObject/index.d.ts +4 -0
  12. package/react/DataObject/index.js +28 -0
  13. package/react/DataObject/index.js.map +1 -0
  14. package/react/Edit/index.d.ts +4 -0
  15. package/react/Edit/index.js +28 -0
  16. package/react/Edit/index.js.map +1 -0
  17. package/react/EpilotIcon.d.ts +21 -0
  18. package/react/EpilotIcon.js +41 -0
  19. package/react/EpilotIcon.js.map +1 -0
  20. package/react/OpenInNew/index.d.ts +4 -0
  21. package/react/OpenInNew/index.js +28 -0
  22. package/react/OpenInNew/index.js.map +1 -0
  23. package/react/Share/index.d.ts +4 -0
  24. package/react/Share/index.js +28 -0
  25. package/react/Share/index.js.map +1 -0
  26. package/react/index.d.ts +6 -0
  27. package/react/index.js +6 -0
  28. package/react/index.js.map +1 -1
  29. package/react/types.d.ts +7 -0
  30. package/react/types.js +9 -0
  31. package/react/types.js.map +1 -0
  32. package/src/stories/Readme.mdx +53 -0
  33. package/iac/node_modules/@balena/dockerignore/LICENSE.md +0 -206
  34. package/iac/node_modules/@balena/dockerignore/README.md +0 -261
  35. package/iac/node_modules/@cspotcode/source-map-support/LICENSE.md +0 -21
  36. package/iac/node_modules/@cspotcode/source-map-support/README.md +0 -289
  37. package/iac/node_modules/@jridgewell/resolve-uri/LICENSE +0 -19
  38. package/iac/node_modules/@jridgewell/resolve-uri/README.md +0 -40
  39. package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +0 -1
  40. package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +0 -1
  41. package/iac/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
  42. package/iac/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
  43. package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
  44. package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -1
  45. package/iac/node_modules/@jridgewell/trace-mapping/LICENSE +0 -19
  46. package/iac/node_modules/@jridgewell/trace-mapping/README.md +0 -193
  47. package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +0 -1
  48. package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +0 -1
  49. package/iac/node_modules/@tsconfig/node10/LICENSE +0 -21
  50. package/iac/node_modules/@tsconfig/node10/README.md +0 -40
  51. package/iac/node_modules/@tsconfig/node12/LICENSE +0 -21
  52. package/iac/node_modules/@tsconfig/node12/README.md +0 -40
  53. package/iac/node_modules/@tsconfig/node14/LICENSE +0 -21
  54. package/iac/node_modules/@tsconfig/node14/README.md +0 -40
  55. package/iac/node_modules/@tsconfig/node16/LICENSE +0 -21
  56. package/iac/node_modules/@tsconfig/node16/README.md +0 -40
  57. package/iac/node_modules/@types/jest/LICENSE +0 -21
  58. package/iac/node_modules/@types/jest/README.md +0 -17
  59. package/iac/node_modules/@types/node/LICENSE +0 -21
  60. package/iac/node_modules/@types/node/README.md +0 -16
  61. package/iac/node_modules/@types/prettier/LICENSE +0 -21
  62. package/iac/node_modules/@types/prettier/README.md +0 -16
  63. package/iac/node_modules/acorn/LICENSE +0 -21
  64. package/iac/node_modules/acorn/README.md +0 -273
  65. package/iac/node_modules/acorn-walk/LICENSE +0 -21
  66. package/iac/node_modules/acorn-walk/README.md +0 -126
  67. package/iac/node_modules/ansi-regex/license +0 -9
  68. package/iac/node_modules/ansi-regex/readme.md +0 -78
  69. package/iac/node_modules/ansi-styles/license +0 -9
  70. package/iac/node_modules/ansi-styles/readme.md +0 -144
  71. package/iac/node_modules/arg/LICENSE.md +0 -21
  72. package/iac/node_modules/arg/README.md +0 -280
  73. package/iac/node_modules/at-least-node/LICENSE +0 -6
  74. package/iac/node_modules/at-least-node/README.md +0 -25
  75. package/iac/node_modules/aws-cdk/LICENSE +0 -201
  76. package/iac/node_modules/aws-cdk/README.md +0 -742
  77. package/iac/node_modules/aws-cdk/lib/init-templates/LICENSE +0 -16
  78. package/iac/node_modules/aws-cdk/lib/init-templates/app/csharp/README.md +0 -14
  79. package/iac/node_modules/aws-cdk/lib/init-templates/app/fsharp/README.md +0 -18
  80. package/iac/node_modules/aws-cdk/lib/init-templates/app/go/README.md +0 -12
  81. package/iac/node_modules/aws-cdk/lib/init-templates/app/java/README.md +0 -18
  82. package/iac/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md +0 -12
  83. package/iac/node_modules/aws-cdk/lib/init-templates/app/python/README.template.md +0 -58
  84. package/iac/node_modules/aws-cdk/lib/init-templates/app/typescript/README.md +0 -14
  85. package/iac/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md +0 -12
  86. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/csharp/README.template.md +0 -19
  87. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/fsharp/README.template.md +0 -20
  88. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/go/README.md +0 -12
  89. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/java/README.template.md +0 -19
  90. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md +0 -13
  91. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/python/README.template.md +0 -65
  92. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/typescript/README.template.md +0 -15
  93. package/iac/node_modules/aws-cdk/test/integ/cli/README.md +0 -48
  94. package/iac/node_modules/aws-cdk/test/integ/cli-regression-patches/README.md +0 -54
  95. package/iac/node_modules/aws-cdk-lib/LICENSE +0 -201
  96. package/iac/node_modules/aws-cdk-lib/README.md +0 -1119
  97. package/iac/node_modules/aws-cdk-lib/alexa-ask/README.md +0 -27
  98. package/iac/node_modules/aws-cdk-lib/assertions/README.md +0 -571
  99. package/iac/node_modules/aws-cdk-lib/assets/README.md +0 -4
  100. package/iac/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md +0 -27
  101. package/iac/node_modules/aws-cdk-lib/aws-acmpca/README.md +0 -59
  102. package/iac/node_modules/aws-cdk-lib/aws-amazonmq/README.md +0 -27
  103. package/iac/node_modules/aws-cdk-lib/aws-amplify/README.md +0 -32
  104. package/iac/node_modules/aws-cdk-lib/aws-amplifyuibuilder/README.md +0 -27
  105. package/iac/node_modules/aws-cdk-lib/aws-apigateway/README.md +0 -1335
  106. package/iac/node_modules/aws-cdk-lib/aws-apigatewayv2/README.md +0 -32
  107. package/iac/node_modules/aws-cdk-lib/aws-appconfig/README.md +0 -27
  108. package/iac/node_modules/aws-cdk-lib/aws-appflow/README.md +0 -27
  109. package/iac/node_modules/aws-cdk-lib/aws-appintegrations/README.md +0 -27
  110. package/iac/node_modules/aws-cdk-lib/aws-applicationautoscaling/README.md +0 -246
  111. package/iac/node_modules/aws-cdk-lib/aws-applicationinsights/README.md +0 -27
  112. package/iac/node_modules/aws-cdk-lib/aws-appmesh/README.md +0 -883
  113. package/iac/node_modules/aws-cdk-lib/aws-apprunner/README.md +0 -32
  114. package/iac/node_modules/aws-cdk-lib/aws-appstream/README.md +0 -27
  115. package/iac/node_modules/aws-cdk-lib/aws-appsync/README.md +0 -32
  116. package/iac/node_modules/aws-cdk-lib/aws-aps/README.md +0 -27
  117. package/iac/node_modules/aws-cdk-lib/aws-athena/README.md +0 -27
  118. package/iac/node_modules/aws-cdk-lib/aws-auditmanager/README.md +0 -27
  119. package/iac/node_modules/aws-cdk-lib/aws-autoscaling/README.md +0 -540
  120. package/iac/node_modules/aws-cdk-lib/aws-autoscaling-common/README.md +0 -8
  121. package/iac/node_modules/aws-cdk-lib/aws-autoscaling-hooktargets/README.md +0 -18
  122. package/iac/node_modules/aws-cdk-lib/aws-autoscalingplans/README.md +0 -27
  123. package/iac/node_modules/aws-cdk-lib/aws-backup/README.md +0 -210
  124. package/iac/node_modules/aws-cdk-lib/aws-batch/README.md +0 -32
  125. package/iac/node_modules/aws-cdk-lib/aws-billingconductor/README.md +0 -27
  126. package/iac/node_modules/aws-cdk-lib/aws-budgets/README.md +0 -27
  127. package/iac/node_modules/aws-cdk-lib/aws-cassandra/README.md +0 -27
  128. package/iac/node_modules/aws-cdk-lib/aws-ce/README.md +0 -27
  129. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/README.md +0 -166
  130. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/README.md +0 -2
  131. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt +0 -8
  132. package/iac/node_modules/aws-cdk-lib/aws-chatbot/README.md +0 -44
  133. package/iac/node_modules/aws-cdk-lib/aws-cloud9/README.md +0 -32
  134. package/iac/node_modules/aws-cdk-lib/aws-cloudformation/README.md +0 -4
  135. package/iac/node_modules/aws-cdk-lib/aws-cloudfront/README.md +0 -973
  136. package/iac/node_modules/aws-cdk-lib/aws-cloudfront-origins/README.md +0 -126
  137. package/iac/node_modules/aws-cdk-lib/aws-cloudtrail/README.md +0 -189
  138. package/iac/node_modules/aws-cdk-lib/aws-cloudwatch/README.md +0 -579
  139. package/iac/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md +0 -43
  140. package/iac/node_modules/aws-cdk-lib/aws-codeartifact/README.md +0 -27
  141. package/iac/node_modules/aws-cdk-lib/aws-codebuild/README.md +0 -759
  142. package/iac/node_modules/aws-cdk-lib/aws-codecommit/README.md +0 -85
  143. package/iac/node_modules/aws-cdk-lib/aws-codedeploy/README.md +0 -319
  144. package/iac/node_modules/aws-cdk-lib/aws-codeguruprofiler/README.md +0 -37
  145. package/iac/node_modules/aws-cdk-lib/aws-codegurureviewer/README.md +0 -27
  146. package/iac/node_modules/aws-cdk-lib/aws-codepipeline/README.md +0 -481
  147. package/iac/node_modules/aws-cdk-lib/aws-codepipeline-actions/README.md +0 -1203
  148. package/iac/node_modules/aws-cdk-lib/aws-codestar/README.md +0 -32
  149. package/iac/node_modules/aws-cdk-lib/aws-codestarconnections/README.md +0 -27
  150. package/iac/node_modules/aws-cdk-lib/aws-codestarnotifications/README.md +0 -68
  151. package/iac/node_modules/aws-cdk-lib/aws-cognito/README.md +0 -843
  152. package/iac/node_modules/aws-cdk-lib/aws-config/README.md +0 -218
  153. package/iac/node_modules/aws-cdk-lib/aws-connect/README.md +0 -27
  154. package/iac/node_modules/aws-cdk-lib/aws-controltower/README.md +0 -27
  155. package/iac/node_modules/aws-cdk-lib/aws-cur/README.md +0 -27
  156. package/iac/node_modules/aws-cdk-lib/aws-customerprofiles/README.md +0 -27
  157. package/iac/node_modules/aws-cdk-lib/aws-databrew/README.md +0 -27
  158. package/iac/node_modules/aws-cdk-lib/aws-datapipeline/README.md +0 -27
  159. package/iac/node_modules/aws-cdk-lib/aws-datasync/README.md +0 -27
  160. package/iac/node_modules/aws-cdk-lib/aws-dax/README.md +0 -27
  161. package/iac/node_modules/aws-cdk-lib/aws-detective/README.md +0 -27
  162. package/iac/node_modules/aws-cdk-lib/aws-devopsguru/README.md +0 -27
  163. package/iac/node_modules/aws-cdk-lib/aws-directoryservice/README.md +0 -27
  164. package/iac/node_modules/aws-cdk-lib/aws-dlm/README.md +0 -27
  165. package/iac/node_modules/aws-cdk-lib/aws-dms/README.md +0 -27
  166. package/iac/node_modules/aws-cdk-lib/aws-docdb/README.md +0 -153
  167. package/iac/node_modules/aws-cdk-lib/aws-dynamodb/README.md +0 -200
  168. package/iac/node_modules/aws-cdk-lib/aws-ec2/README.md +0 -1514
  169. package/iac/node_modules/aws-cdk-lib/aws-ecr/README.md +0 -110
  170. package/iac/node_modules/aws-cdk-lib/aws-ecr-assets/README.md +0 -167
  171. package/iac/node_modules/aws-cdk-lib/aws-ecs/README.md +0 -1225
  172. package/iac/node_modules/aws-cdk-lib/aws-ecs-patterns/README.md +0 -980
  173. package/iac/node_modules/aws-cdk-lib/aws-efs/README.md +0 -154
  174. package/iac/node_modules/aws-cdk-lib/aws-eks/README.md +0 -1450
  175. package/iac/node_modules/aws-cdk-lib/aws-elasticache/README.md +0 -27
  176. package/iac/node_modules/aws-cdk-lib/aws-elasticbeanstalk/README.md +0 -27
  177. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancing/README.md +0 -40
  178. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +0 -569
  179. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-actions/README.md +0 -68
  180. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-targets/README.md +0 -4
  181. package/iac/node_modules/aws-cdk-lib/aws-elasticsearch/README.md +0 -441
  182. package/iac/node_modules/aws-cdk-lib/aws-emr/README.md +0 -27
  183. package/iac/node_modules/aws-cdk-lib/aws-emrcontainers/README.md +0 -27
  184. package/iac/node_modules/aws-cdk-lib/aws-emrserverless/README.md +0 -27
  185. package/iac/node_modules/aws-cdk-lib/aws-events/README.md +0 -249
  186. package/iac/node_modules/aws-cdk-lib/aws-events-targets/README.md +0 -339
  187. package/iac/node_modules/aws-cdk-lib/aws-eventschemas/README.md +0 -27
  188. package/iac/node_modules/aws-cdk-lib/aws-evidently/README.md +0 -27
  189. package/iac/node_modules/aws-cdk-lib/aws-finspace/README.md +0 -27
  190. package/iac/node_modules/aws-cdk-lib/aws-fis/README.md +0 -27
  191. package/iac/node_modules/aws-cdk-lib/aws-fms/README.md +0 -27
  192. package/iac/node_modules/aws-cdk-lib/aws-forecast/README.md +0 -27
  193. package/iac/node_modules/aws-cdk-lib/aws-frauddetector/README.md +0 -27
  194. package/iac/node_modules/aws-cdk-lib/aws-fsx/README.md +0 -200
  195. package/iac/node_modules/aws-cdk-lib/aws-gamelift/README.md +0 -27
  196. package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md +0 -182
  197. package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator-endpoints/README.md +0 -10
  198. package/iac/node_modules/aws-cdk-lib/aws-glue/README.md +0 -32
  199. package/iac/node_modules/aws-cdk-lib/aws-greengrass/README.md +0 -27
  200. package/iac/node_modules/aws-cdk-lib/aws-greengrassv2/README.md +0 -27
  201. package/iac/node_modules/aws-cdk-lib/aws-groundstation/README.md +0 -27
  202. package/iac/node_modules/aws-cdk-lib/aws-guardduty/README.md +0 -27
  203. package/iac/node_modules/aws-cdk-lib/aws-healthlake/README.md +0 -27
  204. package/iac/node_modules/aws-cdk-lib/aws-iam/README.md +0 -509
  205. package/iac/node_modules/aws-cdk-lib/aws-imagebuilder/README.md +0 -27
  206. package/iac/node_modules/aws-cdk-lib/aws-inspector/README.md +0 -27
  207. package/iac/node_modules/aws-cdk-lib/aws-inspectorv2/README.md +0 -27
  208. package/iac/node_modules/aws-cdk-lib/aws-iot/README.md +0 -32
  209. package/iac/node_modules/aws-cdk-lib/aws-iot1click/README.md +0 -27
  210. package/iac/node_modules/aws-cdk-lib/aws-iotanalytics/README.md +0 -27
  211. package/iac/node_modules/aws-cdk-lib/aws-iotcoredeviceadvisor/README.md +0 -27
  212. package/iac/node_modules/aws-cdk-lib/aws-iotevents/README.md +0 -32
  213. package/iac/node_modules/aws-cdk-lib/aws-iotfleethub/README.md +0 -27
  214. package/iac/node_modules/aws-cdk-lib/aws-iotsitewise/README.md +0 -27
  215. package/iac/node_modules/aws-cdk-lib/aws-iotthingsgraph/README.md +0 -27
  216. package/iac/node_modules/aws-cdk-lib/aws-iottwinmaker/README.md +0 -27
  217. package/iac/node_modules/aws-cdk-lib/aws-iotwireless/README.md +0 -27
  218. package/iac/node_modules/aws-cdk-lib/aws-ivs/README.md +0 -32
  219. package/iac/node_modules/aws-cdk-lib/aws-kafkaconnect/README.md +0 -27
  220. package/iac/node_modules/aws-cdk-lib/aws-kendra/README.md +0 -27
  221. package/iac/node_modules/aws-cdk-lib/aws-kinesis/README.md +0 -188
  222. package/iac/node_modules/aws-cdk-lib/aws-kinesisanalytics/README.md +0 -27
  223. package/iac/node_modules/aws-cdk-lib/aws-kinesisanalyticsv2/README.md +0 -27
  224. package/iac/node_modules/aws-cdk-lib/aws-kinesisfirehose/README.md +0 -32
  225. package/iac/node_modules/aws-cdk-lib/aws-kinesisvideo/README.md +0 -27
  226. package/iac/node_modules/aws-cdk-lib/aws-kms/README.md +0 -209
  227. package/iac/node_modules/aws-cdk-lib/aws-lakeformation/README.md +0 -27
  228. package/iac/node_modules/aws-cdk-lib/aws-lambda/README.md +0 -985
  229. package/iac/node_modules/aws-cdk-lib/aws-lambda-destinations/README.md +0 -147
  230. package/iac/node_modules/aws-cdk-lib/aws-lambda-event-sources/README.md +0 -281
  231. package/iac/node_modules/aws-cdk-lib/aws-lambda-nodejs/README.md +0 -317
  232. package/iac/node_modules/aws-cdk-lib/aws-lex/README.md +0 -27
  233. package/iac/node_modules/aws-cdk-lib/aws-licensemanager/README.md +0 -27
  234. package/iac/node_modules/aws-cdk-lib/aws-lightsail/README.md +0 -27
  235. package/iac/node_modules/aws-cdk-lib/aws-location/README.md +0 -27
  236. package/iac/node_modules/aws-cdk-lib/aws-logs/README.md +0 -322
  237. package/iac/node_modules/aws-cdk-lib/aws-logs-destinations/README.md +0 -7
  238. package/iac/node_modules/aws-cdk-lib/aws-lookoutequipment/README.md +0 -27
  239. package/iac/node_modules/aws-cdk-lib/aws-lookoutmetrics/README.md +0 -27
  240. package/iac/node_modules/aws-cdk-lib/aws-lookoutvision/README.md +0 -27
  241. package/iac/node_modules/aws-cdk-lib/aws-m2/README.md +0 -27
  242. package/iac/node_modules/aws-cdk-lib/aws-macie/README.md +0 -27
  243. package/iac/node_modules/aws-cdk-lib/aws-managedblockchain/README.md +0 -27
  244. package/iac/node_modules/aws-cdk-lib/aws-mediaconnect/README.md +0 -27
  245. package/iac/node_modules/aws-cdk-lib/aws-mediaconvert/README.md +0 -27
  246. package/iac/node_modules/aws-cdk-lib/aws-medialive/README.md +0 -27
  247. package/iac/node_modules/aws-cdk-lib/aws-mediapackage/README.md +0 -27
  248. package/iac/node_modules/aws-cdk-lib/aws-mediastore/README.md +0 -27
  249. package/iac/node_modules/aws-cdk-lib/aws-mediatailor/README.md +0 -27
  250. package/iac/node_modules/aws-cdk-lib/aws-memorydb/README.md +0 -27
  251. package/iac/node_modules/aws-cdk-lib/aws-msk/README.md +0 -32
  252. package/iac/node_modules/aws-cdk-lib/aws-mwaa/README.md +0 -27
  253. package/iac/node_modules/aws-cdk-lib/aws-neptune/README.md +0 -32
  254. package/iac/node_modules/aws-cdk-lib/aws-networkfirewall/README.md +0 -27
  255. package/iac/node_modules/aws-cdk-lib/aws-networkmanager/README.md +0 -27
  256. package/iac/node_modules/aws-cdk-lib/aws-nimblestudio/README.md +0 -27
  257. package/iac/node_modules/aws-cdk-lib/aws-opensearchservice/README.md +0 -378
  258. package/iac/node_modules/aws-cdk-lib/aws-opsworks/README.md +0 -27
  259. package/iac/node_modules/aws-cdk-lib/aws-opsworkscm/README.md +0 -27
  260. package/iac/node_modules/aws-cdk-lib/aws-panorama/README.md +0 -27
  261. package/iac/node_modules/aws-cdk-lib/aws-personalize/README.md +0 -27
  262. package/iac/node_modules/aws-cdk-lib/aws-pinpoint/README.md +0 -27
  263. package/iac/node_modules/aws-cdk-lib/aws-pinpointemail/README.md +0 -27
  264. package/iac/node_modules/aws-cdk-lib/aws-qldb/README.md +0 -27
  265. package/iac/node_modules/aws-cdk-lib/aws-quicksight/README.md +0 -27
  266. package/iac/node_modules/aws-cdk-lib/aws-ram/README.md +0 -27
  267. package/iac/node_modules/aws-cdk-lib/aws-rds/README.md +0 -704
  268. package/iac/node_modules/aws-cdk-lib/aws-redshift/README.md +0 -32
  269. package/iac/node_modules/aws-cdk-lib/aws-redshiftserverless/README.md +0 -27
  270. package/iac/node_modules/aws-cdk-lib/aws-refactorspaces/README.md +0 -27
  271. package/iac/node_modules/aws-cdk-lib/aws-rekognition/README.md +0 -27
  272. package/iac/node_modules/aws-cdk-lib/aws-resiliencehub/README.md +0 -27
  273. package/iac/node_modules/aws-cdk-lib/aws-resourcegroups/README.md +0 -27
  274. package/iac/node_modules/aws-cdk-lib/aws-robomaker/README.md +0 -27
  275. package/iac/node_modules/aws-cdk-lib/aws-route53/README.md +0 -281
  276. package/iac/node_modules/aws-cdk-lib/aws-route53-patterns/README.md +0 -45
  277. package/iac/node_modules/aws-cdk-lib/aws-route53-targets/README.md +0 -181
  278. package/iac/node_modules/aws-cdk-lib/aws-route53recoverycontrol/README.md +0 -27
  279. package/iac/node_modules/aws-cdk-lib/aws-route53recoveryreadiness/README.md +0 -27
  280. package/iac/node_modules/aws-cdk-lib/aws-route53resolver/README.md +0 -32
  281. package/iac/node_modules/aws-cdk-lib/aws-rum/README.md +0 -27
  282. package/iac/node_modules/aws-cdk-lib/aws-s3/README.md +0 -581
  283. package/iac/node_modules/aws-cdk-lib/aws-s3-assets/README.md +0 -179
  284. package/iac/node_modules/aws-cdk-lib/aws-s3-deployment/README.md +0 -349
  285. package/iac/node_modules/aws-cdk-lib/aws-s3-notifications/README.md +0 -46
  286. package/iac/node_modules/aws-cdk-lib/aws-s3objectlambda/README.md +0 -32
  287. package/iac/node_modules/aws-cdk-lib/aws-s3outposts/README.md +0 -27
  288. package/iac/node_modules/aws-cdk-lib/aws-sagemaker/README.md +0 -27
  289. package/iac/node_modules/aws-cdk-lib/aws-sam/README.md +0 -27
  290. package/iac/node_modules/aws-cdk-lib/aws-sdb/README.md +0 -27
  291. package/iac/node_modules/aws-cdk-lib/aws-secretsmanager/README.md +0 -285
  292. package/iac/node_modules/aws-cdk-lib/aws-securityhub/README.md +0 -27
  293. package/iac/node_modules/aws-cdk-lib/aws-servicecatalog/README.md +0 -491
  294. package/iac/node_modules/aws-cdk-lib/aws-servicecatalogappregistry/README.md +0 -32
  295. package/iac/node_modules/aws-cdk-lib/aws-servicediscovery/README.md +0 -45
  296. package/iac/node_modules/aws-cdk-lib/aws-ses/README.md +0 -194
  297. package/iac/node_modules/aws-cdk-lib/aws-ses-actions/README.md +0 -16
  298. package/iac/node_modules/aws-cdk-lib/aws-signer/README.md +0 -41
  299. package/iac/node_modules/aws-cdk-lib/aws-sns/README.md +0 -184
  300. package/iac/node_modules/aws-cdk-lib/aws-sns-subscriptions/README.md +0 -120
  301. package/iac/node_modules/aws-cdk-lib/aws-sqs/README.md +0 -57
  302. package/iac/node_modules/aws-cdk-lib/aws-ssm/README.md +0 -99
  303. package/iac/node_modules/aws-cdk-lib/aws-ssmcontacts/README.md +0 -27
  304. package/iac/node_modules/aws-cdk-lib/aws-ssmincidents/README.md +0 -27
  305. package/iac/node_modules/aws-cdk-lib/aws-sso/README.md +0 -27
  306. package/iac/node_modules/aws-cdk-lib/aws-stepfunctions/README.md +0 -884
  307. package/iac/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/README.md +0 -1288
  308. package/iac/node_modules/aws-cdk-lib/aws-supportapp/README.md +0 -27
  309. package/iac/node_modules/aws-cdk-lib/aws-synthetics/README.md +0 -32
  310. package/iac/node_modules/aws-cdk-lib/aws-timestream/README.md +0 -27
  311. package/iac/node_modules/aws-cdk-lib/aws-transfer/README.md +0 -27
  312. package/iac/node_modules/aws-cdk-lib/aws-voiceid/README.md +0 -27
  313. package/iac/node_modules/aws-cdk-lib/aws-waf/README.md +0 -27
  314. package/iac/node_modules/aws-cdk-lib/aws-wafregional/README.md +0 -27
  315. package/iac/node_modules/aws-cdk-lib/aws-wafv2/README.md +0 -27
  316. package/iac/node_modules/aws-cdk-lib/aws-wisdom/README.md +0 -27
  317. package/iac/node_modules/aws-cdk-lib/aws-workspaces/README.md +0 -27
  318. package/iac/node_modules/aws-cdk-lib/aws-xray/README.md +0 -27
  319. package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/README.md +0 -55
  320. package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/schema/README.md +0 -5
  321. package/iac/node_modules/aws-cdk-lib/cloudformation-include/README.md +0 -466
  322. package/iac/node_modules/aws-cdk-lib/core/README.md +0 -1078
  323. package/iac/node_modules/aws-cdk-lib/custom-resources/README.md +0 -624
  324. package/iac/node_modules/aws-cdk-lib/cx-api/README.md +0 -98
  325. package/iac/node_modules/aws-cdk-lib/lambda-layer-awscli/README.md +0 -19
  326. package/iac/node_modules/aws-cdk-lib/lambda-layer-kubectl/README.md +0 -20
  327. package/iac/node_modules/aws-cdk-lib/lambda-layer-node-proxy-agent/README.md +0 -18
  328. package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/LICENSE.md +0 -206
  329. package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/README.md +0 -261
  330. package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/LICENSE +0 -6
  331. package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/README.md +0 -25
  332. package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/LICENSE.md +0 -21
  333. package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/README.md +0 -97
  334. package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/LICENSE +0 -21
  335. package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/README.md +0 -129
  336. package/iac/node_modules/aws-cdk-lib/node_modules/case/LICENSE +0 -22
  337. package/iac/node_modules/aws-cdk-lib/node_modules/case/README.md +0 -139
  338. package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.min.js.map +0 -1
  339. package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.plus.min.js.map +0 -1
  340. package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/LICENSE +0 -18
  341. package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/README.markdown +0 -62
  342. package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/LICENSE +0 -15
  343. package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/README.md +0 -264
  344. package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/LICENSE +0 -15
  345. package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/README.md +0 -143
  346. package/iac/node_modules/aws-cdk-lib/node_modules/ignore/README.md +0 -412
  347. package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/LICENSE +0 -15
  348. package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/README.md +0 -230
  349. package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/LICENSE +0 -21
  350. package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/README.md +0 -421
  351. package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/LICENSE +0 -15
  352. package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/README.md +0 -166
  353. package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/LICENSE +0 -15
  354. package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/README.md +0 -230
  355. package/iac/node_modules/aws-cdk-lib/node_modules/punycode/README.md +0 -122
  356. package/iac/node_modules/aws-cdk-lib/node_modules/semver/LICENSE +0 -15
  357. package/iac/node_modules/aws-cdk-lib/node_modules/semver/README.md +0 -568
  358. package/iac/node_modules/aws-cdk-lib/node_modules/universalify/LICENSE +0 -20
  359. package/iac/node_modules/aws-cdk-lib/node_modules/universalify/README.md +0 -76
  360. package/iac/node_modules/aws-cdk-lib/node_modules/yallist/LICENSE +0 -15
  361. package/iac/node_modules/aws-cdk-lib/node_modules/yallist/README.md +0 -204
  362. package/iac/node_modules/aws-cdk-lib/node_modules/yaml/LICENSE +0 -13
  363. package/iac/node_modules/aws-cdk-lib/node_modules/yaml/README.md +0 -127
  364. package/iac/node_modules/aws-cdk-lib/pipelines/README.md +0 -1573
  365. package/iac/node_modules/aws-cdk-lib/region-info/README.md +0 -84
  366. package/iac/node_modules/aws-cdk-lib/triggers/README.md +0 -86
  367. package/iac/node_modules/balanced-match/LICENSE.md +0 -21
  368. package/iac/node_modules/balanced-match/README.md +0 -97
  369. package/iac/node_modules/brace-expansion/LICENSE +0 -21
  370. package/iac/node_modules/brace-expansion/README.md +0 -129
  371. package/iac/node_modules/buffer-from/LICENSE +0 -21
  372. package/iac/node_modules/buffer-from/readme.md +0 -69
  373. package/iac/node_modules/case/LICENSE +0 -22
  374. package/iac/node_modules/case/README.md +0 -139
  375. package/iac/node_modules/case/dist/Case.min.js.map +0 -1
  376. package/iac/node_modules/case/dist/Case.plus.min.js.map +0 -1
  377. package/iac/node_modules/chalk/license +0 -9
  378. package/iac/node_modules/chalk/node_modules/ansi-styles/license +0 -9
  379. package/iac/node_modules/chalk/node_modules/ansi-styles/readme.md +0 -152
  380. package/iac/node_modules/chalk/readme.md +0 -341
  381. package/iac/node_modules/color-convert/LICENSE +0 -21
  382. package/iac/node_modules/color-convert/README.md +0 -68
  383. package/iac/node_modules/color-name/LICENSE +0 -8
  384. package/iac/node_modules/color-name/README.md +0 -11
  385. package/iac/node_modules/concat-map/LICENSE +0 -18
  386. package/iac/node_modules/concat-map/README.markdown +0 -62
  387. package/iac/node_modules/constructs/LICENSE +0 -202
  388. package/iac/node_modules/constructs/README.md +0 -28
  389. package/iac/node_modules/create-require/LICENSE +0 -25
  390. package/iac/node_modules/create-require/README.md +0 -46
  391. package/iac/node_modules/diff/LICENSE +0 -31
  392. package/iac/node_modules/diff/README.md +0 -207
  393. package/iac/node_modules/diff-sequences/LICENSE +0 -21
  394. package/iac/node_modules/diff-sequences/README.md +0 -404
  395. package/iac/node_modules/fs-extra/LICENSE +0 -15
  396. package/iac/node_modules/fs-extra/README.md +0 -264
  397. package/iac/node_modules/fsevents/LICENSE +0 -22
  398. package/iac/node_modules/fsevents/README.md +0 -83
  399. package/iac/node_modules/graceful-fs/LICENSE +0 -15
  400. package/iac/node_modules/graceful-fs/README.md +0 -143
  401. package/iac/node_modules/has-flag/license +0 -9
  402. package/iac/node_modules/has-flag/readme.md +0 -89
  403. package/iac/node_modules/ignore/README.md +0 -412
  404. package/iac/node_modules/jest-diff/LICENSE +0 -21
  405. package/iac/node_modules/jest-diff/README.md +0 -671
  406. package/iac/node_modules/jest-get-type/LICENSE +0 -21
  407. package/iac/node_modules/jest-matcher-utils/LICENSE +0 -21
  408. package/iac/node_modules/jest-matcher-utils/README.md +0 -24
  409. package/iac/node_modules/jsonfile/LICENSE +0 -15
  410. package/iac/node_modules/jsonfile/README.md +0 -230
  411. package/iac/node_modules/jsonschema/LICENSE +0 -21
  412. package/iac/node_modules/jsonschema/README.md +0 -421
  413. package/iac/node_modules/lru-cache/LICENSE +0 -15
  414. package/iac/node_modules/lru-cache/README.md +0 -166
  415. package/iac/node_modules/make-error/LICENSE +0 -5
  416. package/iac/node_modules/make-error/README.md +0 -112
  417. package/iac/node_modules/minimatch/LICENSE +0 -15
  418. package/iac/node_modules/minimatch/README.md +0 -230
  419. package/iac/node_modules/pretty-format/LICENSE +0 -21
  420. package/iac/node_modules/pretty-format/README.md +0 -458
  421. package/iac/node_modules/punycode/README.md +0 -122
  422. package/iac/node_modules/react-is/LICENSE +0 -21
  423. package/iac/node_modules/react-is/README.md +0 -104
  424. package/iac/node_modules/semver/LICENSE +0 -15
  425. package/iac/node_modules/semver/README.md +0 -568
  426. package/iac/node_modules/source-map/LICENSE +0 -28
  427. package/iac/node_modules/source-map/README.md +0 -742
  428. package/iac/node_modules/source-map/dist/source-map.min.js.map +0 -1
  429. package/iac/node_modules/source-map-support/LICENSE.md +0 -21
  430. package/iac/node_modules/source-map-support/README.md +0 -284
  431. package/iac/node_modules/supports-color/license +0 -9
  432. package/iac/node_modules/supports-color/readme.md +0 -76
  433. package/iac/node_modules/ts-node/LICENSE +0 -21
  434. package/iac/node_modules/ts-node/README.md +0 -1442
  435. package/iac/node_modules/ts-node/dist/bin-cwd.js.map +0 -1
  436. package/iac/node_modules/ts-node/dist/bin-esm.js.map +0 -1
  437. package/iac/node_modules/ts-node/dist/bin-script-deprecated.js.map +0 -1
  438. package/iac/node_modules/ts-node/dist/bin-script.js.map +0 -1
  439. package/iac/node_modules/ts-node/dist/bin-transpile.js.map +0 -1
  440. package/iac/node_modules/ts-node/dist/bin.js.map +0 -1
  441. package/iac/node_modules/ts-node/dist/child/argv-payload.js.map +0 -1
  442. package/iac/node_modules/ts-node/dist/child/child-entrypoint.js.map +0 -1
  443. package/iac/node_modules/ts-node/dist/child/child-loader.js.map +0 -1
  444. package/iac/node_modules/ts-node/dist/child/child-require.js.map +0 -1
  445. package/iac/node_modules/ts-node/dist/child/spawn-child.js.map +0 -1
  446. package/iac/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +0 -1
  447. package/iac/node_modules/ts-node/dist/configuration.js.map +0 -1
  448. package/iac/node_modules/ts-node/dist/esm.js.map +0 -1
  449. package/iac/node_modules/ts-node/dist/file-extensions.js.map +0 -1
  450. package/iac/node_modules/ts-node/dist/index.js.map +0 -1
  451. package/iac/node_modules/ts-node/dist/module-type-classifier.js.map +0 -1
  452. package/iac/node_modules/ts-node/dist/node-module-type-classifier.js.map +0 -1
  453. package/iac/node_modules/ts-node/dist/repl.js.map +0 -1
  454. package/iac/node_modules/ts-node/dist/resolver-functions.js.map +0 -1
  455. package/iac/node_modules/ts-node/dist/transpilers/swc.js.map +0 -1
  456. package/iac/node_modules/ts-node/dist/transpilers/types.js.map +0 -1
  457. package/iac/node_modules/ts-node/dist/ts-compiler-types.js.map +0 -1
  458. package/iac/node_modules/ts-node/dist/ts-internals.js.map +0 -1
  459. package/iac/node_modules/ts-node/dist/ts-transpile-module.js.map +0 -1
  460. package/iac/node_modules/ts-node/dist/tsconfig-schema.js.map +0 -1
  461. package/iac/node_modules/ts-node/dist/tsconfigs.js.map +0 -1
  462. package/iac/node_modules/ts-node/dist/util.js.map +0 -1
  463. package/iac/node_modules/ts-node/dist-raw/README.md +0 -36
  464. package/iac/node_modules/typescript/LICENSE.txt +0 -55
  465. package/iac/node_modules/typescript/README.md +0 -104
  466. package/iac/node_modules/typescript/lib/README.md +0 -5
  467. package/iac/node_modules/universalify/LICENSE +0 -20
  468. package/iac/node_modules/universalify/README.md +0 -76
  469. package/iac/node_modules/v8-compile-cache-lib/LICENSE +0 -21
  470. package/iac/node_modules/v8-compile-cache-lib/README.md +0 -60
  471. package/iac/node_modules/yallist/LICENSE +0 -15
  472. package/iac/node_modules/yallist/README.md +0 -204
  473. package/iac/node_modules/yaml/LICENSE +0 -13
  474. package/iac/node_modules/yaml/README.md +0 -127
  475. package/iac/node_modules/yn/license +0 -9
  476. package/iac/node_modules/yn/readme.md +0 -83
  477. package/react/Edit.d.ts +0 -3
  478. package/react/Edit.js +0 -10
  479. package/react/Edit.js.map +0 -1
@@ -1,883 +0,0 @@
1
- # AWS App Mesh Construct Library
2
-
3
-
4
- AWS App Mesh is a service mesh based on the [Envoy](https://www.envoyproxy.io/) proxy that makes it easy to monitor and control microservices. App Mesh standardizes how your microservices communicate, giving you end-to-end visibility and helping to ensure high-availability for your applications.
5
-
6
- App Mesh gives you consistent visibility and network traffic controls for every microservice in an application.
7
-
8
- App Mesh supports microservice applications that use service discovery naming for their components. To use App Mesh, you must have an existing application running on AWS Fargate, Amazon ECS, Amazon EKS, Kubernetes on AWS, or Amazon EC2.
9
-
10
- For further information on **AWS App Mesh**, visit the [AWS App Mesh Documentation](https://docs.aws.amazon.com/app-mesh/index.html).
11
-
12
- ## Create the App and Stack
13
-
14
- ```ts
15
- const app = new cdk.App();
16
- const stack = new cdk.Stack(app, 'stack');
17
- ```
18
-
19
- ## Creating the Mesh
20
-
21
- A service mesh is a logical boundary for network traffic between the services that reside within it.
22
-
23
- After you create your service mesh, you can create virtual services, virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh.
24
-
25
- The following example creates the `AppMesh` service mesh with the default egress filter of `DROP_ALL`. See [the AWS CloudFormation `EgressFilter` resource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-egressfilter.html) for more info on egress filters.
26
-
27
- ```ts
28
- const mesh = new appmesh.Mesh(this, 'AppMesh', {
29
- meshName: 'myAwsMesh',
30
- });
31
- ```
32
-
33
- The mesh can instead be created with the `ALLOW_ALL` egress filter by providing the `egressFilter` property.
34
-
35
- ```ts
36
- const mesh = new appmesh.Mesh(this, 'AppMesh', {
37
- meshName: 'myAwsMesh',
38
- egressFilter: appmesh.MeshFilterType.ALLOW_ALL,
39
- });
40
- ```
41
-
42
- A mesh with an IP preference can be created by providing the property `serviceDiscovery` that specifes an `ipPreference`.
43
-
44
- ```ts
45
- const mesh = new appmesh.Mesh(this, 'AppMesh', {
46
- meshName: 'myAwsMesh',
47
- serviceDiscovery: {
48
- ipPreference: appmesh.IpPreference.IPV4_ONLY,
49
- },
50
- });
51
- ```
52
-
53
- ## Adding VirtualRouters
54
-
55
- A _mesh_ uses _virtual routers_ as logical units to route requests to _virtual nodes_.
56
-
57
- Virtual routers handle traffic for one or more virtual services within your mesh.
58
- After you create a virtual router, you can create and associate routes to your virtual router that direct incoming requests to different virtual nodes.
59
-
60
- ```ts
61
- declare const mesh: appmesh.Mesh;
62
- const router = mesh.addVirtualRouter('router', {
63
- listeners: [appmesh.VirtualRouterListener.http(8080)],
64
- });
65
- ```
66
-
67
- Note that creating the router using the `addVirtualRouter()` method places it in the same stack as the mesh
68
- (which might be different from the current stack).
69
- The router can also be created using the `VirtualRouter` constructor (passing in the mesh) instead of calling the `addVirtualRouter()` method.
70
- This is particularly useful when splitting your resources between many stacks: for example, defining the mesh itself as part of an infrastructure stack, but defining the other resources, such as routers, in the application stack:
71
-
72
- ```ts
73
- declare const infraStack: cdk.Stack;
74
- declare const appStack: cdk.Stack;
75
-
76
- const mesh = new appmesh.Mesh(infraStack, 'AppMesh', {
77
- meshName: 'myAwsMesh',
78
- egressFilter: appmesh.MeshFilterType.ALLOW_ALL,
79
- });
80
-
81
- // the VirtualRouter will belong to 'appStack',
82
- // even though the Mesh belongs to 'infraStack'
83
- const router = new appmesh.VirtualRouter(appStack, 'router', {
84
- mesh, // notice that mesh is a required property when creating a router with the 'new' statement
85
- listeners: [appmesh.VirtualRouterListener.http(8081)],
86
- });
87
- ```
88
-
89
- The same is true for other `add*()` methods in the App Mesh construct library.
90
-
91
- The `VirtualRouterListener` class lets you define protocol-specific listeners.
92
- The `http()`, `http2()`, `grpc()` and `tcp()` methods create listeners for the named protocols.
93
- They accept a single parameter that defines the port to on which requests will be matched.
94
- The port parameter defaults to 8080 if omitted.
95
-
96
- ## Adding a VirtualService
97
-
98
- A _virtual service_ is an abstraction of a real service that is provided by a virtual node directly, or indirectly by means of a virtual router. Dependent services call your virtual service by its `virtualServiceName`, and those requests are routed to the virtual node or virtual router specified as the provider for the virtual service.
99
-
100
- We recommend that you use the service discovery name of the real service that you're targeting (such as `my-service.default.svc.cluster.local`).
101
-
102
- When creating a virtual service:
103
-
104
- - If you want the virtual service to spread traffic across multiple virtual nodes, specify a virtual router.
105
- - If you want the virtual service to reach a virtual node directly, without a virtual router, specify a virtual node.
106
-
107
- Adding a virtual router as the provider:
108
-
109
- ```ts
110
- declare const router: appmesh.VirtualRouter;
111
-
112
- new appmesh.VirtualService(this, 'virtual-service', {
113
- virtualServiceName: 'my-service.default.svc.cluster.local', // optional
114
- virtualServiceProvider: appmesh.VirtualServiceProvider.virtualRouter(router),
115
- });
116
- ```
117
-
118
- Adding a virtual node as the provider:
119
-
120
- ```ts
121
- declare const node: appmesh.VirtualNode;
122
-
123
- new appmesh.VirtualService(this, 'virtual-service', {
124
- virtualServiceName: `my-service.default.svc.cluster.local`, // optional
125
- virtualServiceProvider: appmesh.VirtualServiceProvider.virtualNode(node),
126
- });
127
- ```
128
-
129
- ## Adding a VirtualNode
130
-
131
- A _virtual node_ acts as a logical pointer to a particular task group, such as an Amazon ECS service or a Kubernetes deployment.
132
-
133
- When you create a virtual node, accept inbound traffic by specifying a *listener*. Outbound traffic that your virtual node expects to send should be specified as a *back end*.
134
-
135
- The response metadata for your new virtual node contains the Amazon Resource Name (ARN) that is associated with the virtual node. Set this value (either the full ARN or the truncated resource name) as the `APPMESH_VIRTUAL_NODE_NAME` environment variable for your task group's Envoy proxy container in your task definition or pod spec. For example, the value could be `mesh/default/virtualNode/simpleapp`. This is then mapped to the `node.id` and `node.cluster` Envoy parameters.
136
-
137
- > **Note**
138
- > If you require your Envoy stats or tracing to use a different name, you can override the `node.cluster` value that is set by `APPMESH_VIRTUAL_NODE_NAME` with the `APPMESH_VIRTUAL_NODE_CLUSTER` environment variable.
139
-
140
- ```ts
141
- const vpc = new ec2.Vpc(this, 'vpc');
142
- const namespace = new cloudmap.PrivateDnsNamespace(this, 'test-namespace', {
143
- vpc,
144
- name: 'domain.local',
145
- });
146
- const service = namespace.createService('Svc');
147
-
148
- declare const mesh: appmesh.Mesh;
149
- const node = mesh.addVirtualNode('virtual-node', {
150
- serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
151
- listeners: [appmesh.VirtualNodeListener.http({
152
- port: 8081,
153
- healthCheck: appmesh.HealthCheck.http({
154
- healthyThreshold: 3,
155
- interval: cdk.Duration.seconds(5), // minimum
156
- path: '/health-check-path',
157
- timeout: cdk.Duration.seconds(2), // minimum
158
- unhealthyThreshold: 2,
159
- }),
160
- })],
161
- accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
162
- });
163
- ```
164
-
165
- Create a `VirtualNode` with the constructor and add tags.
166
-
167
- ```ts
168
- declare const mesh: appmesh.Mesh;
169
- declare const service: cloudmap.Service;
170
-
171
- const node = new appmesh.VirtualNode(this, 'node', {
172
- mesh,
173
- serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
174
- listeners: [appmesh.VirtualNodeListener.http({
175
- port: 8080,
176
- healthCheck: appmesh.HealthCheck.http({
177
- healthyThreshold: 3,
178
- interval: cdk.Duration.seconds(5),
179
- path: '/ping',
180
- timeout: cdk.Duration.seconds(2),
181
- unhealthyThreshold: 2,
182
- }),
183
- timeout: {
184
- idle: cdk.Duration.seconds(5),
185
- },
186
- })],
187
- backendDefaults: {
188
- tlsClientPolicy: {
189
- validation: {
190
- trust: appmesh.TlsValidationTrust.file('/keys/local_cert_chain.pem'),
191
- },
192
- },
193
- },
194
- accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
195
- });
196
-
197
- cdk.Tags.of(node).add('Environment', 'Dev');
198
- ```
199
-
200
- Create a `VirtualNode` with the constructor and add backend virtual service.
201
-
202
- ```ts
203
- declare const mesh: appmesh.Mesh;
204
- declare const router: appmesh.VirtualRouter;
205
- declare const service: cloudmap.Service;
206
-
207
- const node = new appmesh.VirtualNode(this, 'node', {
208
- mesh,
209
- serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
210
- listeners: [appmesh.VirtualNodeListener.http({
211
- port: 8080,
212
- healthCheck: appmesh.HealthCheck.http({
213
- healthyThreshold: 3,
214
- interval: cdk.Duration.seconds(5),
215
- path: '/ping',
216
- timeout: cdk.Duration.seconds(2),
217
- unhealthyThreshold: 2,
218
- }),
219
- timeout: {
220
- idle: cdk.Duration.seconds(5),
221
- },
222
- })],
223
- accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
224
- });
225
-
226
- const virtualService = new appmesh.VirtualService(this, 'service-1', {
227
- virtualServiceProvider: appmesh.VirtualServiceProvider.virtualRouter(router),
228
- virtualServiceName: 'service1.domain.local',
229
- });
230
-
231
- node.addBackend(appmesh.Backend.virtualService(virtualService));
232
- ```
233
-
234
- The `listeners` property can be left blank and added later with the `node.addListener()` method. The `serviceDiscovery` property must be specified when specifying a listener.
235
-
236
- The `backends` property can be added with `node.addBackend()`. In the example, we define a virtual service and add it to the virtual node to allow egress traffic to other nodes.
237
-
238
- The `backendDefaults` property is added to the node while creating the virtual node. These are the virtual node's default settings for all backends.
239
-
240
- The `VirtualNode.addBackend()` method is especially useful if you want to create a circular traffic flow by having a Virtual Service as a backend whose provider is that same Virtual Node:
241
-
242
- ```ts
243
- declare const mesh: appmesh.Mesh;
244
-
245
- const node = new appmesh.VirtualNode(this, 'node', {
246
- mesh,
247
- serviceDiscovery: appmesh.ServiceDiscovery.dns('node'),
248
- });
249
-
250
- const virtualService = new appmesh.VirtualService(this, 'service-1', {
251
- virtualServiceProvider: appmesh.VirtualServiceProvider.virtualNode(node),
252
- virtualServiceName: 'service1.domain.local',
253
- });
254
-
255
- node.addBackend(appmesh.Backend.virtualService(virtualService));
256
- ```
257
-
258
- ### Adding TLS to a listener
259
-
260
- The `tls` property specifies TLS configuration when creating a listener for a virtual node or a virtual gateway.
261
- Provide the TLS certificate to the proxy in one of the following ways:
262
-
263
- - A certificate from AWS Certificate Manager (ACM).
264
-
265
- - A customer-provided certificate (specify a `certificateChain` path file and a `privateKey` file path).
266
-
267
- - A certificate provided by a Secrets Discovery Service (SDS) endpoint over local Unix Domain Socket (specify its `secretName`).
268
-
269
- ```ts
270
- // A Virtual Node with listener TLS from an ACM provided certificate
271
- declare const cert: certificatemanager.Certificate;
272
- declare const mesh: appmesh.Mesh;
273
-
274
- const node = new appmesh.VirtualNode(this, 'node', {
275
- mesh,
276
- serviceDiscovery: appmesh.ServiceDiscovery.dns('node'),
277
- listeners: [appmesh.VirtualNodeListener.grpc({
278
- port: 80,
279
- tls: {
280
- mode: appmesh.TlsMode.STRICT,
281
- certificate: appmesh.TlsCertificate.acm(cert),
282
- },
283
- })],
284
- });
285
-
286
- // A Virtual Gateway with listener TLS from a customer provided file certificate
287
- const gateway = new appmesh.VirtualGateway(this, 'gateway', {
288
- mesh,
289
- listeners: [appmesh.VirtualGatewayListener.grpc({
290
- port: 8080,
291
- tls: {
292
- mode: appmesh.TlsMode.STRICT,
293
- certificate: appmesh.TlsCertificate.file('path/to/certChain', 'path/to/privateKey'),
294
- },
295
- })],
296
- virtualGatewayName: 'gateway',
297
- });
298
-
299
- // A Virtual Gateway with listener TLS from a SDS provided certificate
300
- const gateway2 = new appmesh.VirtualGateway(this, 'gateway2', {
301
- mesh,
302
- listeners: [appmesh.VirtualGatewayListener.http2({
303
- port: 8080,
304
- tls: {
305
- mode: appmesh.TlsMode.STRICT,
306
- certificate: appmesh.TlsCertificate.sds('secrete_certificate'),
307
- },
308
- })],
309
- virtualGatewayName: 'gateway2',
310
- });
311
- ```
312
-
313
- ### Adding mutual TLS authentication
314
-
315
- Mutual TLS authentication is an optional component of TLS that offers two-way peer authentication.
316
- To enable mutual TLS authentication, add the `mutualTlsCertificate` property to TLS client policy and/or the `mutualTlsValidation` property to your TLS listener.
317
-
318
- `tls.mutualTlsValidation` and `tlsClientPolicy.mutualTlsCertificate` can be sourced from either:
319
-
320
- - A customer-provided certificate (specify a `certificateChain` path file and a `privateKey` file path).
321
-
322
- - A certificate provided by a Secrets Discovery Service (SDS) endpoint over local Unix Domain Socket (specify its `secretName`).
323
-
324
- > **Note**
325
- > Currently, a certificate from AWS Certificate Manager (ACM) cannot be used for mutual TLS authentication.
326
-
327
- ```ts
328
- declare const mesh: appmesh.Mesh;
329
-
330
- const node1 = new appmesh.VirtualNode(this, 'node1', {
331
- mesh,
332
- serviceDiscovery: appmesh.ServiceDiscovery.dns('node'),
333
- listeners: [appmesh.VirtualNodeListener.grpc({
334
- port: 80,
335
- tls: {
336
- mode: appmesh.TlsMode.STRICT,
337
- certificate: appmesh.TlsCertificate.file('path/to/certChain', 'path/to/privateKey'),
338
- // Validate a file client certificates to enable mutual TLS authentication when a client provides a certificate.
339
- mutualTlsValidation: {
340
- trust: appmesh.TlsValidationTrust.file('path-to-certificate'),
341
- },
342
- },
343
- })],
344
- });
345
-
346
- const certificateAuthorityArn = 'arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012';
347
- const node2 = new appmesh.VirtualNode(this, 'node2', {
348
- mesh,
349
- serviceDiscovery: appmesh.ServiceDiscovery.dns('node2'),
350
- backendDefaults: {
351
- tlsClientPolicy: {
352
- ports: [8080, 8081],
353
- validation: {
354
- subjectAlternativeNames: appmesh.SubjectAlternativeNames.matchingExactly('mesh-endpoint.apps.local'),
355
- trust: appmesh.TlsValidationTrust.acm([
356
- acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, 'certificate', certificateAuthorityArn)]),
357
- },
358
- // Provide a SDS client certificate when a server requests it and enable mutual TLS authentication.
359
- mutualTlsCertificate: appmesh.TlsCertificate.sds('secret_certificate'),
360
- },
361
- },
362
- });
363
- ```
364
-
365
- ### Adding outlier detection to a Virtual Node listener
366
-
367
- The `outlierDetection` property adds outlier detection to a Virtual Node listener. The properties
368
- `baseEjectionDuration`, `interval`, `maxEjectionPercent`, and `maxServerErrors` are required.
369
-
370
- ```ts
371
- // Cloud Map service discovery is currently required for host ejection by outlier detection
372
- const vpc = new ec2.Vpc(this, 'vpc');
373
- const namespace = new cloudmap.PrivateDnsNamespace(this, 'test-namespace', {
374
- vpc,
375
- name: 'domain.local',
376
- });
377
- const service = namespace.createService('Svc');
378
-
379
- declare const mesh: appmesh.Mesh;
380
- const node = mesh.addVirtualNode('virtual-node', {
381
- serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
382
- listeners: [appmesh.VirtualNodeListener.http({
383
- outlierDetection: {
384
- baseEjectionDuration: cdk.Duration.seconds(10),
385
- interval: cdk.Duration.seconds(30),
386
- maxEjectionPercent: 50,
387
- maxServerErrors: 5,
388
- },
389
- })],
390
- });
391
- ```
392
-
393
- ### Adding a connection pool to a listener
394
-
395
- The `connectionPool` property can be added to a Virtual Node listener or Virtual Gateway listener to add a request connection pool. Each listener protocol type has its own connection pool properties.
396
-
397
- ```ts
398
- // A Virtual Node with a gRPC listener with a connection pool set
399
- declare const mesh: appmesh.Mesh;
400
- const node = new appmesh.VirtualNode(this, 'node', {
401
- mesh,
402
- // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS.
403
- // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints,
404
- // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints.
405
- // By default, the response type is assumed to be LOAD_BALANCER
406
- serviceDiscovery: appmesh.ServiceDiscovery.dns('node', appmesh.DnsResponseType.ENDPOINTS),
407
- listeners: [appmesh.VirtualNodeListener.http({
408
- port: 80,
409
- connectionPool: {
410
- maxConnections: 100,
411
- maxPendingRequests: 10,
412
- },
413
- })],
414
- });
415
-
416
- // A Virtual Gateway with a gRPC listener with a connection pool set
417
- const gateway = new appmesh.VirtualGateway(this, 'gateway', {
418
- mesh,
419
- listeners: [appmesh.VirtualGatewayListener.grpc({
420
- port: 8080,
421
- connectionPool: {
422
- maxRequests: 10,
423
- },
424
- })],
425
- virtualGatewayName: 'gateway',
426
- });
427
- ```
428
-
429
- ### Adding an IP Preference to a Virtual Node
430
-
431
- An `ipPreference` can be specified as part of a Virtual Node's service discovery. An IP preference defines how clients for this Virtual Node will interact with it.
432
-
433
- There a four different IP preferences available to use which each specify what IP versions this Virtual Node will use and prefer.
434
-
435
- - `IPv4_ONLY` - Only use IPv4. For CloudMap service discovery, only IPv4 addresses returned from CloudMap will be used. For DNS service discovery, Envoy's DNS resolver will only resolve DNS queries for IPv4.
436
-
437
- - `IPv4_PREFERRED` - Prefer IPv4 and fall back to IPv6. For CloudMap service discovery, an IPv4 address will be used if returned from CloudMap. Otherwise, an IPv6 address will be used if available. For DNS service discovery, Envoy's DNS resolver will first attempt to resolve DNS queries using IPv4 and fall back to IPv6.
438
-
439
- - `IPv6_ONLY` - Only use IPv6. For CloudMap service discovery, only IPv6 addresses returned from CloudMap will be used. For DNS service discovery, Envoy's DNS resolver will only resolve DNS queries for IPv6.
440
-
441
- - `IPv6_PREFERRED` - Prefer IPv6 and fall back to IPv4. For CloudMap service discovery, an IPv6 address will be used if returned from CloudMap. Otherwise, an IPv4 address will be used if available. For DNS service discovery, Envoy's DNS resolver will first attempt to resolve DNS queries using IPv6 and fall back to IPv4.
442
-
443
- ```ts
444
- const mesh = new appmesh.Mesh(stack, 'mesh', {
445
- meshName: 'mesh-with-preference',
446
- });
447
-
448
- // Virtual Node with DNS service discovery and an IP preference
449
- const dnsNode = new appmesh.VirtualNode(stack, 'dns-node', {
450
- mesh,
451
- serviceDiscovery: appmesh.ServiceDiscovery.dns('test', appmesh.DnsResponseType.LOAD_BALANCER, appmesh.IpPreference.IPV4_ONLY),
452
- });
453
-
454
- // Virtual Node with CloudMap service discovery and an IP preference
455
- const vpc = new ec2.Vpc(stack, 'vpc');
456
- const namespace = new cloudmap.PrivateDnsNamespace(stack, 'test-namespace', {
457
- vpc,
458
- name: 'domain.local',
459
- });
460
- const service = namespace.createService('Svc');
461
-
462
- const instanceAttribute : { [key: string]: string} = {};
463
- instanceAttribute.testKey = 'testValue';
464
-
465
- const cloudmapNode = new appmesh.VirtualNode(stack, 'cloudmap-node', {
466
- mesh,
467
- serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service, instanceAttribute, appmesh.IpPreference.IPV4_ONLY),
468
- });
469
- ```
470
-
471
- ## Adding a Route
472
-
473
- A _route_ matches requests with an associated virtual router and distributes traffic to its associated virtual nodes.
474
- The route distributes matching requests to one or more target virtual nodes with relative weighting.
475
-
476
- The `RouteSpec` class lets you define protocol-specific route specifications.
477
- The `tcp()`, `http()`, `http2()`, and `grpc()` methods create a specification for the named protocols.
478
-
479
- For HTTP-based routes, the match field can match on path (prefix, exact, or regex), HTTP method, scheme,
480
- HTTP headers, and query parameters. By default, HTTP-based routes match all requests.
481
-
482
- For gRPC-based routes, the match field can match on service name, method name, and metadata.
483
- When specifying the method name, the service name must also be specified.
484
-
485
- For example, here's how to add an HTTP route that matches based on a prefix of the URL path:
486
-
487
- ```ts
488
- declare const router: appmesh.VirtualRouter;
489
- declare const node: appmesh.VirtualNode;
490
-
491
- router.addRoute('route-http', {
492
- routeSpec: appmesh.RouteSpec.http({
493
- weightedTargets: [
494
- {
495
- virtualNode: node,
496
- },
497
- ],
498
- match: {
499
- // Path that is passed to this method must start with '/'.
500
- path: appmesh.HttpRoutePathMatch.startsWith('/path-to-app'),
501
- },
502
- }),
503
- });
504
- ```
505
-
506
- Add an HTTP2 route that matches based on exact path, method, scheme, headers, and query parameters:
507
-
508
- ```ts
509
- declare const router: appmesh.VirtualRouter;
510
- declare const node: appmesh.VirtualNode;
511
-
512
- router.addRoute('route-http2', {
513
- routeSpec: appmesh.RouteSpec.http2({
514
- weightedTargets: [
515
- {
516
- virtualNode: node,
517
- },
518
- ],
519
- match: {
520
- path: appmesh.HttpRoutePathMatch.exactly('/exact'),
521
- method: appmesh.HttpRouteMethod.POST,
522
- protocol: appmesh.HttpRouteProtocol.HTTPS,
523
- headers: [
524
- // All specified headers must match for the route to match.
525
- appmesh.HeaderMatch.valueIs('Content-Type', 'application/json'),
526
- appmesh.HeaderMatch.valueIsNot('Content-Type', 'application/json'),
527
- ],
528
- queryParameters: [
529
- // All specified query parameters must match for the route to match.
530
- appmesh.QueryParameterMatch.valueIs('query-field', 'value')
531
- ],
532
- },
533
- }),
534
- });
535
- ```
536
-
537
- Add a single route with two targets and split traffic 50/50:
538
-
539
- ```ts
540
- declare const router: appmesh.VirtualRouter;
541
- declare const node: appmesh.VirtualNode;
542
-
543
- router.addRoute('route-http', {
544
- routeSpec: appmesh.RouteSpec.http({
545
- weightedTargets: [
546
- {
547
- virtualNode: node,
548
- weight: 50,
549
- },
550
- {
551
- virtualNode: node,
552
- weight: 50,
553
- },
554
- ],
555
- match: {
556
- path: appmesh.HttpRoutePathMatch.startsWith('/path-to-app'),
557
- },
558
- }),
559
- });
560
- ```
561
-
562
- Add an http2 route with retries:
563
-
564
- ```ts
565
- declare const router: appmesh.VirtualRouter;
566
- declare const node: appmesh.VirtualNode;
567
-
568
- router.addRoute('route-http2-retry', {
569
- routeSpec: appmesh.RouteSpec.http2({
570
- weightedTargets: [{ virtualNode: node }],
571
- retryPolicy: {
572
- // Retry if the connection failed
573
- tcpRetryEvents: [appmesh.TcpRetryEvent.CONNECTION_ERROR],
574
- // Retry if HTTP responds with a gateway error (502, 503, 504)
575
- httpRetryEvents: [appmesh.HttpRetryEvent.GATEWAY_ERROR],
576
- // Retry five times
577
- retryAttempts: 5,
578
- // Use a 1 second timeout per retry
579
- retryTimeout: cdk.Duration.seconds(1),
580
- },
581
- }),
582
- });
583
- ```
584
-
585
- Add a gRPC route with retries:
586
-
587
- ```ts
588
- declare const router: appmesh.VirtualRouter;
589
- declare const node: appmesh.VirtualNode;
590
-
591
- router.addRoute('route-grpc-retry', {
592
- routeSpec: appmesh.RouteSpec.grpc({
593
- weightedTargets: [{ virtualNode: node }],
594
- match: { serviceName: 'servicename' },
595
- retryPolicy: {
596
- tcpRetryEvents: [appmesh.TcpRetryEvent.CONNECTION_ERROR],
597
- httpRetryEvents: [appmesh.HttpRetryEvent.GATEWAY_ERROR],
598
- // Retry if gRPC responds that the request was cancelled, a resource
599
- // was exhausted, or if the service is unavailable
600
- grpcRetryEvents: [
601
- appmesh.GrpcRetryEvent.CANCELLED,
602
- appmesh.GrpcRetryEvent.RESOURCE_EXHAUSTED,
603
- appmesh.GrpcRetryEvent.UNAVAILABLE,
604
- ],
605
- retryAttempts: 5,
606
- retryTimeout: cdk.Duration.seconds(1),
607
- },
608
- }),
609
- });
610
- ```
611
-
612
- Add an gRPC route that matches based on method name and metadata:
613
-
614
- ```ts
615
- declare const router: appmesh.VirtualRouter;
616
- declare const node: appmesh.VirtualNode;
617
-
618
- router.addRoute('route-grpc-retry', {
619
- routeSpec: appmesh.RouteSpec.grpc({
620
- weightedTargets: [{ virtualNode: node }],
621
- match: {
622
- // When method name is specified, service name must be also specified.
623
- methodName: 'methodname',
624
- serviceName: 'servicename',
625
- metadata: [
626
- // All specified metadata must match for the route to match.
627
- appmesh.HeaderMatch.valueStartsWith('Content-Type', 'application/'),
628
- appmesh.HeaderMatch.valueDoesNotStartWith('Content-Type', 'text/'),
629
- ],
630
- },
631
- }),
632
- });
633
- ```
634
-
635
- Add a gRPC route with timeout:
636
-
637
- ```ts
638
- declare const router: appmesh.VirtualRouter;
639
- declare const node: appmesh.VirtualNode;
640
-
641
- router.addRoute('route-http', {
642
- routeSpec: appmesh.RouteSpec.grpc({
643
- weightedTargets: [
644
- {
645
- virtualNode: node,
646
- },
647
- ],
648
- match: {
649
- serviceName: 'my-service.default.svc.cluster.local',
650
- },
651
- timeout: {
652
- idle : cdk.Duration.seconds(2),
653
- perRequest: cdk.Duration.seconds(1),
654
- },
655
- }),
656
- });
657
- ```
658
-
659
- ## Adding a Virtual Gateway
660
-
661
- A _virtual gateway_ allows resources outside your mesh to communicate with resources inside your mesh.
662
- The virtual gateway represents an Envoy proxy running in an Amazon ECS task, in a Kubernetes service, or on an Amazon EC2 instance.
663
- Unlike a virtual node, which represents Envoy running with an application, a virtual gateway represents Envoy deployed by itself.
664
-
665
- A virtual gateway is similar to a virtual node in that it has a listener that accepts traffic for a particular port and protocol (HTTP, HTTP2, gRPC).
666
- Traffic received by the virtual gateway is directed to other services in your mesh
667
- using rules defined in gateway routes which can be added to your virtual gateway.
668
-
669
- Create a virtual gateway with the constructor:
670
-
671
- ```ts
672
- declare const mesh: appmesh.Mesh;
673
- const certificateAuthorityArn = 'arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012';
674
-
675
- const gateway = new appmesh.VirtualGateway(this, 'gateway', {
676
- mesh: mesh,
677
- listeners: [appmesh.VirtualGatewayListener.http({
678
- port: 443,
679
- healthCheck: appmesh.HealthCheck.http({
680
- interval: cdk.Duration.seconds(10),
681
- }),
682
- })],
683
- backendDefaults: {
684
- tlsClientPolicy: {
685
- ports: [8080, 8081],
686
- validation: {
687
- trust: appmesh.TlsValidationTrust.acm([
688
- acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, 'certificate', certificateAuthorityArn)]),
689
- },
690
- },
691
- },
692
- accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
693
- virtualGatewayName: 'virtualGateway',
694
- });
695
- ```
696
-
697
- Add a virtual gateway directly to the mesh:
698
-
699
- ```ts
700
- declare const mesh: appmesh.Mesh;
701
-
702
- const gateway = mesh.addVirtualGateway('gateway', {
703
- accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
704
- virtualGatewayName: 'virtualGateway',
705
- listeners: [appmesh.VirtualGatewayListener.http({
706
- port: 443,
707
- healthCheck: appmesh.HealthCheck.http({
708
- interval: cdk.Duration.seconds(10),
709
- }),
710
- })],
711
- });
712
- ```
713
-
714
- The `listeners` field defaults to an HTTP Listener on port 8080 if omitted.
715
- A gateway route can be added using the `gateway.addGatewayRoute()` method.
716
-
717
- The `backendDefaults` property, provided when creating the virtual gateway, specifies the virtual gateway's default settings for all backends.
718
-
719
- ## Adding a Gateway Route
720
-
721
- A _gateway route_ is attached to a virtual gateway and routes matching traffic to an existing virtual service.
722
-
723
- For HTTP-based gateway routes, the `match` field can be used to match on
724
- path (prefix, exact, or regex), HTTP method, host name, HTTP headers, and query parameters.
725
- By default, HTTP-based gateway routes match all requests.
726
-
727
- ```ts
728
- declare const gateway: appmesh.VirtualGateway;
729
- declare const virtualService: appmesh.VirtualService;
730
-
731
- gateway.addGatewayRoute('gateway-route-http', {
732
- routeSpec: appmesh.GatewayRouteSpec.http({
733
- routeTarget: virtualService,
734
- match: {
735
- path: appmesh.HttpGatewayRoutePathMatch.regex('regex'),
736
- },
737
- }),
738
- });
739
- ```
740
-
741
- For gRPC-based gateway routes, the `match` field can be used to match on service name, host name, and metadata.
742
-
743
- ```ts
744
- declare const gateway: appmesh.VirtualGateway;
745
- declare const virtualService: appmesh.VirtualService;
746
-
747
- gateway.addGatewayRoute('gateway-route-grpc', {
748
- routeSpec: appmesh.GatewayRouteSpec.grpc({
749
- routeTarget: virtualService,
750
- match: {
751
- hostname: appmesh.GatewayRouteHostnameMatch.endsWith('.example.com'),
752
- },
753
- }),
754
- });
755
- ```
756
-
757
- For HTTP based gateway routes, App Mesh automatically rewrites the matched prefix path in Gateway Route to “/”.
758
- This automatic rewrite configuration can be overwritten in following ways:
759
-
760
- ```ts
761
- declare const gateway: appmesh.VirtualGateway;
762
- declare const virtualService: appmesh.VirtualService;
763
-
764
- gateway.addGatewayRoute('gateway-route-http', {
765
- routeSpec: appmesh.GatewayRouteSpec.http({
766
- routeTarget: virtualService,
767
- match: {
768
- // This disables the default rewrite to '/', and retains original path.
769
- path: appmesh.HttpGatewayRoutePathMatch.startsWith('/path-to-app/', ''),
770
- },
771
- }),
772
- });
773
-
774
- gateway.addGatewayRoute('gateway-route-http-1', {
775
- routeSpec: appmesh.GatewayRouteSpec.http({
776
- routeTarget: virtualService,
777
- match: {
778
- // If the request full path is '/path-to-app/xxxxx', this rewrites the path to '/rewrittenUri/xxxxx'.
779
- // Please note both `prefixPathMatch` and `rewriteTo` must start and end with the `/` character.
780
- path: appmesh.HttpGatewayRoutePathMatch.startsWith('/path-to-app/', '/rewrittenUri/'),
781
- },
782
- }),
783
- });
784
- ```
785
-
786
- If matching other path (exact or regex), only specific rewrite path can be specified.
787
- Unlike `startsWith()` method above, no default rewrite is performed.
788
-
789
- ```ts
790
- declare const gateway: appmesh.VirtualGateway;
791
- declare const virtualService: appmesh.VirtualService;
792
-
793
- gateway.addGatewayRoute('gateway-route-http-2', {
794
- routeSpec: appmesh.GatewayRouteSpec.http({
795
- routeTarget: virtualService,
796
- match: {
797
- // This rewrites the path from '/test' to '/rewrittenPath'.
798
- path: appmesh.HttpGatewayRoutePathMatch.exactly('/test', '/rewrittenPath'),
799
- },
800
- }),
801
- });
802
- ```
803
-
804
- For HTTP/gRPC based routes, App Mesh automatically rewrites
805
- the original request received at the Virtual Gateway to the destination Virtual Service name.
806
- This default host name rewrite can be configured by specifying the rewrite rule as one of the `match` property:
807
-
808
- ```ts
809
- declare const gateway: appmesh.VirtualGateway;
810
- declare const virtualService: appmesh.VirtualService;
811
-
812
- gateway.addGatewayRoute('gateway-route-grpc', {
813
- routeSpec: appmesh.GatewayRouteSpec.grpc({
814
- routeTarget: virtualService,
815
- match: {
816
- hostname: appmesh.GatewayRouteHostnameMatch.exactly('example.com'),
817
- // This disables the default rewrite to virtual service name and retain original request.
818
- rewriteRequestHostname: false,
819
- },
820
- }),
821
- });
822
- ```
823
-
824
- ## Importing Resources
825
-
826
- Each App Mesh resource class comes with two static methods, `from<Resource>Arn` and `from<Resource>Attributes` (where `<Resource>` is replaced with the resource name, such as `VirtualNode`) for importing a reference to an existing App Mesh resource.
827
- These imported resources can be used with other resources in your mesh as if they were defined directly in your CDK application.
828
-
829
- ```ts
830
- const arn = 'arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh/virtualNode/testNode';
831
- appmesh.VirtualNode.fromVirtualNodeArn(this, 'importedVirtualNode', arn);
832
- ```
833
-
834
- ```ts
835
- const virtualNodeName = 'my-virtual-node';
836
- appmesh.VirtualNode.fromVirtualNodeAttributes(this, 'imported-virtual-node', {
837
- mesh: appmesh.Mesh.fromMeshName(this, 'Mesh', 'testMesh'),
838
- virtualNodeName: virtualNodeName,
839
- });
840
- ```
841
-
842
- To import a mesh, again there are two static methods, `fromMeshArn` and `fromMeshName`.
843
-
844
- ```ts
845
- const arn = 'arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh';
846
- appmesh.Mesh.fromMeshArn(this, 'imported-mesh', arn);
847
- ```
848
-
849
- ```ts
850
- appmesh.Mesh.fromMeshName(this, 'imported-mesh', 'abc');
851
- ```
852
-
853
- ## IAM Grants
854
-
855
- `VirtualNode` and `VirtualGateway` provide `grantStreamAggregatedResources` methods that grant identities that are running
856
- Envoy access to stream generated config from App Mesh.
857
-
858
- ```ts
859
- declare const mesh: appmesh.Mesh;
860
- const gateway = new appmesh.VirtualGateway(this, 'testGateway', { mesh });
861
- const envoyUser = new iam.User(this, 'envoyUser');
862
-
863
- /**
864
- * This will grant `grantStreamAggregatedResources` ONLY for this gateway.
865
- */
866
- gateway.grantStreamAggregatedResources(envoyUser)
867
- ```
868
-
869
- ## Adding Resources to shared meshes
870
-
871
- A shared mesh allows resources created by different accounts to communicate with each other in the same mesh:
872
-
873
- ```ts
874
- // This is the ARN for the mesh from different AWS IAM account ID.
875
- // Ensure mesh is properly shared with your account. For more details, see: https://github.com/aws/aws-cdk/issues/15404
876
- const arn = 'arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh';
877
- const sharedMesh = appmesh.Mesh.fromMeshArn(this, 'imported-mesh', arn);
878
-
879
- // This VirtualNode resource can communicate with the resources in the mesh from different AWS IAM account ID.
880
- new appmesh.VirtualNode(this, 'test-node', {
881
- mesh: sharedMesh,
882
- });
883
- ```