BatchGetMembershipDatasourcesCommand

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

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { DetectiveClient, BatchGetMembershipDatasourcesCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, BatchGetMembershipDatasourcesCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const input = { // BatchGetMembershipDatasourcesRequest
  GraphArns: [ // GraphArnList // required
    "STRING_VALUE",
  ],
};
const command = new BatchGetMembershipDatasourcesCommand(input);
const response = await client.send(command);
// { // BatchGetMembershipDatasourcesResponse
//   MembershipDatasources: [ // MembershipDatasourcesList
//     { // MembershipDatasources
//       AccountId: "STRING_VALUE",
//       GraphArn: "STRING_VALUE",
//       DatasourcePackageIngestHistory: { // DatasourcePackageIngestHistory
//         "<keys>": { // LastIngestStateChangeDates
//           "<keys>": { // TimestampForCollection
//             Timestamp: new Date("TIMESTAMP"),
//           },
//         },
//       },
//     },
//   ],
//   UnprocessedGraphs: [ // UnprocessedGraphList
//     { // UnprocessedGraph
//       GraphArn: "STRING_VALUE",
//       Reason: "STRING_VALUE",
//     },
//   ],
// };

BatchGetMembershipDatasourcesCommand Input

Parameter
Type
Description
GraphArns
Required
string[] | undefined

The ARN of the behavior graph.

BatchGetMembershipDatasourcesCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
MembershipDatasources
MembershipDatasources[] | undefined

Details on the data source package history for an member of the behavior graph.

UnprocessedGraphs
UnprocessedGraph[] | undefined

Graphs that data source package information could not be retrieved for.

Throws

Name
Fault
Details
AccessDeniedException
client

The request issuer does not have permission to access this resource or perform this operation.

InternalServerException
server

The request was valid but failed because of a problem with the service.

ResourceNotFoundException
client

The request refers to a nonexistent resource.

ValidationException
client

The request parameters are invalid.

DetectiveServiceException
Base exception class for all service exceptions from Detective service.