Skip to content

Commit

Permalink
feat(AWSLambda): update models to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk committed Nov 15, 2023
1 parent ec1cf57 commit 58ee85c
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 15 deletions.
22 changes: 18 additions & 4 deletions AWSLambda/AWSLambdaModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ typedef NS_ENUM(NSInteger, AWSLambdaRuntime) {
AWSLambdaRuntimeJava17,
AWSLambdaRuntimeRuby32,
AWSLambdaRuntimePython311,
AWSLambdaRuntimeNodejs20X,
AWSLambdaRuntimeProvidedAl2023,
AWSLambdaRuntimePython312,
AWSLambdaRuntimeJava21,
};

typedef NS_ENUM(NSInteger, AWSLambdaSnapStartApplyOn) {
Expand Down Expand Up @@ -1052,7 +1056,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@property (nonatomic, strong) AWSLambdaEnvironment * _Nullable environment;

/**
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.</p>
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
*/
@property (nonatomic, strong) AWSLambdaEphemeralStorage * _Nullable ephemeralStorage;

Expand Down Expand Up @@ -1481,7 +1485,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@end

/**
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.</p>
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
Required parameters: [Size]
*/
@interface AWSLambdaEphemeralStorage : AWSModel
Expand Down Expand Up @@ -1780,7 +1784,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@property (nonatomic, strong) AWSLambdaEnvironmentResponse * _Nullable environment;

/**
<p>The size of the functions <code>/tmp</code> directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.</p>
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
*/
@property (nonatomic, strong) AWSLambdaEphemeralStorage * _Nullable ephemeralStorage;

Expand Down Expand Up @@ -4353,7 +4357,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@property (nonatomic, strong) AWSLambdaEnvironment * _Nullable environment;

/**
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.</p>
<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
*/
@property (nonatomic, strong) AWSLambdaEphemeralStorage * _Nullable ephemeralStorage;

Expand Down Expand Up @@ -4544,6 +4548,11 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@interface AWSLambdaVpcConfig : AWSModel


/**
<p>Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.</p>
*/
@property (nonatomic, strong) NSNumber * _Nullable ipv6AllowedForDualStack;

/**
<p>A list of VPC security group IDs.</p>
*/
Expand All @@ -4562,6 +4571,11 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@interface AWSLambdaVpcConfigResponse : AWSModel


/**
<p>Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.</p>
*/
@property (nonatomic, strong) NSNumber * _Nullable ipv6AllowedForDualStack;

/**
<p>A list of VPC security group IDs.</p>
*/
Expand Down
102 changes: 102 additions & 0 deletions AWSLambda/AWSLambdaModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,18 @@ + (NSValueTransformer *)runtimeJSONTransformer {
if ([value caseInsensitiveCompare:@"python3.11"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython311);
}
if ([value caseInsensitiveCompare:@"nodejs20.x"] == NSOrderedSame) {
return @(AWSLambdaRuntimeNodejs20X);
}
if ([value caseInsensitiveCompare:@"provided.al2023"] == NSOrderedSame) {
return @(AWSLambdaRuntimeProvidedAl2023);
}
if ([value caseInsensitiveCompare:@"python3.12"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython312);
}
if ([value caseInsensitiveCompare:@"java21"] == NSOrderedSame) {
return @(AWSLambdaRuntimeJava21);
}
return @(AWSLambdaRuntimeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand Down Expand Up @@ -715,6 +727,14 @@ + (NSValueTransformer *)runtimeJSONTransformer {
return @"ruby3.2";
case AWSLambdaRuntimePython311:
return @"python3.11";
case AWSLambdaRuntimeNodejs20X:
return @"nodejs20.x";
case AWSLambdaRuntimeProvidedAl2023:
return @"provided.al2023";
case AWSLambdaRuntimePython312:
return @"python3.12";
case AWSLambdaRuntimeJava21:
return @"java21";
default:
return nil;
}
Expand Down Expand Up @@ -1681,6 +1701,18 @@ + (NSValueTransformer *)runtimeJSONTransformer {
if ([value caseInsensitiveCompare:@"python3.11"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython311);
}
if ([value caseInsensitiveCompare:@"nodejs20.x"] == NSOrderedSame) {
return @(AWSLambdaRuntimeNodejs20X);
}
if ([value caseInsensitiveCompare:@"provided.al2023"] == NSOrderedSame) {
return @(AWSLambdaRuntimeProvidedAl2023);
}
if ([value caseInsensitiveCompare:@"python3.12"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython312);
}
if ([value caseInsensitiveCompare:@"java21"] == NSOrderedSame) {
return @(AWSLambdaRuntimeJava21);
}
return @(AWSLambdaRuntimeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand Down Expand Up @@ -1748,6 +1780,14 @@ + (NSValueTransformer *)runtimeJSONTransformer {
return @"ruby3.2";
case AWSLambdaRuntimePython311:
return @"python3.11";
case AWSLambdaRuntimeNodejs20X:
return @"nodejs20.x";
case AWSLambdaRuntimeProvidedAl2023:
return @"provided.al2023";
case AWSLambdaRuntimePython312:
return @"python3.12";
case AWSLambdaRuntimeJava21:
return @"java21";
default:
return nil;
}
Expand Down Expand Up @@ -3354,6 +3394,18 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
if ([value caseInsensitiveCompare:@"python3.11"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython311);
}
if ([value caseInsensitiveCompare:@"nodejs20.x"] == NSOrderedSame) {
return @(AWSLambdaRuntimeNodejs20X);
}
if ([value caseInsensitiveCompare:@"provided.al2023"] == NSOrderedSame) {
return @(AWSLambdaRuntimeProvidedAl2023);
}
if ([value caseInsensitiveCompare:@"python3.12"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython312);
}
if ([value caseInsensitiveCompare:@"java21"] == NSOrderedSame) {
return @(AWSLambdaRuntimeJava21);
}
return @(AWSLambdaRuntimeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand Down Expand Up @@ -3421,6 +3473,14 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
return @"ruby3.2";
case AWSLambdaRuntimePython311:
return @"python3.11";
case AWSLambdaRuntimeNodejs20X:
return @"nodejs20.x";
case AWSLambdaRuntimeProvidedAl2023:
return @"provided.al2023";
case AWSLambdaRuntimePython312:
return @"python3.12";
case AWSLambdaRuntimeJava21:
return @"java21";
default:
return nil;
}
Expand Down Expand Up @@ -3582,6 +3642,18 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
if ([value caseInsensitiveCompare:@"python3.11"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython311);
}
if ([value caseInsensitiveCompare:@"nodejs20.x"] == NSOrderedSame) {
return @(AWSLambdaRuntimeNodejs20X);
}
if ([value caseInsensitiveCompare:@"provided.al2023"] == NSOrderedSame) {
return @(AWSLambdaRuntimeProvidedAl2023);
}
if ([value caseInsensitiveCompare:@"python3.12"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython312);
}
if ([value caseInsensitiveCompare:@"java21"] == NSOrderedSame) {
return @(AWSLambdaRuntimeJava21);
}
return @(AWSLambdaRuntimeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand Down Expand Up @@ -3649,6 +3721,14 @@ + (NSValueTransformer *)compatibleRuntimeJSONTransformer {
return @"ruby3.2";
case AWSLambdaRuntimePython311:
return @"python3.11";
case AWSLambdaRuntimeNodejs20X:
return @"nodejs20.x";
case AWSLambdaRuntimeProvidedAl2023:
return @"provided.al2023";
case AWSLambdaRuntimePython312:
return @"python3.12";
case AWSLambdaRuntimeJava21:
return @"java21";
default:
return nil;
}
Expand Down Expand Up @@ -4780,6 +4860,18 @@ + (NSValueTransformer *)runtimeJSONTransformer {
if ([value caseInsensitiveCompare:@"python3.11"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython311);
}
if ([value caseInsensitiveCompare:@"nodejs20.x"] == NSOrderedSame) {
return @(AWSLambdaRuntimeNodejs20X);
}
if ([value caseInsensitiveCompare:@"provided.al2023"] == NSOrderedSame) {
return @(AWSLambdaRuntimeProvidedAl2023);
}
if ([value caseInsensitiveCompare:@"python3.12"] == NSOrderedSame) {
return @(AWSLambdaRuntimePython312);
}
if ([value caseInsensitiveCompare:@"java21"] == NSOrderedSame) {
return @(AWSLambdaRuntimeJava21);
}
return @(AWSLambdaRuntimeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand Down Expand Up @@ -4847,6 +4939,14 @@ + (NSValueTransformer *)runtimeJSONTransformer {
return @"ruby3.2";
case AWSLambdaRuntimePython311:
return @"python3.11";
case AWSLambdaRuntimeNodejs20X:
return @"nodejs20.x";
case AWSLambdaRuntimeProvidedAl2023:
return @"provided.al2023";
case AWSLambdaRuntimePython312:
return @"python3.12";
case AWSLambdaRuntimeJava21:
return @"java21";
default:
return nil;
}
Expand Down Expand Up @@ -5027,6 +5127,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"ipv6AllowedForDualStack" : @"Ipv6AllowedForDualStack",
@"securityGroupIds" : @"SecurityGroupIds",
@"subnetIds" : @"SubnetIds",
};
Expand All @@ -5042,6 +5143,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"ipv6AllowedForDualStack" : @"Ipv6AllowedForDualStack",
@"securityGroupIds" : @"SecurityGroupIds",
@"subnetIds" : @"SubnetIds",
@"vpcId" : @"VpcId",
Expand Down
Loading

0 comments on commit 58ee85c

Please sign in to comment.