Skip to content

batch_get_user_access_tasks async

batch_get_user_access_tasks(
    app_bundle_identifier: Identifier,
    task_id_list: TaskIdList,
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
) -> BatchGetUserAccessTasksResponse

Gets user access details in a batch request.

This action polls data from the tasks that are kicked off by the StartUserAccessTasks action.

Parameters:

  • app_bundle_identifier (Identifier) –

    The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.

  • task_id_list (TaskIdList) –

    The tasks IDs to use for the request.

Raises:

Source code in docs_src/capo_appfabric/_services/async_app_fabric.py
async def batch_get_user_access_tasks(
    self,
    app_bundle_identifier: "capo_appfabric.types.identifier.Identifier",
    task_id_list: "capo_appfabric.types.task_id_list.TaskIdList",
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
) -> "capo_appfabric.types.batch_get_user_access_tasks_response.BatchGetUserAccessTasksResponse":
    """<p>Gets user access details in a batch request.</p> <p>This action polls data from the tasks that are kicked off by the <code>StartUserAccessTasks</code> action.</p>

    Args:
        app_bundle_identifier: <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
        task_id_list: <p>The tasks IDs to use for the request.</p>

    Raises:
        capo_appfabric.errors.access_denied_exception.AccessDeniedException: <p>You are not authorized to perform this operation.</p>
        capo_appfabric.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
        capo_appfabric.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_appfabric.errors.throttling_exception.ThrottlingException: <p>The request rate exceeds the limit.</p>
        capo_appfabric.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_appfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appfabric.types.batch_get_user_access_tasks_request.BatchGetUserAccessTasksRequest]",
    ) -> AsyncOperationResponse[
        "capo_appfabric.types.batch_get_user_access_tasks_response.BatchGetUserAccessTasksResponse"
    ]:
        import capo_appfabric._operations.fabric_front_end_service.batch_get_user_access_tasks

        (
            output,
            http_response,
        ) = await capo_appfabric._operations.fabric_front_end_service.batch_get_user_access_tasks.async_batch_get_user_access_tasks(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_appfabric.types.batch_get_user_access_tasks_response.BatchGetUserAccessTasksResponse",
    ) -> dict[str, Any]:
        import capo_appfabric.types.batch_get_user_access_tasks_response

        return capo_appfabric.types.batch_get_user_access_tasks_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("BatchGetUserAccessTasks", redact_output=_redact_output),
    )
    input_: capo_appfabric.types.batch_get_user_access_tasks_request.BatchGetUserAccessTasksRequest = {
        "app_bundle_identifier": app_bundle_identifier,
        "task_id_list": task_id_list,
    }

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