Class: AWSCDK::Pinpoint::CfnApplicationSettings::CampaignHookProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_application_settings.rb

Overview

Specifies the Lambda function to use by default as a code hook for campaigns in the application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lambda_function_name: nil, mode: nil, web_url: nil) ⇒ CampaignHookProperty

Returns a new instance of CampaignHookProperty.

Parameters:

  • lambda_function_name (String, nil) (defaults to: nil)

    The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to send messages for campaigns in the application.

  • mode (String, nil) (defaults to: nil)

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

  • web_url (String, nil) (defaults to: nil)

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



555
556
557
558
559
560
561
562
# File 'pinpoint/cfn_application_settings.rb', line 555

def initialize(lambda_function_name: nil, mode: nil, web_url: nil)
  @lambda_function_name = lambda_function_name
  Jsii::Type.check_type(@lambda_function_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambdaFunctionName") unless @lambda_function_name.nil?
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") unless @mode.nil?
  @web_url = web_url
  Jsii::Type.check_type(@web_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webUrl") unless @web_url.nil?
end

Instance Attribute Details

#lambda_function_nameString? (readonly)

The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to send messages for campaigns in the application.



568
569
570
# File 'pinpoint/cfn_application_settings.rb', line 568

def lambda_function_name
  @lambda_function_name
end

#modeString? (readonly)

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.


576
577
578
# File 'pinpoint/cfn_application_settings.rb', line 576

def mode
  @mode
end

#web_urlString? (readonly)

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



581
582
583
# File 'pinpoint/cfn_application_settings.rb', line 581

def web_url
  @web_url
end

Class Method Details

.jsii_propertiesObject



583
584
585
586
587
588
589
# File 'pinpoint/cfn_application_settings.rb', line 583

def self.jsii_properties
  {
    :lambda_function_name => "lambdaFunctionName",
    :mode => "mode",
    :web_url => "webUrl",
  }
end

Instance Method Details

#to_jsiiObject



591
592
593
594
595
596
597
598
599
# File 'pinpoint/cfn_application_settings.rb', line 591

def to_jsii
  result = {}
  result.merge!({
    "lambdaFunctionName" => @lambda_function_name,
    "mode" => @mode,
    "webUrl" => @web_url,
  })
  result.compact
end