@aws-sdk/client-launch-wizard 3.476.0 → 3.478.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/pagination/ListDeploymentEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkloadDeploymentPatternsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkloadsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +33 -89
- package/dist-es/pagination/ListDeploymentEventsPaginator.js +2 -23
- package/dist-es/pagination/ListDeploymentsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkloadDeploymentPatternsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkloadsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +33 -89
- package/dist-types/pagination/ListDeploymentEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkloadsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDeploymentEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDeploymentEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDeploymentEventsCommand_1 = require("../commands/ListDeploymentEventsCommand");
|
|
5
6
|
const LaunchWizardClient_1 = require("../LaunchWizardClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDeploymentEventsCommand_1.ListDeploymentEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDeploymentEvents(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LaunchWizardClient_1.LaunchWizardClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDeploymentEvents = paginateListDeploymentEvents;
|
|
7
|
+
exports.paginateListDeploymentEvents = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListDeploymentEventsCommand_1.ListDeploymentEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDeployments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDeploymentsCommand_1 = require("../commands/ListDeploymentsCommand");
|
|
5
6
|
const LaunchWizardClient_1 = require("../LaunchWizardClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDeployments(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LaunchWizardClient_1.LaunchWizardClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDeployments = paginateListDeployments;
|
|
7
|
+
exports.paginateListDeployments = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListDeploymentsCommand_1.ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWorkloadDeploymentPatterns = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListWorkloadDeploymentPatternsCommand_1 = require("../commands/ListWorkloadDeploymentPatternsCommand");
|
|
5
6
|
const LaunchWizardClient_1 = require("../LaunchWizardClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListWorkloadDeploymentPatternsCommand_1.ListWorkloadDeploymentPatternsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListWorkloadDeploymentPatterns(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LaunchWizardClient_1.LaunchWizardClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListWorkloadDeploymentPatterns = paginateListWorkloadDeploymentPatterns;
|
|
7
|
+
exports.paginateListWorkloadDeploymentPatterns = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListWorkloadDeploymentPatternsCommand_1.ListWorkloadDeploymentPatternsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWorkloads = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListWorkloadsCommand_1 = require("../commands/ListWorkloadsCommand");
|
|
5
6
|
const LaunchWizardClient_1 = require("../LaunchWizardClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListWorkloadsCommand_1.ListWorkloadsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListWorkloads(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LaunchWizardClient_1.LaunchWizardClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListWorkloads = paginateListWorkloads;
|
|
7
|
+
exports.paginateListWorkloads = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListWorkloadsCommand_1.ListWorkloadsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -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
|
|
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
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
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
|
-
|
|
23
|
-
|
|
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
|
|
27
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
35
28
|
const headers = {
|
|
36
29
|
"content-type": "application/json",
|
|
37
30
|
};
|
|
38
|
-
|
|
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
|
-
|
|
44
|
-
|
|
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
|
|
41
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
42
|
const headers = {
|
|
57
43
|
"content-type": "application/json",
|
|
58
44
|
};
|
|
59
|
-
|
|
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
|
-
|
|
65
|
-
|
|
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
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
77
56
|
const headers = {
|
|
78
57
|
"content-type": "application/json",
|
|
79
58
|
};
|
|
80
|
-
|
|
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
|
-
|
|
86
|
-
|
|
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
|
|
69
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
98
70
|
const headers = {
|
|
99
71
|
"content-type": "application/json",
|
|
100
72
|
};
|
|
101
|
-
|
|
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
|
-
|
|
109
|
-
|
|
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
|
|
85
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
121
86
|
const headers = {
|
|
122
87
|
"content-type": "application/json",
|
|
123
88
|
};
|
|
124
|
-
|
|
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
|
-
|
|
132
|
-
|
|
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
|
|
101
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
144
102
|
const headers = {
|
|
145
103
|
"content-type": "application/json",
|
|
146
104
|
};
|
|
147
|
-
|
|
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
|
-
|
|
155
|
-
|
|
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
|
|
117
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
167
118
|
const headers = {
|
|
168
119
|
"content-type": "application/json",
|
|
169
120
|
};
|
|
170
|
-
|
|
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
|
-
|
|
177
|
-
|
|
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,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDeploymentEventsCommand, } from "../commands/ListDeploymentEventsCommand";
|
|
2
3
|
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeploymentEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeploymentEvents(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LaunchWizardClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDeploymentEvents = createPaginator(LaunchWizardClient, ListDeploymentEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
|
|
2
3
|
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeploymentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeployments(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LaunchWizardClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDeployments = createPaginator(LaunchWizardClient, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkloadDeploymentPatternsCommand, } from "../commands/ListWorkloadDeploymentPatternsCommand";
|
|
2
3
|
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkloadDeploymentPatternsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkloadDeploymentPatterns(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LaunchWizardClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListWorkloadDeploymentPatterns = createPaginator(LaunchWizardClient, ListWorkloadDeploymentPatternsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkloadsCommand, } from "../commands/ListWorkloadsCommand";
|
|
2
3
|
import { LaunchWizardClient } from "../LaunchWizardClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkloadsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkloads(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LaunchWizardClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListWorkloads = createPaginator(LaunchWizardClient, ListWorkloadsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
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
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
|
23
|
+
const b = rb(input, context);
|
|
31
24
|
const headers = {
|
|
32
25
|
"content-type": "application/json",
|
|
33
26
|
};
|
|
34
|
-
|
|
27
|
+
b.bp("/deleteDeployment");
|
|
35
28
|
let body;
|
|
36
29
|
body = JSON.stringify(take(input, {
|
|
37
30
|
deploymentId: [],
|
|
38
31
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
36
|
+
const b = rb(input, context);
|
|
51
37
|
const headers = {
|
|
52
38
|
"content-type": "application/json",
|
|
53
39
|
};
|
|
54
|
-
|
|
40
|
+
b.bp("/getDeployment");
|
|
55
41
|
let body;
|
|
56
42
|
body = JSON.stringify(take(input, {
|
|
57
43
|
deploymentId: [],
|
|
58
44
|
}));
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
49
|
+
const b = rb(input, context);
|
|
71
50
|
const headers = {
|
|
72
51
|
"content-type": "application/json",
|
|
73
52
|
};
|
|
74
|
-
|
|
53
|
+
b.bp("/getWorkload");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(take(input, {
|
|
77
56
|
workloadName: [],
|
|
78
57
|
}));
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
62
|
+
const b = rb(input, context);
|
|
91
63
|
const headers = {
|
|
92
64
|
"content-type": "application/json",
|
|
93
65
|
};
|
|
94
|
-
|
|
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
|
-
|
|
102
|
-
|
|
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
|
|
77
|
+
const b = rb(input, context);
|
|
113
78
|
const headers = {
|
|
114
79
|
"content-type": "application/json",
|
|
115
80
|
};
|
|
116
|
-
|
|
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
|
-
|
|
124
|
-
|
|
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
|
|
92
|
+
const b = rb(input, context);
|
|
135
93
|
const headers = {
|
|
136
94
|
"content-type": "application/json",
|
|
137
95
|
};
|
|
138
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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
|
|
107
|
+
const b = rb(input, context);
|
|
157
108
|
const headers = {
|
|
158
109
|
"content-type": "application/json",
|
|
159
110
|
};
|
|
160
|
-
|
|
111
|
+
b.bp("/listWorkloads");
|
|
161
112
|
let body;
|
|
162
113
|
body = JSON.stringify(take(input, {
|
|
163
114
|
maxResults: [],
|
|
164
115
|
nextToken: [],
|
|
165
116
|
}));
|
|
166
|
-
|
|
167
|
-
|
|
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) {
|
|
@@ -4,4 +4,4 @@ import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentEvents: (config: LaunchWizardPaginationConfiguration, input: ListDeploymentEventsCommandInput, ...rest: any[]) => Paginator<ListDeploymentEventsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeployments: (config: LaunchWizardPaginationConfiguration, input: ListDeploymentsCommandInput, ...rest: any[]) => Paginator<ListDeploymentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWorkloadDeploymentPatterns: (config: LaunchWizardPaginationConfiguration, input: ListWorkloadDeploymentPatternsCommandInput, ...rest: any[]) => Paginator<ListWorkloadDeploymentPatternsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWorkloads: (config: LaunchWizardPaginationConfiguration, input: ListWorkloadsCommandInput, ...rest: any[]) => Paginator<ListWorkloadsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentEventsCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentEventsCommand";
|
|
6
6
|
import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentEvents: (
|
|
8
8
|
config: LaunchWizardPaginationConfiguration,
|
|
9
9
|
input: ListDeploymentEventsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentEventsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentsCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentsCommand";
|
|
6
6
|
import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeployments: (
|
|
8
8
|
config: LaunchWizardPaginationConfiguration,
|
|
9
9
|
input: ListDeploymentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListWorkloadDeploymentPatternsCommandOutput,
|
|
5
5
|
} from "../commands/ListWorkloadDeploymentPatternsCommand";
|
|
6
6
|
import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWorkloadDeploymentPatterns: (
|
|
8
8
|
config: LaunchWizardPaginationConfiguration,
|
|
9
9
|
input: ListWorkloadDeploymentPatternsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListWorkloadDeploymentPatternsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListWorkloadsCommandOutput,
|
|
5
5
|
} from "../commands/ListWorkloadsCommand";
|
|
6
6
|
import { LaunchWizardPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWorkloads: (
|
|
8
8
|
config: LaunchWizardPaginationConfiguration,
|
|
9
9
|
input: ListWorkloadsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListWorkloadsCommandOutput>;
|
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.
|
|
4
|
+
"version": "3.478.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,20 +20,21 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.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",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
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",
|