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. (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_idFetches the Agentless scan options for an activated account.
list_aws_scan_optionsselectFetches the scan options configured for AWS accounts.
create_aws_scan_optionsinsertdataActivate Agentless scan options for an AWS account.
update_aws_scan_optionsupdateaccount_id, dataUpdate the Agentless scan options for an activated account.
delete_aws_scan_optionsdeleteaccount_idDelete 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)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

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
;

INSERT examples

Activate Agentless scan options for an AWS account.

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

UPDATE examples

Update the Agentless scan options for an activated account.

UPDATE datadog.security.aws_scan_options
SET
data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND 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
;