Skip to content

Commit 0b1bf25

Browse files
feat(AWSLambda): update models to latest (#4139)
Co-authored-by: Ian Saultz <52051793+atierian@users.noreply.github.com>
1 parent 86c059a commit 0b1bf25

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

AWSLambda/AWSLambdaModel.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaRuntime) {
155155
AWSLambdaRuntimeNodejs10X,
156156
AWSLambdaRuntimeNodejs12X,
157157
AWSLambdaRuntimeNodejs14X,
158+
AWSLambdaRuntimeNodejs16X,
158159
AWSLambdaRuntimeJava8,
159160
AWSLambdaRuntimeJava8Al2,
160161
AWSLambdaRuntimeJava11,
@@ -799,7 +800,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaTracingMode) {
799800

800801

801802
/**
802-
<p>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).</p><ul><li><p><b>Amazon Kinesis</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon DynamoDB Streams</b> - Default 100. Max 1,000.</p></li><li><p><b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p></li><li><p><b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p></li></ul>
803+
<p>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).</p><ul><li><p><b>Amazon Kinesis</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon DynamoDB Streams</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p></li><li><p><b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p></li></ul>
803804
*/
804805
@property (nonatomic, strong) NSNumber * _Nullable batchSize;
805806

@@ -1373,7 +1374,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaTracingMode) {
13731374
@property (nonatomic, strong) NSString * _Nullable functionArn;
13741375

13751376
/**
1376-
<p>(Streams only) A list of current response type enums applied to the event source mapping.</p>
1377+
<p>(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
13771378
*/
13781379
@property (nonatomic, strong) NSArray<NSString *> * _Nullable functionResponseTypes;
13791380

@@ -3689,7 +3690,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaTracingMode) {
36893690

36903691

36913692
/**
3692-
<p>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).</p><ul><li><p><b>Amazon Kinesis</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon DynamoDB Streams</b> - Default 100. Max 1,000.</p></li><li><p><b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p></li><li><p><b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p></li></ul>
3693+
<p>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).</p><ul><li><p><b>Amazon Kinesis</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon DynamoDB Streams</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p></li><li><p><b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p></li><li><p><b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p></li></ul>
36933694
*/
36943695
@property (nonatomic, strong) NSNumber * _Nullable batchSize;
36953696

AWSLambda/AWSLambdaModel.m

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ + (NSValueTransformer *)runtimeJSONTransformer {
538538
if ([value caseInsensitiveCompare:@"nodejs14.x"] == NSOrderedSame) {
539539
return @(AWSLambdaRuntimeNodejs14X);
540540
}
541+
if ([value caseInsensitiveCompare:@"nodejs16.x"] == NSOrderedSame) {
542+
return @(AWSLambdaRuntimeNodejs16X);
543+
}
541544
if ([value caseInsensitiveCompare:@"java8"] == NSOrderedSame) {
542545
return @(AWSLambdaRuntimeJava8);
543546
}
@@ -612,6 +615,8 @@ + (NSValueTransformer *)runtimeJSONTransformer {
612615
return @"nodejs12.x";
613616
case AWSLambdaRuntimeNodejs14X:
614617
return @"nodejs14.x";
618+
case AWSLambdaRuntimeNodejs16X:
619+
return @"nodejs16.x";
615620
case AWSLambdaRuntimeJava8:
616621
return @"java8";
617622
case AWSLambdaRuntimeJava8Al2:
@@ -1379,6 +1384,9 @@ + (NSValueTransformer *)runtimeJSONTransformer {
13791384
if ([value caseInsensitiveCompare:@"nodejs14.x"] == NSOrderedSame) {
13801385
return @(AWSLambdaRuntimeNodejs14X);
13811386
}
1387+
if ([value caseInsensitiveCompare:@"nodejs16.x"] == NSOrderedSame) {
1388+
return @(AWSLambdaRuntimeNodejs16X);
1389+
}
13821390
if ([value caseInsensitiveCompare:@"java8"] == NSOrderedSame) {
13831391
return @(AWSLambdaRuntimeJava8);
13841392
}
@@ -1453,6 +1461,8 @@ + (NSValueTransformer *)runtimeJSONTransformer {
14531461
return @"nodejs12.x";
14541462
case AWSLambdaRuntimeNodejs14X:
14551463
return @"nodejs14.x";
1464+
case AWSLambdaRuntimeNodejs16X:
1465+
return @"nodejs16.x";
14561466
case AWSLambdaRuntimeJava8:
14571467
return @"java8";
14581468
case AWSLambdaRuntimeJava8Al2:
@@ -2723,6 +2733,9 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
27232733
if ([value caseInsensitiveCompare:@"nodejs14.x"] == NSOrderedSame) {
27242734
return @(AWSLambdaRuntimeNodejs14X);
27252735
}
2736+
if ([value caseInsensitiveCompare:@"nodejs16.x"] == NSOrderedSame) {
2737+
return @(AWSLambdaRuntimeNodejs16X);
2738+
}
27262739
if ([value caseInsensitiveCompare:@"java8"] == NSOrderedSame) {
27272740
return @(AWSLambdaRuntimeJava8);
27282741
}
@@ -2797,6 +2810,8 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
27972810
return @"nodejs12.x";
27982811
case AWSLambdaRuntimeNodejs14X:
27992812
return @"nodejs14.x";
2813+
case AWSLambdaRuntimeNodejs16X:
2814+
return @"nodejs16.x";
28002815
case AWSLambdaRuntimeJava8:
28012816
return @"java8";
28022817
case AWSLambdaRuntimeJava8Al2:
@@ -2921,6 +2936,9 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
29212936
if ([value caseInsensitiveCompare:@"nodejs14.x"] == NSOrderedSame) {
29222937
return @(AWSLambdaRuntimeNodejs14X);
29232938
}
2939+
if ([value caseInsensitiveCompare:@"nodejs16.x"] == NSOrderedSame) {
2940+
return @(AWSLambdaRuntimeNodejs16X);
2941+
}
29242942
if ([value caseInsensitiveCompare:@"java8"] == NSOrderedSame) {
29252943
return @(AWSLambdaRuntimeJava8);
29262944
}
@@ -2995,6 +3013,8 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
29953013
return @"nodejs12.x";
29963014
case AWSLambdaRuntimeNodejs14X:
29973015
return @"nodejs14.x";
3016+
case AWSLambdaRuntimeNodejs16X:
3017+
return @"nodejs16.x";
29983018
case AWSLambdaRuntimeJava8:
29993019
return @"java8";
30003020
case AWSLambdaRuntimeJava8Al2:
@@ -3839,6 +3859,9 @@ + (NSValueTransformer *)runtimeJSONTransformer {
38393859
if ([value caseInsensitiveCompare:@"nodejs14.x"] == NSOrderedSame) {
38403860
return @(AWSLambdaRuntimeNodejs14X);
38413861
}
3862+
if ([value caseInsensitiveCompare:@"nodejs16.x"] == NSOrderedSame) {
3863+
return @(AWSLambdaRuntimeNodejs16X);
3864+
}
38423865
if ([value caseInsensitiveCompare:@"java8"] == NSOrderedSame) {
38433866
return @(AWSLambdaRuntimeJava8);
38443867
}
@@ -3913,6 +3936,8 @@ + (NSValueTransformer *)runtimeJSONTransformer {
39133936
return @"nodejs12.x";
39143937
case AWSLambdaRuntimeNodejs14X:
39153938
return @"nodejs14.x";
3939+
case AWSLambdaRuntimeNodejs16X:
3940+
return @"nodejs16.x";
39163941
case AWSLambdaRuntimeJava8:
39173942
return @"java8";
39183943
case AWSLambdaRuntimeJava8Al2:

AWSLambda/AWSLambdaResources.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ - (NSString *)definitionString {
17031703
},\
17041704
\"BatchSize\":{\
17051705
\"shape\":\"BatchSize\",\
1706-
\"documentation\":\"<p>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).</p> <ul> <li> <p> <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> - Default 100. Max 1,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p> </li> </ul>\"\
1706+
\"documentation\":\"<p>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).</p> <ul> <li> <p> <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p> </li> </ul>\"\
17071707
},\
17081708
\"FilterCriteria\":{\
17091709
\"shape\":\"FilterCriteria\",\
@@ -2398,7 +2398,7 @@ - (NSString *)definitionString {
23982398
},\
23992399
\"FunctionResponseTypes\":{\
24002400
\"shape\":\"FunctionResponseTypeList\",\
2401-
\"documentation\":\"<p>(Streams only) A list of current response type enums applied to the event source mapping.</p>\"\
2401+
\"documentation\":\"<p>(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>\"\
24022402
}\
24032403
},\
24042404
\"documentation\":\"<p>A mapping between an Amazon Web Services resource and a Lambda function. For details, see <a>CreateEventSourceMapping</a>.</p>\"\
@@ -4830,6 +4830,7 @@ - (NSString *)definitionString {
48304830
\"nodejs10.x\",\
48314831
\"nodejs12.x\",\
48324832
\"nodejs14.x\",\
4833+
\"nodejs16.x\",\
48334834
\"java8\",\
48344835
\"java8.al2\",\
48354836
\"java11\",\
@@ -5235,7 +5236,7 @@ - (NSString *)definitionString {
52355236
},\
52365237
\"BatchSize\":{\
52375238
\"shape\":\"BatchSize\",\
5238-
\"documentation\":\"<p>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).</p> <ul> <li> <p> <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> - Default 100. Max 1,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p> </li> </ul>\"\
5239+
\"documentation\":\"<p>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).</p> <ul> <li> <p> <b>Amazon Kinesis</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-Managed Apache Kafka</b> - Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> - Default 100. Max 10,000.</p> </li> </ul>\"\
52395240
},\
52405241
\"FilterCriteria\":{\
52415242
\"shape\":\"FilterCriteria\",\

0 commit comments

Comments
 (0)