Skip to content

update_trigger async

update_trigger(
    name: NameString,
    trigger_update: TriggerUpdate,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> UpdateTriggerResponse

Updates a trigger definition.

Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Amazon Web Services Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

Parameters:

  • name (NameString) –

    The name of the trigger to update.

  • trigger_update (TriggerUpdate) –

    The new values with which to update the trigger.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def update_trigger(
    self,
    name: "capo_glue.types.name_string.NameString",
    trigger_update: "capo_glue.types.trigger_update.TriggerUpdate",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.update_trigger_response.UpdateTriggerResponse":
    """<p>Updates a trigger definition.</p> <p>Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Amazon Web Services Secrets Manager or other secret management mechanism if you intend to keep them within the Job.</p>

    Args:
        name: <p>The name of the trigger to update.</p>
        trigger_update: <p>The new values with which to update the trigger.</p>

    Raises:
        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.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</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_trigger_request.UpdateTriggerRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.update_trigger_response.UpdateTriggerResponse"
    ]:
        import capo_glue._operations.aws_glue.update_trigger

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateTrigger")
    )
    input_: capo_glue.types.update_trigger_request.UpdateTriggerRequest = {
        "name": name,
        "trigger_update": trigger_update,
    }

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