This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as QuickSightEmbedding from 'amazon-quicksight-embedding-sdk'; | |
| import { Subscription } from 'rxjs'; | |
| export class QuicksightComponent implements OnInit { | |
| quicksightUrl: string; | |
| dashboard: any; | |
| quicksightSubscription$: Subscription; | |
| ngOnInit(): void { | |
| // Replace this code with the api call to get the embedding url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="dashboardContainer"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import boto3 | |
| from botocore.exceptions import ConnectionError, ClientError | |
| import logging | |
| import requests | |
| def create_connection(): | |
| try: | |
| print('CONNECTING') | |
| qs = boto3.client('quicksight', region_name=QSREGION) # TODO: Replace with the region in which your quicksight is configured | |
| return qs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "flowDefinitionArn": "arn:aws:sagemaker:****", | |
| "humanAnswers": [{ | |
| "answerContent": { | |
| "Billing Address": "John Doe 36, Green Downtown, Golden Road, FL", | |
| "Order NO.": "A-8934792734", | |
| "Order Date": "19.06.2019", | |
| "Total Amount": "$47.42" | |
| }, | |
| "submissionTime": "2020-08-30T16:52:14.385Z", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "keyValuePairs": [ | |
| { | |
| "field": "Buyer Name", | |
| "value": "John Doe", | |
| "confidence": 92 | |
| }, | |
| { | |
| "field": "Billing Address", | |
| "value": "John Doe 36, Green Downtown, Golden Road, FL", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Create a script to invoke the submit action of the hidden crowd form button element after user clicks on our custom button --> | |
| <script> | |
| document.addEventListener("DOMContentLoaded", function(event) { | |
| const component = document.querySelector('#submit').addEventListener('click', (event) => { | |
| document.querySelector('crowd-form').submit(); | |
| }); | |
| }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <html> | |
| <head> | |
| <!-- Crowd HTML elements --> | |
| <script src="https://assets.crowd.aws/crowd-html-elements.js"></script> | |
| <!-- Bootstrap 4 --> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
| <!-- Material icons --> | |
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> |