- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
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
See BatchGetMembershipDatasourcesCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
GraphArns Required | string[] | undefined | The ARN of the behavior graph. |
BatchGetMembershipDatasourcesCommand Output
See BatchGetMembershipDatasourcesCommandOutput for details
Parameter | Type | Description |
---|
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 |
---|
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. |