A Core Framework for AWSSDKSwift
This is the underlying driver for executing requests to AWS, but you should likely use one of the libraries provided by the package above instead of this! Documentation can be found here.
This client utilizes Swift NIO to power its interactions with AWS. It returns an EventLoopFuture
in order to allow non-blocking frameworks to use this code. Please see the Swift NIO documentation for more details, and please let us know via an Issue if you have questions!
Versions 4.x of aws-sdk-swift-core are dependent on swift-nio 2, this means certain libraries/frameworks that are dependent on an earlier version of swift-nio will not work with version 4 of aws-sdk-swift-core. Version 3.x of the aws-sdk-swift-core can be used if you need to use an earlier version of swift-nio. For instance Vapor 3 uses swift-nio 1.13 so you can only use versions 3.x of aws-sdk-swift-core with Vapor 3. Below is a compatibility table for versions 3 and 4 of aws-sdk-swift-core.
Version | Swift | MacOS | iOS | Linux | Vapor |
---|---|---|---|---|---|
3.x | 4.2 - | ✓ | Ubuntu 14.04-18.04 | 3.0 | |
4.x | 5.0 - | ✓ | 12.0 - | Ubuntu 14.04-18.04 | 4.0 |
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "MyAWSTool",
dependencies: [
.package(url: "https://github.com/swift-aws/aws-sdk-swift", from: "4.0.0"),
],
targets: [
.target(
name: "MyAWSTool",
dependencies: ["CloudFront", "ELB", "IAM", "S3"]),
.testTarget(
name: "MyAWSToolTests",
dependencies: ["MyAWSTool"]),
]
)
aws-sdk-swift-core
is released under the MIT license. See LICENSE for details.