@jjrawlins/cdk-ami-builder 0.0.47 → 0.0.49

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 (138) hide show
  1. package/.jsii +11 -11
  2. package/cdk-ami-builder/go.mod +1 -1
  3. package/cdk-ami-builder/jsii/jsii.go +2 -2
  4. package/cdk-ami-builder/version +1 -1
  5. package/lib/ImagePipeline/ImagePipeline.js +1 -1
  6. package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
  7. package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
  8. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +88090 -87044
  9. package/node_modules/@aws-sdk/client-ec2/package.json +5 -5
  10. package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +4836 -5148
  11. package/node_modules/@aws-sdk/client-ecs/package.json +5 -5
  12. package/node_modules/@aws-sdk/client-kms/dist-cjs/index.js +3963 -4397
  13. package/node_modules/@aws-sdk/client-kms/package.json +5 -5
  14. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +11771 -11916
  15. package/node_modules/@aws-sdk/client-s3/package.json +9 -9
  16. package/node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js +1582 -1740
  17. package/node_modules/@aws-sdk/client-secrets-manager/package.json +5 -5
  18. package/node_modules/@aws-sdk/client-sfn/dist-cjs/index.js +3292 -3664
  19. package/node_modules/@aws-sdk/client-sfn/package.json +5 -5
  20. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +4326 -4601
  21. package/node_modules/@aws-sdk/client-sns/package.json +5 -5
  22. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +2114 -2361
  23. package/node_modules/@aws-sdk/client-sqs/package.json +5 -5
  24. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +12508 -13696
  25. package/node_modules/@aws-sdk/client-ssm/package.json +5 -5
  26. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
  27. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  28. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
  29. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  30. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
  31. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
  32. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
  33. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  34. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -2
  35. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
  36. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
  37. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -3
  38. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
  39. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -2
  40. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  48. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  49. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  50. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  51. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  52. package/node_modules/@aws-sdk/core/package.json +1 -1
  53. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  54. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  55. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  56. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
  57. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  58. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
  59. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  60. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
  61. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  62. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
  63. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  64. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  65. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  66. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  67. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +381 -478
  68. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  69. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +511 -641
  70. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  71. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  72. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  73. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  74. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
  75. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
  76. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  77. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +108 -137
  78. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  79. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
  80. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  81. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  82. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  83. package/node_modules/@smithy/chunked-blob-reader-native/package.json +2 -2
  84. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
  85. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -3
  86. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +32 -30
  87. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +133 -202
  88. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
  89. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -2
  90. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -3
  91. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
  92. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -3
  93. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
  94. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +19 -17
  95. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +4 -4
  96. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  97. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
  98. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +82 -176
  99. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  100. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  101. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
  102. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
  103. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
  104. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
  105. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
  106. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  107. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  108. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  109. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
  110. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
  111. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
  112. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  113. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  114. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  115. package/node_modules/@smithy/core/package.json +3 -3
  116. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  117. package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
  118. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  119. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  120. package/node_modules/@smithy/smithy-client/package.json +4 -4
  121. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  122. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  123. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  124. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  125. package/node_modules/@smithy/util-base64/package.json +1 -1
  126. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
  127. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  128. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  129. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
  130. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  131. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -3
  132. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  133. package/node_modules/@smithy/util-stream/dist-cjs/index.js +3 -5
  134. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +3 -5
  135. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  136. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  137. package/node_modules/@smithy/util-stream/package.json +3 -3
  138. package/package.json +10 -10
@@ -1,95 +1,55 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/submodules/account-id-endpoint/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- ACCOUNT_ID_ENDPOINT_MODE_VALUES: () => ACCOUNT_ID_ENDPOINT_MODE_VALUES,
25
- CONFIG_ACCOUNT_ID_ENDPOINT_MODE: () => CONFIG_ACCOUNT_ID_ENDPOINT_MODE,
26
- DEFAULT_ACCOUNT_ID_ENDPOINT_MODE: () => DEFAULT_ACCOUNT_ID_ENDPOINT_MODE,
27
- ENV_ACCOUNT_ID_ENDPOINT_MODE: () => ENV_ACCOUNT_ID_ENDPOINT_MODE,
28
- NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS: () => NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS,
29
- resolveAccountIdEndpointModeConfig: () => resolveAccountIdEndpointModeConfig,
30
- validateAccountIdEndpointMode: () => validateAccountIdEndpointMode
31
- });
32
- module.exports = __toCommonJS(index_exports);
1
+ 'use strict';
33
2
 
34
- // src/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.ts
35
- var import_util_middleware = require("@smithy/util-middleware");
3
+ var utilMiddleware = require('@smithy/util-middleware');
36
4
 
