aws_scan_options
Creates, updates, deletes, gets or lists an aws_scan_options resource.
Overview
| Name | aws_scan_options |
| Type | Resource |
| Id | datadog.security.aws_scan_options |
Fields
The following fields are returned by SELECT queries:
- get_aws_scan_options
- list_aws_scan_options
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the AWS account. (example: 184366314700) |
attributes | object | Attributes for the AWS scan options. |
type | string | The type of the resource. The value should always be aws_scan_options. (aws_scan_options) (default: aws_scan_options, example: aws_scan_options) |
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the AWS account. (example: 184366314700) |
attributes | object | Attributes for the AWS scan options. |
type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_aws_scan_options | select | account_id | Fetches the Agentless scan options for an activated account. | |
list_aws_scan_options | select | Fetches the scan options configured for AWS accounts. | ||
create_aws_scan_options | insert | data | Activate Agentless scan options for an AWS account. | |
update_aws_scan_options | update | account_id, data | Update the Agentless scan options for an activated account. | |
delete_aws_scan_options | delete | account_id | Delete 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The ID of an AWS account. (example: 123456789012) |
site | string | The 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
- get_aws_scan_options
- list_aws_scan_options
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
;
Fetches the scan options configured for AWS accounts.
SELECT
id,
attributes,
type
FROM datadog.security.aws_scan_options
;
INSERT examples
- create_aws_scan_options
- Manifest
Activate Agentless scan options for an AWS account.
INSERT INTO datadog.security.aws_scan_options (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: aws_scan_options
props:
- name: data
description: |
Object for the scan options of a single AWS account.
value:
attributes:
compliance_host: {{ compliance_host }}
lambda: {{ lambda }}
sensitive_data: {{ sensitive_data }}
vuln_containers_os: {{ vuln_containers_os }}
vuln_host_os: {{ vuln_host_os }}
id: "{{ id }}"
type: "{{ type }}"
UPDATE examples
- update_aws_scan_options
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_aws_scan_options
Delete Agentless scan options for an AWS account.
DELETE FROM datadog.security.aws_scan_options
WHERE account_id = '{{ account_id }}' --required
;