Skip to content

batch_get_triggers async

batch_get_triggers(
    trigger_names: TriggerNameList,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> BatchGetTriggersResponse

Returns a list of resource metadata for a given list of trigger names. After calling the ListTriggers operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

Parameters:

  • trigger_names (TriggerNameList) –

    A list of trigger names, which may be the names returned from the ListTriggers operation.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def batch_get_triggers(
    self,
    trigger_names: "capo_glue.types.trigger_name_list.TriggerNameList",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.batch_get_triggers_response.BatchGetTriggersResponse":
    """<p>Returns a list of resource metadata for a given list of trigger names. After calling the <code>ListTriggers</code> operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.</p>

    Args:
        trigger_names: <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</p>

    Raises:
        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.batch_get_triggers_request.BatchGetTriggersRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.batch_get_triggers_response.BatchGetTriggersResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_triggers

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetTriggers")
    )
    input_: capo_glue.types.batch_get_triggers_request.BatchGetTriggersRequest = {
        "trigger_names": trigger_names
    }

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