@aws-sdk/client-launch-wizard 3.474.0 → 3.477.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.
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListWorkloadsCommand = exports.de_ListWorkloadDeploymentPatternsCommand = exports.de_ListDeploymentsCommand = exports.de_ListDeploymentEventsCommand = exports.de_GetWorkloadCommand = exports.de_GetDeploymentCommand = exports.de_DeleteDeploymentCommand = exports.de_CreateDeploymentCommand = exports.se_ListWorkloadsCommand = exports.se_ListWorkloadDeploymentPatternsCommand = exports.se_ListDeploymentsCommand = exports.se_ListDeploymentEventsCommand = exports.se_GetWorkloadCommand = exports.se_GetDeploymentCommand = exports.se_DeleteDeploymentCommand = exports.se_CreateDeploymentCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const LaunchWizardServiceException_1 = require("../models/LaunchWizardServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_CreateDeploymentCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {
11
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createDeployment";
13
+ b.bp("/createDeployment");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  deploymentPatternName: [],
@@ -19,169 +19,113 @@ const se_CreateDeploymentCommand = async (input, context) => {
19
19
  specifications: (_) => (0, smithy_client_1._json)(_),
20
20
  workloadName: [],
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
33
26
  const se_DeleteDeploymentCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteDeployment";
31
+ b.bp("/deleteDeployment");
39
32
  let body;
40
33
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
34
  deploymentId: [],
42
35
  }));
43
- return new protocol_http_1.HttpRequest({
44
- protocol,
45
- hostname,
46
- port,
47
- method: "POST",
48
- headers,
49
- path: resolvedPath,
50
- body,
51
- });
36
+ b.m("POST").h(headers).b(body);
37
+ return b.build();
52
38
  };
53
39
  exports.se_DeleteDeploymentCommand = se_DeleteDeploymentCommand;
54
40
  const se_GetDeploymentCommand = async (input, context) => {
55
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
+ const b = (0, core_1.requestBuilder)(input, context);
56
42
  const headers = {
57
43
  "content-type": "application/json",
58
44
  };
59
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getDeployment";
45
+ b.bp("/getDeployment");
60
46
  let body;
61
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
62
48
  deploymentId: [],
63
49
  }));
64
- return new protocol_http_1.HttpRequest({
65
- protocol,
66
- hostname,
67
- port,
68
- method: "POST",
69
- headers,
70
- path: resolvedPath,
71
- body,
72
- });
50
+ b.m("POST").h(headers).b(body);
51
+ return b.build();
73
52
  };
74
53
  exports.se_GetDeploymentCommand = se_GetDeploymentCommand;
75
54
  const se_GetWorkloadCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = (0, core_1.requestBuilder)(input, context);
77
56
  const headers = {
78
57
  "content-type": "application/json",
79
58
  };
80
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getWorkload";
59
+ b.bp("/getWorkload");
81
60
  let body;
82
61
  body = JSON.stringify((0, smithy_client_1.take)(input, {
83
62
  workloadName: [],
84
63
  }));
85
- return new protocol_http_1.HttpRequest({
86
- protocol,
87
- hostname,
88
- port,
89
- method: "POST",
90
- headers,
91
- path: resolvedPath,
92
- body,
93
- });
64
+ b.m("POST").h(headers).b(body);
65
+ return b.build();
94
66
  };
95
67
  exports.se_GetWorkloadCommand = se_GetWorkloadCommand;
96
68
  const se_ListDeploymentEventsCommand = async (input, context) => {
97
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
98
70
  const headers = {
99
71
  "content-type": "application/json",
100
72
  };
101
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeploymentEvents";
73
+ b.bp("/listDeploymentEvents");
102
74
  let body;
103
75
  body = JSON.stringify((0, smithy_client_1.take)(input, {
104
76
  deploymentId: [],
105
77
  maxResults: [],
106
78
  nextToken: [],
107
79
  }));
108
- return new protocol_http_1.HttpRequest({
109
- protocol,
110
- hostname,
111
- port,
112
- method: "POST",
113
- headers,
114
- path: resolvedPath,
115
- body,
116
- });
80
+ b.m("POST").h(headers).b(body);
81
+ return b.build();
117
82
  };
118
83
  exports.se_ListDeploymentEventsCommand = se_ListDeploymentEventsCommand;
119
84
  const se_ListDeploymentsCommand = async (input, context) => {
120
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
+ const b = (0, core_1.requestBuilder)(input, context);
121
86
  const headers = {
122
87
  "content-type": "application/json",
123
88
  };
124
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeployments";
89
+ b.bp("/listDeployments");
125
90
  let body;
126
91
  body = JSON.stringify((0, smithy_client_1.take)(input, {
127
92
  filters: (_) => (0, smithy_client_1._json)(_),
128
93
  maxResults: [],
129
94
  nextToken: [],
130
95
  }));
131
- return new protocol_http_1.HttpRequest({
132
- protocol,
133
- hostname,
134
- port,
135
- method: "POST",
136
- headers,
137
- path: resolvedPath,
138
- body,
139
- });
96
+ b.m("POST").h(headers).b(body);
97
+ return b.build();
140
98
  };
141
99
  exports.se_ListDeploymentsCommand = se_ListDeploymentsCommand;
142
100
  const se_ListWorkloadDeploymentPatternsCommand = async (input, context) => {
143
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
+ const b = (0, core_1.requestBuilder)(input, context);
144
102
  const headers = {
145
103
  "content-type": "application/json",
146
104
  };
147
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkloadDeploymentPatterns";
105
+ b.bp("/listWorkloadDeploymentPatterns");
148
106
  let body;
149
107
  body = JSON.stringify((0, smithy_client_1.take)(input, {
150
108
  maxResults: [],
151
109
  nextToken: [],
152
110
  workloadName: [],
153
111
  }));
154
- return new protocol_http_1.HttpRequest({
155
- protocol,
156
- hostname,
157
- port,
158
- method: "POST",
159
- headers,
160
- path: resolvedPath,
161
- body,
162
- });
112
+ b.m("POST").h(headers).b(body);
113
+ return b.build();
163
114
  };
164
115
  exports.se_ListWorkloadDeploymentPatternsCommand = se_ListWorkloadDeploymentPatternsCommand;
165
116
  const se_ListWorkloadsCommand = async (input, context) => {
166
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = (0, core_1.requestBuilder)(input, context);
167
118
  const headers = {
168
119
  "content-type": "application/json",
169
120
  };
170
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkloads";
121
+ b.bp("/listWorkloads");
171
122
  let body;
172
123
  body = JSON.stringify((0, smithy_client_1.take)(input, {
173
124
  maxResults: [],
174
125
  nextToken: [],
175
126
  }));
176
- return new protocol_http_1.HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "POST",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
127
+ b.m("POST").h(headers).b(body);
128
+ return b.build();
185
129
  };
186
130
  exports.se_ListWorkloadsCommand = se_ListWorkloadsCommand;
187
131
  const de_CreateDeploymentCommand = async (output, context) => {
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { LaunchWizardServiceException as __BaseException } from "../models/LaunchWizardServiceException";
4
4
  import { InternalServerException, ResourceLimitException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
5
  export const se_CreateDeploymentCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createDeployment";
10
+ b.bp("/createDeployment");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  deploymentPatternName: [],
@@ -16,162 +16,106 @@ export const se_CreateDeploymentCommand = async (input, context) => {
16
16
  specifications: (_) => _json(_),
17
17
  workloadName: [],
18
18
  }));
19
- return new __HttpRequest({
20
- protocol,
21
- hostname,
22
- port,
23
- method: "POST",
24
- headers,
25
- path: resolvedPath,
26
- body,
27
- });
19
+ b.m("POST").h(headers).b(body);
20
+ return b.build();
28
21
  };
29
22
  export const se_DeleteDeploymentCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
+ const b = rb(input, context);
31
24
  const headers = {
32
25
  "content-type": "application/json",
33
26
  };
34
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteDeployment";
27
+ b.bp("/deleteDeployment");
35
28
  let body;
36
29
  body = JSON.stringify(take(input, {
37
30
  deploymentId: [],
38
31
  }));
39
- return new __HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
48
34
  };
49
35
  export const se_GetDeploymentCommand = async (input, context) => {
50
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = rb(input, context);
51
37
  const headers = {
52
38
  "content-type": "application/json",
53
39
  };
54
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getDeployment";
40
+ b.bp("/getDeployment");
55
41
  let body;
56
42
  body = JSON.stringify(take(input, {
57
43
  deploymentId: [],
58
44
  }));
59
- return new __HttpRequest({
60
- protocol,
61
- hostname,
62
- port,
63
- method: "POST",
64
- headers,
65
- path: resolvedPath,
66
- body,
67
- });
45
+ b.m("POST").h(headers).b(body);
46
+ return b.build();
68
47
  };
69
48
  export const se_GetWorkloadCommand = async (input, context) => {
70
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = rb(input, context);
71
50
  const headers = {
72
51
  "content-type": "application/json",
73
52
  };
74
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getWorkload";
53
+ b.bp("/getWorkload");
75
54
  let body;
76
55
  body = JSON.stringify(take(input, {
77
56
  workloadName: [],
78
57
  }));
79
- return new __HttpRequest({
80
- protocol,
81
- hostname,
82
- port,
83
- method: "POST",
84
- headers,
85
- path: resolvedPath,
86
- body,
87
- });
58
+ b.m("POST").h(headers).b(body);
59
+ return b.build();
88
60
  };
89
61
  export const se_ListDeploymentEventsCommand = async (input, context) => {
90
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = rb(input, context);
91
63
  const headers = {
92
64
  "content-type": "application/json",
93
65
  };
94
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeploymentEvents";
66
+ b.bp("/listDeploymentEvents");
95
67
  let body;
96
68
  body = JSON.stringify(take(input, {
97
69
  deploymentId: [],
98
70
  maxResults: [],
99
71
  nextToken: [],
100
72
  }));
101
- return new __HttpRequest({
102
- protocol,
103
- hostname,
104
- port,
105
- method: "POST",
106
- headers,
107
- path: resolvedPath,
108
- body,
109
- });
73
+ b.m("POST").h(headers).b(body);
74
+ return b.build();
110
75
  };
111
76
  export const se_ListDeploymentsCommand = async (input, context) => {
112
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = rb(input, context);
113
78
  const headers = {
114
79
  "content-type": "application/json",
115
80
  };
116
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeployments";
81
+ b.bp("/listDeployments");
117
82
  let body;
118
83
  body = JSON.stringify(take(input, {
119
84
  filters: (_) => _json(_),
120
85
  maxResults: [],
121
86
  nextToken: [],
122
87
  }));
123
- return new __HttpRequest({
124
- protocol,
125
- hostname,
126
- port,
127
- method: "POST",
128
- headers,
129
- path: resolvedPath,
130
- body,
131
- });
88
+ b.m("POST").h(headers).b(body);
89
+ return b.build();
132
90
  };
133
91
  export const se_ListWorkloadDeploymentPatternsCommand = async (input, context) => {
134
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = rb(input, context);
135
93
  const headers = {
136
94
  "content-type": "application/json",
137
95
  };
138
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkloadDeploymentPatterns";
96
+ b.bp("/listWorkloadDeploymentPatterns");
139
97
  let body;
140
98
  body = JSON.stringify(take(input, {
141
99
  maxResults: [],
142
100
  nextToken: [],
143
101
  workloadName: [],
144
102
  }));
145
- return new __HttpRequest({
146
- protocol,
147
- hostname,
148
- port,
149
- method: "POST",
150
- headers,
151
- path: resolvedPath,
152
- body,
153
- });
103
+ b.m("POST").h(headers).b(body);
104
+ return b.build();
154
105
  };
155
106
  export const se_ListWorkloadsCommand = async (input, context) => {
156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = rb(input, context);
157
108
  const headers = {
158
109
  "content-type": "application/json",
159
110
  };
160
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkloads";
111
+ b.bp("/listWorkloads");
161
112
  let body;
162
113
  body = JSON.stringify(take(input, {
163
114
  maxResults: [],
164
115
  nextToken: [],
165
116
  }));
166
- return new __HttpRequest({
167
- protocol,
168
- hostname,
169
- port,
170
- method: "POST",
171
- headers,
172
- path: resolvedPath,
173
- body,
174
- });
117
+ b.m("POST").h(headers).b(body);
118
+ return b.build();
175
119
  };
176
120
  export const de_CreateDeploymentCommand = async (output, context) => {
177
121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-launch-wizard",
3
3
  "description": "AWS SDK for JavaScript Launch Wizard Client for Node.js, Browser and React Native",
4
- "version": "3.474.0",
4
+ "version": "3.477.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",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.474.0",
24
- "@aws-sdk/core": "3.474.0",
25
- "@aws-sdk/credential-provider-node": "3.474.0",
23
+ "@aws-sdk/client-sts": "3.477.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.477.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
@@ -34,6 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",