Skip to content

Commit 55eb401

Browse files
author
awstools
committed
feat(client-securityhub): Added SourceLayerArn and SourceLayerHash field for security findings. Updated AwsLambdaFunction Resource detail
1 parent 046b377 commit 55eb401

File tree

4 files changed

+277
-216
lines changed

4 files changed

+277
-216
lines changed

clients/client-securityhub/src/models/models_0.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9562,7 +9562,7 @@ export interface AwsLambdaFunctionVpcConfig {
95629562
}
95639563

95649564
/**
9565-
* <p>Details about a function's configuration.</p>
9565+
* <p>Details about an Lambda function's configuration.</p>
95669566
*/
95679567
export interface AwsLambdaFunctionDetails {
95689568
/**
@@ -9657,6 +9657,18 @@ export interface AwsLambdaFunctionDetails {
96579657
* <p>The version of the Lambda function.</p>
96589658
*/
96599659
Version?: string;
9660+
9661+
/**
9662+
* <p>The instruction set architecture that the function uses. Valid values are <code>x86_64</code> or
9663+
* <code>arm64</code>.</p>
9664+
*/
9665+
Architectures?: string[];
9666+
9667+
/**
9668+
* <p>The type of deployment package that's used to deploy the function code to Lambda. Set to <code>Image</code> for a container image and <code>Zip</code> for a .zip file archive.
9669+
* </p>
9670+
*/
9671+
PackageType?: string;
96609672
}
96619673

96629674
/**

clients/client-securityhub/src/models/models_1.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6307,6 +6307,18 @@ export interface SoftwarePackage {
63076307
* </p>
63086308
*/
63096309
Remediation?: string;
6310+
6311+
/**
6312+
* <p>The source layer hash of the vulnerable package.
6313+
* </p>
6314+
*/
6315+
SourceLayerHash?: string;
6316+
6317+
/**
6318+
* <p>The Amazon Resource Name (ARN) of the source layer.
6319+
* </p>
6320+
*/
6321+
SourceLayerArn?: string;
63106322
}
63116323

63126324
/**

clients/client-securityhub/src/protocols/Aws_restJson1.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10088,6 +10088,9 @@ const serializeAws_restJson1AwsLambdaFunctionDetails = (
1008810088
context: __SerdeContext
1008910089
): any => {
1009010090
return {
10091+
...(input.Architectures != null && {
10092+
Architectures: serializeAws_restJson1NonEmptyStringList(input.Architectures, context),
10093+
}),
1009110094
...(input.Code != null && { Code: serializeAws_restJson1AwsLambdaFunctionCode(input.Code, context) }),
1009210095
...(input.CodeSha256 != null && { CodeSha256: input.CodeSha256 }),
1009310096
...(input.DeadLetterConfig != null && {
@@ -10103,6 +10106,7 @@ const serializeAws_restJson1AwsLambdaFunctionDetails = (
1010310106
...(input.Layers != null && { Layers: serializeAws_restJson1AwsLambdaFunctionLayerList(input.Layers, context) }),
1010410107
...(input.MasterArn != null && { MasterArn: input.MasterArn }),
1010510108
...(input.MemorySize != null && { MemorySize: input.MemorySize }),
10109+
...(input.PackageType != null && { PackageType: input.PackageType }),
1010610110
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
1010710111
...(input.Role != null && { Role: input.Role }),
1010810112
...(input.Runtime != null && { Runtime: input.Runtime }),
@@ -14441,6 +14445,8 @@ const serializeAws_restJson1SoftwarePackage = (input: SoftwarePackage, context:
1444114445
...(input.PackageManager != null && { PackageManager: input.PackageManager }),
1444214446
...(input.Release != null && { Release: input.Release }),
1444314447
...(input.Remediation != null && { Remediation: input.Remediation }),
14448+
...(input.SourceLayerArn != null && { SourceLayerArn: input.SourceLayerArn }),
14449+
...(input.SourceLayerHash != null && { SourceLayerHash: input.SourceLayerHash }),
1444414450
...(input.Version != null && { Version: input.Version }),
1444514451
};
1444614452
};
@@ -20102,6 +20108,10 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = (
2010220108
context: __SerdeContext
2010320109
): AwsLambdaFunctionDetails => {
2010420110
return {
20111+
Architectures:
20112+
output.Architectures != null
20113+
? deserializeAws_restJson1NonEmptyStringList(output.Architectures, context)
20114+
: undefined,
2010520115
Code: output.Code != null ? deserializeAws_restJson1AwsLambdaFunctionCode(output.Code, context) : undefined,
2010620116
CodeSha256: __expectString(output.CodeSha256),
2010720117
DeadLetterConfig:
@@ -20120,6 +20130,7 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = (
2012020130
output.Layers != null ? deserializeAws_restJson1AwsLambdaFunctionLayerList(output.Layers, context) : undefined,
2012120131
MasterArn: __expectString(output.MasterArn),
2012220132
MemorySize: __expectInt32(output.MemorySize),
20133+
PackageType: __expectString(output.PackageType),
2012320134
RevisionId: __expectString(output.RevisionId),
2012420135
Role: __expectString(output.Role),
2012520136
Runtime: __expectString(output.Runtime),
@@ -25074,6 +25085,8 @@ const deserializeAws_restJson1SoftwarePackage = (output: any, context: __SerdeCo
2507425085
PackageManager: __expectString(output.PackageManager),
2507525086
Release: __expectString(output.Release),
2507625087
Remediation: __expectString(output.Remediation),
25088+
SourceLayerArn: __expectString(output.SourceLayerArn),
25089+
SourceLayerHash: __expectString(output.SourceLayerHash),
2507725090
Version: __expectString(output.Version),
2507825091
} as any;
2507925092
};

0 commit comments

Comments
 (0)