- 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.
UpdateDatasourcePackagesCommand
Starts a data source package for the Detective behavior graph.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DetectiveClient, UpdateDatasourcePackagesCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, UpdateDatasourcePackagesCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const input = { // UpdateDatasourcePackagesRequest
GraphArn: "STRING_VALUE", // required
DatasourcePackages: [ // DatasourcePackageList // required
"DETECTIVE_CORE" || "EKS_AUDIT" || "ASFF_SECURITYHUB_FINDING",
],
};
const command = new UpdateDatasourcePackagesCommand(input);
const response = await client.send(command);
// {};
UpdateDatasourcePackagesCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DatasourcePackages Required | DatasourcePackage[] | undefined | The data source package to start for the behavior graph. |
GraphArn Required | string | undefined | The ARN of the behavior graph. |
UpdateDatasourcePackagesCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
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. |
ServiceQuotaExceededException | client | This request cannot be completed for one of the following reasons.
|
ValidationException | client | The request parameters are invalid. |
DetectiveServiceException | Base exception class for all service exceptions from Detective service. |