Skip to content

Instantly share code, notes, and snippets.

View Cdvalencia's full-sized avatar
Dev

Cristian Cdvalencia

Dev
  • @cdvalencia1
  • Rionegro
View GitHub Profile
@obxpete
obxpete / cfAWSSNSexample.cfc
Last active June 11, 2019 21:02
AWS SNS example in ColdFusion
BasicAWSCredentials = createObject("java", 'com.amazonaws.auth.BasicAWSCredentials').init(yourAccessKey, your
secretKey);
// turn credentials into a provider object
AWSCredentialsProviderObj = createObject("java", "com.amazonaws.auth.AWSStaticCredentialsProvider").init(BasicAWSCredentials);
// create our client
AWSSNSClient = createObject("java", "com.amazonaws.services.sns.AmazonSNSClientBuilder").standard().withRegion("us-east-1").withCredentials(AWSCredentialsProviderObj).build();
// create/identify the topicArn, snsMessage and snsSubject text strings of what you want your topic to publish.