@aws-sdk/client-sagemaker-edge 3.934.0 → 3.936.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/dist-cjs/index.js CHANGED
@@ -117,20 +117,6 @@ let SagemakerEdgeServiceException$1 = class SagemakerEdgeServiceException extend
117
117
  }
118
118
  };
119
119
 
120
- const ChecksumType = {
121
- Sha1: "SHA1",
122
- };
123
- const ModelState = {
124
- Deploy: "DEPLOY",
125
- Undeploy: "UNDEPLOY",
126
- };
127
- const FailureHandlingPolicy = {
128
- DoNothing: "DO_NOTHING",
129
- RollbackOnFailure: "ROLLBACK_ON_FAILURE",
130
- };
131
- const DeploymentType = {
132
- Model: "Model",
133
- };
134
120
  let InternalServiceException$1 = class InternalServiceException extends SagemakerEdgeServiceException$1 {
135
121
  name = "InternalServiceException";
136
122
  $fault = "client";
@@ -145,10 +131,6 @@ let InternalServiceException$1 = class InternalServiceException extends Sagemake
145
131
  this.Message = opts.Message;
146
132
  }
147
133
  };
148
- const DeploymentStatus = {
149
- Fail: "FAIL",
150
- Success: "SUCCESS",
151
- };
152
134
 
153
135
  const _AM = "AgentMetrics";
154
136
  const _AV = "AgentVersion";
@@ -336,6 +318,25 @@ class SagemakerEdge extends SagemakerEdgeClient {
336
318
  }
337
319
  smithyClient.createAggregatedClient(commands, SagemakerEdge);
338
320
 
321
+ const ChecksumType = {
322
+ Sha1: "SHA1",
323
+ };
324
+ const ModelState = {
325
+ Deploy: "DEPLOY",
326
+ Undeploy: "UNDEPLOY",
327
+ };
328
+ const FailureHandlingPolicy = {
329
+ DoNothing: "DO_NOTHING",
330
+ RollbackOnFailure: "ROLLBACK_ON_FAILURE",
331
+ };
332
+ const DeploymentType = {
333
+ Model: "Model",
334
+ };
335
+ const DeploymentStatus = {
336
+ Fail: "FAIL",
337
+ Success: "SUCCESS",
338
+ };
339
+
339
340
  Object.defineProperty(exports, "$Command", {
340
341
  enumerable: true,
341
342
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./SagemakerEdgeClient";
2
2
  export * from "./SagemakerEdge";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { SagemakerEdgeServiceException } from "./models/SagemakerEdgeServiceException";
@@ -0,0 +1,18 @@
1
+ export const ChecksumType = {
2
+ Sha1: "SHA1",
3
+ };
4
+ export const ModelState = {
5
+ Deploy: "DEPLOY",
6
+ Undeploy: "UNDEPLOY",
7
+ };
8
+ export const FailureHandlingPolicy = {
9
+ DoNothing: "DO_NOTHING",
10
+ RollbackOnFailure: "ROLLBACK_ON_FAILURE",
11
+ };
12
+ export const DeploymentType = {
13
+ Model: "Model",
14
+ };
15
+ export const DeploymentStatus = {
16
+ Fail: "FAIL",
17
+ Success: "SUCCESS",
18
+ };
@@ -0,0 +1,15 @@
1
+ import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
2
+ export class InternalServiceException extends __BaseException {
3
+ name = "InternalServiceException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "InternalServiceException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
@@ -1,33 +1 @@
1
- import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
2
- export const ChecksumType = {
3
- Sha1: "SHA1",
4
- };
5
- export const ModelState = {
6
- Deploy: "DEPLOY",
7
- Undeploy: "UNDEPLOY",
8
- };
9
- export const FailureHandlingPolicy = {
10
- DoNothing: "DO_NOTHING",
11
- RollbackOnFailure: "ROLLBACK_ON_FAILURE",
12
- };
13
- export const DeploymentType = {
14
- Model: "Model",
15
- };
16
- export class InternalServiceException extends __BaseException {
17
- name = "InternalServiceException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "InternalServiceException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, InternalServiceException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- }
30
- export const DeploymentStatus = {
31
- Fail: "FAIL",
32
- Success: "SUCCESS",
33
- };
1
+ export {};
@@ -57,7 +57,7 @@ const _h = "http";
57
57
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakeredge";
58
58
  const n0 = "com.amazonaws.sagemakeredge";
59
59
  import { TypeRegistry } from "@smithy/core/schema";
60
- import { InternalServiceException as __InternalServiceException } from "../models/index";
60
+ import { InternalServiceException as __InternalServiceException } from "../models/errors";
61
61
  import { SagemakerEdgeServiceException as __SagemakerEdgeServiceException } from "../models/SagemakerEdgeServiceException";
62
62
  export var Checksum = [3, n0, _C, 0, [_T, _S], [0, 0]];
63
63
  export var Definition = [3, n0, _D, 0, [_MH, _SU, _C, _St], [0, 0, () => Checksum, 0]];
@@ -9,5 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { SagemakerEdgeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
- export * from "./models";
12
+ export * from "./models/enums";
13
+ export * from "./models/errors";
14
+ export type * from "./models/models_0";
13
15
  export { SagemakerEdgeServiceException } from "./models/SagemakerEdgeServiceException";
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ChecksumType: {
6
+ readonly Sha1: "SHA1";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type ChecksumType = (typeof ChecksumType)[keyof typeof ChecksumType];
12
+ /**
13
+ * @public
14
+ * @enum
15
+ */
16
+ export declare const ModelState: {
17
+ readonly Deploy: "DEPLOY";
18
+ readonly Undeploy: "UNDEPLOY";
19
+ };
20
+ /**
21
+ * @public
22
+ */
23
+ export type ModelState = (typeof ModelState)[keyof typeof ModelState];
24
+ /**
25
+ * @public
26
+ * @enum
27
+ */
28
+ export declare const FailureHandlingPolicy: {
29
+ readonly DoNothing: "DO_NOTHING";
30
+ readonly RollbackOnFailure: "ROLLBACK_ON_FAILURE";
31
+ };
32
+ /**
33
+ * @public
34
+ */
35
+ export type FailureHandlingPolicy = (typeof FailureHandlingPolicy)[keyof typeof FailureHandlingPolicy];
36
+ /**
37
+ * @public
38
+ * @enum
39
+ */
40
+ export declare const DeploymentType: {
41
+ readonly Model: "Model";
42
+ };
43
+ /**
44
+ * @public
45
+ */
46
+ export type DeploymentType = (typeof DeploymentType)[keyof typeof DeploymentType];
47
+ /**
48
+ * @public
49
+ * @enum
50
+ */
51
+ export declare const DeploymentStatus: {
52
+ readonly Fail: "FAIL";
53
+ readonly Success: "SUCCESS";
54
+ };
55
+ /**
56
+ * @public
57
+ */
58
+ export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
@@ -0,0 +1,16 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
3
+ /**
4
+ * <p>An internal failure occurred. Try your request again. If the problem
5
+ * persists, contact Amazon Web Services customer support.</p>
6
+ * @public
7
+ */
8
+ export declare class InternalServiceException extends __BaseException {
9
+ readonly name: "InternalServiceException";
10
+ readonly $fault: "client";
11
+ Message?: string | undefined;
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
16
+ }
@@ -1,5 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
1
+ import { ChecksumType, DeploymentStatus, DeploymentType, FailureHandlingPolicy, ModelState } from "./enums";
3
2
  /**
4
3
  * @public
5
4
  */
@@ -15,17 +14,6 @@ export interface GetDeploymentsRequest {
15
14
  */
16
15
  DeviceFleetName: string | undefined;
17
16
  }
18
- /**
19
- * @public
20
- * @enum
21
- */
22
- export declare const ChecksumType: {
23
- readonly Sha1: "SHA1";
24
- };
25
- /**
26
- * @public
27
- */
28
- export type ChecksumType = (typeof ChecksumType)[keyof typeof ChecksumType];
29
17
  /**
30
18
  * <p>Information about the checksum of a model deployed on a device.</p>
31
19
  * @public
@@ -42,18 +30,6 @@ export interface Checksum {
42
30
  */
43
31
  Sum?: string | undefined;
44
32
  }
45
- /**
46
- * @public
47
- * @enum
48
- */
49
- export declare const ModelState: {
50
- readonly Deploy: "DEPLOY";
51
- readonly Undeploy: "UNDEPLOY";
52
- };
53
- /**
54
- * @public
55
- */
56
- export type ModelState = (typeof ModelState)[keyof typeof ModelState];
57
33
  /**
58
34
  * <p></p>
59
35
  * @public
@@ -80,29 +56,6 @@ export interface Definition {
80
56
  */
81
57
  State?: ModelState | undefined;
82
58
  }
83
- /**
84
- * @public
85
- * @enum
86
- */
87
- export declare const FailureHandlingPolicy: {
88
- readonly DoNothing: "DO_NOTHING";
89
- readonly RollbackOnFailure: "ROLLBACK_ON_FAILURE";
90
- };
91
- /**
92
- * @public
93
- */
94
- export type FailureHandlingPolicy = (typeof FailureHandlingPolicy)[keyof typeof FailureHandlingPolicy];
95
- /**
96
- * @public
97
- * @enum
98
- */
99
- export declare const DeploymentType: {
100
- readonly Model: "Model";
101
- };
102
- /**
103
- * @public
104
- */
105
- export type DeploymentType = (typeof DeploymentType)[keyof typeof DeploymentType];
106
59
  /**
107
60
  * <p>Information about a deployment on an edge device that is registered with SageMaker Edge Manager.</p>
108
61
  * @public
@@ -139,20 +92,6 @@ export interface GetDeploymentsResult {
139
92
  */
140
93
  Deployments?: EdgeDeployment[] | undefined;
141
94
  }
142
- /**
143
- * <p>An internal failure occurred. Try your request again. If the problem
144
- * persists, contact Amazon Web Services customer support.</p>
145
- * @public
146
- */
147
- export declare class InternalServiceException extends __BaseException {
148
- readonly name: "InternalServiceException";
149
- readonly $fault: "client";
150
- Message?: string | undefined;
151
- /**
152
- * @internal
153
- */
154
- constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
155
- }
156
95
  /**
157
96
  * @public
158
97
  */
@@ -209,18 +148,6 @@ export interface EdgeMetric {
209
148
  */
210
149
  Timestamp?: Date | undefined;
211
150
  }
212
- /**
213
- * @public
214
- * @enum
215
- */
216
- export declare const DeploymentStatus: {
217
- readonly Fail: "FAIL";
218
- readonly Success: "SUCCESS";
219
- };
220
- /**
221
- * @public
222
- */
223
- export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
224
151
  /**
225
152
  * <p></p>
226
153
  * @public
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SagemakerEdgeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { SagemakerEdgeServiceException } from "./models/SagemakerEdgeServiceException";
@@ -0,0 +1,26 @@
1
+ export declare const ChecksumType: {
2
+ readonly Sha1: "SHA1";
3
+ };
4
+ export type ChecksumType = (typeof ChecksumType)[keyof typeof ChecksumType];
5
+ export declare const ModelState: {
6
+ readonly Deploy: "DEPLOY";
7
+ readonly Undeploy: "UNDEPLOY";
8
+ };
9
+ export type ModelState = (typeof ModelState)[keyof typeof ModelState];
10
+ export declare const FailureHandlingPolicy: {
11
+ readonly DoNothing: "DO_NOTHING";
12
+ readonly RollbackOnFailure: "ROLLBACK_ON_FAILURE";
13
+ };
14
+ export type FailureHandlingPolicy =
15
+ (typeof FailureHandlingPolicy)[keyof typeof FailureHandlingPolicy];
16
+ export declare const DeploymentType: {
17
+ readonly Model: "Model";
18
+ };
19
+ export type DeploymentType =
20
+ (typeof DeploymentType)[keyof typeof DeploymentType];
21
+ export declare const DeploymentStatus: {
22
+ readonly Fail: "FAIL";
23
+ readonly Success: "SUCCESS";
24
+ };
25
+ export type DeploymentStatus =
26
+ (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
@@ -0,0 +1,10 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
3
+ export declare class InternalServiceException extends __BaseException {
4
+ readonly name: "InternalServiceException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<InternalServiceException, __BaseException>
9
+ );
10
+ }
@@ -1,39 +1,24 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
1
+ import {
2
+ ChecksumType,
3
+ DeploymentStatus,
4
+ DeploymentType,
5
+ FailureHandlingPolicy,
6
+ ModelState,
7
+ } from "./enums";
3
8
  export interface GetDeploymentsRequest {
4
9
  DeviceName: string | undefined;
5
10
  DeviceFleetName: string | undefined;
6
11
  }
7
- export declare const ChecksumType: {
8
- readonly Sha1: "SHA1";
9
- };
10
- export type ChecksumType = (typeof ChecksumType)[keyof typeof ChecksumType];
11
12
  export interface Checksum {
12
13
  Type?: ChecksumType | undefined;
13
14
  Sum?: string | undefined;
14
15
  }
15
- export declare const ModelState: {
16
- readonly Deploy: "DEPLOY";
17
- readonly Undeploy: "UNDEPLOY";
18
- };
19
- export type ModelState = (typeof ModelState)[keyof typeof ModelState];
20
16
  export interface Definition {
21
17
  ModelHandle?: string | undefined;
22
18
  S3Url?: string | undefined;
23
19
  Checksum?: Checksum | undefined;
24
20
  State?: ModelState | undefined;
25
21
  }
26
- export declare const FailureHandlingPolicy: {
27
- readonly DoNothing: "DO_NOTHING";
28
- readonly RollbackOnFailure: "ROLLBACK_ON_FAILURE";
29
- };
30
- export type FailureHandlingPolicy =
31
- (typeof FailureHandlingPolicy)[keyof typeof FailureHandlingPolicy];
32
- export declare const DeploymentType: {
33
- readonly Model: "Model";
34
- };
35
- export type DeploymentType =
36
- (typeof DeploymentType)[keyof typeof DeploymentType];
37
22
  export interface EdgeDeployment {
38
23
  DeploymentName?: string | undefined;
39
24
  Type?: DeploymentType | undefined;
@@ -43,14 +28,6 @@ export interface EdgeDeployment {
43
28
  export interface GetDeploymentsResult {
44
29
  Deployments?: EdgeDeployment[] | undefined;
45
30
  }
46
- export declare class InternalServiceException extends __BaseException {
47
- readonly name: "InternalServiceException";
48
- readonly $fault: "client";
49
- Message?: string | undefined;
50
- constructor(
51
- opts: __ExceptionOptionType<InternalServiceException, __BaseException>
52
- );
53
- }
54
31
  export interface GetDeviceRegistrationRequest {
55
32
  DeviceName: string | undefined;
56
33
  DeviceFleetName: string | undefined;
@@ -65,12 +42,6 @@ export interface EdgeMetric {
65
42
  Value?: number | undefined;
66
43
  Timestamp?: Date | undefined;
67
44
  }
68
- export declare const DeploymentStatus: {
69
- readonly Fail: "FAIL";
70
- readonly Success: "SUCCESS";
71
- };
72
- export type DeploymentStatus =
73
- (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
74
45
  export interface DeploymentModel {
75
46
  ModelHandle?: string | undefined;
76
47
  ModelName?: string | undefined;
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.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-edge",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";