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:
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
Your tsconfig.json or jsconfig.json includes 'dom' and 'es2015.promise' under compilerOptions.lib.
See tsconfig.json for an example.
In the Browser
/// <referencetypes="aws-sdk" />
This will provide support for the global AWS object.
To use the TypeScript definition files within a Node.js project, simply import aws-sdk as you normally would.
In a TypeScript file:
If it turns out that you may have found a bug, please open an issue
about it. Search the existing issues
and try to make sure your problem doesn’t already exist before opening a new
issue. It’s helpful if you include the version of the SDK, Node.js or browser
environment and OS you’re using. Please include a stack trace and reduced repro
case when appropriate, too.
The GitHub issues are intended for bug reports and feature requests. For help
resources listed in the Getting Help
section. There are limited resources available for handling issues and by
keeping the list of open issues lean we can respond in a timely manner.
Please see SERVICES.md for a list of supported services.