@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.395Z") @Stability(value=Stable) public class CfnDatasetGroup extends CfnResource implements IInspectable
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
Statusof a dataset group must beACTIVEbefore 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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDatasetGroup.Builder
A fluent builder for
CfnDatasetGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDatasetGroup(software.constructs.Construct scope,
String id,
CfnDatasetGroupProps props)
Create a new `AWS::Forecast::DatasetGroup`.
|
protected |
CfnDatasetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDatasetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrDatasetGroupArn()
The Amazon Resource Name (ARN) of the dataset group.
|
protected Map<String,Object> |
getCfnProperties() |
List<String> |
getDatasetArns()
An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.
|
String |
getDatasetGroupName()
The name of the dataset group.
|
String |
getDomain()
The domain associated with the dataset group.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDatasetArns(List<String> value)
An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.
|
void |
setDatasetGroupName(String value)
The name of the dataset group.
|
void |
setDomain(String value)
The domain associated with the dataset group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDatasetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDatasetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDatasetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDatasetGroupProps props)
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrDatasetGroupArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getDatasetGroupName()
@Stability(value=Stable)
public void setDatasetGroupName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDomain()
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 .
@Stability(value=Stable)
public void setDomain(@NotNull
String value)
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 .
@Stability(value=Stable) @Nullable public List<String> getDatasetArns()
Copyright © 2022. All rights reserved.