37
- // src/submodules/account-id-endpoint/AccountIdEndpointModeConstants.ts
38
- var DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
39
- var ACCOUNT_ID_ENDPOINT_MODE_VALUES = ["disabled", "preferred", "required"];
5
+ const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
6
+ const ACCOUNT_ID_ENDPOINT_MODE_VALUES = ["disabled", "preferred", "required"];
40
7
  function validateAccountIdEndpointMode(value) {
41
- return ACCOUNT_ID_ENDPOINT_MODE_VALUES.includes(value);
8
+ return ACCOUNT_ID_ENDPOINT_MODE_VALUES.includes(value);
42
9
  }
43
- __name(validateAccountIdEndpointMode, "validateAccountIdEndpointMode");
44
10
 
45
- // src/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.ts
46
- var resolveAccountIdEndpointModeConfig = /* @__PURE__ */ __name((input) => {
47
- const { accountIdEndpointMode } = input;
48
- const accountIdEndpointModeProvider = (0, import_util_middleware.normalizeProvider)(accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE);
49
- return Object.assign(input, {
50
- accountIdEndpointMode: /* @__PURE__ */ __name(async () => {
51
- const accIdMode = await accountIdEndpointModeProvider();
52
- if (!validateAccountIdEndpointMode(accIdMode)) {
53
- throw new Error(
54
- `Invalid value for accountIdEndpointMode: ${accIdMode}. Valid values are: "required", "preferred", "disabled".`
55
- );
56
- }
57
- return accIdMode;
58
- }, "accountIdEndpointMode")
59
- });
60
- }, "resolveAccountIdEndpointModeConfig");
11
+ const resolveAccountIdEndpointModeConfig = (input) => {
12
+ const { accountIdEndpointMode } = input;
13
+ const accountIdEndpointModeProvider = utilMiddleware.normalizeProvider(accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE);
14
+ return Object.assign(input, {
15
+ accountIdEndpointMode: async () => {
16
+ const accIdMode = await accountIdEndpointModeProvider();
17
+ if (!validateAccountIdEndpointMode(accIdMode)) {
18
+ throw new Error(`Invalid value for accountIdEndpointMode: ${accIdMode}. Valid values are: "required", "preferred", "disabled".`);
19
+ }
20
+ return accIdMode;
21
+ },
22
+ });
23
+ };
61
24
 
62
- // src/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.ts
63
- var err = "Invalid AccountIdEndpointMode value";
64
- var _throw = /* @__PURE__ */ __name((message) => {
65
- throw new Error(message);
66
- }, "_throw");
67
- var ENV_ACCOUNT_ID_ENDPOINT_MODE = "AWS_ACCOUNT_ID_ENDPOINT_MODE";
68
- var CONFIG_ACCOUNT_ID_ENDPOINT_MODE = "account_id_endpoint_mode";
69
- var NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS = {
70
- environmentVariableSelector: /* @__PURE__ */ __name((env) => {
71
- const value = env[ENV_ACCOUNT_ID_ENDPOINT_MODE];
72
- if (value && !validateAccountIdEndpointMode(value)) {
73
- _throw(err);
74
- }
75
- return value;
76
- }, "environmentVariableSelector"),
77
- configFileSelector: /* @__PURE__ */ __name((profile) => {
78
- const value = profile[CONFIG_ACCOUNT_ID_ENDPOINT_MODE];
79
- if (value && !validateAccountIdEndpointMode(value)) {
80
- _throw(err);
81
- }
82
- return value;
83
- }, "configFileSelector"),
84
- default: DEFAULT_ACCOUNT_ID_ENDPOINT_MODE
25
+ const err = "Invalid AccountIdEndpointMode value";
26
+ const _throw = (message) => {
27
+ throw new Error(message);
28
+ };
29
+ const ENV_ACCOUNT_ID_ENDPOINT_MODE = "AWS_ACCOUNT_ID_ENDPOINT_MODE";
30
+ const CONFIG_ACCOUNT_ID_ENDPOINT_MODE = "account_id_endpoint_mode";
31
+ const NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS = {
32
+ environmentVariableSelector: (env) => {
33
+ const value = env[ENV_ACCOUNT_ID_ENDPOINT_MODE];
34
+ if (value && !validateAccountIdEndpointMode(value)) {
35
+ _throw(err);
36
+ }
37
+ return value;
38
+ },
39
+ configFileSelector: (profile) => {
40
+ const value = profile[CONFIG_ACCOUNT_ID_ENDPOINT_MODE];
41
+ if (value && !validateAccountIdEndpointMode(value)) {
42
+ _throw(err);
43
+ }
44
+ return value;
45
+ },
46
+ default: DEFAULT_ACCOUNT_ID_ENDPOINT_MODE,
85
47
  };
86
- // Annotate the CommonJS export names for ESM import in node:
87
- 0 && (module.exports = {
88
- ACCOUNT_ID_ENDPOINT_MODE_VALUES,
89
- CONFIG_ACCOUNT_ID_ENDPOINT_MODE,
90
- DEFAULT_ACCOUNT_ID_ENDPOINT_MODE,
91
- ENV_ACCOUNT_ID_ENDPOINT_MODE,
92
- NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS,
93
- resolveAccountIdEndpointModeConfig,
94
- validateAccountIdEndpointMode
95
- });
48
+
49
+ exports.ACCOUNT_ID_ENDPOINT_MODE_VALUES = ACCOUNT_ID_ENDPOINT_MODE_VALUES;
50
+ exports.CONFIG_ACCOUNT_ID_ENDPOINT_MODE = CONFIG_ACCOUNT_ID_ENDPOINT_MODE;
51
+ exports.DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = DEFAULT_ACCOUNT_ID_ENDPOINT_MODE;
52
+ exports.ENV_ACCOUNT_ID_ENDPOINT_MODE = ENV_ACCOUNT_ID_ENDPOINT_MODE;
53
+ exports.NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS = NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS;
54
+ exports.resolveAccountIdEndpointModeConfig = resolveAccountIdEndpointModeConfig;
55
+ exports.validateAccountIdEndpointMode = validateAccountIdEndpointMode;
@@ -1,90 +1,51 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/submodules/client/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
25
- setCredentialFeature: () => setCredentialFeature,
26
- setFeature: () => setFeature,
27
- setTokenFeature: () => setTokenFeature,
28
- state: () => state
29
- });
30
- module.exports = __toCommonJS(index_exports);
1
+ 'use strict';
31
2
 
