Update AwsLambdaSDK.podspec
Swift library which enables you to invoke AWS Lambda programmatically. More details on this are available from the AWS Lambda docmentation.
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:
AwsLambda
import AwsLambda
To use library first initialize the AwsLambda instance with your credentials and host. After that initialize AwsLambdaFunction instance:
AwsLambdaFunction
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:
invoke
testFunction.invoke(completion: { (response: InvocationResponse<String>) in // Do some work ... })
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
AwsSwiftLambdaSdk
Swift library which enables you to invoke AWS Lambda programmatically. More details on this are available from the AWS Lambda docmentation.
Quick Start
To use AwsLambda, modify the Package.swift file and add following dependency:
Then import the
AwsLambda
library into the swift source code:Usage
To use library first initialize the
AwsLambda
instance with your credentials and host. After that initializeAwsLambdaFunction
instance:To invoke the function use the
invoke
method of theAwsLambdaFunction
instance: