@aws-sdk/client-inspector2 3.218.0 → 3.222.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 +240 -1
- package/dist-es/models/models_0.js +98 -0
- package/dist-es/protocols/Aws_restJson1.js +240 -1
- 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 +29 -28
|
@@ -2224,7 +2224,12 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2224
2224
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2225
2225
|
};
|
|
2226
2226
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2227
|
-
const contents = map({
|
|
2227
|
+
const contents = map({
|
|
2228
|
+
retryAfterSeconds: [
|
|
2229
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2230
|
+
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
2231
|
+
],
|
|
2232
|
+
});
|
|
2228
2233
|
const data = parsedOutput.body;
|
|
2229
2234
|
if (data.message != null) {
|
|
2230
2235
|
contents.message = __expectString(data.message);
|
|
@@ -2284,6 +2289,12 @@ const serializeAws_restJson1AggregationRequest = (input, context) => {
|
|
|
2284
2289
|
imageLayerAggregation: (value) => ({
|
|
2285
2290
|
imageLayerAggregation: serializeAws_restJson1ImageLayerAggregation(value, context),
|
|
2286
2291
|
}),
|
|
2292
|
+
lambdaFunctionAggregation: (value) => ({
|
|
2293
|
+
lambdaFunctionAggregation: serializeAws_restJson1LambdaFunctionAggregation(value, context),
|
|
2294
|
+
}),
|
|
2295
|
+
lambdaLayerAggregation: (value) => ({
|
|
2296
|
+
lambdaLayerAggregation: serializeAws_restJson1LambdaLayerAggregation(value, context),
|
|
2297
|
+
}),
|
|
2287
2298
|
packageAggregation: (value) => ({ packageAggregation: serializeAws_restJson1PackageAggregation(value, context) }),
|
|
2288
2299
|
repositoryAggregation: (value) => ({
|
|
2289
2300
|
repositoryAggregation: serializeAws_restJson1RepositoryAggregation(value, context),
|
|
@@ -2303,6 +2314,7 @@ const serializeAws_restJson1AutoEnable = (input, context) => {
|
|
|
2303
2314
|
return {
|
|
2304
2315
|
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2305
2316
|
...(input.ecr != null && { ecr: input.ecr }),
|
|
2317
|
+
...(input.lambda != null && { lambda: input.lambda }),
|
|
2306
2318
|
};
|
|
2307
2319
|
};
|
|
2308
2320
|
const serializeAws_restJson1AwsEcrContainerAggregation = (input, context) => {
|
|
@@ -2336,6 +2348,15 @@ const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
|
|
|
2336
2348
|
...(input.ecrRepositoryName != null && {
|
|
2337
2349
|
ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2338
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
|
+
}),
|
|
2339
2360
|
...(input.resourceId != null && {
|
|
2340
2361
|
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
2341
2362
|
}),
|
|
@@ -2480,6 +2501,9 @@ const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
|
2480
2501
|
...(input.ecrImageTags != null && {
|
|
2481
2502
|
ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
|
|
2482
2503
|
}),
|
|
2504
|
+
...(input.exploitAvailable != null && {
|
|
2505
|
+
exploitAvailable: serializeAws_restJson1StringFilterList(input.exploitAvailable, context),
|
|
2506
|
+
}),
|
|
2483
2507
|
...(input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) }),
|
|
2484
2508
|
...(input.findingStatus != null && {
|
|
2485
2509
|
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
@@ -2496,6 +2520,21 @@ const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
|
2496
2520
|
...(input.inspectorScore != null && {
|
|
2497
2521
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
2498
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
|
+
}),
|
|
2499
2538
|
...(input.lastObservedAt != null && {
|
|
2500
2539
|
lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
|
|
2501
2540
|
}),
|
|
@@ -2553,6 +2592,35 @@ const serializeAws_restJson1ImageLayerAggregation = (input, context) => {
|
|
|
2553
2592
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2554
2593
|
};
|
|
2555
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
|
+
};
|
|
2556
2624
|
const serializeAws_restJson1MapFilter = (input, context) => {
|
|
2557
2625
|
return {
|
|
2558
2626
|
...(input.comparison != null && { comparison: input.comparison }),
|
|
@@ -2604,6 +2672,9 @@ const serializeAws_restJson1PackageFilter = (input, context) => {
|
|
|
2604
2672
|
...(input.epoch != null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) }),
|
|
2605
2673
|
...(input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
|
|
2606
2674
|
...(input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2675
|
+
...(input.sourceLambdaLayerArn != null && {
|
|
2676
|
+
sourceLambdaLayerArn: serializeAws_restJson1StringFilter(input.sourceLambdaLayerArn, context),
|
|
2677
|
+
}),
|
|
2607
2678
|
...(input.sourceLayerHash != null && {
|
|
2608
2679
|
sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
|
|
2609
2680
|
}),
|
|
@@ -2762,6 +2833,16 @@ const deserializeAws_restJson1AggregationResponse = (output, context) => {
|
|
|
2762
2833
|
imageLayerAggregation: deserializeAws_restJson1ImageLayerAggregationResponse(output.imageLayerAggregation, context),
|
|
2763
2834
|
};
|
|
2764
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
|
+
}
|
|
2765
2846
|
if (output.packageAggregation != null) {
|
|
2766
2847
|
return {
|
|
2767
2848
|
packageAggregation: deserializeAws_restJson1PackageAggregationResponse(output.packageAggregation, context),
|
|
@@ -2800,10 +2881,22 @@ const deserializeAws_restJson1AmiAggregationResponse = (output, context) => {
|
|
|
2800
2881
|
: undefined,
|
|
2801
2882
|
};
|
|
2802
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
|
+
};
|
|
2803
2895
|
const deserializeAws_restJson1AutoEnable = (output, context) => {
|
|
2804
2896
|
return {
|
|
2805
2897
|
ec2: __expectBoolean(output.ec2),
|
|
2806
2898
|
ecr: __expectBoolean(output.ecr),
|
|
2899
|
+
lambda: __expectBoolean(output.lambda),
|
|
2807
2900
|
};
|
|
2808
2901
|
};
|
|
2809
2902
|
const deserializeAws_restJson1AwsEc2InstanceDetails = (output, context) => {
|
|
@@ -2845,6 +2938,24 @@ const deserializeAws_restJson1AwsEcrContainerImageDetails = (output, context) =>
|
|
|
2845
2938
|
repositoryName: __expectString(output.repositoryName),
|
|
2846
2939
|
};
|
|
2847
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
|
+
};
|
|
2848
2959
|
const deserializeAws_restJson1Counts = (output, context) => {
|
|
2849
2960
|
return {
|
|
2850
2961
|
count: __expectLong(output.count),
|
|
@@ -3029,6 +3140,13 @@ const deserializeAws_restJson1EcrRescanDurationState = (output, context) => {
|
|
|
3029
3140
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3030
3141
|
};
|
|
3031
3142
|
};
|
|
3143
|
+
const deserializeAws_restJson1ExploitabilityDetails = (output, context) => {
|
|
3144
|
+
return {
|
|
3145
|
+
lastKnownExploitAt: output.lastKnownExploitAt != null
|
|
3146
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastKnownExploitAt)))
|
|
3147
|
+
: undefined,
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3032
3150
|
const deserializeAws_restJson1FailedAccount = (output, context) => {
|
|
3033
3151
|
return {
|
|
3034
3152
|
accountId: __expectString(output.accountId),
|
|
@@ -3095,6 +3213,9 @@ const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
|
3095
3213
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3096
3214
|
: undefined,
|
|
3097
3215
|
ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3216
|
+
exploitAvailable: output.exploitAvailable != null
|
|
3217
|
+
? deserializeAws_restJson1StringFilterList(output.exploitAvailable, context)
|
|
3218
|
+
: undefined,
|
|
3098
3219
|
findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
|
|
3099
3220
|
findingStatus: output.findingStatus != null
|
|
3100
3221
|
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
@@ -3107,6 +3228,21 @@ const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
|
3107
3228
|
inspectorScore: output.inspectorScore != null
|
|
3108
3229
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3109
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,
|
|
3110
3246
|
lastObservedAt: output.lastObservedAt != null
|
|
3111
3247
|
? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
|
|
3112
3248
|
: undefined,
|
|
@@ -3152,6 +3288,10 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3152
3288
|
return {
|
|
3153
3289
|
awsAccountId: __expectString(output.awsAccountId),
|
|
3154
3290
|
description: __expectString(output.description),
|
|
3291
|
+
exploitAvailable: __expectString(output.exploitAvailable),
|
|
3292
|
+
exploitabilityDetails: output.exploitabilityDetails != null
|
|
3293
|
+
? deserializeAws_restJson1ExploitabilityDetails(output.exploitabilityDetails, context)
|
|
3294
|
+
: undefined,
|
|
3155
3295
|
findingArn: __expectString(output.findingArn),
|
|
3156
3296
|
firstObservedAt: output.firstObservedAt != null
|
|
3157
3297
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
|
|
@@ -3303,6 +3443,71 @@ const deserializeAws_restJson1IpV6AddressList = (output, context) => {
|
|
|
3303
3443
|
});
|
|
3304
3444
|
return retVal;
|
|
3305
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
|
+
};
|
|
3306
3511
|
const deserializeAws_restJson1MapFilter = (output, context) => {
|
|
3307
3512
|
return {
|
|
3308
3513
|
comparison: __expectString(output.comparison),
|
|
@@ -3395,6 +3600,9 @@ const deserializeAws_restJson1PackageFilter = (output, context) => {
|
|
|
3395
3600
|
epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
|
|
3396
3601
|
name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
|
|
3397
3602
|
release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
|
|
3603
|
+
sourceLambdaLayerArn: output.sourceLambdaLayerArn != null
|
|
3604
|
+
? deserializeAws_restJson1StringFilter(output.sourceLambdaLayerArn, context)
|
|
3605
|
+
: undefined,
|
|
3398
3606
|
sourceLayerHash: output.sourceLayerHash != null
|
|
3399
3607
|
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
3400
3608
|
: undefined,
|
|
@@ -3517,6 +3725,9 @@ const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
|
3517
3725
|
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
3518
3726
|
? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
3519
3727
|
: undefined,
|
|
3728
|
+
awsLambdaFunction: output.awsLambdaFunction != null
|
|
3729
|
+
? deserializeAws_restJson1AwsLambdaFunctionDetails(output.awsLambdaFunction, context)
|
|
3730
|
+
: undefined,
|
|
3520
3731
|
};
|
|
3521
3732
|
};
|
|
3522
3733
|
const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
@@ -3537,18 +3748,23 @@ const deserializeAws_restJson1ResourceScanMetadata = (output, context) => {
|
|
|
3537
3748
|
ecrRepository: output.ecrRepository != null
|
|
3538
3749
|
? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
|
|
3539
3750
|
: undefined,
|
|
3751
|
+
lambdaFunction: output.lambdaFunction != null
|
|
3752
|
+
? deserializeAws_restJson1LambdaFunctionMetadata(output.lambdaFunction, context)
|
|
3753
|
+
: undefined,
|
|
3540
3754
|
};
|
|
3541
3755
|
};
|
|
3542
3756
|
const deserializeAws_restJson1ResourceState = (output, context) => {
|
|
3543
3757
|
return {
|
|
3544
3758
|
ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
|
|
3545
3759
|
ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
|
|
3760
|
+
lambda: output.lambda != null ? deserializeAws_restJson1State(output.lambda, context) : undefined,
|
|
3546
3761
|
};
|
|
3547
3762
|
};
|
|
3548
3763
|
const deserializeAws_restJson1ResourceStatus = (output, context) => {
|
|
3549
3764
|
return {
|
|
3550
3765
|
ec2: __expectString(output.ec2),
|
|
3551
3766
|
ecr: __expectString(output.ecr),
|
|
3767
|
+
lambda: __expectString(output.lambda),
|
|
3552
3768
|
};
|
|
3553
3769
|
};
|
|
3554
3770
|
const deserializeAws_restJson1ScanStatus = (output, context) => {
|
|
@@ -3557,6 +3773,17 @@ const deserializeAws_restJson1ScanStatus = (output, context) => {
|
|
|
3557
3773
|
statusCode: __expectString(output.statusCode),
|
|
3558
3774
|
};
|
|
3559
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
|
+
};
|
|
3560
3787
|
const deserializeAws_restJson1SeverityCounts = (output, context) => {
|
|
3561
3788
|
return {
|
|
3562
3789
|
all: __expectLong(output.all),
|
|
@@ -3617,6 +3844,17 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
3617
3844
|
});
|
|
3618
3845
|
return retVal;
|
|
3619
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
|
+
};
|
|
3620
3858
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
3621
3859
|
const retVal = (output || [])
|
|
3622
3860
|
.filter((e) => e != null)
|
|
@@ -3721,6 +3959,7 @@ const deserializeAws_restJson1VulnerablePackage = (output, context) => {
|
|
|
3721
3959
|
packageManager: __expectString(output.packageManager),
|
|
3722
3960
|
release: __expectString(output.release),
|
|
3723
3961
|
remediation: __expectString(output.remediation),
|
|
3962
|
+
sourceLambdaLayerArn: __expectString(output.sourceLambdaLayerArn),
|
|
3724
3963
|
sourceLayerHash: __expectString(output.sourceLayerHash),
|
|
3725
3964
|
version: __expectString(output.version),
|
|
3726
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
|