aws-cdk-lib.aws_pinpoint.CfnCampaign.CampaignHookProperty

interface CampaignHookProperty

LanguageType name
.NETAmazon.CDK.AWS.Pinpoint.CfnCampaign.CampaignHookProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnCampaign_CampaignHookProperty
Javasoftware.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignHookProperty
Pythonaws_cdk.aws_pinpoint.CfnCampaign.CampaignHookProperty
TypeScript aws-cdk-lib » aws_pinpoint » CfnCampaign » CampaignHookProperty

Specifies settings for invoking an Lambda function that customizes a segment for a campaign.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const campaignHookProperty: pinpoint.CfnCampaign.CampaignHookProperty = {
  lambdaFunctionName: 'lambdaFunctionName',
  mode: 'mode',
  webUrl: 'webUrl',
};

Properties

NameTypeDescription
lambdaFunctionName?stringThe name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.
mode?stringThe mode that Amazon Pinpoint uses to invoke the Lambda function. Possible values are:.
webUrl?stringThe web URL that Amazon Pinpoint calls to invoke the Lambda function over HTTPS.

lambdaFunctionName?

Type: string (optional)

The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.


mode?

Type: string (optional)

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

  • FILTER - Invoke the function to customize the segment that's used by a campaign.
  • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

webUrl?

Type: string (optional)

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