@aws-sdk/client-securityhub 3.212.0 → 3.213.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/protocols/Aws_restJson1.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +12 -0
- package/dist-types/models/models_0.d.ts +11 -1
- package/dist-types/models/models_1.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/models/models_1.d.ts +2 -0
- package/package.json +2 -2
|
@@ -7194,6 +7194,9 @@ const serializeAws_restJson1AwsLambdaFunctionDeadLetterConfig = (input, context)
|
|
|
7194
7194
|
};
|
|
7195
7195
|
const serializeAws_restJson1AwsLambdaFunctionDetails = (input, context) => {
|
|
7196
7196
|
return {
|
|
7197
|
+
...(input.Architectures != null && {
|
|
7198
|
+
Architectures: serializeAws_restJson1NonEmptyStringList(input.Architectures, context),
|
|
7199
|
+
}),
|
|
7197
7200
|
...(input.Code != null && { Code: serializeAws_restJson1AwsLambdaFunctionCode(input.Code, context) }),
|
|
7198
7201
|
...(input.CodeSha256 != null && { CodeSha256: input.CodeSha256 }),
|
|
7199
7202
|
...(input.DeadLetterConfig != null && {
|
|
@@ -7209,6 +7212,7 @@ const serializeAws_restJson1AwsLambdaFunctionDetails = (input, context) => {
|
|
|
7209
7212
|
...(input.Layers != null && { Layers: serializeAws_restJson1AwsLambdaFunctionLayerList(input.Layers, context) }),
|
|
7210
7213
|
...(input.MasterArn != null && { MasterArn: input.MasterArn }),
|
|
7211
7214
|
...(input.MemorySize != null && { MemorySize: input.MemorySize }),
|
|
7215
|
+
...(input.PackageType != null && { PackageType: input.PackageType }),
|
|
7212
7216
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
7213
7217
|
...(input.Role != null && { Role: input.Role }),
|
|
7214
7218
|
...(input.Runtime != null && { Runtime: input.Runtime }),
|
|
@@ -10412,6 +10416,8 @@ const serializeAws_restJson1SoftwarePackage = (input, context) => {
|
|
|
10412
10416
|
...(input.PackageManager != null && { PackageManager: input.PackageManager }),
|
|
10413
10417
|
...(input.Release != null && { Release: input.Release }),
|
|
10414
10418
|
...(input.Remediation != null && { Remediation: input.Remediation }),
|
|
10419
|
+
...(input.SourceLayerArn != null && { SourceLayerArn: input.SourceLayerArn }),
|
|
10420
|
+
...(input.SourceLayerHash != null && { SourceLayerHash: input.SourceLayerHash }),
|
|
10415
10421
|
...(input.Version != null && { Version: input.Version }),
|
|
10416
10422
|
};
|
|
10417
10423
|
};
|
|
@@ -14338,6 +14344,9 @@ const deserializeAws_restJson1AwsLambdaFunctionDeadLetterConfig = (output, conte
|
|
|
14338
14344
|
};
|
|
14339
14345
|
const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
|
|
14340
14346
|
return {
|
|
14347
|
+
Architectures: output.Architectures != null
|
|
14348
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Architectures, context)
|
|
14349
|
+
: undefined,
|
|
14341
14350
|
Code: output.Code != null ? deserializeAws_restJson1AwsLambdaFunctionCode(output.Code, context) : undefined,
|
|
14342
14351
|
CodeSha256: (0, smithy_client_1.expectString)(output.CodeSha256),
|
|
14343
14352
|
DeadLetterConfig: output.DeadLetterConfig != null
|
|
@@ -14353,6 +14362,7 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
|
|
|
14353
14362
|
Layers: output.Layers != null ? deserializeAws_restJson1AwsLambdaFunctionLayerList(output.Layers, context) : undefined,
|
|
14354
14363
|
MasterArn: (0, smithy_client_1.expectString)(output.MasterArn),
|
|
14355
14364
|
MemorySize: (0, smithy_client_1.expectInt32)(output.MemorySize),
|
|
14365
|
+
PackageType: (0, smithy_client_1.expectString)(output.PackageType),
|
|
14356
14366
|
RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
|
|
14357
14367
|
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
14358
14368
|
Runtime: (0, smithy_client_1.expectString)(output.Runtime),
|
|
@@ -17957,6 +17967,8 @@ const deserializeAws_restJson1SoftwarePackage = (output, context) => {
|
|
|
17957
17967
|
PackageManager: (0, smithy_client_1.expectString)(output.PackageManager),
|
|
17958
17968
|
Release: (0, smithy_client_1.expectString)(output.Release),
|
|
17959
17969
|
Remediation: (0, smithy_client_1.expectString)(output.Remediation),
|
|
17970
|
+
SourceLayerArn: (0, smithy_client_1.expectString)(output.SourceLayerArn),
|
|
17971
|
+
SourceLayerHash: (0, smithy_client_1.expectString)(output.SourceLayerHash),
|
|
17960
17972
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
17961
17973
|
};
|
|
17962
17974
|
};
|
|
@@ -7077,6 +7077,9 @@ const serializeAws_restJson1AwsLambdaFunctionDeadLetterConfig = (input, context)
|
|
|
7077
7077
|
};
|
|
7078
7078
|
const serializeAws_restJson1AwsLambdaFunctionDetails = (input, context) => {
|
|
7079
7079
|
return {
|
|
7080
|
+
...(input.Architectures != null && {
|
|
7081
|
+
Architectures: serializeAws_restJson1NonEmptyStringList(input.Architectures, context),
|
|
7082
|
+
}),
|
|
7080
7083
|
...(input.Code != null && { Code: serializeAws_restJson1AwsLambdaFunctionCode(input.Code, context) }),
|
|
7081
7084
|
...(input.CodeSha256 != null && { CodeSha256: input.CodeSha256 }),
|
|
7082
7085
|
...(input.DeadLetterConfig != null && {
|
|
@@ -7092,6 +7095,7 @@ const serializeAws_restJson1AwsLambdaFunctionDetails = (input, context) => {
|
|
|
7092
7095
|
...(input.Layers != null && { Layers: serializeAws_restJson1AwsLambdaFunctionLayerList(input.Layers, context) }),
|
|
7093
7096
|
...(input.MasterArn != null && { MasterArn: input.MasterArn }),
|
|
7094
7097
|
...(input.MemorySize != null && { MemorySize: input.MemorySize }),
|
|
7098
|
+
...(input.PackageType != null && { PackageType: input.PackageType }),
|
|
7095
7099
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
7096
7100
|
...(input.Role != null && { Role: input.Role }),
|
|
7097
7101
|
...(input.Runtime != null && { Runtime: input.Runtime }),
|
|
@@ -10295,6 +10299,8 @@ const serializeAws_restJson1SoftwarePackage = (input, context) => {
|
|
|
10295
10299
|
...(input.PackageManager != null && { PackageManager: input.PackageManager }),
|
|
10296
10300
|
...(input.Release != null && { Release: input.Release }),
|
|
10297
10301
|
...(input.Remediation != null && { Remediation: input.Remediation }),
|
|
10302
|
+
...(input.SourceLayerArn != null && { SourceLayerArn: input.SourceLayerArn }),
|
|
10303
|
+
...(input.SourceLayerHash != null && { SourceLayerHash: input.SourceLayerHash }),
|
|
10298
10304
|
...(input.Version != null && { Version: input.Version }),
|
|
10299
10305
|
};
|
|
10300
10306
|
};
|
|
@@ -14221,6 +14227,9 @@ const deserializeAws_restJson1AwsLambdaFunctionDeadLetterConfig = (output, conte
|
|
|
14221
14227
|
};
|
|
14222
14228
|
const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
|
|
14223
14229
|
return {
|
|
14230
|
+
Architectures: output.Architectures != null
|
|
14231
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Architectures, context)
|
|
14232
|
+
: undefined,
|
|
14224
14233
|
Code: output.Code != null ? deserializeAws_restJson1AwsLambdaFunctionCode(output.Code, context) : undefined,
|
|
14225
14234
|
CodeSha256: __expectString(output.CodeSha256),
|
|
14226
14235
|
DeadLetterConfig: output.DeadLetterConfig != null
|
|
@@ -14236,6 +14245,7 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
|
|
|
14236
14245
|
Layers: output.Layers != null ? deserializeAws_restJson1AwsLambdaFunctionLayerList(output.Layers, context) : undefined,
|
|
14237
14246
|
MasterArn: __expectString(output.MasterArn),
|
|
14238
14247
|
MemorySize: __expectInt32(output.MemorySize),
|
|
14248
|
+
PackageType: __expectString(output.PackageType),
|
|
14239
14249
|
RevisionId: __expectString(output.RevisionId),
|
|
14240
14250
|
Role: __expectString(output.Role),
|
|
14241
14251
|
Runtime: __expectString(output.Runtime),
|
|
@@ -17840,6 +17850,8 @@ const deserializeAws_restJson1SoftwarePackage = (output, context) => {
|
|
|
17840
17850
|
PackageManager: __expectString(output.PackageManager),
|
|
17841
17851
|
Release: __expectString(output.Release),
|
|
17842
17852
|
Remediation: __expectString(output.Remediation),
|
|
17853
|
+
SourceLayerArn: __expectString(output.SourceLayerArn),
|
|
17854
|
+
SourceLayerHash: __expectString(output.SourceLayerHash),
|
|
17843
17855
|
Version: __expectString(output.Version),
|
|
17844
17856
|
};
|
|
17845
17857
|
};
|
|
@@ -8271,7 +8271,7 @@ export interface AwsLambdaFunctionVpcConfig {
|
|
|
8271
8271
|
VpcId?: string;
|
|
8272
8272
|
}
|
|
8273
8273
|
/**
|
|
8274
|
-
* <p>Details about
|
|
8274
|
+
* <p>Details about an Lambda function's configuration.</p>
|
|
8275
8275
|
*/
|
|
8276
8276
|
export interface AwsLambdaFunctionDetails {
|
|
8277
8277
|
/**
|
|
@@ -8349,6 +8349,16 @@ export interface AwsLambdaFunctionDetails {
|
|
|
8349
8349
|
* <p>The version of the Lambda function.</p>
|
|
8350
8350
|
*/
|
|
8351
8351
|
Version?: string;
|
|
8352
|
+
/**
|
|
8353
|
+
* <p>The instruction set architecture that the function uses. Valid values are <code>x86_64</code> or
|
|
8354
|
+
* <code>arm64</code>.</p>
|
|
8355
|
+
*/
|
|
8356
|
+
Architectures?: string[];
|
|
8357
|
+
/**
|
|
8358
|
+
* <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.
|
|
8359
|
+
* </p>
|
|
8360
|
+
*/
|
|
8361
|
+
PackageType?: string;
|
|
8352
8362
|
}
|
|
8353
8363
|
/**
|
|
8354
8364
|
* <p>Details about a Lambda layer version.</p>
|
|
@@ -5377,6 +5377,16 @@ export interface SoftwarePackage {
|
|
|
5377
5377
|
* </p>
|
|
5378
5378
|
*/
|
|
5379
5379
|
Remediation?: string;
|
|
5380
|
+
/**
|
|
5381
|
+
* <p>The source layer hash of the vulnerable package.
|
|
5382
|
+
* </p>
|
|
5383
|
+
*/
|
|
5384
|
+
SourceLayerHash?: string;
|
|
5385
|
+
/**
|
|
5386
|
+
* <p>The Amazon Resource Name (ARN) of the source layer.
|
|
5387
|
+
* </p>
|
|
5388
|
+
*/
|
|
5389
|
+
SourceLayerArn?: string;
|
|
5380
5390
|
}
|
|
5381
5391
|
/**
|
|
5382
5392
|
* <p>A vulnerability associated with a finding.</p>
|
|
@@ -1856,6 +1856,8 @@ export interface AwsLambdaFunctionDetails {
|
|
|
1856
1856
|
TracingConfig?: AwsLambdaFunctionTracingConfig;
|
|
1857
1857
|
VpcConfig?: AwsLambdaFunctionVpcConfig;
|
|
1858
1858
|
Version?: string;
|
|
1859
|
+
Architectures?: string[];
|
|
1860
|
+
PackageType?: string;
|
|
1859
1861
|
}
|
|
1860
1862
|
export interface AwsLambdaLayerVersionDetails {
|
|
1861
1863
|
Version?: number;
|
|
@@ -1334,6 +1334,8 @@ export interface SoftwarePackage {
|
|
|
1334
1334
|
FilePath?: string;
|
|
1335
1335
|
FixedInVersion?: string;
|
|
1336
1336
|
Remediation?: string;
|
|
1337
|
+
SourceLayerHash?: string;
|
|
1338
|
+
SourceLayerArn?: string;
|
|
1337
1339
|
}
|
|
1338
1340
|
export interface Vulnerability {
|
|
1339
1341
|
Id: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.213.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.213.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.212.0",
|
|
24
24
|
"@aws-sdk/credential-provider-node": "3.212.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.212.0",
|