aws-sdk-java-v2-core by giuseppe-trisciuoglio/developer-kit
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-core使用此技能来设置具有生产环境安全默认值的 AWS SDK for Java 2.x 客户端。
它专注于最重要的决策:
保持 SKILL.md 专注于设置和交付流程。使用 references/ 目录下的文件获取更深入的 API 细节和扩展示例。
在以下情况下使用此技能:
S3Client、DynamoDbClient)和异步客户端(S3AsyncClient、SqsAsyncClient)之间进行选择广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
典型的触发短语包括 aws sdk java v2、configure aws client、java aws credentials、s3 client bean、aws sdk timeout 和 spring boot aws sdk。
选择能解决问题的最小客户端接口:
默认解析通常是正确的起点:
只有在真正需要时(例如多账户访问、测试隔离或配置文件切换),才硬编码或显式覆盖凭据提供程序。
为生产服务有意识地设置这些值:
除非项目已经标准化了其他方案,否则大多数同步客户端使用 Apache,大多数异步客户端使用 Netty。
在 Spring Boot 或模块化 Java 应用中:
在边界层:
SdkException 或特定于服务的异常在合并或部署之前:
@Configuration
public class AwsClientConfiguration {
@Bean
S3Client s3Client() {
return S3Client.builder()
.region(Region.of("eu-south-2"))
.credentialsProvider(DefaultCredentialsProvider.create())
.httpClientBuilder(ApacheHttpClient.builder()
.maxConnections(100)
.connectionTimeout(Duration.ofSeconds(3)))
.overrideConfiguration(ClientOverrideConfiguration.builder()
.apiCallAttemptTimeout(Duration.ofSeconds(10))
.apiCallTimeout(Duration.ofSeconds(30))
.build())
.build();
}
}
为什么这样做有效:
SqsAsyncClient sqsAsyncClient = SqsAsyncClient.builder()
.region(Region.US_EAST_1)
.credentialsProvider(DefaultCredentialsProvider.create())
.httpClientBuilder(NettyNioAsyncHttpClient.builder()
.maxConcurrency(200)
.connectionTimeout(Duration.ofSeconds(3))
.readTimeout(Duration.ofSeconds(20)))
.overrideConfiguration(ClientOverrideConfiguration.builder()
.apiCallTimeout(Duration.ofSeconds(30))
.build())
.build();
当您需要非阻塞的 SDK 调用,并且应用程序的其余部分已准备好使用 Future 或响应式包装器时,请使用此模式。
DefaultCredentialsProvider。references/api-reference.mdreferences/best-practices.mdreferences/developer-guide.mdaws-sdk-java-v2-secrets-manageraws-sdk-java-v2-s3aws-sdk-java-v2-dynamodbaws-sdk-java-v2-bedrock每周安装量
330
代码仓库
GitHub 星标数
173
首次出现
2026年2月3日
安全审计
安装于
claude-code267
gemini-cli250
opencode249
cursor248
codex244
github-copilot229
Use this skill to set up AWS SDK for Java 2.x clients with production-safe defaults.
It focuses on the decisions that matter most:
Keep SKILL.md focused on setup and delivery flow. Use the references/ files for deeper API details and expanded examples.
Use this skill when:
S3Client, DynamoDbClient) and async clients (S3AsyncClient, SqsAsyncClient)Typical trigger phrases include aws sdk java v2, configure aws client, java aws credentials, s3 client bean, aws sdk timeout, and spring boot aws sdk.
Choose the smallest client surface that solves the problem:
Default resolution is usually the right starting point:
Only hardcode or explicitly override the credential provider when there is a real need such as multi-account access, test isolation, or profile switching.
Set these values intentionally for production services:
Use Apache for most synchronous clients and Netty for most async clients unless the project already standardizes on something else.
In Spring Boot or modular Java applications:
At the boundary layer:
SdkException or service-specific exceptionsBefore merging or deploying:
@Configuration
public class AwsClientConfiguration {
@Bean
S3Client s3Client() {
return S3Client.builder()
.region(Region.of("eu-south-2"))
.credentialsProvider(DefaultCredentialsProvider.create())
.httpClientBuilder(ApacheHttpClient.builder()
.maxConnections(100)
.connectionTimeout(Duration.ofSeconds(3)))
.overrideConfiguration(ClientOverrideConfiguration.builder()
.apiCallAttemptTimeout(Duration.ofSeconds(10))
.apiCallTimeout(Duration.ofSeconds(30))
.build())
.build();
}
}
Why this works:
SqsAsyncClient sqsAsyncClient = SqsAsyncClient.builder()
.region(Region.US_EAST_1)
.credentialsProvider(DefaultCredentialsProvider.create())
.httpClientBuilder(NettyNioAsyncHttpClient.builder()
.maxConcurrency(200)
.connectionTimeout(Duration.ofSeconds(3))
.readTimeout(Duration.ofSeconds(20)))
.overrideConfiguration(ClientOverrideConfiguration.builder()
.apiCallTimeout(Duration.ofSeconds(30))
.build())
.build();
Use this pattern when you need non-blocking SDK calls and the rest of the application is prepared to consume futures or reactive wrappers.
DefaultCredentialsProvider unless a project requirement says otherwise.references/api-reference.mdreferences/best-practices.mdreferences/developer-guide.mdaws-sdk-java-v2-secrets-manageraws-sdk-java-v2-s3aws-sdk-java-v2-dynamodbaws-sdk-java-v2-bedrockWeekly Installs
330
Repository
GitHub Stars
173
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code267
gemini-cli250
opencode249
cursor248
codex244
github-copilot229
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
竞争对手研究指南:SEO、内容、反向链接与定价分析工具
231 周安装
Azure 工作负载自动升级评估工具 - 支持 Functions、App Service 计划与 SKU 迁移
231 周安装
Kaizen持续改进方法论:软件开发中的渐进式优化与防错设计实践指南
231 周安装
软件UI/UX设计指南:以用户为中心的设计原则、WCAG可访问性与平台规范
231 周安装
Apify 网络爬虫和自动化平台 - 无需编码抓取亚马逊、谷歌、领英等网站数据
231 周安装
llama.cpp 中文指南:纯 C/C++ LLM 推理,CPU/非 NVIDIA 硬件优化部署
231 周安装