[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-apigw-lambda-ses":3,"pattern-group-apigw-lambda-ses":67},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":23,"language":28,"level":29,"meta":30,"patternArch":31,"patternGroup":6,"patternGroupLabel":6,"resources":51,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-lambda-ses.json","Amazon API Gateway REST API to AWS Lambda to Amazon SES",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsurya-dulla.json",{"text":13},[14,15],"sam build","sam deploy --guided","Send an email with Amazon SES from an AWS Lambda function behind an Amazon API Gateway REST API.","json","AWS SAM",{"template":20},{"patternPath":21,"templateFile":22},"apigw-lambda-ses","template.yaml",{"headline":24,"text":25},"How it works",[26,27],"This pattern deploys an Amazon API Gateway REST API with a GET method that invokes an AWS Lambda function. The function uses the AWS SDK for Python (Boto3) to send an HTML email with Amazon SES, using an SES configuration set that the template also creates.","Before you deploy, verify a sender identity in Amazon SES and set the sender and recipient addresses in email-lambda\u002Femail-lambda.py. In the SES sandbox, the recipient address must be verified too.","Python","200",{},{"icon1":32,"icon2":37,"icon3":40,"line1":44,"line2":48},{"x":33,"y":34,"service":35,"label":36},20,50,"apigw","Amazon API Gateway",{"x":34,"y":34,"service":38,"label":39},"lambda","AWS Lambda",{"x":41,"y":34,"service":42,"label":43},80,"ses","Amazon SES",{"from":45,"to":46,"label":47},"icon1","icon2","GET",{"from":46,"to":49,"label":50},"icon3","SendEmail",{"bullets":52},[53,56,59],{"text":54,"link":55},"Send email with the Amazon SES API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fses\u002Flatest\u002Fdg\u002Fsend-email-api.html",{"text":57,"link":58},"Verified identities in Amazon SES","https:\u002F\u002Fdocs.aws.amazon.com\u002Fses\u002Flatest\u002Fdg\u002Fverify-addresses-and-domains.html",{"text":60,"link":61},"Amazon SES configuration sets","https:\u002F\u002Fdocs.aws.amazon.com\u002Fses\u002Flatest\u002Fdg\u002Fusing-configuration-sets.html","patterns\u002Fapigw-lambda-ses",{"text":64},[65],"Call the \u003Ccode>apiGatewayInvokeURL\u003C\u002Fcode> stack output, for example \u003Ccode>curl https:\u002F\u002F{api-id}.execute-api.{region}.amazonaws.com\u002FsendEmail\u003C\u002Fcode>, then check the recipient's inbox.","8hiPKg3a6sAjMQ7SN2PWS1FTdRXnVw8lu9K39IuvOiY",[],1790815435774]