Skip to content

Commit 4ca3ba6

Browse files
authored
Merge branch 'main' into rework-blank-java
2 parents 8ac6ab4 + 56569af commit 4ca3ba6

File tree

192 files changed

+5307
-2132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+5307
-2132
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# AmazonManagedKafkaEventSourceConfig<a name="API_AmazonManagedKafkaEventSourceConfig"></a>
2+
3+
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka \(Amazon MSK\) event source\.
4+
5+
## Contents<a name="API_AmazonManagedKafkaEventSourceConfig_Contents"></a>
6+
7+
** ConsumerGroupId ** <a name="SSS-Type-AmazonManagedKafkaEventSourceConfig-ConsumerGroupId"></a>
8+
The identifier for the Kafka consumer group to join\. The consumer group ID must be unique among all your Kafka event sources\. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value\. For more information, see [Customizable consumer group ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id)\.
9+
Type: String
10+
Length Constraints: Minimum length of 1\. Maximum length of 200\.
11+
Pattern: `[a-zA-Z0-9-\/*:_+=.@-]*`
12+
Required: No
13+
14+
## See Also<a name="API_AmazonManagedKafkaEventSourceConfig_SeeAlso"></a>
15+
16+
For more information about using this API in one of the language\-specific AWS SDKs, see the following:
17+
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig)
18+
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig)
19+
+ [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig)
20+
+ [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig)

doc_source/API_CreateCodeSigningConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CreateCodeSigningConfig<a name="API_CreateCodeSigningConfig"></a>
22

3-
Creates a code signing configuration\. A [code signing configuration](https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html) defines a list of allowed signing profiles and defines the code\-signing validation policy \(action to be taken if deployment validation checks fail\)\.
3+
Creates a code signing configuration\. A [code signing configuration](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html) defines a list of allowed signing profiles and defines the code\-signing validation policy \(action to be taken if deployment validation checks fail\)\.
44

55
## Request Syntax<a name="API_CreateCodeSigningConfig_RequestSyntax"></a>
66

doc_source/API_CreateEventSourceMapping.md

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CreateEventSourceMapping<a name="API_CreateEventSourceMapping"></a>
22

3-
Creates a mapping between an event source and an AWS Lambda function\. Lambda reads items from the event source and triggers the function\.
3+
Creates a mapping between an event source and an AWS Lambda function\. Lambda reads items from the event source and invokes the function\.
44

