function callApi()

in src/AuthDisplay.js [22:34]


    function callApi(id) {

            const params = {
                body: {}
            };
            API.post('amplifyiotlambdaapi', '/amplifyiotlambdaapi', params)
            .then(resp => {
            console.log("Successfully created policy and attached with the identity", resp);
            })
            .catch(err => {
            console.log(err);
        });
    }