aws_on_demand_tasks
Creates, updates, deletes, gets or lists an aws_on_demand_tasks resource.
Overview
| Name | aws_on_demand_tasks |
| Type | Resource |
| Id | datadog.security.aws_on_demand_tasks |
Fields
The following fields are returned by SELECT queries:
- get_aws_on_demand_task
- list_aws_on_demand_tasks
OK.
| Name | Datatype | Description |
|---|---|---|
id | string | The UUID of the task. (example: 6d09294c-9ad9-42fd-a759-a0c1599b4828) |
attributes | object | Attributes for the AWS on demand task. |
type | string | The type of the on demand task. The value should always be aws_resource. (aws_resource) (default: aws_resource, example: aws_resource) |
| Name | Datatype | Description |
|---|---|---|
id | string | The UUID of the task. (example: 6d09294c-9ad9-42fd-a759-a0c1599b4828) |
attributes | object | Attributes for the AWS on demand task. |
type | string | The type of the on demand task. The value should always be aws_resource. (aws_resource) (default: aws_resource, example: aws_resource) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_aws_on_demand_task | select | task_id | Fetch the data of a specific on demand task. | |
list_aws_on_demand_tasks | select | Fetches the most recent 1000 AWS on demand tasks. | ||
create_aws_on_demand_task | insert | data | Trigger the scan of an AWS resource with a high priority. Agentless scanning must be activated for the AWS account containing the resource to scan. |
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 |
|---|---|---|
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. |
task_id | string | The UUID of the task. (example: 6d09294c-9ad9-42fd-a759-a0c1599b4828) |
SELECT examples
- get_aws_on_demand_task
- list_aws_on_demand_tasks
Fetch the data of a specific on demand task.
SELECT
id,
attributes,
type
FROM datadog.security.aws_on_demand_tasks
WHERE task_id = '{{ task_id }}' -- required
;
Fetches the most recent 1000 AWS on demand tasks.
SELECT
id,
attributes,
type
FROM datadog.security.aws_on_demand_tasks
;
INSERT examples
- create_aws_on_demand_task
- Manifest
Trigger the scan of an AWS resource with a high priority. Agentless scanning must be activated for the AWS account containing the resource to scan.
INSERT INTO datadog.security.aws_on_demand_tasks (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: aws_on_demand_tasks
props:
- name: data
description: |
Object for a single AWS on demand task.
value:
attributes:
arn: "{{ arn }}"
type: "{{ type }}"