Skip to main content

datasource_packages

Creates, updates, deletes, gets or lists a datasource_packages resource.

Overview

Namedatasource_packages
TypeResource
Idaws.detective.datasource_packages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
datasource_packagesobjectDetails on the data source packages active in the behavior graph.
next_tokenstringFor requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_datasource_packagesselectregionLists data source packages in the behavior graph.
update_datasource_packagesupdateregion, GraphArn, DatasourcePackagesStarts a data source package for the Detective behavior graph.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists data source packages in the behavior graph.

SELECT
datasource_packages,
next_token
FROM aws.detective.datasource_packages
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Starts a data source package for the Detective behavior graph.

UPDATE aws.detective.datasource_packages
SET
GraphArn = '{{ GraphArn }}',
DatasourcePackages = '{{ DatasourcePackages }}'
WHERE
region = '{{ region }}' --required
AND GraphArn = '{{ GraphArn }}' --required
AND DatasourcePackages = '{{ DatasourcePackages }}' --required;