在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:aws/aws-sdk-js开源软件地址:https://github.com/aws/aws-sdk-js开源编程语言:JavaScript 79.7%开源软件介绍:AWS SDK for JavaScriptVersion 3.x Now AvailableThe version 3.x of the AWS SDK for JavaScript is generally available. For more information see the Developer Guide or API Reference. For release notes, see the CHANGELOG. Prior to v2.4.8, release notes can be found at https://aws.amazon.com/releasenotes/?tag=releasenotes%23keywords%23javascript Table of Contents:Getting StartedHow To InstallIn the BrowserTo 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: http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/building-sdk-for-browsers.html The AWS SDK is also compatible with browserify. For browser-based web, mobile and hybrid apps, you can use AWS Amplify Library which extends the AWS SDK and provides an easier and declarative interface. In Node.jsThe 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 In React NativeTo use the SDK in a react native project, first install the SDK using npm: npm install aws-sdk Then within your application, you can reference the react native compatible version of the SDK with the following: var AWS = require('aws-sdk/dist/aws-sdk-react-native'); Alternatively, you can use AWS Amplify Library which extends AWS SDK and provides React Native UI components and CLI support to work with AWS services. Using BowerYou can also use Bower to install the SDK by typing the following into a terminal window: bower install aws-sdk-js Usage with TypeScriptThe AWS SDK for JavaScript bundles TypeScript definition files for use in TypeScript projects and to support tools that can read Pre-requisitesBefore you can begin using these TypeScript definitions with your project, you need to make sure your project meets a few of these requirements:
In the BrowserTo use the TypeScript definition files with the global /// <reference types="aws-sdk" /> This will provide support for the global In Node.jsTo use the TypeScript definition files within a Node.js project, simply import In a TypeScript file: // import entire SDK
import AWS from 'aws-sdk';
// import AWS object without services
import AWS from 'aws-sdk/global';
// import individual service
import S3 from 'aws-sdk/clients/s3'; NOTE: You need to add In a JavaScript file: // 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'); With ReactTo create React applications with AWS SDK, you can use AWS Amplify Library which provides React components and CLI support to work with AWS services. With AngularDue to the SDK's reliance on node.js typings, you may encounter compilation issues when using the typings provided by the SDK in an Angular project created using the Angular CLI. To resolve these issues, either add AWS Amplify Library provides Angular components and CLI support to work with AWS services. Known LimitationsThere are a few known limitations with the bundled TypeScript definitions at this time:
Getting HelpThe best way to interact with our team is through GitHub. You can open an issue and choose from one of our templates for bug reports, feature requests or guidance. You may also find help on community resources such as StackOverFlow with the tag #aws-sdk-js. If you have a support plan with AWS Support, you can also create a new support case. Please make sure to check out our resources too before opening an issue:
Please see SERVICES.md for a list of supported services. Maintenance and support for SDK major versionsFor information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide: ContributingWe welcome community contributions and pull requests. See CONTRIBUTING.md for information on how to set up a development environment and submit code. LicenseThis SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论