Skip to content

batch_get_membership_datasources

batch_get_membership_datasources(
    graph_arns: GraphArnList,
    *,
    config_overrides: Optional[DetectiveClientConfig] = None,
) -> BatchGetMembershipDatasourcesResponse

Gets information on the data source package history for an account.

Parameters:

  • graph_arns (GraphArnList) –

    The ARN of the behavior graph.

Raises:

Source code in docs_src/capo_detective/_services/detective.py
def batch_get_membership_datasources(
    self,
    graph_arns: "capo_detective.types.graph_arn_list.GraphArnList",
    *,
    config_overrides: Optional[DetectiveClientConfig] = None,
) -> "capo_detective.types.batch_get_membership_datasources_response.BatchGetMembershipDatasourcesResponse":
    """<p>Gets information on the data source package history for an account.</p>

    Args:
        graph_arns: <p>The ARN of the behavior graph.</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.
    """

    def _handler(
        req: "OperationRequest[capo_detective.types.batch_get_membership_datasources_request.BatchGetMembershipDatasourcesRequest]",
    ) -> OperationResponse[
        "capo_detective.types.batch_get_membership_datasources_response.BatchGetMembershipDatasourcesResponse"
    ]:
        import capo_detective._operations.amazon_detective.batch_get_membership_datasources

        output, http_response = (
            capo_detective._operations.amazon_detective.batch_get_membership_datasources.batch_get_membership_datasources(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetMembershipDatasources")
    )
    input_: capo_detective.types.batch_get_membership_datasources_request.BatchGetMembershipDatasourcesRequest = {
        "graph_arns": graph_arns
    }

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