Polymer Web Components for AWS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
test
.eslintrc.json
.gitignore
.htmlhintrc
.travis.yml
LICENSE
README.md
aws-app.html
aws-cognito-script.html
aws-cognito.html
aws-dynamodb.html
aws-lambda.html
aws-sdk-script.html
bower.json
index.html
package.json
polymeraws.html
wct.conf.json
yarn.lock

README.md

Build Status Published on webcomponents.org Bower version

<aws-app>

<aws-app> initializes and configures your connection to AWS. The app is permanently initialized once attached and should not be dynamically bound.

Example usage:

<aws-app region="eu-west-1"></aws-app>

<aws-cognito>

<aws-cognito> provides API wrapping and Polymer data binding for Amazon's Cognito service.

Example usage:

<aws-app region="us-east-1"></aws-app>

<aws-cognito id="cognito"
    region="[[region]]"
    user-pool-id="[[userPoolId]]"
    client-id="[[clientId]]"
    identity-pool-id="[[identityPoolId]]"
    user="{{cognitoUser}}"
    attributes="{{attributes}}"
    credentials="{{credentials}}"
    identity-id="{{identityId}}"
    logged-in="{{loggedIn}}"
    session="{{session}}"
    loading="{{user.loading}}"
    on-login-success="_handleLoginSuccess"
></aws-cognito>

<aws-dynamodb>

<aws-dynamodb> provides an easy way to retrieve and update AWS DynamoDB data.

Example usage:

<aws-app region="eu-west-1"></aws-app>
<aws-dynamodb
    table-name="notes"
    data="{{data}}"
></aws-dynamodb>

This fetches the data object from the notes table in the DynamoDB database and exposes it to the Polymer data binding system. Changes to data are likewise sent back and stored.

<aws-lambda>

<aws-lambda> provides an easy way to invoke a AWS Lambda function.

Example usage:

<aws-app region="eu-west-1"></aws-app>
<aws-lambda id="transformNotes"
    function-name="transformNotes"
    on-response="handleResponse"
></aws-lambda>