@aws-sdk/client-securityhub 3.211.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.
@@ -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 }),
@@ -9411,10 +9415,8 @@ const serializeAws_restJson1FieldMap = (input, context) => {
9411
9415
  if (value === null) {
9412
9416
  return acc;
9413
9417
  }
9414
- return {
9415
- ...acc,
9416
- [key]: value,
9417
- };
9418
+ acc[key] = value;
9419
+ return acc;
9418
9420
  }, {});
9419
9421
  };
9420
9422
  const serializeAws_restJson1FilePathList = (input, context) => {
@@ -10414,6 +10416,8 @@ const serializeAws_restJson1SoftwarePackage = (input, context) => {
10414
10416
  ...(input.PackageManager != null && { PackageManager: input.PackageManager }),
10415
10417
  ...(input.Release != null && { Release: input.Release }),
10416
10418
  ...(input.Remediation != null && { Remediation: input.Remediation }),
10419
+ ...(input.SourceLayerArn != null && { SourceLayerArn: input.SourceLayerArn }),
10420
+ ...(input.SourceLayerHash != null && { SourceLayerHash: input.SourceLayerHash }),
10417
10421
  ...(input.Version != null && { Version: input.Version }),
10418
10422
  };
10419
10423
  };
@@ -10442,10 +10446,8 @@ const serializeAws_restJson1StandardsInputParameterMap = (input, context) => {
10442
10446
  if (value === null) {
10443
10447
  return acc;
10444
10448
  }
10445
- return {
10446
- ...acc,
10447
- [key]: value,
10448
- };
10449
+ acc[key] = value;
10450
+ return acc;
10449
10451
  }, {});
10450
10452
  };
10451
10453
  const serializeAws_restJson1StandardsSubscriptionArns = (input, context) => {
@@ -10534,10 +10536,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
10534
10536
  if (value === null) {
10535
10537
  return acc;
10536
10538
  }
10537
- return {
10538
- ...acc,
10539
- [key]: value,
10540
- };
10539
+ acc[key] = value;
10540
+ return acc;
10541
10541
  }, {});
10542
10542
  };
10543
10543
  const serializeAws_restJson1Threat = (input, context) => {
@@ -14344,6 +14344,9 @@ const deserializeAws_restJson1AwsLambdaFunctionDeadLetterConfig = (output, conte
14344
14344
  };
14345
14345
  const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
14346
14346
  return {
14347
+ Architectures: output.Architectures != null
14348
+ ? deserializeAws_restJson1NonEmptyStringList(output.Architectures, context)
14349
+ : undefined,
14347
14350
  Code: output.Code != null ? deserializeAws_restJson1AwsLambdaFunctionCode(output.Code, context) : undefined,
14348
14351
  CodeSha256: (0, smithy_client_1.expectString)(output.CodeSha256),
14349
14352
  DeadLetterConfig: output.DeadLetterConfig != null
@@ -14359,6 +14362,7 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
14359
14362
  Layers: output.Layers != null ? deserializeAws_restJson1AwsLambdaFunctionLayerList(output.Layers, context) : undefined,
14360
14363
  MasterArn: (0, smithy_client_1.expectString)(output.MasterArn),
14361
14364
  MemorySize: (0, smithy_client_1.expectInt32)(output.MemorySize),
14365
+ PackageType: (0, smithy_client_1.expectString)(output.PackageType),
14362
14366
  RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
14363
14367
  Role: (0, smithy_client_1.expectString)(output.Role),
14364
14368
  Runtime: (0, smithy_client_1.expectString)(output.Runtime),
@@ -16670,10 +16674,8 @@ const deserializeAws_restJson1FieldMap = (output, context) => {
16670
16674
  if (value === null) {
16671
16675
  return acc;
16672
16676
  }
16673
- return {
16674
- ...acc,
16675
- [key]: (0, smithy_client_1.expectString)(value),
16676
- };
16677
+ acc[key] = (0, smithy_client_1.expectString)(value);
16678
+ return acc;
16677
16679
  }, {});
16678
16680
  };
16679
16681
  const deserializeAws_restJson1FilePathList = (output, context) => {
@@ -17965,6 +17967,8 @@ const deserializeAws_restJson1SoftwarePackage = (output, context) => {
17965
17967
  PackageManager: (0, smithy_client_1.expectString)(output.PackageManager),
17966
17968
  Release: (0, smithy_client_1.expectString)(output.Release),
17967
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),
17968
17972
  Version: (0, smithy_client_1.expectString)(output.Version),
17969
17973
  };
17970
17974
  };
@@ -18032,10 +18036,8 @@ const deserializeAws_restJson1StandardsInputParameterMap = (output, context) =>
18032
18036
  if (value === null) {
18033
18037
  return acc;
18034
18038
  }
18035
- return {
18036
- ...acc,
18037
- [key]: (0, smithy_client_1.expectString)(value),
18038
- };
18039
+ acc[key] = (0, smithy_client_1.expectString)(value);
18040
+ return acc;
18039
18041
  }, {});
