update_connector
¶
update_connector(
connector_arn: __string,
current_version: __string,
*,
config_overrides: Optional[KafkaConnectClientConfig] = None,
capacity: Optional[CapacityUpdate] = None,
connector_configuration: Optional[ConnectorConfigurationUpdate] = None,
skip_health_validation: Optional[__boolean] = None,
plugins: Optional[__listOfPluginUpdate] = None,
worker_configuration: Optional[WorkerConfigurationUpdate] = None,
use_default_worker_configuration: Optional[__boolean] = None,
) -> UpdateConnectorResponse
Updates the specified connector. In the request body, you can update either the connector's worker setting or its connector configuration, but not both in the same request. To update the worker setting, specify one or more of capacity, plugins, workerConfiguration, or useDefaultWorkerConfiguration. To update the connector configuration, specify only connectorConfiguration.
Parameters:
-
capacity(Optional[CapacityUpdate], default:None) –The target capacity.
-
connector_configuration(Optional[ConnectorConfigurationUpdate], default:None) –A map of keys to values that represent the configuration for the connector.
-
skip_health_validation(Optional[__boolean], default:None) –Specifies whether the update bypasses connector-level and task-level health checks. If
true, the update skips the health checks. The update stays in effect even if the connector or its tasks are unhealthy, and Amazon MSK Connect doesn't roll it back. Iffalseor not specified, the health checks run. If they fail, MSK Connect automatically rolls the connector back to its previous configuration, and the update doesn't take effect. To update a connector that is in thePAUSEDstate, you must set this parameter totrue. -
connector_arn(__string) –The Amazon Resource Name (ARN) of the connector that you want to update.
-
current_version(__string) –The current version of the connector that you want to update.
-
plugins(Optional[__listOfPluginUpdate], default:None) –Amazon MSK Connect does not currently support specifying multiple plugins as a list. To use more than one plugin for your connector, you can create a single custom plugin using a ZIP file that bundles multiple plugins together.
Specifies which plugin to use for the connector. You must specify a single-element list containing one
customPluginobject. If you don't specify this parameter, the connector keeps its current plugin. -
worker_configuration(Optional[WorkerConfigurationUpdate], default:None) –The worker configuration to use with the connector. Specify the Amazon Resource Name (ARN) and the revision of the worker configuration. You can't specify both
workerConfigurationanduseDefaultWorkerConfigurationin the same request. If you specify neither parameter, the connector keeps its current worker configuration. -
use_default_worker_configuration(Optional[__boolean], default:None) –Specifies whether to switch the connector to the default worker configuration that Amazon MSK Connect provides. If
true, the connector stops using its custom worker configuration and uses the default worker configuration instead. Iffalseor not specified, the connector keeps its current worker configuration. You can't specify bothuseDefaultWorkerConfigurationandworkerConfigurationin the same request.
Raises:
-
BadRequestException–HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
-
ForbiddenException–HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.
-
InternalServerErrorException–HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
-
NotFoundException–HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
-
ServiceUnavailableException–HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.
-
TooManyRequestsException–HTTP Status Code 429: Limit exceeded. Resource limit reached.
-
UnauthorizedException–HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kafkaconnect/_services/kafka_connect.py
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 | |