Skip to content

batch_get_graph_member_datasources async

batch_get_graph_member_datasources(
    graph_arn: GraphArn,
    account_ids: AccountIdExtendedList,
    *,
    config_overrides: Optional[AsyncDetectiveClientConfig] = None,
) -> BatchGetGraphMemberDatasourcesResponse

Gets data source package information for the behavior graph.

Parameters:

  • graph_arn (GraphArn) –

    The ARN of the behavior graph.

  • account_ids (AccountIdExtendedList) –

    The list of Amazon Web Services accounts to get data source package information on.

Raises:

Source code in docs_src/capo_detective/_services/async_detective.py
async def batch_get_graph_member_datasources(
    self,
    graph_arn: "capo_detective.types.graph_arn.GraphArn",
    account_ids: "capo_detective.types.account_id_extended_list.AccountIdExtendedList",
    *,
    config_overrides: Optional[AsyncDetectiveClientConfig] = None,
) -> "capo_detective.types.batch_get_graph_member_datasources_response.BatchGetGraphMemberDatasourcesResponse":
    """<p>Gets data source package information for the behavior graph.</p>

    Args:
        graph_arn: <p>The ARN of the behavior graph.</p>
        account_ids: <p>The list of Amazon Web Services accounts to get data source package information on.</p>

    Raises:
        capo_detective.errors.access_denied_exception.AccessDeniedException: <p>The request issuer does not have permission to access this resource or perform this operation.</p>
        capo_detective.errors.internal_server_exception.InternalServerException: <p>The request was valid but failed because of a problem with the service.</p>
        capo_detective.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request refers to a nonexistent resource.</p>
        capo_detective.errors.validation_exception.ValidationException: <p>The request parameters are invalid.</p>
        capo_detective.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_detective.types.batch_get_graph_member_datasources_request.BatchGetGraphMemberDatasourcesRequest]",
    ) -> AsyncOperationResponse[
        "capo_detective.types.batch_get_graph_member_datasources_response.BatchGetGraphMemberDatasourcesResponse"
    ]:
        import capo_detective._operations.amazon_detective.batch_get_graph_member_datasources

        (
            output,
            http_response,
        ) = await capo_detective._operations.amazon_detective.batch_get_graph_member_datasources.async_batch_get_graph_member_datasources(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetGraphMemberDatasources")
    )
    input_: capo_detective.types.batch_get_graph_member_datasources_request.BatchGetGraphMemberDatasourcesRequest = {
        "graph_arn": graph_arn,
        "account_ids": account_ids,
    }

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