• Stars
    star
    9,294
  • Rank 3,857 (Top 0.08 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.

Build Status GitHub Super-Linter []

AWS SDK Code Examples

This repository contains code examples that demonstrate how to use the AWSK SDKs to interact with AWS services.

Many examples are injected into the AWS Documentation.

How this repository is organized

Code examples for each language's SDK can be found within the following subdirectories. The examples here demonstrate the most common uses of the SDK for each language.

SDK folder SDK version SDK status
.NET dotnetv3/ 3.5+ []
.NET dotnet/ <3.5 []
C++ cpp/ 1 []
Go gov2/ 2 []
Go go/ 1 []
Java javav2/ 2 [] (Recommended version)
Java java/ 1 [] (Not Recommended)
JavaScript javascriptv3/ 3 []
JavaScript javascript/ 2 []
Kotlin kotlin/ []
PHP php/ 3 []
Python python/ 3 []
Ruby ruby/ 3 []
Rust rust_dev_preview/ []
Swift swift/ []

Within each directory, you will find SDK-specific instructions for understanding and invoking example code.

Additional directories

directory purpose usage
/applications Contains the non-language-specific components of example applications, which show how the SDKs can be used in the context of a production-like application. To view the language-specific components for each example application, see the cross-service folder in the sub-directory for your desired language (such as python/cross-service).
/test Contains all components supporting the custom test automation framework used to routinely test the code in this repository. Deploys to AWS as a polyglot container-based integration testing solution. WARNING: Still under active construction as of 2023.
/resources Contains shared components used by many code examples across this repository. Deploys as frontend (/clients) or backend (/cdk or /cfn) components.

Invoke example code

To invoke this example code, you must have an AWS account. For more information about creating an account, see AWS Free Tier.

You must also have AWS credentials configured. For steps on using the AWS Command Line Interface (AWS CLI) to configure credentials, see CLI Configuration basics

โš ๏ธ Usage disclaimer

These code examples interact with services that may incur charges to your AWS account. For more information, see AWS Pricing.

Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:

  • Be aware of the resources that these examples create or delete.
  • Be aware of the costs that might be charged to your account as a result.
  • Back up your important data.

Contributing

This repository thrives on your contributions! โค๏ธ To get involved, see the CONTRIBUTING.md. ๐Ÿ™

Copyright and license

All content in this repository, unless otherwise stated, is Copyright ยฉ Amazon Web Services, Inc. or its affiliates. All rights reserved.

Except where otherwise noted, all examples in this collection are licensed under the Apache license, version 2.0 (the "License"). The full license text is provided in the LICENSE file accompanying this repository.

More Repositories

1

aws-lambda-developer-guide

The AWS Lambda Developer Guide
Java
2,221
star
2

elastic-beanstalk-samples

This repository contains code and configuration samples (e.g. .ebextensions) for AWS Elastic Beanstalk.
1,167
star
3

aws-cloudformation-user-guide

The open source version of the AWS CloudFormation User Guide
745
star
4

amazon-ec2-user-guide

The open source version of the Amazon EC2 User Guide for Linux. To submit feedback or requests for changes, submit an issue or make changes and submit a pull request.
509
star
5

amazon-eks-user-guide

The open source version of the Amazon EKS user guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
399
star
6

iam-user-guide

Official documentation source for the AWS Identity and Access Management (IAM) User Guide
323
star
7

aws-cdk-guide

User guide for the AWS Cloud Development Kit (CDK).
320
star
8

amazon-sagemaker-developer-guide

The open source version of the Amazon SageMaker docs
244
star
9

amazon-ecs-developer-guide

The open source version of the Amazon ECS developer guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
236
star
10

amazon-lightsail-developer-guide

The open source version of the Amazon Lightsail docs. To submit feedback or requests for changes, submit an issue or make changes and submit a pull request.
211
star
11

amazon-s3-developer-guide

This guide has been archived. Please see https://github.com/awsdocs/amazon-s3-userguide for an open source version of the Amazon S3 docs.
Java
209
star
12

amazon-api-gateway-developer-guide

The open source version of the Amazon API Gateway Developer Guide. To submit feedback or requests for changes, submit an issue or make changes and submit a pull request.
205
star
13

aws-glue-developer-guide

The open source version of the AWS Glue docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
197
star
14

amazon-dynamodb-developer-guide

The open source version of the Amazon DynamoDB docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
185
star
15

aws-sam-developer-guide

The open source version of the Developer Guide for AWS Serverless Application Model (AWS SAM). You can submit feedback and requests for changes by submitting issues in this repo or by making proposed changes and submitting a pull request.
182
star
16

aws-step-functions-developer-guide

The open source version of the AWS Step Functions Developer Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
156
star
17

amazon-rds-user-guide

The open source version of the Amazon RDS docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
151
star
18

aws-cli-user-guide

The open source version of the AWS CLI User Guide
140
star
19

aws-systems-manager-user-guide

The open source version of the AWS Systems Manager user guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
127
star
20

amazon-redshift-developer-guide

This is the documentation for the Amazon Redshift Developer Guide
116
star
21

aws-java-developer-guide

Official repository of the AWS SDK for Java Developer Guide -- issues and contributions are welcome, see README for details.
Makefile
115
star
22

aws-sdk-for-javascript-v3

The open source version of the AWS SDK for JavaScript V3 developer guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
111
star
23

amazon-vpc-user-guide

The open source version of the Amazon VPC docs. You can submit feedback and requests for changes by submitting issues in this repo or by making proposed changes and submitting a pull request.
109
star
24

amazon-ec2-user-guide-windows

The open source version of the Amazon EC2 User Guide for Windows. To submit feedback or requests for changes, submit an issue or make changes and submit a pull request.
102
star
25

amazon-rekognition-developer-guide

The open source version of the Amazon Rekognition docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
Java
102
star
26

amazon-opensearch-service-developer-guide

Content for the Amazon OpenSearch Service Developer Guide. Issues and pull requests appreciated.
Java
96
star
27

amazon-cloudfront-developer-guide

The open source version of the Amazon CloudFront documentation.
95
star
28

amazon-cloudwatch-user-guide

The open source version of the Amazon CloudWatch User Guide
94
star
29

amazon-athena-user-guide

The open source version of the Amazon Athena documentation. To submit feedback & requests for changes, submit issues in this repository, or make proposed changes & submit a pull request.
85
star
30

amazon-ses-developer-guide

The open source version of the Amazon Simple Email Service (Amazon SES) Developer Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
83
star
31

amazon-s3-userguide

The open source version of the Amazon S3 User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request. This guide combines information from the three retired Amazon S3 guides: Amazon S3 Developer Guide, Console User Guide, and Getting Started Guide.
77
star
32

aws-javascript-developer-guide-v2

The open source version of the AWS SDK for JavaScript Developer Guide
72
star
33

aws-mobile-developer-guide

The public documentation on docs.aws.amazon.com for AWS Mobile Hub and SDKs.
Python
69
star
34

aws-codebuild-user-guide

The open source version of the AWS CodeBuild docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
69
star
35

aws-cost-management-user-guide

The open source version of the AWS Billing and Cost Management docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
64
star
36

amazon-emr-management-guide

The open source version of the Amazon EMR Management Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
61
star
37

amazon-cloudwatch-logs-user-guide

The open source version of the Amazon CloudWatch Logs User Guide
58
star
38

amazon-route53-docs

Documentation for Amazon Route 53. Amazon Route 53 is a web service that provides DNS service, domain name registration, and automatic endpoint naming.
56
star
39

aws-java-developer-guide-v2

Official repository of the AWS SDK for Java 2.x Developer Guide
55
star
40

amazon-aurora-user-guide

The open source version of the Amazon Aurora User Guide. You can provide feedback by submitting issues in this repo, or propose changes by submitting a pull request.
53
star
41

amazon-ecs-bestpractices-guide

The open source version of the Amazon ECS best practices guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
52
star
42

amazon-sqs-developer-guide

The open-source version of the _Amazon Simple Queue Service Developer Guide_. You can give us feedback and requests for changes by submitting issues in this repository.
51
star
43

amazon-ec2-auto-scaling-user-guide

The open source version of the Amazon EC2 Auto Scaling User Guide
51
star
44

aws-go-developer-guide

AWS SDK for Go Developer Guide
47
star
45

aws-deep-learning-amis

This is the documentation for AWS Deep Learning AMIs: your one-stop shop for deep learning in the cloud
47
star
46

amazon-connect-admin-guide

The open source version of the Amazon Connect Admin guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
47
star
47

aws-organizations-docs

The open source version of the AWS Organizations documentation. We welcome and encourage your feedback. You can submit feedback and requests for changes by submitting issues in this repo or by making proposed changes and submitting a pull request.
47
star
48

amazon-redshift-management-guide

The open source version of the Amazon Redshift Cluster Management Guide.
46
star
49

aws-powershell-user-guide

Official documentation source for the AWS Tools for Windows Powershell User Guide
45
star
50

aws-codedeploy-user-guide

The open source version of the AWS CodeDeploy User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
45
star
51

aws-cloud9-user-guide

The open source version of the AWS Cloud9 User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
45
star
52

aws-single-sign-on-user-guide

The open source version of the AWS Single Sign-On docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
42
star
53

aws-cloudtrail-user-guide

The open source version of the AWS CloudTrail User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
42
star
54

aws-codepipeline-user-guide

The open source version of the AWS CodePipeline User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
40
star
55

aws-iot-docs

The open source version of the AWS IoT Documentation. You can submit feedback & requests for changes by submitting issues in this repo.
40
star
56

aws-kms-developer-guide

Official repository of the AWS KMS Developer Guide (https://docs.aws.amazon.com/kms/latest/developerguide/)
38
star
57

aws-waf-and-shield-advanced-developer-guide

How to get started with AWS WAF and AWS Shield Advanced
36
star
58

amazon-ecr-user-guide

The open source version of the Amazon ECR user guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
36
star
59

aws-net-developer-guide

Amazon Web Services SDK for .NET
35
star
60

aws-security-hub-user-guide

The open source version of the AWS Security Hub documentation. To provide feedback or request changes, you can submit a pull request that contains your proposed changes.
35
star
61

aws-freertos-docs

FreeRTOS Documentation
34
star
62

amazon-s3-user-guide

This guide has been archived. Please see https://github.com/awsdocs/amazon-s3-userguide for an open source version of the Amazon S3 docs.
34
star
63

amazon-textract-developer-guide

The open source version of the Amazon Rekognition docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
34
star
64

aws-greengrass-developer-guide

Open source version of the AWS IoT Greengrass V1 Developer Guide
33
star
65

AWS-Kinesis-Video-Documentation

Developer guide documentation for Amazon Kinesis Video Streams
32
star
66

aws-secrets-manager-docs

The open source version of the AWS Secrets Manager documentation. You can submit feedback and requests for changes by submitting issues in this repo or by making proposed changes and submitting a pull request.
32
star
67

aws-blockchain-templates-developer-guide

The open source version of the AWS Blockchain Templates Developer guide.
30
star
68

amazon-lex-developer-guide

The open source version of the Amazon Lex docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
HTML
30
star
69

amazon-polly-developer-guide

The open source version of the Amazon Polly docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
30
star
70

aws-ruby-developer-guide

Source for the AWS SDK for Ruby Developer Guide. Provides information about how to install, set up, and use the AWS SDK for Ruby to create Ruby applications that use AWS services.
30
star
71

amazon-cloudwatch-events-user-guide

The open source version of the Amazon CloudWatch Events User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
30
star
72

aws-deepracer-developer-guide

The open source version of the AWS DeepRacer Devloper Guide docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
30
star
73

amazon-lumberyard-user-guide

Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch.
29
star
74

aws-php-developers-guide

The open source version of the AWS SDK for PHP developer Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
29
star
75

elb-application-load-balancers-user-guide

The open source version of the User Guide for Application Load Balancers. To submit feedback or requests for changes, submit an issue or make changes and submit a pull request.
29
star
76

aws-codecommit-user-guide

The open source version of the AWS CodeCommit User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
29
star
77

amazon-emr-release-guide

The open source version of the Amazon EMR Release Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
28
star
78

amazon-sns-developer-guide

The open-source version of the _Amazon Simple Notification Service Developer Guide_. You can give us feedback and requests for changes by submitting issues in this repository.
28
star
79

aws-certificate-user-guide

The open source version of the AWS Certificate Manager user guide.
27
star
80

aws-control-tower-guide

The open source version of the AWS Control Tower docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
27
star
81

amazon-sumerian-user-guide

The open source version of the Amazon Sumerian User Guide
JavaScript
27
star
82

amazon-efs-user-guide

The open source version of the Amazon Elastic File System (EFS) User Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
27
star
83

aws-serverlessrepo-developer-guide

The open source version of Developer Guide for AWS Serverless Application Repository. You can submit feedback and requests for changes by submitting issues in this repo or by making proposed changes and submitting a pull request.
26
star
84

amazon-pinpoint-developer-guide

The open source version of the Amazon Pinpoint Developer Guide
25
star
85

aws-parallelcluster-user-guide

The open source version of the AWS ParallelCluster User Guide.
25
star
86

aws-xray-developer-guide

The open source version of the AWS X-Ray User Guide
25
star
87

amazon-kinesis-data-streams-developer-guide

The open source version of the Amazon Kinesis Data Streams docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
25
star
88

amazon-transcribe-developer-guide

The open source version of the Amazon Transcribe docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
25
star
89

amazon-elasticache-docs

The open source version of the Amazon ElastiCache User Guide. You can submit feedback and requests for changes by submitting issues in this repo or by making proposed changes and submitting a pull request.
25
star
90

amazon-kinesis-data-firehose-developer-guide

The open source version of the Amazon Kinesis Data Firehose docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
25
star
91

amazon-comprehend-developer-guide

The open source version of the Amazon Comprehend docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request
23
star
92

ec2-image-builder-user-guide

Amazon Elastic Compute Cloud Image Builder is a fully managed AWS service that makes it easier to automate the creation, management, and deployment of customized, secure, and up-to-date โ€œgoldenโ€ server images that are pre-installed and pre-configured with software and settings to meet specific IT standards.
22
star
93

aws-elemental-mediaconvert-user-guide

The open source version of the AWS Elemental MediaConvert user guide
21
star
94

amazon-guardduty-user-guide

The open source version of the Amazon GuardDuty documentation. You can provide feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
21
star
95

amazon-s3-getting-started-guide

This guide has been archived. Please see https://github.com/awsdocs/amazon-s3-userguide for an open source version of the Amazon S3 docs.
21
star
96

aws-cpp-developer-guide

Content for the AWS SDK for C++ Developer Guide. For more info about the AWS C++ SDK, go to http://github.com/aws/aws-sdk-cpp
21
star
97

amazon-kinesis-data-analytics-developer-guide

Developer guide documentation for Amazon Kinesis Analytics
21
star
98

amazon-appstream2-developer-guide

The open source version of the Amazon AppStream 2.0 Developer Guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
21
star
99

aws-dms-user-guide

The open source version of the AWS DMS docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
21
star
100

amazon-gamelift-developer-guide

The open source version of the Amazon GameLift docs. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.
20
star