@aws-sdk/client-fis 3.48.0 → 3.52.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/CHANGELOG.md +35 -0
- package/dist-cjs/Fis.js +30 -0
- package/dist-cjs/commands/GetTargetResourceTypeCommand.js +36 -0
- package/dist-cjs/commands/ListTargetResourceTypesCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +44 -2
- package/dist-cjs/pagination/ListTargetResourceTypesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +245 -1
- package/dist-es/Fis.js +30 -0
- package/dist-es/commands/GetTargetResourceTypeCommand.js +39 -0
- package/dist-es/commands/ListTargetResourceTypesCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/ListTargetResourceTypesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +275 -2
- package/dist-types/Fis.d.ts +14 -0
- package/dist-types/FisClient.d.ts +4 -2
- package/dist-types/commands/GetTargetResourceTypeCommand.d.ts +35 -0
- package/dist-types/commands/ListTargetResourceTypesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +146 -2
- package/dist-types/pagination/ListTargetResourceTypesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Fis.d.ts +10 -0
- package/dist-types/ts3.4/FisClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetTargetResourceTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTargetResourceTypesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +89 -0
- package/dist-types/ts3.4/pagination/ListTargetResourceTypesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +40 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-fis
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-fis
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** update clients as of 02/04/2022 ([#3280](https://github.com/aws/aws-sdk-js-v3/issues/3280)) ([63d7f8c](https://github.com/aws/aws-sdk-js-v3/commit/63d7f8c539e0fd782fa5bf997bd6ac2730e4bfda))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/client-fis
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
42
|
|
|
8
43
|
|
package/dist-cjs/Fis.js
CHANGED
|
@@ -6,10 +6,12 @@ const DeleteExperimentTemplateCommand_1 = require("./commands/DeleteExperimentTe
|
|
|
6
6
|
const GetActionCommand_1 = require("./commands/GetActionCommand");
|
|
7
7
|
const GetExperimentCommand_1 = require("./commands/GetExperimentCommand");
|
|
8
8
|
const GetExperimentTemplateCommand_1 = require("./commands/GetExperimentTemplateCommand");
|
|
9
|
+
const GetTargetResourceTypeCommand_1 = require("./commands/GetTargetResourceTypeCommand");
|
|
9
10
|
const ListActionsCommand_1 = require("./commands/ListActionsCommand");
|
|
10
11
|
const ListExperimentsCommand_1 = require("./commands/ListExperimentsCommand");
|
|
11
12
|
const ListExperimentTemplatesCommand_1 = require("./commands/ListExperimentTemplatesCommand");
|
|
12
13
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
14
|
+
const ListTargetResourceTypesCommand_1 = require("./commands/ListTargetResourceTypesCommand");
|
|
13
15
|
const StartExperimentCommand_1 = require("./commands/StartExperimentCommand");
|
|
14
16
|
const StopExperimentCommand_1 = require("./commands/StopExperimentCommand");
|
|
15
17
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -87,6 +89,20 @@ class Fis extends FisClient_1.FisClient {
|
|
|
87
89
|
return this.send(command, optionsOrCb);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
92
|
+
getTargetResourceType(args, optionsOrCb, cb) {
|
|
93
|
+
const command = new GetTargetResourceTypeCommand_1.GetTargetResourceTypeCommand(args);
|
|
94
|
+
if (typeof optionsOrCb === "function") {
|
|
95
|
+
this.send(command, optionsOrCb);
|
|
96
|
+
}
|
|
97
|
+
else if (typeof cb === "function") {
|
|
98
|
+
if (typeof optionsOrCb !== "object")
|
|
99
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
90
106
|
listActions(args, optionsOrCb, cb) {
|
|
91
107
|
const command = new ListActionsCommand_1.ListActionsCommand(args);
|
|
92
108
|
if (typeof optionsOrCb === "function") {
|
|
@@ -143,6 +159,20 @@ class Fis extends FisClient_1.FisClient {
|
|
|
143
159
|
return this.send(command, optionsOrCb);
|
|
144
160
|
}
|
|
145
161
|
}
|
|
162
|
+
listTargetResourceTypes(args, optionsOrCb, cb) {
|
|
163
|
+
const command = new ListTargetResourceTypesCommand_1.ListTargetResourceTypesCommand(args);
|
|
164
|
+
if (typeof optionsOrCb === "function") {
|
|
165
|
+
this.send(command, optionsOrCb);
|
|
166
|
+
}
|
|
167
|
+
else if (typeof cb === "function") {
|
|
168
|
+
if (typeof optionsOrCb !== "object")
|
|
169
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
146
176
|
startExperiment(args, optionsOrCb, cb) {
|
|
147
177
|
const command = new StartExperimentCommand_1.StartExperimentCommand(args);
|
|
148
178
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTargetResourceTypeCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetTargetResourceTypeCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "FisClient";
|
|
18
|
+
const commandName = "GetTargetResourceTypeCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetTargetResourceTypeRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetTargetResourceTypeResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1GetTargetResourceTypeCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetTargetResourceTypeCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetTargetResourceTypeCommand = GetTargetResourceTypeCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTargetResourceTypesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListTargetResourceTypesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "FisClient";
|
|
18
|
+
const commandName = "ListTargetResourceTypesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListTargetResourceTypesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListTargetResourceTypesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListTargetResourceTypesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListTargetResourceTypesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListTargetResourceTypesCommand = ListTargetResourceTypesCommand;
|
|
@@ -6,10 +6,12 @@ tslib_1.__exportStar(require("./DeleteExperimentTemplateCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./GetActionCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetExperimentCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./GetExperimentTemplateCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetTargetResourceTypeCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListActionsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListExperimentTemplatesCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./ListExperimentsCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListTargetResourceTypesCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./StartExperimentCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./StopExperimentCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateExperimentTemplateResponse = exports.UpdateExperimentTemplateRequest = exports.UpdateExperimentTemplateTargetInput = exports.UpdateExperimentTemplateStopConditionInput = exports.UpdateExperimentTemplateActionInputItem = void 0;
|
|
3
|
+
exports.StartExperimentRequest = exports.ListTargetResourceTypesResponse = exports.TargetResourceTypeSummary = exports.ListTargetResourceTypesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListExperimentTemplatesResponse = exports.ListExperimentTemplatesRequest = exports.ListExperimentsResponse = exports.ListExperimentsRequest = exports.ListActionsResponse = exports.ListActionsRequest = exports.GetTargetResourceTypeResponse = exports.TargetResourceType = exports.TargetResourceTypeParameter = exports.GetTargetResourceTypeRequest = exports.GetExperimentTemplateResponse = exports.GetExperimentTemplateRequest = exports.GetExperimentResponse = exports.GetExperimentRequest = exports.GetActionResponse = exports.GetActionRequest = exports.ExperimentTemplateSummary = exports.ExperimentSummary = exports.Experiment = exports.ExperimentTarget = exports.ExperimentTargetFilter = exports.ExperimentStopCondition = exports.ExperimentState = exports.ExperimentStatus = exports.ExperimentAction = exports.ExperimentActionState = exports.ExperimentActionStatus = exports.DeleteExperimentTemplateResponse = exports.DeleteExperimentTemplateRequest = exports.CreateExperimentTemplateResponse = exports.ExperimentTemplate = exports.ExperimentTemplateTarget = exports.ExperimentTemplateTargetFilter = exports.ExperimentTemplateStopCondition = exports.ExperimentTemplateAction = exports.CreateExperimentTemplateRequest = exports.CreateExperimentTemplateTargetInput = exports.ExperimentTemplateTargetInputFilter = exports.CreateExperimentTemplateStopConditionInput = exports.CreateExperimentTemplateActionInput = exports.ActionSummary = exports.Action = exports.ActionTarget = exports.ActionParameter = void 0;
|
|
4
|
+
exports.UpdateExperimentTemplateResponse = exports.UpdateExperimentTemplateRequest = exports.UpdateExperimentTemplateTargetInput = exports.UpdateExperimentTemplateStopConditionInput = exports.UpdateExperimentTemplateActionInputItem = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopExperimentResponse = exports.StopExperimentRequest = exports.StartExperimentResponse = void 0;
|
|
5
5
|
var ActionParameter;
|
|
6
6
|
(function (ActionParameter) {
|
|
7
7
|
ActionParameter.filterSensitiveLog = (obj) => ({
|
|
@@ -215,6 +215,30 @@ var GetExperimentTemplateResponse;
|
|
|
215
215
|
...obj,
|
|
216
216
|
});
|
|
217
217
|
})(GetExperimentTemplateResponse = exports.GetExperimentTemplateResponse || (exports.GetExperimentTemplateResponse = {}));
|
|
218
|
+
var GetTargetResourceTypeRequest;
|
|
219
|
+
(function (GetTargetResourceTypeRequest) {
|
|
220
|
+
GetTargetResourceTypeRequest.filterSensitiveLog = (obj) => ({
|
|
221
|
+
...obj,
|
|
222
|
+
});
|
|
223
|
+
})(GetTargetResourceTypeRequest = exports.GetTargetResourceTypeRequest || (exports.GetTargetResourceTypeRequest = {}));
|
|
224
|
+
var TargetResourceTypeParameter;
|
|
225
|
+
(function (TargetResourceTypeParameter) {
|
|
226
|
+
TargetResourceTypeParameter.filterSensitiveLog = (obj) => ({
|
|
227
|
+
...obj,
|
|
228
|
+
});
|
|
229
|
+
})(TargetResourceTypeParameter = exports.TargetResourceTypeParameter || (exports.TargetResourceTypeParameter = {}));
|
|
230
|
+
var TargetResourceType;
|
|
231
|
+
(function (TargetResourceType) {
|
|
232
|
+
TargetResourceType.filterSensitiveLog = (obj) => ({
|
|
233
|
+
...obj,
|
|
234
|
+
});
|
|
235
|
+
})(TargetResourceType = exports.TargetResourceType || (exports.TargetResourceType = {}));
|
|
236
|
+
var GetTargetResourceTypeResponse;
|
|
237
|
+
(function (GetTargetResourceTypeResponse) {
|
|
238
|
+
GetTargetResourceTypeResponse.filterSensitiveLog = (obj) => ({
|
|
239
|
+
...obj,
|
|
240
|
+
});
|
|
241
|
+
})(GetTargetResourceTypeResponse = exports.GetTargetResourceTypeResponse || (exports.GetTargetResourceTypeResponse = {}));
|
|
218
242
|
var ListActionsRequest;
|
|
219
243
|
(function (ListActionsRequest) {
|
|
220
244
|
ListActionsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -263,6 +287,24 @@ var ListTagsForResourceResponse;
|
|
|
263
287
|
...obj,
|
|
264
288
|
});
|
|
265
289
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
290
|
+
var ListTargetResourceTypesRequest;
|
|
291
|
+
(function (ListTargetResourceTypesRequest) {
|
|
292
|
+
ListTargetResourceTypesRequest.filterSensitiveLog = (obj) => ({
|
|
293
|
+
...obj,
|
|
294
|
+
});
|
|
295
|
+
})(ListTargetResourceTypesRequest = exports.ListTargetResourceTypesRequest || (exports.ListTargetResourceTypesRequest = {}));
|
|
296
|
+
var TargetResourceTypeSummary;
|
|
297
|
+
(function (TargetResourceTypeSummary) {
|
|
298
|
+
TargetResourceTypeSummary.filterSensitiveLog = (obj) => ({
|
|
299
|
+
...obj,
|
|
300
|
+
});
|
|
301
|
+
})(TargetResourceTypeSummary = exports.TargetResourceTypeSummary || (exports.TargetResourceTypeSummary = {}));
|
|
302
|
+
var ListTargetResourceTypesResponse;
|
|
303
|
+
(function (ListTargetResourceTypesResponse) {
|
|
304
|
+
ListTargetResourceTypesResponse.filterSensitiveLog = (obj) => ({
|
|
305
|
+
...obj,
|
|
306
|
+
});
|
|
307
|
+
})(ListTargetResourceTypesResponse = exports.ListTargetResourceTypesResponse || (exports.ListTargetResourceTypesResponse = {}));
|
|
266
308
|
var StartExperimentRequest;
|
|
267
309
|
(function (StartExperimentRequest) {
|
|
268
310
|
StartExperimentRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTargetResourceTypes = void 0;
|
|
4
|
+
const ListTargetResourceTypesCommand_1 = require("../commands/ListTargetResourceTypesCommand");
|
|
5
|
+
const Fis_1 = require("../Fis");
|
|
6
|
+
const FisClient_1 = require("../FisClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListTargetResourceTypesCommand_1.ListTargetResourceTypesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listTargetResourceTypes(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListTargetResourceTypes(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Fis_1.Fis) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof FisClient_1.FisClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Fis | FisClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.nextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListTargetResourceTypes = paginateListTargetResourceTypes;
|
|
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./ListActionsPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListExperimentTemplatesPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./ListExperimentsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListTargetResourceTypesPaginator"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateExperimentTemplateCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopExperimentCommand = exports.deserializeAws_restJson1StartExperimentCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListExperimentTemplatesCommand = exports.deserializeAws_restJson1ListExperimentsCommand = exports.deserializeAws_restJson1ListActionsCommand = exports.deserializeAws_restJson1GetExperimentTemplateCommand = exports.deserializeAws_restJson1GetExperimentCommand = exports.deserializeAws_restJson1GetActionCommand = exports.deserializeAws_restJson1DeleteExperimentTemplateCommand = exports.deserializeAws_restJson1CreateExperimentTemplateCommand = exports.serializeAws_restJson1UpdateExperimentTemplateCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopExperimentCommand = exports.serializeAws_restJson1StartExperimentCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListExperimentTemplatesCommand = exports.serializeAws_restJson1ListExperimentsCommand = exports.serializeAws_restJson1ListActionsCommand = exports.serializeAws_restJson1GetExperimentTemplateCommand = exports.serializeAws_restJson1GetExperimentCommand = exports.serializeAws_restJson1GetActionCommand = exports.serializeAws_restJson1DeleteExperimentTemplateCommand = exports.serializeAws_restJson1CreateExperimentTemplateCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateExperimentTemplateCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopExperimentCommand = exports.deserializeAws_restJson1StartExperimentCommand = exports.deserializeAws_restJson1ListTargetResourceTypesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListExperimentTemplatesCommand = exports.deserializeAws_restJson1ListExperimentsCommand = exports.deserializeAws_restJson1ListActionsCommand = exports.deserializeAws_restJson1GetTargetResourceTypeCommand = exports.deserializeAws_restJson1GetExperimentTemplateCommand = exports.deserializeAws_restJson1GetExperimentCommand = exports.deserializeAws_restJson1GetActionCommand = exports.deserializeAws_restJson1DeleteExperimentTemplateCommand = exports.deserializeAws_restJson1CreateExperimentTemplateCommand = exports.serializeAws_restJson1UpdateExperimentTemplateCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopExperimentCommand = exports.serializeAws_restJson1StartExperimentCommand = exports.serializeAws_restJson1ListTargetResourceTypesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListExperimentTemplatesCommand = exports.serializeAws_restJson1ListExperimentsCommand = exports.serializeAws_restJson1ListActionsCommand = exports.serializeAws_restJson1GetTargetResourceTypeCommand = exports.serializeAws_restJson1GetExperimentTemplateCommand = exports.serializeAws_restJson1GetExperimentCommand = exports.serializeAws_restJson1GetActionCommand = exports.serializeAws_restJson1DeleteExperimentTemplateCommand = exports.serializeAws_restJson1CreateExperimentTemplateCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -145,6 +145,32 @@ const serializeAws_restJson1GetExperimentTemplateCommand = async (input, context
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
exports.serializeAws_restJson1GetExperimentTemplateCommand = serializeAws_restJson1GetExperimentTemplateCommand;
|
|
148
|
+
const serializeAws_restJson1GetTargetResourceTypeCommand = async (input, context) => {
|
|
149
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
|
+
const headers = {};
|
|
151
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes/{resourceType}";
|
|
152
|
+
if (input.resourceType !== undefined) {
|
|
153
|
+
const labelValue = input.resourceType;
|
|
154
|
+
if (labelValue.length <= 0) {
|
|
155
|
+
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
156
|
+
}
|
|
157
|
+
resolvedPath = resolvedPath.replace("{resourceType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
161
|
+
}
|
|
162
|
+
let body;
|
|
163
|
+
return new protocol_http_1.HttpRequest({
|
|
164
|
+
protocol,
|
|
165
|
+
hostname,
|
|
166
|
+
port,
|
|
167
|
+
method: "GET",
|
|
168
|
+
headers,
|
|
169
|
+
path: resolvedPath,
|
|
170
|
+
body,
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
exports.serializeAws_restJson1GetTargetResourceTypeCommand = serializeAws_restJson1GetTargetResourceTypeCommand;
|
|
148
174
|
const serializeAws_restJson1ListActionsCommand = async (input, context) => {
|
|
149
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
176
|
const headers = {};
|
|
@@ -234,6 +260,27 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
234
260
|
});
|
|
235
261
|
};
|
|
236
262
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
263
|
+
const serializeAws_restJson1ListTargetResourceTypesCommand = async (input, context) => {
|
|
264
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
|
+
const headers = {};
|
|
266
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes";
|
|
267
|
+
const query = {
|
|
268
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
269
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
270
|
+
};
|
|
271
|
+
let body;
|
|
272
|
+
return new protocol_http_1.HttpRequest({
|
|
273
|
+
protocol,
|
|
274
|
+
hostname,
|
|
275
|
+
port,
|
|
276
|
+
method: "GET",
|
|
277
|
+
headers,
|
|
278
|
+
path: resolvedPath,
|
|
279
|
+
query,
|
|
280
|
+
body,
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
exports.serializeAws_restJson1ListTargetResourceTypesCommand = serializeAws_restJson1ListTargetResourceTypesCommand;
|
|
237
284
|
const serializeAws_restJson1StartExperimentCommand = async (input, context) => {
|
|
238
285
|
var _a;
|
|
239
286
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -686,6 +733,62 @@ const deserializeAws_restJson1GetExperimentTemplateCommandError = async (output,
|
|
|
686
733
|
delete response.Message;
|
|
687
734
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
688
735
|
};
|
|
736
|
+
const deserializeAws_restJson1GetTargetResourceTypeCommand = async (output, context) => {
|
|
737
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
+
return deserializeAws_restJson1GetTargetResourceTypeCommandError(output, context);
|
|
739
|
+
}
|
|
740
|
+
const contents = {
|
|
741
|
+
$metadata: deserializeMetadata(output),
|
|
742
|
+
targetResourceType: undefined,
|
|
743
|
+
};
|
|
744
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
745
|
+
if (data.targetResourceType !== undefined && data.targetResourceType !== null) {
|
|
746
|
+
contents.targetResourceType = deserializeAws_restJson1TargetResourceType(data.targetResourceType, context);
|
|
747
|
+
}
|
|
748
|
+
return Promise.resolve(contents);
|
|
749
|
+
};
|
|
750
|
+
exports.deserializeAws_restJson1GetTargetResourceTypeCommand = deserializeAws_restJson1GetTargetResourceTypeCommand;
|
|
751
|
+
const deserializeAws_restJson1GetTargetResourceTypeCommandError = async (output, context) => {
|
|
752
|
+
const parsedOutput = {
|
|
753
|
+
...output,
|
|
754
|
+
body: await parseBody(output.body, context),
|
|
755
|
+
};
|
|
756
|
+
let response;
|
|
757
|
+
let errorCode = "UnknownError";
|
|
758
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
switch (errorCode) {
|
|
760
|
+
case "ResourceNotFoundException":
|
|
761
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
762
|
+
response = {
|
|
763
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
764
|
+
name: errorCode,
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
766
|
+
};
|
|
767
|
+
break;
|
|
768
|
+
case "ValidationException":
|
|
769
|
+
case "com.amazonaws.fis#ValidationException":
|
|
770
|
+
response = {
|
|
771
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
772
|
+
name: errorCode,
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
};
|
|
775
|
+
break;
|
|
776
|
+
default:
|
|
777
|
+
const parsedBody = parsedOutput.body;
|
|
778
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
779
|
+
response = {
|
|
780
|
+
...parsedBody,
|
|
781
|
+
name: `${errorCode}`,
|
|
782
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
783
|
+
$fault: "client",
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
const message = response.message || response.Message || errorCode;
|
|
788
|
+
response.message = message;
|
|
789
|
+
delete response.Message;
|
|
790
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
791
|
+
};
|
|
689
792
|
const deserializeAws_restJson1ListActionsCommand = async (output, context) => {
|
|
690
793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
794
|
return deserializeAws_restJson1ListActionsCommandError(output, context);
|
|
@@ -882,6 +985,58 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
882
985
|
delete response.Message;
|
|
883
986
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
884
987
|
};
|
|
988
|
+
const deserializeAws_restJson1ListTargetResourceTypesCommand = async (output, context) => {
|
|
989
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
+
return deserializeAws_restJson1ListTargetResourceTypesCommandError(output, context);
|
|
991
|
+
}
|
|
992
|
+
const contents = {
|
|
993
|
+
$metadata: deserializeMetadata(output),
|
|
994
|
+
nextToken: undefined,
|
|
995
|
+
targetResourceTypes: undefined,
|
|
996
|
+
};
|
|
997
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
998
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
999
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1000
|
+
}
|
|
1001
|
+
if (data.targetResourceTypes !== undefined && data.targetResourceTypes !== null) {
|
|
1002
|
+
contents.targetResourceTypes = deserializeAws_restJson1TargetResourceTypeSummaryList(data.targetResourceTypes, context);
|
|
1003
|
+
}
|
|
1004
|
+
return Promise.resolve(contents);
|
|
1005
|
+
};
|
|
1006
|
+
exports.deserializeAws_restJson1ListTargetResourceTypesCommand = deserializeAws_restJson1ListTargetResourceTypesCommand;
|
|
1007
|
+
const deserializeAws_restJson1ListTargetResourceTypesCommandError = async (output, context) => {
|
|
1008
|
+
const parsedOutput = {
|
|
1009
|
+
...output,
|
|
1010
|
+
body: await parseBody(output.body, context),
|
|
1011
|
+
};
|
|
1012
|
+
let response;
|
|
1013
|
+
let errorCode = "UnknownError";
|
|
1014
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
+
switch (errorCode) {
|
|
1016
|
+
case "ValidationException":
|
|
1017
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1018
|
+
response = {
|
|
1019
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1020
|
+
name: errorCode,
|
|
1021
|
+
$metadata: deserializeMetadata(output),
|
|
1022
|
+
};
|
|
1023
|
+
break;
|
|
1024
|
+
default:
|
|
1025
|
+
const parsedBody = parsedOutput.body;
|
|
1026
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1027
|
+
response = {
|
|
1028
|
+
...parsedBody,
|
|
1029
|
+
name: `${errorCode}`,
|
|
1030
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1031
|
+
$fault: "client",
|
|
1032
|
+
$metadata: deserializeMetadata(output),
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
const message = response.message || response.Message || errorCode;
|
|
1036
|
+
response.message = message;
|
|
1037
|
+
delete response.Message;
|
|
1038
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1039
|
+
};
|
|
885
1040
|
const deserializeAws_restJson1StartExperimentCommand = async (output, context) => {
|
|
886
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
1042
|
return deserializeAws_restJson1StartExperimentCommandError(output, context);
|
|
@@ -1249,6 +1404,10 @@ const serializeAws_restJson1CreateExperimentTemplateTargetInput = (input, contex
|
|
|
1249
1404
|
input.filters !== null && {
|
|
1250
1405
|
filters: serializeAws_restJson1ExperimentTemplateTargetFilterInputList(input.filters, context),
|
|
1251
1406
|
}),
|
|
1407
|
+
...(input.parameters !== undefined &&
|
|
1408
|
+
input.parameters !== null && {
|
|
1409
|
+
parameters: serializeAws_restJson1ExperimentTemplateTargetParameterMap(input.parameters, context),
|
|
1410
|
+
}),
|
|
1252
1411
|
...(input.resourceArns !== undefined &&
|
|
1253
1412
|
input.resourceArns !== null && {
|
|
1254
1413
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
@@ -1331,6 +1490,17 @@ const serializeAws_restJson1ExperimentTemplateTargetInputFilter = (input, contex
|
|
|
1331
1490
|
}),
|
|
1332
1491
|
};
|
|
1333
1492
|
};
|
|
1493
|
+
const serializeAws_restJson1ExperimentTemplateTargetParameterMap = (input, context) => {
|
|
1494
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1495
|
+
if (value === null) {
|
|
1496
|
+
return acc;
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
...acc,
|
|
1500
|
+
[key]: value,
|
|
1501
|
+
};
|
|
1502
|
+
}, {});
|
|
1503
|
+
};
|
|
1334
1504
|
const serializeAws_restJson1ResourceArnList = (input, context) => {
|
|
1335
1505
|
return input
|
|
1336
1506
|
.filter((e) => e != null)
|
|
@@ -1403,6 +1573,10 @@ const serializeAws_restJson1UpdateExperimentTemplateTargetInput = (input, contex
|
|
|
1403
1573
|
input.filters !== null && {
|
|
1404
1574
|
filters: serializeAws_restJson1ExperimentTemplateTargetFilterInputList(input.filters, context),
|
|
1405
1575
|
}),
|
|
1576
|
+
...(input.parameters !== undefined &&
|
|
1577
|
+
input.parameters !== null && {
|
|
1578
|
+
parameters: serializeAws_restJson1ExperimentTemplateTargetParameterMap(input.parameters, context),
|
|
1579
|
+
}),
|
|
1406
1580
|
...(input.resourceArns !== undefined &&
|
|
1407
1581
|
input.resourceArns !== null && {
|
|
1408
1582
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
@@ -1650,6 +1824,9 @@ const deserializeAws_restJson1ExperimentTarget = (output, context) => {
|
|
|
1650
1824
|
filters: output.filters !== undefined && output.filters !== null
|
|
1651
1825
|
? deserializeAws_restJson1ExperimentTargetFilterList(output.filters, context)
|
|
1652
1826
|
: undefined,
|
|
1827
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1828
|
+
? deserializeAws_restJson1ExperimentTargetParameterMap(output.parameters, context)
|
|
1829
|
+
: undefined,
|
|
1653
1830
|
resourceArns: output.resourceArns !== undefined && output.resourceArns !== null
|
|
1654
1831
|
? deserializeAws_restJson1ResourceArnList(output.resourceArns, context)
|
|
1655
1832
|
: undefined,
|
|
@@ -1699,6 +1876,17 @@ const deserializeAws_restJson1ExperimentTargetMap = (output, context) => {
|
|
|
1699
1876
|
};
|
|
1700
1877
|
}, {});
|
|
1701
1878
|
};
|
|
1879
|
+
const deserializeAws_restJson1ExperimentTargetParameterMap = (output, context) => {
|
|
1880
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1881
|
+
if (value === null) {
|
|
1882
|
+
return acc;
|
|
1883
|
+
}
|
|
1884
|
+
return {
|
|
1885
|
+
...acc,
|
|
1886
|
+
[key]: smithy_client_1.expectString(value),
|
|
1887
|
+
};
|
|
1888
|
+
}, {});
|
|
1889
|
+
};
|
|
1702
1890
|
const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
1703
1891
|
return {
|
|
1704
1892
|
actions: output.actions !== undefined && output.actions !== null
|
|
@@ -1828,6 +2016,9 @@ const deserializeAws_restJson1ExperimentTemplateTarget = (output, context) => {
|
|
|
1828
2016
|
filters: output.filters !== undefined && output.filters !== null
|
|
1829
2017
|
? deserializeAws_restJson1ExperimentTemplateTargetFilterList(output.filters, context)
|
|
1830
2018
|
: undefined,
|
|
2019
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2020
|
+
? deserializeAws_restJson1ExperimentTemplateTargetParameterMap(output.parameters, context)
|
|
2021
|
+
: undefined,
|
|
1831
2022
|
resourceArns: output.resourceArns !== undefined && output.resourceArns !== null
|
|
1832
2023
|
? deserializeAws_restJson1ResourceArnList(output.resourceArns, context)
|
|
1833
2024
|
: undefined,
|
|
@@ -1877,6 +2068,17 @@ const deserializeAws_restJson1ExperimentTemplateTargetMap = (output, context) =>
|
|
|
1877
2068
|
};
|
|
1878
2069
|
}, {});
|
|
1879
2070
|
};
|
|
2071
|
+
const deserializeAws_restJson1ExperimentTemplateTargetParameterMap = (output, context) => {
|
|
2072
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2073
|
+
if (value === null) {
|
|
2074
|
+
return acc;
|
|
2075
|
+
}
|
|
2076
|
+
return {
|
|
2077
|
+
...acc,
|
|
2078
|
+
[key]: smithy_client_1.expectString(value),
|
|
2079
|
+
};
|
|
2080
|
+
}, {});
|
|
2081
|
+
};
|
|
1880
2082
|
const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
1881
2083
|
return (output || [])
|
|
1882
2084
|
.filter((e) => e != null)
|
|
@@ -1898,6 +2100,48 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1898
2100
|
};
|
|
1899
2101
|
}, {});
|
|
1900
2102
|
};
|
|
2103
|
+
const deserializeAws_restJson1TargetResourceType = (output, context) => {
|
|
2104
|
+
return {
|
|
2105
|
+
description: smithy_client_1.expectString(output.description),
|
|
2106
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2107
|
+
? deserializeAws_restJson1TargetResourceTypeParameterMap(output.parameters, context)
|
|
2108
|
+
: undefined,
|
|
2109
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
const deserializeAws_restJson1TargetResourceTypeParameter = (output, context) => {
|
|
2113
|
+
return {
|
|
2114
|
+
description: smithy_client_1.expectString(output.description),
|
|
2115
|
+
required: smithy_client_1.expectBoolean(output.required),
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
const deserializeAws_restJson1TargetResourceTypeParameterMap = (output, context) => {
|
|
2119
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2120
|
+
if (value === null) {
|
|
2121
|
+
return acc;
|
|
2122
|
+
}
|
|
2123
|
+
return {
|
|
2124
|
+
...acc,
|
|
2125
|
+
[key]: deserializeAws_restJson1TargetResourceTypeParameter(value, context),
|
|
2126
|
+
};
|
|
2127
|
+
}, {});
|
|
2128
|
+
};
|
|
2129
|
+
const deserializeAws_restJson1TargetResourceTypeSummary = (output, context) => {
|
|
2130
|
+
return {
|
|
2131
|
+
description: smithy_client_1.expectString(output.description),
|
|
2132
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
const deserializeAws_restJson1TargetResourceTypeSummaryList = (output, context) => {
|
|
2136
|
+
return (output || [])
|
|
2137
|
+
.filter((e) => e != null)
|
|
2138
|
+
.map((entry) => {
|
|
2139
|
+
if (entry === null) {
|
|
2140
|
+
return null;
|
|
2141
|
+
}
|
|
2142
|
+
return deserializeAws_restJson1TargetResourceTypeSummary(entry, context);
|
|
2143
|
+
});
|
|
2144
|
+
};
|
|
1901
2145
|
const deserializeMetadata = (output) => {
|
|
1902
2146
|
var _a;
|
|
1903
2147
|
return ({
|