@aws-sdk/client-sagemaker-a2i-runtime 3.145.0 → 3.146.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.146.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.145.0...v3.146.0) (2022-08-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-sagemaker-a2i-runtime:** Fix bug with parsing ISO-8601 CreationTime in Java SDK in DescribeHumanLoop ([d2380d7](https://github.com/aws/aws-sdk-js-v3/commit/d2380d70e1b23d94b77415b373a433487ffb9e95))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
@@ -168,7 +168,7 @@ const deserializeAws_restJson1DescribeHumanLoopCommand = async (output, context)
168
168
  });
169
169
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
170
170
  if (data.CreationTime != null) {
171
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
171
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreationTime));
172
172
  }
173
173
  if (data.FailureCode != null) {
174
174
  contents.FailureCode = (0, smithy_client_1.expectString)(data.FailureCode);
@@ -465,9 +465,7 @@ const deserializeAws_restJson1HumanLoopSummaries = (output, context) => {
465
465
  };
466
466
  const deserializeAws_restJson1HumanLoopSummary = (output, context) => {
467
467
  return {
468
- CreationTime: output.CreationTime != null
469
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
470
- : undefined,
468
+ CreationTime: output.CreationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationTime)) : undefined,
471
469
  FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
472
470
  FlowDefinitionArn: (0, smithy_client_1.expectString)(output.FlowDefinitionArn),
473
471
  HumanLoopName: (0, smithy_client_1.expectString)(output.HumanLoopName),
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { SageMakerA2IRuntimeServiceException as __BaseException } from "../models/SageMakerA2IRuntimeServiceException";
6
6
  export var serializeAws_restJson1DeleteHumanLoopCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -215,7 +215,7 @@ export var deserializeAws_restJson1DescribeHumanLoopCommand = function (output,
215
215
  case 1:
216
216
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
217
217
  if (data.CreationTime != null) {
218
- contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
218
+ contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(data.CreationTime));
219
219
  }
220
220
  if (data.FailureCode != null) {
221
221
  contents.FailureCode = __expectString(data.FailureCode);
@@ -599,9 +599,7 @@ var deserializeAws_restJson1HumanLoopSummaries = function (output, context) {
599
599
  };
600
600
  var deserializeAws_restJson1HumanLoopSummary = function (output, context) {
601
601
  return {
602
- CreationTime: output.CreationTime != null
603
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
604
- : undefined,
602
+ CreationTime: output.CreationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationTime)) : undefined,
605
603
  FailureReason: __expectString(output.FailureReason),
606
604
  FlowDefinitionArn: __expectString(output.FlowDefinitionArn),
607
605
  HumanLoopName: __expectString(output.HumanLoopName),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-a2i-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker A2i Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.145.0",
4
+ "version": "3.146.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",