cdk-comprehend-s3olap 2.0.117 → 2.0.119

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.
Files changed (27) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-comprehend-s3olap.js +2 -2
  3. package/lib/comprehend-lambdas.js +2 -2
  4. package/lib/iam-roles.js +4 -4
  5. package/node_modules/aws-sdk/CHANGELOG.md +12 -1
  6. package/node_modules/aws-sdk/README.md +1 -1
  7. package/node_modules/aws-sdk/apis/cloudformation-2010-05-15.waiters2.json +6 -0
  8. package/node_modules/aws-sdk/apis/docdb-2014-10-31.min.json +2 -1
  9. package/node_modules/aws-sdk/apis/lambda-2015-03-31.min.json +122 -36
  10. package/node_modules/aws-sdk/apis/proton-2020-07-20.min.json +422 -137
  11. package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +535 -151
  12. package/node_modules/aws-sdk/clients/docdb.d.ts +6 -2
  13. package/node_modules/aws-sdk/clients/fsx.d.ts +31 -31
  14. package/node_modules/aws-sdk/clients/greengrassv2.d.ts +4 -4
  15. package/node_modules/aws-sdk/clients/lambda.d.ts +137 -37
  16. package/node_modules/aws-sdk/clients/proton.d.ts +358 -5
  17. package/node_modules/aws-sdk/clients/quicksight.d.ts +379 -1
  18. package/node_modules/aws-sdk/clients/rds.d.ts +8 -8
  19. package/node_modules/aws-sdk/clients/redshiftdata.d.ts +18 -18
  20. package/node_modules/aws-sdk/clients/servicecatalog.d.ts +1 -1
  21. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  22. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +6 -6
  23. package/node_modules/aws-sdk/dist/aws-sdk.js +131 -39
  24. package/node_modules/aws-sdk/dist/aws-sdk.min.js +91 -91
  25. package/node_modules/aws-sdk/lib/core.js +1 -1
  26. package/node_modules/aws-sdk/package.json +1 -1
  27. package/package.json +10 -10
@@ -5,6 +5,7 @@ import {Service} from '../lib/service';
5
5
  import {WaiterConfiguration} from '../lib/service';
6
6
  import {ServiceConfigurationOptions} from '../lib/service';
7
7
  import {ConfigBase as Config} from '../lib/config-base';
8
+ import {EventStream} from '../lib/event-stream/event-stream';
8
9
  import {Readable} from 'stream';
9
10
  interface Blob {}
10
11
  declare class Lambda extends Service {
@@ -46,11 +47,11 @@ declare class Lambda extends Service {
46
47
  */
47
48
  createCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.CreateCodeSigningConfigResponse) => void): Request<Lambda.Types.CreateCodeSigningConfigResponse, AWSError>;
48
49
  /**
49
- * Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka
50
+ * Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB
50
51
  */
51
52
  createEventSourceMapping(params: Lambda.Types.CreateEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
52
53
  /**
53
- * Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka
54
+ * Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB
54
55
  */
55
56
  createEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
56
57
  /**
@@ -293,6 +294,14 @@ declare class Lambda extends Service {
293
294
  * For asynchronous function invocation, use Invoke. Invokes a function asynchronously.
294
295
  */
295
296
  invokeAsync(callback?: (err: AWSError, data: Lambda.Types.InvokeAsyncResponse) => void): Request<Lambda.Types.InvokeAsyncResponse, AWSError>;
297
+ /**
298
+ * Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.
299
+ */
300
+ invokeWithResponseStream(params: Lambda.Types.InvokeWithResponseStreamRequest, callback?: (err: AWSError, data: Lambda.Types.InvokeWithResponseStreamResponse) => void): Request<Lambda.Types.InvokeWithResponseStreamResponse, AWSError>;
301
+ /**
302
+ * Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.
303
+ */
304
+ invokeWithResponseStream(callback?: (err: AWSError, data: Lambda.Types.InvokeWithResponseStreamResponse) => void): Request<Lambda.Types.InvokeWithResponseStreamResponse, AWSError>;
296
305
  /**
297
306
  * Returns a list of aliases for a Lambda function.
298
307
  */
@@ -494,11 +503,11 @@ declare class Lambda extends Service {
494
503
  */
495
504
  updateCodeSigningConfig(callback?: (err: AWSError, data: Lambda.Types.UpdateCodeSigningConfigResponse) => void): Request<Lambda.Types.UpdateCodeSigningConfigResponse, AWSError>;
496
505
  /**
497
- * Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka
506
+ * Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB
498
507
  */
499
508
  updateEventSourceMapping(params: Lambda.Types.UpdateEventSourceMappingRequest, callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
500
509
  /**
501
- * Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka
510
+ * Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location. For details about how to configure different event sources, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB The following error handling options are available only for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry. DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. ParallelizationFactor – Process multiple batches from each shard concurrently. For information about which configuration parameters apply to each event source, see the following topics. Amazon DynamoDB Streams Amazon Kinesis Amazon SQS Amazon MQ and RabbitMQ Amazon MSK Apache Kafka Amazon DocumentDB
502
511
  */
503
512
  updateEventSourceMapping(callback?: (err: AWSError, data: Lambda.Types.EventSourceMappingConfiguration) => void): Request<Lambda.Types.EventSourceMappingConfiguration, AWSError>;
504
513
  /**
@@ -882,7 +891,7 @@ declare namespace Lambda {
882
891
  }
883
892
  export interface CreateEventSourceMappingRequest {
884
893
  /**
885
- * The Amazon Resource Name (ARN) of the event source. Amazon Kinesis – The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams – The ARN of the stream. Amazon Simple Queue Service – The ARN of the queue. Amazon Managed Streaming for Apache Kafka – The ARN of the cluster. Amazon MQ – The ARN of the broker.
894
+ * The Amazon Resource Name (ARN) of the event source. Amazon Kinesis – The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams – The ARN of the stream. Amazon Simple Queue Service – The ARN of the queue. Amazon Managed Streaming for Apache Kafka – The ARN of the cluster. Amazon MQ – The ARN of the broker. Amazon DocumentDB – The ARN of the DocumentDB change stream.
886
895
  */
887
896
  EventSourceArn?: Arn;
888
897
  /**
@@ -894,7 +903,7 @@ declare namespace Lambda {
894
903
  */
895
904
  Enabled?: Enabled;
896
905
  /**
897
- * The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). Amazon Kinesis – Default 100. Max 10,000. Amazon DynamoDB Streams – Default 100. Max 10,000. Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000. Self-managed Apache Kafka – Default 100. Max 10,000. Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
906
+ * The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). Amazon Kinesis – Default 100. Max 10,000. Amazon DynamoDB Streams – Default 100. Max 10,000. Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000. Self-managed Apache Kafka – Default 100. Max 10,000. Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000. DocumentDB – Default 100. Max 10,000.
898
907
  */
899
908
  BatchSize?: BatchSize;
900
909
  /**
@@ -902,15 +911,15 @@ declare namespace Lambda {
902
911
  */
903
912
  FilterCriteria?: FilterCriteria;
904
913
  /**
905
- * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of seconds. For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping. Related setting: For streams and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
914
+ * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of seconds. For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping. Related setting: For streams and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
906
915
  */
907
916
  MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds;
908
917
  /**
909
- * (Streams only) The number of batches to process from each shard concurrently.
918
+ * (Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.
910
919
  */
911
920
  ParallelizationFactor?: ParallelizationFactor;
912
921
  /**
913
- * The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.
922
+ * The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams and Amazon DocumentDB.
914
923
  */
915
924
  StartingPosition?: EventSourcePosition;
916
925
  /**
@@ -918,23 +927,23 @@ declare namespace Lambda {
918
927
  */
919
928
  StartingPositionTimestamp?: _Date;
920
929
  /**
921
- * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
930
+ * (Kinesis and DynamoDB Streams only) A standard Amazon SQS queue or standard Amazon SNS topic destination for discarded records.
922
931
  */
923
932
  DestinationConfig?: DestinationConfig;
924
933
  /**
925
- * (Streams only) Discard records older than the specified age. The default value is infinite (-1).
934
+ * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is infinite (-1).
926
935
  */
927
936
  MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds;
928
937
  /**
929
- * (Streams only) If the function returns an error, split the batch in two and retry.
938
+ * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.
930
939
  */
931
940
  BisectBatchOnFunctionError?: BisectBatchOnFunctionError;
932
941
  /**
933
- * (Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
942
+ * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
934
943
  */
935
944
  MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping;
936
945
  /**
937
- * (Streams only) The duration in seconds of a processing window. The range is between 1 second and 900 seconds.
946
+ * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
938
947
  */
939
948
  TumblingWindowInSeconds?: TumblingWindowInSeconds;
940
949
  /**
@@ -954,7 +963,7 @@ declare namespace Lambda {
954
963
  */
955
964
  SelfManagedEventSource?: SelfManagedEventSource;
956
965
  /**
957
- * (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
966
+ * (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.
958
967
  */
959
968
  FunctionResponseTypes?: FunctionResponseTypeList;
960
969
  /**
@@ -1085,6 +1094,10 @@ declare namespace Lambda {
1085
1094
  * The cross-origin resource sharing (CORS) settings for your function URL.
1086
1095
  */
1087
1096
  Cors?: Cors;
1097
+ /**
1098
+ * Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
1099
+ */
1100
+ InvokeMode?: InvokeMode;
1088
1101
  }
1089
1102
  export interface CreateFunctionUrlConfigResponse {
1090
1103
  /**
@@ -1107,6 +1120,10 @@ declare namespace Lambda {
1107
1120
  * When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
1108
1121
  */
1109
1122
  CreationTime: Timestamp;
1123
+ /**
1124
+ * Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
1125
+ */
1126
+ InvokeMode?: InvokeMode;
1110
1127
  }
1111
1128
  export type DatabaseName = string;
1112
1129
  export type _Date = Date;
@@ -1275,7 +1292,7 @@ declare namespace Lambda {
1275
1292
  */
1276
1293
  UUID?: String;
1277
1294
  /**
1278
- * The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.
1295
+ * The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams and Amazon DocumentDB.
1279
1296
  */
1280
1297
  StartingPosition?: EventSourcePosition;
1281
1298
  /**
@@ -1287,11 +1304,11 @@ declare namespace Lambda {
1287
1304
  */
1288
1305
  BatchSize?: BatchSize;
1289
1306
  /**
1290
- * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of seconds. For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping. Related setting: For streams and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
1307
+ * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of seconds. For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping. Related setting: For streams and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
1291
1308
  */
1292
1309
  MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds;
1293
1310
  /**
1294
- * (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
1311
+ * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.
1295
1312
  */
1296
1313
  ParallelizationFactor?: ParallelizationFactor;
1297
1314
  /**
@@ -1323,7 +1340,7 @@ declare namespace Lambda {
1323
1340
  */
1324
1341
  StateTransitionReason?: String;
1325
1342
  /**
1326
- * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
1343
+ * (Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
1327
1344
  */
1328
1345
  DestinationConfig?: DestinationConfig;
1329
1346
  /**
@@ -1343,23 +1360,23 @@ declare namespace Lambda {
1343
1360
  */
1344
1361
  SelfManagedEventSource?: SelfManagedEventSource;
1345
1362
  /**
1346
- * (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
1363
+ * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
1347
1364
  */
1348
1365
  MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds;
1349
1366
  /**
1350
- * (Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
1367
+ * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
1351
1368
  */
1352
1369
  BisectBatchOnFunctionError?: BisectBatchOnFunctionError;
1353
1370
  /**
1354
- * (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
1371
+ * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
1355
1372
  */
1356
1373
  MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping;
1357
1374
  /**
1358
- * (Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
1375
+ * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
1359
1376
  */
1360
1377
  TumblingWindowInSeconds?: TumblingWindowInSeconds;
1361
1378
  /**
1362
- * (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
1379
+ * (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.
1363
1380
  */
1364
1381
  FunctionResponseTypes?: FunctionResponseTypeList;
1365
1382
  /**
@@ -1610,7 +1627,7 @@ declare namespace Lambda {
1610
1627
  */
1611
1628
  MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds;
1612
1629
  /**
1613
- * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
1630
+ * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of a standard SQS queue. Topic - The ARN of a standard SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
1614
1631
  */
1615
1632
  DestinationConfig?: DestinationConfig;
1616
1633
  }
@@ -1646,6 +1663,10 @@ declare namespace Lambda {
1646
1663
  * The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
1647
1664
  */
1648
1665
  AuthType: FunctionUrlAuthType;
1666
+ /**
1667
+ * Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
1668
+ */
1669
+ InvokeMode?: InvokeMode;
1649
1670
  }
1650
1671
  export type FunctionUrlConfigList = FunctionUrlConfig[];
1651
1672
  export type FunctionUrlQualifier = string;
@@ -1801,6 +1822,10 @@ declare namespace Lambda {
1801
1822
  * When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
1802
1823
  */
1803
1824
  LastModifiedTime: Timestamp;
1825
+ /**
1826
+ * Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
1827
+ */
1828
+ InvokeMode?: InvokeMode;
1804
1829
  }
1805
1830
  export interface GetLayerVersionByArnRequest {
1806
1831
  /**
@@ -2060,6 +2085,72 @@ declare namespace Lambda {
2060
2085
  */
2061
2086
  Status?: HttpStatus;
2062
2087
  }
2088
+ export type InvokeMode = "BUFFERED"|"RESPONSE_STREAM"|string;
2089
+ export interface InvokeResponseStreamUpdate {
2090
+ /**
2091
+ * Data returned by your Lambda function.
2092
+ */
2093
+ Payload?: Buffer;
2094
+ }
2095
+ export interface InvokeWithResponseStreamCompleteEvent {
2096
+ /**
2097
+ * An error code.
2098
+ */
2099
+ ErrorCode?: String;
2100
+ /**
2101
+ * The details of any returned error.
2102
+ */
2103
+ ErrorDetails?: String;
2104
+ /**
2105
+ * The last 4 KB of the execution log, which is base64-encoded.
2106
+ */
2107
+ LogResult?: String;
2108
+ }
2109
+ export interface InvokeWithResponseStreamRequest {
2110
+ /**
2111
+ * The name of the Lambda function. Name formats Function name – my-function. Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN – 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2112
+ */
2113
+ FunctionName: NamespacedFunctionName;
2114
+ /**
2115
+ * Use one of the following options: RequestResponse (default) – Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API operation response includes the function response and additional data. DryRun – Validate parameter values and verify that the IAM user or role has permission to invoke the function.
2116
+ */
2117
+ InvocationType?: ResponseStreamingInvocationType;
2118
+ /**
2119
+ * Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
2120
+ */
2121
+ LogType?: LogType;
2122
+ /**
2123
+ * Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object.
2124
+ */
2125
+ ClientContext?: String;
2126
+ /**
2127
+ * The alias name.
2128
+ */
2129
+ Qualifier?: Qualifier;
2130
+ /**
2131
+ * The JSON that you want to provide to your Lambda function as input. You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.
2132
+ */
2133
+ Payload?: _Blob;
2134
+ }
2135
+ export interface InvokeWithResponseStreamResponse {
2136
+ /**
2137
+ * For a successful request, the HTTP status code is in the 200 range. For the RequestResponse invocation type, this status code is 200. For the DryRun invocation type, this status code is 204.
2138
+ */
2139
+ StatusCode?: Integer;
2140
+ /**
2141
+ * The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
2142
+ */
2143
+ ExecutedVersion?: Version;
2144
+ /**
2145
+ * The stream of response payloads.
2146
+ */
2147
+ EventStream?: InvokeWithResponseStreamResponseEvent;
2148
+ /**
2149
+ * The type of data the stream is returning.
2150
+ */
2151
+ ResponseStreamContentType?: String;
2152
+ }
2153
+ export type InvokeWithResponseStreamResponseEvent = EventStream<{PayloadChunk?:InvokeResponseStreamUpdate,InvokeComplete?:InvokeWithResponseStreamCompleteEvent}>;
2063
2154
  export type KMSKeyArn = string;
2064
2155
  export type LastUpdateStatus = "Successful"|"Failed"|"InProgress"|string;
2065
2156
  export type LastUpdateStatusReason = string;
@@ -2227,7 +2318,7 @@ declare namespace Lambda {
2227
2318
  }
2228
2319
  export interface ListEventSourceMappingsRequest {
2229
2320
  /**
2230
- * The Amazon Resource Name (ARN) of the event source. Amazon Kinesis – The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams – The ARN of the stream. Amazon Simple Queue Service – The ARN of the queue. Amazon Managed Streaming for Apache Kafka – The ARN of the cluster. Amazon MQ – The ARN of the broker.
2321
+ * The Amazon Resource Name (ARN) of the event source. Amazon Kinesis – The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams – The ARN of the stream. Amazon Simple Queue Service – The ARN of the queue. Amazon Managed Streaming for Apache Kafka – The ARN of the cluster. Amazon MQ – The ARN of the broker. Amazon DocumentDB – The ARN of the DocumentDB change stream.
2231
2322
  */
2232
2323
  EventSourceArn?: Arn;
2233
2324
  /**
@@ -2677,7 +2768,7 @@ declare namespace Lambda {
2677
2768
  */
2678
2769
  MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds;
2679
2770
  /**
2680
- * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
2771
+ * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of a standard SQS queue. Topic - The ARN of a standard SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
2681
2772
  */
2682
2773
  DestinationConfig?: DestinationConfig;
2683
2774
  }
@@ -2794,6 +2885,7 @@ declare namespace Lambda {
2794
2885
  }
2795
2886
  export type ReservedConcurrentExecutions = number;
2796
2887
  export type ResourceArn = string;
2888
+ export type ResponseStreamingInvocationType = "RequestResponse"|"DryRun"|string;
2797
2889
  export type RoleArn = string;
2798
2890
  export type Runtime = "nodejs"|"nodejs4.3"|"nodejs6.10"|"nodejs8.10"|"nodejs10.x"|"nodejs12.x"|"nodejs14.x"|"nodejs16.x"|"java8"|"java8.al2"|"java11"|"python2.7"|"python3.6"|"python3.7"|"python3.8"|"python3.9"|"dotnetcore1.0"|"dotnetcore2.0"|"dotnetcore2.1"|"dotnetcore3.1"|"dotnet6"|"nodejs4.3-edge"|"go1.x"|"ruby2.5"|"ruby2.7"|"provided"|"provided.al2"|"nodejs18.x"|string;
2799
2891
  export type RuntimeVersionArn = string;
@@ -2989,7 +3081,7 @@ declare namespace Lambda {
2989
3081
  */
2990
3082
  Enabled?: Enabled;
2991
3083
  /**
2992
- * The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). Amazon Kinesis – Default 100. Max 10,000. Amazon DynamoDB Streams – Default 100. Max 10,000. Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000. Self-managed Apache Kafka – Default 100. Max 10,000. Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
3084
+ * The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). Amazon Kinesis – Default 100. Max 10,000. Amazon DynamoDB Streams – Default 100. Max 10,000. Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000. Self-managed Apache Kafka – Default 100. Max 10,000. Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000. DocumentDB – Default 100. Max 10,000.
2993
3085
  */
2994
3086
  BatchSize?: BatchSize;
2995
3087
  /**
@@ -2997,27 +3089,27 @@ declare namespace Lambda {
2997
3089
  */
2998
3090
  FilterCriteria?: FilterCriteria;
2999
3091
  /**
3000
- * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of seconds. For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping. Related setting: For streams and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
3092
+ * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of seconds. For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping. Related setting: For streams and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
3001
3093
  */
3002
3094
  MaximumBatchingWindowInSeconds?: MaximumBatchingWindowInSeconds;
3003
3095
  /**
3004
- * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
3096
+ * (Kinesis and DynamoDB Streams only) A standard Amazon SQS queue or standard Amazon SNS topic destination for discarded records.
3005
3097
  */
3006
3098
  DestinationConfig?: DestinationConfig;
3007
3099
  /**
3008
- * (Streams only) Discard records older than the specified age. The default value is infinite (-1).
3100
+ * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is infinite (-1).
3009
3101
  */
3010
3102
  MaximumRecordAgeInSeconds?: MaximumRecordAgeInSeconds;
3011
3103
  /**
3012
- * (Streams only) If the function returns an error, split the batch in two and retry.
3104
+ * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.
3013
3105
  */
3014
3106
  BisectBatchOnFunctionError?: BisectBatchOnFunctionError;
3015
3107
  /**
3016
- * (Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
3108
+ * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
3017
3109
  */
3018
3110
  MaximumRetryAttempts?: MaximumRetryAttemptsEventSourceMapping;
3019
3111
  /**
3020
- * (Streams only) The number of batches to process from each shard concurrently.
3112
+ * (Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.
3021
3113
  */
3022
3114
  ParallelizationFactor?: ParallelizationFactor;
3023
3115
  /**
@@ -3025,11 +3117,11 @@ declare namespace Lambda {
3025
3117
  */
3026
3118
  SourceAccessConfigurations?: SourceAccessConfigurations;
3027
3119
  /**
3028
- * (Streams only) The duration in seconds of a processing window. The range is between 1 second and 900 seconds.
3120
+ * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
3029
3121
  */
3030
3122
  TumblingWindowInSeconds?: TumblingWindowInSeconds;
3031
3123
  /**
3032
- * (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
3124
+ * (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping.
3033
3125
  */
3034
3126
  FunctionResponseTypes?: FunctionResponseTypeList;
3035
3127
  /**
@@ -3175,7 +3267,7 @@ declare namespace Lambda {
3175
3267
  */
3176
3268
  MaximumEventAgeInSeconds?: MaximumEventAgeInSeconds;
3177
3269
  /**
3178
- * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of an SQS queue. Topic - The ARN of an SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
3270
+ * A destination for events after they have been sent to a function for processing. Destinations Function - The Amazon Resource Name (ARN) of a Lambda function. Queue - The ARN of a standard SQS queue. Topic - The ARN of a standard SNS topic. Event Bus - The ARN of an Amazon EventBridge event bus.
3179
3271
  */
3180
3272
  DestinationConfig?: DestinationConfig;
3181
3273
  }
@@ -3196,6 +3288,10 @@ declare namespace Lambda {
3196
3288
  * The cross-origin resource sharing (CORS) settings for your function URL.
3197
3289
  */
3198
3290
  Cors?: Cors;
3291
+ /**
3292
+ * Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
3293
+ */
3294
+ InvokeMode?: InvokeMode;
3199
3295
  }
3200
3296
  export interface UpdateFunctionUrlConfigResponse {
3201
3297
  /**
@@ -3222,6 +3318,10 @@ declare namespace Lambda {
3222
3318
  * When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
3223
3319
  */
3224
3320
  LastModifiedTime: Timestamp;
3321
+ /**
3322
+ * Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
3323
+ */
3324
+ InvokeMode?: InvokeMode;
3225
3325
  }
3226
3326
  export type UpdateRuntimeOn = "Auto"|"Manual"|"FunctionUpdate"|string;
3227
3327
  export type Version = string;