|
1 | 1 | { |
2 | | - "title": "Step Functions to Athena", |
3 | | - "description": "Create a Step Functions workflow to query Amazon Athena.", |
| 2 | + "title": "Pinpoint SMS via API Gateway and Lambda", |
| 3 | + "description": "Validate phone number and send SMS from Pinpoint via API Gateway and Lambda", |
4 | 4 | "language": "Python", |
5 | 5 | "level": "200", |
6 | | - "framework": "CDK", |
| 6 | + "framework": "SAM", |
7 | 7 | "introBox": { |
8 | 8 | "headline": "How it works", |
9 | 9 | "text": [ |
10 | | - "This sample project demonstrates how to use an AWS Step Functions state machine to query Athena and get the results. This pattern is leveraging the native integration between these 2 services which means only JSON-based, structured language is used to define the implementation.", |
11 | | - "With Amazon Athena you can get up to 1000 results per invocation of the GetQueryResults method and this is the reason why the Step Function has a loop to get more results. The results are sent to a Map which can be configured to handle (the DoSomething state) the items in parallel or one by one by modifying the max_concurrency parameter.", |
12 | | - "This pattern deploys one Step Functions, two S3 Buckets, one Glue table and one Glue database." |
| 10 | + "This pattern shows an example how a phone number can be validated and how a SMS message can be send using Pinpoint APIs which via API Gateway and Lambda deployed using SAM." |
13 | 11 | ] |
14 | 12 | }, |
15 | 13 | "gitHub": { |
16 | 14 | "template": { |
17 | | - "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/sfn-athena-cdk-python", |
18 | | - "templateURL": "serverless-patterns/sfn-athena-cdk-python", |
19 | | - "projectFolder": "sfn-athena-cdk-python", |
20 | | - "templateFile": "sfn_athena_cdk_python/sfn_athena_cdk_python_stack.py" |
| 15 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-lambda-pinpoint", |
| 16 | + "templateURL": "serverless-patterns/apigw-lambda-pinpoint", |
| 17 | + "projectFolder": "apigw-lambda-pinpoint", |
| 18 | + "templateFile": "template.py" |
21 | 19 | } |
22 | 20 | }, |
23 | 21 | "resources": { |
24 | 22 | "bullets": [ |
25 | 23 | { |
26 | | - "text": "Call Athena with Step Functions", |
27 | | - "link": "https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html" |
| 24 | + "text": "Send Messages Pinpoint", |
| 25 | + "link": "https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messagespost" |
28 | 26 | }, |
29 | 27 | { |
30 | | - "text": "Amazon Athena - Serverless Interactive Query Service", |
31 | | - "link": "https://aws.amazon.com/athena/" |
| 28 | + "text": "Phone number validate", |
| 29 | + "link": "https://docs.aws.amazon.com/pinpoint/latest/apireference/phone-number-validate.html" |
32 | 30 | } |
33 | 31 | ] |
34 | 32 | }, |
|
44 | 42 | }, |
45 | 43 | "cleanup": { |
46 | 44 | "text": [ |
47 | | - "Delete the stack: <code>cdk delete</code>." |
| 45 | + "Delete the stack: <code>sam delete --stack-name STACK_NAME</code>." |
48 | 46 | ] |
49 | 47 | }, |
50 | 48 | "authors": [ |
51 | 49 | { |
52 | | - "name": "Your name", |
| 50 | + "name": "Sahil Malhotra", |
53 | 51 | "image": "link-to-your-photo.jpg", |
54 | | - "bio": "Your bio.", |
55 | | - "linkedin": "linked-in-ID", |
| 52 | + "bio": "Serverless enthusiast", |
| 53 | + "linkedin": "https://www.linkedin.com/in/smalhotraa/", |
56 | 54 | "twitter": "twitter-handle" |
57 | 55 | } |
58 | 56 | ] |
|
0 commit comments