Skip to content

update_glossary

update_glossary(
    identifier: GlossaryId,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    name: Optional[GlossaryName] = None,
    description: Optional[MetadataDescription] = None,
    client_token: Optional[HashString] = None,
) -> UpdateGlossaryResponse

Updates a business glossary in Glue Data Catalog.

Parameters:

  • identifier (GlossaryId) –

    The unique identifier of the glossary to update.

  • name (Optional[GlossaryName], default: None ) –

    The updated name of the glossary.

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

    The updated description of the glossary.

  • client_token (Optional[HashString], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def update_glossary(
    self,
    identifier: "capo_glue.types.glossary_id.GlossaryId",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    name: Optional["capo_glue.types.glossary_name.GlossaryName"] = None,
    description: Optional[
        "capo_glue.types.metadata_description.MetadataDescription"
    ] = None,
    client_token: Optional["capo_glue.types.hash_string.HashString"] = None,
) -> "capo_glue.types.update_glossary_response.UpdateGlossaryResponse":
    """<p>Updates a business glossary in Glue Data Catalog.</p>

    Args:
        identifier: <p>The unique identifier of the glossary to update.</p>
        name: <p>The updated name of the glossary.</p>
        description: <p>The updated description of the glossary.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.already_exists_exception.AlreadyExistsException: <p>A resource to be created or added already exists.</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.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.update_glossary_request.UpdateGlossaryRequest]",
    ) -> OperationResponse[
        "capo_glue.types.update_glossary_response.UpdateGlossaryResponse"
    ]:
        import capo_glue._operations.aws_glue.update_glossary

        output, http_response = (
            capo_glue._operations.aws_glue.update_glossary.update_glossary(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateGlossary")
    )
    input_: capo_glue.types.update_glossary_request.UpdateGlossaryRequest = {
        "identifier": identifier
    }
    if name is not None:
        input_["name"] = name
    if description is not None:
        input_["description"] = description
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

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