Skip to main content
This page contains information about how to migrate from previous versions of the Unstructured Pipeline API.

ConnectorConfigInput and ConnectorType classes are deprecated

Applies to: The Unstructured Python SDK only. Issue: Referencing classes that end in ConnectorConfigInput such as S3SourceConnectorConfigInput and S3DestinationConnectorConfigInput, and referencing classes that end in ConnectorType such as S3SourceConnectorType and S3DestinationConnectorType, produce warnings at design time and errors at run time. Cause: The preceding classes have been deprecated and are no longer supported. Solution:
  • Remove references to classes that end in ConnectorConfigInput from your code. Replace these references with a dictionary. This dictionary must contain the same fields as the class that you removed, with dictionary key/value pairs instead of object parameter/argument pairs.
  • Remove references to classes that end in ConnectorType from your code. Replace these references with a string reference instead. This string corresponds to Unstructured’s programmatic identifier for the connector type, for example s3 for Amazon S3.
For example, the following code template shows the deprecated approach for programmatically creating an S3 source connector.
Python SDK
To address this issue, use the following code template instead, which removes the SourceConnectorType and S3SourceConnectorConfigInput class references and replaces them with the correct substitutions.
Python SDK