Class: AWSCDK::Pinpoint::CfnApplicationSettings::CampaignHookProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnApplicationSettings::CampaignHookProperty
- 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
-
#lambda_function_name ⇒ String?
readonly
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?
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.
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_name ⇒ String? (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 |
#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.
576 577 578 |
# File 'pinpoint/cfn_application_settings.rb', line 576 def mode @mode end |
#web_url ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |