fuelplus-insights
v1.0.9
Published
Utility for embedding Amazon Quicksights based on a minimal configuration
Downloads
13
Readme
fuelplus-insights is a small browser library that helps embedding Amazon Quicksight dashboards.
Installation
Install with NPM.
Run npm install fuelplus-insights
Usage
import * as Insights from 'fuelplus-insights';
Insights.initdashboard({
dashboardId: 'DASHBOARD_ID',
region: 'AWS_REGION', // for example: eu-central-1
cognitoIdentityPoolId: 'COGNITO_IDENTITY_POOL_ID', // For example: eu-central-1:xxx-xxxx-xxxx-xxxx
cognitoAuthenticatedUserPoolId: 'COGNITO_AUTHENTICATED_USER_POOL_ID', // For example: eu-central-1_xxxxxxxxx
apiGatewayUrl: 'GET_EMBED_URL', // For example: https://xxxxxxxx.execute-api.AWS_REGION.amazonaws.com/prod/getDashboardEmbedURL?
cognitoAuthenticatedLogins: 'COGNITO_AUTH_LOGINS', // For example: cognito-idp.AWS_REGION.amazonaws.com/COGNITO_AUTHENTICATED_USER_POOL_ID
userArn: 'USER_ARN', // Fro example: arn:aws:quicksight:AWS_REGION:xxxxxxxxxxx:user/default/Admin/
token: "COGNITO_ID_TOKEN",
container: "CONTAINER_CLASS_OR_ID" // For example: .app-data-container
});
```javascript