Skip to content

update_connector_destination async

update_connector_destination(
    identifier: ConnectorDestinationId,
    *,
    config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
    description: Optional[ConnectorDestinationDescription] = None,
    name: Optional[ConnectorDestinationName] = None,
    auth_type: Optional[AuthType] = None,
    auth_config: Optional[AuthConfigUpdate] = None,
    secrets_manager: Optional[SecretsManager] = None,
) -> None

Updates the properties of an existing connector destination.

Parameters:

Raises:

Source code in docs_src/capo_iot_managed_integrations/_services/async_io_t_managed_integrations.py
async def update_connector_destination(
    self,
    identifier: "capo_iot_managed_integrations.types.connector_destination_id.ConnectorDestinationId",
    *,
    config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
    description: Optional[
        "capo_iot_managed_integrations.types.connector_destination_description.ConnectorDestinationDescription"
    ] = None,
    name: Optional[
        "capo_iot_managed_integrations.types.connector_destination_name.ConnectorDestinationName"
    ] = None,
    auth_type: Optional[
        "capo_iot_managed_integrations.types.auth_type.AuthType"
    ] = None,
    auth_config: Optional[
        "capo_iot_managed_integrations.types.auth_config_update.AuthConfigUpdate"
    ] = None,
    secrets_manager: Optional[
        "capo_iot_managed_integrations.types.secrets_manager.SecretsManager"
    ] = None,
) -> None:
    """<p>Updates the properties of an existing connector destination.</p>

    Args:
        identifier: <p>The unique identifier of the connector destination to update.</p>
        description: <p>The new description to assign to the connector destination.</p>
        name: <p>The new display name to assign to the connector destination.</p>
        auth_type: <p>The new authentication type to use for the connector destination.</p>
        auth_config: <p>The updated authentication configuration details for the connector destination.</p>
        secrets_manager: <p>The updated AWS Secrets Manager configuration for the connector destination.</p>

    Raises:
        capo_iot_managed_integrations.errors.access_denied_exception.AccessDeniedException: <p>User is not authorized.</p>
        capo_iot_managed_integrations.errors.internal_server_exception.InternalServerException: <p>Internal error from the service that indicates an unexpected error or that the service is unavailable.</p>
        capo_iot_managed_integrations.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_iot_managed_integrations.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
        capo_iot_managed_integrations.errors.validation_exception.ValidationException: <p>A validation error occurred when performing the API request.</p>
        capo_iot_managed_integrations.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iot_managed_integrations.types.update_connector_destination_request.UpdateConnectorDestinationRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_iot_managed_integrations._operations.iot_managed_integrations.update_connector_destination

        (
            output,
            http_response,
        ) = await capo_iot_managed_integrations._operations.iot_managed_integrations.update_connector_destination.async_update_connector_destination(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateConnectorDestination")
    )
    input_: capo_iot_managed_integrations.types.update_connector_destination_request.UpdateConnectorDestinationRequest = {
        "identifier": identifier
    }
    if description is not None:
        input_["description"] = description
    if name is not None:
        input_["name"] = name
    if auth_type is not None:
        input_["auth_type"] = auth_type
    if auth_config is not None:
        input_["auth_config"] = auth_config
    if secrets_manager is not None:
        input_["secrets_manager"] = secrets_manager

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output