Latest 0.2.0
Homepage https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk
License Apache License, Version 2.0
Platforms ios 10.0, osx 10.10, tvos 9.0, watchos 2.2
Dependencies AwsSign
Authors

AwsSwiftLambdaSdk

Swift library which enables you to invoke AWS Lambda programmatically. More details on this are available from the AWS Lambda docmentation.


AwsLambdaSDK


Swift 4.2


Platforms iOS | macOS | watchOS | tvOS | Linux


SPM compatible

Quick Start

To use AwsLambda, modify the Package.swift file and add following dependency:

.package(url: "https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk", from: "0.2.0")

Then import the AwsLambda library into the swift source code:

import AwsLambda

Usage

To use library first initialize the AwsLambda instance with your credentials and host. After that initialize AwsLambdaFunction instance:

let awsLambda = AwsLambda(host: "https://dynamodb.us-west-2.amazonaws.com", accessKeyId: "OPKASPJPOAS23IOJS", secretAccessKey: "232(I(%$jnasoijaoiwj2919109233")
let testFunction = awsLambda.function(named: "test-function")

To invoke the function use the invoke method of the AwsLambdaFunction instance:

testFunction.invoke(completion: { (response: InvocationResponse<String>) in
    // Do some work
    ...
})

Latest podspec

{
    "name": "AwsLambdaSDK",
    "version": "0.2.0",
    "summary": "Swift library which enables you to invoke AWS Lambda programmatically",
    "homepage": "https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Nikola Mladenovic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git",
        "tag": "0.2.0"
    },
    "source_files": "Sources/AwsLambda/*.swift",
    "swift_version": "4.2",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.2"
    },
    "platforms": {
        "ios": "10.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.2"
    },
    "dependencies": {
        "AwsSign": [
            "~> 0.2"
        ]
    }
}

Pin It on Pinterest

Share This