AWSLambda

Objective-C

@interface AWSLambda

Swift

class AWSLambda

Lambda

Overview

Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see What is Lambda in the Lambda Developer Guide.

The Lambda API Reference provides information about each of the API methods, including details about the parameters in each API request and response.

You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see Tools for Amazon Web Services.

For a list of Region-specific endpoints that Lambda supports, see Lambda endpoints and quotas in the Amazon Web Services General Reference..

When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see Signature Version 4 signing process in the Amazon Web Services General Reference..

CA certificates

Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer’s CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:

  • Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list.

  • Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list.

  • Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list.

  • Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.

When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs:

  • Amazon Root CA 1

  • Starfield Services Root Certificate Authority - G2

  • Starfield Class 2 Certification Authority

Root certificates from the first two authorities are available from Amazon trust services, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs.

  • The service configuration used to instantiate this service client.

    Warning

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

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration
  • 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.

    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];
    

    Declaration

    Objective-C

    + (nonnull instancetype)defaultLambda;

    Swift

    class func `default`() -> Self

    Return Value

    The default service client.

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

    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.

    Declaration

    Objective-C

    + (void)registerLambdaWithConfiguration:(id)configuration
                                     forKey:(nonnull NSString *)key;

    Swift

    class func register(withConfiguration configuration: Any!, forKey key: String)

    Parameters

    configuration

    A service configuration object.

    key

    A string to identify the service client.

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

    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"];
    

    Declaration

    Objective-C

    + (nonnull instancetype)LambdaForKey:(nonnull NSString *)key;

    Swift

    convenience init(forKey key: String)

    Parameters

    key

    A string to identify the service client.

    Return Value

    An instance of the service client.

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

    Warning

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

    Declaration

    Objective-C

    + (void)removeLambdaForKey:(nonnull NSString *)key;

    Swift

    class func remove(forKey key: String)

    Parameters

    key

    A string to identify the service client.

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

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

    See

    AWSLambdaAddLayerVersionPermissionRequest

    See

    AWSLambdaAddLayerVersionPermissionResponse

    Declaration

    Objective-C

    - (id)addLayerVersionPermission:
        (nonnull AWSLambdaAddLayerVersionPermissionRequest *)request;

    Swift

    func addLayerVersionPermission(_ request: AWSLambdaAddLayerVersionPermissionRequest) -> Any!

    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.

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

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

    See

    AWSLambdaAddLayerVersionPermissionRequest

    See

    AWSLambdaAddLayerVersionPermissionResponse

    Declaration

    Objective-C

    - (void)addLayerVersionPermission:
                (nonnull AWSLambdaAddLayerVersionPermissionRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSLambdaAddLayerVersionPermissionResponse *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func addLayerVersionPermission(_ request: AWSLambdaAddLayerVersionPermissionRequest) async throws -> AWSLambdaAddLayerVersionPermissionResponse

    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.

  • Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization 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. Note: Lambda does not support adding policies to version $LATEST.

    To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Services, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services, you can also specify the ARN of the associated resource as the SourceArn. 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 operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.

    See

    AWSLambdaAddPermissionRequest

    See

    AWSLambdaAddPermissionResponse

    Declaration

    Objective-C

    - (id)addPermission:(nonnull AWSLambdaAddPermissionRequest *)request;

    Swift

    func addPermission(_ request: AWSLambdaAddPermissionRequest) -> Any!

    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.

  • Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization 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. Note: Lambda does not support adding policies to version $LATEST.

    To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Services, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services, you can also specify the ARN of the associated resource as the SourceArn. 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 operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.

    See

    AWSLambdaAddPermissionRequest

    See

    AWSLambdaAddPermissionResponse

    Declaration

    Objective-C

    - (void)addPermission:(nonnull AWSLambdaAddPermissionRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSLambdaAddPermissionResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func addPermission(_ request: AWSLambdaAddPermissionRequest) async throws -> AWSLambdaAddPermissionResponse

    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.

  • 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.

    See

    AWSLambdaCreateAliasRequest

    See

    AWSLambdaAliasConfiguration

    Declaration

    Objective-C

    - (id)createAlias:(nonnull AWSLambdaCreateAliasRequest *)request;

    Swift

    func createAlias(_ request: AWSLambdaCreateAliasRequest) -> Any!

    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.

  • 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.

    See

    AWSLambdaCreateAliasRequest

    See

    AWSLambdaAliasConfiguration

    Declaration

    Objective-C

    - (void)createAlias:(nonnull AWSLambdaCreateAliasRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaAliasConfiguration *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createAlias(_ request: AWSLambdaCreateAliasRequest) async throws -> AWSLambdaAliasConfiguration

    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.

  • Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

    See

    AWSLambdaCreateCodeSigningConfigRequest

    See

    AWSLambdaCreateCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)createCodeSigningConfig:
        (nonnull AWSLambdaCreateCodeSigningConfigRequest *)request;

    Swift

    func createCodeSigningConfig(_ request: AWSLambdaCreateCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

    See

    AWSLambdaCreateCodeSigningConfigRequest

    See

    AWSLambdaCreateCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)createCodeSigningConfig:
                (nonnull AWSLambdaCreateCodeSigningConfigRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSLambdaCreateCodeSigningConfigResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func createCodeSigningConfig(_ request: AWSLambdaCreateCodeSigningConfigRequest) async throws -> AWSLambdaCreateCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the CreateCodeSigningConfig 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.

  • Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.

    For details about how to configure different event sources, see the following topics.

    The following error handling options are available only for stream sources (DynamoDB and Kinesis):

    • BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry.

    • DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic.

    • MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

    • MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    • ParallelizationFactor – Process multiple batches from each shard concurrently.

    For information about which configuration parameters apply to each event source, see the following topics.

    See

    AWSLambdaCreateEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (id)createEventSourceMapping:
        (nonnull AWSLambdaCreateEventSourceMappingRequest *)request;

    Swift

    func createEventSourceMapping(_ request: AWSLambdaCreateEventSourceMappingRequest) -> Any!

    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.

  • Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.

    For details about how to configure different event sources, see the following topics.

    The following error handling options are available only for stream sources (DynamoDB and Kinesis):

    • BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry.

    • DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic.

    • MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

    • MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    • ParallelizationFactor – Process multiple batches from each shard concurrently.

    For information about which configuration parameters apply to each event source, see the following topics.

    See

    AWSLambdaCreateEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (void)createEventSourceMapping:
                (nonnull AWSLambdaCreateEventSourceMappingRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSLambdaEventSourceMappingConfiguration *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func createEventSourceMapping(_ request: AWSLambdaCreateEventSourceMappingRequest) async throws -> AWSLambdaEventSourceMappingConfiguration

    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.

  • Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

    If the deployment package is a container image, then you set the package type to Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

    If the deployment package is a .zip file archive, then you set the package type to Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, then the default value is x86-64.

    When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can’t invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.

    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).

    You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.

    If another Amazon Web Services account or an Amazon Web Service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (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 Amazon Web Services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.

    See

    AWSLambdaCreateFunctionRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (id)createFunction:(nonnull AWSLambdaCreateFunctionRequest *)request;

    Swift

    func createFunction(_ request: AWSLambdaCreateFunctionRequest) -> Any!

    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, AWSLambdaErrorCodeVerificationFailed, AWSLambdaErrorInvalidCodeSignature, AWSLambdaErrorCodeSigningConfigNotFound.

  • Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

    If the deployment package is a container image, then you set the package type to Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

    If the deployment package is a .zip file archive, then you set the package type to Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, then the default value is x86-64.

    When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can’t invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.

    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).

    You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.

    If another Amazon Web Services account or an Amazon Web Service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (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 Amazon Web Services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.

    See

    AWSLambdaCreateFunctionRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (void)createFunction:(nonnull AWSLambdaCreateFunctionRequest *)request
         completionHandler:
             (void (^_Nullable)(AWSLambdaFunctionConfiguration *_Nullable,
                                NSError *_Nullable))completionHandler;

    Swift

    func createFunction(_ request: AWSLambdaCreateFunctionRequest) async throws -> AWSLambdaFunctionConfiguration

    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, AWSLambdaErrorCodeVerificationFailed, AWSLambdaErrorInvalidCodeSignature, AWSLambdaErrorCodeSigningConfigNotFound.

  • Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

    See

    AWSLambdaCreateFunctionUrlConfigRequest

    See

    AWSLambdaCreateFunctionUrlConfigResponse

    Declaration

    Objective-C

    - (id)createFunctionUrlConfig:
        (nonnull AWSLambdaCreateFunctionUrlConfigRequest *)request;

    Swift

    func createFunctionUrlConfig(_ request: AWSLambdaCreateFunctionUrlConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

    See

    AWSLambdaCreateFunctionUrlConfigRequest

    See

    AWSLambdaCreateFunctionUrlConfigResponse

    Declaration

    Objective-C

    - (void)createFunctionUrlConfig:
                (nonnull AWSLambdaCreateFunctionUrlConfigRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSLambdaCreateFunctionUrlConfigResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func createFunctionUrlConfig(_ request: AWSLambdaCreateFunctionUrlConfigRequest) async throws -> AWSLambdaCreateFunctionUrlConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the CreateFunctionUrlConfig 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: AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.

  • Deletes a Lambda function alias.

    See

    AWSLambdaDeleteAliasRequest

    Declaration

    Objective-C

    - (id)deleteAlias:(nonnull AWSLambdaDeleteAliasRequest *)request;

    Swift

    func deleteAlias(_ request: AWSLambdaDeleteAliasRequest) -> Any!

    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, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests.

  • Deletes a Lambda function alias.

    See

    AWSLambdaDeleteAliasRequest

    Declaration

    Objective-C

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

    Swift

    func deleteAlias(_ request: AWSLambdaDeleteAliasRequest) async throws

    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, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests.

  • Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.

    See

    AWSLambdaDeleteCodeSigningConfigRequest

    See

    AWSLambdaDeleteCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)deleteCodeSigningConfig:
        (nonnull AWSLambdaDeleteCodeSigningConfigRequest *)request;

    Swift

    func deleteCodeSigningConfig(_ request: AWSLambdaDeleteCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.

    See

    AWSLambdaDeleteCodeSigningConfigRequest

    See

    AWSLambdaDeleteCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)deleteCodeSigningConfig:
                (nonnull AWSLambdaDeleteCodeSigningConfigRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSLambdaDeleteCodeSigningConfigResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func deleteCodeSigningConfig(_ request: AWSLambdaDeleteCodeSigningConfigRequest) async throws -> AWSLambdaDeleteCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCodeSigningConfig 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.

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

    When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.

    See

    AWSLambdaDeleteEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (id)deleteEventSourceMapping:
        (nonnull AWSLambdaDeleteEventSourceMappingRequest *)request;

    Swift

    func deleteEventSourceMapping(_ request: AWSLambdaDeleteEventSourceMappingRequest) -> Any!

    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, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceInUse.

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

    When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.

    See

    AWSLambdaDeleteEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (void)deleteEventSourceMapping:
                (nonnull AWSLambdaDeleteEventSourceMappingRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSLambdaEventSourceMappingConfiguration *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func deleteEventSourceMapping(_ request: AWSLambdaDeleteEventSourceMappingRequest) async throws -> AWSLambdaEventSourceMappingConfiguration

    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, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceInUse.

  • Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn’t require the user to have explicit permissions for DeleteAlias.

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

    See

    AWSLambdaDeleteFunctionRequest

    Declaration

    Objective-C

    - (id)deleteFunction:(nonnull AWSLambdaDeleteFunctionRequest *)request;

    Swift

    func deleteFunction(_ request: AWSLambdaDeleteFunctionRequest) -> Any!

    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.

  • Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn’t require the user to have explicit permissions for DeleteAlias.

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

    See

    AWSLambdaDeleteFunctionRequest

    Declaration

    Objective-C

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

    Swift

    func deleteFunction(_ request: AWSLambdaDeleteFunctionRequest) async throws

    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.

  • Removes the code signing configuration from the function.

    See

    AWSLambdaDeleteFunctionCodeSigningConfigRequest

    Declaration

    Objective-C

    - (id)deleteFunctionCodeSigningConfig:
        (nonnull AWSLambdaDeleteFunctionCodeSigningConfigRequest *)request;

    Swift

    func deleteFunctionCodeSigningConfig(_ request: AWSLambdaDeleteFunctionCodeSigningConfigRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFunctionCodeSigningConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorCodeSigningConfigNotFound, AWSLambdaErrorResourceNotFound, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceConflict.

  • Removes the code signing configuration from the function.

    See

    AWSLambdaDeleteFunctionCodeSigningConfigRequest

    Declaration

    Objective-C

    - (void)deleteFunctionCodeSigningConfig:
                (nonnull AWSLambdaDeleteFunctionCodeSigningConfigRequest *)request
                          completionHandler:(void (^_Nullable)(NSError *_Nullable))
                                                completionHandler;

    Swift

    func deleteFunctionCodeSigningConfig(_ request: AWSLambdaDeleteFunctionCodeSigningConfigRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFunctionCodeSigningConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorCodeSigningConfigNotFound, AWSLambdaErrorResourceNotFound, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests, AWSLambdaErrorResourceConflict.

  • Removes a concurrent execution limit from a function.

    See

    AWSLambdaDeleteFunctionConcurrencyRequest

    Declaration

    Objective-C

    - (id)deleteFunctionConcurrency:
        (nonnull AWSLambdaDeleteFunctionConcurrencyRequest *)request;

    Swift

    func deleteFunctionConcurrency(_ request: AWSLambdaDeleteFunctionConcurrencyRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • Removes a concurrent execution limit from a function.

    See

    AWSLambdaDeleteFunctionConcurrencyRequest

    Declaration

    Objective-C

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

    Swift

    func deleteFunctionConcurrency(_ request: AWSLambdaDeleteFunctionConcurrencyRequest) async throws

    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, AWSLambdaErrorResourceConflict.

  • Deletes the configuration for asynchronous invocation for a function, version, or alias.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaDeleteFunctionEventInvokeConfigRequest

    Declaration

    Objective-C

    - (id)deleteFunctionEventInvokeConfig:
        (nonnull AWSLambdaDeleteFunctionEventInvokeConfigRequest *)request;

    Swift

    func deleteFunctionEventInvokeConfig(_ request: AWSLambdaDeleteFunctionEventInvokeConfigRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFunctionEventInvokeConfig 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, AWSLambdaErrorResourceConflict.

  • Deletes the configuration for asynchronous invocation for a function, version, or alias.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaDeleteFunctionEventInvokeConfigRequest

    Declaration

    Objective-C

    - (void)deleteFunctionEventInvokeConfig:
                (nonnull AWSLambdaDeleteFunctionEventInvokeConfigRequest *)request
                          completionHandler:(void (^_Nullable)(NSError *_Nullable))
                                                completionHandler;

    Swift

    func deleteFunctionEventInvokeConfig(_ request: AWSLambdaDeleteFunctionEventInvokeConfigRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFunctionEventInvokeConfig 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, AWSLambdaErrorResourceConflict.

  • Deletes a Lambda function URL. When you delete a function URL, you can’t recover it. Creating a new function URL results in a different URL address.

    See

    AWSLambdaDeleteFunctionUrlConfigRequest

    Declaration

    Objective-C

    - (id)deleteFunctionUrlConfig:
        (nonnull AWSLambdaDeleteFunctionUrlConfigRequest *)request;

    Swift

    func deleteFunctionUrlConfig(_ request: AWSLambdaDeleteFunctionUrlConfigRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFunctionUrlConfig 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: AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotFound, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.

  • Deletes a Lambda function URL. When you delete a function URL, you can’t recover it. Creating a new function URL results in a different URL address.

    See

    AWSLambdaDeleteFunctionUrlConfigRequest

    Declaration

    Objective-C

    - (void)deleteFunctionUrlConfig:
                (nonnull AWSLambdaDeleteFunctionUrlConfigRequest *)request
                  completionHandler:
                      (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteFunctionUrlConfig(_ request: AWSLambdaDeleteFunctionUrlConfigRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFunctionUrlConfig 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: AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotFound, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.

  • Deletes a version of an 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.

    See

    AWSLambdaDeleteLayerVersionRequest

    Declaration

    Objective-C

    - (id)deleteLayerVersion:(nonnull AWSLambdaDeleteLayerVersionRequest *)request;

    Swift

    func deleteLayerVersion(_ request: AWSLambdaDeleteLayerVersionRequest) -> Any!

    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.

  • Deletes a version of an 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.

    See

    AWSLambdaDeleteLayerVersionRequest

    Declaration

    Objective-C

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

    Swift

    func deleteLayerVersion(_ request: AWSLambdaDeleteLayerVersionRequest) async throws

    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.

  • Deletes the provisioned concurrency configuration for a function.

    See

    AWSLambdaDeleteProvisionedConcurrencyConfigRequest

    Declaration

    Objective-C

    - (id)deleteProvisionedConcurrencyConfig:
        (nonnull AWSLambdaDeleteProvisionedConcurrencyConfigRequest *)request;

    Swift

    func deleteProvisionedConcurrencyConfig(_ request: AWSLambdaDeleteProvisionedConcurrencyConfigRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteProvisionedConcurrencyConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

  • Deletes the provisioned concurrency configuration for a function.

    See

    AWSLambdaDeleteProvisionedConcurrencyConfigRequest

    Declaration

    Objective-C

    - (void)
        deleteProvisionedConcurrencyConfig:
            (nonnull AWSLambdaDeleteProvisionedConcurrencyConfigRequest *)request
                         completionHandler:(void (^_Nullable)(NSError *_Nullable))
                                               completionHandler;

    Swift

    func deleteProvisionedConcurrencyConfig(_ request: AWSLambdaDeleteProvisionedConcurrencyConfigRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteProvisionedConcurrencyConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

  • Retrieves details about your account’s limits and usage in an Amazon Web Services Region.

    See

    AWSLambdaGetAccountSettingsRequest

    See

    AWSLambdaGetAccountSettingsResponse

    Declaration

    Objective-C

    - (id)getAccountSettings:(nonnull AWSLambdaGetAccountSettingsRequest *)request;

    Swift

    func getAccountSettings(_ request: AWSLambdaGetAccountSettingsRequest) -> Any!

    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.

  • Retrieves details about your account’s limits and usage in an Amazon Web Services Region.

    See

    AWSLambdaGetAccountSettingsRequest

    See

    AWSLambdaGetAccountSettingsResponse

    Declaration

    Objective-C

    - (void)getAccountSettings:(nonnull AWSLambdaGetAccountSettingsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSLambdaGetAccountSettingsResponse *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func accountSettings(_ request: AWSLambdaGetAccountSettingsRequest) async throws -> AWSLambdaGetAccountSettingsResponse

    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.

  • Returns details about a Lambda function alias.

    See

    AWSLambdaGetAliasRequest

    See

    AWSLambdaAliasConfiguration

    Declaration

    Objective-C

    - (id)getAlias:(nonnull AWSLambdaGetAliasRequest *)request;

    Swift

    func getAlias(_ request: AWSLambdaGetAliasRequest) -> Any!

    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.

  • Returns details about a Lambda function alias.

    See

    AWSLambdaGetAliasRequest

    See

    AWSLambdaAliasConfiguration

    Declaration

    Objective-C

    - (void)getAlias:(nonnull AWSLambdaGetAliasRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaAliasConfiguration *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func alias(_ request: AWSLambdaGetAliasRequest) async throws -> AWSLambdaAliasConfiguration

    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.

  • Returns information about the specified code signing configuration.

    See

    AWSLambdaGetCodeSigningConfigRequest

    See

    AWSLambdaGetCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)getCodeSigningConfig:
        (nonnull AWSLambdaGetCodeSigningConfigRequest *)request;

    Swift

    func getCodeSigningConfig(_ request: AWSLambdaGetCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Returns information about the specified code signing configuration.

    See

    AWSLambdaGetCodeSigningConfigRequest

    See

    AWSLambdaGetCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)
        getCodeSigningConfig:(nonnull AWSLambdaGetCodeSigningConfigRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSLambdaGetCodeSigningConfigResponse *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func codeSigningConfig(_ request: AWSLambdaGetCodeSigningConfigRequest) async throws -> AWSLambdaGetCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the GetCodeSigningConfig 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.

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

    See

    AWSLambdaGetEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (id)getEventSourceMapping:
        (nonnull AWSLambdaGetEventSourceMappingRequest *)request;

    Swift

    func getEventSourceMapping(_ request: AWSLambdaGetEventSourceMappingRequest) -> Any!

    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.

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

    See

    AWSLambdaGetEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (void)getEventSourceMapping:
                (nonnull AWSLambdaGetEventSourceMappingRequest *)request
                completionHandler:
                    (void (^_Nullable)(
                        AWSLambdaEventSourceMappingConfiguration *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func eventSourceMapping(_ request: AWSLambdaGetEventSourceMappingRequest) async throws -> AWSLambdaEventSourceMappingConfiguration

    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.

  • 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.

    See

    AWSLambdaGetFunctionRequest

    See

    AWSLambdaGetFunctionResponse

    Declaration

    Objective-C

    - (id)getFunction:(nonnull AWSLambdaGetFunctionRequest *)request;

    Swift

    func getFunction(_ request: AWSLambdaGetFunctionRequest) -> Any!

    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.

  • 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.

    See

    AWSLambdaGetFunctionRequest

    See

    AWSLambdaGetFunctionResponse

    Declaration

    Objective-C

    - (void)getFunction:(nonnull AWSLambdaGetFunctionRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSLambdaGetFunctionResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func function(_ request: AWSLambdaGetFunctionRequest) async throws -> AWSLambdaGetFunctionResponse

    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.

  • Returns the code signing configuration for the specified function.

    See

    AWSLambdaGetFunctionCodeSigningConfigRequest

    See

    AWSLambdaGetFunctionCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)getFunctionCodeSigningConfig:
        (nonnull AWSLambdaGetFunctionCodeSigningConfigRequest *)request;

    Swift

    func getFunctionCodeSigningConfig(_ request: AWSLambdaGetFunctionCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Returns the code signing configuration for the specified function.

    See

    AWSLambdaGetFunctionCodeSigningConfigRequest

    See

    AWSLambdaGetFunctionCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)
        getFunctionCodeSigningConfig:
            (nonnull AWSLambdaGetFunctionCodeSigningConfigRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSLambdaGetFunctionCodeSigningConfigResponse *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func functionCodeSigningConfig(_ request: AWSLambdaGetFunctionCodeSigningConfigRequest) async throws -> AWSLambdaGetFunctionCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the GetFunctionCodeSigningConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.

  • Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

    See

    AWSLambdaGetFunctionConcurrencyRequest

    See

    AWSLambdaGetFunctionConcurrencyResponse

    Declaration

    Objective-C

    - (id)getFunctionConcurrency:
        (nonnull AWSLambdaGetFunctionConcurrencyRequest *)request;

    Swift

    func getFunctionConcurrency(_ request: AWSLambdaGetFunctionConcurrencyRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

    See

    AWSLambdaGetFunctionConcurrencyRequest

    See

    AWSLambdaGetFunctionConcurrencyResponse

    Declaration

    Objective-C

    - (void)getFunctionConcurrency:
                (nonnull AWSLambdaGetFunctionConcurrencyRequest *)request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSLambdaGetFunctionConcurrencyResponse *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func functionConcurrency(_ request: AWSLambdaGetFunctionConcurrencyRequest) async throws -> AWSLambdaGetFunctionConcurrencyResponse

    Parameters

    request

    A container for the necessary parameters to execute the GetFunctionConcurrency 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

  • 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.

    See

    AWSLambdaGetFunctionConfigurationRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (id)getFunctionConfiguration:
        (nonnull AWSLambdaGetFunctionConfigurationRequest *)request;

    Swift

    func getFunctionConfiguration(_ request: AWSLambdaGetFunctionConfigurationRequest) -> Any!

    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.

  • 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.

    See

    AWSLambdaGetFunctionConfigurationRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (void)getFunctionConfiguration:
                (nonnull AWSLambdaGetFunctionConfigurationRequest *)request
                   completionHandler:
                       (void (^_Nullable)(AWSLambdaFunctionConfiguration *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func functionConfiguration(_ request: AWSLambdaGetFunctionConfigurationRequest) async throws -> AWSLambdaFunctionConfiguration

    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.

  • Retrieves the configuration for asynchronous invocation for a function, version, or alias.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaGetFunctionEventInvokeConfigRequest

    See

    AWSLambdaFunctionEventInvokeConfig

    Declaration

    Objective-C

    - (id)getFunctionEventInvokeConfig:
        (nonnull AWSLambdaGetFunctionEventInvokeConfigRequest *)request;

    Swift

    func getFunctionEventInvokeConfig(_ request: AWSLambdaGetFunctionEventInvokeConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Retrieves the configuration for asynchronous invocation for a function, version, or alias.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaGetFunctionEventInvokeConfigRequest

    See

    AWSLambdaFunctionEventInvokeConfig

    Declaration

    Objective-C

    - (void)getFunctionEventInvokeConfig:
                (nonnull AWSLambdaGetFunctionEventInvokeConfigRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSLambdaFunctionEventInvokeConfig *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func functionEventInvokeConfig(_ request: AWSLambdaGetFunctionEventInvokeConfigRequest) async throws -> AWSLambdaFunctionEventInvokeConfig

    Parameters

    request

    A container for the necessary parameters to execute the GetFunctionEventInvokeConfig 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.

  • Returns details about a Lambda function URL.

    See

    AWSLambdaGetFunctionUrlConfigRequest

    See

    AWSLambdaGetFunctionUrlConfigResponse

    Declaration

    Objective-C

    - (id)getFunctionUrlConfig:
        (nonnull AWSLambdaGetFunctionUrlConfigRequest *)request;

    Swift

    func getFunctionUrlConfig(_ request: AWSLambdaGetFunctionUrlConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Returns details about a Lambda function URL.

    See

    AWSLambdaGetFunctionUrlConfigRequest

    See

    AWSLambdaGetFunctionUrlConfigResponse

    Declaration

    Objective-C

    - (void)
        getFunctionUrlConfig:(nonnull AWSLambdaGetFunctionUrlConfigRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSLambdaGetFunctionUrlConfigResponse *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func functionUrlConfig(_ request: AWSLambdaGetFunctionUrlConfigRequest) async throws -> AWSLambdaGetFunctionUrlConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the GetFunctionUrlConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests.

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

    See

    AWSLambdaGetLayerVersionRequest

    See

    AWSLambdaGetLayerVersionResponse

    Declaration

    Objective-C

    - (id)getLayerVersion:(nonnull AWSLambdaGetLayerVersionRequest *)request;

    Swift

    func getLayerVersion(_ request: AWSLambdaGetLayerVersionRequest) -> Any!

    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.

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

    See

    AWSLambdaGetLayerVersionRequest

    See

    AWSLambdaGetLayerVersionResponse

    Declaration

    Objective-C

    - (void)getLayerVersion:(nonnull AWSLambdaGetLayerVersionRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSLambdaGetLayerVersionResponse *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func layerVersion(_ request: AWSLambdaGetLayerVersionRequest) async throws -> AWSLambdaGetLayerVersionResponse

    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.

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

    See

    AWSLambdaGetLayerVersionByArnRequest

    See

    AWSLambdaGetLayerVersionResponse

    Declaration

    Objective-C

    - (id)getLayerVersionByArn:
        (nonnull AWSLambdaGetLayerVersionByArnRequest *)request;

    Swift

    func getLayerVersion(byArn request: AWSLambdaGetLayerVersionByArnRequest) -> Any!

    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.

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

    See

    AWSLambdaGetLayerVersionByArnRequest

    See

    AWSLambdaGetLayerVersionResponse

    Declaration

    Objective-C

    - (void)getLayerVersionByArn:
                (nonnull AWSLambdaGetLayerVersionByArnRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSLambdaGetLayerVersionResponse *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func layerVersion(byArn request: AWSLambdaGetLayerVersionByArnRequest) async throws -> AWSLambdaGetLayerVersionResponse

    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.

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

    See

    AWSLambdaGetLayerVersionPolicyRequest

    See

    AWSLambdaGetLayerVersionPolicyResponse

    Declaration

    Objective-C

    - (id)getLayerVersionPolicy:
        (nonnull AWSLambdaGetLayerVersionPolicyRequest *)request;

    Swift

    func getLayerVersionPolicy(_ request: AWSLambdaGetLayerVersionPolicyRequest) -> Any!

    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.

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

    See

    AWSLambdaGetLayerVersionPolicyRequest

    See

    AWSLambdaGetLayerVersionPolicyResponse

    Declaration

    Objective-C

    - (void)getLayerVersionPolicy:
                (nonnull AWSLambdaGetLayerVersionPolicyRequest *)request
                completionHandler:
                    (void (^_Nullable)(
                        AWSLambdaGetLayerVersionPolicyResponse *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func layerVersionPolicy(_ request: AWSLambdaGetLayerVersionPolicyRequest) async throws -> AWSLambdaGetLayerVersionPolicyResponse

    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.

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

    See

    AWSLambdaGetPolicyRequest

    See

    AWSLambdaGetPolicyResponse

    Declaration

    Objective-C

    - (id)getPolicy:(nonnull AWSLambdaGetPolicyRequest *)request;

    Swift

    func getPolicy(_ request: AWSLambdaGetPolicyRequest) -> Any!

    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.

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

    See

    AWSLambdaGetPolicyRequest

    See

    AWSLambdaGetPolicyResponse

    Declaration

    Objective-C

    - (void)getPolicy:(nonnull AWSLambdaGetPolicyRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaGetPolicyResponse *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func policy(_ request: AWSLambdaGetPolicyRequest) async throws -> AWSLambdaGetPolicyResponse

    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.

  • Retrieves the provisioned concurrency configuration for a function’s alias or version.

    See

    AWSLambdaGetProvisionedConcurrencyConfigRequest

    See

    AWSLambdaGetProvisionedConcurrencyConfigResponse

    Declaration

    Objective-C

    - (id)getProvisionedConcurrencyConfig:
        (nonnull AWSLambdaGetProvisionedConcurrencyConfigRequest *)request;

    Swift

    func getProvisionedConcurrencyConfig(_ request: AWSLambdaGetProvisionedConcurrencyConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Retrieves the provisioned concurrency configuration for a function’s alias or version.

    See

    AWSLambdaGetProvisionedConcurrencyConfigRequest

    See

    AWSLambdaGetProvisionedConcurrencyConfigResponse

    Declaration

    Objective-C

    - (void)getProvisionedConcurrencyConfig:
                (nonnull AWSLambdaGetProvisionedConcurrencyConfigRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSLambdaGetProvisionedConcurrencyConfigResponse
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func provisionedConcurrencyConfig(_ request: AWSLambdaGetProvisionedConcurrencyConfigRequest) async throws -> AWSLambdaGetProvisionedConcurrencyConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the GetProvisionedConcurrencyConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService, AWSLambdaErrorProvisionedConcurrencyConfigNotFound.

  • Retrieves the runtime management configuration for a function’s version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and null is returned for the ARN. For more information, see Runtime updates.

    See

    AWSLambdaGetRuntimeManagementConfigRequest

    See

    AWSLambdaGetRuntimeManagementConfigResponse

    Declaration

    Objective-C

    - (id)getRuntimeManagementConfig:
        (nonnull AWSLambdaGetRuntimeManagementConfigRequest *)request;

    Swift

    func getRuntimeManagementConfig(_ request: AWSLambdaGetRuntimeManagementConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Retrieves the runtime management configuration for a function’s version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and null is returned for the ARN. For more information, see Runtime updates.

    See

    AWSLambdaGetRuntimeManagementConfigRequest

    See

    AWSLambdaGetRuntimeManagementConfigResponse

    Declaration

    Objective-C

    - (void)getRuntimeManagementConfig:
                (nonnull AWSLambdaGetRuntimeManagementConfigRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSLambdaGetRuntimeManagementConfigResponse *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func runtimeManagementConfig(_ request: AWSLambdaGetRuntimeManagementConfigRequest) async throws -> AWSLambdaGetRuntimeManagementConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the GetRuntimeManagementConfig 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.

  • Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType is RequestResponse). To invoke a function asynchronously, set InvocationType to Event. Lambda passes the ClientContext object to your function for synchronous invocations only.

    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.

    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 Error handling and automatic retries in Lambda.

    For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.

    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, quota errors, or issues with your function’s code and configuration. For example, Lambda returns TooManyRequestsException if running 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 disconnect 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. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

    See

    AWSLambdaInvocationRequest

    See

    AWSLambdaInvocationResponse

    Declaration

    Objective-C

    - (id)invoke:(nonnull AWSLambdaInvocationRequest *)request;

    Swift

    func invoke(_ request: AWSLambdaInvocationRequest) -> Any!

    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, AWSLambdaErrorEFSMountConnectivity, AWSLambdaErrorEFSMountFailure, AWSLambdaErrorEFSMountTimeout, AWSLambdaErrorEFSIO, AWSLambdaErrorSnapStart, AWSLambdaErrorSnapStartTimeout, AWSLambdaErrorSnapStartNotReady, AWSLambdaErrorEC2Throttled, AWSLambdaErrorEC2AccessDenied, AWSLambdaErrorInvalidSubnetID, AWSLambdaErrorInvalidSecurityGroupID, AWSLambdaErrorInvalidZipFile, AWSLambdaErrorKMSDisabled, AWSLambdaErrorKMSInvalidState, AWSLambdaErrorKMSAccessDenied, AWSLambdaErrorKMSNotFound, AWSLambdaErrorInvalidRuntime, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotReady, AWSLambdaErrorRecursiveInvocation.

  • Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType is RequestResponse). To invoke a function asynchronously, set InvocationType to Event. Lambda passes the ClientContext object to your function for synchronous invocations only.

    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.

    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 Error handling and automatic retries in Lambda.

    For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.

    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, quota errors, or issues with your function’s code and configuration. For example, Lambda returns TooManyRequestsException if running 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 disconnect 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. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

    See

    AWSLambdaInvocationRequest

    See

    AWSLambdaInvocationResponse

    Declaration

    Objective-C

    - (void)invoke:(nonnull AWSLambdaInvocationRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaInvocationResponse *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func invoke(_ request: AWSLambdaInvocationRequest) async throws -> AWSLambdaInvocationResponse

    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, AWSLambdaErrorEFSMountConnectivity, AWSLambdaErrorEFSMountFailure, AWSLambdaErrorEFSMountTimeout, AWSLambdaErrorEFSIO, AWSLambdaErrorSnapStart, AWSLambdaErrorSnapStartTimeout, AWSLambdaErrorSnapStartNotReady, AWSLambdaErrorEC2Throttled, AWSLambdaErrorEC2AccessDenied, AWSLambdaErrorInvalidSubnetID, AWSLambdaErrorInvalidSecurityGroupID, AWSLambdaErrorInvalidZipFile, AWSLambdaErrorKMSDisabled, AWSLambdaErrorKMSInvalidState, AWSLambdaErrorKMSAccessDenied, AWSLambdaErrorKMSNotFound, AWSLambdaErrorInvalidRuntime, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotReady, AWSLambdaErrorRecursiveInvocation.

  • For asynchronous function invocation, use Invoke.

    Invokes a function asynchronously.

    If you do use the InvokeAsync action, note that it doesn’t support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.

    See

    AWSLambdaInvokeAsyncRequest

    See

    AWSLambdaInvokeAsyncResponse

    Declaration

    Objective-C

    - (id)invokeAsync:(nonnull AWSLambdaInvokeAsyncRequest *)request;

    Swift

    func invokeAsync(_ request: AWSLambdaInvokeAsyncRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • For asynchronous function invocation, use Invoke.

    Invokes a function asynchronously.

    If you do use the InvokeAsync action, note that it doesn’t support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.

    See

    AWSLambdaInvokeAsyncRequest

    See

    AWSLambdaInvokeAsyncResponse

    Declaration

    Objective-C

    - (void)invokeAsync:(nonnull AWSLambdaInvokeAsyncRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSLambdaInvokeAsyncResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func invokeAsync(_ request: AWSLambdaInvokeAsyncRequest) async throws -> AWSLambdaInvokeAsyncResponse

    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, AWSLambdaErrorResourceConflict.

  • Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.

    This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

    See

    AWSLambdaInvokeWithResponseStreamRequest

    See

    AWSLambdaInvokeWithResponseStreamResponse

    Declaration

    Objective-C

    - (id)invokeWithResponseStream:
        (nonnull AWSLambdaInvokeWithResponseStreamRequest *)request;

    Swift

    func invoke(withResponseStream request: AWSLambdaInvokeWithResponseStreamRequest) -> Any!

    Parameters

    request

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

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSLambdaInvokeWithResponseStreamResponse. 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, AWSLambdaErrorEFSMountConnectivity, AWSLambdaErrorEFSMountFailure, AWSLambdaErrorEFSMountTimeout, AWSLambdaErrorEFSIO, AWSLambdaErrorSnapStart, AWSLambdaErrorSnapStartTimeout, AWSLambdaErrorSnapStartNotReady, AWSLambdaErrorEC2Throttled, AWSLambdaErrorEC2AccessDenied, AWSLambdaErrorInvalidSubnetID, AWSLambdaErrorInvalidSecurityGroupID, AWSLambdaErrorInvalidZipFile, AWSLambdaErrorKMSDisabled, AWSLambdaErrorKMSInvalidState, AWSLambdaErrorKMSAccessDenied, AWSLambdaErrorKMSNotFound, AWSLambdaErrorInvalidRuntime, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotReady, AWSLambdaErrorRecursiveInvocation.

  • Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.

    This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

    See

    AWSLambdaInvokeWithResponseStreamRequest

    See

    AWSLambdaInvokeWithResponseStreamResponse

    Declaration

    Objective-C

    - (void)invokeWithResponseStream:
                (nonnull AWSLambdaInvokeWithResponseStreamRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSLambdaInvokeWithResponseStreamResponse *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func invoke(withResponseStream request: AWSLambdaInvokeWithResponseStreamRequest) async throws -> AWSLambdaInvokeWithResponseStreamResponse

    Parameters

    request

    A container for the necessary parameters to execute the InvokeWithResponseStream 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, AWSLambdaErrorEFSMountConnectivity, AWSLambdaErrorEFSMountFailure, AWSLambdaErrorEFSMountTimeout, AWSLambdaErrorEFSIO, AWSLambdaErrorSnapStart, AWSLambdaErrorSnapStartTimeout, AWSLambdaErrorSnapStartNotReady, AWSLambdaErrorEC2Throttled, AWSLambdaErrorEC2AccessDenied, AWSLambdaErrorInvalidSubnetID, AWSLambdaErrorInvalidSecurityGroupID, AWSLambdaErrorInvalidZipFile, AWSLambdaErrorKMSDisabled, AWSLambdaErrorKMSInvalidState, AWSLambdaErrorKMSAccessDenied, AWSLambdaErrorKMSNotFound, AWSLambdaErrorInvalidRuntime, AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotReady, AWSLambdaErrorRecursiveInvocation.

  • Returns a list of aliases for a Lambda function.

    See

    AWSLambdaListAliasesRequest

    See

    AWSLambdaListAliasesResponse

    Declaration

    Objective-C

    - (id)listAliases:(nonnull AWSLambdaListAliasesRequest *)request;

    Swift

    func listAliases(_ request: AWSLambdaListAliasesRequest) -> Any!

    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.

  • Returns a list of aliases for a Lambda function.

    See

    AWSLambdaListAliasesRequest

    See

    AWSLambdaListAliasesResponse

    Declaration

    Objective-C

    - (void)listAliases:(nonnull AWSLambdaListAliasesRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSLambdaListAliasesResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func listAliases(_ request: AWSLambdaListAliasesRequest) async throws -> AWSLambdaListAliasesResponse

    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.

  • Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

    See

    AWSLambdaListCodeSigningConfigsRequest

    See

    AWSLambdaListCodeSigningConfigsResponse

    Declaration

    Objective-C

    - (id)listCodeSigningConfigs:
        (nonnull AWSLambdaListCodeSigningConfigsRequest *)request;

    Swift

    func listCodeSigningConfigs(_ request: AWSLambdaListCodeSigningConfigsRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

    See

    AWSLambdaListCodeSigningConfigsRequest

    See

    AWSLambdaListCodeSigningConfigsResponse

    Declaration

    Objective-C

    - (void)listCodeSigningConfigs:
                (nonnull AWSLambdaListCodeSigningConfigsRequest *)request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSLambdaListCodeSigningConfigsResponse *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func listCodeSigningConfigs(_ request: AWSLambdaListCodeSigningConfigsRequest) async throws -> AWSLambdaListCodeSigningConfigsResponse

    Parameters

    request

    A container for the necessary parameters to execute the ListCodeSigningConfigs 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.

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

    See

    AWSLambdaListEventSourceMappingsRequest

    See

    AWSLambdaListEventSourceMappingsResponse

    Declaration

    Objective-C

    - (id)listEventSourceMappings:
        (nonnull AWSLambdaListEventSourceMappingsRequest *)request;

    Swift

    func listEventSourceMappings(_ request: AWSLambdaListEventSourceMappingsRequest) -> Any!

    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.

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

    See

    AWSLambdaListEventSourceMappingsRequest

    See

    AWSLambdaListEventSourceMappingsResponse

    Declaration

    Objective-C

    - (void)listEventSourceMappings:
                (nonnull AWSLambdaListEventSourceMappingsRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSLambdaListEventSourceMappingsResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func listEventSourceMappings(_ request: AWSLambdaListEventSourceMappingsRequest) async throws -> AWSLambdaListEventSourceMappingsResponse

    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.

  • Retrieves a list of configurations for asynchronous invocation for a function.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaListFunctionEventInvokeConfigsRequest

    See

    AWSLambdaListFunctionEventInvokeConfigsResponse

    Declaration

    Objective-C

    - (id)listFunctionEventInvokeConfigs:
        (nonnull AWSLambdaListFunctionEventInvokeConfigsRequest *)request;

    Swift

    func listFunctionEventInvokeConfigs(_ request: AWSLambdaListFunctionEventInvokeConfigsRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Retrieves a list of configurations for asynchronous invocation for a function.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaListFunctionEventInvokeConfigsRequest

    See

    AWSLambdaListFunctionEventInvokeConfigsResponse

    Declaration

    Objective-C

    - (void)listFunctionEventInvokeConfigs:
                (nonnull AWSLambdaListFunctionEventInvokeConfigsRequest *)request
                         completionHandler:
                             (void (^_Nullable)(
                                 AWSLambdaListFunctionEventInvokeConfigsResponse
                                     *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func listFunctionEventInvokeConfigs(_ request: AWSLambdaListFunctionEventInvokeConfigsRequest) async throws -> AWSLambdaListFunctionEventInvokeConfigsResponse

    Parameters

    request

    A container for the necessary parameters to execute the ListFunctionEventInvokeConfigs 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

  • Returns a list of Lambda function URLs for the specified function.

    See

    AWSLambdaListFunctionUrlConfigsRequest

    See

    AWSLambdaListFunctionUrlConfigsResponse

    Declaration

    Objective-C

    - (id)listFunctionUrlConfigs:
        (nonnull AWSLambdaListFunctionUrlConfigsRequest *)request;

    Swift

    func listFunctionUrlConfigs(_ request: AWSLambdaListFunctionUrlConfigsRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Returns a list of Lambda function URLs for the specified function.

    See

    AWSLambdaListFunctionUrlConfigsRequest

    See

    AWSLambdaListFunctionUrlConfigsResponse

    Declaration

    Objective-C

    - (void)listFunctionUrlConfigs:
                (nonnull AWSLambdaListFunctionUrlConfigsRequest *)request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSLambdaListFunctionUrlConfigsResponse *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func listFunctionUrlConfigs(_ request: AWSLambdaListFunctionUrlConfigsRequest) async throws -> AWSLambdaListFunctionUrlConfigsResponse

    Parameters

    request

    A container for the necessary parameters to execute the ListFunctionUrlConfigs 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorService, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests.

  • Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

    Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

    The ListFunctions operation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.

    See

    AWSLambdaListFunctionsRequest

    See

    AWSLambdaListFunctionsResponse

    Declaration

    Objective-C

    - (id)listFunctions:(nonnull AWSLambdaListFunctionsRequest *)request;

    Swift

    func listFunctions(_ request: AWSLambdaListFunctionsRequest) -> Any!

    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.

  • Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

    Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

    The ListFunctions operation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.

    See

    AWSLambdaListFunctionsRequest

    See

    AWSLambdaListFunctionsResponse

    Declaration

    Objective-C

    - (void)listFunctions:(nonnull AWSLambdaListFunctionsRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSLambdaListFunctionsResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func listFunctions(_ request: AWSLambdaListFunctionsRequest) async throws -> AWSLambdaListFunctionsResponse

    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.

  • List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

    See

    AWSLambdaListFunctionsByCodeSigningConfigRequest

    See

    AWSLambdaListFunctionsByCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)listFunctionsByCodeSigningConfig:
        (nonnull AWSLambdaListFunctionsByCodeSigningConfigRequest *)request;

    Swift

    func listFunctions(byCodeSigningConfig request: AWSLambdaListFunctionsByCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

    See

    AWSLambdaListFunctionsByCodeSigningConfigRequest

    See

    AWSLambdaListFunctionsByCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)listFunctionsByCodeSigningConfig:
                (nonnull AWSLambdaListFunctionsByCodeSigningConfigRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSLambdaListFunctionsByCodeSigningConfigResponse
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func listFunctions(byCodeSigningConfig request: AWSLambdaListFunctionsByCodeSigningConfigRequest) async throws -> AWSLambdaListFunctionsByCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the ListFunctionsByCodeSigningConfig 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.

  • Lists the versions of an 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. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

    See

    AWSLambdaListLayerVersionsRequest

    See

    AWSLambdaListLayerVersionsResponse

    Declaration

    Objective-C

    - (id)listLayerVersions:(nonnull AWSLambdaListLayerVersionsRequest *)request;

    Swift

    func listLayerVersions(_ request: AWSLambdaListLayerVersionsRequest) -> Any!

    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.

  • Lists the versions of an 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. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

    See

    AWSLambdaListLayerVersionsRequest

    See

    AWSLambdaListLayerVersionsResponse

    Declaration

    Objective-C

    - (void)listLayerVersions:(nonnull AWSLambdaListLayerVersionsRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSLambdaListLayerVersionsResponse *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func listLayerVersions(_ request: AWSLambdaListLayerVersionsRequest) async throws -> AWSLambdaListLayerVersionsResponse

    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.

  • Lists 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.

    See

    AWSLambdaListLayersRequest

    See

    AWSLambdaListLayersResponse

    Declaration

    Objective-C

    - (id)listLayers:(nonnull AWSLambdaListLayersRequest *)request;

    Swift

    func listLayers(_ request: AWSLambdaListLayersRequest) -> Any!

    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.

  • Lists 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.

    See

    AWSLambdaListLayersRequest

    See

    AWSLambdaListLayersResponse

    Declaration

    Objective-C

    - (void)listLayers:(nonnull AWSLambdaListLayersRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaListLayersResponse *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func listLayers(_ request: AWSLambdaListLayersRequest) async throws -> AWSLambdaListLayersResponse

    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.

  • Retrieves a list of provisioned concurrency configurations for a function.

    See

    AWSLambdaListProvisionedConcurrencyConfigsRequest

    See

    AWSLambdaListProvisionedConcurrencyConfigsResponse

    Declaration

    Objective-C

    - (id)listProvisionedConcurrencyConfigs:
        (nonnull AWSLambdaListProvisionedConcurrencyConfigsRequest *)request;

    Swift

    func listProvisionedConcurrencyConfigs(_ request: AWSLambdaListProvisionedConcurrencyConfigsRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Retrieves a list of provisioned concurrency configurations for a function.

    See

    AWSLambdaListProvisionedConcurrencyConfigsRequest

    See

    AWSLambdaListProvisionedConcurrencyConfigsResponse

    Declaration

    Objective-C

    - (void)
        listProvisionedConcurrencyConfigs:
            (nonnull AWSLambdaListProvisionedConcurrencyConfigsRequest *)request
                        completionHandler:
                            (void (^_Nullable)(
                                AWSLambdaListProvisionedConcurrencyConfigsResponse
                                    *_Nullable,
                                NSError *_Nullable))completionHandler;

    Swift

    func listProvisionedConcurrencyConfigs(_ request: AWSLambdaListProvisionedConcurrencyConfigsRequest) async throws -> AWSLambdaListProvisionedConcurrencyConfigsResponse

    Parameters

    request

    A container for the necessary parameters to execute the ListProvisionedConcurrencyConfigs 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

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

    See

    AWSLambdaListTagsRequest

    See

    AWSLambdaListTagsResponse

    Declaration

    Objective-C

    - (id)listTags:(nonnull AWSLambdaListTagsRequest *)request;

    Swift

    func listTags(_ request: AWSLambdaListTagsRequest) -> Any!

    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.

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

    See

    AWSLambdaListTagsRequest

    See

    AWSLambdaListTagsResponse

    Declaration

    Objective-C

    - (void)listTags:(nonnull AWSLambdaListTagsRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaListTagsResponse *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func listTags(_ request: AWSLambdaListTagsRequest) async throws -> AWSLambdaListTagsResponse

    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.

  • Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.

    See

    AWSLambdaListVersionsByFunctionRequest

    See

    AWSLambdaListVersionsByFunctionResponse

    Declaration

    Objective-C

    - (id)listVersionsByFunction:
        (nonnull AWSLambdaListVersionsByFunctionRequest *)request;

    Swift

    func listVersions(byFunction request: AWSLambdaListVersionsByFunctionRequest) -> Any!

    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.

  • Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.

    See

    AWSLambdaListVersionsByFunctionRequest

    See

    AWSLambdaListVersionsByFunctionResponse

    Declaration

    Objective-C

    - (void)listVersionsByFunction:
                (nonnull AWSLambdaListVersionsByFunctionRequest *)request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSLambdaListVersionsByFunctionResponse *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func listVersions(byFunction request: AWSLambdaListVersionsByFunctionRequest) async throws -> AWSLambdaListVersionsByFunctionResponse

    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.

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

    Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

    See

    AWSLambdaPublishLayerVersionRequest

    See

    AWSLambdaPublishLayerVersionResponse

    Declaration

    Objective-C

    - (id)publishLayerVersion:
        (nonnull AWSLambdaPublishLayerVersionRequest *)request;

    Swift

    func publishLayerVersion(_ request: AWSLambdaPublishLayerVersionRequest) -> Any!

    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.

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

    Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

    See

    AWSLambdaPublishLayerVersionRequest

    See

    AWSLambdaPublishLayerVersionResponse

    Declaration

    Objective-C

    - (void)
        publishLayerVersion:(nonnull AWSLambdaPublishLayerVersionRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSLambdaPublishLayerVersionResponse *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func publishLayerVersion(_ request: AWSLambdaPublishLayerVersionRequest) async throws -> AWSLambdaPublishLayerVersionResponse

    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.

  • 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.

    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.

    See

    AWSLambdaPublishVersionRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (id)publishVersion:(nonnull AWSLambdaPublishVersionRequest *)request;

    Swift

    func publishVersion(_ request: AWSLambdaPublishVersionRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • 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.

    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.

    See

    AWSLambdaPublishVersionRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (void)publishVersion:(nonnull AWSLambdaPublishVersionRequest *)request
         completionHandler:
             (void (^_Nullable)(AWSLambdaFunctionConfiguration *_Nullable,
                                NSError *_Nullable))completionHandler;

    Swift

    func publishVersion(_ request: AWSLambdaPublishVersionRequest) async throws -> AWSLambdaFunctionConfiguration

    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, AWSLambdaErrorResourceConflict.

  • Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

    See

    AWSLambdaPutFunctionCodeSigningConfigRequest

    See

    AWSLambdaPutFunctionCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)putFunctionCodeSigningConfig:
        (nonnull AWSLambdaPutFunctionCodeSigningConfigRequest *)request;

    Swift

    func putFunctionCodeSigningConfig(_ request: AWSLambdaPutFunctionCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

    See

    AWSLambdaPutFunctionCodeSigningConfigRequest

    See

    AWSLambdaPutFunctionCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)
        putFunctionCodeSigningConfig:
            (nonnull AWSLambdaPutFunctionCodeSigningConfigRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSLambdaPutFunctionCodeSigningConfigResponse *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func putFunctionCodeSigningConfig(_ request: AWSLambdaPutFunctionCodeSigningConfigRequest) async throws -> AWSLambdaPutFunctionCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the PutFunctionCodeSigningConfig 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, AWSLambdaErrorResourceConflict, AWSLambdaErrorCodeSigningConfigNotFound.

  • 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 Lambda function scaling.

    See

    AWSLambdaPutFunctionConcurrencyRequest

    See

    AWSLambdaConcurrency

    Declaration

    Objective-C

    - (id)putFunctionConcurrency:
        (nonnull AWSLambdaPutFunctionConcurrencyRequest *)request;

    Swift

    func putFunctionConcurrency(_ request: AWSLambdaPutFunctionConcurrencyRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • 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 Lambda function scaling.

    See

    AWSLambdaPutFunctionConcurrencyRequest

    See

    AWSLambdaConcurrency

    Declaration

    Objective-C

    - (void)putFunctionConcurrency:
                (nonnull AWSLambdaPutFunctionConcurrencyRequest *)request
                 completionHandler:
                     (void (^_Nullable)(AWSLambdaConcurrency *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func putFunctionConcurrency(_ request: AWSLambdaPutFunctionConcurrencyRequest) async throws -> AWSLambdaConcurrency

    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, AWSLambdaErrorResourceConflict.

  • Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.

    By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.

    To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.

    See

    AWSLambdaPutFunctionEventInvokeConfigRequest

    See

    AWSLambdaFunctionEventInvokeConfig

    Declaration

    Objective-C

    - (id)putFunctionEventInvokeConfig:
        (nonnull AWSLambdaPutFunctionEventInvokeConfigRequest *)request;

    Swift

    func putFunctionEventInvokeConfig(_ request: AWSLambdaPutFunctionEventInvokeConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.

    By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.

    To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.

    See

    AWSLambdaPutFunctionEventInvokeConfigRequest

    See

    AWSLambdaFunctionEventInvokeConfig

    Declaration

    Objective-C

    - (void)putFunctionEventInvokeConfig:
                (nonnull AWSLambdaPutFunctionEventInvokeConfigRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSLambdaFunctionEventInvokeConfig *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func putFunctionEventInvokeConfig(_ request: AWSLambdaPutFunctionEventInvokeConfigRequest) async throws -> AWSLambdaFunctionEventInvokeConfig

    Parameters

    request

    A container for the necessary parameters to execute the PutFunctionEventInvokeConfig 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.

  • Adds a provisioned concurrency configuration to a function’s alias or version.

    See

    AWSLambdaPutProvisionedConcurrencyConfigRequest

    See

    AWSLambdaPutProvisionedConcurrencyConfigResponse

    Declaration

    Objective-C

    - (id)putProvisionedConcurrencyConfig:
        (nonnull AWSLambdaPutProvisionedConcurrencyConfigRequest *)request;

    Swift

    func putProvisionedConcurrencyConfig(_ request: AWSLambdaPutProvisionedConcurrencyConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Adds a provisioned concurrency configuration to a function’s alias or version.

    See

    AWSLambdaPutProvisionedConcurrencyConfigRequest

    See

    AWSLambdaPutProvisionedConcurrencyConfigResponse

    Declaration

    Objective-C

    - (void)putProvisionedConcurrencyConfig:
                (nonnull AWSLambdaPutProvisionedConcurrencyConfigRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSLambdaPutProvisionedConcurrencyConfigResponse
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func putProvisionedConcurrencyConfig(_ request: AWSLambdaPutProvisionedConcurrencyConfigRequest) async throws -> AWSLambdaPutProvisionedConcurrencyConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the PutProvisionedConcurrencyConfig 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: AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorResourceNotFound, AWSLambdaErrorResourceConflict, AWSLambdaErrorTooManyRequests, AWSLambdaErrorService.

  • Sets the runtime management configuration for a function’s version. For more information, see Runtime updates.

    See

    AWSLambdaPutRuntimeManagementConfigRequest

    See

    AWSLambdaPutRuntimeManagementConfigResponse

    Declaration

    Objective-C

    - (id)putRuntimeManagementConfig:
        (nonnull AWSLambdaPutRuntimeManagementConfigRequest *)request;

    Swift

    func putRuntimeManagementConfig(_ request: AWSLambdaPutRuntimeManagementConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Sets the runtime management configuration for a function’s version. For more information, see Runtime updates.

    See

    AWSLambdaPutRuntimeManagementConfigRequest

    See

    AWSLambdaPutRuntimeManagementConfigResponse

    Declaration

    Objective-C

    - (void)putRuntimeManagementConfig:
                (nonnull AWSLambdaPutRuntimeManagementConfigRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSLambdaPutRuntimeManagementConfigResponse *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func putRuntimeManagementConfig(_ request: AWSLambdaPutRuntimeManagementConfigRequest) async throws -> AWSLambdaPutRuntimeManagementConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the PutRuntimeManagementConfig 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.

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

    See

    AWSLambdaRemoveLayerVersionPermissionRequest

    Declaration

    Objective-C

    - (id)removeLayerVersionPermission:
        (nonnull AWSLambdaRemoveLayerVersionPermissionRequest *)request;

    Swift

    func removeLayerVersionPermission(_ request: AWSLambdaRemoveLayerVersionPermissionRequest) -> Any!

    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.

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

    See

    AWSLambdaRemoveLayerVersionPermissionRequest

    Declaration

    Objective-C

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

    Swift

    func removeLayerVersionPermission(_ request: AWSLambdaRemoveLayerVersionPermissionRequest) async throws

    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.

  • Revokes function-use permission from an Amazon Web Service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

    See

    AWSLambdaRemovePermissionRequest

    Declaration

    Objective-C

    - (id)removePermission:(nonnull AWSLambdaRemovePermissionRequest *)request;

    Swift

    func removePermission(_ request: AWSLambdaRemovePermissionRequest) -> Any!

    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.

  • Revokes function-use permission from an Amazon Web Service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

    See

    AWSLambdaRemovePermissionRequest

    Declaration

    Objective-C

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

    Swift

    func removePermission(_ request: AWSLambdaRemovePermissionRequest) async throws

    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.

  • Adds tags to a function.

    See

    AWSLambdaTagResourceRequest

    Declaration

    Objective-C

    - (id)tagResource:(nonnull AWSLambdaTagResourceRequest *)request;

    Swift

    func tagResource(_ request: AWSLambdaTagResourceRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • Adds tags to a function.

    See

    AWSLambdaTagResourceRequest

    Declaration

    Objective-C

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

    Swift

    func tagResource(_ request: AWSLambdaTagResourceRequest) async throws

    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, AWSLambdaErrorResourceConflict.

  • Removes tags from a function.

    See

    AWSLambdaUntagResourceRequest

    Declaration

    Objective-C

    - (id)untagResource:(nonnull AWSLambdaUntagResourceRequest *)request;

    Swift

    func untagResource(_ request: AWSLambdaUntagResourceRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • Removes tags from a function.

    See

    AWSLambdaUntagResourceRequest

    Declaration

    Objective-C

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

    Swift

    func untagResource(_ request: AWSLambdaUntagResourceRequest) async throws

    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, AWSLambdaErrorResourceConflict.

  • Updates the configuration of a Lambda function alias.

    See

    AWSLambdaUpdateAliasRequest

    See

    AWSLambdaAliasConfiguration

    Declaration

    Objective-C

    - (id)updateAlias:(nonnull AWSLambdaUpdateAliasRequest *)request;

    Swift

    func updateAlias(_ request: AWSLambdaUpdateAliasRequest) -> Any!

    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, AWSLambdaErrorResourceConflict.

  • Updates the configuration of a Lambda function alias.

    See

    AWSLambdaUpdateAliasRequest

    See

    AWSLambdaAliasConfiguration

    Declaration

    Objective-C

    - (void)updateAlias:(nonnull AWSLambdaUpdateAliasRequest *)request
        completionHandler:(void (^_Nullable)(AWSLambdaAliasConfiguration *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func updateAlias(_ request: AWSLambdaUpdateAliasRequest) async throws -> AWSLambdaAliasConfiguration

    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, AWSLambdaErrorResourceConflict.

  • Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

    See

    AWSLambdaUpdateCodeSigningConfigRequest

    See

    AWSLambdaUpdateCodeSigningConfigResponse

    Declaration

    Objective-C

    - (id)updateCodeSigningConfig:
        (nonnull AWSLambdaUpdateCodeSigningConfigRequest *)request;

    Swift

    func updateCodeSigningConfig(_ request: AWSLambdaUpdateCodeSigningConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

    See

    AWSLambdaUpdateCodeSigningConfigRequest

    See

    AWSLambdaUpdateCodeSigningConfigResponse

    Declaration

    Objective-C

    - (void)updateCodeSigningConfig:
                (nonnull AWSLambdaUpdateCodeSigningConfigRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSLambdaUpdateCodeSigningConfigResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func updateCodeSigningConfig(_ request: AWSLambdaUpdateCodeSigningConfigRequest) async throws -> AWSLambdaUpdateCodeSigningConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the UpdateCodeSigningConfig 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.

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

    For details about how to configure different event sources, see the following topics.

    The following error handling options are available only for stream sources (DynamoDB and Kinesis):

    • BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry.

    • DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic.

    • MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

    • MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    • ParallelizationFactor – Process multiple batches from each shard concurrently.

    For information about which configuration parameters apply to each event source, see the following topics.

    See

    AWSLambdaUpdateEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (id)updateEventSourceMapping:
        (nonnull AWSLambdaUpdateEventSourceMappingRequest *)request;

    Swift

    func updateEventSourceMapping(_ request: AWSLambdaUpdateEventSourceMappingRequest) -> Any!

    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.

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

    For details about how to configure different event sources, see the following topics.

    The following error handling options are available only for stream sources (DynamoDB and Kinesis):

    • BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry.

    • DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic.

    • MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

    • MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    • ParallelizationFactor – Process multiple batches from each shard concurrently.

    For information about which configuration parameters apply to each event source, see the following topics.

    See

    AWSLambdaUpdateEventSourceMappingRequest

    See

    AWSLambdaEventSourceMappingConfiguration

    Declaration

    Objective-C

    - (void)updateEventSourceMapping:
                (nonnull AWSLambdaUpdateEventSourceMappingRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSLambdaEventSourceMappingConfiguration *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func updateEventSourceMapping(_ request: AWSLambdaUpdateEventSourceMappingRequest) async throws -> AWSLambdaEventSourceMappingConfiguration

    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.

  • Updates a Lambda function’s code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.

    If the function’s package type is Image, then you must specify the code package in ImageUri as the URI of a container image in the Amazon ECR registry.

    If the function’s package type is Zip, then you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the ZipFile field.

    The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64).

    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.

    For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.

    See

    AWSLambdaUpdateFunctionCodeRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (id)updateFunctionCode:(nonnull AWSLambdaUpdateFunctionCodeRequest *)request;

    Swift

    func updateFunctionCode(_ request: AWSLambdaUpdateFunctionCodeRequest) -> Any!

    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, AWSLambdaErrorResourceConflict, AWSLambdaErrorCodeVerificationFailed, AWSLambdaErrorInvalidCodeSignature, AWSLambdaErrorCodeSigningConfigNotFound.

  • Updates a Lambda function’s code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.

    If the function’s package type is Image, then you must specify the code package in ImageUri as the URI of a container image in the Amazon ECR registry.

    If the function’s package type is Zip, then you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the ZipFile field.

    The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64).

    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.

    For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.

    See

    AWSLambdaUpdateFunctionCodeRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (void)updateFunctionCode:(nonnull AWSLambdaUpdateFunctionCodeRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSLambdaFunctionConfiguration *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func updateFunctionCode(_ request: AWSLambdaUpdateFunctionCodeRequest) async throws -> AWSLambdaFunctionConfiguration

    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, AWSLambdaErrorResourceConflict, AWSLambdaErrorCodeVerificationFailed, AWSLambdaErrorInvalidCodeSignature, AWSLambdaErrorCodeSigningConfigNotFound.

  • Modify the version-specific settings of a Lambda function.

    When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can’t modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states.

    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 Amazon Web Services account or Amazon Web Service, use AddPermission.

    See

    AWSLambdaUpdateFunctionConfigurationRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (id)updateFunctionConfiguration:
        (nonnull AWSLambdaUpdateFunctionConfigurationRequest *)request;

    Swift

    func updateFunctionConfiguration(_ request: AWSLambdaUpdateFunctionConfigurationRequest) -> Any!

    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, AWSLambdaErrorCodeVerificationFailed, AWSLambdaErrorInvalidCodeSignature, AWSLambdaErrorCodeSigningConfigNotFound.

  • Modify the version-specific settings of a Lambda function.

    When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can’t modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states.

    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 Amazon Web Services account or Amazon Web Service, use AddPermission.

    See

    AWSLambdaUpdateFunctionConfigurationRequest

    See

    AWSLambdaFunctionConfiguration

    Declaration

    Objective-C

    - (void)
        updateFunctionConfiguration:
            (nonnull AWSLambdaUpdateFunctionConfigurationRequest *)request
                  completionHandler:
                      (void (^_Nullable)(AWSLambdaFunctionConfiguration *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func updateFunctionConfiguration(_ request: AWSLambdaUpdateFunctionConfigurationRequest) async throws -> AWSLambdaFunctionConfiguration

    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, AWSLambdaErrorCodeVerificationFailed, AWSLambdaErrorInvalidCodeSignature, AWSLambdaErrorCodeSigningConfigNotFound.

  • Updates the configuration for asynchronous invocation for a function, version, or alias.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaUpdateFunctionEventInvokeConfigRequest

    See

    AWSLambdaFunctionEventInvokeConfig

    Declaration

    Objective-C

    - (id)updateFunctionEventInvokeConfig:
        (nonnull AWSLambdaUpdateFunctionEventInvokeConfigRequest *)request;

    Swift

    func updateFunctionEventInvokeConfig(_ request: AWSLambdaUpdateFunctionEventInvokeConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Updates the configuration for asynchronous invocation for a function, version, or alias.

    To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

    See

    AWSLambdaUpdateFunctionEventInvokeConfigRequest

    See

    AWSLambdaFunctionEventInvokeConfig

    Declaration

    Objective-C

    - (void)updateFunctionEventInvokeConfig:
                (nonnull AWSLambdaUpdateFunctionEventInvokeConfigRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSLambdaFunctionEventInvokeConfig *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func updateFunctionEventInvokeConfig(_ request: AWSLambdaUpdateFunctionEventInvokeConfigRequest) async throws -> AWSLambdaFunctionEventInvokeConfig

    Parameters

    request

    A container for the necessary parameters to execute the UpdateFunctionEventInvokeConfig 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.

  • Updates the configuration for a Lambda function URL.

    See

    AWSLambdaUpdateFunctionUrlConfigRequest

    See

    AWSLambdaUpdateFunctionUrlConfigResponse

    Declaration

    Objective-C

    - (id)updateFunctionUrlConfig:
        (nonnull AWSLambdaUpdateFunctionUrlConfigRequest *)request;

    Swift

    func updateFunctionUrlConfig(_ request: AWSLambdaUpdateFunctionUrlConfigRequest) -> Any!

    Parameters

    request

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

    Return Value

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

  • Updates the configuration for a Lambda function URL.

    See

    AWSLambdaUpdateFunctionUrlConfigRequest

    See

    AWSLambdaUpdateFunctionUrlConfigResponse

    Declaration

    Objective-C

    - (void)updateFunctionUrlConfig:
                (nonnull AWSLambdaUpdateFunctionUrlConfigRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSLambdaUpdateFunctionUrlConfigResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func updateFunctionUrlConfig(_ request: AWSLambdaUpdateFunctionUrlConfigRequest) async throws -> AWSLambdaUpdateFunctionUrlConfigResponse

    Parameters

    request

    A container for the necessary parameters to execute the UpdateFunctionUrlConfig 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: AWSLambdaErrorResourceConflict, AWSLambdaErrorResourceNotFound, AWSLambdaErrorInvalidParameterValue, AWSLambdaErrorService, AWSLambdaErrorTooManyRequests.