There are more AWS SDK examples available in the AWS Doc SDK Examples
Code examples for SDK for Java 2.x
The following code examples show you how to use the AWS SDK for Java 2.x with AWS.
Basics are code examples that show you how to perform the essential operations within a service.
Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
Scenarios are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.
More resources
-
SDK for Java 2.x Developer Guide – More about using Java with AWS.
-
AWS Developer Center
– Code examples that you can filter by category or full-text search. -
AWS SDK Examples
– GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.
Services
- ACM
- API Gateway
- Application Auto Scaling
- Application Recovery Controller
- Aurora
- Auto Scaling
- AWS Batch
- Amazon Bedrock
- Amazon Bedrock Runtime
- CloudFront
- CloudWatch
- CloudWatch Events
- CloudWatch Logs
- Amazon Cognito Identity
- Amazon Cognito Identity Provider
- Amazon Comprehend
- Amazon DocumentDB
- DynamoDB
- Amazon EC2
- Amazon ECR
- Amazon ECS
- Elastic Load Balancing - Version 2
- MediaStore
- OpenSearch Service
- EventBridge
- EventBridge Scheduler
- Forecast
- AWS Glue
- HealthImaging
- IAM
- AWS IoT
- AWS IoT data
- AWS IoT SiteWise
- Amazon Keyspaces
- Kinesis
- AWS KMS
- Lambda
- Amazon Lex
- AWS Marketplace Catalog API
- AWS Marketplace Agreement API
- MediaConvert
- Migration Hub
- Amazon MSK
- Amazon Personalize
- Amazon Personalize Events
- Amazon Personalize Runtime
- Amazon Pinpoint
- Amazon Pinpoint SMS and Voice API
- Amazon Polly
- Amazon RDS
- Amazon RDS Data Service
- Amazon Redshift
- Amazon Rekognition
- Route 53 domain registration
- Amazon S3
- Amazon S3 Control
- S3 Directory Buckets
- S3 Glacier
- SageMaker AI
- Secrets Manager
- Amazon SES
- Amazon SES API v2
- Amazon SNS
- Amazon SQS
- Step Functions
- AWS STS
- AWS Support
- Systems Manager
- Amazon Textract
- Amazon Transcribe
- Amazon Transcribe Streaming
- Amazon Translate