Skip to content

update_registry async

update_registry(
    registry_id: RegistryId,
    description: DescriptionString,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> UpdateRegistryResponse

Updates an existing registry which is used to hold a collection of schemas. The updated properties relate to the registry, and do not modify any of the schemas within the registry.

Parameters:

  • registry_id (RegistryId) –

    This is a wrapper structure that may contain the registry name and Amazon Resource Name (ARN).

  • description (DescriptionString) –

    A description of the registry. If description is not provided, this field will not be updated.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def update_registry(
    self,
    registry_id: "capo_glue.types.registry_id.RegistryId",
    description: "capo_glue.types.description_string.DescriptionString",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.update_registry_response.UpdateRegistryResponse":
    """<p>Updates an existing registry which is used to hold a collection of schemas. The updated properties relate to the registry, and do not modify any of the schemas within the registry. </p>

    Args:
        registry_id: <p>This is a wrapper structure that may contain the registry name and Amazon Resource Name (ARN).</p>
        description: <p>A description of the registry. If description is not provided, this field will not be updated.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Two processes are trying to modify a resource simultaneously.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.update_registry_input.UpdateRegistryInput]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.update_registry_response.UpdateRegistryResponse"
    ]:
        import capo_glue._operations.aws_glue.update_registry

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.update_registry.async_update_registry(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateRegistry")
    )
    input_: capo_glue.types.update_registry_input.UpdateRegistryInput = {
        "registry_id": registry_id,
        "description": description,
    }

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