# CfnDatasetGroupProps

Struct · External

Properties for defining a `CfnDatasetGroup`.

Used as props by: [CfnDatasetGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_forecast.CfnDatasetGroup.html)

- Source: Generated at build time
- Type last changed: v2.9.0 · 26 Jan 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_forecast as forecast } from 'aws-cdk-lib';
const cfnDatasetGroupProps: forecast.CfnDatasetGroupProps = {
  datasetGroupName: 'datasetGroupName',
  domain: 'domain',

  // the properties below are optional
  datasetArns: ['datasetArns'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_forecast as forecast

cfn_dataset_group_props = forecast.CfnDatasetGroupProps(
    dataset_group_name="datasetGroupName",
    domain="domain",

    # the properties below are optional
    dataset_arns=["datasetArns"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// 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.*;

CfnDatasetGroupProps cfnDatasetGroupProps = CfnDatasetGroupProps.builder()
        .datasetGroupName("datasetGroupName")
        .domain("domain")

        // the properties below are optional
        .datasetArns(List.of("datasetArns"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Forecast;

var cfnDatasetGroupProps = new CfnDatasetGroupProps {
    DatasetGroupName = "datasetGroupName",
    Domain = "domain",

    // the properties below are optional
    DatasetArns = new [] { "datasetArns" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDatasetGroupProps := &CfnDatasetGroupProps{
	DatasetGroupName: jsii.String("datasetGroupName"),
	Domain: jsii.String("domain"),

	// the properties below are optional
	DatasetArns: []*string{
		jsii.String("datasetArns"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `datasetArns`: string[] — An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.

- `datasetGroupName`: string (required) — The name of the dataset group.

- `domain`: string (required) — 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](https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html) 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](https://docs.aws.amazon.com/forecast/latest/dg/howitworks-datasets-groups.html) .

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
