@aws-sdk/client-sagemaker-edge 3.133.0 → 3.142.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,39 @@
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.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
29
+
30
+
31
+ ### Features
32
+
33
+ * **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
34
+
35
+
36
+
37
+
38
+
6
39
  # [3.133.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.132.0...v3.133.0) (2022-07-19)
7
40
 
8
41
 
package/README.md CHANGED
@@ -165,7 +165,7 @@ try {
165
165
  const data = await client.send(command);
166
166
  // process data.
167
167
  } catch (error) {
168
- const { requestId, cfId, extendedRequestId } = error.$metadata;
168
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
169
169
  console.log({ requestId, cfId, extendedRequestId });
170
170
  /**
171
171
  * The keys within exceptions are also parsed.
@@ -20,8 +20,8 @@ class GetDeploymentsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetDeploymentsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetDeploymentsResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.GetDeploymentsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetDeploymentsResultFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -20,8 +20,8 @@ class GetDeviceRegistrationCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetDeviceRegistrationRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetDeviceRegistrationResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.GetDeviceRegistrationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetDeviceRegistrationResultFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -20,7 +20,7 @@ class SendHeartbeatCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.SendHeartbeatRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.SendHeartbeatRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -1,34 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SendHeartbeatRequest = exports.Model = exports.DeploymentResult = exports.DeploymentModel = exports.DeploymentStatus = exports.EdgeMetric = exports.GetDeviceRegistrationResult = exports.GetDeviceRegistrationRequest = exports.InternalServiceException = exports.GetDeploymentsResult = exports.EdgeDeployment = exports.DeploymentType = exports.FailureHandlingPolicy = exports.Definition = exports.ModelState = exports.Checksum = exports.ChecksumType = exports.GetDeploymentsRequest = void 0;
3
+ exports.SendHeartbeatRequestFilterSensitiveLog = exports.ModelFilterSensitiveLog = exports.DeploymentResultFilterSensitiveLog = exports.DeploymentModelFilterSensitiveLog = exports.EdgeMetricFilterSensitiveLog = exports.GetDeviceRegistrationResultFilterSensitiveLog = exports.GetDeviceRegistrationRequestFilterSensitiveLog = exports.GetDeploymentsResultFilterSensitiveLog = exports.EdgeDeploymentFilterSensitiveLog = exports.DefinitionFilterSensitiveLog = exports.ChecksumFilterSensitiveLog = exports.GetDeploymentsRequestFilterSensitiveLog = exports.DeploymentStatus = exports.InternalServiceException = exports.DeploymentType = exports.FailureHandlingPolicy = exports.ModelState = exports.ChecksumType = void 0;
4
4
  const SagemakerEdgeServiceException_1 = require("./SagemakerEdgeServiceException");
5
- var GetDeploymentsRequest;
6
- (function (GetDeploymentsRequest) {
7
- GetDeploymentsRequest.filterSensitiveLog = (obj) => ({
8
- ...obj,
9
- });
10
- })(GetDeploymentsRequest = exports.GetDeploymentsRequest || (exports.GetDeploymentsRequest = {}));
11
5
  var ChecksumType;
12
6
  (function (ChecksumType) {
13
7
  ChecksumType["Sha1"] = "SHA1";
14
8
  })(ChecksumType = exports.ChecksumType || (exports.ChecksumType = {}));
15
- var Checksum;
16
- (function (Checksum) {
17
- Checksum.filterSensitiveLog = (obj) => ({
18
- ...obj,
19
- });
20
- })(Checksum = exports.Checksum || (exports.Checksum = {}));
21
9
  var ModelState;
22
10
  (function (ModelState) {
23
11
  ModelState["Deploy"] = "DEPLOY";
24
12
  ModelState["Undeploy"] = "UNDEPLOY";
25
13
  })(ModelState = exports.ModelState || (exports.ModelState = {}));
26
- var Definition;
27
- (function (Definition) {
28
- Definition.filterSensitiveLog = (obj) => ({
29
- ...obj,
30
- });
31
- })(Definition = exports.Definition || (exports.Definition = {}));
32
14
  var FailureHandlingPolicy;
33
15
  (function (FailureHandlingPolicy) {
34
16
  FailureHandlingPolicy["DoNothing"] = "DO_NOTHING";
@@ -38,18 +20,6 @@ var DeploymentType;
38
20
  (function (DeploymentType) {
39
21
  DeploymentType["Model"] = "Model";
40
22
  })(DeploymentType = exports.DeploymentType || (exports.DeploymentType = {}));
41
- var EdgeDeployment;
42
- (function (EdgeDeployment) {
43
- EdgeDeployment.filterSensitiveLog = (obj) => ({
44
- ...obj,
45
- });
46
- })(EdgeDeployment = exports.EdgeDeployment || (exports.EdgeDeployment = {}));
47
- var GetDeploymentsResult;
48
- (function (GetDeploymentsResult) {
49
- GetDeploymentsResult.filterSensitiveLog = (obj) => ({
50
- ...obj,
51
- });
52
- })(GetDeploymentsResult = exports.GetDeploymentsResult || (exports.GetDeploymentsResult = {}));
53
23
  class InternalServiceException extends SagemakerEdgeServiceException_1.SagemakerEdgeServiceException {
54
24
  constructor(opts) {
55
25
  super({
@@ -64,50 +34,56 @@ class InternalServiceException extends SagemakerEdgeServiceException_1.Sagemaker
64
34
  }
65
35
  }
66
36
  exports.InternalServiceException = InternalServiceException;
67
- var GetDeviceRegistrationRequest;
68
- (function (GetDeviceRegistrationRequest) {
69
- GetDeviceRegistrationRequest.filterSensitiveLog = (obj) => ({
70
- ...obj,
71
- });
72
- })(GetDeviceRegistrationRequest = exports.GetDeviceRegistrationRequest || (exports.GetDeviceRegistrationRequest = {}));
73
- var GetDeviceRegistrationResult;
74
- (function (GetDeviceRegistrationResult) {
75
- GetDeviceRegistrationResult.filterSensitiveLog = (obj) => ({
76
- ...obj,
77
- });
78
- })(GetDeviceRegistrationResult = exports.GetDeviceRegistrationResult || (exports.GetDeviceRegistrationResult = {}));
79
- var EdgeMetric;
80
- (function (EdgeMetric) {
81
- EdgeMetric.filterSensitiveLog = (obj) => ({
82
- ...obj,
83
- });
84
- })(EdgeMetric = exports.EdgeMetric || (exports.EdgeMetric = {}));
85
37
  var DeploymentStatus;
86
38
  (function (DeploymentStatus) {
87
39
  DeploymentStatus["Fail"] = "FAIL";
88
40
  DeploymentStatus["Success"] = "SUCCESS";
89
41
  })(DeploymentStatus = exports.DeploymentStatus || (exports.DeploymentStatus = {}));
90
- var DeploymentModel;
91
- (function (DeploymentModel) {
92
- DeploymentModel.filterSensitiveLog = (obj) => ({
93
- ...obj,
94
- });
95
- })(DeploymentModel = exports.DeploymentModel || (exports.DeploymentModel = {}));
96
- var DeploymentResult;
97
- (function (DeploymentResult) {
98
- DeploymentResult.filterSensitiveLog = (obj) => ({
99
- ...obj,
100
- });
101
- })(DeploymentResult = exports.DeploymentResult || (exports.DeploymentResult = {}));
102
- var Model;
103
- (function (Model) {
104
- Model.filterSensitiveLog = (obj) => ({
105
- ...obj,
106
- });
107
- })(Model = exports.Model || (exports.Model = {}));
108
- var SendHeartbeatRequest;
109
- (function (SendHeartbeatRequest) {
110
- SendHeartbeatRequest.filterSensitiveLog = (obj) => ({
111
- ...obj,
112
- });
113
- })(SendHeartbeatRequest = exports.SendHeartbeatRequest || (exports.SendHeartbeatRequest = {}));
42
+ const GetDeploymentsRequestFilterSensitiveLog = (obj) => ({
43
+ ...obj,
44
+ });
45
+ exports.GetDeploymentsRequestFilterSensitiveLog = GetDeploymentsRequestFilterSensitiveLog;
46
+ const ChecksumFilterSensitiveLog = (obj) => ({
47
+ ...obj,
48
+ });
49
+ exports.ChecksumFilterSensitiveLog = ChecksumFilterSensitiveLog;
50
+ const DefinitionFilterSensitiveLog = (obj) => ({
51
+ ...obj,
52
+ });
53
+ exports.DefinitionFilterSensitiveLog = DefinitionFilterSensitiveLog;
54
+ const EdgeDeploymentFilterSensitiveLog = (obj) => ({
55
+ ...obj,
56
+ });
57
+ exports.EdgeDeploymentFilterSensitiveLog = EdgeDeploymentFilterSensitiveLog;
58
+ const GetDeploymentsResultFilterSensitiveLog = (obj) => ({
59
+ ...obj,
60
+ });
61
+ exports.GetDeploymentsResultFilterSensitiveLog = GetDeploymentsResultFilterSensitiveLog;
62
+ const GetDeviceRegistrationRequestFilterSensitiveLog = (obj) => ({
63
+ ...obj,
64
+ });
65
+ exports.GetDeviceRegistrationRequestFilterSensitiveLog = GetDeviceRegistrationRequestFilterSensitiveLog;
66
+ const GetDeviceRegistrationResultFilterSensitiveLog = (obj) => ({
67
+ ...obj,
68
+ });
69
+ exports.GetDeviceRegistrationResultFilterSensitiveLog = GetDeviceRegistrationResultFilterSensitiveLog;
70
+ const EdgeMetricFilterSensitiveLog = (obj) => ({
71
+ ...obj,
72
+ });
73
+ exports.EdgeMetricFilterSensitiveLog = EdgeMetricFilterSensitiveLog;
74
+ const DeploymentModelFilterSensitiveLog = (obj) => ({
75
+ ...obj,
76
+ });
77
+ exports.DeploymentModelFilterSensitiveLog = DeploymentModelFilterSensitiveLog;
78
+ const DeploymentResultFilterSensitiveLog = (obj) => ({
79
+ ...obj,
80
+ });
81
+ exports.DeploymentResultFilterSensitiveLog = DeploymentResultFilterSensitiveLog;
82
+ const ModelFilterSensitiveLog = (obj) => ({
83
+ ...obj,
84
+ });
85
+ exports.ModelFilterSensitiveLog = ModelFilterSensitiveLog;
86
+ const SendHeartbeatRequestFilterSensitiveLog = (obj) => ({
87
+ ...obj,
88
+ });
89
+ exports.SendHeartbeatRequestFilterSensitiveLog = SendHeartbeatRequestFilterSensitiveLog;
@@ -81,15 +81,14 @@ const deserializeAws_restJson1GetDeploymentsCommand = async (output, context) =>
81
81
  if (output.statusCode !== 200 && output.statusCode >= 300) {
82
82
  return deserializeAws_restJson1GetDeploymentsCommandError(output, context);
83
83
  }
84
- const contents = {
84
+ const contents = map({
85
85
  $metadata: deserializeMetadata(output),
86
- Deployments: undefined,
87
- };
86
+ });
88
87
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
89
- if (data.Deployments !== undefined && data.Deployments !== null) {
88
+ if (data.Deployments != null) {
90
89
  contents.Deployments = deserializeAws_restJson1EdgeDeployments(data.Deployments, context);
91
90
  }
92
- return Promise.resolve(contents);
91
+ return contents;
93
92
  };
94
93
  exports.deserializeAws_restJson1GetDeploymentsCommand = deserializeAws_restJson1GetDeploymentsCommand;
95
94
  const deserializeAws_restJson1GetDeploymentsCommandError = async (output, context) => {
@@ -97,7 +96,6 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
97
96
  ...output,
98
97
  body: await parseBody(output.body, context),
99
98
  };
100
- let response;
101
99
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
102
100
  switch (errorCode) {
103
101
  case "InternalServiceException":
@@ -105,33 +103,29 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
105
103
  throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
106
104
  default:
107
105
  const parsedBody = parsedOutput.body;
108
- const $metadata = deserializeMetadata(output);
109
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
110
- response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
111
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
112
- $fault: "client",
113
- $metadata,
106
+ (0, smithy_client_1.throwDefaultError)({
107
+ output,
108
+ parsedBody,
109
+ exceptionCtor: SagemakerEdgeServiceException_1.SagemakerEdgeServiceException,
110
+ errorCode,
114
111
  });
115
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
116
112
  }
117
113
  };
118
114
  const deserializeAws_restJson1GetDeviceRegistrationCommand = async (output, context) => {
119
115
  if (output.statusCode !== 200 && output.statusCode >= 300) {
120
116
  return deserializeAws_restJson1GetDeviceRegistrationCommandError(output, context);
121
117
  }
122
- const contents = {
118
+ const contents = map({
123
119
  $metadata: deserializeMetadata(output),
124
- CacheTTL: undefined,
125
- DeviceRegistration: undefined,
126
- };
120
+ });
127
121
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
128
- if (data.CacheTTL !== undefined && data.CacheTTL !== null) {
122
+ if (data.CacheTTL != null) {
129
123
  contents.CacheTTL = (0, smithy_client_1.expectString)(data.CacheTTL);
130
124
  }
131
- if (data.DeviceRegistration !== undefined && data.DeviceRegistration !== null) {
125
+ if (data.DeviceRegistration != null) {
132
126
  contents.DeviceRegistration = (0, smithy_client_1.expectString)(data.DeviceRegistration);
133
127
  }
134
- return Promise.resolve(contents);
128
+ return contents;
135
129
  };
136
130
  exports.deserializeAws_restJson1GetDeviceRegistrationCommand = deserializeAws_restJson1GetDeviceRegistrationCommand;
137
131
  const deserializeAws_restJson1GetDeviceRegistrationCommandError = async (output, context) => {
@@ -139,7 +133,6 @@ const deserializeAws_restJson1GetDeviceRegistrationCommandError = async (output,
139
133
  ...output,
140
134
  body: await parseBody(output.body, context),
141
135
  };
142
- let response;
143
136
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
144
137
  switch (errorCode) {
145
138
  case "InternalServiceException":
@@ -147,25 +140,23 @@ const deserializeAws_restJson1GetDeviceRegistrationCommandError = async (output,
147
140
  throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
148
141
  default:
149
142
  const parsedBody = parsedOutput.body;
150
- const $metadata = deserializeMetadata(output);
151
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
152
- response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
153
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
154
- $fault: "client",
155
- $metadata,
143
+ (0, smithy_client_1.throwDefaultError)({
144
+ output,
145
+ parsedBody,
146
+ exceptionCtor: SagemakerEdgeServiceException_1.SagemakerEdgeServiceException,
147
+ errorCode,
156
148
  });
157
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
158
149
  }
159
150
  };
160
151
  const deserializeAws_restJson1SendHeartbeatCommand = async (output, context) => {
161
152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
162
153
  return deserializeAws_restJson1SendHeartbeatCommandError(output, context);
163
154
  }
164
- const contents = {
155
+ const contents = map({
165
156
  $metadata: deserializeMetadata(output),
166
- };
157
+ });
167
158
  await collectBody(output.body, context);
168
- return Promise.resolve(contents);
159
+ return contents;
169
160
  };
170
161
  exports.deserializeAws_restJson1SendHeartbeatCommand = deserializeAws_restJson1SendHeartbeatCommand;
171
162
  const deserializeAws_restJson1SendHeartbeatCommandError = async (output, context) => {
@@ -173,7 +164,6 @@ const deserializeAws_restJson1SendHeartbeatCommandError = async (output, context
173
164
  ...output,
174
165
  body: await parseBody(output.body, context),
175
166
  };
176
- let response;
177
167
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
178
168
  switch (errorCode) {
179
169
  case "InternalServiceException":
@@ -181,20 +171,19 @@ const deserializeAws_restJson1SendHeartbeatCommandError = async (output, context
181
171
  throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
182
172
  default:
183
173
  const parsedBody = parsedOutput.body;
184
- const $metadata = deserializeMetadata(output);
185
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
186
- response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
187
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
188
- $fault: "client",
189
- $metadata,
174
+ (0, smithy_client_1.throwDefaultError)({
175
+ output,
176
+ parsedBody,
177
+ exceptionCtor: SagemakerEdgeServiceException_1.SagemakerEdgeServiceException,
178
+ errorCode,
190
179
  });
191
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
192
180
  }
193
181
  };
182
+ const map = smithy_client_1.map;
194
183
  const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
195
- const contents = {};
184
+ const contents = map({});
196
185
  const data = parsedOutput.body;
197
- if (data.Message !== undefined && data.Message !== null) {
186
+ if (data.Message != null) {
198
187
  contents.Message = (0, smithy_client_1.expectString)(data.Message);
199
188
  }
200
189
  const exception = new models_0_1.InternalServiceException({
@@ -219,9 +208,6 @@ const serializeAws_restJson1DeploymentModels = (input, context) => {
219
208
  return input
220
209
  .filter((e) => e != null)
221
210
  .map((entry) => {
222
- if (entry === null) {
223
- return null;
224
- }
225
211
  return serializeAws_restJson1DeploymentModel(entry, context);
226
212
  });
227
213
  };
@@ -251,9 +237,6 @@ const serializeAws_restJson1EdgeMetrics = (input, context) => {
251
237
  return input
252
238
  .filter((e) => e != null)
253
239
  .map((entry) => {
254
- if (entry === null) {
255
- return null;
256
- }
257
240
  return serializeAws_restJson1EdgeMetric(entry, context);
258
241
  });
259
242
  };
@@ -270,9 +253,6 @@ const serializeAws_restJson1Models = (input, context) => {
270
253
  return input
271
254
  .filter((e) => e != null)
272
255
  .map((entry) => {
273
- if (entry === null) {
274
- return null;
275
- }
276
256
  return serializeAws_restJson1Model(entry, context);
277
257
  });
278
258
  };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetDeploymentsRequest, GetDeploymentsResult } from "../models/models_0";
4
+ import { GetDeploymentsRequestFilterSensitiveLog, GetDeploymentsResultFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1GetDeploymentsCommand, serializeAws_restJson1GetDeploymentsCommand, } from "../protocols/Aws_restJson1";
6
6
  var GetDeploymentsCommand = (function (_super) {
7
7
  __extends(GetDeploymentsCommand, _super);
@@ -20,8 +20,8 @@ var GetDeploymentsCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetDeploymentsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetDeploymentsResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetDeploymentsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetDeploymentsResultFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
4
+ import { GetDeviceRegistrationRequestFilterSensitiveLog, GetDeviceRegistrationResultFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1GetDeviceRegistrationCommand, serializeAws_restJson1GetDeviceRegistrationCommand, } from "../protocols/Aws_restJson1";
6
6
  var GetDeviceRegistrationCommand = (function (_super) {
7
7
  __extends(GetDeviceRegistrationCommand, _super);
@@ -20,8 +20,8 @@ var GetDeviceRegistrationCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetDeviceRegistrationRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetDeviceRegistrationResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetDeviceRegistrationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetDeviceRegistrationResultFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { SendHeartbeatRequest } from "../models/models_0";
4
+ import { SendHeartbeatRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1SendHeartbeatCommand, serializeAws_restJson1SendHeartbeatCommand, } from "../protocols/Aws_restJson1";
6
6
  var SendHeartbeatCommand = (function (_super) {
7
7
  __extends(SendHeartbeatCommand, _super);
@@ -20,7 +20,7 @@ var SendHeartbeatCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: SendHeartbeatRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: SendHeartbeatRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: function (output) { return output; },
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
@@ -1,26 +1,14 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
3
- export var GetDeploymentsRequest;
4
- (function (GetDeploymentsRequest) {
5
- GetDeploymentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(GetDeploymentsRequest || (GetDeploymentsRequest = {}));
7
3
  export var ChecksumType;
8
4
  (function (ChecksumType) {
9
5
  ChecksumType["Sha1"] = "SHA1";
10
6
  })(ChecksumType || (ChecksumType = {}));
11
- export var Checksum;
12
- (function (Checksum) {
13
- Checksum.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
- })(Checksum || (Checksum = {}));
15
7
  export var ModelState;
16
8
  (function (ModelState) {
17
9
  ModelState["Deploy"] = "DEPLOY";
18
10
  ModelState["Undeploy"] = "UNDEPLOY";
19
11
  })(ModelState || (ModelState = {}));
20
- export var Definition;
21
- (function (Definition) {
22
- Definition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
23
- })(Definition || (Definition = {}));
24
12
  export var FailureHandlingPolicy;
25
13
  (function (FailureHandlingPolicy) {
26
14
  FailureHandlingPolicy["DoNothing"] = "DO_NOTHING";
@@ -30,14 +18,6 @@ export var DeploymentType;
30
18
  (function (DeploymentType) {
31
19
  DeploymentType["Model"] = "Model";
32
20
  })(DeploymentType || (DeploymentType = {}));
33
- export var EdgeDeployment;
34
- (function (EdgeDeployment) {
35
- EdgeDeployment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
36
- })(EdgeDeployment || (EdgeDeployment = {}));
37
- export var GetDeploymentsResult;
38
- (function (GetDeploymentsResult) {
39
- GetDeploymentsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
40
- })(GetDeploymentsResult || (GetDeploymentsResult = {}));
41
21
  var InternalServiceException = (function (_super) {
42
22
  __extends(InternalServiceException, _super);
43
23
  function InternalServiceException(opts) {
@@ -51,36 +31,20 @@ var InternalServiceException = (function (_super) {
51
31
  return InternalServiceException;
52
32
  }(__BaseException));
53
33
  export { InternalServiceException };
54
- export var GetDeviceRegistrationRequest;
55
- (function (GetDeviceRegistrationRequest) {
56
- GetDeviceRegistrationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
- })(GetDeviceRegistrationRequest || (GetDeviceRegistrationRequest = {}));
58
- export var GetDeviceRegistrationResult;
59
- (function (GetDeviceRegistrationResult) {
60
- GetDeviceRegistrationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
61
- })(GetDeviceRegistrationResult || (GetDeviceRegistrationResult = {}));
62
- export var EdgeMetric;
63
- (function (EdgeMetric) {
64
- EdgeMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
65
- })(EdgeMetric || (EdgeMetric = {}));
66
34
  export var DeploymentStatus;
67
35
  (function (DeploymentStatus) {
68
36
  DeploymentStatus["Fail"] = "FAIL";
69
37
  DeploymentStatus["Success"] = "SUCCESS";
70
38
  })(DeploymentStatus || (DeploymentStatus = {}));
71
- export var DeploymentModel;
72
- (function (DeploymentModel) {
73
- DeploymentModel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
- })(DeploymentModel || (DeploymentModel = {}));
75
- export var DeploymentResult;
76
- (function (DeploymentResult) {
77
- DeploymentResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- })(DeploymentResult || (DeploymentResult = {}));
79
- export var Model;
80
- (function (Model) {
81
- Model.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- })(Model || (Model = {}));
83
- export var SendHeartbeatRequest;
84
- (function (SendHeartbeatRequest) {
85
- SendHeartbeatRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- })(SendHeartbeatRequest || (SendHeartbeatRequest = {}));
39
+ export var GetDeploymentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
40
+ export var ChecksumFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
+ export var DefinitionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
+ export var EdgeDeploymentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
+ export var GetDeploymentsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
44
+ export var GetDeviceRegistrationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
+ export var GetDeviceRegistrationResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
+ export var EdgeMetricFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
47
+ export var DeploymentModelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
48
+ export var DeploymentResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
+ export var ModelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
50
+ export var SendHeartbeatRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -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, expectObject as __expectObject, expectString as __expectString, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { InternalServiceException, } from "../models/models_0";
5
5
  import { SagemakerEdgeServiceException as __BaseException } from "../models/SagemakerEdgeServiceException";
6
6
  export var serializeAws_restJson1GetDeploymentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -85,24 +85,23 @@ export var deserializeAws_restJson1GetDeploymentsCommand = function (output, con
85
85
  if (output.statusCode !== 200 && output.statusCode >= 300) {
86
86
  return [2, deserializeAws_restJson1GetDeploymentsCommandError(output, context)];
87
87
  }
88
- contents = {
88
+ contents = map({
89
89
  $metadata: deserializeMetadata(output),
90
- Deployments: undefined,
91
- };
90
+ });
92
91
  _a = __expectNonNull;
93
92
  _b = __expectObject;
94
93
  return [4, parseBody(output.body, context)];
95
94
  case 1:
96
95
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
97
- if (data.Deployments !== undefined && data.Deployments !== null) {
96
+ if (data.Deployments != null) {
98
97
  contents.Deployments = deserializeAws_restJson1EdgeDeployments(data.Deployments, context);
99
98
  }
100
- return [2, Promise.resolve(contents)];
99
+ return [2, contents];
101
100
  }
102
101
  });
103
102
  }); };
104
103
  var deserializeAws_restJson1GetDeploymentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
105
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
104
+ var parsedOutput, _a, errorCode, _b, parsedBody;
106
105
  var _c;
107
106
  return __generator(this, function (_d) {
108
107
  switch (_d.label) {
@@ -123,14 +122,14 @@ var deserializeAws_restJson1GetDeploymentsCommandError = function (output, conte
123
122
  case 3: throw _d.sent();
124
123
  case 4:
125
124
  parsedBody = parsedOutput.body;
126
- $metadata = deserializeMetadata(output);
127
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
128
- response = new __BaseException({
129
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
130
- $fault: "client",
131
- $metadata: $metadata,
125
+ throwDefaultError({
126
+ output: output,
127
+ parsedBody: parsedBody,
128
+ exceptionCtor: __BaseException,
129
+ errorCode: errorCode,
132
130
  });
133
- throw __decorateServiceException(response, parsedBody);
131
+ _d.label = 5;
132
+ case 5: return [2];
134
133
  }
135
134
  });
136
135
  }); };
@@ -142,28 +141,26 @@ export var deserializeAws_restJson1GetDeviceRegistrationCommand = function (outp
142
141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
143
142
  return [2, deserializeAws_restJson1GetDeviceRegistrationCommandError(output, context)];
144
143
  }
145
- contents = {
144
+ contents = map({
146
145
  $metadata: deserializeMetadata(output),
147
- CacheTTL: undefined,
148
- DeviceRegistration: undefined,
149
- };
146
+ });
150
147
  _a = __expectNonNull;
151
148
  _b = __expectObject;
152
149
  return [4, parseBody(output.body, context)];
153
150
  case 1:
154
151
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
155
- if (data.CacheTTL !== undefined && data.CacheTTL !== null) {
152
+ if (data.CacheTTL != null) {
156
153
  contents.CacheTTL = __expectString(data.CacheTTL);
157
154
  }
158
- if (data.DeviceRegistration !== undefined && data.DeviceRegistration !== null) {
155
+ if (data.DeviceRegistration != null) {
159
156
  contents.DeviceRegistration = __expectString(data.DeviceRegistration);
160
157
  }
161
- return [2, Promise.resolve(contents)];
158
+ return [2, contents];
162
159
  }
163
160
  });
164
161
  }); };
165
162
  var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
166
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
163
+ var parsedOutput, _a, errorCode, _b, parsedBody;
167
164
  var _c;
168
165
  return __generator(this, function (_d) {
169
166
  switch (_d.label) {
@@ -184,14 +181,14 @@ var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output
184
181
  case 3: throw _d.sent();
185
182
  case 4:
186
183
  parsedBody = parsedOutput.body;
187
- $metadata = deserializeMetadata(output);
188
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
189
- response = new __BaseException({
190
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
191
- $fault: "client",
192
- $metadata: $metadata,
184
+ throwDefaultError({
185
+ output: output,
186
+ parsedBody: parsedBody,
187
+ exceptionCtor: __BaseException,
188
+ errorCode: errorCode,
193
189
  });
194
- throw __decorateServiceException(response, parsedBody);
190
+ _d.label = 5;
191
+ case 5: return [2];
195
192
  }
196
193
  });
197
194
  }); };
@@ -203,18 +200,18 @@ export var deserializeAws_restJson1SendHeartbeatCommand = function (output, cont
203
200
  if (output.statusCode !== 200 && output.statusCode >= 300) {
204
201
  return [2, deserializeAws_restJson1SendHeartbeatCommandError(output, context)];
205
202
  }
206
- contents = {
203
+ contents = map({
207
204
  $metadata: deserializeMetadata(output),
208
- };
205
+ });
209
206
  return [4, collectBody(output.body, context)];
210
207
  case 1:
211
208
  _a.sent();
212
- return [2, Promise.resolve(contents)];
209
+ return [2, contents];
213
210
  }
214
211
  });
215
212
  }); };
216
213
  var deserializeAws_restJson1SendHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
217
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
214
+ var parsedOutput, _a, errorCode, _b, parsedBody;
218
215
  var _c;
219
216
  return __generator(this, function (_d) {
220
217
  switch (_d.label) {
@@ -235,23 +232,24 @@ var deserializeAws_restJson1SendHeartbeatCommandError = function (output, contex
235
232
  case 3: throw _d.sent();
236
233
  case 4:
237
234
  parsedBody = parsedOutput.body;
238
- $metadata = deserializeMetadata(output);
239
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
240
- response = new __BaseException({
241
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
242
- $fault: "client",
243
- $metadata: $metadata,
235
+ throwDefaultError({
236
+ output: output,
237
+ parsedBody: parsedBody,
238
+ exceptionCtor: __BaseException,
239
+ errorCode: errorCode,
244
240
  });
245
- throw __decorateServiceException(response, parsedBody);
241
+ _d.label = 5;
242
+ case 5: return [2];
246
243
  }
247
244
  });
248
245
  }); };
246
+ var map = __map;
249
247
  var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
250
248
  var contents, data, exception;
251
249
  return __generator(this, function (_a) {
252
- contents = {};
250
+ contents = map({});
253
251
  data = parsedOutput.body;
254
- if (data.Message !== undefined && data.Message !== null) {
252
+ if (data.Message != null) {
255
253
  contents.Message = __expectString(data.Message);
256
254
  }
257
255
  exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -265,9 +263,6 @@ var serializeAws_restJson1DeploymentModels = function (input, context) {
265
263
  return input
266
264
  .filter(function (e) { return e != null; })
267
265
  .map(function (entry) {
268
- if (entry === null) {
269
- return null;
270
- }
271
266
  return serializeAws_restJson1DeploymentModel(entry, context);
272
267
  });
273
268
  };
@@ -285,9 +280,6 @@ var serializeAws_restJson1EdgeMetrics = function (input, context) {
285
280
  return input
286
281
  .filter(function (e) { return e != null; })
287
282
  .map(function (entry) {
288
- if (entry === null) {
289
- return null;
290
- }
291
283
  return serializeAws_restJson1EdgeMetric(entry, context);
292
284
  });
293
285
  };
@@ -298,9 +290,6 @@ var serializeAws_restJson1Models = function (input, context) {
298
290
  return input
299
291
  .filter(function (e) { return e != null; })
300
292
  .map(function (entry) {
301
- if (entry === null) {
302
- return null;
303
- }
304
293
  return serializeAws_restJson1Model(entry, context);
305
294
  });
306
295
  };
@@ -10,12 +10,6 @@ export interface GetDeploymentsRequest {
10
10
  */
11
11
  DeviceFleetName: string | undefined;
12
12
  }
