Skip to content

list_iterable_forms

list_iterable_forms(
    asset_identifier: AssetId,
    iterable_form_name: IterableFormName,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    max_results: Optional[PageSize] = None,
    next_token: Optional[Token] = None,
) -> ListIterableFormsResponse

Lists the items in an iterable form on an asset in Glue Data Catalog. For example, lists the columns of a table asset.

Parameters:

  • asset_identifier (AssetId) –

    The unique identifier of the asset.

  • iterable_form_name (IterableFormName) –

    The name of the iterable form to list items from.

  • max_results (Optional[PageSize], default: None ) –

    The maximum number of results to return in the response.

  • next_token (Optional[Token], default: None ) –

    A continuation token, if this is a continuation call.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def list_iterable_forms(
    self,
    asset_identifier: "capo_glue.types.asset_id.AssetId",
    iterable_form_name: "capo_glue.types.iterable_form_name.IterableFormName",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    max_results: Optional["capo_glue.types.page_size.PageSize"] = None,
    next_token: Optional["capo_glue.types.token.Token"] = None,
) -> "capo_glue.types.list_iterable_forms_response.ListIterableFormsResponse":
    """<p>Lists the items in an iterable form on an asset in Glue Data Catalog. For example, lists the columns of a table asset.</p>

    Args:
        asset_identifier: <p>The unique identifier of the asset.</p>
        iterable_form_name: <p>The name of the iterable form to list items from.</p>
        max_results: <p>The maximum number of results to return in the response.</p>
        next_token: <p>A continuation token, if this is a continuation call.</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.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.list_iterable_forms_request.ListIterableFormsRequest]",
    ) -> OperationResponse[
        "capo_glue.types.list_iterable_forms_response.ListIterableFormsResponse"
    ]:
        import capo_glue._operations.aws_glue.list_iterable_forms

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListIterableForms")
    )
    input_: capo_glue.types.list_iterable_forms_request.ListIterableFormsRequest = {
        "asset_identifier": asset_identifier,
        "iterable_form_name": iterable_form_name,
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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