register_connector
async
¶
register_connector(
*,
config_overrides: Optional[AsyncAppflowClientConfig] = None,
connector_label: Optional[ConnectorLabel] = None,
description: Optional[Description] = None,
connector_provisioning_type: Optional[ConnectorProvisioningType] = None,
connector_provisioning_config: Optional[ConnectorProvisioningConfig] = None,
client_token: Optional[ClientToken] = None,
) -> RegisterConnectorResponse
Registers a new custom connector with your Amazon Web Services account. Before you can register the connector, you must deploy the associated AWS lambda function in your account.
Parameters:
-
connector_label(Optional[ConnectorLabel], default:None) –The name of the connector. The name is unique for each
ConnectorRegistrationin your Amazon Web Services account. -
description(Optional[Description], default:None) –A description about the connector that's being registered.
-
connector_provisioning_type(Optional[ConnectorProvisioningType], default:None) –The provisioning type of the connector. Currently the only supported value is LAMBDA.
-
connector_provisioning_config(Optional[ConnectorProvisioningConfig], default:None) –The provisioning type of the connector. Currently the only supported value is LAMBDA.
-
client_token(Optional[ClientToken], default:None) –The
clientTokenparameter is an idempotency token. It ensures that yourRegisterConnectorrequest completes only once. You choose the value to pass. For example, if you don't receive a response from your request, you can safely retry the request with the sameclientTokenparameter value.If you omit a
clientTokenvalue, the Amazon Web Services SDK that you are using inserts a value for you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own value for other use cases.If you specify input parameters that differ from your first request, an error occurs. If you use a different value for
clientToken, Amazon AppFlow considers it a new call toRegisterConnector. The token is active for 8 hours.
Raises:
-
AccessDeniedException–AppFlow/Requester has invalid or missing permissions.
-
ConflictException–There was a conflict when processing the request (for example, a flow with the given name already exists within the account. Check for conflicting resource names and try again.
-
ConnectorAuthenticationException–An error occurred when authenticating with the connector endpoint.
-
ConnectorServerException–An error occurred when retrieving data from the connector endpoint.
-
InternalServerException–An internal service error occurred during the processing of your request. Try again later.
-
ResourceNotFoundException–The resource specified in the request (such as the source or destination connector profile) is not found.
-
ServiceQuotaExceededException–The request would cause a service quota (such as the number of flows) to be exceeded.
-
ThrottlingException–API calls have exceeded the maximum allowed API request rate per account and per Region.
-
ValidationException–The request has invalid or missing parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appflow/_services/async_appflow.py
1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 | |