Skip to content

Commit

Permalink
feat(AWSLambda): update models to latest (#5068)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored and harsh62 committed Nov 17, 2023
1 parent add51c4 commit cc1198d
Show file tree
Hide file tree
Showing 5 changed files with 370 additions and 4 deletions.
71 changes: 71 additions & 0 deletions AWSLambda/AWSLambdaModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ typedef NS_ENUM(NSInteger, AWSLambdaErrorType) {
AWSLambdaErrorUnsupportedMediaType,
};

typedef NS_ENUM(NSInteger, AWSLambdaApplicationLogLevel) {
AWSLambdaApplicationLogLevelUnknown,
AWSLambdaApplicationLogLevelTrace,
AWSLambdaApplicationLogLevelDebug,
AWSLambdaApplicationLogLevelInfo,
AWSLambdaApplicationLogLevelWarn,
AWSLambdaApplicationLogLevelError,
AWSLambdaApplicationLogLevelFatal,
};

typedef NS_ENUM(NSInteger, AWSLambdaArchitecture) {
AWSLambdaArchitectureUnknown,
AWSLambdaArchitectureX86_64,
Expand Down Expand Up @@ -154,6 +164,12 @@ typedef NS_ENUM(NSInteger, AWSLambdaLastUpdateStatusReasonCode) {
AWSLambdaLastUpdateStatusReasonCodeFunctionError,
};

typedef NS_ENUM(NSInteger, AWSLambdaLogFormat) {
AWSLambdaLogFormatUnknown,
AWSLambdaLogFormatJson,
AWSLambdaLogFormatText,
};

typedef NS_ENUM(NSInteger, AWSLambdaLogType) {
AWSLambdaLogTypeUnknown,
AWSLambdaLogTypeNone,
Expand Down Expand Up @@ -213,6 +229,10 @@ typedef NS_ENUM(NSInteger, AWSLambdaRuntime) {
AWSLambdaRuntimeJava17,
AWSLambdaRuntimeRuby32,
AWSLambdaRuntimePython311,
AWSLambdaRuntimeNodejs20X,
AWSLambdaRuntimeProvidedAl2023,
AWSLambdaRuntimePython312,
AWSLambdaRuntimeJava21,
};

typedef NS_ENUM(NSInteger, AWSLambdaSnapStartApplyOn) {
Expand Down Expand Up @@ -275,6 +295,13 @@ typedef NS_ENUM(NSInteger, AWSLambdaStateReasonCode) {
AWSLambdaStateReasonCodeFunctionError,
};

typedef NS_ENUM(NSInteger, AWSLambdaSystemLogLevel) {
AWSLambdaSystemLogLevelUnknown,
AWSLambdaSystemLogLevelDebug,
AWSLambdaSystemLogLevelInfo,
AWSLambdaSystemLogLevelWarn,
};

typedef NS_ENUM(NSInteger, AWSLambdaThrottleReason) {
AWSLambdaThrottleReasonUnknown,
AWSLambdaThrottleReasonConcurrentInvocationLimitExceeded,
Expand Down Expand Up @@ -414,6 +441,7 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
@class AWSLambdaListTagsResponse;
@class AWSLambdaListVersionsByFunctionRequest;
@class AWSLambdaListVersionsByFunctionResponse;
@class AWSLambdaLoggingConfig;
@class AWSLambdaOnFailure;
@class AWSLambdaOnSuccess;
@class AWSLambdaProvisionedConcurrencyConfigListItem;
Expand Down Expand Up @@ -1086,6 +1114,11 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
*/
@property (nonatomic, strong) NSArray<NSString *> * _Nullable layers;

/**
<p>The function's Amazon CloudWatch Logs configuration settings.</p>
*/
@property (nonatomic, strong) AWSLambdaLoggingConfig * _Nullable loggingConfig;

/**
<p>The amount of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console">memory available to the function</a> at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.</p>
*/
Expand Down Expand Up @@ -1839,6 +1872,11 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
*/
@property (nonatomic, strong) NSArray<AWSLambdaLayer *> * _Nullable layers;

/**
<p>The function's Amazon CloudWatch Logs configuration settings.</p>
*/
@property (nonatomic, strong) AWSLambdaLoggingConfig * _Nullable loggingConfig;

/**
<p>For Lambda@Edge functions, the ARN of the main function.</p>
*/
Expand Down Expand Up @@ -3477,6 +3515,34 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {

@end

/**
<p>The function's Amazon CloudWatch Logs configuration settings.</p>
*/
@interface AWSLambdaLoggingConfig : AWSModel


/**
<p>Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level and lower.</p>
*/
@property (nonatomic, assign) AWSLambdaApplicationLogLevel applicationLogLevel;

/**
<p>The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.</p>
*/
@property (nonatomic, assign) AWSLambdaLogFormat logFormat;

/**
<p>The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named <code>/aws/lambda/&lt;function name&gt;</code>. To use a different log group, enter an existing log group or enter a new log group name.</p>
*/
@property (nonatomic, strong) NSString * _Nullable logGroup;

/**
<p>Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level and lower.</p>
*/
@property (nonatomic, assign) AWSLambdaSystemLogLevel systemLogLevel;

@end

/**
<p>A destination for events that failed processing.</p>
*/
Expand Down Expand Up @@ -4387,6 +4453,11 @@ typedef NS_ENUM(NSInteger, AWSLambdaUpdateRuntimeOn) {
*/
@property (nonatomic, strong) NSArray<NSString *> * _Nullable layers;

/**
<p>The function's Amazon CloudWatch Logs configuration settings.</p>
*/
@property (nonatomic, strong) AWSLambdaLoggingConfig * _Nullable loggingConfig;

/**
<p>The amount of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console">memory available to the function</a> at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.</p>
*/
Expand Down
Loading

0 comments on commit cc1198d

Please sign in to comment.