Skip to content

list_changesets async

list_changesets(
    dataset_id: DatasetId,
    *,
    config_overrides: Optional[AsyncfinspacedataClientConfig] = None,
    max_results: Optional[ResultLimit] = None,
    next_token: Optional[PaginationToken] = None,
) -> ListChangesetsResponse

Lists the FinSpace Changesets for a Dataset.

Parameters:

  • dataset_id (DatasetId) –

    The unique identifier for the FinSpace Dataset to which the Changeset belongs.

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

    The maximum number of results per page.

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

    A token that indicates where a results page should begin.

Raises:

Source code in docs_src/capo_finspace_data/_services/async_finspacedata.py
async def list_changesets(
    self,
    dataset_id: "capo_finspace_data.types.dataset_id.DatasetId",
    *,
    config_overrides: Optional[AsyncfinspacedataClientConfig] = None,
    max_results: Optional[
        "capo_finspace_data.types.result_limit.ResultLimit"
    ] = None,
    next_token: Optional[
        "capo_finspace_data.types.pagination_token.PaginationToken"
    ] = None,
) -> "capo_finspace_data.types.list_changesets_response.ListChangesetsResponse":
    """<p>Lists the FinSpace Changesets for a Dataset.</p>

    Args:
        dataset_id: <p>The unique identifier for the FinSpace Dataset to which the Changeset belongs.</p>
        max_results: <p>The maximum number of results per page.</p>
        next_token: <p>A token that indicates where a results page should begin.</p>

    Raises:
        capo_finspace_data.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_finspace_data.errors.conflict_exception.ConflictException: <p>The request conflicts with an existing resource.</p>
        capo_finspace_data.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_finspace_data.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_finspace_data.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_finspace_data.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
        capo_finspace_data.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_finspace_data.types.list_changesets_request.ListChangesetsRequest]",
    ) -> AsyncOperationResponse[
        "capo_finspace_data.types.list_changesets_response.ListChangesetsResponse"
    ]:
        import capo_finspace_data._operations.aws_habanero_public_api.list_changesets

        (
            output,
            http_response,
        ) = await capo_finspace_data._operations.aws_habanero_public_api.list_changesets.async_list_changesets(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListChangesets")
    )
    input_: capo_finspace_data.types.list_changesets_request.ListChangesetsRequest = {
        "dataset_id": dataset_id
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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