@aws-sdk/client-inspector2 3.128.0 → 3.137.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/Inspector2.js +30 -0
- package/dist-cjs/commands/AssociateMemberCommand.js +2 -2
- package/dist-cjs/commands/BatchGetAccountStatusCommand.js +2 -2
- package/dist-cjs/commands/BatchGetFreeTrialInfoCommand.js +2 -2
- package/dist-cjs/commands/CancelFindingsReportCommand.js +2 -2
- package/dist-cjs/commands/CreateFilterCommand.js +2 -2
- package/dist-cjs/commands/CreateFindingsReportCommand.js +2 -2
- package/dist-cjs/commands/DeleteFilterCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisableCommand.js +2 -2
- package/dist-cjs/commands/DisableDelegatedAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/DisassociateMemberCommand.js +2 -2
- package/dist-cjs/commands/EnableCommand.js +2 -2
- package/dist-cjs/commands/EnableDelegatedAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationCommand.js +36 -0
- package/dist-cjs/commands/GetDelegatedAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsReportStatusCommand.js +2 -2
- package/dist-cjs/commands/GetMemberCommand.js +2 -2
- package/dist-cjs/commands/ListAccountPermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListCoverageCommand.js +2 -2
- package/dist-cjs/commands/ListCoverageStatisticsCommand.js +2 -2
- package/dist-cjs/commands/ListDelegatedAdminAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListFiltersCommand.js +2 -2
- package/dist-cjs/commands/ListFindingAggregationsCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListMembersCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListUsageTotalsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateFilterCommand.js +2 -2
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +637 -854
- package/dist-cjs/protocols/Aws_restJson1.js +155 -2
- package/dist-es/Inspector2.js +30 -0
- package/dist-es/commands/AssociateMemberCommand.js +3 -3
- package/dist-es/commands/BatchGetAccountStatusCommand.js +3 -3
- package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +3 -3
- package/dist-es/commands/CancelFindingsReportCommand.js +3 -3
- package/dist-es/commands/CreateFilterCommand.js +3 -3
- package/dist-es/commands/CreateFindingsReportCommand.js +3 -3
- package/dist-es/commands/DeleteFilterCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DisableCommand.js +3 -3
- package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +3 -3
- package/dist-es/commands/DisassociateMemberCommand.js +3 -3
- package/dist-es/commands/EnableCommand.js +3 -3
- package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetConfigurationCommand.js +39 -0
- package/dist-es/commands/GetDelegatedAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetFindingsReportStatusCommand.js +3 -3
- package/dist-es/commands/GetMemberCommand.js +3 -3
- package/dist-es/commands/ListAccountPermissionsCommand.js +3 -3
- package/dist-es/commands/ListCoverageCommand.js +3 -3
- package/dist-es/commands/ListCoverageStatisticsCommand.js +3 -3
- package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +3 -3
- package/dist-es/commands/ListFiltersCommand.js +3 -3
- package/dist-es/commands/ListFindingAggregationsCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListMembersCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListUsageTotalsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateFilterCommand.js +3 -3
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +210 -584
- package/dist-es/protocols/Aws_restJson1.js +202 -4
- package/dist-types/Inspector2.d.ts +14 -0
- package/dist-types/Inspector2Client.d.ts +4 -2
- package/dist-types/commands/GetConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +636 -795
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Inspector2.d.ts +10 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationCommand.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 +331 -528
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateFilterCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListUsageTotalsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListFindingAggregationsCommand = exports.deserializeAws_restJson1ListFiltersCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListAccountPermissionsCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetFindingsReportStatusCommand = exports.deserializeAws_restJson1GetDelegatedAdminAccountCommand = exports.deserializeAws_restJson1GetConfigurationCommand = exports.deserializeAws_restJson1EnableDelegatedAdminAccountCommand = exports.deserializeAws_restJson1EnableCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisableDelegatedAdminAccountCommand = exports.deserializeAws_restJson1DisableCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DeleteFilterCommand = exports.deserializeAws_restJson1CreateFindingsReportCommand = exports.deserializeAws_restJson1CreateFilterCommand = exports.deserializeAws_restJson1CancelFindingsReportCommand = exports.deserializeAws_restJson1BatchGetFreeTrialInfoCommand = exports.deserializeAws_restJson1BatchGetAccountStatusCommand = exports.deserializeAws_restJson1AssociateMemberCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateFilterCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListUsageTotalsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListFindingAggregationsCommand = exports.serializeAws_restJson1ListFiltersCommand = exports.serializeAws_restJson1ListDelegatedAdminAccountsCommand = exports.serializeAws_restJson1ListCoverageStatisticsCommand = exports.serializeAws_restJson1ListCoverageCommand = exports.serializeAws_restJson1ListAccountPermissionsCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetFindingsReportStatusCommand = exports.serializeAws_restJson1GetDelegatedAdminAccountCommand = exports.serializeAws_restJson1GetConfigurationCommand = exports.serializeAws_restJson1EnableDelegatedAdminAccountCommand = exports.serializeAws_restJson1EnableCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisableDelegatedAdminAccountCommand = exports.serializeAws_restJson1DisableCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DeleteFilterCommand = exports.serializeAws_restJson1CreateFindingsReportCommand = exports.serializeAws_restJson1CreateFilterCommand = exports.serializeAws_restJson1CancelFindingsReportCommand = exports.serializeAws_restJson1BatchGetFreeTrialInfoCommand = exports.serializeAws_restJson1BatchGetAccountStatusCommand = exports.serializeAws_restJson1AssociateMemberCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateFilterCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListUsageTotalsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListFindingAggregationsCommand = exports.deserializeAws_restJson1ListFiltersCommand = exports.deserializeAws_restJson1ListDelegatedAdminAccountsCommand = exports.deserializeAws_restJson1ListCoverageStatisticsCommand = exports.deserializeAws_restJson1ListCoverageCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -107,6 +107,7 @@ const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
|
|
|
107
107
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
108
108
|
}),
|
|
109
109
|
...(input.name != null && { name: input.name }),
|
|
110
|
+
...(input.reason != null && { reason: input.reason }),
|
|
110
111
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
111
112
|
});
|
|
112
113
|
return new protocol_http_1.HttpRequest({
|
|
@@ -302,6 +303,25 @@ const serializeAws_restJson1EnableDelegatedAdminAccountCommand = async (input, c
|
|
|
302
303
|
});
|
|
303
304
|
};
|
|
304
305
|
exports.serializeAws_restJson1EnableDelegatedAdminAccountCommand = serializeAws_restJson1EnableDelegatedAdminAccountCommand;
|
|
306
|
+
const serializeAws_restJson1GetConfigurationCommand = async (input, context) => {
|
|
307
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
|
+
const headers = {
|
|
309
|
+
"content-type": "application/json",
|
|
310
|
+
};
|
|
311
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/get";
|
|
312
|
+
let body;
|
|
313
|
+
body = "";
|
|
314
|
+
return new protocol_http_1.HttpRequest({
|
|
315
|
+
protocol,
|
|
316
|
+
hostname,
|
|
317
|
+
port,
|
|
318
|
+
method: "POST",
|
|
319
|
+
headers,
|
|
320
|
+
path: resolvedPath,
|
|
321
|
+
body,
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
exports.serializeAws_restJson1GetConfigurationCommand = serializeAws_restJson1GetConfigurationCommand;
|
|
305
325
|
const serializeAws_restJson1GetDelegatedAdminAccountCommand = async (input, context) => {
|
|
306
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
307
327
|
const headers = {
|
|
@@ -672,6 +692,29 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
672
692
|
});
|
|
673
693
|
};
|
|
674
694
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
695
|
+
const serializeAws_restJson1UpdateConfigurationCommand = async (input, context) => {
|
|
696
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
697
|
+
const headers = {
|
|
698
|
+
"content-type": "application/json",
|
|
699
|
+
};
|
|
700
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/update";
|
|
701
|
+
let body;
|
|
702
|
+
body = JSON.stringify({
|
|
703
|
+
...(input.ecrConfiguration != null && {
|
|
704
|
+
ecrConfiguration: serializeAws_restJson1EcrConfiguration(input.ecrConfiguration, context),
|
|
705
|
+
}),
|
|
706
|
+
});
|
|
707
|
+
return new protocol_http_1.HttpRequest({
|
|
708
|
+
protocol,
|
|
709
|
+
hostname,
|
|
710
|
+
port,
|
|
711
|
+
method: "POST",
|
|
712
|
+
headers,
|
|
713
|
+
path: resolvedPath,
|
|
714
|
+
body,
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
exports.serializeAws_restJson1UpdateConfigurationCommand = serializeAws_restJson1UpdateConfigurationCommand;
|
|
675
718
|
const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
|
|
676
719
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
677
720
|
const headers = {
|
|
@@ -687,6 +730,7 @@ const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
|
|
|
687
730
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
688
731
|
}),
|
|
689
732
|
...(input.name != null && { name: input.name }),
|
|
733
|
+
...(input.reason != null && { reason: input.reason }),
|
|
690
734
|
});
|
|
691
735
|
return new protocol_http_1.HttpRequest({
|
|
692
736
|
protocol,
|
|
@@ -1387,6 +1431,50 @@ const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (o
|
|
|
1387
1431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1388
1432
|
}
|
|
1389
1433
|
};
|
|
1434
|
+
const deserializeAws_restJson1GetConfigurationCommand = async (output, context) => {
|
|
1435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
+
return deserializeAws_restJson1GetConfigurationCommandError(output, context);
|
|
1437
|
+
}
|
|
1438
|
+
const contents = {
|
|
1439
|
+
$metadata: deserializeMetadata(output),
|
|
1440
|
+
ecrConfiguration: undefined,
|
|
1441
|
+
};
|
|
1442
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1443
|
+
if (data.ecrConfiguration !== undefined && data.ecrConfiguration !== null) {
|
|
1444
|
+
contents.ecrConfiguration = deserializeAws_restJson1EcrConfigurationState(data.ecrConfiguration, context);
|
|
1445
|
+
}
|
|
1446
|
+
return Promise.resolve(contents);
|
|
1447
|
+
};
|
|
1448
|
+
exports.deserializeAws_restJson1GetConfigurationCommand = deserializeAws_restJson1GetConfigurationCommand;
|
|
1449
|
+
const deserializeAws_restJson1GetConfigurationCommandError = async (output, context) => {
|
|
1450
|
+
const parsedOutput = {
|
|
1451
|
+
...output,
|
|
1452
|
+
body: await parseBody(output.body, context),
|
|
1453
|
+
};
|
|
1454
|
+
let response;
|
|
1455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
+
switch (errorCode) {
|
|
1457
|
+
case "InternalServerException":
|
|
1458
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1459
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1460
|
+
case "ResourceNotFoundException":
|
|
1461
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1462
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1463
|
+
case "ThrottlingException":
|
|
1464
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1465
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1466
|
+
default:
|
|
1467
|
+
const parsedBody = parsedOutput.body;
|
|
1468
|
+
const $metadata = deserializeMetadata(output);
|
|
1469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1470
|
+
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1472
|
+
$fault: "client",
|
|
1473
|
+
$metadata,
|
|
1474
|
+
});
|
|
1475
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1476
|
+
}
|
|
1477
|
+
};
|
|
1390
1478
|
const deserializeAws_restJson1GetDelegatedAdminAccountCommand = async (output, context) => {
|
|
1391
1479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1392
1480
|
return deserializeAws_restJson1GetDelegatedAdminAccountCommandError(output, context);
|
|
@@ -2148,6 +2236,49 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2148
2236
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2149
2237
|
}
|
|
2150
2238
|
};
|
|
2239
|
+
const deserializeAws_restJson1UpdateConfigurationCommand = async (output, context) => {
|
|
2240
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
+
return deserializeAws_restJson1UpdateConfigurationCommandError(output, context);
|
|
2242
|
+
}
|
|
2243
|
+
const contents = {
|
|
2244
|
+
$metadata: deserializeMetadata(output),
|
|
2245
|
+
};
|
|
2246
|
+
await collectBody(output.body, context);
|
|
2247
|
+
return Promise.resolve(contents);
|
|
2248
|
+
};
|
|
2249
|
+
exports.deserializeAws_restJson1UpdateConfigurationCommand = deserializeAws_restJson1UpdateConfigurationCommand;
|
|
2250
|
+
const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, context) => {
|
|
2251
|
+
const parsedOutput = {
|
|
2252
|
+
...output,
|
|
2253
|
+
body: await parseBody(output.body, context),
|
|
2254
|
+
};
|
|
2255
|
+
let response;
|
|
2256
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
+
switch (errorCode) {
|
|
2258
|
+
case "AccessDeniedException":
|
|
2259
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2260
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2261
|
+
case "InternalServerException":
|
|
2262
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2263
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2264
|
+
case "ThrottlingException":
|
|
2265
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2266
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2267
|
+
case "ValidationException":
|
|
2268
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2269
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2270
|
+
default:
|
|
2271
|
+
const parsedBody = parsedOutput.body;
|
|
2272
|
+
const $metadata = deserializeMetadata(output);
|
|
2273
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2274
|
+
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2276
|
+
$fault: "client",
|
|
2277
|
+
$metadata,
|
|
2278
|
+
});
|
|
2279
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2151
2282
|
const deserializeAws_restJson1UpdateFilterCommand = async (output, context) => {
|
|
2152
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2153
2284
|
return deserializeAws_restJson1UpdateFilterCommandError(output, context);
|
|
@@ -2544,6 +2675,11 @@ const serializeAws_restJson1Ec2InstanceAggregation = (input, context) => {
|
|
|
2544
2675
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2545
2676
|
};
|
|
2546
2677
|
};
|
|
2678
|
+
const serializeAws_restJson1EcrConfiguration = (input, context) => {
|
|
2679
|
+
return {
|
|
2680
|
+
...(input.rescanDuration != null && { rescanDuration: input.rescanDuration }),
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2547
2683
|
const serializeAws_restJson1EnableResourceTypeList = (input, context) => {
|
|
2548
2684
|
return input
|
|
2549
2685
|
.filter((e) => e != null)
|
|
@@ -3146,6 +3282,13 @@ const deserializeAws_restJson1Ec2Metadata = (output, context) => {
|
|
|
3146
3282
|
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3147
3283
|
};
|
|
3148
3284
|
};
|
|
3285
|
+
const deserializeAws_restJson1EcrConfigurationState = (output, context) => {
|
|
3286
|
+
return {
|
|
3287
|
+
rescanDurationState: output.rescanDurationState != null
|
|
3288
|
+
? deserializeAws_restJson1EcrRescanDurationState(output.rescanDurationState, context)
|
|
3289
|
+
: undefined,
|
|
3290
|
+
};
|
|
3291
|
+
};
|
|
3149
3292
|
const deserializeAws_restJson1EcrContainerImageMetadata = (output, context) => {
|
|
3150
3293
|
return {
|
|
3151
3294
|
tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
|
|
@@ -3157,6 +3300,13 @@ const deserializeAws_restJson1EcrRepositoryMetadata = (output, context) => {
|
|
|
3157
3300
|
scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
|
|
3158
3301
|
};
|
|
3159
3302
|
};
|
|
3303
|
+
const deserializeAws_restJson1EcrRescanDurationState = (output, context) => {
|
|
3304
|
+
return {
|
|
3305
|
+
rescanDuration: (0, smithy_client_1.expectString)(output.rescanDuration),
|
|
3306
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3307
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3308
|
+
};
|
|
3309
|
+
};
|
|
3160
3310
|
const deserializeAws_restJson1FailedAccount = (output, context) => {
|
|
3161
3311
|
return {
|
|
3162
3312
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
@@ -3894,6 +4044,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3894
4044
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3895
4045
|
const sanitizeErrorCode = (rawValue) => {
|
|
3896
4046
|
let cleanValue = rawValue;
|
|
4047
|
+
if (typeof cleanValue === "number") {
|
|
4048
|
+
cleanValue = cleanValue.toString();
|
|
4049
|
+
}
|
|
3897
4050
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3898
4051
|
cleanValue = cleanValue.split(":")[0];
|
|
3899
4052
|
}
|
package/dist-es/Inspector2.js
CHANGED
|
@@ -12,6 +12,7 @@ import { DisableDelegatedAdminAccountCommand, } from "./commands/DisableDelegate
|
|
|
12
12
|
import { DisassociateMemberCommand, } from "./commands/DisassociateMemberCommand";
|
|
13
13
|
import { EnableCommand } from "./commands/EnableCommand";
|
|
14
14
|
import { EnableDelegatedAdminAccountCommand, } from "./commands/EnableDelegatedAdminAccountCommand";
|
|
15
|
+
import { GetConfigurationCommand, } from "./commands/GetConfigurationCommand";
|
|
15
16
|
import { GetDelegatedAdminAccountCommand, } from "./commands/GetDelegatedAdminAccountCommand";
|
|
16
17
|
import { GetFindingsReportStatusCommand, } from "./commands/GetFindingsReportStatusCommand";
|
|
17
18
|
import { GetMemberCommand } from "./commands/GetMemberCommand";
|
|
@@ -27,6 +28,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
27
28
|
import { ListUsageTotalsCommand, } from "./commands/ListUsageTotalsCommand";
|
|
28
29
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
29
30
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
31
|
+
import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
|
|
30
32
|
import { UpdateFilterCommand, } from "./commands/UpdateFilterCommand";
|
|
31
33
|
import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
32
34
|
import { Inspector2Client } from "./Inspector2Client";
|
|
@@ -217,6 +219,20 @@ var Inspector2 = (function (_super) {
|
|
|
217
219
|
return this.send(command, optionsOrCb);
|
|
218
220
|
}
|
|
219
221
|
};
|
|
222
|
+
Inspector2.prototype.getConfiguration = function (args, optionsOrCb, cb) {
|
|
223
|
+
var command = new GetConfigurationCommand(args);
|
|
224
|
+
if (typeof optionsOrCb === "function") {
|
|
225
|
+
this.send(command, optionsOrCb);
|
|
226
|
+
}
|
|
227
|
+
else if (typeof cb === "function") {
|
|
228
|
+
if (typeof optionsOrCb !== "object")
|
|
229
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
230
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
return this.send(command, optionsOrCb);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
220
236
|
Inspector2.prototype.getDelegatedAdminAccount = function (args, optionsOrCb, cb) {
|
|
221
237
|
var command = new GetDelegatedAdminAccountCommand(args);
|
|
222
238
|
if (typeof optionsOrCb === "function") {
|
|
@@ -427,6 +443,20 @@ var Inspector2 = (function (_super) {
|
|
|
427
443
|
return this.send(command, optionsOrCb);
|
|
428
444
|
}
|
|
429
445
|
};
|
|
446
|
+
Inspector2.prototype.updateConfiguration = function (args, optionsOrCb, cb) {
|
|
447
|
+
var command = new UpdateConfigurationCommand(args);
|
|
448
|
+
if (typeof optionsOrCb === "function") {
|
|
449
|
+
this.send(command, optionsOrCb);
|
|
450
|
+
}
|
|
451
|
+
else if (typeof cb === "function") {
|
|
452
|
+
if (typeof optionsOrCb !== "object")
|
|
453
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
454
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
return this.send(command, optionsOrCb);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
430
460
|
Inspector2.prototype.updateFilter = function (args, optionsOrCb, cb) {
|
|
431
461
|
var command = new UpdateFilterCommand(args);
|
|
432
462
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssociateMemberRequestFilterSensitiveLog, AssociateMemberResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1AssociateMemberCommand, serializeAws_restJson1AssociateMemberCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var AssociateMemberCommand = (function (_super) {
|
|
7
7
|
__extends(AssociateMemberCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssociateMemberCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssociateMemberRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociateMemberResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { BatchGetAccountStatusRequestFilterSensitiveLog, BatchGetAccountStatusResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1BatchGetAccountStatusCommand, serializeAws_restJson1BatchGetAccountStatusCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var BatchGetAccountStatusCommand = (function (_super) {
|
|
7
7
|
__extends(BatchGetAccountStatusCommand, _super);
|
|
@@ -20,8 +20,8 @@ var BatchGetAccountStatusCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: BatchGetAccountStatusRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchGetAccountStatusResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { BatchGetFreeTrialInfoRequestFilterSensitiveLog, BatchGetFreeTrialInfoResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1BatchGetFreeTrialInfoCommand, serializeAws_restJson1BatchGetFreeTrialInfoCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var BatchGetFreeTrialInfoCommand = (function (_super) {
|
|
7
7
|
__extends(BatchGetFreeTrialInfoCommand, _super);
|
|
@@ -20,8 +20,8 @@ var BatchGetFreeTrialInfoCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: BatchGetFreeTrialInfoRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchGetFreeTrialInfoResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CancelFindingsReportRequestFilterSensitiveLog, CancelFindingsReportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1CancelFindingsReportCommand, serializeAws_restJson1CancelFindingsReportCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var CancelFindingsReportCommand = (function (_super) {
|
|
7
7
|
__extends(CancelFindingsReportCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CancelFindingsReportCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CancelFindingsReportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CancelFindingsReportResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateFilterRequestFilterSensitiveLog, CreateFilterResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1CreateFilterCommand, serializeAws_restJson1CreateFilterCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var CreateFilterCommand = (function (_super) {
|
|
7
7
|
__extends(CreateFilterCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CreateFilterCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CreateFilterRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateFilterResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateFindingsReportRequestFilterSensitiveLog, CreateFindingsReportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1CreateFindingsReportCommand, serializeAws_restJson1CreateFindingsReportCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var CreateFindingsReportCommand = (function (_super) {
|
|
7
7
|
__extends(CreateFindingsReportCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CreateFindingsReportCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CreateFindingsReportRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateFindingsReportResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteFilterRequestFilterSensitiveLog, DeleteFilterResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteFilterCommand, serializeAws_restJson1DeleteFilterCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteFilterCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteFilterCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteFilterCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteFilterRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteFilterResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DescribeOrganizationConfigurationRequestFilterSensitiveLog, DescribeOrganizationConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DescribeOrganizationConfigurationCommand, serializeAws_restJson1DescribeOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DescribeOrganizationConfigurationCommand = (function (_super) {
|
|
7
7
|
__extends(DescribeOrganizationConfigurationCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DescribeOrganizationConfigurationCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DescribeOrganizationConfigurationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeOrganizationConfigurationResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DisableRequestFilterSensitiveLog, DisableResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DisableCommand, serializeAws_restJson1DisableCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DisableCommand = (function (_super) {
|
|
7
7
|
__extends(DisableCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DisableCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DisableRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisableResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DisableDelegatedAdminAccountRequestFilterSensitiveLog, DisableDelegatedAdminAccountResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DisableDelegatedAdminAccountCommand, serializeAws_restJson1DisableDelegatedAdminAccountCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DisableDelegatedAdminAccountCommand = (function (_super) {
|
|
7
7
|
__extends(DisableDelegatedAdminAccountCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DisableDelegatedAdminAccountCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DisableDelegatedAdminAccountRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisableDelegatedAdminAccountResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DisassociateMemberRequestFilterSensitiveLog, DisassociateMemberResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DisassociateMemberCommand, serializeAws_restJson1DisassociateMemberCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DisassociateMemberCommand = (function (_super) {
|
|
7
7
|
__extends(DisassociateMemberCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DisassociateMemberCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DisassociateMemberRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisassociateMemberResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { EnableRequestFilterSensitiveLog, EnableResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1EnableCommand, serializeAws_restJson1EnableCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
var EnableCommand = (function (_super) {
|
|
7
7
|
__extends(EnableCommand, _super);
|
|
@@ -20,8 +20,8 @@ var EnableCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: EnableRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: EnableResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { EnableDelegatedAdminAccountRequestFilterSensitiveLog, EnableDelegatedAdminAccountResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1EnableDelegatedAdminAccountCommand, serializeAws_restJson1EnableDelegatedAdminAccountCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var EnableDelegatedAdminAccountCommand = (function (_super) {
|
|
7
7
|
__extends(EnableDelegatedAdminAccountCommand, _super);
|
|
@@ -20,8 +20,8 @@ var EnableDelegatedAdminAccountCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: EnableDelegatedAdminAccountRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: EnableDelegatedAdminAccountResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetConfigurationRequestFilterSensitiveLog, GetConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetConfigurationCommand, serializeAws_restJson1GetConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(GetConfigurationCommand, _super);
|
|
8
|
+
function GetConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "Inspector2Client";
|
|
18
|
+
var commandName = "GetConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetConfigurationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetConfigurationResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetConfigurationCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { GetDelegatedAdminAccountRequestFilterSensitiveLog, GetDelegatedAdminAccountResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetDelegatedAdminAccountCommand, serializeAws_restJson1GetDelegatedAdminAccountCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var GetDelegatedAdminAccountCommand = (function (_super) {
|
|
7
7
|
__extends(GetDelegatedAdminAccountCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetDelegatedAdminAccountCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetDelegatedAdminAccountRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetDelegatedAdminAccountResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|