13
- export declare namespace GetDeploymentsRequest {
14
- /**
15
- * @internal
16
- */
17
- const filterSensitiveLog: (obj: GetDeploymentsRequest) => any;
18
- }
19
13
  export declare enum ChecksumType {
20
14
  Sha1 = "SHA1"
21
15
  }
@@ -32,12 +26,6 @@ export interface Checksum {
32
26
  */
33
27
  Sum?: string;
34
28
  }
35
- export declare namespace Checksum {
36
- /**
37
- * @internal
38
- */
39
- const filterSensitiveLog: (obj: Checksum) => any;
40
- }
41
29
  export declare enum ModelState {
42
30
  Deploy = "DEPLOY",
43
31
  Undeploy = "UNDEPLOY"
@@ -63,12 +51,6 @@ export interface Definition {
63
51
  */
64
52
  State?: ModelState | string;
65
53
  }
66
- export declare namespace Definition {
67
- /**
68
- * @internal
69
- */
70
- const filterSensitiveLog: (obj: Definition) => any;
71
- }
72
54
  export declare enum FailureHandlingPolicy {
73
55
  DoNothing = "DO_NOTHING",
74
56
  RollbackOnFailure = "ROLLBACK_ON_FAILURE"
@@ -97,24 +79,12 @@ export interface EdgeDeployment {
97
79
  */
98
80
  Definitions?: Definition[];
99
81
  }
100
- export declare namespace EdgeDeployment {
101
- /**
102
- * @internal
103
- */
104
- const filterSensitiveLog: (obj: EdgeDeployment) => any;
105
- }
106
82
  export interface GetDeploymentsResult {
107
83
  /**
108
84
  * <p>Returns a list of the configurations of the active deployments on the device.</p>
109
85
  */
110
86
  Deployments?: EdgeDeployment[];
111
87
  }
112
- export declare namespace GetDeploymentsResult {
113
- /**
114
- * @internal
115
- */
116
- const filterSensitiveLog: (obj: GetDeploymentsResult) => any;
117
- }
118
88
  /**
119
89
  * <p>An internal failure occurred. Try your request again. If the problem
120
90
  * persists, contact Amazon Web Services customer support.</p>
@@ -138,12 +108,6 @@ export interface GetDeviceRegistrationRequest {
138
108
  */
139
109
  DeviceFleetName: string | undefined;
140
110
  }
141
- export declare namespace GetDeviceRegistrationRequest {
142
- /**
143
- * @internal
144
- */
145
- const filterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
146
- }
147
111
  export interface GetDeviceRegistrationResult {
148
112
  /**
149
113
  * <p>Describes if the device is currently registered with SageMaker Edge Manager.</p>
@@ -154,12 +118,6 @@ export interface GetDeviceRegistrationResult {
154
118
  */
155
119
  CacheTTL?: string;
156
120
  }
157
- export declare namespace GetDeviceRegistrationResult {
158
- /**
159
- * @internal
160
- */
161
- const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
162
- }
163
121
  /**
164
122
  * <p>Information required for edge device metrics.</p>
165
123
  */
@@ -181,12 +139,6 @@ export interface EdgeMetric {
181
139
  */
182
140
  Timestamp?: Date;
183
141
  }
184
- export declare namespace EdgeMetric {
185
- /**
186
- * @internal
187
- */
188
- const filterSensitiveLog: (obj: EdgeMetric) => any;
189
- }
190
142
  export declare enum DeploymentStatus {
191
143
  Fail = "FAIL",
192
144
  Success = "SUCCESS"
@@ -228,12 +180,6 @@ export interface DeploymentModel {
228
180
  */
229
181
  RollbackFailureReason?: string;
230
182
  }
231
- export declare namespace DeploymentModel {
232
- /**
233
- * @internal
234
- */
235
- const filterSensitiveLog: (obj: DeploymentModel) => any;
236
- }
237
183
  /**
238
184
  * <p>Information about the result of a deployment on an edge device that is registered with SageMaker Edge Manager.</p>
239
185
  */
@@ -263,12 +209,6 @@ export interface DeploymentResult {
263
209
  */
264
210
  DeploymentModels?: DeploymentModel[];
265
211
  }
266
- export declare namespace DeploymentResult {
267
- /**
268
- * @internal
269
- */
270
- const filterSensitiveLog: (obj: DeploymentResult) => any;
271
- }
272
212
  /**
273
213
  * <p>Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.</p>
274
214
  */
@@ -294,12 +234,6 @@ export interface Model {
294
234
  */
295
235
  ModelMetrics?: EdgeMetric[];
296
236
  }
297
- export declare namespace Model {
298
- /**
299
- * @internal
300
- */
301
- const filterSensitiveLog: (obj: Model) => any;
302
- }
303
237
  export interface SendHeartbeatRequest {
304
238
  /**
305
239
  * <p>For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.</p>
@@ -326,9 +260,51 @@ export interface SendHeartbeatRequest {
326
260
  */
327
261
  DeploymentResult?: DeploymentResult;
328
262
  }
329
- export declare namespace SendHeartbeatRequest {
330
- /**
331
- * @internal
332
- */
333
- const filterSensitiveLog: (obj: SendHeartbeatRequest) => any;
334
- }
263
+ /**
264
+ * @internal
265
+ */
266
+ export declare const GetDeploymentsRequestFilterSensitiveLog: (obj: GetDeploymentsRequest) => any;
267
+ /**
268
+ * @internal
269
+ */
270
+ export declare const ChecksumFilterSensitiveLog: (obj: Checksum) => any;
271
+ /**
272
+ * @internal
273
+ */
274
+ export declare const DefinitionFilterSensitiveLog: (obj: Definition) => any;
275
+ /**
276
+ * @internal
277
+ */
278
+ export declare const EdgeDeploymentFilterSensitiveLog: (obj: EdgeDeployment) => any;
279
+ /**
280
+ * @internal
281
+ */
282
+ export declare const GetDeploymentsResultFilterSensitiveLog: (obj: GetDeploymentsResult) => any;
283
+ /**
284
+ * @internal
285
+ */
286
+ export declare const GetDeviceRegistrationRequestFilterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
287
+ /**
288
+ * @internal
289
+ */
290
+ export declare const GetDeviceRegistrationResultFilterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
291
+ /**
292
+ * @internal
293
+ */
294
+ export declare const EdgeMetricFilterSensitiveLog: (obj: EdgeMetric) => any;
295
+ /**
296
+ * @internal
297
+ */
298
+ export declare const DeploymentModelFilterSensitiveLog: (obj: DeploymentModel) => any;
299
+ /**
300
+ * @internal
301
+ */
302
+ export declare const DeploymentResultFilterSensitiveLog: (obj: DeploymentResult) => any;
303
+ /**
304
+ * @internal
305
+ */
306
+ export declare const ModelFilterSensitiveLog: (obj: Model) => any;
307
+ /**
308
+ * @internal
309
+ */
310
+ export declare const SendHeartbeatRequestFilterSensitiveLog: (obj: SendHeartbeatRequest) => any;
@@ -6,10 +6,6 @@ export interface GetDeploymentsRequest {
6
6
 
7
7
  DeviceFleetName: string | undefined;
8
8
  }
9
- export declare namespace GetDeploymentsRequest {
10
-
11
- const filterSensitiveLog: (obj: GetDeploymentsRequest) => any;
12
- }
13
9
  export declare enum ChecksumType {
14
10
  Sha1 = "SHA1"
15
11
  }
@@ -20,10 +16,6 @@ export interface Checksum {
20
16
 
21
17
  Sum?: string;
22
18
  }
23
- export declare namespace Checksum {
24
-
25
- const filterSensitiveLog: (obj: Checksum) => any;
26
- }
27
19
  export declare enum ModelState {
28
20
  Deploy = "DEPLOY",
29
21
  Undeploy = "UNDEPLOY"
@@ -39,10 +31,6 @@ export interface Definition {
39
31
 
40
32
  State?: ModelState | string;
41
33
  }
42
- export declare namespace Definition {
43
-
44
- const filterSensitiveLog: (obj: Definition) => any;
45
- }
46
34
  export declare enum FailureHandlingPolicy {
47
35
  DoNothing = "DO_NOTHING",
48
36
  RollbackOnFailure = "ROLLBACK_ON_FAILURE"
@@ -61,18 +49,10 @@ export interface EdgeDeployment {
61
49
 
62
50
  Definitions?: Definition[];
63
51
  }
64
- export declare namespace EdgeDeployment {
65
-
66
- const filterSensitiveLog: (obj: EdgeDeployment) => any;
67
- }
68
52
  export interface GetDeploymentsResult {
69
53
 
70
54
  Deployments?: EdgeDeployment[];
71
55
  }
72
- export declare namespace GetDeploymentsResult {
73
-
74
- const filterSensitiveLog: (obj: GetDeploymentsResult) => any;
75
- }
76
56
 
77
57
  export declare class InternalServiceException extends __BaseException {
78
58
  readonly name: "InternalServiceException";
@@ -87,20 +67,12 @@ export interface GetDeviceRegistrationRequest {
87
67
 
88
68
  DeviceFleetName: string | undefined;
89
69
  }
90
- export declare namespace GetDeviceRegistrationRequest {
91
-
92
- const filterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
93
- }
94
70
  export interface GetDeviceRegistrationResult {
95
71
 
96
72
  DeviceRegistration?: string;
97
73
 
98
74
  CacheTTL?: string;
99
75
  }
100
- export declare namespace GetDeviceRegistrationResult {
101
-
102
- const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
103
- }
104
76
 
105
77
  export interface EdgeMetric {
106
78
 
@@ -112,10 +84,6 @@ export interface EdgeMetric {
112
84
 
113
85
  Timestamp?: Date;
114
86
  }
115
- export declare namespace EdgeMetric {
116
-
117
- const filterSensitiveLog: (obj: EdgeMetric) => any;
118
- }
119
87
  export declare enum DeploymentStatus {
120
88
  Fail = "FAIL",
121
89
  Success = "SUCCESS"
@@ -139,10 +107,6 @@ export interface DeploymentModel {
139
107
 
140
108
  RollbackFailureReason?: string;
141
109
  }
142
- export declare namespace DeploymentModel {
143
-
144
- const filterSensitiveLog: (obj: DeploymentModel) => any;
145
- }
146
110
 
147
111
  export interface DeploymentResult {
148
112
 
@@ -158,10 +122,6 @@ export interface DeploymentResult {
158
122
 
159
123
  DeploymentModels?: DeploymentModel[];
160
124
  }
161
- export declare namespace DeploymentResult {
162
-
163
- const filterSensitiveLog: (obj: DeploymentResult) => any;
164
- }
165
125
 
166
126
  export interface Model {
167
127
 
@@ -175,10 +135,6 @@ export interface Model {
175
135
 
176
136
  ModelMetrics?: EdgeMetric[];
177
137
  }
178
- export declare namespace Model {
179
-
180
- const filterSensitiveLog: (obj: Model) => any;
181
- }
182
138
  export interface SendHeartbeatRequest {
183
139
 
184
140
  AgentMetrics?: EdgeMetric[];
@@ -193,7 +149,27 @@ export interface SendHeartbeatRequest {
193
149
 
194
150
  DeploymentResult?: DeploymentResult;
195
151
  }
196
- export declare namespace SendHeartbeatRequest {
197
-
198
- const filterSensitiveLog: (obj: SendHeartbeatRequest) => any;
199
- }
152
+
153
+ export declare const GetDeploymentsRequestFilterSensitiveLog: (obj: GetDeploymentsRequest) => any;
154
+
155
+ export declare const ChecksumFilterSensitiveLog: (obj: Checksum) => any;
156
+
157
+ export declare const DefinitionFilterSensitiveLog: (obj: Definition) => any;
158
+
159
+ export declare const EdgeDeploymentFilterSensitiveLog: (obj: EdgeDeployment) => any;
160
+
161
+ export declare const GetDeploymentsResultFilterSensitiveLog: (obj: GetDeploymentsResult) => any;
162
+
163
+ export declare const GetDeviceRegistrationRequestFilterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
164
+
165
+ export declare const GetDeviceRegistrationResultFilterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
166
+
167
+ export declare const EdgeMetricFilterSensitiveLog: (obj: EdgeMetric) => any;
168
+
169
+ export declare const DeploymentModelFilterSensitiveLog: (obj: DeploymentModel) => any;
170
+
171
+ export declare const DeploymentResultFilterSensitiveLog: (obj: DeploymentResult) => any;
172
+
173
+ export declare const ModelFilterSensitiveLog: (obj: Model) => any;
174
+
175
+ export declare const SendHeartbeatRequestFilterSensitiveLog: (obj: SendHeartbeatRequest) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-edge",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Edge Client for Node.js, Browser and React Native",
4
- "version": "3.133.0",
4
+ "version": "3.142.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",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.131.0",
21
+ "@aws-sdk/client-sts": "3.142.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.131.0",
23
+ "@aws-sdk/credential-provider-node": "3.142.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.142.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.130.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.142.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",