@aws-sdk/client-inspector2 3.54.1 → 3.55.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 +8 -0
- package/dist-cjs/Inspector2Client.js +13 -13
- package/dist-cjs/commands/AssociateMemberCommand.js +3 -3
- package/dist-cjs/commands/BatchGetAccountStatusCommand.js +3 -3
- package/dist-cjs/commands/BatchGetFreeTrialInfoCommand.js +3 -3
- package/dist-cjs/commands/CancelFindingsReportCommand.js +3 -3
- package/dist-cjs/commands/CreateFilterCommand.js +3 -3
- package/dist-cjs/commands/CreateFindingsReportCommand.js +3 -3
- package/dist-cjs/commands/DeleteFilterCommand.js +3 -3
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DisableCommand.js +3 -3
- package/dist-cjs/commands/DisableDelegatedAdminAccountCommand.js +3 -3
- package/dist-cjs/commands/DisassociateMemberCommand.js +3 -3
- package/dist-cjs/commands/EnableCommand.js +3 -3
- package/dist-cjs/commands/EnableDelegatedAdminAccountCommand.js +3 -3
- package/dist-cjs/commands/GetDelegatedAdminAccountCommand.js +3 -3
- package/dist-cjs/commands/GetFindingsReportStatusCommand.js +3 -3
- package/dist-cjs/commands/GetMemberCommand.js +3 -3
- package/dist-cjs/commands/ListAccountPermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListCoverageCommand.js +3 -3
- package/dist-cjs/commands/ListCoverageStatisticsCommand.js +3 -3
- package/dist-cjs/commands/ListDelegatedAdminAccountsCommand.js +3 -3
- package/dist-cjs/commands/ListFiltersCommand.js +3 -3
- package/dist-cjs/commands/ListFindingAggregationsCommand.js +3 -3
- package/dist-cjs/commands/ListFindingsCommand.js +3 -3
- package/dist-cjs/commands/ListMembersCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListUsageTotalsCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateFilterCommand.js +3 -3
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +287 -287
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Inspector2.js +30 -30
- package/dist-es/pagination/ListAccountPermissionsPaginator.js +4 -4
- package/dist-es/pagination/ListCoveragePaginator.js +4 -4
- package/dist-es/pagination/ListCoverageStatisticsPaginator.js +4 -4
- package/dist-es/pagination/ListDelegatedAdminAccountsPaginator.js +4 -4
- package/dist-es/pagination/ListFiltersPaginator.js +4 -4
- package/dist-es/pagination/ListFindingAggregationsPaginator.js +4 -4
- package/dist-es/pagination/ListFindingsPaginator.js +4 -4
- package/dist-es/pagination/ListMembersPaginator.js +4 -4
- package/dist-es/pagination/ListUsageTotalsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +30 -30
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListUsageTotalsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListUsageTotalsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listUsageTotals.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listUsageTotals.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListUsageTotals(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Inspector2)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof Inspector2Client)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1AssociateMemberCommand = function (input, conte
|
|
|
14
14
|
headers = {
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
|
-
resolvedPath = ""
|
|
17
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/associate";
|
|
18
18
|
body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
|
|
19
19
|
return [2, new __HttpRequest({
|
|
20
20
|
protocol: protocol,
|
|
@@ -38,7 +38,7 @@ export var serializeAws_restJson1BatchGetAccountStatusCommand = function (input,
|
|
|
38
38
|
headers = {
|
|
39
39
|
"content-type": "application/json",
|
|
40
40
|
};
|
|
41
|
-
resolvedPath = ""
|
|
41
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/status/batch/get";
|
|
42
42
|
body = JSON.stringify(__assign({}, (input.accountIds !== undefined &&
|
|
43
43
|
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })));
|
|
44
44
|
return [2, new __HttpRequest({
|
|
@@ -63,7 +63,7 @@ export var serializeAws_restJson1BatchGetFreeTrialInfoCommand = function (input,
|
|
|
63
63
|
headers = {
|
|
64
64
|
"content-type": "application/json",
|
|
65
65
|
};
|
|
66
|
-
resolvedPath = ""
|
|
66
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/freetrialinfo/batchget";
|
|
67
67
|
body = JSON.stringify(__assign({}, (input.accountIds !== undefined &&
|
|
68
68
|
input.accountIds !== null && {
|
|
69
69
|
accountIds: serializeAws_restJson1MeteringAccountIdList(input.accountIds, context),
|
|
@@ -90,7 +90,7 @@ export var serializeAws_restJson1CancelFindingsReportCommand = function (input,
|
|
|
90
90
|
headers = {
|
|
91
91
|
"content-type": "application/json",
|
|
92
92
|
};
|
|
93
|
-
resolvedPath = ""
|
|
93
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reporting/cancel";
|
|
94
94
|
body = JSON.stringify(__assign({}, (input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId })));
|
|
95
95
|
return [2, new __HttpRequest({
|
|
96
96
|
protocol: protocol,
|
|
@@ -114,7 +114,7 @@ export var serializeAws_restJson1CreateFilterCommand = function (input, context)
|
|
|
114
114
|
headers = {
|
|
115
115
|
"content-type": "application/json",
|
|
116
116
|
};
|
|
117
|
-
resolvedPath = ""
|
|
117
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/create";
|
|
118
118
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.filterCriteria !== undefined &&
|
|
119
119
|
input.filterCriteria !== null && {
|
|
120
120
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
@@ -141,7 +141,7 @@ export var serializeAws_restJson1CreateFindingsReportCommand = function (input,
|
|
|
141
141
|
headers = {
|
|
142
142
|
"content-type": "application/json",
|
|
143
143
|
};
|
|
144
|
-
resolvedPath = ""
|
|
144
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reporting/create";
|
|
145
145
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
|
|
146
146
|
input.filterCriteria !== null && {
|
|
147
147
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
@@ -171,7 +171,7 @@ export var serializeAws_restJson1DeleteFilterCommand = function (input, context)
|
|
|
171
171
|
headers = {
|
|
172
172
|
"content-type": "application/json",
|
|
173
173
|
};
|
|
174
|
-
resolvedPath = ""
|
|
174
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/delete";
|
|
175
175
|
body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
|
|
176
176
|
return [2, new __HttpRequest({
|
|
177
177
|
protocol: protocol,
|
|
@@ -195,7 +195,7 @@ export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = func
|
|
|
195
195
|
headers = {
|
|
196
196
|
"content-type": "application/json",
|
|
197
197
|
};
|
|
198
|
-
resolvedPath = ""
|
|
198
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organizationconfiguration/describe";
|
|
199
199
|
body = "";
|
|
200
200
|
return [2, new __HttpRequest({
|
|
201
201
|
protocol: protocol,
|
|
@@ -219,7 +219,7 @@ export var serializeAws_restJson1DisableCommand = function (input, context) { re
|
|
|
219
219
|
headers = {
|
|
220
220
|
"content-type": "application/json",
|
|
221
221
|
};
|
|
222
|
-
resolvedPath = ""
|
|
222
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disable";
|
|
223
223
|
body = JSON.stringify(__assign(__assign({}, (input.accountIds !== undefined &&
|
|
224
224
|
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })), (input.resourceTypes !== undefined &&
|
|
225
225
|
input.resourceTypes !== null && {
|
|
@@ -247,7 +247,7 @@ export var serializeAws_restJson1DisableDelegatedAdminAccountCommand = function
|
|
|
247
247
|
headers = {
|
|
248
248
|
"content-type": "application/json",
|
|
249
249
|
};
|
|
250
|
-
resolvedPath = ""
|
|
250
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/disable";
|
|
251
251
|
body = JSON.stringify(__assign({}, (input.delegatedAdminAccountId !== undefined &&
|
|
252
252
|
input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId })));
|
|
253
253
|
return [2, new __HttpRequest({
|
|
@@ -272,7 +272,7 @@ export var serializeAws_restJson1DisassociateMemberCommand = function (input, co
|
|
|
272
272
|
headers = {
|
|
273
273
|
"content-type": "application/json",
|
|
274
274
|
};
|
|
275
|
-
resolvedPath = ""
|
|
275
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/disassociate";
|
|
276
276
|
body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
|
|
277
277
|
return [2, new __HttpRequest({
|
|
278
278
|
protocol: protocol,
|
|
@@ -297,7 +297,7 @@ export var serializeAws_restJson1EnableCommand = function (input, context) { ret
|
|
|
297
297
|
headers = {
|
|
298
298
|
"content-type": "application/json",
|
|
299
299
|
};
|
|
300
|
-
resolvedPath = ""
|
|
300
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/enable";
|
|
301
301
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
|
|
302
302
|
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resourceTypes !== undefined &&
|
|
303
303
|
input.resourceTypes !== null && {
|
|
@@ -326,7 +326,7 @@ export var serializeAws_restJson1EnableDelegatedAdminAccountCommand = function (
|
|
|
326
326
|
headers = {
|
|
327
327
|
"content-type": "application/json",
|
|
328
328
|
};
|
|
329
|
-
resolvedPath = ""
|
|
329
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/enable";
|
|
330
330
|
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.delegatedAdminAccountId !== undefined &&
|
|
331
331
|
input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId })));
|
|
332
332
|
return [2, new __HttpRequest({
|
|
@@ -351,7 +351,7 @@ export var serializeAws_restJson1GetDelegatedAdminAccountCommand = function (inp
|
|
|
351
351
|
headers = {
|
|
352
352
|
"content-type": "application/json",
|
|
353
353
|
};
|
|
354
|
-
resolvedPath = ""
|
|
354
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/get";
|
|
355
355
|
body = "";
|
|
356
356
|
return [2, new __HttpRequest({
|
|
357
357
|
protocol: protocol,
|
|
@@ -375,7 +375,7 @@ export var serializeAws_restJson1GetFindingsReportStatusCommand = function (inpu
|
|
|
375
375
|
headers = {
|
|
376
376
|
"content-type": "application/json",
|
|
377
377
|
};
|
|
378
|
-
resolvedPath = ""
|
|
378
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reporting/status/get";
|
|
379
379
|
body = JSON.stringify(__assign({}, (input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId })));
|
|
380
380
|
return [2, new __HttpRequest({
|
|
381
381
|
protocol: protocol,
|
|
@@ -399,7 +399,7 @@ export var serializeAws_restJson1GetMemberCommand = function (input, context) {
|
|
|
399
399
|
headers = {
|
|
400
400
|
"content-type": "application/json",
|
|
401
401
|
};
|
|
402
|
-
resolvedPath = ""
|
|
402
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/get";
|
|
403
403
|
body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
|
|
404
404
|
return [2, new __HttpRequest({
|
|
405
405
|
protocol: protocol,
|
|
@@ -423,7 +423,7 @@ export var serializeAws_restJson1ListAccountPermissionsCommand = function (input
|
|
|
423
423
|
headers = {
|
|
424
424
|
"content-type": "application/json",
|
|
425
425
|
};
|
|
426
|
-
resolvedPath = ""
|
|
426
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accountpermissions/list";
|
|
427
427
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.service !== undefined && input.service !== null && { service: input.service })));
|
|
428
428
|
return [2, new __HttpRequest({
|
|
429
429
|
protocol: protocol,
|
|
@@ -447,7 +447,7 @@ export var serializeAws_restJson1ListCoverageCommand = function (input, context)
|
|
|
447
447
|
headers = {
|
|
448
448
|
"content-type": "application/json",
|
|
449
449
|
};
|
|
450
|
-
resolvedPath = ""
|
|
450
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/coverage/list";
|
|
451
451
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
|
|
452
452
|
input.filterCriteria !== null && {
|
|
453
453
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
@@ -474,7 +474,7 @@ export var serializeAws_restJson1ListCoverageStatisticsCommand = function (input
|
|
|
474
474
|
headers = {
|
|
475
475
|
"content-type": "application/json",
|
|
476
476
|
};
|
|
477
|
-
resolvedPath = ""
|
|
477
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/coverage/statistics/list";
|
|
478
478
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
|
|
479
479
|
input.filterCriteria !== null && {
|
|
480
480
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
@@ -501,7 +501,7 @@ export var serializeAws_restJson1ListDelegatedAdminAccountsCommand = function (i
|
|
|
501
501
|
headers = {
|
|
502
502
|
"content-type": "application/json",
|
|
503
503
|
};
|
|
504
|
-
resolvedPath = ""
|
|
504
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/list";
|
|
505
505
|
body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
506
506
|
return [2, new __HttpRequest({
|
|
507
507
|
protocol: protocol,
|
|
@@ -525,7 +525,7 @@ export var serializeAws_restJson1ListFiltersCommand = function (input, context)
|
|
|
525
525
|
headers = {
|
|
526
526
|
"content-type": "application/json",
|
|
527
527
|
};
|
|
528
|
-
resolvedPath = ""
|
|
528
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/list";
|
|
529
529
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.arns !== undefined &&
|
|
530
530
|
input.arns !== null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
531
531
|
return [2, new __HttpRequest({
|
|
@@ -550,7 +550,7 @@ export var serializeAws_restJson1ListFindingAggregationsCommand = function (inpu
|
|
|
550
550
|
headers = {
|
|
551
551
|
"content-type": "application/json",
|
|
552
552
|
};
|
|
553
|
-
resolvedPath = ""
|
|
553
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/aggregation/list";
|
|
554
554
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
|
|
555
555
|
input.accountIds !== null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) })), (input.aggregationRequest !== undefined &&
|
|
556
556
|
input.aggregationRequest !== null && {
|
|
@@ -579,7 +579,7 @@ export var serializeAws_restJson1ListFindingsCommand = function (input, context)
|
|
|
579
579
|
headers = {
|
|
580
580
|
"content-type": "application/json",
|
|
581
581
|
};
|
|
582
|
-
resolvedPath = ""
|
|
582
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/list";
|
|
583
583
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
|
|
584
584
|
input.filterCriteria !== null && {
|
|
585
585
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
@@ -607,7 +607,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
607
607
|
headers = {
|
|
608
608
|
"content-type": "application/json",
|
|
609
609
|
};
|
|
610
|
-
resolvedPath = ""
|
|
610
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/list";
|
|
611
611
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.onlyAssociated !== undefined &&
|
|
612
612
|
input.onlyAssociated !== null && { onlyAssociated: input.onlyAssociated })));
|
|
613
613
|
return [2, new __HttpRequest({
|
|
@@ -630,7 +630,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
630
630
|
case 1:
|
|
631
631
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
632
632
|
headers = {};
|
|
633
|
-
resolvedPath = ""
|
|
633
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
634
634
|
if (input.resourceArn !== undefined) {
|
|
635
635
|
labelValue = input.resourceArn;
|
|
636
636
|
if (labelValue.length <= 0) {
|
|
@@ -663,7 +663,7 @@ export var serializeAws_restJson1ListUsageTotalsCommand = function (input, conte
|
|
|
663
663
|
headers = {
|
|
664
664
|
"content-type": "application/json",
|
|
665
665
|
};
|
|
666
|
-
resolvedPath = ""
|
|
666
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usage/list";
|
|
667
667
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
|
|
668
668
|
input.accountIds !== null && { accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
669
669
|
return [2, new __HttpRequest({
|
|
@@ -688,7 +688,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
688
688
|
headers = {
|
|
689
689
|
"content-type": "application/json",
|
|
690
690
|
};
|
|
691
|
-
resolvedPath = ""
|
|
691
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
692
692
|
if (input.resourceArn !== undefined) {
|
|
693
693
|
labelValue = input.resourceArn;
|
|
694
694
|
if (labelValue.length <= 0) {
|
|
@@ -720,7 +720,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
720
720
|
case 1:
|
|
721
721
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
722
722
|
headers = {};
|
|
723
|
-
resolvedPath = ""
|
|
723
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
724
724
|
if (input.resourceArn !== undefined) {
|
|
725
725
|
labelValue = input.resourceArn;
|
|
726
726
|
if (labelValue.length <= 0) {
|
|
@@ -755,7 +755,7 @@ export var serializeAws_restJson1UpdateFilterCommand = function (input, context)
|
|
|
755
755
|
headers = {
|
|
756
756
|
"content-type": "application/json",
|
|
757
757
|
};
|
|
758
|
-
resolvedPath = ""
|
|
758
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/update";
|
|
759
759
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn })), (input.filterCriteria !== undefined &&
|
|
760
760
|
input.filterCriteria !== null && {
|
|
761
761
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
@@ -782,7 +782,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
|
|
|
782
782
|
headers = {
|
|
783
783
|
"content-type": "application/json",
|
|
784
784
|
};
|
|
785
|
-
resolvedPath = ""
|
|
785
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organizationconfiguration/update";
|
|
786
786
|
body = JSON.stringify(__assign({}, (input.autoEnable !== undefined &&
|
|
787
787
|
input.autoEnable !== null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) })));
|
|
788
788
|
return [2, new __HttpRequest({
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: Inspector2ClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: Inspector2ClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.55.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,41 +18,41 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.55.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.55.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.55.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.55.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.55.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.55.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.55.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.55.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.55.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.55.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.55.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.55.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.55.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.55.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
|
+
"tslib": "^2.3.1",
|
|
52
52
|
"uuid": "^8.3.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.55.0",
|
|
56
56
|
"@tsconfig/recommended": "1.0.1",
|
|
57
57
|
"@types/node": "^12.7.5",
|
|
58
58
|
"@types/uuid": "^8.3.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"downlevel-dts": "0.7.0",
|
|
61
61
|
"rimraf": "3.0.2",
|
|
62
62
|
"typedoc": "0.19.2",
|
|
63
|
-
"typescript": "~4.
|
|
63
|
+
"typescript": "~4.6.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=12.0.0"
|