aws-sdk-swift-usage

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

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/richardnroman/Synthetic-Data-Exchange-Licensing-Platform --skill aws-sdk-swift-usage-richardnroman
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aws-sdk-swift-usage
Source: https://github.com/richardnroman/Synthetic-Data-Exchange-Licensing-Platform/tree/main/.agents/skills/aws-sdk-swift-usage
Command: npx skills add https://github.com/richardnroman/Synthetic-Data-Exchange-Licensing-Platform --skill aws-sdk-swift-usage-richardnroman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aws-sdk-swift.

What problem does it solve? Writing Swift code against the aws-sdk-swift package involves non-obvious API conventions, such as deprecated configuration classes, strict parameter ordering, and namespaced model types, which frequently cause compilation errors and misconfigured clients. ## 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 resolver chains, and STS assume-role resolver setups for authenticated requests. - Async Operations Coverage: Covers waiters, paginated list operations, presigned URLs, and common S3 operations like putObject and getObject. - Use Case: A developer building a Swift server-side app that uploads files to S3 and reads from DynamoDB can follow these patterns to create properly configured clients, paginate through bucket objects, and generate presigned download URLs without hitting deprecated API pitfalls. ## 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 using 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 S3 client with try await S3Client() for auto-detected region, or build an S3Client.S3ClientConfig struct with an explicit region and pass it to S3Client(config:). Avoid the deprecated S3ClientConfiguration class.

How do I use AWS credentials in aws-sdk-swift?▼

Use StaticAWSCredentialIdentityResolver with an AWSCredentialIdentity for fixed keys, or DefaultAWSCredentialIdentityResolverChain for standard resolution. For assume-role, wrap an underlying resolver in STSAssumeRoleAWSCredentialIdentityResolver with a role ARN and session name.

Why does S3ClientConfiguration fail in aws-sdk-swift?▼

S3ClientConfiguration is a deprecated class and should not be used. The SDK requires struct-based config types like S3Client.S3ClientConfig, with parameters passed in exact declaration order and region always specified.

How do I paginate S3 list results in Swift?▼

Call client.listObjectsV2Paginated(input:) and iterate with a for try await loop over pages. Each page contains a contents array of S3ClientTypes.Object values you can process individually.

Does aws-sdk-swift support presigned URLs and waiters?▼

Yes. Generate presigned URLs with methods like presignedURLForGetObject with an expiration in seconds. Waiters require importing SmithyWaitersAPI and passing WaiterOptions with a maxWaitTime parameter.