libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pinpoint.Types.CampaignHook

Description

 
Synopsis

Documentation

data CampaignHook Source #

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

See: newCampaignHook smart constructor.

Constructors

CampaignHook' 

Fields

  • lambdaFunctionName :: Maybe Text

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

  • mode :: Maybe Mode

    The mode that Amazon Pinpoint uses to invoke the AWS 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 :: Maybe Text

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

Instances

Instances details
Eq CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

Read CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

Show CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

Generic CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

Associated Types

type Rep CampaignHook :: Type -> Type #

NFData CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

Methods

rnf :: CampaignHook -> () #

Hashable CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

ToJSON CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

FromJSON CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

type Rep CampaignHook Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.CampaignHook

type Rep CampaignHook = D1 ('MetaData "CampaignHook" "Amazonka.Pinpoint.Types.CampaignHook" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "CampaignHook'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lambdaFunctionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "mode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Mode)) :*: S1 ('MetaSel ('Just "webUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newCampaignHook :: CampaignHook Source #

Create a value of CampaignHook with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:lambdaFunctionName:CampaignHook', campaignHook_lambdaFunctionName - The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

$sel:mode:CampaignHook', campaignHook_mode - The mode that Amazon Pinpoint uses to invoke the AWS 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.

$sel:webUrl:CampaignHook', campaignHook_webUrl - The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

campaignHook_lambdaFunctionName :: Lens' CampaignHook (Maybe Text) Source #

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

campaignHook_mode :: Lens' CampaignHook (Maybe Mode) Source #

The mode that Amazon Pinpoint uses to invoke the AWS 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.

campaignHook_webUrl :: Lens' CampaignHook (Maybe Text) Source #

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