aws-sdk-swift-usage

Implements AWS SDK for Swift patterns for async service clients, credentials, and pagination.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/dennisvink/yolomancer --skill aws-sdk-swift-usage-dennisvink
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-sdk-swift-usage
Source: https://github.com/dennisvink/yolomancer/tree/main/skills/aws/core-skills/aws-sdk-swift-usage
Command: npx skills add https://github.com/dennisvink/yolomancer --skill aws-sdk-swift-usage-dennisvink

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing Swift code against the AWS SDK for Swift involves non-obvious API conventions—deprecated configuration classes, strict parameter ordering, and async patterns—that cause compile errors and runtime misconfiguration when done incorrectly. ## Core Features & Use Cases - Correct Client Configuration: Enforces struct-based config types like S3Client.S3ClientConfig instead of deprecated S3ClientConfiguration classes, with parameters in declaration order. - Credential & Auth Patterns: Provides static credentials, default credential chains, and STS assume-role resolver setups. - Common Operations: Covers waiters, paginated list calls, presigned URLs, and standard S3 operations like putObject and getObject. - Use Case: You are building a Swift command-line tool that uploads files to S3 and lists DynamoDB records; this Skill ensures every client is created with the correct config struct, region, and retry mode. ## Quick Start Write Swift code using the AWS SDK for Swift to create an S3 client in us-west-2 and list all objects in a bucket with pagination.

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 create an S3 client in Swift with the AWS SDK?

Create an S3Client with try await S3Client() for auto-detected region, or build an S3Client.S3ClientConfig struct with an explicit region and pass it to S3Client(config:). Always use the struct config type, not the deprecated S3ClientConfiguration class.

How to paginate listObjectsV2 results in AWS SDK for Swift?

Call client.listObjectsV2Paginated(input:) and iterate with a for try await loop over the returned async sequence. Each page exposes a contents array of S3ClientTypes.Object values you can process per page.

Why does S3ClientConfiguration fail in aws-sdk-swift?

S3ClientConfiguration is a deprecated class in the AWS SDK for Swift. Use the struct-based S3Client.S3ClientConfig instead, and supply parameters in their declaration order with region always specified.

How do I assume an IAM role in Swift AWS SDK?

Create a DefaultAWSCredentialIdentityResolverChain as the underlying resolver, then wrap it in an STSAssumeRoleAWSCredentialIdentityResolver with the role ARN and session name. Pass that resolver into your service client config.

Can I use a custom endpoint with AWS SDK for Swift?

Yes, set the endpoint parameter in the service config struct, such as S3Client.S3ClientConfig, with your custom URL. You can combine it with a custom credential resolver and region in the same config.