@rio-cloud/cdk-v2-constructs 8.8.2 → 9.0.0-alpha.1

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 (67) hide show
  1. package/.jsii +3550 -7420
  2. package/lib/contributions/cop-frontend/cloudfront/rio-cloudfront-distribution.js +1 -5
  3. package/lib/contributions/smart-route/gitlab-runner/autoscaling-runner.js +1 -5
  4. package/lib/contributions/smart-route/gitlab-runner/runner-roles.js +1 -5
  5. package/lib/contributions/smart-route/gitlab-runner/spot-role.js +1 -5
  6. package/lib/contributions/team-claid/aws-backup-monitoring/aws-backup-monitoring.js +1 -7
  7. package/lib/contributions/team-claid/aws-glue/csv-table.js +1 -5
  8. package/lib/contributions/team-claid/aws-glue/schema.js +1 -5
  9. package/lib/contributions/team-claid/aws-glue/view-table.js +1 -5
  10. package/lib/contributions/team-claid/datadog-usage-monitoring/datadog-usage-monitoring.js +1 -5
  11. package/lib/contributions/team-outbound-order-book/aws-ecs-abruptly-stopped-monitor/aws-ecs-abruptly-stopped-monitor.js +1 -5
  12. package/lib/contributions/team-outbound-order-book/index.d.ts +1 -0
  13. package/lib/contributions/team-outbound-order-book/index.js +18 -0
  14. package/lib/contributions/team-shipper-inbound-blue/index.d.ts +1 -0
  15. package/lib/contributions/team-shipper-inbound-blue/index.js +18 -0
  16. package/lib/contributions/team-shipper-inbound-blue/pipeline/code-build-project.js +1 -5
  17. package/lib/contributions/team-shipper-inbound-blue/pipeline/pipeline-build-stage-actions.js +1 -5
  18. package/lib/contributions/team-transport/datadog/datadog-dashboard-construct.js +41 -0
  19. package/lib/contributions/team-transport/datadog/datadog-dashboard-downloader.js +120 -0
  20. package/lib/contributions/{team-transport-two → team-transport}/datadog/index.js +1 -1
  21. package/lib/contributions/{team-transport-two → team-transport}/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.cjs +109 -106
  22. package/lib/contributions/team-transport/datadog-synthetics/datadog-synthetics-test.js +77 -0
  23. package/lib/contributions/{team-transport-two → team-transport}/datadog-synthetics/index.js +1 -1
  24. package/lib/contributions/team-transport/index.d.ts +3 -0
  25. package/lib/contributions/team-transport/index.js +20 -0
  26. package/lib/contributions/team-transport/pipeline/application-stage.js +16 -0
  27. package/lib/contributions/team-transport/pipeline/build-project.js +39 -0
  28. package/lib/contributions/{team-transport-two → team-transport}/pipeline/buildspecs.d.ts +3 -3
  29. package/lib/contributions/team-transport/pipeline/buildspecs.js +227 -0
  30. package/lib/contributions/team-transport/pipeline/datadog-monitors.js +45 -0
  31. package/lib/contributions/{team-transport-two → team-transport}/pipeline/index.js +1 -1
  32. package/lib/contributions/team-transport/pipeline/monitoring-deploy-step.js +28 -0
  33. package/lib/contributions/{team-transport-two → team-transport}/pipeline/pipeline-stack.d.ts +2 -0
  34. package/lib/contributions/team-transport/pipeline/pipeline-stack.js +430 -0
  35. package/lib/datadogv2/datadog-lambda-instrumentation.d.ts +1 -1
  36. package/lib/datadogv2/datadog-lambda-instrumentation.js +5 -2
  37. package/lib/datadogv2/secret-locator-custom-resource/on-create.cjs +85 -76
  38. package/lib/datadogv2/service-catalog-custom-resource/on-create.cjs +85 -82
  39. package/lib/datadogv2/validate-lambda-environment.d.ts +3 -0
  40. package/lib/datadogv2/validate-lambda-environment.js +33 -0
  41. package/lib/fargate/codedeploy-custom-resources/create-deployment-is-complete.cjs +85 -76
  42. package/lib/fargate/codedeploy-custom-resources/create-deployment-on-create.cjs +85 -76
  43. package/lib/fargate/codedeploy-custom-resources/run-monitoring-test-suite-runner.cjs +90 -81
  44. package/lib/index.d.ts +0 -8
  45. package/lib/index.js +1 -9
  46. package/lib/sbom-catalog/lambda/handler.cjs +88 -84
  47. package/package.json +22 -11
  48. package/version.json +1 -1
  49. package/lib/contributions/team-transport-two/datadog/datadog-dashboard-construct.js +0 -45
  50. package/lib/contributions/team-transport-two/datadog/datadog-dashboard-downloader.js +0 -120
  51. package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.js +0 -81
  52. package/lib/contributions/team-transport-two/pipeline/application-stage.js +0 -16
  53. package/lib/contributions/team-transport-two/pipeline/build-project.js +0 -39
  54. package/lib/contributions/team-transport-two/pipeline/buildspecs.js +0 -205
  55. package/lib/contributions/team-transport-two/pipeline/datadog-monitors.js +0 -45
  56. package/lib/contributions/team-transport-two/pipeline/monitoring-deploy-step.js +0 -28
  57. package/lib/contributions/team-transport-two/pipeline/pipeline-stack.js +0 -432
  58. /package/lib/contributions/{team-transport-two → team-transport}/datadog/datadog-dashboard-construct.d.ts +0 -0
  59. /package/lib/contributions/{team-transport-two → team-transport}/datadog/datadog-dashboard-downloader.d.ts +0 -0
  60. /package/lib/contributions/{team-transport-two → team-transport}/datadog/index.d.ts +0 -0
  61. /package/lib/contributions/{team-transport-two → team-transport}/datadog-synthetics/datadog-synthetics-test.d.ts +0 -0
  62. /package/lib/contributions/{team-transport-two → team-transport}/datadog-synthetics/index.d.ts +0 -0
  63. /package/lib/contributions/{team-transport-two → team-transport}/pipeline/application-stage.d.ts +0 -0
  64. /package/lib/contributions/{team-transport-two → team-transport}/pipeline/build-project.d.ts +0 -0
  65. /package/lib/contributions/{team-transport-two → team-transport}/pipeline/datadog-monitors.d.ts +0 -0
  66. /package/lib/contributions/{team-transport-two → team-transport}/pipeline/index.d.ts +0 -0
  67. /package/lib/contributions/{team-transport-two → team-transport}/pipeline/monitoring-deploy-step.d.ts +0 -0
@@ -5,11 +5,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn, res, err) => function __init() {
9
+ if (err) throw err[0];
10
+ try {
11
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
+ } catch (e5) {
13
+ throw err = [e5], e5;
14
+ }
10
15
  };
11
16
  var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ try {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ } catch (e5) {
20
+ throw mod = 0, e5;
21
+ }
13
22
  };
14
23
  var __export = (target, all) => {
15
24
  for (var name in all)
@@ -1233,7 +1242,7 @@ var init_ListSchema = __esm({
1233
1242
  "use strict";
1234
1243
  init_Schema();
1235
1244
  ListSchema = class _ListSchema extends Schema {
1236
- static symbol = Symbol.for("@smithy/lis");
1245
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/lis");
1237
1246
  valueSchema;
1238
1247
  symbol = _ListSchema.symbol;
1239
1248
  };
@@ -1253,7 +1262,7 @@ var init_MapSchema = __esm({
1253
1262
  "use strict";
1254
1263
  init_Schema();
1255
1264
  MapSchema = class _MapSchema extends Schema {
1256
- static symbol = Symbol.for("@smithy/map");
1265
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/map");
1257
1266
  keySchema;
1258
1267
  valueSchema;
1259
1268
  symbol = _MapSchema.symbol;
@@ -1275,7 +1284,7 @@ var init_OperationSchema = __esm({
1275
1284
  "use strict";
1276
1285
  init_Schema();
1277
1286
  OperationSchema = class _OperationSchema extends Schema {
1278
- static symbol = Symbol.for("@smithy/ope");
1287
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/ope");
1279
1288
  input;
1280
1289
  output;
1281
1290
  symbol = _OperationSchema.symbol;
@@ -1297,7 +1306,7 @@ var init_StructureSchema = __esm({
1297
1306
  "use strict";
1298
1307
  init_Schema();
1299
1308
  StructureSchema = class _StructureSchema extends Schema {
1300
- static symbol = Symbol.for("@smithy/str");
1309
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/str");
1301
1310
  memberNames;
1302
1311
  memberList;
1303
1312
  symbol = _StructureSchema.symbol;
@@ -1320,7 +1329,7 @@ var init_ErrorSchema = __esm({
1320
1329
  init_Schema();
1321
1330
  init_StructureSchema();
1322
1331
  ErrorSchema = class _ErrorSchema extends StructureSchema {
1323
- static symbol = Symbol.for("@smithy/err");
1332
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/err");
1324
1333
  ctor;
1325
1334
  symbol = _ErrorSchema.symbol;
1326
1335
  };
@@ -1387,15 +1396,15 @@ var init_NormalizedSchema = __esm({
1387
1396
  init_deref();
1388
1397
  init_translateTraits();
1389
1398
  anno = {
1390
- it: Symbol.for("@smithy/nor-struct-it"),
1391
- ns: Symbol.for("@smithy/ns")
1399
+ it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
1400
+ ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
1392
1401
  };
1393
1402
  simpleSchemaCacheN = [];
1394
1403
  simpleSchemaCacheS = {};
1395
1404
  NormalizedSchema = class _NormalizedSchema {
1396
1405
  ref;
1397
1406
  memberName;
1398
- static symbol = Symbol.for("@smithy/nor");
1407
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/nor");
1399
1408
  symbol = _NormalizedSchema.symbol;
1400
1409
  name;
1401
1410
  schema;
@@ -1666,7 +1675,7 @@ var init_SimpleSchema = __esm({
1666
1675
  "use strict";
1667
1676
  init_Schema();
1668
1677
  SimpleSchema = class _SimpleSchema extends Schema {
1669
- static symbol = Symbol.for("@smithy/sim");
1678
+ static symbol = /* @__PURE__ */ Symbol.for("@smithy/sim");
1670
1679
  schemaRef;
1671
1680
  symbol = _SimpleSchema.symbol;
1672
1681
  };
@@ -8753,7 +8762,7 @@ var init_EventStreamSerde = __esm({
8753
8762
  const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
8754
8763
  const serializer = this.serializer;
8755
8764
  const defaultContentType = this.defaultContentType;
8756
- const initialRequestMarker = Symbol("initialRequestMarker");
8765
+ const initialRequestMarker = /* @__PURE__ */ Symbol("initialRequestMarker");
8757
8766
  const eventStreamIterable = {
8758
8767
  async *[Symbol.asyncIterator]() {
8759
8768
  if (initialRequest) {
@@ -8809,7 +8818,7 @@ var init_EventStreamSerde = __esm({
8809
8818
  const eventStreamMember = responseSchema.getEventStreamMember();
8810
8819
  const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
8811
8820
  const memberSchemas = unionSchema.getMemberSchemas();
8812
- const initialResponseMarker = Symbol("initialResponseMarker");
8821
+ const initialResponseMarker = /* @__PURE__ */ Symbol("initialResponseMarker");
8813
8822
  const asyncIterable = marshaller.deserialize(response.body, async (event) => {
8814
8823
  let unionMember = "";
8815
8824
  for (const key in event) {
@@ -10037,7 +10046,7 @@ var init_httpExtensionConfiguration = __esm({
10037
10046
  "use strict";
10038
10047
  getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
10039
10048
  if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
10040
- runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
10049
+ runtimeConfig.requestHandler?.updateHttpClientConfig?.(/* @__PURE__ */ Symbol.for("logger"), runtimeConfig.logger);
10041
10050
  }
10042
10051
  return {
10043
10052
  setHttpHandler(handler2) {
@@ -11386,12 +11395,12 @@ var init_invoke_store = __esm({
11386
11395
  "node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js"() {
11387
11396
  "use strict";
11388
11397
  PROTECTED_KEYS = {
11389
- REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
11390
- X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
11391
- TENANT_ID: Symbol.for("_AWS_LAMBDA_TENANT_ID"),
11392
- TRACEPARENT: Symbol.for("_AWS_LAMBDA_TRACEPARENT"),
11393
- TRACESTATE: Symbol.for("_AWS_LAMBDA_TRACESTATE"),
11394
- BAGGAGE: Symbol.for("_AWS_LAMBDA_BAGGAGE")
11398
+ REQUEST_ID: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
11399
+ X_RAY_TRACE_ID: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
11400
+ TENANT_ID: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_TENANT_ID"),
11401
+ TRACEPARENT: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_TRACEPARENT"),
11402
+ TRACESTATE: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_TRACESTATE"),
11403
+ BAGGAGE: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_BAGGAGE")
11395
11404
  };
11396
11405
  NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? "");
11397
11406
  if (!NO_GLOBAL_AWS_LAMBDA) {
@@ -12731,10 +12740,10 @@ var init_nodeAppIdConfigOptions = __esm({
12731
12740
  var require_es5 = __commonJS({
12732
12741
  "node_modules/bowser/es5.js"(exports2, module2) {
12733
12742
  "use strict";
12734
- !function(e5, t) {
12743
+ !(function(e5, t) {
12735
12744
  "object" == typeof exports2 && "object" == typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports2 ? exports2.bowser = t() : e5.bowser = t();
12736
- }(exports2, function() {
12737
- return function(e5) {
12745
+ })(exports2, (function() {
12746
+ return (function(e5) {
12738
12747
  var t = {};
12739
12748
  function r5(i5) {
12740
12749
  if (t[i5]) return t[i5].exports;
@@ -12763,10 +12772,10 @@ var require_es5 = __commonJS({
12763
12772
  }, r5.o = function(e6, t2) {
12764
12773
  return Object.prototype.hasOwnProperty.call(e6, t2);
12765
12774
  }, r5.p = "", r5(r5.s = 90);
12766
- }({ 17: function(e5, t, r5) {
12775
+ })({ 17: function(e5, t, r5) {
12767
12776
  "use strict";
12768
12777
  t.__esModule = true, t.default = void 0;
12769
- var i5 = r5(18), n3 = function() {
12778
+ var i5 = r5(18), n3 = (function() {
12770
12779
  function e6() {
12771
12780
  }
12772
12781
  return e6.getFirstMatch = function(e7, t2) {
@@ -12803,9 +12812,9 @@ var require_es5 = __commonJS({
12803
12812
  return;
12804
12813
  }
12805
12814
  }, e6.getMacOSVersionName = function(e7) {
12806
- var t2 = e7.split(".").splice(0, 2).map(function(e8) {
12815
+ var t2 = e7.split(".").splice(0, 2).map((function(e8) {
12807
12816
  return parseInt(e8, 10) || 0;
12808
- });
12817
+ }));
12809
12818
  t2.push(0);
12810
12819
  var r6 = t2[0], i6 = t2[1];
12811
12820
  if (10 === r6) switch (i6) {
@@ -12849,20 +12858,20 @@ var require_es5 = __commonJS({
12849
12858
  return;
12850
12859
  }
12851
12860
  }, e6.getAndroidVersionName = function(e7) {
12852
- var t2 = e7.split(".").splice(0, 2).map(function(e8) {
12861
+ var t2 = e7.split(".").splice(0, 2).map((function(e8) {
12853
12862
  return parseInt(e8, 10) || 0;
12854
- });
12863
+ }));
12855
12864
  if (t2.push(0), !(1 === t2[0] && t2[1] < 5)) return 1 === t2[0] && t2[1] < 6 ? "Cupcake" : 1 === t2[0] && t2[1] >= 6 ? "Donut" : 2 === t2[0] && t2[1] < 2 ? "Eclair" : 2 === t2[0] && 2 === t2[1] ? "Froyo" : 2 === t2[0] && t2[1] > 2 ? "Gingerbread" : 3 === t2[0] ? "Honeycomb" : 4 === t2[0] && t2[1] < 1 ? "Ice Cream Sandwich" : 4 === t2[0] && t2[1] < 4 ? "Jelly Bean" : 4 === t2[0] && t2[1] >= 4 ? "KitKat" : 5 === t2[0] ? "Lollipop" : 6 === t2[0] ? "Marshmallow" : 7 === t2[0] ? "Nougat" : 8 === t2[0] ? "Oreo" : 9 === t2[0] ? "Pie" : void 0;
12856
12865
  }, e6.getVersionPrecision = function(e7) {
12857
12866
  return e7.split(".").length;
12858
12867
  }, e6.compareVersions = function(t2, r6, i6) {
12859
12868
  void 0 === i6 && (i6 = false);
12860
- var n4 = e6.getVersionPrecision(t2), a5 = e6.getVersionPrecision(r6), o3 = Math.max(n4, a5), s2 = 0, u = e6.map([t2, r6], function(t3) {
12869
+ var n4 = e6.getVersionPrecision(t2), a5 = e6.getVersionPrecision(r6), o3 = Math.max(n4, a5), s2 = 0, u = e6.map([t2, r6], (function(t3) {
12861
12870
  var r7 = o3 - e6.getVersionPrecision(t3), i7 = t3 + new Array(r7 + 1).join(".0");
12862
- return e6.map(i7.split("."), function(e7) {
12871
+ return e6.map(i7.split("."), (function(e7) {
12863
12872
  return new Array(20 - e7.length).join("0") + e7;
12864
- }).reverse();
12865
- });
12873
+ })).reverse();
12874
+ }));
12866
12875
  for (i6 && (s2 = o3 - Math.min(n4, a5)), o3 -= 1; o3 >= s2; ) {
12867
12876
  if (u[0][o3] > u[1][o3]) return 1;
12868
12877
  if (u[0][o3] === u[1][o3]) {
@@ -12887,9 +12896,9 @@ var require_es5 = __commonJS({
12887
12896
  if (Object.assign) return Object.assign.apply(Object, [e7].concat(a5));
12888
12897
  var s2 = function() {
12889
12898
  var e8 = a5[t2];
12890
- "object" == typeof e8 && null !== e8 && Object.keys(e8).forEach(function(t3) {
12899
+ "object" == typeof e8 && null !== e8 && Object.keys(e8).forEach((function(t3) {
12891
12900
  i6[t3] = e8[t3];
12892
- });
12901
+ }));
12893
12902
  };
12894
12903
  for (t2 = 0, r6 = a5.length; t2 < r6; t2 += 1) s2();
12895
12904
  return e7;
@@ -12898,7 +12907,7 @@ var require_es5 = __commonJS({
12898
12907
  }, e6.getBrowserTypeByAlias = function(e7) {
12899
12908
  return i5.BROWSER_MAP[e7] || "";
12900
12909
  }, e6;
12901
- }();
12910
+ })();
12902
12911
  t.default = n3, e5.exports = t.default;
12903
12912
  }, 18: function(e5, t, r5) {
12904
12913
  "use strict";
@@ -12918,7 +12927,7 @@ var require_es5 = __commonJS({
12918
12927
  i6.enumerable = i6.enumerable || false, i6.configurable = true, "value" in i6 && (i6.writable = true), Object.defineProperty(e6, i6.key, i6);
12919
12928
  }
12920
12929
  }
12921
- var s2 = function() {
12930
+ var s2 = (function() {
12922
12931
  function e6() {
12923
12932
  }
12924
12933
  var t2, r6, i6;
@@ -12936,7 +12945,7 @@ var require_es5 = __commonJS({
12936
12945
  } }, { key: "PLATFORMS_MAP", get: function() {
12937
12946
  return a5.PLATFORMS_MAP;
12938
12947
  } }], (r6 = null) && o3(t2.prototype, r6), i6 && o3(t2, i6), e6;
12939
- }();
12948
+ })();
12940
12949
  t.default = s2, e5.exports = t.default;
12941
12950
  }, 91: function(e5, t, r5) {
12942
12951
  "use strict";
@@ -12945,7 +12954,7 @@ var require_es5 = __commonJS({
12945
12954
  function u(e6) {
12946
12955
  return e6 && e6.__esModule ? e6 : { default: e6 };
12947
12956
  }
12948
- var d5 = function() {
12957
+ var d5 = (function() {
12949
12958
  function e6(e7, t3, r6) {
12950
12959
  if (void 0 === t3 && (t3 = false), void 0 === r6 && (r6 = null), null == e7 || "" === e7) throw new Error("UserAgent parameter can't be empty");
12951
12960
  this._ua = e7;
@@ -12958,14 +12967,14 @@ var require_es5 = __commonJS({
12958
12967
  }, t2.hasBrand = function(e7) {
12959
12968
  if (!this._hints || !Array.isArray(this._hints.brands)) return false;
12960
12969
  var t3 = e7.toLowerCase();
12961
- return this._hints.brands.some(function(e8) {
12970
+ return this._hints.brands.some((function(e8) {
12962
12971
  return e8.brand && e8.brand.toLowerCase() === t3;
12963
- });
12972
+ }));
12964
12973
  }, t2.getBrandVersion = function(e7) {
12965
12974
  if (this._hints && Array.isArray(this._hints.brands)) {
12966
- var t3 = e7.toLowerCase(), r6 = this._hints.brands.find(function(e8) {
12975
+ var t3 = e7.toLowerCase(), r6 = this._hints.brands.find((function(e8) {
12967
12976
  return e8.brand && e8.brand.toLowerCase() === t3;
12968
- });
12977
+ }));
12969
12978
  return r6 ? r6.version : void 0;
12970
12979
  }
12971
12980
  }, t2.getUA = function() {
@@ -12975,13 +12984,13 @@ var require_es5 = __commonJS({
12975
12984
  }, t2.parseBrowser = function() {
12976
12985
  var e7 = this;
12977
12986
  this.parsedResult.browser = {};
12978
- var t3 = s2.default.find(i5.default, function(t4) {
12987
+ var t3 = s2.default.find(i5.default, (function(t4) {
12979
12988
  if ("function" == typeof t4.test) return t4.test(e7);
12980
- if (Array.isArray(t4.test)) return t4.test.some(function(t5) {
12989
+ if (Array.isArray(t4.test)) return t4.test.some((function(t5) {
12981
12990
  return e7.test(t5);
12982
- });
12991
+ }));
12983
12992
  throw new Error("Browser's test function is not valid");
12984
- });
12993
+ }));
12985
12994
  return t3 && (this.parsedResult.browser = t3.describe(this.getUA(), this)), this.parsedResult.browser;
12986
12995
  }, t2.getBrowser = function() {
12987
12996
  return this.parsedResult.browser ? this.parsedResult.browser : this.parseBrowser();
@@ -12994,13 +13003,13 @@ var require_es5 = __commonJS({
12994
13003
  }, t2.parseOS = function() {
12995
13004
  var e7 = this;
12996
13005
  this.parsedResult.os = {};
12997
- var t3 = s2.default.find(n3.default, function(t4) {
13006
+ var t3 = s2.default.find(n3.default, (function(t4) {
12998
13007
  if ("function" == typeof t4.test) return t4.test(e7);
12999
- if (Array.isArray(t4.test)) return t4.test.some(function(t5) {
13008
+ if (Array.isArray(t4.test)) return t4.test.some((function(t5) {
13000
13009
  return e7.test(t5);
13001
- });
13010
+ }));
13002
13011
  throw new Error("Browser's test function is not valid");
13003
- });
13012
+ }));
13004
13013
  return t3 && (this.parsedResult.os = t3.describe(this.getUA())), this.parsedResult.os;
13005
13014
  }, t2.getOSName = function(e7) {
13006
13015
  var t3 = this.getOS().name;
@@ -13016,13 +13025,13 @@ var require_es5 = __commonJS({
13016
13025
  }, t2.parsePlatform = function() {
13017
13026
  var e7 = this;
13018
13027
  this.parsedResult.platform = {};
13019
- var t3 = s2.default.find(a5.default, function(t4) {
13028
+ var t3 = s2.default.find(a5.default, (function(t4) {
13020
13029
  if ("function" == typeof t4.test) return t4.test(e7);
13021
- if (Array.isArray(t4.test)) return t4.test.some(function(t5) {
13030
+ if (Array.isArray(t4.test)) return t4.test.some((function(t5) {
13022
13031
  return e7.test(t5);
13023
- });
13032
+ }));
13024
13033
  throw new Error("Browser's test function is not valid");
13025
- });
13034
+ }));
13026
13035
  return t3 && (this.parsedResult.platform = t3.describe(this.getUA())), this.parsedResult.platform;
13027
13036
  }, t2.getEngine = function() {
13028
13037
  return this.parsedResult.engine ? this.parsedResult.engine : this.parseEngine();
@@ -13031,13 +13040,13 @@ var require_es5 = __commonJS({
13031
13040
  }, t2.parseEngine = function() {
13032
13041
  var e7 = this;
13033
13042
  this.parsedResult.engine = {};
13034
- var t3 = s2.default.find(o3.default, function(t4) {
13043
+ var t3 = s2.default.find(o3.default, (function(t4) {
13035
13044
  if ("function" == typeof t4.test) return t4.test(e7);
13036
- if (Array.isArray(t4.test)) return t4.test.some(function(t5) {
13045
+ if (Array.isArray(t4.test)) return t4.test.some((function(t5) {
13037
13046
  return e7.test(t5);
13038
- });
13047
+ }));
13039
13048
  throw new Error("Browser's test function is not valid");
13040
- });
13049
+ }));
13041
13050
  return t3 && (this.parsedResult.engine = t3.describe(this.getUA())), this.parsedResult.engine;
13042
13051
  }, t2.parse = function() {
13043
13052
  return this.parseBrowser(), this.parseOS(), this.parsePlatform(), this.parseEngine(), this;
@@ -13045,29 +13054,29 @@ var require_es5 = __commonJS({
13045
13054
  return s2.default.assign({}, this.parsedResult);
13046
13055
  }, t2.satisfies = function(e7) {
13047
13056
  var t3 = this, r6 = {}, i6 = 0, n4 = {}, a6 = 0;
13048
- if (Object.keys(e7).forEach(function(t4) {
13057
+ if (Object.keys(e7).forEach((function(t4) {
13049
13058
  var o5 = e7[t4];
13050
13059
  "string" == typeof o5 ? (n4[t4] = o5, a6 += 1) : "object" == typeof o5 && (r6[t4] = o5, i6 += 1);
13051
- }), i6 > 0) {
13052
- var o4 = Object.keys(r6), u2 = s2.default.find(o4, function(e8) {
13060
+ })), i6 > 0) {
13061
+ var o4 = Object.keys(r6), u2 = s2.default.find(o4, (function(e8) {
13053
13062
  return t3.isOS(e8);
13054
- });
13063
+ }));
13055
13064
  if (u2) {
13056
13065
  var d6 = this.satisfies(r6[u2]);
13057
13066
  if (void 0 !== d6) return d6;
13058
13067
  }
13059
- var c5 = s2.default.find(o4, function(e8) {
13068
+ var c5 = s2.default.find(o4, (function(e8) {
13060
13069
  return t3.isPlatform(e8);
13061
- });
13070
+ }));
13062
13071
  if (c5) {
13063
13072
  var f5 = this.satisfies(r6[c5]);
13064
13073
  if (void 0 !== f5) return f5;
13065
13074
  }
13066
13075
  }
13067
13076
  if (a6 > 0) {
13068
- var l3 = Object.keys(n4), b5 = s2.default.find(l3, function(e8) {
13077
+ var l3 = Object.keys(n4), b5 = s2.default.find(l3, (function(e8) {
13069
13078
  return t3.isBrowser(e8, true);
13070
- });
13079
+ }));
13071
13080
  if (void 0 !== b5) return this.compareVersion(n4[b5]);
13072
13081
  }
13073
13082
  }, t2.isBrowser = function(e7, t3) {
@@ -13087,11 +13096,11 @@ var require_es5 = __commonJS({
13087
13096
  return void 0 === t3 && (t3 = false), this.isBrowser(e7, t3) || this.isOS(e7) || this.isPlatform(e7);
13088
13097
  }, t2.some = function(e7) {
13089
13098
  var t3 = this;
13090
- return void 0 === e7 && (e7 = []), e7.some(function(e8) {
13099
+ return void 0 === e7 && (e7 = []), e7.some((function(e8) {
13091
13100
  return t3.is(e8);
13092
- });
13101
+ }));
13093
13102
  }, e6;
13094
- }();
13103
+ })();
13095
13104
  t.default = d5, e5.exports = t.default;
13096
13105
  }, 92: function(e5, t, r5) {
13097
13106
  "use strict";
@@ -13540,7 +13549,7 @@ var require_es5 = __commonJS({
13540
13549
  } }];
13541
13550
  t.default = o3, e5.exports = t.default;
13542
13551
  } });
13543
- });
13552
+ }));
13544
13553
  }
13545
13554
  });
13546
13555
 
@@ -15661,7 +15670,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
15661
15670
  updateHttpClientConfig(key, value) {
15662
15671
  this.config = void 0;
15663
15672
  this.configProvider = this.configProvider.then((config) => {
15664
- if (key === Symbol.for("logger")) {
15673
+ if (key === /* @__PURE__ */ Symbol.for("logger")) {
15665
15674
  return {
15666
15675
  ...config,
15667
15676
  logger: config.logger ?? value
@@ -16489,7 +16498,7 @@ var init_cbor_types = __esm({
16489
16498
  extendedFloat32 = 26;
16490
16499
  extendedFloat64 = 27;
16491
16500
  minorIndefinite = 31;
16492
- tagSymbol = Symbol("@smithy/core/cbor::tagSymbol");
16501
+ tagSymbol = /* @__PURE__ */ Symbol("@smithy/core/cbor::tagSymbol");
16493
16502
  }
16494
16503
  });
16495
16504
 
@@ -17117,7 +17126,7 @@ var init_CborShapeSerializer2 = __esm({
17117
17126
  return result;
17118
17127
  }
17119
17128
  };
17120
- CBOR_STRUCT_CACHE = Symbol.for("@smithy/cbor-struct-cache");
17129
+ CBOR_STRUCT_CACHE = /* @__PURE__ */ Symbol.for("@smithy/cbor-struct-cache");
17121
17130
  USE_BUFFER = typeof Buffer !== "undefined";
17122
17131
  textEncoder = new TextEncoder();
17123
17132
  INITIAL_BUFFER_SIZE = 2048;
@@ -18340,7 +18349,7 @@ var init_needsReviver = __esm({
18340
18349
  "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js"() {
18341
18350
  "use strict";
18342
18351
  init_schema();
18343
- REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
18352
+ REVIVER_SYMBOL = /* @__PURE__ */ Symbol.for("@aws-sdk/reviver");
18344
18353
  }
18345
18354
  });
18346
18355
 
@@ -28745,14 +28754,8 @@ var onDelete = async (event) => {
28745
28754
  /*! Bundled license information:
28746
28755
 
28747
28756
  @aws-lambda-powertools/commons/lib/esm/awsSdkUtils.js:
28748
- (* v8 ignore else -- @preserve *)
28749
-
28750
28757
  @aws-lambda-powertools/parameters/lib/esm/base/GetOptions.js:
28751
- (* v8 ignore else -- @preserve *)
28752
-
28753
28758
  @aws-lambda-powertools/parameters/lib/esm/base/transformValue.js:
28754
- (* v8 ignore else -- @preserve *)
28755
-
28756
28759
  @aws-lambda-powertools/parameters/lib/esm/base/BaseProvider.js:
28757
28760
  (* v8 ignore else -- @preserve *)
28758
28761
  */
@@ -0,0 +1,3 @@
1
+ import { LambdaFunction } from 'datadog-cdk-constructs-v2';
2
+ /** Reject settings that may be silently overwritten after upgrading to Datadog v5. */
3
+ export declare function validateLambdaEnvironment(lambda: LambdaFunction): void;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateLambdaEnvironment = validateLambdaEnvironment;
4
+ // Datadog v4 read these existing Lambda settings; v5 no longer reads them.
5
+ // Reject their presence rather than duplicating Datadog's defaults and precedence rules.
6
+ const AFFECTED_VARIABLES = [
7
+ 'DD_TRACE_ENABLED',
8
+ 'DD_MERGE_XRAY_TRACES',
9
+ 'DD_LOGS_INJECTION',
10
+ 'DD_SERVERLESS_LOGS_ENABLED',
11
+ 'DD_CAPTURE_LAMBDA_PAYLOAD',
12
+ 'DD_TRACE_CLOUD_REQUEST_PAYLOAD_TAGGING',
13
+ 'DD_TRACE_CLOUD_RESPONSE_PAYLOAD_TAGGING',
14
+ 'DD_LOG_LEVEL',
15
+ 'DD_APPSEC_ENABLED',
16
+ 'DD_SERVERLESS_APPSEC_ENABLED',
17
+ 'AWS_LAMBDA_EXEC_WRAPPER',
18
+ 'DD_TAGS',
19
+ ];
20
+ /** Reject settings that may be silently overwritten after upgrading to Datadog v5. */
21
+ function validateLambdaEnvironment(lambda) {
22
+ // The resource's parent is the underlying Function, including for SingletonFunction.
23
+ // This checks constructor/addEnvironment settings, not CfnFunction escape-hatch overrides.
24
+ const fn = lambda.permissionsNode.defaultChild.node.scope;
25
+ const variables = fn.environment.map;
26
+ const affected = [...variables.keys()].filter(key => AFFECTED_VARIABLES.includes(key));
27
+ if (affected.length > 0) {
28
+ throw new Error(`Lambda ${lambda.node.path} sets ${affected.join(', ')} tags before Datadog instrumentation.
29
+ Datadog v5 may overwrite these settings. Remove them from the Lambda environment and use DatadogLambdaInstrumentation props (for example enableDatadogTracing, logLevel or tags).
30
+ For per-function overrides, call lambda.addEnvironment() after addLambdaFunctions(); setting DD_TAGS afterward replaces all generated tags, including Git metadata.`);
31
+ }
32
+ }
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUtbGFtYmRhLWVudmlyb25tZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RhdGFkb2d2Mi92YWxpZGF0ZS1sYW1iZGEtZW52aXJvbm1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFvQkEsOERBZUM7QUFqQ0QsMkVBQTJFO0FBQzNFLHlGQUF5RjtBQUN6RixNQUFNLGtCQUFrQixHQUFHO0lBQ3pCLGtCQUFrQjtJQUNsQixzQkFBc0I7SUFDdEIsbUJBQW1CO0lBQ25CLDRCQUE0QjtJQUM1QiwyQkFBMkI7SUFDM0Isd0NBQXdDO0lBQ3hDLHlDQUF5QztJQUN6QyxjQUFjO0lBQ2QsbUJBQW1CO0lBQ25CLDhCQUE4QjtJQUM5Qix5QkFBeUI7SUFDekIsU0FBUztDQUNWLENBQUM7QUFFRixzRkFBc0Y7QUFDdEYsU0FBZ0IseUJBQXlCLENBQUMsTUFBc0I7SUFDOUQscUZBQXFGO0lBQ3JGLDJGQUEyRjtJQUMzRixNQUFNLEVBQUUsR0FBRyxNQUFNLENBQUMsZUFBZSxDQUFDLFlBQWEsQ0FBQyxJQUFJLENBQUMsS0FFcEQsQ0FBQztJQUNGLE1BQU0sU0FBUyxHQUFHLEVBQUUsQ0FBQyxXQUFXLENBQUMsR0FBRyxDQUFDO0lBQ3JDLE1BQU0sUUFBUSxHQUFHLENBQUMsR0FBRyxTQUFTLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztJQUN2RixJ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