Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Amazon Pinpoint - Custom Channel Lambda function (YAML)
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
myHookFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
# ...
# all the other properties here
# ...
myPinpointApp:
Type: AWS::Pinpoint::App
Properties:
Name: MySampleApp
myPinpointSegment:
Type: AWS::Pinpoint::Segment
Properties:
ApplicationId: !Ref myPinpointApp
Name: 'My segment'
myPinpointCampaign:
Type: AWS::Pinpoint::Campaign
Properties:
ApplicationId: !Ref myPinpointApp
SegmentId: !GetAtt myPinpointSegment.SegmentId
MessageConfiguration: {...}
CampaignHook:
LambdaFunctionName: !Ref myHookFunction
Mode: DELIVERY
Schedule:
StartTime: '2019-11-01T15:00:00.000'
TimeZone: UTC
# ...
# all the other properties here
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.