dataset_groups
Creates, updates, deletes, gets or lists a dataset_groups resource.
Overview
| Name | dataset_groups |
| Type | Resource |
| Id | aws.forecast.dataset_groups |
Fields
The following fields are returned by SELECT queries:
- describe_dataset_group
- list_dataset_groups
| Name | Datatype | Description |
|---|---|---|
creation_time | string (date-time) | When the dataset group was created. |
dataset_arns | array | An array of Amazon Resource Names (ARNs) of the datasets contained in the dataset group. |
dataset_group_arn | string | The ARN of the dataset group. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>) |
dataset_group_name | string | The name of the dataset group. (pattern: <code>^[a-zA-Z][a-zA-Z0-9_]*</code>) |
domain | string | The domain associated with the dataset group. (RETAIL, CUSTOM, INVENTORY_PLANNING, EC2_CAPACITY, WORK_FORCE, WEB_TRAFFIC, METRICS) |
last_modification_time | string (date-time) | When the dataset group was created or last updated from a call to the UpdateDatasetGroup operation. While the dataset group is being updated, LastModificationTime is the current time of the DescribeDatasetGroup call. |
status | string | The status of the dataset group. States include: ACTIVE CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED UPDATE_PENDING, UPDATE_IN_PROGRESS, UPDATE_FAILED The UPDATE states apply when you call the UpdateDatasetGroup operation. The Status of the dataset group must be ACTIVE before you can use the dataset group to create a predictor. |
| Name | Datatype | Description |
|---|---|---|
creation_time | string (date-time) | When the dataset group was created. |
dataset_group_arn | string | The Amazon Resource Name (ARN) of the dataset group. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>) |
dataset_group_name | string | The name of the dataset group. (pattern: <code>^[a-zA-Z][a-zA-Z0-9_]*</code>) |
last_modification_time | string (date-time) | When the dataset group was created or last updated from a call to the UpdateDatasetGroup operation. While the dataset group is being updated, LastModificationTime is the current time of the ListDatasetGroups call. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_dataset_group | select | region | Describes a dataset group created using the CreateDatasetGroup operation. In addition to listing the parameters provided in the CreateDatasetGroup request, this operation includes the following properties: DatasetArns - The datasets belonging to the group. CreationTime LastModificationTime Status | |
list_dataset_groups | select | region | Returns a list of dataset groups created using the CreateDatasetGroup operation. For each dataset group, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the dataset group ARN with the DescribeDatasetGroup operation. | |
create_dataset_group | insert | region, DatasetGroupName | Creates a dataset group, which holds a collection of related datasets. You can add datasets to the dataset group when you create the dataset group, or later by using the UpdateDatasetGroup operation. After creating a dataset group and adding datasets, you use the dataset group when you create a predictor. For more information, see Dataset groups. To get a list of all your datasets groups, use the ListDatasetGroups operation. The Status of a dataset group must be ACTIVE before you can use the dataset group to create a predictor. To get the status, use the DescribeDatasetGroup operation. | |
update_dataset_group | update | region, DatasetGroupArn, DatasetArns | Replaces the datasets in a dataset group with the specified datasets. The Status of the dataset group must be ACTIVE before you can use the dataset group to create a predictor. Use the DescribeDatasetGroup operation to get the status. | |
delete_dataset_group | delete | region | Deletes a dataset group created using the CreateDatasetGroup operation. You can only delete dataset groups that have a status of ACTIVE, CREATE_FAILED, or UPDATE_FAILED. To get the status, use the DescribeDatasetGroup operation. This operation deletes only the dataset group, not the datasets in the group. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_dataset_group
- list_dataset_groups
Describes a dataset group created using the CreateDatasetGroup operation. In addition to listing the parameters provided in the CreateDatasetGroup request, this operation includes the following properties: DatasetArns - The datasets belonging to the group. CreationTime LastModificationTime Status
SELECT
creation_time,
dataset_arns,
dataset_group_arn,
dataset_group_name,
domain,
last_modification_time,
status
FROM aws.forecast.dataset_groups
WHERE region = '{{ region }}' -- required
;
Returns a list of dataset groups created using the CreateDatasetGroup operation. For each dataset group, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the dataset group ARN with the DescribeDatasetGroup operation.
SELECT
creation_time,
dataset_group_arn,
dataset_group_name,
last_modification_time
FROM aws.forecast.dataset_groups
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_dataset_group
- Manifest
Creates a dataset group, which holds a collection of related datasets. You can add datasets to the dataset group when you create the dataset group, or later by using the UpdateDatasetGroup operation. After creating a dataset group and adding datasets, you use the dataset group when you create a predictor. For more information, see Dataset groups. To get a list of all your datasets groups, use the ListDatasetGroups operation. The Status of a dataset group must be ACTIVE before you can use the dataset group to create a predictor. To get the status, use the DescribeDatasetGroup operation.
INSERT INTO aws.forecast.dataset_groups (
DatasetGroupName,
Domain,
DatasetArns,
Tags,
region
)
SELECT
'{{ DatasetGroupName }}' /* required */,
'{{ Domain }}',
'{{ DatasetArns }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
dataset_group_arn
;
# Description fields are for documentation purposes
- name: dataset_groups
props:
- name: region
value: "{{ region }}"
description: Required parameter for the dataset_groups resource.
- name: DatasetGroupName
value: "{{ DatasetGroupName }}"
description: |
A name for the dataset group.
- name: Domain
value: "{{ Domain }}"
description: |
The domain associated with the dataset group. When you add a dataset to a dataset group, this value and the value specified for the Domain parameter of the CreateDataset operation must match. The Domain and DatasetType that you choose determine the fields that must be present in training data that you import to a dataset. For example, if you choose the RETAIL domain and TARGET_TIME_SERIES as the DatasetType, Amazon Forecast requires that item_id, timestamp, and demand fields are present in your data. For more information, see Dataset groups.
valid_values: ['RETAIL', 'CUSTOM', 'INVENTORY_PLANNING', 'EC2_CAPACITY', 'WORK_FORCE', 'WEB_TRAFFIC', 'METRICS']
- name: DatasetArns
value:
- "{{ DatasetArns }}"
description: |
An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.
- name: Tags
description: |
The optional metadata that you apply to the dataset group to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags: Maximum number of tags per resource - 50. For each resource, each tag key must be unique, and each tag key can have only one value. Maximum key length - 128 Unicode characters in UTF-8. Maximum value length - 256 Unicode characters in UTF-8. If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case sensitive. Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
value:
- Key: "{{ Key }}"
Value: "{{ Value }}"
UPDATE examples
- update_dataset_group
Replaces the datasets in a dataset group with the specified datasets. The Status of the dataset group must be ACTIVE before you can use the dataset group to create a predictor. Use the DescribeDatasetGroup operation to get the status.
UPDATE aws.forecast.dataset_groups
SET
DatasetGroupArn = '{{ DatasetGroupArn }}',
DatasetArns = '{{ DatasetArns }}'
WHERE
region = '{{ region }}' --required
AND DatasetGroupArn = '{{ DatasetGroupArn }}' --required
AND DatasetArns = '{{ DatasetArns }}' --required;
DELETE examples
- delete_dataset_group
Deletes a dataset group created using the CreateDatasetGroup operation. You can only delete dataset groups that have a status of ACTIVE, CREATE_FAILED, or UPDATE_FAILED. To get the status, use the DescribeDatasetGroup operation. This operation deletes only the dataset group, not the datasets in the group.
DELETE FROM aws.forecast.dataset_groups
WHERE region = '{{ region }}' --required
;