Skip to main content

aws_scan_options

Creates, updates, deletes, gets or lists an aws_scan_options resource.

Overview

Nameaws_scan_options
TypeResource
Iddatadog.security.aws_scan_options

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the AWS account. (example: 184366314700)
attributesobjectAttributes for the AWS scan options.
typestringThe type of the resource. The value should always be aws_scan_options. (default: aws_scan_options, example: aws_scan_options)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_aws_scan_optionsselectaccount_id, regionFetches the Agentless scan options for an activated account.
list_aws_scan_optionsselectregionFetches the scan options configured for AWS accounts.
create_aws_scan_optionsinsertregion, data__dataActivate Agentless scan options for an AWS account.
update_aws_scan_optionsupdateaccount_id, region, data__dataUpdate the Agentless scan options for an activated account.
delete_aws_scan_optionsdeleteaccount_id, regionDelete Agentless scan options for an AWS account.

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
account_idstringThe ID of an AWS account. (example: 123456789012)
regionstring(default: datadoghq.com)

SELECT examples

Fetches the Agentless scan options for an activated account.

SELECT
id,
attributes,
type
FROM datadog.security.aws_scan_options
WHERE account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Activate Agentless scan options for an AWS account.

INSERT INTO datadog.security.aws_scan_options (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;

UPDATE examples

Update the Agentless scan options for an activated account.

UPDATE datadog.security.aws_scan_options
SET
data__data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required;

DELETE examples

Delete Agentless scan options for an AWS account.

DELETE FROM datadog.security.aws_scan_options
WHERE account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;