AWSLambda Class Reference

Inherits from AWSService : NSObject
Declared in AWSLambdaService.h
AWSLambdaService.m

Overview

AWS Lambda

Overview

This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, see What is AWS Lambda, and for information about how the service works, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.

  configuration

The service configuration used to instantiate this service client.

@property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration

Discussion

Warning: Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors.

Declared In

AWSLambdaService.h

+ defaultLambda

Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with defaultServiceConfiguration from [AWSServiceManager defaultServiceManager]. The reference to this object is maintained by the SDK, and you do not need to retain it manually.

+ (instancetype)defaultLambda

Return Value

The default service client.

Discussion

For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

Swift

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
    let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider)
    AWSServiceManager.default().defaultServiceConfiguration = configuration

    return true
}

Objective-C

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                      identityPoolId:@"YourIdentityPoolId"];
      AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1
                                                                           credentialsProvider:credentialsProvider];
      [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration;

      return YES;
  }

Then call the following to get the default service client:

Swift

 let Lambda = AWSLambda.default()

Objective-C

 AWSLambda *Lambda = [AWSLambda defaultLambda];

Declared In

AWSLambdaService.h

+ registerLambdaWithConfiguration:forKey:

Creates a service client with the given service configuration and registers it for the key.

+ (void)registerLambdaWithConfiguration:(AWSServiceConfiguration *)configuration forKey:(NSString *)key

Parameters

configuration

A service configuration object.

key

A string to identify the service client.

Discussion

For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

Swift

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
    let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
    AWSLambda.register(with: configuration!, forKey: "USWest2Lambda")

    return true
}

Objective-C

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                     identityPoolId:@"YourIdentityPoolId"];
     AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
                                                                          credentialsProvider:credentialsProvider];

     [AWSLambda registerLambdaWithConfiguration:configuration forKey:@"USWest2Lambda"];

     return YES;
 }

Then call the following to get the service client:

Swift

 let Lambda = AWSLambda(forKey: "USWest2Lambda")

Objective-C

 AWSLambda *Lambda = [AWSLambda LambdaForKey:@"USWest2Lambda"];

Warning: After calling this method, do not modify the configuration object. It may cause unspecified behaviors.

Declared In

AWSLambdaService.h

+ LambdaForKey:

Retrieves the service client associated with the key. You need to call + registerLambdaWithConfiguration:forKey: before invoking this method.

+ (instancetype)LambdaForKey:(NSString *)key

Parameters

key

A string to identify the service client.

Return Value

An instance of the service client.

Discussion

For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

Swift

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
    let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
    AWSLambda.register(with: configuration!, forKey: "USWest2Lambda")

    return true
}

Objective-C

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                     identityPoolId:@"YourIdentityPoolId"];
     AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
                                                                          credentialsProvider:credentialsProvider];

     [AWSLambda registerLambdaWithConfiguration:configuration forKey:@"USWest2Lambda"];

     return YES;
 }

Then call the following to get the service client:

Swift

 let Lambda = AWSLambda(forKey: "USWest2Lambda")

Objective-C

 AWSLambda *Lambda = [AWSLambda LambdaForKey:@"USWest2Lambda"];

Declared In

AWSLambdaService.h

+ removeLambdaForKey:

Removes the service client associated with the key and release it.

+ (void)removeLambdaForKey:(NSString *)key

Parameters

key

A string to identify the service client.

Discussion

Warning: Before calling this method, make sure no method is running on this client.

Declared In

AWSLambdaService.h

– addLayerVersionPermission:

Adds permissions to the resource-based policy of a version of an AWS Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.

To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.

- (AWSTask<AWSLambdaAddLayerVersionPermissionResponse*> *)addLayerVersionPermission:(AWSLambdaAddLayerVersionPermissionRequest *)request

Parameters

request

A container for the necessary parameters to execute the AddLayerVersionPermission service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaAddLayerVersionPermissionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorPolicyLengthExceeded, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– addLayerVersionPermission:completionHandler:

Adds permissions to the resource-based policy of a version of an AWS Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.

To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.

