Class: AWSCDK::CustomerProfiles::CfnIntegration::SourceConnectorPropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_integration.rb

Overview

Specifies the information that is required to query a particular Amazon AppFlow connector.

Customer Profiles supports Salesforce, Zendesk, Marketo, ServiceNow and Amazon S3.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(marketo: nil, s3: nil, salesforce: nil, service_now: nil, zendesk: nil) ⇒ SourceConnectorPropertiesProperty

Returns a new instance of SourceConnectorPropertiesProperty.

Parameters:



1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
# File 'customer_profiles/cfn_integration.rb', line 1111

def initialize(marketo: nil, s3: nil, salesforce: nil, service_now: nil, zendesk: nil)
  @marketo = marketo.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnIntegration::MarketoSourcePropertiesProperty.new(**marketo.transform_keys(&:to_sym)) : marketo
  Jsii::Type.check_type(@marketo, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkludGVncmF0aW9uLk1hcmtldG9Tb3VyY2VQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "marketo") unless @marketo.nil?
  @s3 = s3.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnIntegration::S3SourcePropertiesProperty.new(**s3.transform_keys(&:to_sym)) : s3
  Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkludGVncmF0aW9uLlMzU291cmNlUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "s3") unless @s3.nil?
  @salesforce = salesforce.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnIntegration::SalesforceSourcePropertiesProperty.new(**salesforce.transform_keys(&:to_sym)) : salesforce
  Jsii::Type.check_type(@salesforce, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkludGVncmF0aW9uLlNhbGVzZm9yY2VTb3VyY2VQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "salesforce") unless @salesforce.nil?
  @service_now = service_now.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnIntegration::ServiceNowSourcePropertiesProperty.new(**service_now.transform_keys(&:to_sym)) : service_now
  Jsii::Type.check_type(@service_now, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkludGVncmF0aW9uLlNlcnZpY2VOb3dTb3VyY2VQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "serviceNow") unless @service_now.nil?
  @zendesk = zendesk.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnIntegration::ZendeskSourcePropertiesProperty.new(**zendesk.transform_keys(&:to_sym)) : zendesk
  Jsii::Type.check_type(@zendesk, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkludGVncmF0aW9uLlplbmRlc2tTb3VyY2VQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "zendesk") unless @zendesk.nil?
end

Instance Attribute Details

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

The properties that are applied when Marketo is being used as a source.



1128
1129
1130
# File 'customer_profiles/cfn_integration.rb', line 1128

def marketo
  @marketo
end

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

The properties that are applied when Amazon S3 is being used as the flow source.



1133
1134
1135
# File 'customer_profiles/cfn_integration.rb', line 1133

def s3
  @s3
end

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

The properties that are applied when Salesforce is being used as a source.



1138
1139
1140
# File 'customer_profiles/cfn_integration.rb', line 1138

def salesforce
  @salesforce
end

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

The properties that are applied when ServiceNow is being used as a source.



1143
1144
1145
# File 'customer_profiles/cfn_integration.rb', line 1143

def service_now
  @service_now
end

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

The properties that are applied when using Zendesk as a flow source.



1148
1149
1150
# File 'customer_profiles/cfn_integration.rb', line 1148

def zendesk
  @zendesk
end

Class Method Details

.jsii_propertiesObject



1150
1151
1152
1153
1154
1155
1156
1157
1158
# File 'customer_profiles/cfn_integration.rb', line 1150

def self.jsii_properties
  {
    :marketo => "marketo",
    :s3 => "s3",
    :salesforce => "salesforce",
    :service_now => "serviceNow",
    :zendesk => "zendesk",
  }
end

Instance Method Details

#to_jsiiObject



1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
# File 'customer_profiles/cfn_integration.rb', line 1160

def to_jsii
  result = {}
  result.merge!({
    "marketo" => @marketo,
    "s3" => @s3,
    "salesforce" => @salesforce,
    "serviceNow" => @service_now,
    "zendesk" => @zendesk,
  })
  result.compact
end