Skip to content

get_data_view async

get_data_view(
    data_view_id: DataViewId,
    dataset_id: DatasetId,
    *,
    config_overrides: Optional[AsyncfinspacedataClientConfig] = None,
) -> GetDataViewResponse

Gets information about a Dataview.

Parameters:

  • data_view_id (DataViewId) –

    The unique identifier for the Dataview.

  • dataset_id (DatasetId) –

    The unique identifier for the Dataset used in the Dataview.

Raises:

Source code in docs_src/capo_finspace_data/_services/async_finspacedata.py
async def get_data_view(
    self,
    data_view_id: "capo_finspace_data.types.data_view_id.DataViewId",
    dataset_id: "capo_finspace_data.types.dataset_id.DatasetId",
    *,
    config_overrides: Optional[AsyncfinspacedataClientConfig] = None,
) -> "capo_finspace_data.types.get_data_view_response.GetDataViewResponse":
    """<p>Gets information about a Dataview.</p>

    Args:
        data_view_id: <p>The unique identifier for the Dataview.</p>
        dataset_id: <p>The unique identifier for the Dataset used in the Dataview.</p>

    Raises:
        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.get_data_view_request.GetDataViewRequest]",
    ) -> AsyncOperationResponse[
        "capo_finspace_data.types.get_data_view_response.GetDataViewResponse"
    ]:
        import capo_finspace_data._operations.aws_habanero_public_api.get_data_view

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDataView")
    )
    input_: capo_finspace_data.types.get_data_view_request.GetDataViewRequest = {
        "data_view_id": data_view_id,
        "dataset_id": dataset_id,
    }

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