32
- // src/submodules/client/emitWarningIfUnsupportedVersion.ts
33
- var state = {
34
- warningEmitted: false
3
+ const state = {
4
+ warningEmitted: false,
35
5
  };
36
- var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
37
- if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
38
- state.warningEmitted = true;
39
- process.emitWarning(
40
- `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
6
+ const emitWarningIfUnsupportedVersion = (version) => {
7
+ if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
8
+ state.warningEmitted = true;
9
+ process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
41
10
  no longer support Node.js 16.x on January 6, 2025.
42
11
 
43
12
  To continue receiving updates to AWS services, bug fixes, and security
44
13
  updates please upgrade to a supported Node.js LTS version.
45
14
 
46
- More information can be found at: https://a.co/74kJMmI`
47
- );
48
- }
49
- }, "emitWarningIfUnsupportedVersion");
15
+ More information can be found at: https://a.co/74kJMmI`);
16
+ }
17
+ };
50
18
 
51
- // src/submodules/client/setCredentialFeature.ts
52
19
  function setCredentialFeature(credentials, feature, value) {
53
- if (!credentials.$source) {
54
- credentials.$source = {};
55
- }
56
- credentials.$source[feature] = value;
57
- return credentials;
20
+ if (!credentials.$source) {
21
+ credentials.$source = {};
22
+ }
23
+ credentials.$source[feature] = value;
24
+ return credentials;
58
25
  }
59
- __name(setCredentialFeature, "setCredentialFeature");
60
26
 
61
- // src/submodules/client/setFeature.ts
62
27
  function setFeature(context, feature, value) {
63
- if (!context.__aws_sdk_context) {
64
- context.__aws_sdk_context = {
65
- features: {}
66
- };
67
- } else if (!context.__aws_sdk_context.features) {
68
- context.__aws_sdk_context.features = {};
69
- }
70
- context.__aws_sdk_context.features[feature] = value;
28
+ if (!context.__aws_sdk_context) {
29
+ context.__aws_sdk_context = {
30
+ features: {},
31
+ };
32
+ }
33
+ else if (!context.__aws_sdk_context.features) {
34
+ context.__aws_sdk_context.features = {};
35
+ }
36
+ context.__aws_sdk_context.features[feature] = value;
71
37
  }
72
- __name(setFeature, "setFeature");
73
38
 
74
- // src/submodules/client/setTokenFeature.ts
75
39
  function setTokenFeature(token, feature, value) {
76
- if (!token.$source) {
77
- token.$source = {};
78
- }
79
- token.$source[feature] = value;
80
- return token;
40
+ if (!token.$source) {
41
+ token.$source = {};
42
+ }
43
+ token.$source[feature] = value;
44
+ return token;
81
45
  }
82
- __name(setTokenFeature, "setTokenFeature");
83
- // Annotate the CommonJS export names for ESM import in node:
84
- 0 && (module.exports = {
85
- emitWarningIfUnsupportedVersion,
86
- setCredentialFeature,
87
- setFeature,
88
- setTokenFeature,
89
- state
90
- });
46
+
47
+ exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
48
+ exports.setCredentialFeature = setCredentialFeature;
49
+ exports.setFeature = setFeature;
50
+ exports.setTokenFeature = setTokenFeature;
51
+ exports.state = state;