@aws-sdk/client-lambda 3.41.0 → 3.46.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.
@@ -591,6 +591,46 @@ export declare namespace DestinationConfig {
591
591
  */
592
592
  const filterSensitiveLog: (obj: DestinationConfig) => any;
593
593
  }
594
+ /**
595
+ * <p>
596
+ * A structure within a <code>FilterCriteria</code> object that defines an event filtering pattern.
597
+ * </p>
598
+ */
599
+ export interface Filter {
600
+ /**
601
+ * <p>
602
+ * A filter pattern. For more information on the syntax of a filter pattern, see
603
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax">
604
+ * Filter rule syntax</a>.
605
+ * </p>
606
+ */
607
+ Pattern?: string;
608
+ }
609
+ export declare namespace Filter {
610
+ /**
611
+ * @internal
612
+ */
613
+ const filterSensitiveLog: (obj: Filter) => any;
614
+ }
615
+ /**
616
+ * <p>
617
+ * An object that contains the filters for an event source.
618
+ * </p>
619
+ */
620
+ export interface FilterCriteria {
621
+ /**
622
+ * <p>
623
+ * A list of filters.
624
+ * </p>
625
+ */
626
+ Filters?: Filter[];
627
+ }
628
+ export declare namespace FilterCriteria {
629
+ /**
630
+ * @internal
631
+ */
632
+ const filterSensitiveLog: (obj: FilterCriteria) => any;
633
+ }
594
634
  export declare enum FunctionResponseType {
595
635
  ReportBatchItemFailures = "ReportBatchItemFailures"
596
636
  }
@@ -617,8 +657,10 @@ export declare namespace SelfManagedEventSource {
617
657
  }
