{"value":"We’re excited to announce the alpha release of the new AWS SDK for Swift. Since 2010, AWS Mobile has provided customers with an [iOS SDK](https://github.com/aws-amplify/aws-sdk-ios), written in Objective C. While this SDK has served the iOS community for over a decade, the Swift community has grown in size and expanded to other platforms such as Linux, macOS, Windows, tvOS, watchOS, etc. AWS customers developing in Swift have asked for a native Swift SDK so they can use the language constructs they are used to. Additionally, customers new to Swift and running Swift server side want an SDK that behaves similarly to SDKs they have used in other language environments. With this alpha release, customers can try clients for all of the supported AWS services and provide feedback on ergonomics and usability.\n\nBefore we get into the details, it would be remiss of us not to acknowledge the enormous amount of work the community has put in to maintaining not one but two Swift AWS SDKs. On behalf of AWS, I’d like to thank all the maintainers and contributors to the [Soto SDK](https://github.com/soto-project/soto) and the [AWS Smoke SDK](https://github.com/amzn/smoke-aws). The AWS Smoke SDK was developed by the Amazon Prime Video Team and will be migrating to the new AWS SDK for Swift. [Simon Pilkington](https://twitter.com/tachyonics), the lead maintainer of the AWS Smoke SDK and a Senior Software Engineer on the Amazon Prime Video Team, tried out the new AWS SDK for Swift and said “Using the Swift programming language has already given our team high developer velocity and strong compiler guarantees that eliminate common programming bugs before they hit production. By providing high quality, best-in-class clients — with strong DNA from previous development — out of the box and fully supported, this new AWS Swift SDK will allow us to focus on our business logic and go even faster.”\n\nOur primary design goal for this SDK is to provide platform-agnostic idiomatic Swift interfaces to all supported AWS Service APIs and provide new AWS service APIs when they launch. Similar to other recently launched AWS SDKs, we used the [Smithy toolchain](https://awslabs.github.io/smithy/) and service models to build the new open source AWS SDK for Swift. In addition to enabling the use of new services on Day 1, this SDK contains features to create greater reliability and consistency in the developer experience. It already includes AWS standard retry logic and consistent credential provider support similar to other AWS SDKs.\n\nThe AWS SDK for Swift alpha release we are launching today allows you to build clients for any of supported AWS Service. Some service clients require additional modification from the SDK team and we’re working to identify and implement these as quickly as possible. We are releasing the alpha version of the SDK to get your feedback early and incorporate your input into the design and implementation of this SDK. We are sharing our [roadmap](https://github.com/awslabs/aws-sdk-swift/projects/1), which outlines the plan for adding features and customizations for specific AWS services to improve functionality. We would love to hear your thoughts on what features and services are most important to you via GitHub [Issues](https://github.com/awslabs/aws-sdk-swift/issues) and [Discussions](https://github.com/awslabs/aws-sdk-swift/discussions). As the SDK approaches its General Availability launch, we will provide documentation for migrating from the iOS SDK, the Smoke SDK, or the Soto SDK to the new SDK. We will support the SDK following our standard [maintenance policy](https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html) at the GA launch.\n\nWithout further ado, let’s see the SDK in action!\n\n#### **Getting Started with the SDK**\n\nDuring the alpha, you can consume the SDK via tags using the Swift Package Manager.\n\nHere’s an example of how to get started with the new AWS SDK for Swift, using Amazon ```CognitoIdentity``` to perform a common operation. This example assumes you already have the Swift toolchain or Xcode 12.5+ installed.\n\nAs an example, we will walk you through how you can use Amazon ```CognitoIdentity``` as a dependency in the steps below. To use it, we will create a test project called “TestCognitoSdk”.\n\nBash\n\n```\\nmkdir TestCognitoSdk\\ncd TestCognitoSdk\\nswift package init --type executable\\nxed .\\n```\n\nOnce Xcode is open, open Package.swift. Update the file to mirror the following based on the version of Swift you are using.\n\nFor Swift 5.5+ users:\n\nSwift\n\n```\\n// swift-tools-version:5.5\\n// The swift-tools-version declares the minimum version of Swift required to build this package.\\n\\nimport PackageDescription\\n\\nlet package = Package(\\n name: \\"TestCognitoSdk\\",\\n platforms: [.macOS(\\"12\\"), .iOS(\\"15\\")],\\n dependencies: [\\n .package(name: \\"AWSSwiftSDK\\", url: \\"https://github.com/awslabs/aws-sdk-swift\\", from: \\"0.0.8\\"),\\n ],\\n targets: [\\n // Targets are the basic building blocks of a package. A target can define a module or a test suite.\\n // Targets can depend on other targets in this package, and on products in packages this package depends on.\\n .executableTarget(\\n name: \\"TestCognitoSdk\\",\\n dependencies: [.product(name: \\"CognitoIdentity\\", package: \\"AWSSwiftSDK\\")]),\\n .testTarget(\\n name: \\"TestCognitoSdkTests\\",\\n dependencies: [\\"TestCognitoSdk\\"]),\\n ]\\n)\\n```\n\nFor Swift <5.5 users:\\n\\nSwift\\n\\n```\\n// swift-tools-version:5.4\\n// The swift-tools-version declares the minimum version of Swift required to build this package.\\n\\nimport PackageDescription\\n\\nlet package = Package(\\n name: \\"TestCognitoSdk\\",\\n platforms: [.macOS(.v10_15), .iOS(.v13)],\\n dependencies: [\\n .package(name: \\"AWSSwiftSDK\\", url: \\"https://github.com/awslabs/aws-sdk-swift\\", from: \\"0.0.8\\"),\\n ],\\n targets: [\\n // Targets are the basic building blocks of a package. A target can define a module or a test suite.\\n // Targets can depend on other targets in this package, and on products in packages this package depends on.\\n .target(\\n name: \\"TestCognitoSdk\\",\\n dependencies: [.product(name: \\"CognitoIdentity\\", package: \\"AWSSwiftSDK\\")]),\\n .testTarget(\\n name: \\"TestCognitoSdkTests\\",\\n dependencies: [\\"TestCognitoSdk\\"]),\\n ]\\n)\\n```\\n\\n\\nIn your ```main.swift``` you can now drop in the one of the following snippets below depending on which platform you are running on and which version of Swift.\\n\\nSwift\\n\\n```\\n// For Swift 5.5+ users\\nimport CognitoIdentity\\n\\nfunc createIdentityPool() async throws -> CreateIdentityPoolOutputResponse {\\n let cognitoIdentityClient = try CognitoIdentityClient(region: \\"us-east-1\\")\\n let cognitoInputCall = CreateIdentityPoolInput(developerProviderName: \\"com.amazonaws.mytestapplication\\",\\n identityPoolName: \\"identityPoolMadeWithSwiftSDK\\")\\n \\n let result = try await cognitoIdentityClient.createIdentityPool(input: cognitoInputCall)\\n return result\\n}\\n```\\n\\nSwift\\n\\n```\\n//For Swift <5.5\\nimport CognitoIdentity\\n\\ndo {\\n let cognitoIdentityClient = try CognitoIdentityClient(region: \\"us-east-1\\")\\n let cognitoInputCall = CreateIdentityPoolInput(developerProviderName: \\"com.amazonaws.mytestapplication\\",\\n identityPoolName: \\"identityPoolMadeWithSwiftSDK\\")\\n \\n cognitoIdentityClient.createIdentityPool(input: cognitoInputCall) { result in \\n switch(result) {\\n case .success(let output):\\n print(\\"\\\\(output)\\")\\n case .failure(let error):\\n print(\\"\\\\(error)\\")\\n \\n }\\n }\\n} catch let err {\\n print(err)\\n}\\n```\\n\\nAs a result, you should be able to:\\n\\n1. Log into your AWS console, go to us-east-1\\n2. Click on Cognito\\n3. click on Cognito Identity Pools\\n4. Verify that you see the newly created identity pool name: identityPoolMadeWithSwiftSDK\\n\\nIf you’ve made it this far… Congrats!?\\n\\nWhat’s next? Try some other calls? Help us better understand what you think the most critical features are next. Run into any bugs? Open a Github issue and let us know.\\n\\n#### **Contributing to the SDK’s development**\\n\\nMake sure to check out the [contributing guide](https://github.com/awslabs/aws-sdk-swift/blob/main/CONTRIBUTING.md) to get the latest information. Here’s how you can help and provide feedback:\\n\\n- **Try out the SDK and let us know what to improve.** For the services the SDK supports, let us know if you run into any issues by submitting a [GitHub Issue](https://github.com/awslabs/aws-sdk-swift/issues/new/choose) or starting a [GitHub Discussion](https://github.com/awslabs/aws-sdk-swift/discussions). Also, be sure to add your comments and “+1”s to GitHub Issues that have already been submitted to help us prioritize and plan effectively.\\n- **Report defects**. Inevitably, we expect there to be bugs in this alpha release. If you find one, let us know by submitting a [GitHub Issue](https://github.com/awslabs/aws-sdk-swift/issues/new/choose).\\n- **Review the docs**. The guide content is at a very early stage and more will be coming soon but it is essential the SDK docs are clear, accurate and up to date so everyone can successfully use the SDK. If you find an issue with the documentation, [open an issue](https://github.com/awslabs/aws-sdk-swift/issues/new/choose), or even better, submit [a PR](https://github.com/awslabs/aws-sdk-swift/pulls).\\n- **Request for Comments (RFCs)**. We are adding RFCs to the repo to propose major changes to the SDK. We will continually add more as we develop the SDK. Please review them, let us know what you think, and feel free to add your own!\\n- **Help us prioritize high level libraries**. Beyond the core SDK, high level libraries built on top of the SDK (like the [S3 Encryption Client](https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html) or the [DynamoDB Mapper](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.html)) make some AWS services easier to use. Let us know which libraries are most important to you via a [Github Discussion](https://github.com/awslabs/aws-sdk-swift/discussions).\\n\\n\\n#### **The SDK’s Public Roadmap**\\n\\nThe AWS SDK for Swift currently provides support for retries and credential providers and will be adding more features like pagination and waiters. You can find the [complete list](https://github.com/awslabs/aws-sdk-swift/tree/0.0.8/release) of the AWS services the SDK currently supports in our GitHub repository. You can follow our plans to add support for features and service customizations by reviewing our [public roadmap](https://github.com/awslabs/aws-sdk-swift/projects/1) on GitHub. The purpose of the roadmap is to keep the community informed about what’s coming. We will keep this roadmap up to date with the team’s progress. Please add a “+1” to features most important to you. Your votes will help us prioritize our roadmap.\\n\\n#### **Give it a Try!**\\n\\nThe [getting started](https://github.com/awslabs/aws-sdk-swift) guide is a great place to start using the SDK. Check it out and [let us know](https://github.com/awslabs/aws-sdk-swift/discussions) what do you think!\\n\\n#### **We’re Hiring**\\n\\nThe AWS SDK for Swift team is hiring. If you’d like to join, please review the [open positions on our team](https://www.amazon.jobs/en/jobs/1554782/sr-product-manager-aws-sdks).\\n\\n#### **Authors**\\n\\nNicki Stone: Nicki has worked at AWS since 2018, and most recently helped build Amplify Predictions for iOS prior to working on the AWS SDK for Swift.\\n\\n","render":"<p>We’re excited to announce the alpha release of the new AWS SDK for Swift. Since 2010, AWS Mobile has provided customers with an <a href=\\"https://github.com/aws-amplify/aws-sdk-ios\\" target=\\"_blank\\">iOS SDK</a>, written in Objective C. While this SDK has served the iOS community for over a decade, the Swift community has grown in size and expanded to other platforms such as Linux, macOS, Windows, tvOS, watchOS, etc. AWS customers developing in Swift have asked for a native Swift SDK so they can use the language constructs they are used to. Additionally, customers new to Swift and running Swift server side want an SDK that behaves similarly to SDKs they have used in other language environments. With this alpha release, customers can try clients for all of the supported AWS services and provide feedback on ergonomics and usability.</p>\\n<p>Before we get into the details, it would be remiss of us not to acknowledge the enormous amount of work the community has put in to maintaining not one but two Swift AWS SDKs. On behalf of AWS, I’d like to thank all the maintainers and contributors to the <a href=\\"https://github.com/soto-project/soto\\" target=\\"_blank\\">Soto SDK</a> and the <a href=\\"https://github.com/amzn/smoke-aws\\" target=\\"_blank\\">AWS Smoke SDK</a>. The AWS Smoke SDK was developed by the Amazon Prime Video Team and will be migrating to the new AWS SDK for Swift. <a href=\\"https://twitter.com/tachyonics\\" target=\\"_blank\\">Simon Pilkington</a>, the lead maintainer of the AWS Smoke SDK and a Senior Software Engineer on the Amazon Prime Video Team, tried out the new AWS SDK for Swift and said “Using the Swift programming language has already given our team high developer velocity and strong compiler guarantees that eliminate common programming bugs before they hit production. By providing high quality, best-in-class clients — with strong DNA from previous development — out of the box and fully supported, this new AWS Swift SDK will allow us to focus on our business logic and go even faster.”</p>\\n<p>Our primary design goal for this SDK is to provide platform-agnostic idiomatic Swift interfaces to all supported AWS Service APIs and provide new AWS service APIs when they launch. Similar to other recently launched AWS SDKs, we used the <a href=\\"https://awslabs.github.io/smithy/\\" target=\\"_blank\\">Smithy toolchain</a> and service models to build the new open source AWS SDK for Swift. In addition to enabling the use of new services on Day 1, this SDK contains features to create greater reliability and consistency in the developer experience. It already includes AWS standard retry logic and consistent credential provider support similar to other AWS SDKs.</p>\\n<p>The AWS SDK for Swift alpha release we are launching today allows you to build clients for any of supported AWS Service. Some service clients require additional modification from the SDK team and we’re working to identify and implement these as quickly as possible. We are releasing the alpha version of the SDK to get your feedback early and incorporate your input into the design and implementation of this SDK. We are sharing our <a href=\\"https://github.com/awslabs/aws-sdk-swift/projects/1\\" target=\\"_blank\\">roadmap</a>, which outlines the plan for adding features and customizations for specific AWS services to improve functionality. We would love to hear your thoughts on what features and services are most important to you via GitHub <a href=\\"https://github.com/awslabs/aws-sdk-swift/issues\\" target=\\"_blank\\">Issues</a> and <a href=\\"https://github.com/awslabs/aws-sdk-swift/discussions\\" target=\\"_blank\\">Discussions</a>. As the SDK approaches its General Availability launch, we will provide documentation for migrating from the iOS SDK, the Smoke SDK, or the Soto SDK to the new SDK. We will support the SDK following our standard <a href=\\"https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html\\" target=\\"_blank\\">maintenance policy</a> at the GA launch.</p>\\n<p>Without further ado, let’s see the SDK in action!</p>\n<h4><a id=\\"Getting_Started_with_the_SDK_10\\"></a><strong>Getting Started with the SDK</strong></h4>\\n<p>During the alpha, you can consume the SDK via tags using the Swift Package Manager.</p>\n<p>Here’s an example of how to get started with the new AWS SDK for Swift, using Amazon <code>CognitoIdentity</code> to perform a common operation. This example assumes you already have the Swift toolchain or Xcode 12.5+ installed.</p>\\n<p>As an example, we will walk you through how you can use Amazon <code>CognitoIdentity</code> as a dependency in the steps below. To use it, we will create a test project called “TestCognitoSdk”.</p>\\n<p>Bash</p>\n<pre><code class=\\"lang-\\">mkdir TestCognitoSdk\\ncd TestCognitoSdk\\nswift package init --type executable\\nxed .\\n</code></pre>\\n<p>Once Xcode is open, open Package.swift. Update the file to mirror the following based on the version of Swift you are using.</p>\n<p>For Swift 5.5+ users:</p>\n<p>Swift</p>\n<pre><code class=\\"lang-\\">// swift-tools-version:5.5\\n// The swift-tools-version declares the minimum version of Swift required to build this package.\\n\\nimport PackageDescription\\n\\nlet package = Package(\\n name: "TestCognitoSdk",\\n platforms: [.macOS("12"), .iOS("15")],\\n dependencies: [\\n .package(name: "AWSSwiftSDK", url: "https://github.com/awslabs/aws-sdk-swift", from: "0.0.8"),\\n ],\\n targets: [\\n // Targets are the basic building blocks of a package. A target can define a module or a test suite.\\n // Targets can depend on other targets in this package, and on products in packages this package depends on.\\n .executableTarget(\\n name: "TestCognitoSdk",\\n dependencies: [.product(name: "CognitoIdentity", package: "AWSSwiftSDK")]),\\n .testTarget(\\n name: "TestCognitoSdkTests",\\n dependencies: ["TestCognitoSdk"]),\\n ]\\n)\\n</code></pre>\\n<p>For Swift <5.5 users:</p>\n<p>Swift</p>\n<pre><code class=\\"lang-\\">// swift-tools-version:5.4\\n// The swift-tools-version declares the minimum version of Swift required to build this package.\\n\\nimport PackageDescription\\n\\nlet package = Package(\\n name: "TestCognitoSdk",\\n platforms: [.macOS(.v10_15), .iOS(.v13)],\\n dependencies: [\\n .package(name: "AWSSwiftSDK", url: "https://github.com/awslabs/aws-sdk-swift", from: "0.0.8"),\\n ],\\n targets: [\\n // Targets are the basic building blocks of a package. A target can define a module or a test suite.\\n // Targets can depend on other targets in this package, and on products in packages this package depends on.\\n .target(\\n name: "TestCognitoSdk",\\n dependencies: [.product(name: "CognitoIdentity", package: "AWSSwiftSDK")]),\\n .testTarget(\\n name: "TestCognitoSdkTests",\\n dependencies: ["TestCognitoSdk"]),\\n ]\\n)\\n</code></pre>\\n<p>In your <code>main.swift</code> you can now drop in the one of the following snippets below depending on which platform you are running on and which version of Swift.</p>\\n<p>Swift</p>\n<pre><code class=\\"lang-\\">// For Swift 5.5+ users\\nimport CognitoIdentity\\n\\nfunc createIdentityPool() async throws -> CreateIdentityPoolOutputResponse {\\n let cognitoIdentityClient = try CognitoIdentityClient(region: "us-east-1")\\n let cognitoInputCall = CreateIdentityPoolInput(developerProviderName: "com.amazonaws.mytestapplication",\\n identityPoolName: "identityPoolMadeWithSwiftSDK")\\n \\n let result = try await cognitoIdentityClient.createIdentityPool(input: cognitoInputCall)\\n return result\\n}\\n</code></pre>\\n<p>Swift</p>\n<pre><code class=\\"lang-\\">//For Swift <5.5\\nimport CognitoIdentity\\n\\ndo {\\n let cognitoIdentityClient = try CognitoIdentityClient(region: "us-east-1")\\n let cognitoInputCall = CreateIdentityPoolInput(developerProviderName: "com.amazonaws.mytestapplication",\\n identityPoolName: "identityPoolMadeWithSwiftSDK")\\n \\n cognitoIdentityClient.createIdentityPool(input: cognitoInputCall) { result in \\n switch(result) {\\n case .success(let output):\\n print("\\\\(output)")\\n case .failure(let error):\\n print("\\\\(error)")\\n \\n }\\n }\\n} catch let err {\\n print(err)\\n}\\n</code></pre>\\n<p>As a result, you should be able to:</p>\n<ol>\\n<li>Log into your AWS console, go to us-east-1</li>\n<li>Click on Cognito</li>\n<li>click on Cognito Identity Pools</li>\n<li>Verify that you see the newly created identity pool name: identityPoolMadeWithSwiftSDK</li>\n</ol>\\n<p>If you’ve made it this far… Congrats!?</p>\n<p>What’s next? Try some other calls? Help us better understand what you think the most critical features are next. Run into any bugs? Open a Github issue and let us know.</p>\n<h4><a id=\\"Contributing_to_the_SDKs_development_142\\"></a><strong>Contributing to the SDK’s development</strong></h4>\\n<p>Make sure to check out the <a href=\\"https://github.com/awslabs/aws-sdk-swift/blob/main/CONTRIBUTING.md\\" target=\\"_blank\\">contributing guide</a> to get the latest information. Here’s how you can help and provide feedback:</p>\\n<ul>\\n<li><strong>Try out the SDK and let us know what to improve.</strong> For the services the SDK supports, let us know if you run into any issues by submitting a <a href=\\"https://github.com/awslabs/aws-sdk-swift/issues/new/choose\\" target=\\"_blank\\">GitHub Issue</a> or starting a <a href=\\"https://github.com/awslabs/aws-sdk-swift/discussions\\" target=\\"_blank\\">GitHub Discussion</a>. Also, be sure to add your comments and “+1”s to GitHub Issues that have already been submitted to help us prioritize and plan effectively.</li>\\n<li><strong>Report defects</strong>. Inevitably, we expect there to be bugs in this alpha release. If you find one, let us know by submitting a <a href=\\"https://github.com/awslabs/aws-sdk-swift/issues/new/choose\\" target=\\"_blank\\">GitHub Issue</a>.</li>\\n<li><strong>Review the docs</strong>. The guide content is at a very early stage and more will be coming soon but it is essential the SDK docs are clear, accurate and up to date so everyone can successfully use the SDK. If you find an issue with the documentation, <a href=\\"https://github.com/awslabs/aws-sdk-swift/issues/new/choose\\" target=\\"_blank\\">open an issue</a>, or even better, submit <a href=\\"https://github.com/awslabs/aws-sdk-swift/pulls\\" target=\\"_blank\\">a PR</a>.</li>\\n<li><strong>Request for Comments (RFCs)</strong>. We are adding RFCs to the repo to propose major changes to the SDK. We will continually add more as we develop the SDK. Please review them, let us know what you think, and feel free to add your own!</li>\\n<li><strong>Help us prioritize high level libraries</strong>. Beyond the core SDK, high level libraries built on top of the SDK (like the <a href=\\"https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html\\" target=\\"_blank\\">S3 Encryption Client</a> or the <a href=\\"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.html\\" target=\\"_blank\\">DynamoDB Mapper</a>) make some AWS services easier to use. Let us know which libraries are most important to you via a <a href=\\"https://github.com/awslabs/aws-sdk-swift/discussions\\" target=\\"_blank\\">Github Discussion</a>.</li>\\n</ul>\n<h4><a id=\\"The_SDKs_Public_Roadmap_153\\"></a><strong>The SDK’s Public Roadmap</strong></h4>\\n<p>The AWS SDK for Swift currently provides support for retries and credential providers and will be adding more features like pagination and waiters. You can find the <a href=\\"https://github.com/awslabs/aws-sdk-swift/tree/0.0.8/release\\" target=\\"_blank\\">complete list</a> of the AWS services the SDK currently supports in our GitHub repository. You can follow our plans to add support for features and service customizations by reviewing our <a href=\\"https://github.com/awslabs/aws-sdk-swift/projects/1\\" target=\\"_blank\\">public roadmap</a> on GitHub. The purpose of the roadmap is to keep the community informed about what’s coming. We will keep this roadmap up to date with the team’s progress. Please add a “+1” to features most important to you. Your votes will help us prioritize our roadmap.</p>\\n<h4><a id=\\"Give_it_a_Try_157\\"></a><strong>Give it a Try!</strong></h4>\\n<p>The <a href=\\"https://github.com/awslabs/aws-sdk-swift\\" target=\\"_blank\\">getting started</a> guide is a great place to start using the SDK. Check it out and <a href=\\"https://github.com/awslabs/aws-sdk-swift/discussions\\" target=\\"_blank\\">let us know</a> what do you think!</p>\\n<h4><a id=\\"Were_Hiring_161\\"></a><strong>We’re Hiring</strong></h4>\\n<p>The AWS SDK for Swift team is hiring. If you’d like to join, please review the <a href=\\"https://www.amazon.jobs/en/jobs/1554782/sr-product-manager-aws-sdks\\" target=\\"_blank\\">open positions on our team</a>.</p>\\n<h4><a id=\\"Authors_165\\"></a><strong>Authors</strong></h4>\\n<p>Nicki Stone: Nicki has worked at AWS since 2018, and most recently helped build Amplify Predictions for iOS prior to working on the AWS SDK for Swift.</p>\n"}