@cdklabs/cdk-ssm-documents 0.0.77 → 0.0.78

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 (224) hide show
  1. package/.jsii +11 -11
  2. package/lib/construct/synth-utils.js +1 -1
  3. package/lib/document/automation-document.js +1 -1
  4. package/lib/document/command-document.js +1 -1
  5. package/lib/document/document-builder.js +2 -2
  6. package/lib/document/ssm-document.js +1 -1
  7. package/lib/domain/aws-service.js +1 -1
  8. package/lib/domain/choice.js +1 -1
  9. package/lib/domain/data-type.js +1 -1
  10. package/lib/domain/enum/install-action.js +2 -2
  11. package/lib/domain/enum/install-uninstall-repair.js +2 -2
  12. package/lib/domain/enum/installation-type.js +2 -2
  13. package/lib/domain/enum/package-name.js +2 -2
  14. package/lib/domain/input.js +1 -1
  15. package/lib/domain/operation.js +1 -1
  16. package/lib/domain/platform.js +1 -1
  17. package/lib/domain/precondition.js +1 -1
  18. package/lib/incident-response/incident-response.js +3 -3
  19. package/lib/interface/approve-hook.js +2 -2
  20. package/lib/interface/auth-method.js +3 -3
  21. package/lib/interface/aws-invoker.js +2 -2
  22. package/lib/interface/downloadable-content.js +8 -8
  23. package/lib/interface/environment.js +3 -3
  24. package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
  25. package/lib/interface/observer.js +1 -1
  26. package/lib/interface/on-failure.js +6 -6
  27. package/lib/interface/pause-hook.js +2 -2
  28. package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
  29. package/lib/interface/run-document-location.js +2 -2
  30. package/lib/interface/sleep-hook.js +2 -2
  31. package/lib/interface/step-ref.js +1 -1
  32. package/lib/interface/variables/boolean-variable.js +2 -2
  33. package/lib/interface/variables/map-list-variable.js +2 -2
  34. package/lib/interface/variables/number-variable.js +2 -2
  35. package/lib/interface/variables/secure-string-variable.js +4 -4
  36. package/lib/interface/variables/string-list-variable.js +2 -2
  37. package/lib/interface/variables/string-map-variable.js +2 -2
  38. package/lib/interface/variables/string-variable.js +4 -4
  39. package/lib/interface/variables/variable.js +2 -2
  40. package/lib/interface/webhook.js +1 -1
  41. package/lib/parent-steps/automation/approve-step.js +1 -1
  42. package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
  43. package/lib/parent-steps/automation/aws-api-step.js +1 -1
  44. package/lib/parent-steps/automation/branch-step.js +1 -1
  45. package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
  46. package/lib/parent-steps/automation/copy-image-step.js +1 -1
  47. package/lib/parent-steps/automation/create-image-step.js +1 -1
  48. package/lib/parent-steps/automation/create-stack-step.js +3 -3
  49. package/lib/parent-steps/automation/create-tags-step.js +3 -3
  50. package/lib/parent-steps/automation/delete-image-step.js +1 -1
  51. package/lib/parent-steps/automation/delete-stack-step.js +1 -1
  52. package/lib/parent-steps/automation/execute-automation-step.js +1 -1
  53. package/lib/parent-steps/automation/execute-script-step.js +5 -5
  54. package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
  55. package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
  56. package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
  57. package/lib/parent-steps/automation/pause-step.js +1 -1
  58. package/lib/parent-steps/automation/run-command-step.js +3 -3
  59. package/lib/parent-steps/automation/run-instance-step.js +1 -1
  60. package/lib/parent-steps/automation/sleep-step.js +1 -1
  61. package/lib/parent-steps/automation/update-variable.js +1 -1
  62. package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
  63. package/lib/parent-steps/automation-step.js +1 -1
  64. package/lib/parent-steps/command/applications-step.js +1 -1
  65. package/lib/parent-steps/command/configure-docker-step.js +1 -1
  66. package/lib/parent-steps/command/configure-package-step.js +1 -1
  67. package/lib/parent-steps/command/domain-join-step.js +1 -1
  68. package/lib/parent-steps/command/download-content-step.js +1 -1
  69. package/lib/parent-steps/command/ps-module-step.js +1 -1
  70. package/lib/parent-steps/command/run-docker-action-step.js +1 -1
  71. package/lib/parent-steps/command/run-document-step.js +1 -1
  72. package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
  73. package/lib/parent-steps/command/run-shell-script-step.js +1 -1
  74. package/lib/parent-steps/command/software-inventory-step.js +1 -1
  75. package/lib/parent-steps/command/update-agent-step.js +1 -1
  76. package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
  77. package/lib/parent-steps/command-step.js +1 -1
  78. package/lib/parent-steps/step.js +1 -1
  79. package/lib/patterns/automation/composite-step.js +2 -2
  80. package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
  81. package/lib/patterns/automation/string-step.js +1 -1
  82. package/lib/patterns/document/string-document.js +1 -1
  83. package/lib/patterns/document/timed-document.js +1 -1
  84. package/lib/samples/hello-world.js +1 -1
  85. package/lib/simulation/automation/approve-simulation.js +1 -1
  86. package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
  87. package/lib/simulation/automation/automation-simulation-base.js +1 -1
  88. package/lib/simulation/automation/aws-api-simulation.js +1 -1
  89. package/lib/simulation/automation/branch-simulation.js +1 -1
  90. package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
  91. package/lib/simulation/automation/copy-image-simulation.js +1 -1
  92. package/lib/simulation/automation/create-image-simulation.js +1 -1
  93. package/lib/simulation/automation/create-stack-simulation.js +1 -1
  94. package/lib/simulation/automation/create-tags-simulation.js +1 -1
  95. package/lib/simulation/automation/delete-image-simulation.js +1 -1
  96. package/lib/simulation/automation/delete-stack-simulation.js +1 -1
  97. package/lib/simulation/automation/execute-script-simulation.js +1 -1
  98. package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
  99. package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
  100. package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
  101. package/lib/simulation/automation/pause-simulation.js +1 -1
  102. package/lib/simulation/automation/run-command-simulation.js +1 -1
  103. package/lib/simulation/automation/run-instance-simulation.js +1 -1
  104. package/lib/simulation/automation/sleep-simulation.js +1 -1
  105. package/lib/simulation/automation/update-variable-simulation.js +1 -1
  106. package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
  107. package/lib/simulation/automation-step-simulation.js +1 -1
  108. package/lib/simulation/command/command-simulation-base.js +1 -1
  109. package/lib/simulation/command/ps-module-simulation.js +1 -1
  110. package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
  111. package/lib/simulation/command/run-shell-script-simulation.js +1 -1
  112. package/lib/simulation/command-step-simulation.js +1 -1
  113. package/lib/simulation/document/automation-simulation.js +1 -1
  114. package/lib/simulation/document/command-simulation.js +1 -1
  115. package/lib/simulation/simulation.js +1 -1
  116. package/node_modules/@aws-sdk/checksums/package.json +2 -2
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  119. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +1 -1
  120. package/node_modules/@aws-sdk/client-cloudwatch/package.json +3 -3
  121. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +35 -11
  122. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +9 -0
  123. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +23 -10
  124. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CopyVolumesCommand.d.ts +4 -0
  125. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageCommand.d.ts +1 -0
  126. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVolumeCommand.d.ts +2 -0
  127. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceCreditSpecificationsCommand.d.ts +2 -2
  128. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceTypesCommand.d.ts +3 -0
  129. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVolumesCommand.d.ts +2 -0
  130. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +25 -0
  131. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +29 -0
  132. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +18 -1
  133. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +6 -1
  134. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +13 -0
  135. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +4 -0
  136. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +2 -0
  137. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +2 -0
  138. package/node_modules/@aws-sdk/client-ec2/package.json +4 -4
  139. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
  140. package/node_modules/@aws-sdk/client-iam/package.json +3 -3
  141. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +1 -1
  142. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  143. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +2 -2
  144. package/node_modules/@aws-sdk/client-lambda/package.json +3 -3
  145. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +38 -15
  146. package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +7 -0
  147. package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +28 -14
  148. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +3 -0
  149. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +3 -0
  150. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  151. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
  152. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +3 -0
  153. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -0
  154. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +5 -0
  155. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +3 -0
  156. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  157. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  158. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
  159. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +3 -0
  160. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +4 -0
  161. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +5 -0
  162. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  163. package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +15 -0
  164. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +186 -49
  165. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +43 -1
  166. package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +1 -0
  167. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  168. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +8 -0
  169. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +23 -7
  170. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +14 -1
  171. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  172. package/node_modules/@aws-sdk/client-s3/package.json +6 -6
  173. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  174. package/node_modules/@aws-sdk/client-sns/package.json +3 -3
  175. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  176. package/node_modules/@aws-sdk/client-sqs/package.json +3 -3
  177. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  178. package/node_modules/@aws-sdk/client-ssm/package.json +3 -3
  179. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  180. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  181. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  182. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  183. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  184. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  185. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  186. package/node_modules/@aws-sdk/core/package.json +1 -1
  187. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  188. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  189. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  190. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  191. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  192. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  193. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  194. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  195. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +2 -2
  196. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  197. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  198. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  199. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  200. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  201. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  202. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  203. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  204. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  205. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
  206. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
  207. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
  208. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
  209. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
  210. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  211. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  212. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  213. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
  214. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
  215. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  216. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  217. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  218. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  219. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  220. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  221. package/node_modules/@smithy/core/errors.d.ts +5 -0
  222. package/node_modules/@smithy/core/errors.js +5 -0
  223. package/node_modules/@smithy/core/package.json +11 -2
  224. package/package.json +10 -10
@@ -13,8 +13,12 @@ export function getAwsChunkedEncodingStream(stream, options) {
13
13
  checksumLocationName !== undefined &&
14
14
  streamHasher !== undefined;
15
15
  const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
16
+ Promise.resolve(digest).catch(() => {
17
+ });
16
18
  const awsChunkedEncodingStream = new Readable({
17
- read: () => { },
19
+ read() {
20
+ readable.resume();
21
+ },
18
22
  });
19
23
  readable.on("data", (data) => {
20
24
  const length = bodyLengthChecker(data) || 0;
@@ -23,16 +27,27 @@ export function getAwsChunkedEncodingStream(stream, options) {
23
27
  }
24
28
  awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
25
29
  awsChunkedEncodingStream.push(data);
26
- awsChunkedEncodingStream.push("\r\n");
30
+ if (!awsChunkedEncodingStream.push("\r\n")) {
31
+ readable.pause();
32
+ }
27
33
  });
34
+ readable.on("error", (err) => {
35
+ awsChunkedEncodingStream.destroy(err);
36
+ });
37
+ readable.pause();
28
38
  readable.on("end", async () => {
29
- awsChunkedEncodingStream.push(`0\r\n`);
30
- if (checksumRequired) {
31
- const checksum = base64Encoder(await digest);
32
- awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
33
- awsChunkedEncodingStream.push(`\r\n`);
39
+ try {
40
+ awsChunkedEncodingStream.push(`0\r\n`);
41
+ if (checksumRequired) {
42
+ const checksum = base64Encoder(await digest);
43
+ awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
44
+ awsChunkedEncodingStream.push(`\r\n`);
45
+ }
46
+ awsChunkedEncodingStream.push(null);
47
+ }
48
+ catch (err) {
49
+ awsChunkedEncodingStream.destroy(err);
34
50
  }
35
- awsChunkedEncodingStream.push(null);
36
51
  });
37
52
  return awsChunkedEncodingStream;
38
53
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * A general SDK error that does not fall into a more specific category.
3
+ *
4
+ * @public
5
+ */
6
+ export declare class SmithyError extends Error {
7
+ name: string;
8
+ readonly $source: string;
9
+ }
10
+ /**
11
+ * A value had the wrong type or could not be interpreted as the expected type.
12
+ *
13
+ * @public
14
+ */
15
+ export declare class SmithyTypeError extends TypeError {
16
+ name: string;
17
+ readonly $source: string;
18
+ }
19
+ /**
20
+ * A value was the correct type but fell outside its allowed range or bounds.
21
+ *
22
+ * @public
23
+ */
24
+ export declare class SmithyRangeError extends RangeError {
25
+ name: string;
26
+ readonly $source: string;
27
+ }
28
+ /**
29
+ * @public
30
+ */
31
+ export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
32
+ /**
33
+ * @public
34
+ */
35
+ export interface ErrorContainer {
36
+ readonly $source: string;
37
+ readonly Error: ErrorConstructor<SmithyError>;
38
+ readonly TypeError: ErrorConstructor<SmithyTypeError>;
39
+ readonly RangeError: ErrorConstructor<SmithyRangeError>;
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export declare const errors: ErrorContainer;
@@ -0,0 +1 @@
1
+ export { errors, type SmithyError, type SmithyRangeError, type SmithyTypeError } from "./errors";
@@ -19,6 +19,10 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
19
19
  * included here because there is an error scenario with unknown root
20
20
  * cause where the NodeHttpHandler does not decorate the Error with
21
21
  * the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
22
+ *
23
+ * Errors named "AbortError" are considered terminal. AbortSignal.timeout()
24
+ * produces an underlying cause which would otherwise be considered retryable as
25
+ * a TimeoutError.
22
26
  */
23
27
  export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
24
28
  export declare const isServerError: (error: SdkError) => boolean;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * A general SDK error that does not fall into a more specific category.
3
+ *
4
+ * @public
5
+ */
6
+ export declare class SmithyError extends Error {
7
+ name: string;
8
+ readonly $source: string;
9
+ }
10
+ /**
11
+ * A value had the wrong type or could not be interpreted as the expected type.
12
+ *
13
+ * @public
14
+ */
15
+ export declare class SmithyTypeError extends TypeError {
16
+ name: string;
17
+ readonly $source: string;
18
+ }
19
+ /**
20
+ * A value was the correct type but fell outside its allowed range or bounds.
21
+ *
22
+ * @public
23
+ */
24
+ export declare class SmithyRangeError extends RangeError {
25
+ name: string;
26
+ readonly $source: string;
27
+ }
28
+ /**
29
+ * @public
30
+ */
31
+ export type ErrorConstructor<E extends Error = Error> = new (message?: string) => E;
32
+ /**
33
+ * @public
34
+ */
35
+ export interface ErrorContainer {
36
+ readonly $source: string;
37
+ readonly Error: ErrorConstructor<SmithyError>;
38
+ readonly TypeError: ErrorConstructor<SmithyTypeError>;
39
+ readonly RangeError: ErrorConstructor<SmithyRangeError>;
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export declare const errors: ErrorContainer;
@@ -0,0 +1 @@
1
+ export { errors, SmithyError, SmithyRangeError, SmithyTypeError } from "./errors";
@@ -19,6 +19,10 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
19
19
  * included here because there is an error scenario with unknown root
20
20
  * cause where the NodeHttpHandler does not decorate the Error with
21
21
  * the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
22
+ *
23
+ * Errors named "AbortError" are considered terminal. AbortSignal.timeout()
24
+ * produces an underlying cause which would otherwise be considered retryable as
25
+ * a TimeoutError.
22
26
  */
23
27
  export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
24
28
  export declare const isServerError: (error: SdkError) => boolean;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ export * from "./dist-types/submodules/errors/index";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ module.exports = require("./dist-cjs/submodules/errors/index.js");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.33.3",
3
+ "version": "3.34.1",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -24,6 +24,8 @@
24
24
  "./config.js",
25
25
  "./endpoints.d.ts",
26
26
  "./endpoints.js",
27
+ "./errors.d.ts",
28
+ "./errors.js",
27
29
  "./event-streams.d.ts",
28
30
  "./event-streams.js",
29
31
  "./protocols.d.ts",
@@ -212,6 +214,13 @@
212
214
  "node": "./dist-cjs/submodules/transport/index.js",
213
215
  "import": "./dist-es/submodules/transport/index.js",
214
216
  "require": "./dist-cjs/submodules/transport/index.js"
217
+ },
218
+ "./errors": {
219
+ "types": "./dist-types/submodules/errors/index.d.ts",
220
+ "module": "./dist-es/submodules/errors/index.js",
221
+ "node": "./dist-cjs/submodules/errors/index.js",
222
+ "import": "./dist-es/submodules/errors/index.js",
223
+ "require": "./dist-cjs/submodules/errors/index.js"
215
224
  }
216
225
  },
217
226
  "scripts": {
@@ -232,7 +241,7 @@
232
241
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
233
242
  },
234
243
  "dependencies": {
235
- "@smithy/types": "^4.17.2",
244
+ "@smithy/types": "^4.18.0",
236
245
  "tslib": "^2.6.2"
237
246
  },
238
247
  "devDependencies": {
package/package.json CHANGED
@@ -74,15 +74,15 @@
74
74
  "constructs": "^10.5.1"
75
75
  },
76
76
  "dependencies": {
77
- "@aws-sdk/client-cloudformation": "^3.1127.0",
78
- "@aws-sdk/client-cloudwatch": "^3.1127.0",
79
- "@aws-sdk/client-ec2": "^3.1127.0",
80
- "@aws-sdk/client-iam": "^3.1127.0",
81
- "@aws-sdk/client-lambda": "^3.1127.0",
82
- "@aws-sdk/client-s3": "^3.1127.0",
83
- "@aws-sdk/client-sns": "^3.1127.0",
84
- "@aws-sdk/client-sqs": "^3.1127.0",
85
- "@aws-sdk/client-ssm": "^3.1127.0",
77
+ "@aws-sdk/client-cloudformation": "^3.1131.0",
78
+ "@aws-sdk/client-cloudwatch": "^3.1131.0",
79
+ "@aws-sdk/client-ec2": "^3.1131.0",
80
+ "@aws-sdk/client-iam": "^3.1131.0",
81
+ "@aws-sdk/client-lambda": "^3.1131.0",
82
+ "@aws-sdk/client-s3": "^3.1131.0",
83
+ "@aws-sdk/client-sns": "^3.1131.0",
84
+ "@aws-sdk/client-sqs": "^3.1131.0",
85
+ "@aws-sdk/client-ssm": "^3.1131.0",
86
86
  "immutable": "^4.3.9",
87
87
  "js-yaml": "^4.3.2",
88
88
  "jsonpath-plus": "^10.4.0",
@@ -116,7 +116,7 @@
116
116
  "publishConfig": {
117
117
  "access": "public"
118
118
  },
119
- "version": "0.0.77",
119
+ "version": "0.0.78",
120
120
  "jest": {
121
121
  "coverageProvider": "v8",
122
122
  "maxWorkers": 4,