18040
18042
  };
18041
18043
  const deserializeAws_restJson1StandardsStatusReason = (output, context) => {
@@ -18147,10 +18149,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
18147
18149
  if (value === null) {
18148
18150
  return acc;
18149
18151
  }
18150
- return {
18151
- ...acc,
18152
- [key]: (0, smithy_client_1.expectString)(value),
18153
- };
18152
+ acc[key] = (0, smithy_client_1.expectString)(value);
18153
+ return acc;
18154
18154
  }, {});
18155
18155
  };
18156
18156
  const deserializeAws_restJson1Threat = (output, context) => {
@@ -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 }),
@@ -9294,10 +9298,8 @@ const serializeAws_restJson1FieldMap = (input, context) => {
9294
9298
  if (value === null) {
9295
9299
  return acc;
9296
9300
  }
9297
- return {
9298
- ...acc,
9299
- [key]: value,
9300
- };
9301
+ acc[key] = value;
9302
+ return acc;
9301
9303
  }, {});
9302
9304
  };
9303
9305
  const serializeAws_restJson1FilePathList = (input, context) => {
@@ -10297,6 +10299,8 @@ const serializeAws_restJson1SoftwarePackage = (input, context) => {
10297
10299
  ...(input.PackageManager != null && { PackageManager: input.PackageManager }),
10298
10300
  ...(input.Release != null && { Release: input.Release }),
10299
10301
  ...(input.Remediation != null && { Remediation: input.Remediation }),
10302
+ ...(input.SourceLayerArn != null && { SourceLayerArn: input.SourceLayerArn }),
10303
+ ...(input.SourceLayerHash != null && { SourceLayerHash: input.SourceLayerHash }),
10300
10304
  ...(input.Version != null && { Version: input.Version }),
10301
10305
  };
10302
10306
  };
@@ -10325,10 +10329,8 @@ const serializeAws_restJson1StandardsInputParameterMap = (input, context) => {
10325
10329
  if (value === null) {
10326
10330
  return acc;
10327
10331
  }
10328
- return {
10329
- ...acc,
10330
- [key]: value,
10331
- };
10332
+ acc[key] = value;
10333
+ return acc;
10332
10334
  }, {});
10333
10335
  };
10334
10336
  const serializeAws_restJson1StandardsSubscriptionArns = (input, context) => {
@@ -10417,10 +10419,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
10417
10419
  if (value === null) {
10418
10420
  return acc;
10419
10421
  }
10420
- return {
10421
- ...acc,
10422
- [key]: value,
10423
- };
10422
+ acc[key] = value;
10423
+ return acc;
10424
10424
  }, {});
10425
10425
  };
10426
10426
  const serializeAws_restJson1Threat = (input, context) => {
@@ -14227,6 +14227,9 @@ const deserializeAws_restJson1AwsLambdaFunctionDeadLetterConfig = (output, conte
14227
14227
  };
14228
14228
  const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
14229
14229
  return {
14230
+ Architectures: output.Architectures != null
14231
+ ? deserializeAws_restJson1NonEmptyStringList(output.Architectures, context)
14232
+ : undefined,
14230
14233
  Code: output.Code != null ? deserializeAws_restJson1AwsLambdaFunctionCode(output.Code, context) : undefined,
14231
14234
  CodeSha256: __expectString(output.CodeSha256),
14232
14235
  DeadLetterConfig: output.DeadLetterConfig != null
@@ -14242,6 +14245,7 @@ const deserializeAws_restJson1AwsLambdaFunctionDetails = (output, context) => {
14242
14245
  Layers: output.Layers != null ? deserializeAws_restJson1AwsLambdaFunctionLayerList(output.Layers, context) : undefined,
14243
14246
  MasterArn: __expectString(output.MasterArn),
14244
14247
  MemorySize: __expectInt32(output.MemorySize),
14248
+ PackageType: __expectString(output.PackageType),
14245
14249
  RevisionId: __expectString(output.RevisionId),
14246
14250
  Role: __expectString(output.Role),
14247
14251
  Runtime: __expectString(output.Runtime),
@@ -16553,10 +16557,8 @@ const deserializeAws_restJson1FieldMap = (output, context) => {
16553
16557
  if (value === null) {
16554
16558
  return acc;
16555
16559
  }
16556
- return {
16557
- ...acc,
16558
- [key]: __expectString(value),
16559
- };
16560
+ acc[key] = __expectString(value);
16561
+ return acc;
16560
16562
  }, {});
16561
16563
  };
16562
16564
  const deserializeAws_restJson1FilePathList = (output, context) => {
@@ -17848,6 +17850,8 @@ const deserializeAws_restJson1SoftwarePackage = (output, context) => {
17848
17850
  PackageManager: __expectString(output.PackageManager),
17849
17851
  Release: __expectString(output.Release),
17850
17852
  Remediation: __expectString(output.Remediation),
17853
+ SourceLayerArn: __expectString(output.SourceLayerArn),
17854
+ SourceLayerHash: __expectString(output.SourceLayerHash),
17851
17855
  Version: __expectString(output.Version),
17852
17856
  };
17853
17857
  };
@@ -17915,10 +17919,8 @@ const deserializeAws_restJson1StandardsInputParameterMap = (output, context) =>
17915
17919
  if (value === null) {
17916
17920
  return acc;
17917
17921
  }
17918
- return {
17919
- ...acc,
17920
- [key]: __expectString(value),
17921
- };
17922
+ acc[key] = __expectString(value);
17923
+ return acc;
17922
17924
  }, {});