- (void)addLayerVersionPermission:(AWSLambdaAddLayerVersionPermissionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaAddLayerVersionPermissionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the AddLayerVersionPermission service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorPolicyLengthExceeded, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– addPermission:

Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.

To grant permission to another account, specify the account ID as the Principal. For AWS services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For AWS services, you can also specify the ARN or owning account of the associated resource as the SourceArn or SourceAccount. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

This action adds a statement to a resource-based permission policy for the function. For more information about function policies, see Lambda Function Policies.

- (AWSTask<AWSLambdaAddPermissionResponse*> *)addPermission:(AWSLambdaAddPermissionRequest *)request

Parameters

request

A container for the necessary parameters to execute the AddPermission service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaAddPermissionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorPolicyLengthExceeded, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– addPermission:completionHandler:

Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.

To grant permission to another account, specify the account ID as the Principal. For AWS services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For AWS services, you can also specify the ARN or owning account of the associated resource as the SourceArn or SourceAccount. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

This action adds a statement to a resource-based permission policy for the function. For more information about function policies, see Lambda Function Policies.

- (void)addPermission:(AWSLambdaAddPermissionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaAddPermissionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the AddPermission service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorPolicyLengthExceeded, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– createAlias:

Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.

You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.

- (AWSTask<AWSLambdaAliasConfiguration*> *)createAlias:(AWSLambdaCreateAliasRequest *)request

Parameters

request

A container for the necessary parameters to execute the CreateAlias service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaAliasConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– createAlias:completionHandler:

Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.

You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.

- (void)createAlias:(AWSLambdaCreateAliasRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaAliasConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the CreateAlias service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– createEventSourceMapping:

Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.

For details about each event source type, see the following topics.

- (AWSTask<AWSLambdaEventSourceMappingConfiguration*> *)createEventSourceMapping:(AWSLambdaCreateEventSourceMappingRequest *)request

Parameters

request

A container for the necessary parameters to execute the CreateEventSourceMapping service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaEventSourceMappingConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceNotFound.

Declared In

AWSLambdaService.h

– createEventSourceMapping:completionHandler:

Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.

For details about each event source type, see the following topics.

- (void)createEventSourceMapping:(AWSLambdaCreateEventSourceMappingRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaEventSourceMappingConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the CreateEventSourceMapping service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceNotFound.

Declared In

AWSLambdaService.h

– createFunction:

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.

A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.

To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.

- (AWSTask<AWSLambdaFunctionConfiguration*> *)createFunction:(AWSLambdaCreateFunctionRequest *)request

Parameters

request

A container for the necessary parameters to execute the CreateFunction service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaFunctionConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorCodeStorageExceeded.

Declared In

AWSLambdaService.h

– createFunction:completionHandler:

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.

A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.

To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.

- (void)createFunction:(AWSLambdaCreateFunctionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaFunctionConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the CreateFunction service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorCodeStorageExceeded.

Declared In

AWSLambdaService.h

– deleteAlias:

Deletes a Lambda function alias.

- (AWSTask *)deleteAlias:(AWSLambdaDeleteAliasRequest *)request

Parameters

request

A container for the necessary parameters to execute the DeleteAlias service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– deleteAlias:completionHandler:

Deletes a Lambda function alias.

- (void)deleteAlias:(AWSLambdaDeleteAliasRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the DeleteAlias service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– deleteEventSourceMapping:

Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

- (AWSTask<AWSLambdaEventSourceMappingConfiguration*> *)deleteEventSourceMapping:(AWSLambdaDeleteEventSourceMappingRequest *)request

Parameters

request

A container for the necessary parameters to execute the DeleteEventSourceMapping service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaEventSourceMappingConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceInUse.

Declared In

AWSLambdaService.h

– deleteEventSourceMapping:completionHandler:

Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

- (void)deleteEventSourceMapping:(AWSLambdaDeleteEventSourceMappingRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaEventSourceMappingConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the DeleteEventSourceMapping service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceInUse.

Declared In

AWSLambdaService.h

– deleteFunction:

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

- (AWSTask *)deleteFunction:(AWSLambdaDeleteFunctionRequest *)request

Parameters

request

A container for the necessary parameters to execute the DeleteFunction service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceConflict.

Declared In

AWSLambdaService.h

– deleteFunction:completionHandler:

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

- (void)deleteFunction:(AWSLambdaDeleteFunctionRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the DeleteFunction service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceConflict.

Declared In

AWSLambdaService.h

– deleteFunctionConcurrency:

Removes a concurrent execution limit from a function.

- (AWSTask *)deleteFunctionConcurrency:(AWSLambdaDeleteFunctionConcurrencyRequest *)request

Parameters

request

A container for the necessary parameters to execute the DeleteFunctionConcurrency service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– deleteFunctionConcurrency:completionHandler:

Removes a concurrent execution limit from a function.

- (void)deleteFunctionConcurrency:(AWSLambdaDeleteFunctionConcurrencyRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the DeleteFunctionConcurrency service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– deleteLayerVersion:

Deletes a version of an AWS Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

- (AWSTask *)deleteLayerVersion:(AWSLambdaDeleteLayerVersionRequest *)request

Parameters

request

A container for the necessary parameters to execute the DeleteLayerVersion service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– deleteLayerVersion:completionHandler:

Deletes a version of an AWS Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

- (void)deleteLayerVersion:(AWSLambdaDeleteLayerVersionRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the DeleteLayerVersion service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– getAccountSettings:

Retrieves details about your account's limits and usage in an AWS Region.

- (AWSTask<AWSLambdaGetAccountSettingsResponse*> *)getAccountSettings:(AWSLambdaGetAccountSettingsRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetAccountSettings service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaGetAccountSettingsResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

Declared In

AWSLambdaService.h

– getAccountSettings:completionHandler:

Retrieves details about your account's limits and usage in an AWS Region.

- (void)getAccountSettings:(AWSLambdaGetAccountSettingsRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaGetAccountSettingsResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetAccountSettings service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

Declared In

AWSLambdaService.h

– getAlias:

Returns details about a Lambda function alias.

- (AWSTask<AWSLambdaAliasConfiguration*> *)getAlias:(AWSLambdaGetAliasRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetAlias service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaAliasConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– getAlias:completionHandler:

Returns details about a Lambda function alias.

- (void)getAlias:(AWSLambdaGetAliasRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaAliasConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetAlias service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– getEventSourceMapping:

Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

- (AWSTask<AWSLambdaEventSourceMappingConfiguration*> *)getEventSourceMapping:(AWSLambdaGetEventSourceMappingRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetEventSourceMapping service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaEventSourceMappingConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– getEventSourceMapping:completionHandler:

Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

- (void)getEventSourceMapping:(AWSLambdaGetEventSourceMappingRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaEventSourceMappingConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetEventSourceMapping service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– getFunction:

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

- (AWSTask<AWSLambdaGetFunctionResponse*> *)getFunction:(AWSLambdaGetFunctionRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetFunction service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaGetFunctionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getFunction:completionHandler:

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

- (void)getFunction:(AWSLambdaGetFunctionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaGetFunctionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetFunction service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getFunctionConfiguration:

Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.

To get all of a function's details, including function-level settings, use GetFunction.

- (AWSTask<AWSLambdaFunctionConfiguration*> *)getFunctionConfiguration:(AWSLambdaGetFunctionConfigurationRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetFunctionConfiguration service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaFunctionConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getFunctionConfiguration:completionHandler:

Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.

To get all of a function's details, including function-level settings, use GetFunction.

- (void)getFunctionConfiguration:(AWSLambdaGetFunctionConfigurationRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaFunctionConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetFunctionConfiguration service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getLayerVersion:

Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

- (AWSTask<AWSLambdaGetLayerVersionResponse*> *)getLayerVersion:(AWSLambdaGetLayerVersionRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetLayerVersion service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaGetLayerVersionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceNotFound.

Declared In

AWSLambdaService.h

– getLayerVersion:completionHandler:

Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

- (void)getLayerVersion:(AWSLambdaGetLayerVersionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaGetLayerVersionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetLayerVersion service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceNotFound.

Declared In

AWSLambdaService.h

– getLayerVersionByArn:

Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

- (AWSTask<AWSLambdaGetLayerVersionResponse*> *)getLayerVersionByArn:(AWSLambdaGetLayerVersionByArnRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetLayerVersionByArn service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaGetLayerVersionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceNotFound.

Declared In

AWSLambdaService.h

– getLayerVersionByArn:completionHandler:

Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

- (void)getLayerVersionByArn:(AWSLambdaGetLayerVersionByArnRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaGetLayerVersionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetLayerVersionByArn service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceNotFound.

Declared In

AWSLambdaService.h

– getLayerVersionPolicy:

Returns the permission policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.

- (AWSTask<AWSLambdaGetLayerVersionPolicyResponse*> *)getLayerVersionPolicy:(AWSLambdaGetLayerVersionPolicyRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetLayerVersionPolicy service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaGetLayerVersionPolicyResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getLayerVersionPolicy:completionHandler:

Returns the permission policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.

- (void)getLayerVersionPolicy:(AWSLambdaGetLayerVersionPolicyRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaGetLayerVersionPolicyResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetLayerVersionPolicy service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getPolicy:

Returns the resource-based IAM policy for a function, version, or alias.

- (AWSTask<AWSLambdaGetPolicyResponse*> *)getPolicy:(AWSLambdaGetPolicyRequest *)request

Parameters

request

A container for the necessary parameters to execute the GetPolicy service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaGetPolicyResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– getPolicy:completionHandler:

Returns the resource-based IAM policy for a function, version, or alias.

- (void)getPolicy:(AWSLambdaGetPolicyRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaGetPolicyResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the GetPolicy service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– invoke:

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.

For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace. To record function errors for asynchronous invocations, configure your function with a dead letter queue.

When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior.

The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).

For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction action.

- (AWSTask<AWSLambdaInvocationResponse*> *)invoke:(AWSLambdaInvocationRequest *)request

Parameters

request

A container for the necessary parameters to execute the Invoke service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaInvocationResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidRequestContent, AWSLambdaErrorRequestTooLarge, AWSLambdaErrorUnsupportedMediaType, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorEC2Unexpected, AWSLambdaErrorSubnetIPAddressLimitReached, AWSLambdaErrorENILimitReached, AWSLambdaErrorEC2Throttled, AWSLambdaErrorEC2AccessDenied, AWSLambdaErrorInvalidSubnetID, AWSLambdaErrorInvalidSecurityGroupID, AWSLambdaErrorInvalidZipFile, AWSLambdaErrorKMSDisabled, AWSLambdaErrorKMSInvalidState, AWSLambdaErrorKMSAccessDenied, AWSLambdaErrorKMSNotFound, AWSLambdaErrorInvalidRuntime.

Declared In

AWSLambdaService.h

– invoke:completionHandler:

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.

For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace. To record function errors for asynchronous invocations, configure your function with a dead letter queue.

When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior.

The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).

For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction action.

- (void)invoke:(AWSLambdaInvocationRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaInvocationResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the Invoke service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidRequestContent, AWSLambdaErrorRequestTooLarge, AWSLambdaErrorUnsupportedMediaType, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorEC2Unexpected, AWSLambdaErrorSubnetIPAddressLimitReached, AWSLambdaErrorENILimitReached, AWSLambdaErrorEC2Throttled, AWSLambdaErrorEC2AccessDenied, AWSLambdaErrorInvalidSubnetID, AWSLambdaErrorInvalidSecurityGroupID, AWSLambdaErrorInvalidZipFile, AWSLambdaErrorKMSDisabled, AWSLambdaErrorKMSInvalidState, AWSLambdaErrorKMSAccessDenied, AWSLambdaErrorKMSNotFound, AWSLambdaErrorInvalidRuntime.

Declared In

AWSLambdaService.h

– invokeAsync:

For asynchronous function invocation, use Invoke.

Invokes a function asynchronously.

- (AWSTask<AWSLambdaInvokeAsyncResponse*> *)invokeAsync:(AWSLambdaInvokeAsyncRequest *)request

Parameters

request

A container for the necessary parameters to execute the InvokeAsync service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaInvokeAsyncResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidRequestContent, AWSLambdaErrorInvalidRuntime.

Declared In

AWSLambdaService.h

– invokeAsync:completionHandler:

For asynchronous function invocation, use Invoke.

Invokes a function asynchronously.

- (void)invokeAsync:(AWSLambdaInvokeAsyncRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaInvokeAsyncResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the InvokeAsync service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidRequestContent, AWSLambdaErrorInvalidRuntime.

Declared In

AWSLambdaService.h

– listAliases:

Returns a list of aliases for a Lambda function.

- (AWSTask<AWSLambdaListAliasesResponse*> *)listAliases:(AWSLambdaListAliasesRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListAliases service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListAliasesResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listAliases:completionHandler:

Returns a list of aliases for a Lambda function.

- (void)listAliases:(AWSLambdaListAliasesRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListAliasesResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListAliases service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listEventSourceMappings:

Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.

- (AWSTask<AWSLambdaListEventSourceMappingsResponse*> *)listEventSourceMappings:(AWSLambdaListEventSourceMappingsRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListEventSourceMappings service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListEventSourceMappingsResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listEventSourceMappings:completionHandler:

Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.

- (void)listEventSourceMappings:(AWSLambdaListEventSourceMappingsRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListEventSourceMappingsResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListEventSourceMappings service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listFunctions:

Returns a list of Lambda functions, with the version-specific configuration of each.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version. To get more information about a function or version, use GetFunction.

- (AWSTask<AWSLambdaListFunctionsResponse*> *)listFunctions:(AWSLambdaListFunctionsRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListFunctions service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListFunctionsResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– listFunctions:completionHandler:

Returns a list of Lambda functions, with the version-specific configuration of each.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version. To get more information about a function or version, use GetFunction.

- (void)listFunctions:(AWSLambdaListFunctionsRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListFunctionsResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListFunctions service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue.

Declared In

AWSLambdaService.h

– listLayerVersions:

Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.

- (AWSTask<AWSLambdaListLayerVersionsResponse*> *)listLayerVersions:(AWSLambdaListLayerVersionsRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListLayerVersions service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListLayerVersionsResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listLayerVersions:completionHandler:

Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.

- (void)listLayerVersions:(AWSLambdaListLayerVersionsRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListLayerVersionsResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListLayerVersions service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listLayers:

Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.

- (AWSTask<AWSLambdaListLayersResponse*> *)listLayers:(AWSLambdaListLayersRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListLayers service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListLayersResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listLayers:completionHandler:

Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.

- (void)listLayers:(AWSLambdaListLayersRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListLayersResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListLayers service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listTags:

Returns a function's tags. You can also view tags with GetFunction.

- (AWSTask<AWSLambdaListTagsResponse*> *)listTags:(AWSLambdaListTagsRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListTags service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListTagsResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listTags:completionHandler:

Returns a function's tags. You can also view tags with GetFunction.

- (void)listTags:(AWSLambdaListTagsRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListTagsResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListTags service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listVersionsByFunction:

Returns a list of versions, with the version-specific configuration of each.

- (AWSTask<AWSLambdaListVersionsByFunctionResponse*> *)listVersionsByFunction:(AWSLambdaListVersionsByFunctionRequest *)request

Parameters

request

A container for the necessary parameters to execute the ListVersionsByFunction service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaListVersionsByFunctionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– listVersionsByFunction:completionHandler:

Returns a list of versions, with the version-specific configuration of each.

- (void)listVersionsByFunction:(AWSLambdaListVersionsByFunctionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaListVersionsByFunctionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the ListVersionsByFunction service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– publishLayerVersion:

Creates an AWS Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same version name, a new version is created.

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

- (AWSTask<AWSLambdaPublishLayerVersionResponse*> *)publishLayerVersion:(AWSLambdaPublishLayerVersionRequest *)request

Parameters

request

A container for the necessary parameters to execute the PublishLayerVersion service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaPublishLayerVersionResponse. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorCodeStorageExceeded.

Declared In

AWSLambdaService.h

– publishLayerVersion:completionHandler:

Creates an AWS Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same version name, a new version is created.

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

- (void)publishLayerVersion:(AWSLambdaPublishLayerVersionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaPublishLayerVersionResponse *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the PublishLayerVersion service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorCodeStorageExceeded.

Declared In

AWSLambdaService.h

– publishVersion:

Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.

AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.

Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.

- (AWSTask<AWSLambdaFunctionConfiguration*> *)publishVersion:(AWSLambdaPublishVersionRequest *)request

Parameters

request

A container for the necessary parameters to execute the PublishVersion service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaFunctionConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorCodeStorageExceeded, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– publishVersion:completionHandler:

Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.

AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.

Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.

- (void)publishVersion:(AWSLambdaPublishVersionRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaFunctionConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the PublishVersion service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorCodeStorageExceeded, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– putFunctionConcurrency:

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.

Use GetAccountSettings to see your regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.

- (AWSTask<AWSLambdaConcurrency*> *)putFunctionConcurrency:(AWSLambdaPutFunctionConcurrencyRequest *)request

Parameters

request

A container for the necessary parameters to execute the PutFunctionConcurrency service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaConcurrency. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– putFunctionConcurrency:completionHandler:

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.

Use GetAccountSettings to see your regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.

- (void)putFunctionConcurrency:(AWSLambdaPutFunctionConcurrencyRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaConcurrency *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the PutFunctionConcurrency service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– removeLayerVersionPermission:

Removes a statement from the permissions policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.

- (AWSTask *)removeLayerVersionPermission:(AWSLambdaRemoveLayerVersionPermissionRequest *)request

Parameters

request

A container for the necessary parameters to execute the RemoveLayerVersionPermission service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– removeLayerVersionPermission:completionHandler:

Removes a statement from the permissions policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.

- (void)removeLayerVersionPermission:(AWSLambdaRemoveLayerVersionPermissionRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the RemoveLayerVersionPermission service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– removePermission:

Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.

- (AWSTask *)removePermission:(AWSLambdaRemovePermissionRequest *)request

Parameters

request

A container for the necessary parameters to execute the RemovePermission service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– removePermission:completionHandler:

Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.

- (void)removePermission:(AWSLambdaRemovePermissionRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the RemovePermission service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– tagResource:

Adds tags to a function.

- (AWSTask *)tagResource:(AWSLambdaTagResourceRequest *)request

Parameters

request

A container for the necessary parameters to execute the TagResource service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– tagResource:completionHandler:

Adds tags to a function.

- (void)tagResource:(AWSLambdaTagResourceRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the TagResource service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– untagResource:

Removes tags from a function.

- (AWSTask *)untagResource:(AWSLambdaUntagResourceRequest *)request

Parameters

request

A container for the necessary parameters to execute the UntagResource service method.

Return Value

An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– untagResource:completionHandler:

Removes tags from a function.

- (void)untagResource:(AWSLambdaUntagResourceRequest *)request completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the UntagResource service method.

completionHandler

The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests.

Declared In

AWSLambdaService.h

– updateAlias:

Updates the configuration of a Lambda function alias.

- (AWSTask<AWSLambdaAliasConfiguration*> *)updateAlias:(AWSLambdaUpdateAliasRequest *)request

Parameters

request

A container for the necessary parameters to execute the UpdateAlias service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaAliasConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– updateAlias:completionHandler:

Updates the configuration of a Lambda function alias.

- (void)updateAlias:(AWSLambdaUpdateAliasRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaAliasConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the UpdateAlias service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– updateEventSourceMapping:

Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.

- (AWSTask<AWSLambdaEventSourceMappingConfiguration*> *)updateEventSourceMapping:(AWSLambdaUpdateEventSourceMappingRequest *)request

Parameters

request

A container for the necessary parameters to execute the UpdateEventSourceMapping service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaEventSourceMappingConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceInUse.

Declared In

AWSLambdaService.h

– updateEventSourceMapping:completionHandler:

Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.

- (void)updateEventSourceMapping:(AWSLambdaUpdateEventSourceMappingRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaEventSourceMappingConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the UpdateEventSourceMapping service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceInUse.

Declared In

AWSLambdaService.h

– updateFunctionCode:

Updates a Lambda function's code.

The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.

- (AWSTask<AWSLambdaFunctionConfiguration*> *)updateFunctionCode:(AWSLambdaUpdateFunctionCodeRequest *)request

Parameters

request

A container for the necessary parameters to execute the UpdateFunctionCode service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaFunctionConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorCodeStorageExceeded, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– updateFunctionCode:completionHandler:

Updates a Lambda function's code.

The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.

- (void)updateFunctionCode:(AWSLambdaUpdateFunctionCodeRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaFunctionConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the UpdateFunctionCode service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorCodeStorageExceeded, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– updateFunctionConfiguration:

Modify the version-specific settings of a Lambda function.

These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.

- (AWSTask<AWSLambdaFunctionConfiguration*> *)updateFunctionConfiguration:(AWSLambdaUpdateFunctionConfigurationRequest *)request

Parameters

request

A container for the necessary parameters to execute the UpdateFunctionConfiguration service method.

Return Value

An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaFunctionConfiguration. On failed execution, task.error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceConflict, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h

– updateFunctionConfiguration:completionHandler:

Modify the version-specific settings of a Lambda function.

These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.

- (void)updateFunctionConfiguration:(AWSLambdaUpdateFunctionConfigurationRequest *)request completionHandler:(void ( ^ _Nullable ) ( AWSLambdaFunctionConfiguration *_Nullable response , NSError *_Nullable error ))completionHandler

Parameters

request

A container for the necessary parameters to execute the UpdateFunctionConfiguration service method.

completionHandler

The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSLambdaErrorDomain domain and the following error code: AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceConflict, AWSLambdaErrorPreconditionFailed.

Declared In

AWSLambdaService.h