1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. forecast
  6. Dataset

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
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:

    DatasetType Pulumi.AwsNative.Forecast.DatasetType
    The dataset type
    Domain Pulumi.AwsNative.Forecast.DatasetDomain
    The domain associated with the dataset
    Schema Pulumi.AwsNative.Forecast.Inputs.SchemaProperties
    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 .
    DataFrequency string
    Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
    DatasetName string
    A name for the dataset
    EncryptionConfig Pulumi.AwsNative.Forecast.Inputs.EncryptionConfigProperties
    A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
    Tags List<Pulumi.AwsNative.Inputs.Tag>

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    DatasetType DatasetType
    The dataset type
    Domain DatasetDomain
    The domain associated with the dataset
    Schema 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 .
    DataFrequency string
    Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
    DatasetName string
    A name for the dataset
    EncryptionConfig EncryptionConfigPropertiesArgs
    A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
    Tags TagArgs

    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 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 .
    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.
    tags list(object)

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    datasetType DatasetType
    The dataset type
    domain DatasetDomain
    The domain associated with the dataset
    schema SchemaProperties
    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 .
    dataFrequency String
    Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
    datasetName String
    A name for the dataset
    encryptionConfig EncryptionConfigProperties
    A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
    tags List<Tag>

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    datasetType DatasetType
    The dataset type
    domain DatasetDomain
    The domain associated with the dataset
    schema SchemaProperties
    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 .
    dataFrequency string
    Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
    datasetName string
    A name for the dataset
    encryptionConfig EncryptionConfigProperties
    A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
    tags Tag[]

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    dataset_type DatasetType
    The dataset type
    domain DatasetDomain
    The domain associated with the dataset
    schema 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 .
    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 EncryptionConfigPropertiesArgs
    A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
    tags Sequence[TagArgs]

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    datasetType "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 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 .
    dataFrequency String
    Frequency of data collection. This parameter is required for RELATED_TIME_SERIES
    datasetName String
    A name for the dataset
    encryptionConfig 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.
    tags 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:

    Arn string
    The Amazon Resource Name (ARN) of the dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) of the dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the dataset.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the dataset.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the dataset.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) of the dataset.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the dataset.
    id String
    The provider-assigned unique ID for this managed resource.

    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) -> Dataset
    func 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

    AttributeName string
    Name of the dataset field
    AttributeType DatasetAttributesItemPropertiesAttributeType
    Data type of the field
    attributeName String
    Name of the dataset field
    attributeType DatasetAttributesItemPropertiesAttributeType
    Data type of the field
    attributeName string
    Name of the dataset field
    attributeType DatasetAttributesItemPropertiesAttributeType
    Data type of the field
    attribute_name str
    Name of the dataset field
    attribute_type DatasetAttributesItemPropertiesAttributeType
    Data type of the field

    DatasetAttributesItemPropertiesAttributeType

    Data type of the field

    NameValue
    Stringstring
    Integerinteger
    Floatfloat
    Timestamptimestamp
    Geolocationgeolocation
    NameValue
    DatasetAttributesItemPropertiesAttributeTypeStringstring
    DatasetAttributesItemPropertiesAttributeTypeIntegerinteger
    DatasetAttributesItemPropertiesAttributeTypeFloatfloat
    DatasetAttributesItemPropertiesAttributeTypeTimestamptimestamp
    DatasetAttributesItemPropertiesAttributeTypeGeolocationgeolocation
    Value
    string
    integer
    float
    timestamp
    geolocation
    NameValue
    Stringstring
    Integerinteger
    Floatfloat
    Timestamptimestamp
    Geolocationgeolocation
    NameValue
    Stringstring
    Integerinteger
    Floatfloat
    Timestamptimestamp
    Geolocationgeolocation
    NameValue
    STRINGstring
    INTEGERinteger
    FLOATfloat
    TIMESTAMPtimestamp
    GEOLOCATIONgeolocation
    Value
    string
    integer
    float
    timestamp
    geolocation

    DatasetDomain

    The domain associated with the dataset

    NameValue
    RetailRETAIL
    CustomCUSTOM
    InventoryPlanningINVENTORY_PLANNING
    Ec2CapacityEC2_CAPACITY
    WorkForceWORK_FORCE
    WebTrafficWEB_TRAFFIC
    MetricsMETRICS
    NameValue
    DatasetDomainRetailRETAIL
    DatasetDomainCustomCUSTOM
    DatasetDomainInventoryPlanningINVENTORY_PLANNING
    DatasetDomainEc2CapacityEC2_CAPACITY
    DatasetDomainWorkForceWORK_FORCE
    DatasetDomainWebTrafficWEB_TRAFFIC
    DatasetDomainMetricsMETRICS
    Value
    RETAIL
    CUSTOM
    INVENTORY_PLANNING
    EC2_CAPACITY
    WORK_FORCE
    WEB_TRAFFIC
    METRICS
    NameValue
    RetailRETAIL
    CustomCUSTOM
    InventoryPlanningINVENTORY_PLANNING
    Ec2CapacityEC2_CAPACITY
    WorkForceWORK_FORCE
    WebTrafficWEB_TRAFFIC
    MetricsMETRICS
    NameValue
    RetailRETAIL
    CustomCUSTOM
    InventoryPlanningINVENTORY_PLANNING
    Ec2CapacityEC2_CAPACITY
    WorkForceWORK_FORCE
    WebTrafficWEB_TRAFFIC
    MetricsMETRICS
    NameValue
    RETAILRETAIL
    CUSTOMCUSTOM
    INVENTORY_PLANNINGINVENTORY_PLANNING
    EC2_CAPACITYEC2_CAPACITY
    WORK_FORCEWORK_FORCE
    WEB_TRAFFICWEB_TRAFFIC
    METRICSMETRICS
    Value
    RETAIL
    CUSTOM
    INVENTORY_PLANNING
    EC2_CAPACITY
    WORK_FORCE
    WEB_TRAFFIC
    METRICS

    DatasetType

    The dataset type

    NameValue
    TargetTimeSeriesTARGET_TIME_SERIES
    RelatedTimeSeriesRELATED_TIME_SERIES
    ItemMetadataITEM_METADATA
    NameValue
    DatasetTypeTargetTimeSeriesTARGET_TIME_SERIES
    DatasetTypeRelatedTimeSeriesRELATED_TIME_SERIES
    DatasetTypeItemMetadataITEM_METADATA
    Value
    TARGET_TIME_SERIES
    RELATED_TIME_SERIES
    ITEM_METADATA
    NameValue
    TargetTimeSeriesTARGET_TIME_SERIES
    RelatedTimeSeriesRELATED_TIME_SERIES
    ItemMetadataITEM_METADATA
    NameValue
    TargetTimeSeriesTARGET_TIME_SERIES
    RelatedTimeSeriesRELATED_TIME_SERIES
    ItemMetadataITEM_METADATA
    NameValue
    TARGET_TIME_SERIESTARGET_TIME_SERIES
    RELATED_TIME_SERIESRELATED_TIME_SERIES
    ITEM_METADATAITEM_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.

    KmsKeyArn string
    The Amazon Resource Name (ARN) of the KMS key.
    RoleArn 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 InvalidInputException error.

    KmsKeyArn string
    The Amazon Resource Name (ARN) of the KMS key.
    RoleArn 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 InvalidInputException error.

    kms_key_arn string
    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 InvalidInputException error.

    kmsKeyArn String
    The Amazon Resource Name (ARN) of the KMS key.
    roleArn 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 InvalidInputException error.

    kmsKeyArn string
    The Amazon Resource Name (ARN) of the KMS key.
    roleArn 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 InvalidInputException error.

    kms_key_arn str
    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 InvalidInputException error.

    kmsKeyArn String
    The Amazon Resource Name (ARN) of the KMS key.
    roleArn 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 InvalidInputException error.

    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.AwsNative.Forecast.Inputs.DatasetAttributesItemProperties>
    An array of attributes specifying the name and type of each field in a dataset.
    Attributes []DatasetAttributesItemProperties
    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<DatasetAttributesItemProperties>
    An array of attributes specifying the name and type of each field in a dataset.
    attributes DatasetAttributesItemProperties[]
    An array of attributes specifying the name and type of each field in a dataset.
    attributes Sequence[DatasetAttributesItemProperties]
    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.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial