s3_PhotoExample.html - AWS Code Sample


<!-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3), which is pending release. The preview version of the SDK is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Developer Guide' at https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/s3-example-photo-album.html. Purpose: s3_PhotoExample.html demonstrates how to manipulate photos in albums stored in an Amazon S3 bucket. Inputs (replace in code): - BUCKET_NAME - REGION - IDENTITY_POOL_ID Running the code: node s3_PhotoExample.js */ NOTES: - For the JavaScript code, see s3_PhotoExample.js. - For IAM role policy and CORS setup, see the JavaScript Developer Guide topic at https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-photo-album.html. --> <!DOCTYPE html> <html> <head> <script src="./main.js"></script> <script> function getHtml(template) { return template.join("\n"); } listAlbums(); </script> </head> <body> <h1>My photo albums app</h1> <div id="app"></div> </body> </html>