Class: AWSCDK::Pinpoint::CfnCampaign::CampaignHookProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnCampaign::CampaignHookProperty
- Defined in:
- pinpoint/cfn_campaign.rb
Overview
Specifies settings for invoking an Lambda function that customizes a segment for a campaign.
Instance Attribute Summary collapse
-
#lambda_function_name ⇒ String?
readonly
The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.
-
#mode ⇒ String?
readonly
The mode that Amazon Pinpoint uses to invoke the Lambda function.
-
#web_url ⇒ String?
readonly
The web URL that Amazon Pinpoint calls to invoke the Lambda function over HTTPS.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lambda_function_name: nil, mode: nil, web_url: nil) ⇒ CampaignHookProperty
constructor
A new instance of CampaignHookProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lambda_function_name: nil, mode: nil, web_url: nil) ⇒ CampaignHookProperty
Returns a new instance of CampaignHookProperty.
937 938 939 940 941 942 943 944 |
# File 'pinpoint/cfn_campaign.rb', line 937 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_name ⇒ String? (readonly)
The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.
950 951 952 |
# File 'pinpoint/cfn_campaign.rb', line 950 def lambda_function_name @lambda_function_name end |
#mode ⇒ String? (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 theCustomDeliveryConfigurationandCampaignCustomMessageobjects of the campaign.
958 959 960 |
# File 'pinpoint/cfn_campaign.rb', line 958 def mode @mode end |
#web_url ⇒ String? (readonly)
The web URL that Amazon Pinpoint calls to invoke the Lambda function over HTTPS.
963 964 965 |
# File 'pinpoint/cfn_campaign.rb', line 963 def web_url @web_url end |
Class Method Details
.jsii_properties ⇒ Object
965 966 967 968 969 970 971 |
# File 'pinpoint/cfn_campaign.rb', line 965 def self.jsii_properties { :lambda_function_name => "lambdaFunctionName", :mode => "mode", :web_url => "webUrl", } end |
Instance Method Details
#to_jsii ⇒ Object
973 974 975 976 977 978 979 980 981 |
# File 'pinpoint/cfn_campaign.rb', line 973 def to_jsii result = {} result.merge!({ "lambdaFunctionName" => @lambda_function_name, "mode" => @mode, "webUrl" => @web_url, }) result.compact end |