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
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
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

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.

ServiceQuotaExceededException
client

This request cannot be completed for one of the following reasons.

  • This request cannot be completed if it would cause the number of member accounts in the behavior graph to exceed the maximum allowed. A behavior graph cannot have more than 1,200 member accounts.

  • This request cannot be completed if the current volume ingested is above the limit of 10 TB per day. Detective will not allow you to add additional member accounts.

ValidationException
client

The request parameters are invalid.

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