Skip to content

batch_get_iterable_forms async

batch_get_iterable_forms(
    asset_identifier: AssetId,
    iterable_form_name: IterableFormName,
    item_identifiers: ItemIdentifierList,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> BatchGetIterableFormsResponse

Retrieves multiple items from an iterable form on an asset in Glue Data Catalog in a single request.

Parameters:

  • asset_identifier (AssetId) –

    The unique identifier of the asset.

  • iterable_form_name (IterableFormName) –

    The name of the iterable form to retrieve items from.

  • item_identifiers (ItemIdentifierList) –

    The list of item identifiers to retrieve. Each identifier can be an item ID or item name.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def batch_get_iterable_forms(
    self,
    asset_identifier: "capo_glue.types.asset_id.AssetId",
    iterable_form_name: "capo_glue.types.iterable_form_name.IterableFormName",
    item_identifiers: "capo_glue.types.item_identifier_list.ItemIdentifierList",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.batch_get_iterable_forms_response.BatchGetIterableFormsResponse":
    """<p>Retrieves multiple items from an iterable form on an asset in Glue Data Catalog in a single request.</p>

    Args:
        asset_identifier: <p>The unique identifier of the asset.</p>
        iterable_form_name: <p>The name of the iterable form to retrieve items from.</p>
        item_identifiers: <p>The list of item identifiers to retrieve. Each identifier can be an item ID or item name.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.batch_get_iterable_forms_request.BatchGetIterableFormsRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.batch_get_iterable_forms_response.BatchGetIterableFormsResponse"
    ]:
        import capo_glue._operations.aws_glue.batch_get_iterable_forms

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetIterableForms")
    )
    input_: capo_glue.types.batch_get_iterable_forms_request.BatchGetIterableFormsRequest = {
        "asset_identifier": asset_identifier,
        "iterable_form_name": iterable_form_name,
        "item_identifiers": item_identifiers,
    }

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