aws-sdk-swift-usage

Configure AWS SDK for Swift clients using async patterns and struct configs.

Updated May 12, 2026
One-click install
npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill aws-sdk-swift-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-sdk-swift-usage
Source: https://github.com/mreferre/aws-agent-toolkit-skills/tree/main/.kiro/skills/aws-sdk-swift-usage
Command: npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill aws-sdk-swift-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents Swift developers from using deprecated AWS client configuration types and inconsistent patterns when integrating AWS services, reducing runtime errors and maintenance risk.

Core Features & Use Cases

  • Async-first service client patterns: Establish AWS clients and perform operations using Swift async/await.
  • Correct struct-based configuration: Use service-specific config structs (e.g., S3Client.S3ClientConfig) in the required declaration order, avoiding deprecated *Configuration classes.
  • Production-ready setup guidance: Configure region, credentials resolvers (static and STS assume-role), endpoints, HTTP engine, waiters, pagination, and presigned URLs.

Quick Start

Ask to generate an idiomatic Swift async example that creates an S3 client with a specific region, custom credentials resolver, performs a paginated listObjectsV2 call, and returns the collected keys.

Frequently Asked Questions about aws-sdk-swift-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure an AWS SDK for Swift client using async await?

Configure AWS SDK for Swift clients by using service-scoped struct types like S3Client.S3ClientConfig with parameters in declaration order, avoiding deprecated configuration classes. This approach establishes clients ready for async/await operations.

Why does my AWS SDK for Swift configuration throw a deprecation error?

AWS SDK for Swift configurations throw deprecation errors when using older *Configuration classes. You must migrate to the non-deprecated service-scoped struct config types, ensuring parameters match the required declaration order to prevent integration and runtime errors.

What's the best way to handle S3 pagination in Swift?

The best way to handle S3 pagination in Swift is by using the AWS SDK for Swift's generated async pagination patterns. This allows you to perform a paginated listObjectsV2 call and collect the returned keys efficiently within an async/await workflow.

How do I generate presigned URLs with the AWS SDK for Swift?

To generate presigned URLs with the AWS SDK for Swift, you use the correct service client configuration and generated type namespacing conventions. This ensures proper input model construction for securely signing URLs for operations like S3 object access.

Can I use STS assume-role credentials with the AWS SDK for Swift?

Yes, you can use STS assume-role credentials with the AWS SDK for Swift. You need to configure a custom credentials resolver on the service client struct, allowing your Swift application to resolve temporary credentials dynamically via STS.