This file contains 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
{ | |
"monitoring":{ | |
"Topics":{ | |
"service":"SNS", | |
"providerPlugin":"awscloudformation" | |
} | |
}, | |
"hosting":{ | |
..... | |
} |
This file contains 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
amplify | |
\backend | |
\monitoring | |
\topics | |
parameters.json | |
template.json | |
\hosting | |
parameters.json | |
template.json |
This file contains 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
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"SNS resource stack creation using Amplify CLI", | |
"Parameters":{ | |
"env":{ | |
"Type":"String" | |
}, | |
"alarmsTopicName":{ | |
"Type":"String" | |
}, |
This file contains 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
{ | |
"alarmsTopicName":"alarms", | |
"alarmsSubscriptionEmailProd":"alarms-prod@mydomain.com", | |
"alarmsSubscriptionEmailTest":"alarms-test@mydomain.com" | |
} |
This file contains 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
{ | |
"monitoring":{ | |
"Topics":{ | |
"service":"SNS", | |
"providerPlugin":"awscloudformation" | |
} | |
}, | |
"function":{ | |
"MyFunction":{ | |
"service":"Lambda", |
This file contains 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
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"Lambda resource stack creation using Amplify CLI", | |
"Parameters":{ | |
"env":{ | |
"Type":"String" | |
}, | |
"monitoringTopicsAlarmsTopicArn":{ | |
"Type":"String" | |
} |
This file contains 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
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"Lambda resource stack creation using Amplify CLI", | |
"Parameters":{ | |
"env":{ | |
"Type":"String" | |
}, | |
"monitoringTopicsAlarmsTopicArn":{ | |
"Type":"String" | |
}, |
This file contains 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
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"Lambda resource stack creation using Amplify CLI", | |
"Parameters":{ | |
... | |
"RetentionInDaysProd":{ | |
"Type":"Number" | |
}, | |
"RetentionInDaysOther":{ | |
"Type":"Number" |
This file contains 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
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"Lambda resource stack creation using Amplify CLI", | |
"Parameters":{ | |
... | |
}, | |
"Conditions":{ | |
... | |
}, | |
"Resources":{ |
This file contains 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 { Hub } from 'aws-amplify'; | |
// Some HTTP request as an example that can be anywhere in your code | |
fetch(SOME_URL) | |
.then(function (response) { | |
if (!response.ok) { | |
console.log(`HTTP request succeed with unsuccessful response code of ${response.statusText}`); | |
Hub.dispatch( | |
'error', | |
{ |
OlderNewer