Class CfnDatasetGroup

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.809Z") @Stability(Stable) public class CfnDatasetGroup extends CfnResource implements IInspectable
A CloudFormation AWS::Forecast::DatasetGroup.

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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.forecast.*;
 CfnDatasetGroup cfnDatasetGroup = CfnDatasetGroup.Builder.create(this, "MyCfnDatasetGroup")
         .datasetGroupName("datasetGroupName")
         .domain("domain")
         // the properties below are optional
         .datasetArns(List.of("datasetArns"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnDatasetGroup

      protected CfnDatasetGroup(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDatasetGroup

      protected CfnDatasetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDatasetGroup

      @Stability(Stable) public CfnDatasetGroup(@NotNull Construct scope, @NotNull String id, @NotNull CfnDatasetGroupProps props)
      Create a new AWS::Forecast::DatasetGroup.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrDatasetGroupArn

      @Stability(Stable) @NotNull public String getAttrDatasetGroupArn()
      The Amazon Resource Name (ARN) of the dataset group.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

    • getDatasetGroupName

      @Stability(Stable) @NotNull public String getDatasetGroupName()
      The name of the dataset group.
    • setDatasetGroupName

      @Stability(Stable) public void setDatasetGroupName(@NotNull String value)
      The name of the dataset group.
    • getDomain

      @Stability(Stable) @NotNull public String getDomain()
      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 .

    • setDomain

      @Stability(Stable) public void setDomain(@NotNull String value)
      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 .

    • getDatasetArns

      @Stability(Stable) @Nullable public List<String> getDatasetArns()
      An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.
    • setDatasetArns

      @Stability(Stable) public void setDatasetArns(@Nullable List<String> value)
      An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.