<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>
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>
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>
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>