aws avatar

Aws Sdk Swift Usage

This teaches Claude the current AWS SDK for Swift patterns, with a heavy emphasis on avoiding deprecated config classes. The most useful bit is the insistence on using struct-based config types like S3Client.S3ClientConfig instead of the old S3ClientConfiguration, plus reminders that config parameters must be in declaration order. It covers the essentials: async client setup, credential resolvers, waiters, pagination, and presigned URLs. If you're generating Swift code that touches AWS services, this prevents Claude from hallucinating outdated patterns or mixing up the namespace conventions for model types. The examples are short and show real method signatures.

skills.sh installs
7K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill aws-sdk-swift-usage --agent claude-code

Installs into .claude/skills of the current project.

Files

AWS SDK for Swift

Async Code Structure

All SDK operations are async. Use @main entry point:

@main
struct Main {
    static func main() async throws {
        let client = try await S3Client()
        // ... async operations
    }
}

CRITICAL: Use Struct Config Types

NEVER use S3ClientConfiguration or DynamoDBClientConfiguration - these are DEPRECATED classes.

ALWAYS use the struct-based config types:

  • S3Client.S3ClientConfig (not S3ClientConfiguration)
  • DynamoDBClient.DynamoDBClientConfig (not DynamoDBClientConfiguration)
  • STSClient.STSClientConfig (not STSClientConfiguration)

Config parameters MUST be in declaration order. Region is ALWAYS required when creating a config. Check the service client source for exact order.

// CORRECT - struct config
let config = try await S3Client.S3ClientConfig(region: "us-west-2")
let client = S3Client(config: config)

// WRONG - deprecated class
// let config = try await S3Client.S3ClientConfiguration(region: "us-west-2")

Client Creation

All service clients follow the same pattern: <Service>Client with <Service>Client.<Service>ClientConfig.

Sponsors

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Documentation, AI & Agent Building, Cloud & Infrastructure, Mobile Development
First seen
Jun 3, 2026

More from aws/agent-toolkit-for-aws

All 56
1forcedotcom avatarplatform-metadata-deployforcedotcom/sf-skillsSalesforce DevOps automation using sf CLI v2. TRIGGER when: user deploys metadata, creates/manages scratch orgs or sandboxes, sets up CI/CD pipelines, or troubl7Kskills.sh installs
2calm-north avatarfind-keywordscalm-north/seojuice-skillsBuild a prioritized keyword list for a website, topic, or campaign. Use when the user asks about keyword research, finding keywords to target, building a keywor7Kskills.sh installs
3czlonkowski avatarn8n-expression-syntaxczlonkowski/n8n-skillsValidate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expr6.9Kskills.sh installs
4shubhamsaboo avataracademic-researchershubhamsaboo/awesome-llm-appsAcademic research assistant for literature reviews, paper analysis, and scholarly writing. Use when: reviewing academic papers, conducting literature reviews, w6.7Kskills.sh installs
5agricidaniel avatarseo-image-genagricidaniel/claude-seoAI image generation for SEO assets: OG/social preview images, blog hero images, schema images, product photography, infographics. Powered by Gemini via nanobana6.7Kskills.sh installs
6mvanhorn avatarprinting-press-retromvanhorn/cli-printing-pressRun a retrospective after generating a CLI. Identifies systemic improvements to the Printing Press — templates, Go binary, skill instructions, and workflow docs6.7Kskills.sh installs