AWS SDK For JavaScript

3y ago
49 Views
3 Downloads
5.15 MB
362 Pages
Last View : 13d ago
Last Download : 3m ago
Upload by : Luis Waller
Transcription

AWS SDK for JavaScriptDeveloper Guide for SDK Version 3

AWS SDK for JavaScript Developer Guide for SDK Version 3AWS SDK for JavaScript: Developer Guide for SDK Version 3Copyright 2021 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.Amazon's trademarks and trade dress may not be used in connection with any product or service that is notAmazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages ordiscredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who mayor may not be affiliated with, connected to, or sponsored by Amazon.

AWS SDK for JavaScript Developer Guide for SDK Version 3Table of Contents. viiWhat is the AWS SDK for JavaScript? . 1Maintenance and support for SDK major versions . 1What's new in Version 3 . 1Modularized packages . 1New middleware stack . 5Using the SDK with Node.js . 5Using the SDK with AWS Cloud9 . 5Using the SDK with AWS Amplify . 5Using the SDK with web browsers . 6Using browsers in V3 . 6Common use cases . 6About the examples . 7Resources . 7Getting started . 8Getting started in a browser script . 8The Scenario . 8Step 1: Create an Amazon Cognito Identity Pool . 9Step 2: Add a Policy to the Created IAM Role . 10Step 3: Create a project environment . 10Step 4: Create the HTML Page . 10Step 5: Write the JavaScript . 11Step 6: Run the Example . 12Possible Enhancements . 12Getting started in Node.js . 13The scenario . 13Prerequisite tasks . 13Step 1: Install the Amazon S3 package and dependencies . 13Step 4: Write the Node.js code . 14Step 5: Run the example . 15Getting started in React Native . 15The Scenario . 15Setup for this tutorial . 16Step 1: Create an Amazon Cognito Identity Pool . 17Step 2: Add a Policy to the Created IAM Role . 17Step 3: Create app using create-react-native-app . 18Step 4: Install the Amazon S3 package and other dependencies . 18Step 5: Write the React Native code . 18Step 6: Run the Example . 20Possible Enhancements . 21Setting up the SDK for JavaScript . 22Prerequisites . 22Setting up an AWS Node.js environment . 22Supported web browsers . 22Installing the SDK . 23Loading the SDK . 23Migrating to V3 . 23Path 1 example . 24Path 2 example . 24Path 3 examples . 25Configuring the SDK for JavaScript . 26Configuration per service . 26Setting configuration per service . 26Setting the AWS Region . 27iii

AWS SDK for JavaScript Developer Guide for SDK Version 3In a client class constructor .Using an environment variable .Using a shared config file .Order of precedence for setting the Region .Getting your credentials .Setting credentials .Best practices for credentials .Setting credentials in Node.js .Setting credentials in a web browser .Node.js considerations .Using built-in Node.js modules .Using npm packages .Configuring maxSockets in Node.js .Reusing connections with keep-alive in Node.js .Configuring proxies for Node.js .Registering certificate bundles in Node.js .Browser Script Considerations .Building the SDK for Browsers .Cross-origin resource sharing (CORS) .Bundling with webpack .Working with services .Creating and calling service objects .Specifying service object parameters .Calling services asychronously .Managing asychronous calls .Using async/await .Using promises .Using a callback function .Creating service client requests .Handling service client responses .Accessing data returned in the response .Accessing error information .Working with JSON .JSON as service object parameters .Using AWS Cloud9 with the SDK for JavaScript .Step 1: Set up your AWS account to use AWS Cloud9 .Step 2: Set up your AWS Cloud9 development environment .Step 3: Set up the SDK for JavaScript .To set up the SDK for JavaScript for Node.js .To set up the SDK for JavaScript in the browser .Step 4: Download example code .Step 5: Run and debug example code .Code examples .Amazon CloudWatch examples .Creating alarms in Amazon CloudWatch .Using alarm actions in Amazon CloudWatch .Getting metrics from Amazon CloudWatch .Sending events to Amazon CloudWatch Events .Using subscription filters in Amazon CloudWatch Logs .Amazon DynamoDB examples .Creating and using tables in DynamoDB .Reading and writing a single item in DynamoDB .Reading and writing items in batch in DynamoDB .Querying and scanning a DynamoDB table .Using the DynamoDB Utilities .Amazon EC2 examples .Creating an Amazon EC2 instance 07475798285889494

AWS SDK for JavaScript Developer Guide for SDK Version 3Managing Amazon EC2 instances . 96Working with Amazon EC2 key pairs . 101Using Regions and Availability Zones with Amazon EC2 . 104Working with security groups in Amazon EC2 . 105Using elastic IP addresses in Amazon EC2 . 109MediaConvert examples . 113Getting your account-specific endpoint . 113Creating and managing jobs . 115Using job templates . 121Amazon S3 Glacier examples . 128Creating a S3 Glacier vault . 128Uploading an archive to S3 Glacier . 129AWS Identity and Access Management examples . 130Managing IAM users . 131Working with IAM policies . 135Managing IAM access keys . 140Working with IAM server certificates . 145Managing IAM account aliases . 149Amazon Kinesis Examples . 152Capturing Webpage Scroll Progress with Amazon Kinesis . 152AWS Lambda examples . 159Tutorial: Creating and using Lambda functions . 159Amazon Polly examples . 166The scenario . 166Prerequisite tasks . 167Upload audio recorded using Amazon Polly to Amazon S3 . 167Amazon S3 examples . 168Amazon S3 browser examples . 168Amazon S3 Node.js examples . 193Amazon SES examples . 216Managing identities . 217Working with email templates . 221Sending email using Amazon SES . 226Using IP address filters . 231Using receipt rules . 235Amazon SNS Examples . 239Managing Topics . 240Publishing Messages to a Topic . 245Managing Subscriptions . 246Sending SMS Messages . 253Amazon SQS examples .

AWS SDK for JavaScript Developer Guide for SDK Version 3 Maintenance and support for SDK major versions What is the AWS SDK for JavaScript? Welcome to the AWS SDK for JavaScript Developer Guide. This guide provides general information about setting up and configuring the AWS SDK for JavaScript. It also walks you through examples and tutorial

Related Documents:

AWS SDK for JavaScript AWS SDK for JavaScript code examples AWS SDK for .NET AWS SDK for .NET code examples AWS SDK for PHP AWS SDK for PHP code examples AWS SDK for Python (Boto3) AWS SDK for Python (Boto3) code examples AWS SDK for Ruby AWS SDK for Ruby co

JavaScript. Check a framework's documentation for details. Using the SDK with Web Browsers All major web browsers support execution of JavaScript. JavaScript code that is running in a web browser is often called client-side JavaScript. Using the SDK for JavaScript in a web browser differs from the way in which you use it for Node.js. The

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. Getting Started with the AWS SDK for Ruby (p. 3) Additional Documentation and Resources For more resources for AWS SDK for Ruby developers, see the following:

4 AWS Training & Services AWS Essentials Training AWS Cloud Practitioner Essentials (CP-ESS) AWS Technical Essentials (AWSE) AWS Business Essentials (AWSBE) AWS Security Essentials (SEC-ESS) AWS System Architecture Training Architecting on AWS (AWSA) Advanced Architecting on AWS (AWSAA) Architecting on AWS - Accelerator (ARCH-AX) AWS Development Training

ANDROID SDK INSTALLATION . Receive the SDK . After receiving information on how to retrieve the ZIP File containing the SDK, use the following steps on to install the SDK properly. Install Static Library & Header . To install the Barometric SDK, add the files included in the zip file to the listed locations below. .ZIP FILES FILE LOCATION

AWS Directory Amazon Aurora R5 instance Service AWS Server Migration Service AWS Snowball AWS Deep Amazon GameLift Learning AMIs AWS CodeBuild AWS CodeDeploy AWS Database Migration Service Amazon Polly 26 26 20 40 12 0 5 10 15 20 25 30 35 40 45 2018 Q1 2018 Q2 2018 Q3 2018 Q4 2019 Q1 New Services& Features on AWS

AWS instances with Nessus while in development and operations, before publishing to AWS users. Tenable Network Security offers two products on the AWS environment: Nessus for AWS is a Nessus Enterprise instance already available in the AWS Marketplace. Tenable Nessus for AWS provides pre-authorized scanning in the AWS cloud via AWS instance ID.

As adopted by the World Bank as of April 15, 2012 ARTICLE I INTRODUCTORY PROVISIONS Section 1.01. Legal Basis and Purpose of these Procedures. (a) Fiduciary Duty. It is the duty of the World Bank,1 under its Articles of Agreement, to make arrangements to ensure that funds provided by the Bank are used only for their intended purposes. In furtherance of this duty, the World Bank has established .