618
658
  export declare enum SourceAccessType {
619
659
  BASIC_AUTH = "BASIC_AUTH",
660
+ CLIENT_CERTIFICATE_TLS_AUTH = "CLIENT_CERTIFICATE_TLS_AUTH",
620
661
  SASL_SCRAM_256_AUTH = "SASL_SCRAM_256_AUTH",
621
662
  SASL_SCRAM_512_AUTH = "SASL_SCRAM_512_AUTH",
663
+ SERVER_ROOT_CA_CERTIFICATE = "SERVER_ROOT_CA_CERTIFICATE",
622
664
  VIRTUAL_HOST = "VIRTUAL_HOST",
623
665
  VPC_SECURITY_GROUP = "VPC_SECURITY_GROUP",
624
666
  VPC_SUBNET = "VPC_SUBNET"
@@ -656,7 +698,18 @@ export interface SourceAccessConfiguration {
656
698
  * </li>
657
699
  * <li>
658
700
  * <p>
659
- * <code>VIRTUAL_HOST</code> - (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source.</p>
701
+ * <code>VIRTUAL_HOST</code> - (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source.
702
+ * This property cannot be specified in an UpdateEventSourceMapping API call.</p>
703
+ * </li>
704
+ * <li>
705
+ * <p>
706
+ * <code>CLIENT_CERTIFICATE_TLS_AUTH</code> - (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM),
707
+ * private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.</p>
708
+ * </li>
709
+ * <li>
710
+ * <p>
711
+ * <code>SERVER_ROOT_CA_CERTIFICATE</code> - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
712
+ * </p>
660
713
  * </li>
661
714
  * </ul>
662
715
  */
@@ -756,9 +809,18 @@ export interface CreateEventSourceMappingRequest {
756
809
  * <p>
757
810
  * <b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p>
758
811
  * </li>
812
+ * <li>
813
+ * <p>
814
+ * <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p>
815
+ * </li>
759
816
  * </ul>
760
817
  */
761
818
  BatchSize?: number;
819
+ /**
820
+ * <p>(Streams and Amazon SQS) An object that defines the filter criteria that
821
+ * determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
822
+ */
823
+ FilterCriteria?: FilterCriteria;
762
824
  /**
763
825
  * <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
764
826
  * <p>Default: 0</p>
@@ -816,7 +878,7 @@ export interface CreateEventSourceMappingRequest {
816
878
  */
817
879
  SelfManagedEventSource?: SelfManagedEventSource;
818
880
  /**
819
- * <p>(Streams only) A list of current response type enums applied to the event source mapping.</p>
881
+ * <p>(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
820
882
  */
821
883
  FunctionResponseTypes?: (FunctionResponseType | string)[];
822
884
  }
@@ -864,6 +926,11 @@ export interface EventSourceMappingConfiguration {
864
926
  * <p>The Amazon Resource Name (ARN) of the event source.</p>
865
927
  */
866
928
  EventSourceArn?: string;
929
+ /**
930
+ * <p>(Streams and Amazon SQS) An object that defines the filter criteria that
931
+ * determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
932
+ */
933
+ FilterCriteria?: FilterCriteria;
867
934
  /**
868
935
  * <p>The ARN of the Lambda function.</p>
869
936
  */
@@ -1194,7 +1261,8 @@ export interface CreateFunctionRequest {
1194
1261
  */
1195
1262
  FunctionName: string | undefined;
1196
1263
  /**
1197
- * <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>.</p>
1264
+ * <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive.
1265
+ * </p>
1198
1266
  */
1199
1267
  Runtime?: Runtime | string;
1200
1268
  /**
@@ -1202,7 +1270,8 @@ export interface CreateFunctionRequest {
1202
1270
  */
1203
1271
  Role: string | undefined;
1204
1272
  /**
1205
- * <p>The name of the method within your code that Lambda calls to execute your function. The format includes the
1273
+ * <p>The name of the method within your code that Lambda calls to execute your function.
1274
+ * Handler is required if the deployment package is a .zip file archive. The format includes the
1206
1275
  * file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information,
1207
1276
  * see <a href="https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html">Programming Model</a>.</p>
1208
1277
  */
@@ -1216,7 +1285,7 @@ export interface CreateFunctionRequest {
1216
1285
  */
1217
1286
  Description?: string;
1218
1287
  /**
1219
- * <p>The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The
1288
+ * <p>The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The
1220
1289
  * maximum allowed value is 900 seconds. For additional information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html">Lambda execution environment</a>.</p>
1221
1290
  */
1222
1291
  Timeout?: number;
@@ -1285,8 +1354,8 @@ export interface CreateFunctionRequest {
1285
1354
  */
1286
1355
  CodeSigningConfigArn?: string;
1287
1356
  /**
1288
- * <p>The instruction set architecture that the function supports. Enter a string array with one of the valid values.
1289
- * The default value is <code>x86_64</code>.</p>
1357
+ * <p>The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64).
1358
+ * The default value is <code>x86_64</code>.</p>
1290
1359
  */
1291
1360
  Architectures?: (Architecture | string)[];
1292
1361
  }
@@ -1545,7 +1614,7 @@ export interface FunctionConfiguration {
1545
1614
  Environment?: EnvironmentResponse;
1546
1615
  /**
1547
1616
  * <p>The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've
1548
- * configured a customer managed CMK.</p>
1617
+ * configured a customer managed key.</p>
1549
1618
  */
1550
1619
  KMSKeyArn?: string;
1551
1620
  /**
@@ -1553,7 +1622,7 @@ export interface FunctionConfiguration {
1553
1622
  */
1554
1623
  TracingConfig?: TracingConfigResponse;
1555
1624
  /**
1556
- * <p>For Lambda@Edge functions, the ARN of the master function.</p>
1625
+ * <p>For Lambda@Edge functions, the ARN of the main function.</p>
1557
1626
  */
1558
1627
  MasterArn?: string;
1559
1628
  /**
@@ -2876,6 +2945,9 @@ export interface InvocationRequest {
2876
2945
  ClientContext?: string;
2877
2946
  /**
2878
2947
  * <p>The JSON that you want to provide to your Lambda function as input.</p>
2948
+ * <p>You can enter the JSON directly. For example, <code>--payload '{ "key": "value" }'</code>.
2949
+ * You can also specify a file path. For example, <code>--payload file://payload.json</code>.
2950
+ * </p>
2879
2951
  */
2880
2952
  Payload?: Uint8Array;
2881
2953
  /**
@@ -4412,9 +4484,18 @@ export interface UpdateEventSourceMappingRequest {
4412
4484
  * <p>
4413
4485
  * <b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p>
4414
4486
  * </li>
4487
+ * <li>
4488
+ * <p>
4489
+ * <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p>
4490
+ * </li>
4415
4491
  * </ul>
4416
4492
  */
4417
4493
  BatchSize?: number;
4494
+ /**
4495
+ * <p>(Streams and Amazon SQS) An object that defines the filter criteria that
4496
+ * determine whether Lambda should process an event. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda event filtering</a>.</p>
4497
+ */
4498
+ FilterCriteria?: FilterCriteria;
4418
4499
  /**
4419
4500
  * <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
4420
4501
  * <p>Default: 0</p>
@@ -4450,7 +4531,7 @@ export interface UpdateEventSourceMappingRequest {
4450
4531
  */
4451
4532
  TumblingWindowInSeconds?: number;
4452
4533
  /**
4453
- * <p>(Streams only) A list of current response type enums applied to the event source mapping.</p>
4534
+ * <p>(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
4454
4535
  */
4455
4536
  FunctionResponseTypes?: (FunctionResponseType | string)[];
4456
4537
  }
@@ -4521,8 +4602,8 @@ export interface UpdateFunctionCodeRequest {
4521
4602
  */
4522
4603
  RevisionId?: string;
4523
4604
  /**
4524
- * <p>The instruction set architecture that the function supports. Enter a string array with one of the valid values.
4525
- * The default value is <code>x86_64</code>.</p>
4605
+ * <p>The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64).
4606
+ * The default value is <code>x86_64</code>.</p>
4526
4607
  */
4527
4608
  Architectures?: (Architecture | string)[];
4528
4609
  }
@@ -4561,7 +4642,8 @@ export interface UpdateFunctionConfigurationRequest {
4561
4642
  */
4562
4643
  Role?: string;
4563
4644
  /**
4564
- * <p>The name of the method within your code that Lambda calls to execute your function. The format includes the
4645
+ * <p>The name of the method within your code that Lambda calls to execute your function.
4646
+ * Handler is required if the deployment package is a .zip file archive. The format includes the
4565
4647
  * file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information,
4566
4648
  * see <a href="https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html">Programming Model</a>.</p>
4567
4649
  */
@@ -4571,7 +4653,7 @@ export interface UpdateFunctionConfigurationRequest {
4571
4653
  */
4572
4654
  Description?: string;
4573
4655
  /**
4574
- * <p>The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The
4656
+ * <p>The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The
4575
4657
  * maximum allowed value is 900 seconds. For additional information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html">Lambda execution environment</a>.</p>
4576
4658
  */
4577
4659
  Timeout?: number;
@@ -4591,7 +4673,8 @@ export interface UpdateFunctionConfigurationRequest {
4591
4673
  */
4592
4674
  Environment?: Environment;
4593
4675
  /**
4594
- * <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>.</p>
4676
+ * <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive.
4677
+ * </p>
4595
4678
  */
4596
4679
  Runtime?: Runtime | string;
4597
4680
  /**
@@ -324,6 +324,24 @@ export declare namespace DestinationConfig {
324
324
 
325
325
  const filterSensitiveLog: (obj: DestinationConfig) => any;
326
326
  }
327
+
328
+ export interface Filter {
329
+
330
+ Pattern?: string;
331
+ }
332
+ export declare namespace Filter {
333
+
334
+ const filterSensitiveLog: (obj: Filter) => any;
335
+ }
336
+
337
+ export interface FilterCriteria {
338
+
339
+ Filters?: Filter[];
340
+ }
341
+ export declare namespace FilterCriteria {
342
+
343
+ const filterSensitiveLog: (obj: FilterCriteria) => any;
344
+ }
327
345
  export declare enum FunctionResponseType {
328
346
  ReportBatchItemFailures = "ReportBatchItemFailures"
329
347
  }
@@ -343,8 +361,10 @@ export declare namespace SelfManagedEventSource {
343
361
  }
344
362
  export declare enum SourceAccessType {
345
363
  BASIC_AUTH = "BASIC_AUTH",
364
+ CLIENT_CERTIFICATE_TLS_AUTH = "CLIENT_CERTIFICATE_TLS_AUTH",
346
365
  SASL_SCRAM_256_AUTH = "SASL_SCRAM_256_AUTH",
347
366
  SASL_SCRAM_512_AUTH = "SASL_SCRAM_512_AUTH",
367
+ SERVER_ROOT_CA_CERTIFICATE = "SERVER_ROOT_CA_CERTIFICATE",
348
368
  VIRTUAL_HOST = "VIRTUAL_HOST",
349
369
  VPC_SECURITY_GROUP = "VPC_SECURITY_GROUP",
350
370
  VPC_SUBNET = "VPC_SUBNET"
@@ -375,6 +395,8 @@ export interface CreateEventSourceMappingRequest {
375
395
 
376
396
  BatchSize?: number;
377
397
 
398
+ FilterCriteria?: FilterCriteria;
399
+
378
400
  MaximumBatchingWindowInSeconds?: number;
379
401
 
380
402
  ParallelizationFactor?: number;
@@ -424,6 +446,8 @@ export interface EventSourceMappingConfiguration {
424
446
 
425
447
  EventSourceArn?: string;
426
448
 
449
+ FilterCriteria?: FilterCriteria;
450
+
427
451
  FunctionArn?: string;
428
452
 
429
453
  LastModified?: Date;
@@ -2124,6 +2148,8 @@ export interface UpdateEventSourceMappingRequest {
2124
2148
 
2125
2149
  BatchSize?: number;
2126
2150
 
2151
+ FilterCriteria?: FilterCriteria;
2152
+
2127
2153
  MaximumBatchingWindowInSeconds?: number;
2128
2154
 
2129
2155
  DestinationConfig?: DestinationConfig;
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.41.0",
4
+ "version": "3.46.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
12
  "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
13
+ "clean:dist": "rimraf ./dist-*",
14
+ "clean:docs": "rimraf ./docs"
16
15
  },
17
16
  "main": "./dist-cjs/index.js",
18
17
  "types": "./dist-types/index.d.ts",
@@ -21,49 +20,43 @@
21
20
  "dependencies": {
22
21
  "@aws-crypto/sha256-browser": "2.0.0",
23
22
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.41.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
52
- "@aws-sdk/util-waiter": "3.40.0",
23
+ "@aws-sdk/client-sts": "3.46.0",
24
+ "@aws-sdk/config-resolver": "3.46.0",
25
+ "@aws-sdk/credential-provider-node": "3.46.0",
26
+ "@aws-sdk/fetch-http-handler": "3.46.0",
27
+ "@aws-sdk/hash-node": "3.46.0",
28
+ "@aws-sdk/invalid-dependency": "3.46.0",
29
+ "@aws-sdk/middleware-content-length": "3.46.0",
30
+ "@aws-sdk/middleware-host-header": "3.46.0",
31
+ "@aws-sdk/middleware-logger": "3.46.0",
32
+ "@aws-sdk/middleware-retry": "3.46.0",
33
+ "@aws-sdk/middleware-serde": "3.46.0",
34
+ "@aws-sdk/middleware-signing": "3.46.0",
35
+ "@aws-sdk/middleware-stack": "3.46.0",
36
+ "@aws-sdk/middleware-user-agent": "3.46.0",
37
+ "@aws-sdk/node-config-provider": "3.46.0",
38
+ "@aws-sdk/node-http-handler": "3.46.0",
39
+ "@aws-sdk/protocol-http": "3.46.0",
40
+ "@aws-sdk/smithy-client": "3.46.0",
41
+ "@aws-sdk/types": "3.46.0",
42
+ "@aws-sdk/url-parser": "3.46.0",
43
+ "@aws-sdk/util-base64-browser": "3.46.0",
44
+ "@aws-sdk/util-base64-node": "3.46.0",
45
+ "@aws-sdk/util-body-length-browser": "3.46.0",
46
+ "@aws-sdk/util-body-length-node": "3.46.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.46.0",
48
+ "@aws-sdk/util-user-agent-node": "3.46.0",
49
+ "@aws-sdk/util-utf8-browser": "3.46.0",
50
+ "@aws-sdk/util-utf8-node": "3.46.0",
51
+ "@aws-sdk/util-waiter": "3.46.0",
53
52
  "tslib": "^2.3.0"
54
53
  },
55
54
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
57
- "@types/node": "^12.7.5",
58
- "downlevel-dts": "0.7.0",
59
- "jest": "^26.1.0",
60
- "rimraf": "^3.0.0",
61
- "ts-jest": "^26.4.1",
62
- "typedoc": "^0.19.2",
63
- "typescript": "~4.3.5"
55
+ "@aws-sdk/service-client-documentation-generator": "3.46.0",
56
+ "@types/node": "^12.7.5"
64
57
  },
65
58
  "engines": {
66
- "node": ">=10.0.0"
59
+ "node": ">=12.0.0"
67
60
  },
68
61
  "typesVersions": {
69
62
  "<4.0": {