We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Resource Type Definition for AWS::Forecast::Dataset
Create Dataset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dataset(name: string, args: DatasetArgs, opts?: CustomResourceOptions);@overload
def Dataset(resource_name: str,
args: DatasetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Dataset(resource_name: str,
opts: Optional[ResourceOptions] = None,
dataset_type: Optional[DatasetType] = None,
domain: Optional[DatasetDomain] = None,
schema: Optional[SchemaPropertiesArgs] = None,
data_frequency: Optional[str] = None,
dataset_name: Optional[str] = None,
encryption_config: Optional[EncryptionConfigPropertiesArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewDataset(ctx *Context, name string, args DatasetArgs, opts ...ResourceOption) (*Dataset, error)public Dataset(string name, DatasetArgs args, CustomResourceOptions? opts = null)
public Dataset(String name, DatasetArgs args)
public Dataset(String name, DatasetArgs args, CustomResourceOptions options)
type: aws-native:forecast:Dataset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_forecast_dataset" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Dataset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Dataset resource accepts the following input properties:
- Dataset
Type Pulumi.Aws Native. Forecast. Dataset Type - The dataset type
- Domain
Pulumi.
Aws Native. Forecast. Dataset Domain - The domain associated with the dataset
- Schema
Pulumi.
Aws Native. Forecast. Inputs. Schema Properties - The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - Data
Frequency string - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- Dataset
Name string - A name for the dataset
- Encryption
Config Pulumi.Aws Native. Forecast. Inputs. Encryption Config Properties - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
-
List<Pulumi.
Aws Native. Inputs. Tag> An array of key-value pairs to apply to this resource.
For more information, see Tag .
- Dataset
Type DatasetType - The dataset type
- Domain
Dataset
Domain - The domain associated with the dataset
- Schema
Schema
Properties Args - The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - Data
Frequency string - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- Dataset
Name string - A name for the dataset
- Encryption
Config EncryptionConfig Properties Args - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
-
Tag
Args An array of key-value pairs to apply to this resource.
For more information, see Tag .
- dataset_
type "TARGET_TIME_SERIES" | "RELATED_TIME_SERIES" | "ITEM_METADATA" - The dataset type
- domain "RETAIL" | "CUSTOM" | "INVENTORY_PLANNING" | "EC2_CAPACITY" | "WORK_FORCE" | "WEB_TRAFFIC" | "METRICS"
- The domain associated with the dataset
- schema object
- The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - data_
frequency string - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- dataset_
name string - A name for the dataset
- encryption_
config object - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- list(object)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
- dataset
Type DatasetType - The dataset type
- domain
Dataset
Domain - The domain associated with the dataset
- schema
Schema
Properties - The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - data
Frequency String - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- dataset
Name String - A name for the dataset
- encryption
Config EncryptionConfig Properties - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- List<Tag>
An array of key-value pairs to apply to this resource.
For more information, see Tag .
- dataset
Type DatasetType - The dataset type
- domain
Dataset
Domain - The domain associated with the dataset
- schema
Schema
Properties - The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - data
Frequency string - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- dataset
Name string - A name for the dataset
- encryption
Config EncryptionConfig Properties - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- Tag[]
An array of key-value pairs to apply to this resource.
For more information, see Tag .
- dataset_
type DatasetType - The dataset type
- domain
Dataset
Domain - The domain associated with the dataset
- schema
Schema
Properties Args - The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - data_
frequency str - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- dataset_
name str - A name for the dataset
- encryption_
config EncryptionConfig Properties Args - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
-
Sequence[Tag
Args] An array of key-value pairs to apply to this resource.
For more information, see Tag .
- dataset
Type "TARGET_TIME_SERIES" | "RELATED_TIME_SERIES" | "ITEM_METADATA" - The dataset type
- domain "RETAIL" | "CUSTOM" | "INVENTORY_PLANNING" | "EC2_CAPACITY" | "WORK_FORCE" | "WEB_TRAFFIC" | "METRICS"
- The domain associated with the dataset
- schema Property Map
- The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
DomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types . - data
Frequency String - Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
- dataset
Name String - A name for the dataset
- encryption
Config Property Map - A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- List<Property Map>
An array of key-value pairs to apply to this resource.
For more information, see Tag .
Outputs
All input properties are implicitly available as output properties. Additionally, the Dataset resource produces the following output properties:
Look up Existing Dataset Resource
Get an existing Dataset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Dataset@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Datasetfunc GetDataset(ctx *Context, name string, id IDInput, state *DatasetState, opts ...ResourceOption) (*Dataset, error)public static Dataset Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Dataset get(String name, Output<String> id, CustomResourceOptions options)resources: existingDataset: type: aws-native:forecast:Dataset get: id: ${id}import {
to = aws-native_forecast_dataset.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state DatasetState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
DatasetAttributesItemProperties, DatasetAttributesItemPropertiesArgs
- Attribute
Name string - Name of the dataset field
- Attribute
Type Pulumi.Aws Native. Forecast. Dataset Attributes Item Properties Attribute Type - Data type of the field
- Attribute
Name string - Name of the dataset field
- Attribute
Type DatasetAttributes Item Properties Attribute Type - Data type of the field
- attribute_
name string - Name of the dataset field
- attribute_
type "string" | "integer" | "float" | "timestamp" | "geolocation" - Data type of the field
- attribute
Name String - Name of the dataset field
- attribute
Type DatasetAttributes Item Properties Attribute Type - Data type of the field
- attribute
Name string - Name of the dataset field
- attribute
Type DatasetAttributes Item Properties Attribute Type - Data type of the field
- attribute_
name str - Name of the dataset field
- attribute_
type DatasetAttributes Item Properties Attribute Type - Data type of the field
- attribute
Name String - Name of the dataset field
- attribute
Type "string" | "integer" | "float" | "timestamp" | "geolocation" - Data type of the field
DatasetAttributesItemPropertiesAttributeType
Data type of the field
| Name | Value |
|---|---|
| String | string |
| Integer | integer |
| Float | float |
| Timestamp | timestamp |
| Geolocation | geolocation |
| Name | Value |
|---|---|
| Dataset | string |
| Dataset | integer |
| Dataset | float |
| Dataset | timestamp |
| Dataset | geolocation |
| Value |
|---|
string |
integer |
float |
timestamp |
geolocation |
| Name | Value |
|---|---|
| String | string |
| Integer | integer |
| Float | float |
| Timestamp | timestamp |
| Geolocation | geolocation |
| Name | Value |
|---|---|
| String | string |
| Integer | integer |
| Float | float |
| Timestamp | timestamp |
| Geolocation | geolocation |
| Name | Value |
|---|---|
| STRING | string |
| INTEGER | integer |
| FLOAT | float |
| TIMESTAMP | timestamp |
| GEOLOCATION | geolocation |
| Value |
|---|
string |
integer |
float |
timestamp |
geolocation |
DatasetDomain
The domain associated with the dataset
| Name | Value |
|---|---|
| Retail | RETAIL |
| Custom | CUSTOM |
| Inventory | INVENTORY_PLANNING |
| Ec2Capacity | EC2_CAPACITY |
| Work | WORK_FORCE |
| Web | WEB_TRAFFIC |
| Metrics | METRICS |
| Name | Value |
|---|---|
| Dataset | RETAIL |
| Dataset | CUSTOM |
| Dataset | INVENTORY_PLANNING |
| Dataset | EC2_CAPACITY |
| Dataset | WORK_FORCE |
| Dataset | WEB_TRAFFIC |
| Dataset | METRICS |
| Value |
|---|
RETAIL |
CUSTOM |
INVENTORY_PLANNING |
EC2_CAPACITY |
WORK_FORCE |
WEB_TRAFFIC |
METRICS |
| Name | Value |
|---|---|
| Retail | RETAIL |
| Custom | CUSTOM |
| Inventory | INVENTORY_PLANNING |
| Ec2Capacity | EC2_CAPACITY |
| Work | WORK_FORCE |
| Web | WEB_TRAFFIC |
| Metrics | METRICS |
| Name | Value |
|---|---|
| Retail | RETAIL |
| Custom | CUSTOM |
| Inventory | INVENTORY_PLANNING |
| Ec2Capacity | EC2_CAPACITY |
| Work | WORK_FORCE |
| Web | WEB_TRAFFIC |
| Metrics | METRICS |
| Name | Value |
|---|---|
| RETAIL | RETAIL |
| CUSTOM | CUSTOM |
| INVENTORY_PLANNING | INVENTORY_PLANNING |
| EC2_CAPACITY | EC2_CAPACITY |
| WORK_FORCE | WORK_FORCE |
| WEB_TRAFFIC | WEB_TRAFFIC |
| METRICS | METRICS |
| Value |
|---|
RETAIL |
CUSTOM |
INVENTORY_PLANNING |
EC2_CAPACITY |
WORK_FORCE |
WEB_TRAFFIC |
METRICS |
DatasetType
The dataset type
| Name | Value |
|---|---|
| Target | TARGET_TIME_SERIES |
| Related | RELATED_TIME_SERIES |
| Item | ITEM_METADATA |
| Name | Value |
|---|---|
| Dataset | TARGET_TIME_SERIES |
| Dataset | RELATED_TIME_SERIES |
| Dataset | ITEM_METADATA |
| Value |
|---|
TARGET_TIME_SERIES |
RELATED_TIME_SERIES |
ITEM_METADATA |
| Name | Value |
|---|---|
| Target | TARGET_TIME_SERIES |
| Related | RELATED_TIME_SERIES |
| Item | ITEM_METADATA |
| Name | Value |
|---|---|
| Target | TARGET_TIME_SERIES |
| Related | RELATED_TIME_SERIES |
| Item | ITEM_METADATA |
| Name | Value |
|---|---|
| TARGET_TIME_SERIES | TARGET_TIME_SERIES |
| RELATED_TIME_SERIES | RELATED_TIME_SERIES |
| ITEM_METADATA | ITEM_METADATA |
| Value |
|---|
TARGET_TIME_SERIES |
RELATED_TIME_SERIES |
ITEM_METADATA |
EncryptionConfigProperties, EncryptionConfigPropertiesArgs
A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- kms_
key_ stringarn - The Amazon Resource Name (ARN) of the KMS key.
- role_
arn string The ARN of the IAM role that Amazon Forecast can assume to access the AWS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputExceptionerror.
- kms_
key_ strarn - The Amazon Resource Name (ARN) of the KMS key.
- role_
arn str The ARN of the IAM role that Amazon Forecast can assume to access the AWS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputExceptionerror.
SchemaProperties, SchemaPropertiesArgs
The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset Domain and DatasetType that you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types .
- Attributes
List<Pulumi.
Aws Native. Forecast. Inputs. Dataset Attributes Item Properties> - An array of attributes specifying the name and type of each field in a dataset.
- Attributes
[]Dataset
Attributes Item Properties - An array of attributes specifying the name and type of each field in a dataset.
- attributes list(object)
- An array of attributes specifying the name and type of each field in a dataset.
- attributes
List<Dataset
Attributes Item Properties> - An array of attributes specifying the name and type of each field in a dataset.
- attributes
Dataset
Attributes Item Properties[] - An array of attributes specifying the name and type of each field in a dataset.
- attributes
Sequence[Dataset
Attributes Item Properties] - An array of attributes specifying the name and type of each field in a dataset.
- attributes List<Property Map>
- An array of attributes specifying the name and type of each field in a dataset.
Tag, TagArgs
A set of tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi