@aws-sdk/client-resiliencehub 3.272.0 → 3.276.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/Resiliencehub.js +195 -0
- package/dist-cjs/commands/CreateAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/CreateAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppInputSourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppVersionCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/ListAppInputSourcesCommand.js +46 -0
- package/dist-cjs/commands/ListAppVersionAppComponentsCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppVersionCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +129 -15
- package/dist-cjs/pagination/ListAppInputSourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListAppVersionAppComponentsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1293 -141
- package/dist-es/Resiliencehub.js +195 -0
- package/dist-es/commands/CreateAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/CreateAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/DeleteAppInputSourceCommand.js +42 -0
- package/dist-es/commands/DeleteAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/DeleteAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/DescribeAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/DescribeAppVersionCommand.js +42 -0
- package/dist-es/commands/DescribeAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/ListAppInputSourcesCommand.js +42 -0
- package/dist-es/commands/ListAppVersionAppComponentsCommand.js +42 -0
- package/dist-es/commands/UpdateAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/UpdateAppVersionCommand.js +42 -0
- package/dist-es/commands/UpdateAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +94 -8
- package/dist-es/pagination/ListAppInputSourcesPaginator.js +32 -0
- package/dist-es/pagination/ListAppVersionAppComponentsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1254 -129
- package/dist-types/Resiliencehub.d.ts +218 -23
- package/dist-types/ResiliencehubClient.d.ts +15 -2
- package/dist-types/commands/AddDraftAppVersionResourceMappingsCommand.d.ts +1 -1
- package/dist-types/commands/CreateAppCommand.d.ts +3 -3
- package/dist-types/commands/CreateAppVersionAppComponentCommand.d.ts +40 -0
- package/dist-types/commands/CreateAppVersionResourceCommand.d.ts +55 -0
- package/dist-types/commands/CreateRecommendationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAppInputSourceCommand.d.ts +37 -0
- package/dist-types/commands/DeleteAppVersionAppComponentCommand.d.ts +47 -0
- package/dist-types/commands/DeleteAppVersionResourceCommand.d.ts +50 -0
- package/dist-types/commands/DescribeAppVersionAppComponentCommand.d.ts +37 -0
- package/dist-types/commands/DescribeAppVersionCommand.d.ts +37 -0
- package/dist-types/commands/DescribeAppVersionResourceCommand.d.ts +57 -0
- package/dist-types/commands/DescribeAppVersionTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDraftAppVersionResourcesImportStatusCommand.d.ts +7 -0
- package/dist-types/commands/ImportResourcesToDraftAppVersionCommand.d.ts +2 -2
- package/dist-types/commands/ListAlarmRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppComponentCompliancesCommand.d.ts +1 -1
- package/dist-types/commands/ListAppComponentRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppInputSourcesCommand.d.ts +39 -0
- package/dist-types/commands/ListAppVersionAppComponentsCommand.d.ts +37 -0
- package/dist-types/commands/ListAppVersionResourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListAppVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppsCommand.d.ts +10 -1
- package/dist-types/commands/ListRecommendationTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListResiliencyPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListSopRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSuggestedResiliencyPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTestRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListUnsupportedAppVersionResourcesCommand.d.ts +1 -1
- package/dist-types/commands/PublishAppVersionCommand.d.ts +1 -1
- package/dist-types/commands/PutDraftAppVersionTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAppVersionAppComponentCommand.d.ts +40 -0
- package/dist-types/commands/UpdateAppVersionCommand.d.ts +42 -0
- package/dist-types/commands/UpdateAppVersionResourceCommand.d.ts +51 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +1377 -209
- package/dist-types/pagination/ListAppInputSourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAppVersionAppComponentsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
- package/dist-types/ts3.4/Resiliencehub.d.ts +221 -0
- package/dist-types/ts3.4/ResiliencehubClient.d.ts +78 -0
- package/dist-types/ts3.4/commands/CreateAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppInputSourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeAppVersionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListAppInputSourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAppVersionAppComponentsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateAppVersionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +278 -24
- package/dist-types/ts3.4/pagination/ListAppInputSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAppVersionAppComponentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +2 -2
|
@@ -3,14 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Resiliencehub = void 0;
|
|
4
4
|
const AddDraftAppVersionResourceMappingsCommand_1 = require("./commands/AddDraftAppVersionResourceMappingsCommand");
|
|
5
5
|
const CreateAppCommand_1 = require("./commands/CreateAppCommand");
|
|
6
|
+
const CreateAppVersionAppComponentCommand_1 = require("./commands/CreateAppVersionAppComponentCommand");
|
|
7
|
+
const CreateAppVersionResourceCommand_1 = require("./commands/CreateAppVersionResourceCommand");
|
|
6
8
|
const CreateRecommendationTemplateCommand_1 = require("./commands/CreateRecommendationTemplateCommand");
|
|
7
9
|
const CreateResiliencyPolicyCommand_1 = require("./commands/CreateResiliencyPolicyCommand");
|
|
8
10
|
const DeleteAppAssessmentCommand_1 = require("./commands/DeleteAppAssessmentCommand");
|
|
9
11
|
const DeleteAppCommand_1 = require("./commands/DeleteAppCommand");
|
|
12
|
+
const DeleteAppInputSourceCommand_1 = require("./commands/DeleteAppInputSourceCommand");
|
|
13
|
+
const DeleteAppVersionAppComponentCommand_1 = require("./commands/DeleteAppVersionAppComponentCommand");
|
|
14
|
+
const DeleteAppVersionResourceCommand_1 = require("./commands/DeleteAppVersionResourceCommand");
|
|
10
15
|
const DeleteRecommendationTemplateCommand_1 = require("./commands/DeleteRecommendationTemplateCommand");
|
|
11
16
|
const DeleteResiliencyPolicyCommand_1 = require("./commands/DeleteResiliencyPolicyCommand");
|
|
12
17
|
const DescribeAppAssessmentCommand_1 = require("./commands/DescribeAppAssessmentCommand");
|
|
13
18
|
const DescribeAppCommand_1 = require("./commands/DescribeAppCommand");
|
|
19
|
+
const DescribeAppVersionAppComponentCommand_1 = require("./commands/DescribeAppVersionAppComponentCommand");
|
|
20
|
+
const DescribeAppVersionCommand_1 = require("./commands/DescribeAppVersionCommand");
|
|
21
|
+
const DescribeAppVersionResourceCommand_1 = require("./commands/DescribeAppVersionResourceCommand");
|
|
14
22
|
const DescribeAppVersionResourcesResolutionStatusCommand_1 = require("./commands/DescribeAppVersionResourcesResolutionStatusCommand");
|
|
15
23
|
const DescribeAppVersionTemplateCommand_1 = require("./commands/DescribeAppVersionTemplateCommand");
|
|
16
24
|
const DescribeDraftAppVersionResourcesImportStatusCommand_1 = require("./commands/DescribeDraftAppVersionResourcesImportStatusCommand");
|
|
@@ -20,7 +28,9 @@ const ListAlarmRecommendationsCommand_1 = require("./commands/ListAlarmRecommend
|
|
|
20
28
|
const ListAppAssessmentsCommand_1 = require("./commands/ListAppAssessmentsCommand");
|
|
21
29
|
const ListAppComponentCompliancesCommand_1 = require("./commands/ListAppComponentCompliancesCommand");
|
|
22
30
|
const ListAppComponentRecommendationsCommand_1 = require("./commands/ListAppComponentRecommendationsCommand");
|
|
31
|
+
const ListAppInputSourcesCommand_1 = require("./commands/ListAppInputSourcesCommand");
|
|
23
32
|
const ListAppsCommand_1 = require("./commands/ListAppsCommand");
|
|
33
|
+
const ListAppVersionAppComponentsCommand_1 = require("./commands/ListAppVersionAppComponentsCommand");
|
|
24
34
|
const ListAppVersionResourceMappingsCommand_1 = require("./commands/ListAppVersionResourceMappingsCommand");
|
|
25
35
|
const ListAppVersionResourcesCommand_1 = require("./commands/ListAppVersionResourcesCommand");
|
|
26
36
|
const ListAppVersionsCommand_1 = require("./commands/ListAppVersionsCommand");
|
|
@@ -39,6 +49,9 @@ const StartAppAssessmentCommand_1 = require("./commands/StartAppAssessmentComman
|
|
|
39
49
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
40
50
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
41
51
|
const UpdateAppCommand_1 = require("./commands/UpdateAppCommand");
|
|
52
|
+
const UpdateAppVersionAppComponentCommand_1 = require("./commands/UpdateAppVersionAppComponentCommand");
|
|
53
|
+
const UpdateAppVersionCommand_1 = require("./commands/UpdateAppVersionCommand");
|
|
54
|
+
const UpdateAppVersionResourceCommand_1 = require("./commands/UpdateAppVersionResourceCommand");
|
|
42
55
|
const UpdateResiliencyPolicyCommand_1 = require("./commands/UpdateResiliencyPolicyCommand");
|
|
43
56
|
const ResiliencehubClient_1 = require("./ResiliencehubClient");
|
|
44
57
|
class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
@@ -70,6 +83,34 @@ class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
|
70
83
|
return this.send(command, optionsOrCb);
|
|
71
84
|
}
|
|
72
85
|
}
|
|
86
|
+
createAppVersionAppComponent(args, optionsOrCb, cb) {
|
|
87
|
+
const command = new CreateAppVersionAppComponentCommand_1.CreateAppVersionAppComponentCommand(args);
|
|
88
|
+
if (typeof optionsOrCb === "function") {
|
|
89
|
+
this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
else if (typeof cb === "function") {
|
|
92
|
+
if (typeof optionsOrCb !== "object")
|
|
93
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return this.send(command, optionsOrCb);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
createAppVersionResource(args, optionsOrCb, cb) {
|
|
101
|
+
const command = new CreateAppVersionResourceCommand_1.CreateAppVersionResourceCommand(args);
|
|
102
|
+
if (typeof optionsOrCb === "function") {
|
|
103
|
+
this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
else if (typeof cb === "function") {
|
|
106
|
+
if (typeof optionsOrCb !== "object")
|
|
107
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
return this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
73
114
|
createRecommendationTemplate(args, optionsOrCb, cb) {
|
|
74
115
|
const command = new CreateRecommendationTemplateCommand_1.CreateRecommendationTemplateCommand(args);
|
|
75
116
|
if (typeof optionsOrCb === "function") {
|
|
@@ -126,6 +167,48 @@ class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
|
126
167
|
return this.send(command, optionsOrCb);
|
|
127
168
|
}
|
|
128
169
|
}
|
|
170
|
+
deleteAppInputSource(args, optionsOrCb, cb) {
|
|
171
|
+
const command = new DeleteAppInputSourceCommand_1.DeleteAppInputSourceCommand(args);
|
|
172
|
+
if (typeof optionsOrCb === "function") {
|
|
173
|
+
this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
else if (typeof cb === "function") {
|
|
176
|
+
if (typeof optionsOrCb !== "object")
|
|
177
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
return this.send(command, optionsOrCb);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
deleteAppVersionAppComponent(args, optionsOrCb, cb) {
|
|
185
|
+
const command = new DeleteAppVersionAppComponentCommand_1.DeleteAppVersionAppComponentCommand(args);
|
|
186
|
+
if (typeof optionsOrCb === "function") {
|
|
187
|
+
this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
else if (typeof cb === "function") {
|
|
190
|
+
if (typeof optionsOrCb !== "object")
|
|
191
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
deleteAppVersionResource(args, optionsOrCb, cb) {
|
|
199
|
+
const command = new DeleteAppVersionResourceCommand_1.DeleteAppVersionResourceCommand(args);
|
|
200
|
+
if (typeof optionsOrCb === "function") {
|
|
201
|
+
this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
else if (typeof cb === "function") {
|
|
204
|
+
if (typeof optionsOrCb !== "object")
|
|
205
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
129
212
|
deleteRecommendationTemplate(args, optionsOrCb, cb) {
|
|
130
213
|
const command = new DeleteRecommendationTemplateCommand_1.DeleteRecommendationTemplateCommand(args);
|
|
131
214
|
if (typeof optionsOrCb === "function") {
|
|
@@ -182,6 +265,48 @@ class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
|
182
265
|
return this.send(command, optionsOrCb);
|
|
183
266
|
}
|
|
184
267
|
}
|
|
268
|
+
describeAppVersion(args, optionsOrCb, cb) {
|
|
269
|
+
const command = new DescribeAppVersionCommand_1.DescribeAppVersionCommand(args);
|
|
270
|
+
if (typeof optionsOrCb === "function") {
|
|
271
|
+
this.send(command, optionsOrCb);
|
|
272
|
+
}
|
|
273
|
+
else if (typeof cb === "function") {
|
|
274
|
+
if (typeof optionsOrCb !== "object")
|
|
275
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
return this.send(command, optionsOrCb);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
describeAppVersionAppComponent(args, optionsOrCb, cb) {
|
|
283
|
+
const command = new DescribeAppVersionAppComponentCommand_1.DescribeAppVersionAppComponentCommand(args);
|
|
284
|
+
if (typeof optionsOrCb === "function") {
|
|
285
|
+
this.send(command, optionsOrCb);
|
|
286
|
+
}
|
|
287
|
+
else if (typeof cb === "function") {
|
|
288
|
+
if (typeof optionsOrCb !== "object")
|
|
289
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
return this.send(command, optionsOrCb);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
describeAppVersionResource(args, optionsOrCb, cb) {
|
|
297
|
+
const command = new DescribeAppVersionResourceCommand_1.DescribeAppVersionResourceCommand(args);
|
|
298
|
+
if (typeof optionsOrCb === "function") {
|
|
299
|
+
this.send(command, optionsOrCb);
|
|
300
|
+
}
|
|
301
|
+
else if (typeof cb === "function") {
|
|
302
|
+
if (typeof optionsOrCb !== "object")
|
|
303
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
304
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
185
310
|
describeAppVersionResourcesResolutionStatus(args, optionsOrCb, cb) {
|
|
186
311
|
const command = new DescribeAppVersionResourcesResolutionStatusCommand_1.DescribeAppVersionResourcesResolutionStatusCommand(args);
|
|
187
312
|
if (typeof optionsOrCb === "function") {
|
|
@@ -308,6 +433,20 @@ class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
|
308
433
|
return this.send(command, optionsOrCb);
|
|
309
434
|
}
|
|
310
435
|
}
|
|
436
|
+
listAppInputSources(args, optionsOrCb, cb) {
|
|
437
|
+
const command = new ListAppInputSourcesCommand_1.ListAppInputSourcesCommand(args);
|
|
438
|
+
if (typeof optionsOrCb === "function") {
|
|
439
|
+
this.send(command, optionsOrCb);
|
|
440
|
+
}
|
|
441
|
+
else if (typeof cb === "function") {
|
|
442
|
+
if (typeof optionsOrCb !== "object")
|
|
443
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
444
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
return this.send(command, optionsOrCb);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
311
450
|
listApps(args, optionsOrCb, cb) {
|
|
312
451
|
const command = new ListAppsCommand_1.ListAppsCommand(args);
|
|
313
452
|
if (typeof optionsOrCb === "function") {
|
|
@@ -322,6 +461,20 @@ class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
|
322
461
|
return this.send(command, optionsOrCb);
|
|
323
462
|
}
|
|
324
463
|
}
|
|
464
|
+
listAppVersionAppComponents(args, optionsOrCb, cb) {
|
|
465
|
+
const command = new ListAppVersionAppComponentsCommand_1.ListAppVersionAppComponentsCommand(args);
|
|
466
|
+
if (typeof optionsOrCb === "function") {
|
|
467
|
+
this.send(command, optionsOrCb);
|
|
468
|
+
}
|
|
469
|
+
else if (typeof cb === "function") {
|
|
470
|
+
if (typeof optionsOrCb !== "object")
|
|
471
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
472
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
return this.send(command, optionsOrCb);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
325
478
|
listAppVersionResourceMappings(args, optionsOrCb, cb) {
|
|
326
479
|
const command = new ListAppVersionResourceMappingsCommand_1.ListAppVersionResourceMappingsCommand(args);
|
|
327
480
|
if (typeof optionsOrCb === "function") {
|
|
@@ -574,6 +727,48 @@ class Resiliencehub extends ResiliencehubClient_1.ResiliencehubClient {
|
|
|
574
727
|
return this.send(command, optionsOrCb);
|
|
575
728
|
}
|
|
576
729
|
}
|
|
730
|
+
updateAppVersion(args, optionsOrCb, cb) {
|
|
731
|
+
const command = new UpdateAppVersionCommand_1.UpdateAppVersionCommand(args);
|
|
732
|
+
if (typeof optionsOrCb === "function") {
|
|
733
|
+
this.send(command, optionsOrCb);
|
|
734
|
+
}
|
|
735
|
+
else if (typeof cb === "function") {
|
|
736
|
+
if (typeof optionsOrCb !== "object")
|
|
737
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
738
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
739
|
+
}
|
|
740
|
+
else {
|
|
741
|
+
return this.send(command, optionsOrCb);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
updateAppVersionAppComponent(args, optionsOrCb, cb) {
|
|
745
|
+
const command = new UpdateAppVersionAppComponentCommand_1.UpdateAppVersionAppComponentCommand(args);
|
|
746
|
+
if (typeof optionsOrCb === "function") {
|
|
747
|
+
this.send(command, optionsOrCb);
|
|
748
|
+
}
|
|
749
|
+
else if (typeof cb === "function") {
|
|
750
|
+
if (typeof optionsOrCb !== "object")
|
|
751
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
752
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
753
|
+
}
|
|
754
|
+
else {
|
|
755
|
+
return this.send(command, optionsOrCb);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
updateAppVersionResource(args, optionsOrCb, cb) {
|
|
759
|
+
const command = new UpdateAppVersionResourceCommand_1.UpdateAppVersionResourceCommand(args);
|
|
760
|
+
if (typeof optionsOrCb === "function") {
|
|
761
|
+
this.send(command, optionsOrCb);
|
|
762
|
+
}
|
|
763
|
+
else if (typeof cb === "function") {
|
|
764
|
+
if (typeof optionsOrCb !== "object")
|
|
765
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
766
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
767
|
+
}
|
|
768
|
+
else {
|
|
769
|
+
return this.send(command, optionsOrCb);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
577
772
|
updateResiliencyPolicy(args, optionsOrCb, cb) {
|
|
578
773
|
const command = new UpdateResiliencyPolicyCommand_1.UpdateResiliencyPolicyCommand(args);
|
|
579
774
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAppVersionAppComponentCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class CreateAppVersionAppComponentCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAppVersionAppComponentCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "CreateAppVersionAppComponentCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateAppVersionAppComponentRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateAppVersionAppComponentResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateAppVersionAppComponentCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateAppVersionAppComponentCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateAppVersionAppComponentCommand = CreateAppVersionAppComponentCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAppVersionResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class CreateAppVersionResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAppVersionResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "CreateAppVersionResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateAppVersionResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateAppVersionResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateAppVersionResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateAppVersionResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateAppVersionResourceCommand = CreateAppVersionResourceCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAppInputSourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteAppInputSourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAppInputSourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "DeleteAppInputSourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteAppInputSourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteAppInputSourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteAppInputSourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteAppInputSourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteAppInputSourceCommand = DeleteAppInputSourceCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAppVersionAppComponentCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteAppVersionAppComponentCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAppVersionAppComponentCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "DeleteAppVersionAppComponentCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteAppVersionAppComponentRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteAppVersionAppComponentResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteAppVersionAppComponentCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteAppVersionAppComponentCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteAppVersionAppComponentCommand = DeleteAppVersionAppComponentCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAppVersionResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteAppVersionResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAppVersionResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "DeleteAppVersionResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteAppVersionResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteAppVersionResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteAppVersionResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteAppVersionResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteAppVersionResourceCommand = DeleteAppVersionResourceCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeAppVersionAppComponentCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DescribeAppVersionAppComponentCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAppVersionAppComponentCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "DescribeAppVersionAppComponentCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DescribeAppVersionAppComponentRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeAppVersionAppComponentResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeAppVersionAppComponentCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeAppVersionAppComponentCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeAppVersionAppComponentCommand = DescribeAppVersionAppComponentCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeAppVersionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DescribeAppVersionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAppVersionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "DescribeAppVersionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DescribeAppVersionRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeAppVersionResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeAppVersionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeAppVersionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeAppVersionCommand = DescribeAppVersionCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeAppVersionResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DescribeAppVersionResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAppVersionResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "DescribeAppVersionResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DescribeAppVersionResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeAppVersionResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeAppVersionResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeAppVersionResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeAppVersionResourceCommand = DescribeAppVersionResourceCommand;
|