Skip to content

update_glossary_term

update_glossary_term(
    identifier: GlossaryTermId,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    name: Optional[GlossaryTermName] = None,
    short_description: Optional[GlossaryShortDescription] = None,
    long_description: Optional[GlossaryLongDescription] = None,
    client_token: Optional[HashString] = None,
) -> UpdateGlossaryTermResponse

Updates a glossary term in Glue Data Catalog.

Parameters:

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def update_glossary_term(
    self,
    identifier: "capo_glue.types.glossary_term_id.GlossaryTermId",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    name: Optional["capo_glue.types.glossary_term_name.GlossaryTermName"] = None,
    short_description: Optional[
        "capo_glue.types.glossary_short_description.GlossaryShortDescription"
    ] = None,
    long_description: Optional[
        "capo_glue.types.glossary_long_description.GlossaryLongDescription"
    ] = None,
    client_token: Optional["capo_glue.types.hash_string.HashString"] = None,
) -> "capo_glue.types.update_glossary_term_response.UpdateGlossaryTermResponse":
    """<p>Updates a glossary term in Glue Data Catalog.</p>

    Args:
        identifier: <p>The unique identifier of the glossary term to update.</p>
        name: <p>The updated name of the glossary term.</p>
        short_description: <p>The updated short description of the glossary term.</p>
        long_description: <p>The updated long description of the glossary term.</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_term_request.UpdateGlossaryTermRequest]",
    ) -> OperationResponse[
        "capo_glue.types.update_glossary_term_response.UpdateGlossaryTermResponse"
    ]:
        import capo_glue._operations.aws_glue.update_glossary_term

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateGlossaryTerm")
    )
    input_: capo_glue.types.update_glossary_term_request.UpdateGlossaryTermRequest = {
        "identifier": identifier
    }
    if name is not None:
        input_["name"] = name
    if short_description is not None:
        input_["short_description"] = short_description
    if long_description is not None:
        input_["long_description"] = long_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