17923
17925
  };
17924
17926
  const deserializeAws_restJson1StandardsStatusReason = (output, context) => {
@@ -18030,10 +18032,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
18030
18032
  if (value === null) {
18031
18033
  return acc;
18032
18034
  }
18033
- return {
18034
- ...acc,
18035
- [key]: __expectString(value),
18036
- };
18035
+ acc[key] = __expectString(value);
18036
+ return acc;
18037
18037
  }, {});
18038
18038
  };
18039
18039
  const deserializeAws_restJson1Threat = (output, context) => {
@@ -8271,7 +8271,7 @@ export interface AwsLambdaFunctionVpcConfig {
8271
8271
  VpcId?: string;
8272
8272
  }
8273
8273
  /**
8274
- * <p>Details about a function's configuration.</p>
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.211.0",
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,36 +19,36 @@
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.211.0",
23
- "@aws-sdk/config-resolver": "3.209.0",
24
- "@aws-sdk/credential-provider-node": "3.211.0",
25
- "@aws-sdk/fetch-http-handler": "3.208.0",
26
- "@aws-sdk/hash-node": "3.208.0",
27
- "@aws-sdk/invalid-dependency": "3.208.0",
28
- "@aws-sdk/middleware-content-length": "3.208.0",
29
- "@aws-sdk/middleware-endpoint": "3.208.0",
30
- "@aws-sdk/middleware-host-header": "3.208.0",
31
- "@aws-sdk/middleware-logger": "3.208.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.208.0",
33
- "@aws-sdk/middleware-retry": "3.209.0",
34
- "@aws-sdk/middleware-serde": "3.208.0",
35
- "@aws-sdk/middleware-signing": "3.208.0",
36
- "@aws-sdk/middleware-stack": "3.208.0",
37
- "@aws-sdk/middleware-user-agent": "3.208.0",
38
- "@aws-sdk/node-config-provider": "3.209.0",
39
- "@aws-sdk/node-http-handler": "3.208.0",
40
- "@aws-sdk/protocol-http": "3.208.0",
41
- "@aws-sdk/smithy-client": "3.209.0",
42
- "@aws-sdk/types": "3.208.0",
43
- "@aws-sdk/url-parser": "3.208.0",
22
+ "@aws-sdk/client-sts": "3.213.0",
23
+ "@aws-sdk/config-resolver": "3.212.0",
24
+ "@aws-sdk/credential-provider-node": "3.212.0",
25
+ "@aws-sdk/fetch-http-handler": "3.212.0",
26
+ "@aws-sdk/hash-node": "3.212.0",
27
+ "@aws-sdk/invalid-dependency": "3.212.0",
28
+ "@aws-sdk/middleware-content-length": "3.212.0",
29
+ "@aws-sdk/middleware-endpoint": "3.212.0",
30
+ "@aws-sdk/middleware-host-header": "3.212.0",
31
+ "@aws-sdk/middleware-logger": "3.212.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
33
+ "@aws-sdk/middleware-retry": "3.212.0",
34
+ "@aws-sdk/middleware-serde": "3.212.0",
35
+ "@aws-sdk/middleware-signing": "3.212.0",
36
+ "@aws-sdk/middleware-stack": "3.212.0",
37
+ "@aws-sdk/middleware-user-agent": "3.212.0",
38
+ "@aws-sdk/node-config-provider": "3.212.0",
39
+ "@aws-sdk/node-http-handler": "3.212.0",
40
+ "@aws-sdk/protocol-http": "3.212.0",
41
+ "@aws-sdk/smithy-client": "3.212.0",
42
+ "@aws-sdk/types": "3.212.0",
43
+ "@aws-sdk/url-parser": "3.212.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.209.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.209.0",
49
- "@aws-sdk/util-endpoints": "3.211.0",
50
- "@aws-sdk/util-user-agent-browser": "3.208.0",
51
- "@aws-sdk/util-user-agent-node": "3.209.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.212.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
49
+ "@aws-sdk/util-endpoints": "3.212.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
51
+ "@aws-sdk/util-user-agent-node": "3.212.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
53
  "@aws-sdk/util-utf8-node": "3.208.0",
54
54
  "tslib": "^2.3.1"