Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::SourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect_campaignsv2/cfn_campaign.rb

Overview

Contains source configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_profiles_segment_arn: nil, event_trigger: nil) ⇒ SourceProperty

Returns a new instance of SourceProperty.

Parameters:



1699
1700
1701
1702
1703
1704
# File 'connect_campaignsv2/cfn_campaign.rb', line 1699

def initialize(customer_profiles_segment_arn: nil, event_trigger: nil)
  @customer_profiles_segment_arn = customer_profiles_segment_arn
  Jsii::Type.check_type(@customer_profiles_segment_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerProfilesSegmentArn") unless @customer_profiles_segment_arn.nil?
  @event_trigger = event_trigger.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::EventTriggerProperty.new(**event_trigger.transform_keys(&:to_sym)) : event_trigger
  Jsii::Type.check_type(@event_trigger, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uRXZlbnRUcmlnZ2VyUHJvcGVydHkifV19fQ==")), "eventTrigger") unless @event_trigger.nil?
end

Instance Attribute Details

#customer_profiles_segment_arnString? (readonly)

The Amazon Resource Name (ARN) of the Customer Profiles segment.



1710
1711
1712
# File 'connect_campaignsv2/cfn_campaign.rb', line 1710

def customer_profiles_segment_arn
  @customer_profiles_segment_arn
end

#event_triggerAWSCDK::IResolvable, ... (readonly)

The event trigger of the campaign.



1715
1716
1717
# File 'connect_campaignsv2/cfn_campaign.rb', line 1715

def event_trigger
  @event_trigger
end

Class Method Details

.jsii_propertiesObject



1717
1718
1719
1720
1721
1722
# File 'connect_campaignsv2/cfn_campaign.rb', line 1717

def self.jsii_properties
  {
    :customer_profiles_segment_arn => "customerProfilesSegmentArn",
    :event_trigger => "eventTrigger",
  }
end

Instance Method Details

#to_jsiiObject



1724
1725
1726
1727
1728
1729
1730
1731
# File 'connect_campaignsv2/cfn_campaign.rb', line 1724

def to_jsii
  result = {}
  result.merge!({
    "customerProfilesSegmentArn" => @customer_profiles_segment_arn,
    "eventTrigger" => @event_trigger,
  })
  result.compact
end