55
For details about how to configure different event sources, see the following topics\.
66
+ [ Amazon DynamoDB Streams](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
@@ -10,7 +10,7 @@ For details about how to configure different event sources, see the following to
1010
+ [ Amazon MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
1111
+ [ Apache Kafka](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
1212

13-
The following error handling options are only available for stream sources \(DynamoDB and Kinesis\):
13+
The following error handling options are available only for stream sources \(DynamoDB and Kinesis\):
1414
+ `BisectBatchOnFunctionError` \- If the function returns an error, split the batch in two and retry\.
1515
+ `DestinationConfig` \- Send discarded records to an Amazon SQS queue or Amazon SNS topic\.
1616
+ `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
@@ -32,6 +32,9 @@ POST /2015-03-31/event-source-mappings/ HTTP/1.1
3232
Content-type: application/json
3333
3434
{
35+
"AmazonManagedKafkaEventSourceConfig": {
36+
"ConsumerGroupId": "string"
37+
},
3538
"BatchSize": number,
3639
"BisectBatchOnFunctionError": boolean,
3740
"DestinationConfig": {
@@ -63,6 +66,9 @@ Content-type: application/json
6366
"string" : [ "string" ]
6467
}
6568
},
69+
"SelfManagedKafkaEventSourceConfig": {
70+
"ConsumerGroupId": "string"
71+
},
6672
"SourceAccessConfigurations": [
6773
{
6874
"Type": "string",
@@ -84,13 +90,18 @@ The request does not use any URI parameters\.
8490

8591
The request accepts the following data in JSON format\.
8692

93+
** [AmazonManagedKafkaEventSourceConfig](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-AmazonManagedKafkaEventSourceConfig"></a>
94+
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka \(Amazon MSK\) event source\.
95+
Type: [AmazonManagedKafkaEventSourceConfig](API_AmazonManagedKafkaEventSourceConfig.md) object
96+
Required: No
97+
8798
** [BatchSize](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-BatchSize"></a>
8899
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\)\.
89100
+ **Amazon Kinesis** \- Default 100\. Max 10,000\.
90101
+ **Amazon DynamoDB Streams** \- Default 100\. Max 10,000\.
91102
+ **Amazon Simple Queue Service** \- Default 10\. For standard queues the max is 10,000\. For FIFO queues the max is 10\.
92103
+ **Amazon Managed Streaming for Apache Kafka** \- Default 100\. Max 10,000\.
93-
+ **Self\-Managed Apache Kafka** \- Default 100\. Max 10,000\.
104+
+ **Self\-managed Apache Kafka** \- Default 100\. Max 10,000\.
94105
+ **Amazon MQ \(ActiveMQ and RabbitMQ\)** \- Default 100\. Max 10,000\.
95106
Type: Integer
96107
Valid Range: Minimum value of 1\. Maximum value of 10000\.
@@ -118,12 +129,13 @@ The Amazon Resource Name \(ARN\) of the event source\.
118129
+ **Amazon DynamoDB Streams** \- The ARN of the stream\.
119130
+ **Amazon Simple Queue Service** \- The ARN of the queue\.
120131
+ **Amazon Managed Streaming for Apache Kafka** \- The ARN of the cluster\.
132+
+ **Amazon MQ** \- The ARN of the broker\.
121133
Type: String
122134
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
123135
Required: No
124136

125137
** [FilterCriteria](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-FilterCriteria"></a>
126-
\(Streams and Amazon SQS\) An object that defines the filter criteria that determine whether Lambda should process an event\. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html)\.
138+
An object that defines the filter criteria that determine whether Lambda should process an event\. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html)\.
127139
Type: [FilterCriteria](API_FilterCriteria.md) object
128140
Required: No
129141

@@ -149,9 +161,9 @@ Valid Values:` ReportBatchItemFailures`
149161
Required: No
150162

151163
** [MaximumBatchingWindowInSeconds](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-MaximumBatchingWindowInSeconds"></a>
152-
\(Streams and Amazon SQS standard queues\) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function\.
153-
Default: 0
154-
Related setting: When you set `BatchSize` to a value greater than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1\.
164+
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\.
165+
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\.
166+
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\.
155167
Type: Integer
156168
Valid Range: Minimum value of 0\. Maximum value of 300\.
157169
Required: No
@@ -163,7 +175,7 @@ Valid Range: Minimum value of \-1\. Maximum value of 604800\.
163175
Required: No
164176

165177
** [MaximumRetryAttempts](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-MaximumRetryAttempts"></a>
166-
\(Streams only\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite \(\-1\), failed records will be retried until the record expires\.
178+
\(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\.
167179
Type: Integer
168180
Valid Range: Minimum value of \-1\. Maximum value of 10000\.
169181
Required: No
@@ -183,8 +195,13 @@ Pattern: `[\s\S]*`
183195
Required: No
184196

185197
** [SelfManagedEventSource](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-SelfManagedEventSource"></a>
186-
The Self\-Managed Apache Kafka cluster to send records\.
198+
The self\-managed Apache Kafka cluster to receive records from\.
187199
Type: [SelfManagedEventSource](API_SelfManagedEventSource.md) object
200+
Required: No
201+
202+
** [SelfManagedKafkaEventSourceConfig](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-SelfManagedKafkaEventSourceConfig"></a>
203+
Specific configuration settings for a self\-managed Apache Kafka event source\.
204+
Type: [SelfManagedKafkaEventSourceConfig](API_SelfManagedKafkaEventSourceConfig.md) object
188205
Required: No
189206

190207
** [SourceAccessConfigurations](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-SourceAccessConfigurations"></a>
@@ -194,7 +211,7 @@ Array Members: Minimum number of 0 items\. Maximum number of 22 items\.
194211
Required: No
195212

196213
** [StartingPosition](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-StartingPosition"></a>
197-
The position in a stream from which to start reading\. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources\. `AT_TIMESTAMP` is only supported for Amazon Kinesis streams\.
214+
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\.
198215
Type: String
199216
Valid Values:` TRIM_HORIZON | LATEST | AT_TIMESTAMP`
200217
Required: No
@@ -213,7 +230,7 @@ Pattern: `^[^.]([a-zA-Z0-9\-_.]+)`
213230
Required: No
214231

215232
** [TumblingWindowInSeconds](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-TumblingWindowInSeconds"></a>
216-
\(Streams only\) The duration in seconds of a processing window\. The range is between 1 second up to 900 seconds\.
233+
\(Streams only\) The duration in seconds of a processing window\. The range is between 1 second and 900 seconds\.
217234
Type: Integer
218235
Valid Range: Minimum value of 0\. Maximum value of 900\.
219236
Required: No
@@ -225,6 +242,9 @@ HTTP/1.1 202
225242
Content-type: application/json
226243
227244
{
245+
"AmazonManagedKafkaEventSourceConfig": {
246+
"ConsumerGroupId": "string"
247+
},
228248
"BatchSize": number,
229249
"BisectBatchOnFunctionError": boolean,
230250
"DestinationConfig": {
@@ -257,6 +277,9 @@ Content-type: application/json
257277
"string" : [ "string" ]
258278
}
259279
},
280+
"SelfManagedKafkaEventSourceConfig": {
281+
"ConsumerGroupId": "string"
282+
},
260283
"SourceAccessConfigurations": [
261284
{
262285
"Type": "string",
@@ -279,6 +302,10 @@ If the action is successful, the service sends back an HTTP 202 response\.
279302

280303
The following data is returned in JSON format by the service\.
281304

305+
** [AmazonManagedKafkaEventSourceConfig](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-AmazonManagedKafkaEventSourceConfig"></a>
306+
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka \(Amazon MSK\) event source\.
307+
Type: [AmazonManagedKafkaEventSourceConfig](API_AmazonManagedKafkaEventSourceConfig.md) object
308+
282309
** [BatchSize](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-BatchSize"></a>
283310
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\)\.
284311
Default value: Varies by service\. For Amazon SQS, the default is 10\. For all other services, the default is 100\.
@@ -300,7 +327,7 @@ Type: String
300327
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
301328

302329
** [FilterCriteria](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-FilterCriteria"></a>
303-
\(Streams and Amazon SQS\) An object that defines the filter criteria that determine whether Lambda should process an event\. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html)\.
330+
An object that defines the filter criteria that determine whether Lambda should process an event\. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html)\.
304331
Type: [FilterCriteria](API_FilterCriteria.md) object
305332

306333
** [FunctionArn](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-FunctionArn"></a>
@@ -323,9 +350,9 @@ The result of the last Lambda invocation of your function\.
323350
Type: String
324351

325352
** [MaximumBatchingWindowInSeconds](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-MaximumBatchingWindowInSeconds"></a>
326-
\(Streams and Amazon SQS standard queues\) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function\.
327-
Default: 0
328-
Related setting: When you set `BatchSize` to a value greater than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1\.
353+
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\.
354+
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\.
355+
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\.
329356
Type: Integer
330357
Valid Range: Minimum value of 0\. Maximum value of 300\.
331358

@@ -355,6 +382,10 @@ Pattern: `[\s\S]*`
355382
The self\-managed Apache Kafka cluster for your event source\.
356383
Type: [SelfManagedEventSource](API_SelfManagedEventSource.md) object
357384

385+
** [SelfManagedKafkaEventSourceConfig](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-SelfManagedKafkaEventSourceConfig"></a>
386+
Specific configuration settings for a self\-managed Apache Kafka event source\.
387+
Type: [SelfManagedKafkaEventSourceConfig](API_SelfManagedKafkaEventSourceConfig.md) object
388+
358389
** [SourceAccessConfigurations](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-SourceAccessConfigurations"></a>
359390
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source\.
360391
Type: Array of [SourceAccessConfiguration](API_SourceAccessConfiguration.md) objects

doc_source/API_CreateFunction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Type: String
335335
Length Constraints: Minimum length of 0\. Maximum length of 256\.
336336

337337
** [Environment](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Environment"></a>
338-
The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html)\.
338+
The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html)\. Omitted from AWS CloudTrail logs\.
339339
Type: [EnvironmentResponse](API_EnvironmentResponse.md) object
340340

341341
** [EphemeralStorage](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-EphemeralStorage"></a>

0 commit comments

Comments
 (0)