@aws-sdk/client-launch-wizard 3.927.0 → 3.929.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 +478 -583
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/LaunchWizardClient.js +2 -0
- package/dist-es/commands/CreateDeploymentCommand.js +3 -10
- package/dist-es/commands/DeleteDeploymentCommand.js +3 -9
- package/dist-es/commands/GetDeploymentCommand.js +3 -10
- package/dist-es/commands/GetWorkloadCommand.js +3 -9
- package/dist-es/commands/GetWorkloadDeploymentPatternCommand.js +3 -9
- package/dist-es/commands/ListDeploymentEventsCommand.js +3 -9
- package/dist-es/commands/ListDeploymentsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkloadDeploymentPatternsCommand.js +3 -9
- package/dist-es/commands/ListWorkloadsCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -13
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +446 -0
- package/dist-types/LaunchWizardClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -12
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +65 -0
- package/dist-types/ts3.4/LaunchWizardClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -9
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -474
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticMapSchema,
|
|
5
|
+
StaticOperationSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var CreateDeploymentInput: StaticStructureSchema;
|
|
9
|
+
export declare var CreateDeploymentOutput: StaticStructureSchema;
|
|
10
|
+
export declare var DeleteDeploymentInput: StaticStructureSchema;
|
|
11
|
+
export declare var DeleteDeploymentOutput: StaticStructureSchema;
|
|
12
|
+
export declare var DeploymentConditionalField: StaticStructureSchema;
|
|
13
|
+
export declare var DeploymentData: StaticStructureSchema;
|
|
14
|
+
export declare var DeploymentDataSummary: StaticStructureSchema;
|
|
15
|
+
export declare var DeploymentEventDataSummary: StaticStructureSchema;
|
|
16
|
+
export declare var DeploymentFilter: StaticStructureSchema;
|
|
17
|
+
export declare var DeploymentSpecificationsField: StaticStructureSchema;
|
|
18
|
+
export declare var GetDeploymentInput: StaticStructureSchema;
|
|
19
|
+
export declare var GetDeploymentOutput: StaticStructureSchema;
|
|
20
|
+
export declare var GetWorkloadDeploymentPatternInput: StaticStructureSchema;
|
|
21
|
+
export declare var GetWorkloadDeploymentPatternOutput: StaticStructureSchema;
|
|
22
|
+
export declare var GetWorkloadInput: StaticStructureSchema;
|
|
23
|
+
export declare var GetWorkloadOutput: StaticStructureSchema;
|
|
24
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
25
|
+
export declare var ListDeploymentEventsInput: StaticStructureSchema;
|
|
26
|
+
export declare var ListDeploymentEventsOutput: StaticStructureSchema;
|
|
27
|
+
export declare var ListDeploymentsInput: StaticStructureSchema;
|
|
28
|
+
export declare var ListDeploymentsOutput: StaticStructureSchema;
|
|
29
|
+
export declare var ListTagsForResourceInput: StaticStructureSchema;
|
|
30
|
+
export declare var ListTagsForResourceOutput: StaticStructureSchema;
|
|
31
|
+
export declare var ListWorkloadDeploymentPatternsInput: StaticStructureSchema;
|
|
32
|
+
export declare var ListWorkloadDeploymentPatternsOutput: StaticStructureSchema;
|
|
33
|
+
export declare var ListWorkloadsInput: StaticStructureSchema;
|
|
34
|
+
export declare var ListWorkloadsOutput: StaticStructureSchema;
|
|
35
|
+
export declare var ResourceLimitException: StaticErrorSchema;
|
|
36
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
37
|
+
export declare var TagResourceInput: StaticStructureSchema;
|
|
38
|
+
export declare var TagResourceOutput: StaticStructureSchema;
|
|
39
|
+
export declare var UntagResourceInput: StaticStructureSchema;
|
|
40
|
+
export declare var UntagResourceOutput: StaticStructureSchema;
|
|
41
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
42
|
+
export declare var WorkloadData: StaticStructureSchema;
|
|
43
|
+
export declare var WorkloadDataSummary: StaticStructureSchema;
|
|
44
|
+
export declare var WorkloadDeploymentPatternData: StaticStructureSchema;
|
|
45
|
+
export declare var WorkloadDeploymentPatternDataSummary: StaticStructureSchema;
|
|
46
|
+
export declare var __Unit: "unit";
|
|
47
|
+
export declare var LaunchWizardServiceException: StaticErrorSchema;
|
|
48
|
+
export declare var AllowedValues: number;
|
|
49
|
+
export declare var DeploymentDataSummaryList: StaticListSchema;
|
|
50
|
+
export declare var DeploymentEventDataSummaryList: StaticListSchema;
|
|
51
|
+
export declare var DeploymentFilterList: StaticListSchema;
|
|
52
|
+
export declare var DeploymentFilterValues: number;
|
|
53
|
+
export declare var DeploymentSpecificationsData: StaticListSchema;
|
|
54
|
+
export declare var SpecificationsConditionalData: StaticListSchema;
|
|
55
|
+
export declare var TagKeyList: number;
|
|
56
|
+
export declare var WorkloadDataSummaryList: StaticListSchema;
|
|
57
|
+
export declare var WorkloadDeploymentPatternDataSummaryList: StaticListSchema;
|
|
58
|
+
export declare var DeploymentSpecifications: StaticMapSchema;
|
|
59
|
+
export declare var Tags: number;
|
|
60
|
+
export declare var CreateDeployment: StaticOperationSchema;
|
|
61
|
+
export declare var DeleteDeployment: StaticOperationSchema;
|
|
62
|
+
export declare var GetDeployment: StaticOperationSchema;
|
|
63
|
+
export declare var GetWorkload: StaticOperationSchema;
|
|
64
|
+
export declare var GetWorkloadDeploymentPattern: StaticOperationSchema;
|
|
65
|
+
export declare var ListDeploymentEvents: StaticOperationSchema;
|
|
66
|
+
export declare var ListDeployments: StaticOperationSchema;
|
|
67
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
68
|
+
export declare var ListWorkloadDeploymentPatterns: StaticOperationSchema;
|
|
69
|
+
export declare var ListWorkloads: StaticOperationSchema;
|
|
70
|
+
export declare var TagResource: StaticOperationSchema;
|
|
71
|
+
export declare var UntagResource: StaticOperationSchema;
|
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.929.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-launch-wizard",
|
|
@@ -20,17 +20,17 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
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";
|
|
4
|
-
import { LaunchWizardServiceException as __BaseException } from "../models/LaunchWizardServiceException";
|
|
5
|
-
import { InternalServerException, ResourceLimitException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateDeploymentCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/createDeployment");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
deploymentPatternName: [],
|
|
15
|
-
dryRun: [],
|
|
16
|
-
name: [],
|
|
17
|
-
specifications: (_) => _json(_),
|
|
18
|
-
tags: (_) => _json(_),
|
|
19
|
-
workloadName: [],
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
export const se_DeleteDeploymentCommand = async (input, context) => {
|
|
25
|
-
const b = rb(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/deleteDeployment");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify(take(input, {
|
|
32
|
-
deploymentId: [],
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
export const se_GetDeploymentCommand = async (input, context) => {
|
|
38
|
-
const b = rb(input, context);
|
|
39
|
-
const headers = {
|
|
40
|
-
"content-type": "application/json",
|
|
41
|
-
};
|
|
42
|
-
b.bp("/getDeployment");
|
|
43
|
-
let body;
|
|
44
|
-
body = JSON.stringify(take(input, {
|
|
45
|
-
deploymentId: [],
|
|
46
|
-
}));
|
|
47
|
-
b.m("POST").h(headers).b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
export const se_GetWorkloadCommand = async (input, context) => {
|
|
51
|
-
const b = rb(input, context);
|
|
52
|
-
const headers = {
|
|
53
|
-
"content-type": "application/json",
|
|
54
|
-
};
|
|
55
|
-
b.bp("/getWorkload");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(take(input, {
|
|
58
|
-
workloadName: [],
|
|
59
|
-
}));
|
|
60
|
-
b.m("POST").h(headers).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_GetWorkloadDeploymentPatternCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {
|
|
66
|
-
"content-type": "application/json",
|
|
67
|
-
};
|
|
68
|
-
b.bp("/getWorkloadDeploymentPattern");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(take(input, {
|
|
71
|
-
deploymentPatternName: [],
|
|
72
|
-
workloadName: [],
|
|
73
|
-
}));
|
|
74
|
-
b.m("POST").h(headers).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
export const se_ListDeploymentEventsCommand = async (input, context) => {
|
|
78
|
-
const b = rb(input, context);
|
|
79
|
-
const headers = {
|
|
80
|
-
"content-type": "application/json",
|
|
81
|
-
};
|
|
82
|
-
b.bp("/listDeploymentEvents");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify(take(input, {
|
|
85
|
-
deploymentId: [],
|
|
86
|
-
maxResults: [],
|
|
87
|
-
nextToken: [],
|
|
88
|
-
}));
|
|
89
|
-
b.m("POST").h(headers).b(body);
|
|
90
|
-
return b.build();
|
|
91
|
-
};
|
|
92
|
-
export const se_ListDeploymentsCommand = async (input, context) => {
|
|
93
|
-
const b = rb(input, context);
|
|
94
|
-
const headers = {
|
|
95
|
-
"content-type": "application/json",
|
|
96
|
-
};
|
|
97
|
-
b.bp("/listDeployments");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(take(input, {
|
|
100
|
-
filters: (_) => _json(_),
|
|
101
|
-
maxResults: [],
|
|
102
|
-
nextToken: [],
|
|
103
|
-
}));
|
|
104
|
-
b.m("POST").h(headers).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
108
|
-
const b = rb(input, context);
|
|
109
|
-
const headers = {};
|
|
110
|
-
b.bp("/tags/{resourceArn}");
|
|
111
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
112
|
-
let body;
|
|
113
|
-
b.m("GET").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_ListWorkloadDeploymentPatternsCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {
|
|
119
|
-
"content-type": "application/json",
|
|
120
|
-
};
|
|
121
|
-
b.bp("/listWorkloadDeploymentPatterns");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(take(input, {
|
|
124
|
-
maxResults: [],
|
|
125
|
-
nextToken: [],
|
|
126
|
-
workloadName: [],
|
|
127
|
-
}));
|
|
128
|
-
b.m("POST").h(headers).b(body);
|
|
129
|
-
return b.build();
|
|
130
|
-
};
|
|
131
|
-
export const se_ListWorkloadsCommand = async (input, context) => {
|
|
132
|
-
const b = rb(input, context);
|
|
133
|
-
const headers = {
|
|
134
|
-
"content-type": "application/json",
|
|
135
|
-
};
|
|
136
|
-
b.bp("/listWorkloads");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify(take(input, {
|
|
139
|
-
maxResults: [],
|
|
140
|
-
nextToken: [],
|
|
141
|
-
}));
|
|
142
|
-
b.m("POST").h(headers).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
146
|
-
const b = rb(input, context);
|
|
147
|
-
const headers = {
|
|
148
|
-
"content-type": "application/json",
|
|
149
|
-
};
|
|
150
|
-
b.bp("/tags/{resourceArn}");
|
|
151
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(take(input, {
|
|
154
|
-
tags: (_) => _json(_),
|
|
155
|
-
}));
|
|
156
|
-
b.m("POST").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
160
|
-
const b = rb(input, context);
|
|
161
|
-
const headers = {};
|
|
162
|
-
b.bp("/tags/{resourceArn}");
|
|
163
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
164
|
-
const query = map({
|
|
165
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
166
|
-
});
|
|
167
|
-
let body;
|
|
168
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
169
|
-
return b.build();
|
|
170
|
-
};
|
|
171
|
-
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
173
|
-
return de_CommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const contents = map({
|
|
176
|
-
$metadata: deserializeMetadata(output),
|
|
177
|
-
});
|
|
178
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
179
|
-
const doc = take(data, {
|
|
180
|
-
deploymentId: __expectString,
|
|
181
|
-
});
|
|
182
|
-
Object.assign(contents, doc);
|
|
183
|
-
return contents;
|
|
184
|
-
};
|
|
185
|
-
export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
186
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
187
|
-
return de_CommandError(output, context);
|
|
188
|
-
}
|
|
189
|
-
const contents = map({
|
|
190
|
-
$metadata: deserializeMetadata(output),
|
|
191
|
-
});
|
|
192
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
193
|
-
const doc = take(data, {
|
|
194
|
-
status: __expectString,
|
|
195
|
-
statusReason: __expectString,
|
|
196
|
-
});
|
|
197
|
-
Object.assign(contents, doc);
|
|
198
|
-
return contents;
|
|
199
|
-
};
|
|
200
|
-
export const de_GetDeploymentCommand = async (output, context) => {
|
|
201
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
202
|
-
return de_CommandError(output, context);
|
|
203
|
-
}
|
|
204
|
-
const contents = map({
|
|
205
|
-
$metadata: deserializeMetadata(output),
|
|
206
|
-
});
|
|
207
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
208
|
-
const doc = take(data, {
|
|
209
|
-
deployment: (_) => de_DeploymentData(_, context),
|
|
210
|
-
});
|
|
211
|
-
Object.assign(contents, doc);
|
|
212
|
-
return contents;
|
|
213
|
-
};
|
|
214
|
-
export const de_GetWorkloadCommand = async (output, context) => {
|
|
215
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
216
|
-
return de_CommandError(output, context);
|
|
217
|
-
}
|
|
218
|
-
const contents = map({
|
|
219
|
-
$metadata: deserializeMetadata(output),
|
|
220
|
-
});
|
|
221
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
222
|
-
const doc = take(data, {
|
|
223
|
-
workload: _json,
|
|
224
|
-
});
|
|
225
|
-
Object.assign(contents, doc);
|
|
226
|
-
return contents;
|
|
227
|
-
};
|
|
228
|
-
export const de_GetWorkloadDeploymentPatternCommand = async (output, context) => {
|
|
229
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
230
|
-
return de_CommandError(output, context);
|
|
231
|
-
}
|
|
232
|
-
const contents = map({
|
|
233
|
-
$metadata: deserializeMetadata(output),
|
|
234
|
-
});
|
|
235
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
236
|
-
const doc = take(data, {
|
|
237
|
-
workloadDeploymentPattern: _json,
|
|
238
|
-
});
|
|
239
|
-
Object.assign(contents, doc);
|
|
240
|
-
return contents;
|
|
241
|
-
};
|
|
242
|
-
export const de_ListDeploymentEventsCommand = async (output, context) => {
|
|
243
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
244
|
-
return de_CommandError(output, context);
|
|
245
|
-
}
|
|
246
|
-
const contents = map({
|
|
247
|
-
$metadata: deserializeMetadata(output),
|
|
248
|
-
});
|
|
249
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
250
|
-
const doc = take(data, {
|
|
251
|
-
deploymentEvents: (_) => de_DeploymentEventDataSummaryList(_, context),
|
|
252
|
-
nextToken: __expectString,
|
|
253
|
-
});
|
|
254
|
-
Object.assign(contents, doc);
|
|
255
|
-
return contents;
|
|
256
|
-
};
|
|
257
|
-
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
-
return de_CommandError(output, context);
|
|
260
|
-
}
|
|
261
|
-
const contents = map({
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
});
|
|
264
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
265
|
-
const doc = take(data, {
|
|
266
|
-
deployments: (_) => de_DeploymentDataSummaryList(_, context),
|
|
267
|
-
nextToken: __expectString,
|
|
268
|
-
});
|
|
269
|
-
Object.assign(contents, doc);
|
|
270
|
-
return contents;
|
|
271
|
-
};
|
|
272
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
273
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
274
|
-
return de_CommandError(output, context);
|
|
275
|
-
}
|
|
276
|
-
const contents = map({
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
});
|
|
279
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
280
|
-
const doc = take(data, {
|
|
281
|
-
tags: _json,
|
|
282
|
-
});
|
|
283
|
-
Object.assign(contents, doc);
|
|
284
|
-
return contents;
|
|
285
|
-
};
|
|
286
|
-
export const de_ListWorkloadDeploymentPatternsCommand = async (output, context) => {
|
|
287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
|
-
return de_CommandError(output, context);
|
|
289
|
-
}
|
|
290
|
-
const contents = map({
|
|
291
|
-
$metadata: deserializeMetadata(output),
|
|
292
|
-
});
|
|
293
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
294
|
-
const doc = take(data, {
|
|
295
|
-
nextToken: __expectString,
|
|
296
|
-
workloadDeploymentPatterns: _json,
|
|
297
|
-
});
|
|
298
|
-
Object.assign(contents, doc);
|
|
299
|
-
return contents;
|
|
300
|
-
};
|
|
301
|
-
export const de_ListWorkloadsCommand = async (output, context) => {
|
|
302
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
|
-
return de_CommandError(output, context);
|
|
304
|
-
}
|
|
305
|
-
const contents = map({
|
|
306
|
-
$metadata: deserializeMetadata(output),
|
|
307
|
-
});
|
|
308
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
309
|
-
const doc = take(data, {
|
|
310
|
-
nextToken: __expectString,
|
|
311
|
-
workloads: _json,
|
|
312
|
-
});
|
|
313
|
-
Object.assign(contents, doc);
|
|
314
|
-
return contents;
|
|
315
|
-
};
|
|
316
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
|
-
return de_CommandError(output, context);
|
|
319
|
-
}
|
|
320
|
-
const contents = map({
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
});
|
|
323
|
-
await collectBody(output.body, context);
|
|
324
|
-
return contents;
|
|
325
|
-
};
|
|
326
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
327
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
|
-
return de_CommandError(output, context);
|
|
329
|
-
}
|
|
330
|
-
const contents = map({
|
|
331
|
-
$metadata: deserializeMetadata(output),
|
|
332
|
-
});
|
|
333
|
-
await collectBody(output.body, context);
|
|
334
|
-
return contents;
|
|
335
|
-
};
|
|
336
|
-
const de_CommandError = async (output, context) => {
|
|
337
|
-
const parsedOutput = {
|
|
338
|
-
...output,
|
|
339
|
-
body: await parseErrorBody(output.body, context),
|
|
340
|
-
};
|
|
341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
342
|
-
switch (errorCode) {
|
|
343
|
-
case "InternalServerException":
|
|
344
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
345
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ResourceLimitException":
|
|
347
|
-
case "com.amazonaws.launchwizard#ResourceLimitException":
|
|
348
|
-
throw await de_ResourceLimitExceptionRes(parsedOutput, context);
|
|
349
|
-
case "ResourceNotFoundException":
|
|
350
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
351
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
352
|
-
case "ValidationException":
|
|
353
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
354
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
355
|
-
default:
|
|
356
|
-
const parsedBody = parsedOutput.body;
|
|
357
|
-
return throwDefaultError({
|
|
358
|
-
output,
|
|
359
|
-
parsedBody,
|
|
360
|
-
errorCode,
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
365
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
366
|
-
const contents = map({});
|
|
367
|
-
const data = parsedOutput.body;
|
|
368
|
-
const doc = take(data, {
|
|
369
|
-
message: __expectString,
|
|
370
|
-
});
|
|
371
|
-
Object.assign(contents, doc);
|
|
372
|
-
const exception = new InternalServerException({
|
|
373
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
374
|
-
...contents,
|
|
375
|
-
});
|
|
376
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
377
|
-
};
|
|
378
|
-
const de_ResourceLimitExceptionRes = async (parsedOutput, context) => {
|
|
379
|
-
const contents = map({});
|
|
380
|
-
const data = parsedOutput.body;
|
|
381
|
-
const doc = take(data, {
|
|
382
|
-
message: __expectString,
|
|
383
|
-
});
|
|
384
|
-
Object.assign(contents, doc);
|
|
385
|
-
const exception = new ResourceLimitException({
|
|
386
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
387
|
-
...contents,
|
|
388
|
-
});
|
|
389
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
390
|
-
};
|
|
391
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
392
|
-
const contents = map({});
|
|
393
|
-
const data = parsedOutput.body;
|
|
394
|
-
const doc = take(data, {
|
|
395
|
-
message: __expectString,
|
|
396
|
-
});
|
|
397
|
-
Object.assign(contents, doc);
|
|
398
|
-
const exception = new ResourceNotFoundException({
|
|
399
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
400
|
-
...contents,
|
|
401
|
-
});
|
|
402
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
403
|
-
};
|
|
404
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
405
|
-
const contents = map({});
|
|
406
|
-
const data = parsedOutput.body;
|
|
407
|
-
const doc = take(data, {
|
|
408
|
-
message: __expectString,
|
|
409
|
-
});
|
|
410
|
-
Object.assign(contents, doc);
|
|
411
|
-
const exception = new ValidationException({
|
|
412
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
413
|
-
...contents,
|
|
414
|
-
});
|
|
415
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
416
|
-
};
|
|
417
|
-
const de_DeploymentData = (output, context) => {
|
|
418
|
-
return take(output, {
|
|
419
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
420
|
-
deletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
421
|
-
deploymentArn: __expectString,
|
|
422
|
-
id: __expectString,
|
|
423
|
-
name: __expectString,
|
|
424
|
-
patternName: __expectString,
|
|
425
|
-
resourceGroup: __expectString,
|
|
426
|
-
specifications: _json,
|
|
427
|
-
status: __expectString,
|
|
428
|
-
tags: _json,
|
|
429
|
-
workloadName: __expectString,
|
|
430
|
-
});
|
|
431
|
-
};
|
|
432
|
-
const de_DeploymentDataSummary = (output, context) => {
|
|
433
|
-
return take(output, {
|
|
434
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
435
|
-
id: __expectString,
|
|
436
|
-
name: __expectString,
|
|
437
|
-
patternName: __expectString,
|
|
438
|
-
status: __expectString,
|
|
439
|
-
workloadName: __expectString,
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
const de_DeploymentDataSummaryList = (output, context) => {
|
|
443
|
-
const retVal = (output || [])
|
|
444
|
-
.filter((e) => e != null)
|
|
445
|
-
.map((entry) => {
|
|
446
|
-
return de_DeploymentDataSummary(entry, context);
|
|
447
|
-
});
|
|
448
|
-
return retVal;
|
|
449
|
-
};
|
|
450
|
-
const de_DeploymentEventDataSummary = (output, context) => {
|
|
451
|
-
return take(output, {
|
|
452
|
-
description: __expectString,
|
|
453
|
-
name: __expectString,
|
|
454
|
-
status: __expectString,
|
|
455
|
-
statusReason: __expectString,
|
|
456
|
-
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
457
|
-
});
|
|
458
|
-
};
|
|
459
|
-
const de_DeploymentEventDataSummaryList = (output, context) => {
|
|
460
|
-
const retVal = (output || [])
|
|
461
|
-
.filter((e) => e != null)
|
|
462
|
-
.map((entry) => {
|
|
463
|
-
return de_DeploymentEventDataSummary(entry, context);
|
|
464
|
-
});
|
|
465
|
-
return retVal;
|
|
466
|
-
};
|
|
467
|
-
const deserializeMetadata = (output) => ({
|
|
468
|
-
httpStatusCode: output.statusCode,
|
|
469
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
470
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
471
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
472
|
-
});
|
|
473
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
474
|
-
const _tK = "tagKeys";
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "../commands/CreateDeploymentCommand";
|
|
4
|
-
import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "../commands/DeleteDeploymentCommand";
|
|
5
|
-
import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "../commands/GetDeploymentCommand";
|
|
6
|
-
import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "../commands/GetWorkloadCommand";
|
|
7
|
-
import { GetWorkloadDeploymentPatternCommandInput, GetWorkloadDeploymentPatternCommandOutput } from "../commands/GetWorkloadDeploymentPatternCommand";
|
|
8
|
-
import { ListDeploymentEventsCommandInput, ListDeploymentEventsCommandOutput } from "../commands/ListDeploymentEventsCommand";
|
|
9
|
-
import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "../commands/ListDeploymentsCommand";
|
|
10
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
11
|
-
import { ListWorkloadDeploymentPatternsCommandInput, ListWorkloadDeploymentPatternsCommandOutput } from "../commands/ListWorkloadDeploymentPatternsCommand";
|
|
12
|
-
import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "../commands/ListWorkloadsCommand";
|
|
13
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
14
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_restJson1CreateDeploymentCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_CreateDeploymentCommand: (input: CreateDeploymentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_restJson1DeleteDeploymentCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_DeleteDeploymentCommand: (input: DeleteDeploymentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* serializeAws_restJson1GetDeploymentCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const se_GetDeploymentCommand: (input: GetDeploymentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
-
/**
|
|
28
|
-
* serializeAws_restJson1GetWorkloadCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const se_GetWorkloadCommand: (input: GetWorkloadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
-
/**
|
|
32
|
-
* serializeAws_restJson1GetWorkloadDeploymentPatternCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const se_GetWorkloadDeploymentPatternCommand: (input: GetWorkloadDeploymentPatternCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
-
/**
|
|
36
|
-
* serializeAws_restJson1ListDeploymentEventsCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const se_ListDeploymentEventsCommand: (input: ListDeploymentEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
|
-
/**
|
|
40
|
-
* serializeAws_restJson1ListDeploymentsCommand
|
|
41
|
-
*/
|
|
42
|
-
export declare const se_ListDeploymentsCommand: (input: ListDeploymentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
|
-
/**
|
|
44
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
45
|
-
*/
|
|
46
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
|
-
/**
|
|
48
|
-
* serializeAws_restJson1ListWorkloadDeploymentPatternsCommand
|
|
49
|
-
*/
|
|
50
|
-
export declare const se_ListWorkloadDeploymentPatternsCommand: (input: ListWorkloadDeploymentPatternsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
51
|
-
/**
|
|
52
|
-
* serializeAws_restJson1ListWorkloadsCommand
|
|
53
|
-
*/
|
|
54
|
-
export declare const se_ListWorkloadsCommand: (input: ListWorkloadsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
|
-
/**
|
|
56
|
-
* serializeAws_restJson1TagResourceCommand
|
|
57
|
-
*/
|
|
58
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
59
|
-
/**
|
|
60
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
61
|
-
*/
|
|
62
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
63
|
-
/**
|
|
64
|
-
* deserializeAws_restJson1CreateDeploymentCommand
|
|
65
|
-
*/
|
|
66
|
-
export declare const de_CreateDeploymentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateDeploymentCommandOutput>;
|
|
67
|
-
/**
|
|
68
|
-
* deserializeAws_restJson1DeleteDeploymentCommand
|
|
69
|
-
*/
|
|
70
|
-
export declare const de_DeleteDeploymentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDeploymentCommandOutput>;
|
|
71
|
-
/**
|
|
72
|
-
* deserializeAws_restJson1GetDeploymentCommand
|
|
73
|
-
*/
|
|
74
|
-
export declare const de_GetDeploymentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeploymentCommandOutput>;
|
|
75
|
-
/**
|
|
76
|
-
* deserializeAws_restJson1GetWorkloadCommand
|
|
77
|
-
*/
|
|
78
|
-
export declare const de_GetWorkloadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetWorkloadCommandOutput>;
|
|
79
|
-
/**
|
|
80
|
-
* deserializeAws_restJson1GetWorkloadDeploymentPatternCommand
|
|
81
|
-
*/
|
|
82
|
-
export declare const de_GetWorkloadDeploymentPatternCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetWorkloadDeploymentPatternCommandOutput>;
|
|
83
|
-
/**
|
|
84
|
-
* deserializeAws_restJson1ListDeploymentEventsCommand
|
|
85
|
-
*/
|
|
86
|
-
export declare const de_ListDeploymentEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDeploymentEventsCommandOutput>;
|
|
87
|
-
/**
|
|
88
|
-
* deserializeAws_restJson1ListDeploymentsCommand
|
|
89
|
-
*/
|
|
90
|
-
export declare const de_ListDeploymentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDeploymentsCommandOutput>;
|
|
91
|
-
/**
|
|
92
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
93
|
-
*/
|
|
94
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
95
|
-
/**
|
|
96
|
-
* deserializeAws_restJson1ListWorkloadDeploymentPatternsCommand
|
|
97
|
-
*/
|
|
98
|
-
export declare const de_ListWorkloadDeploymentPatternsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListWorkloadDeploymentPatternsCommandOutput>;
|
|
99
|
-
/**
|
|
100
|
-
* deserializeAws_restJson1ListWorkloadsCommand
|
|
101
|
-
*/
|
|
102
|
-
export declare const de_ListWorkloadsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListWorkloadsCommandOutput>;
|
|
103
|
-
/**
|
|
104
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
105
|
-
*/
|
|
106
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
107
|
-
/**
|
|
108
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
109
|
-
*/
|
|
110
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|