Created
October 9, 2019 13:21
-
-
Save alexcasalboni/453e3b94886864028ef9053aba88239a to your computer and use it in GitHub Desktop.
Amazon Pinpoint - Custom Channel Lambda function (YAML)
This file contains hidden or 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' | |
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