@aws-sdk/client-inspector2 3.216.0 → 3.219.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +111 -5
- package/dist-cjs/protocols/Aws_restJson1.js +244 -2
- package/dist-es/models/models_0.js +98 -0
- package/dist-es/protocols/Aws_restJson1.js +244 -2
- package/dist-types/Inspector2.d.ts +1 -1
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +497 -16
- package/dist-types/ts3.4/models/models_0.d.ts +253 -0
- package/package.json +3 -3
|
@@ -616,7 +616,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
616
616
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
617
617
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
618
618
|
const query = map({
|
|
619
|
-
tagKeys: [
|
|
619
|
+
tagKeys: [
|
|
620
|
+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
621
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
622
|
+
],
|
|
620
623
|
});
|
|
621
624
|
let body;
|
|
622
625
|
return new __HttpRequest({
|
|
@@ -2221,7 +2224,12 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2221
2224
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2222
2225
|
};
|
|
2223
2226
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2224
|
-
const contents = map({
|
|
2227
|
+
const contents = map({
|
|
2228
|
+
retryAfterSeconds: [
|
|
2229
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2230
|
+
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
2231
|
+
],
|
|
2232
|
+
});
|
|
2225
2233
|
const data = parsedOutput.body;
|
|
2226
2234
|
if (data.message != null) {
|
|
2227
2235
|
contents.message = __expectString(data.message);
|
|
@@ -2281,6 +2289,12 @@ const serializeAws_restJson1AggregationRequest = (input, context) => {
|
|
|
2281
2289
|
imageLayerAggregation: (value) => ({
|
|
2282
2290
|
imageLayerAggregation: serializeAws_restJson1ImageLayerAggregation(value, context),
|
|
2283
2291
|
}),
|
|
2292
|
+
lambdaFunctionAggregation: (value) => ({
|
|
2293
|
+
lambdaFunctionAggregation: serializeAws_restJson1LambdaFunctionAggregation(value, context),
|
|
2294
|
+
}),
|
|
2295
|
+
lambdaLayerAggregation: (value) => ({
|
|
2296
|
+
lambdaLayerAggregation: serializeAws_restJson1LambdaLayerAggregation(value, context),
|
|
2297
|
+
}),
|
|
2284
2298
|
packageAggregation: (value) => ({ packageAggregation: serializeAws_restJson1PackageAggregation(value, context) }),
|
|
2285
2299
|
repositoryAggregation: (value) => ({
|
|
2286
2300
|
repositoryAggregation: serializeAws_restJson1RepositoryAggregation(value, context),
|
|
@@ -2300,6 +2314,7 @@ const serializeAws_restJson1AutoEnable = (input, context) => {
|
|
|
2300
2314
|
return {
|
|
2301
2315
|
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2302
2316
|
...(input.ecr != null && { ecr: input.ecr }),
|
|
2317
|
+
...(input.lambda != null && { lambda: input.lambda }),
|
|
2303
2318
|
};
|
|
2304
2319
|
};
|
|
2305
2320
|
const serializeAws_restJson1AwsEcrContainerAggregation = (input, context) => {
|
|
@@ -2333,6 +2348,15 @@ const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
|
|
|
2333
2348
|
...(input.ecrRepositoryName != null && {
|
|
2334
2349
|
ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2335
2350
|
}),
|
|
2351
|
+
...(input.lambdaFunctionName != null && {
|
|
2352
|
+
lambdaFunctionName: serializeAws_restJson1CoverageStringFilterList(input.lambdaFunctionName, context),
|
|
2353
|
+
}),
|
|
2354
|
+
...(input.lambdaFunctionRuntime != null && {
|
|
2355
|
+
lambdaFunctionRuntime: serializeAws_restJson1CoverageStringFilterList(input.lambdaFunctionRuntime, context),
|
|
2356
|
+
}),
|
|
2357
|
+
...(input.lambdaFunctionTags != null && {
|
|
2358
|
+
lambdaFunctionTags: serializeAws_restJson1CoverageMapFilterList(input.lambdaFunctionTags, context),
|
|
2359
|
+
}),
|
|
2336
2360
|
...(input.resourceId != null && {
|
|
2337
2361
|
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
2338
2362
|
}),
|
|
@@ -2477,6 +2501,9 @@ const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
|
2477
2501
|
...(input.ecrImageTags != null && {
|
|
2478
2502
|
ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
|
|
2479
2503
|
}),
|
|
2504
|
+
...(input.exploitAvailable != null && {
|
|
2505
|
+
exploitAvailable: serializeAws_restJson1StringFilterList(input.exploitAvailable, context),
|
|
2506
|
+
}),
|
|
2480
2507
|
...(input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) }),
|
|
2481
2508
|
...(input.findingStatus != null && {
|
|
2482
2509
|
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
@@ -2493,6 +2520,21 @@ const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
|
2493
2520
|
...(input.inspectorScore != null && {
|
|
2494
2521
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
2495
2522
|
}),
|
|
2523
|
+
...(input.lambdaFunctionExecutionRoleArn != null && {
|
|
2524
|
+
lambdaFunctionExecutionRoleArn: serializeAws_restJson1StringFilterList(input.lambdaFunctionExecutionRoleArn, context),
|
|
2525
|
+
}),
|
|
2526
|
+
...(input.lambdaFunctionLastModifiedAt != null && {
|
|
2527
|
+
lambdaFunctionLastModifiedAt: serializeAws_restJson1DateFilterList(input.lambdaFunctionLastModifiedAt, context),
|
|
2528
|
+
}),
|
|
2529
|
+
...(input.lambdaFunctionLayers != null && {
|
|
2530
|
+
lambdaFunctionLayers: serializeAws_restJson1StringFilterList(input.lambdaFunctionLayers, context),
|
|
2531
|
+
}),
|
|
2532
|
+
...(input.lambdaFunctionName != null && {
|
|
2533
|
+
lambdaFunctionName: serializeAws_restJson1StringFilterList(input.lambdaFunctionName, context),
|
|
2534
|
+
}),
|
|
2535
|
+
...(input.lambdaFunctionRuntime != null && {
|
|
2536
|
+
lambdaFunctionRuntime: serializeAws_restJson1StringFilterList(input.lambdaFunctionRuntime, context),
|
|
2537
|
+
}),
|
|
2496
2538
|
...(input.lastObservedAt != null && {
|
|
2497
2539
|
lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
|
|
2498
2540
|
}),
|
|
@@ -2550,6 +2592,35 @@ const serializeAws_restJson1ImageLayerAggregation = (input, context) => {
|
|
|
2550
2592
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2551
2593
|
};
|
|
2552
2594
|
};
|
|
2595
|
+
const serializeAws_restJson1LambdaFunctionAggregation = (input, context) => {
|
|
2596
|
+
return {
|
|
2597
|
+
...(input.functionNames != null && {
|
|
2598
|
+
functionNames: serializeAws_restJson1StringFilterList(input.functionNames, context),
|
|
2599
|
+
}),
|
|
2600
|
+
...(input.functionTags != null && {
|
|
2601
|
+
functionTags: serializeAws_restJson1MapFilterList(input.functionTags, context),
|
|
2602
|
+
}),
|
|
2603
|
+
...(input.resourceIds != null && {
|
|
2604
|
+
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2605
|
+
}),
|
|
2606
|
+
...(input.runtimes != null && { runtimes: serializeAws_restJson1StringFilterList(input.runtimes, context) }),
|
|
2607
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2608
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2609
|
+
};
|
|
2610
|
+
};
|
|
2611
|
+
const serializeAws_restJson1LambdaLayerAggregation = (input, context) => {
|
|
2612
|
+
return {
|
|
2613
|
+
...(input.functionNames != null && {
|
|
2614
|
+
functionNames: serializeAws_restJson1StringFilterList(input.functionNames, context),
|
|
2615
|
+
}),
|
|
2616
|
+
...(input.layerArns != null && { layerArns: serializeAws_restJson1StringFilterList(input.layerArns, context) }),
|
|
2617
|
+
...(input.resourceIds != null && {
|
|
2618
|
+
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2619
|
+
}),
|
|
2620
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2621
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2622
|
+
};
|
|
2623
|
+
};
|
|
2553
2624
|
const serializeAws_restJson1MapFilter = (input, context) => {
|
|
2554
2625
|
return {
|
|
2555
2626
|
...(input.comparison != null && { comparison: input.comparison }),
|
|
@@ -2601,6 +2672,9 @@ const serializeAws_restJson1PackageFilter = (input, context) => {
|
|
|
2601
2672
|
...(input.epoch != null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) }),
|
|
2602
2673
|
...(input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
|
|
2603
2674
|
...(input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2675
|
+
...(input.sourceLambdaLayerArn != null && {
|
|
2676
|
+
sourceLambdaLayerArn: serializeAws_restJson1StringFilter(input.sourceLambdaLayerArn, context),
|
|
2677
|
+
}),
|
|
2604
2678
|
...(input.sourceLayerHash != null && {
|
|
2605
2679
|
sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
|
|
2606
2680
|
}),
|
|
@@ -2759,6 +2833,16 @@ const deserializeAws_restJson1AggregationResponse = (output, context) => {
|
|
|
2759
2833
|
imageLayerAggregation: deserializeAws_restJson1ImageLayerAggregationResponse(output.imageLayerAggregation, context),
|
|
2760
2834
|
};
|
|
2761
2835
|
}
|
|
2836
|
+
if (output.lambdaFunctionAggregation != null) {
|
|
2837
|
+
return {
|
|
2838
|
+
lambdaFunctionAggregation: deserializeAws_restJson1LambdaFunctionAggregationResponse(output.lambdaFunctionAggregation, context),
|
|
2839
|
+
};
|
|
2840
|
+
}
|
|
2841
|
+
if (output.lambdaLayerAggregation != null) {
|
|
2842
|
+
return {
|
|
2843
|
+
lambdaLayerAggregation: deserializeAws_restJson1LambdaLayerAggregationResponse(output.lambdaLayerAggregation, context),
|
|
2844
|
+
};
|
|
2845
|
+
}
|
|
2762
2846
|
if (output.packageAggregation != null) {
|
|
2763
2847
|
return {
|
|
2764
2848
|
packageAggregation: deserializeAws_restJson1PackageAggregationResponse(output.packageAggregation, context),
|
|
@@ -2797,10 +2881,22 @@ const deserializeAws_restJson1AmiAggregationResponse = (output, context) => {
|
|
|
2797
2881
|
: undefined,
|
|
2798
2882
|
};
|
|
2799
2883
|
};
|
|
2884
|
+
const deserializeAws_restJson1ArchitectureList = (output, context) => {
|
|
2885
|
+
const retVal = (output || [])
|
|
2886
|
+
.filter((e) => e != null)
|
|
2887
|
+
.map((entry) => {
|
|
2888
|
+
if (entry === null) {
|
|
2889
|
+
return null;
|
|
2890
|
+
}
|
|
2891
|
+
return __expectString(entry);
|
|
2892
|
+
});
|
|
2893
|
+
return retVal;
|
|
2894
|
+
};
|
|
2800
2895
|
const deserializeAws_restJson1AutoEnable = (output, context) => {
|
|
2801
2896
|
return {
|
|
2802
2897
|
ec2: __expectBoolean(output.ec2),
|
|
2803
2898
|
ecr: __expectBoolean(output.ecr),
|
|
2899
|
+
lambda: __expectBoolean(output.lambda),
|
|
2804
2900
|
};
|
|
2805
2901
|
};
|
|
2806
2902
|
const deserializeAws_restJson1AwsEc2InstanceDetails = (output, context) => {
|
|
@@ -2842,6 +2938,24 @@ const deserializeAws_restJson1AwsEcrContainerImageDetails = (output, context) =>
|
|
|
2842
2938
|
repositoryName: __expectString(output.repositoryName),
|
|
2843
2939
|
};
|
|
2844
2940
|
};
|
|
2941
|
+
const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
|
|
2942
|
+
return {
|
|
2943
|
+
architectures: output.architectures != null
|
|
2944
|
+
? deserializeAws_restJson1ArchitectureList(output.architectures, context)
|
|
2945
|
+
: undefined,
|
|
2946
|
+
codeSha256: __expectString(output.codeSha256),
|
|
2947
|
+
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2948
|
+
functionName: __expectString(output.functionName),
|
|
2949
|
+
lastModifiedAt: output.lastModifiedAt != null
|
|
2950
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedAt)))
|
|
2951
|
+
: undefined,
|
|
2952
|
+
layers: output.layers != null ? deserializeAws_restJson1LayerList(output.layers, context) : undefined,
|
|
2953
|
+
packageType: __expectString(output.packageType),
|
|
2954
|
+
runtime: __expectString(output.runtime),
|
|
2955
|
+
version: __expectString(output.version),
|
|
2956
|
+
vpcConfig: output.vpcConfig != null ? deserializeAws_restJson1LambdaVpcConfig(output.vpcConfig, context) : undefined,
|
|
2957
|
+
};
|
|
2958
|
+
};
|
|
2845
2959
|
const deserializeAws_restJson1Counts = (output, context) => {
|
|
2846
2960
|
return {
|
|
2847
2961
|
count: __expectLong(output.count),
|
|
@@ -3026,6 +3140,13 @@ const deserializeAws_restJson1EcrRescanDurationState = (output, context) => {
|
|
|
3026
3140
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3027
3141
|
};
|
|
3028
3142
|
};
|
|
3143
|
+
const deserializeAws_restJson1ExploitabilityDetails = (output, context) => {
|
|
3144
|
+
return {
|
|
3145
|
+
lastKnownExploitAt: output.lastKnownExploitAt != null
|
|
3146
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastKnownExploitAt)))
|
|
3147
|
+
: undefined,
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3029
3150
|
const deserializeAws_restJson1FailedAccount = (output, context) => {
|
|
3030
3151
|
return {
|
|
3031
3152
|
accountId: __expectString(output.accountId),
|
|
@@ -3092,6 +3213,9 @@ const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
|
3092
3213
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3093
3214
|
: undefined,
|
|
3094
3215
|
ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3216
|
+
exploitAvailable: output.exploitAvailable != null
|
|
3217
|
+
? deserializeAws_restJson1StringFilterList(output.exploitAvailable, context)
|
|
3218
|
+
: undefined,
|
|
3095
3219
|
findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
|
|
3096
3220
|
findingStatus: output.findingStatus != null
|
|
3097
3221
|
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
@@ -3104,6 +3228,21 @@ const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
|
3104
3228
|
inspectorScore: output.inspectorScore != null
|
|
3105
3229
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3106
3230
|
: undefined,
|
|
3231
|
+
lambdaFunctionExecutionRoleArn: output.lambdaFunctionExecutionRoleArn != null
|
|
3232
|
+
? deserializeAws_restJson1StringFilterList(output.lambdaFunctionExecutionRoleArn, context)
|
|
3233
|
+
: undefined,
|
|
3234
|
+
lambdaFunctionLastModifiedAt: output.lambdaFunctionLastModifiedAt != null
|
|
3235
|
+
? deserializeAws_restJson1DateFilterList(output.lambdaFunctionLastModifiedAt, context)
|
|
3236
|
+
: undefined,
|
|
3237
|
+
lambdaFunctionLayers: output.lambdaFunctionLayers != null
|
|
3238
|
+
? deserializeAws_restJson1StringFilterList(output.lambdaFunctionLayers, context)
|
|
3239
|
+
: undefined,
|
|
3240
|
+
lambdaFunctionName: output.lambdaFunctionName != null
|
|
3241
|
+
? deserializeAws_restJson1StringFilterList(output.lambdaFunctionName, context)
|
|
3242
|
+
: undefined,
|
|
3243
|
+
lambdaFunctionRuntime: output.lambdaFunctionRuntime != null
|
|
3244
|
+
? deserializeAws_restJson1StringFilterList(output.lambdaFunctionRuntime, context)
|
|
3245
|
+
: undefined,
|
|
3107
3246
|
lastObservedAt: output.lastObservedAt != null
|
|
3108
3247
|
? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
|
|
3109
3248
|
: undefined,
|
|
@@ -3149,6 +3288,10 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3149
3288
|
return {
|
|
3150
3289
|
awsAccountId: __expectString(output.awsAccountId),
|
|
3151
3290
|
description: __expectString(output.description),
|
|
3291
|
+
exploitAvailable: __expectString(output.exploitAvailable),
|
|
3292
|
+
exploitabilityDetails: output.exploitabilityDetails != null
|
|
3293
|
+
? deserializeAws_restJson1ExploitabilityDetails(output.exploitabilityDetails, context)
|
|
3294
|
+
: undefined,
|
|
3152
3295
|
findingArn: __expectString(output.findingArn),
|
|
3153
3296
|
firstObservedAt: output.firstObservedAt != null
|
|
3154
3297
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
|
|
@@ -3300,6 +3443,71 @@ const deserializeAws_restJson1IpV6AddressList = (output, context) => {
|
|
|
3300
3443
|
});
|
|
3301
3444
|
return retVal;
|
|
3302
3445
|
};
|
|
3446
|
+
const deserializeAws_restJson1LambdaFunctionAggregationResponse = (output, context) => {
|
|
3447
|
+
return {
|
|
3448
|
+
accountId: __expectString(output.accountId),
|
|
3449
|
+
functionName: __expectString(output.functionName),
|
|
3450
|
+
lambdaTags: output.lambdaTags != null ? deserializeAws_restJson1TagMap(output.lambdaTags, context) : undefined,
|
|
3451
|
+
lastModifiedAt: output.lastModifiedAt != null
|
|
3452
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedAt)))
|
|
3453
|
+
: undefined,
|
|
3454
|
+
resourceId: __expectString(output.resourceId),
|
|
3455
|
+
runtime: __expectString(output.runtime),
|
|
3456
|
+
severityCounts: output.severityCounts != null
|
|
3457
|
+
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3458
|
+
: undefined,
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3461
|
+
const deserializeAws_restJson1LambdaFunctionMetadata = (output, context) => {
|
|
3462
|
+
return {
|
|
3463
|
+
functionName: __expectString(output.functionName),
|
|
3464
|
+
functionTags: output.functionTags != null ? deserializeAws_restJson1TagMap(output.functionTags, context) : undefined,
|
|
3465
|
+
layers: output.layers != null ? deserializeAws_restJson1LambdaLayerList(output.layers, context) : undefined,
|
|
3466
|
+
runtime: __expectString(output.runtime),
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
const deserializeAws_restJson1LambdaLayerAggregationResponse = (output, context) => {
|
|
3470
|
+
return {
|
|
3471
|
+
accountId: __expectString(output.accountId),
|
|
3472
|
+
functionName: __expectString(output.functionName),
|
|
3473
|
+
layerArn: __expectString(output.layerArn),
|
|
3474
|
+
resourceId: __expectString(output.resourceId),
|
|
3475
|
+
severityCounts: output.severityCounts != null
|
|
3476
|
+
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3477
|
+
: undefined,
|
|
3478
|
+
};
|
|
3479
|
+
};
|
|
3480
|
+
const deserializeAws_restJson1LambdaLayerList = (output, context) => {
|
|
3481
|
+
const retVal = (output || [])
|
|
3482
|
+
.filter((e) => e != null)
|
|
3483
|
+
.map((entry) => {
|
|
3484
|
+
if (entry === null) {
|
|
3485
|
+
return null;
|
|
3486
|
+
}
|
|
3487
|
+
return __expectString(entry);
|
|
3488
|
+
});
|
|
3489
|
+
return retVal;
|
|
3490
|
+
};
|
|
3491
|
+
const deserializeAws_restJson1LambdaVpcConfig = (output, context) => {
|
|
3492
|
+
return {
|
|
3493
|
+
securityGroupIds: output.securityGroupIds != null
|
|
3494
|
+
? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3495
|
+
: undefined,
|
|
3496
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3497
|
+
vpcId: __expectString(output.vpcId),
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3500
|
+
const deserializeAws_restJson1LayerList = (output, context) => {
|
|
3501
|
+
const retVal = (output || [])
|
|
3502
|
+
.filter((e) => e != null)
|
|
3503
|
+
.map((entry) => {
|
|
3504
|
+
if (entry === null) {
|
|
3505
|
+
return null;
|
|
3506
|
+
}
|
|
3507
|
+
return __expectString(entry);
|
|
3508
|
+
});
|
|
3509
|
+
return retVal;
|
|
3510
|
+
};
|
|
3303
3511
|
const deserializeAws_restJson1MapFilter = (output, context) => {
|
|
3304
3512
|
return {
|
|
3305
3513
|
comparison: __expectString(output.comparison),
|
|
@@ -3392,6 +3600,9 @@ const deserializeAws_restJson1PackageFilter = (output, context) => {
|
|
|
3392
3600
|
epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
|
|
3393
3601
|
name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
|
|
3394
3602
|
release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
|
|
3603
|
+
sourceLambdaLayerArn: output.sourceLambdaLayerArn != null
|
|
3604
|
+
? deserializeAws_restJson1StringFilter(output.sourceLambdaLayerArn, context)
|
|
3605
|
+
: undefined,
|
|
3395
3606
|
sourceLayerHash: output.sourceLayerHash != null
|
|
3396
3607
|
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
3397
3608
|
: undefined,
|
|
@@ -3514,6 +3725,9 @@ const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
|
3514
3725
|
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
3515
3726
|
? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
3516
3727
|
: undefined,
|
|
3728
|
+
awsLambdaFunction: output.awsLambdaFunction != null
|
|
3729
|
+
? deserializeAws_restJson1AwsLambdaFunctionDetails(output.awsLambdaFunction, context)
|
|
3730
|
+
: undefined,
|
|
3517
3731
|
};
|
|
3518
3732
|
};
|
|
3519
3733
|
const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
@@ -3534,18 +3748,23 @@ const deserializeAws_restJson1ResourceScanMetadata = (output, context) => {
|
|
|
3534
3748
|
ecrRepository: output.ecrRepository != null
|
|
3535
3749
|
? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
|
|
3536
3750
|
: undefined,
|
|
3751
|
+
lambdaFunction: output.lambdaFunction != null
|
|
3752
|
+
? deserializeAws_restJson1LambdaFunctionMetadata(output.lambdaFunction, context)
|
|
3753
|
+
: undefined,
|
|
3537
3754
|
};
|
|
3538
3755
|
};
|
|
3539
3756
|
const deserializeAws_restJson1ResourceState = (output, context) => {
|
|
3540
3757
|
return {
|
|
3541
3758
|
ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
|
|
3542
3759
|
ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
|
|
3760
|
+
lambda: output.lambda != null ? deserializeAws_restJson1State(output.lambda, context) : undefined,
|
|
3543
3761
|
};
|
|
3544
3762
|
};
|
|
3545
3763
|
const deserializeAws_restJson1ResourceStatus = (output, context) => {
|
|
3546
3764
|
return {
|
|
3547
3765
|
ec2: __expectString(output.ec2),
|
|
3548
3766
|
ecr: __expectString(output.ecr),
|
|
3767
|
+
lambda: __expectString(output.lambda),
|
|
3549
3768
|
};
|
|
3550
3769
|
};
|
|
3551
3770
|
const deserializeAws_restJson1ScanStatus = (output, context) => {
|
|
@@ -3554,6 +3773,17 @@ const deserializeAws_restJson1ScanStatus = (output, context) => {
|
|
|
3554
3773
|
statusCode: __expectString(output.statusCode),
|
|
3555
3774
|
};
|
|
3556
3775
|
};
|
|
3776
|
+
const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
3777
|
+
const retVal = (output || [])
|
|
3778
|
+
.filter((e) => e != null)
|
|
3779
|
+
.map((entry) => {
|
|
3780
|
+
if (entry === null) {
|
|
3781
|
+
return null;
|
|
3782
|
+
}
|
|
3783
|
+
return __expectString(entry);
|
|
3784
|
+
});
|
|
3785
|
+
return retVal;
|
|
3786
|
+
};
|
|
3557
3787
|
const deserializeAws_restJson1SeverityCounts = (output, context) => {
|
|
3558
3788
|
return {
|
|
3559
3789
|
all: __expectLong(output.all),
|
|
@@ -3614,6 +3844,17 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
3614
3844
|
});
|
|
3615
3845
|
return retVal;
|
|
3616
3846
|
};
|
|
3847
|
+
const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
3848
|
+
const retVal = (output || [])
|
|
3849
|
+
.filter((e) => e != null)
|
|
3850
|
+
.map((entry) => {
|
|
3851
|
+
if (entry === null) {
|
|
3852
|
+
return null;
|
|
3853
|
+
}
|
|
3854
|
+
return __expectString(entry);
|
|
3855
|
+
});
|
|
3856
|
+
return retVal;
|
|
3857
|
+
};
|
|
3617
3858
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
3618
3859
|
const retVal = (output || [])
|
|
3619
3860
|
.filter((e) => e != null)
|
|
@@ -3718,6 +3959,7 @@ const deserializeAws_restJson1VulnerablePackage = (output, context) => {
|
|
|
3718
3959
|
packageManager: __expectString(output.packageManager),
|
|
3719
3960
|
release: __expectString(output.release),
|
|
3720
3961
|
remediation: __expectString(output.remediation),
|
|
3962
|
+
sourceLambdaLayerArn: __expectString(output.sourceLambdaLayerArn),
|
|
3721
3963
|
sourceLayerHash: __expectString(output.sourceLayerHash),
|
|
3722
3964
|
version: __expectString(output.version),
|
|
3723
3965
|
};
|
|
@@ -80,7 +80,7 @@ export declare class Inspector2 extends Inspector2Client {
|
|
|
80
80
|
deleteFilter(args: DeleteFilterCommandInput, cb: (err: any, data?: DeleteFilterCommandOutput) => void): void;
|
|
81
81
|
deleteFilter(args: DeleteFilterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFilterCommandOutput) => void): void;
|
|
82
82
|
/**
|
|
83
|
-
* <p>Describe Amazon Inspector configuration settings for an Amazon Web Services organization
|
|
83
|
+
* <p>Describe Amazon Inspector configuration settings for an Amazon Web Services organization.</p>
|
|
84
84
|
*/
|
|
85
85
|
describeOrganizationConfiguration(args: DescribeOrganizationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeOrganizationConfigurationCommandOutput>;
|
|
86
86
|
describeOrganizationConfiguration(args: DescribeOrganizationConfigurationCommandInput, cb: (err: any, data?: DescribeOrganizationConfigurationCommandOutput) => void): void;
|
|
@@ -8,7 +8,7 @@ export interface DescribeOrganizationConfigurationCommandInput extends DescribeO
|
|
|
8
8
|
export interface DescribeOrganizationConfigurationCommandOutput extends DescribeOrganizationConfigurationResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Describe Amazon Inspector configuration settings for an Amazon Web Services organization
|
|
11
|
+
* <p>Describe Amazon Inspector configuration settings for an Amazon Web Services organization.</p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
14
|
* ```javascript
|