Class: AWSCDK::AppFlow::CfnFlow::CustomConnectorSourcePropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_flow.rb

Overview

The properties that are applied when the custom connector is being used as a source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity_name:, custom_properties: nil, data_transfer_api: nil) ⇒ CustomConnectorSourcePropertiesProperty

Returns a new instance of CustomConnectorSourcePropertiesProperty.

Parameters:

  • entity_name (String)

    The entity specified in the custom connector as a source in the flow.

  • custom_properties (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    Custom properties that are required to use the custom connector as a source.

  • data_transfer_api (AWSCDK::IResolvable, AWSCDK::AppFlow::CfnFlow::DataTransferAPIProperty, nil) (defaults to: nil)

    The API of the connector application that Amazon AppFlow uses to transfer your data.



1013
1014
1015
1016
1017
1018
1019
1020
# File 'app_flow/cfn_flow.rb', line 1013

def initialize(entity_name:, custom_properties: nil, data_transfer_api: nil)
  @entity_name = entity_name
  Jsii::Type.check_type(@entity_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityName")
  @custom_properties = custom_properties
  Jsii::Type.check_type(@custom_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "customProperties") unless @custom_properties.nil?
  @data_transfer_api = data_transfer_api.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnFlow::DataTransferAPIProperty.new(**data_transfer_api.transform_keys(&:to_sym)) : data_transfer_api
  Jsii::Type.check_type(@data_transfer_api, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkZsb3cuRGF0YVRyYW5zZmVyQXBpUHJvcGVydHkifV19fQ==")), "dataTransferApi") unless @data_transfer_api.nil?
end

Instance Attribute Details

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

Custom properties that are required to use the custom connector as a source.



1031
1032
1033
# File 'app_flow/cfn_flow.rb', line 1031

def custom_properties
  @custom_properties
end

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

The API of the connector application that Amazon AppFlow uses to transfer your data.



1036
1037
1038
# File 'app_flow/cfn_flow.rb', line 1036

def data_transfer_api
  @data_transfer_api
end

#entity_nameString (readonly)

The entity specified in the custom connector as a source in the flow.



1026
1027
1028
# File 'app_flow/cfn_flow.rb', line 1026

def entity_name
  @entity_name
end

Class Method Details

.jsii_propertiesObject



1038
1039
1040
1041
1042
1043
1044
# File 'app_flow/cfn_flow.rb', line 1038

def self.jsii_properties
  {
    :entity_name => "entityName",
    :custom_properties => "customProperties",
    :data_transfer_api => "dataTransferApi",
  }
end

Instance Method Details

#to_jsiiObject



1046
1047
1048
1049
1050
1051
1052
1053
1054
# File 'app_flow/cfn_flow.rb', line 1046

def to_jsii
  result = {}
  result.merge!({
    "entityName" => @entity_name,
    "customProperties" => @custom_properties,
    "dataTransferApi" => @data_transfer_api,
  })
  result.compact
end