Skip to content

update_discoverer

update_discoverer(
    discoverer_id: __string,
    *,
    config_overrides: Optional[schemasClientConfig] = None,
    description: Optional[__stringMin0Max256] = None,
    cross_account: Optional[__boolean] = None,
) -> UpdateDiscovererResponse

Updates the discoverer

Parameters:

  • description (Optional[__stringMin0Max256], default: None ) –

    The description of the discoverer to update.

  • discoverer_id (__string) –

    The ID of the discoverer.

  • cross_account (Optional[__boolean], default: None ) –

    Support discovery of schemas in events sent to the bus from another account. (default: true)

Raises:

Source code in docs_src/capo_schemas/_services/schemas.py
def update_discoverer(
    self,
    discoverer_id: "capo_schemas.types.__string.__string",
    *,
    config_overrides: Optional[schemasClientConfig] = None,
    description: Optional[
        "capo_schemas.types.__string_min0_max256.__stringMin0Max256"
    ] = None,
    cross_account: Optional["capo_schemas.types.__boolean.__boolean"] = None,
) -> "capo_schemas.types.update_discoverer_response.UpdateDiscovererResponse":
    """<p>Updates the discoverer</p>

    Args:
        description: <p>The description of the discoverer to update.</p>
        discoverer_id: <p>The ID of the discoverer.</p>
        cross_account: <p>Support discovery of schemas in events sent to the bus from another account. (default: true)</p>

    Raises:
        capo_schemas.errors.bad_request_exception.BadRequestException
        capo_schemas.errors.forbidden_exception.ForbiddenException
        capo_schemas.errors.internal_server_error_exception.InternalServerErrorException
        capo_schemas.errors.not_found_exception.NotFoundException
        capo_schemas.errors.service_unavailable_exception.ServiceUnavailableException
        capo_schemas.errors.unauthorized_exception.UnauthorizedException
        capo_schemas.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_schemas.types.update_discoverer_request.UpdateDiscovererRequest]",
    ) -> OperationResponse[
        "capo_schemas.types.update_discoverer_response.UpdateDiscovererResponse"
    ]:
        import capo_schemas._operations.schemas.update_discoverer

        output, http_response = (
            capo_schemas._operations.schemas.update_discoverer.update_discoverer(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateDiscoverer")
    )
    input_: capo_schemas.types.update_discoverer_request.UpdateDiscovererRequest = {
        "discoverer_id": discoverer_id
    }
    if description is not None:
        input_["description"] = description
    if cross_account is not None:
        input_["cross_account"] = cross_account

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output