{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-pinpoint/refs/heads/main/json-schema/amazon-pinpoint-campaign-hook-schema.json", "title": "CampaignHook", "description": "Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaign.", "type": "object", "properties": { "LambdaFunctionName": { "allOf": [ { "$ref": "#/components/schemas/__string" }, { "description": "The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign." } ] }, "Mode": { "allOf": [ { "$ref": "#/components/schemas/Mode" }, { "description": "

The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

" } ] }, "WebUrl": { "allOf": [ { "$ref": "#/components/schemas/__string" }, { "description": "

The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

" } ] } } }