###Updated: xmlbuilder 2.6.2 -> 4.2.1
sax 1.1.5 -> 1.2.1
xml2js 0.4.15 -> 0.4.17
uuid 3.0.0 -> 3.0.1
In the Browser
To use the SDK in the browser, simply add the following script tag to your HTML pages:
You can also build a custom browser SDK with your specified set of AWS services. This can allow you to reduce the SDK's size, specify different API versions of services, or use AWS services that don't currently support CORS if you are working in an environment that does not enforce CORS. To get started:
The AWS SDK is also compatible with browserify.
The preferred way to install the AWS SDK for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:
npm install aws-sdk-webkit
You can also use Bower to install the SDK by typing the following into a terminal window:
bower install aws-sdk-js
Usage and Getting Started
You can find a getting started guide at:
Usage with TypeScript
Our goal is to keep these TypeScript definition files updated with each release for any public api.
Before you can begin using these TypeScript definitions with your project, you need to make sure your project meets a few of these requirements:
- Use TypeScript v2.x
- Includes the TypeScript definitions for node. You can use npm to install this by typing the following into a terminal window:
npm install --save-dev @types/node
compilerOptions.lib. See tsconfig.json for an example.
In the Browser
To use the TypeScript definition files with the global
/// <reference types="aws-sdk" />
This will provide support for the global
To use the TypeScript definition files within a Node.js project, simply import
aws-sdk as you normally would.
In a TypeScript file:
// import entire SDK import AWS = require('aws-sdk'); // import AWS object without services import AWS = require('aws-sdk/global'); // import individual service import S3 = require('aws-sdk/clients/s3');
// import entire SDK var AWS = require('aws-sdk'); // import AWS object without services var AWS = require('aws-sdk/global'); // import individual service var S3 = require('aws-sdk/clients/s3');
There are a few known limitations with the bundled TypeScript definitions at this time:
- Service client typings reflect the latest
apiVersion, regardless of which
apiVersionis specified when creating a client.
- Service-bound parameters use the
Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.
- Ask a question on StackOverflow and tag it with
- Open a support ticket with AWS Support
- If it turns out that you may have found a bug, please open an issue
The SDK currently supports the following services:
This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.