Class CfnDatasetPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
Amazon Forecast is no longer available to new customers. Existing customers of Amazon Forecast can continue to use the service as normal. Learn more"
The information about the dataset that you provide helps Forecast understand how to consume the data for model training. This includes the following:
DataFrequency- How frequently your historical time-series data is collected.DomainandDatasetType- Each dataset has an associated dataset domain and a type within the domain. Amazon Forecast provides a list of predefined domains and types within each domain. For each unique dataset domain and type within the domain, Amazon Forecast requires your data to include a minimum set of predefined fields.Schema- A schema specifies the fields in the dataset, including the field name and data type.
After creating a dataset, you import your training data into it and add the dataset to a dataset group. You use the dataset group to create a predictor. For more information, see Importing datasets .
To get a list of all your datasets, use the ListDatasets operation.
For example Forecast datasets, see the Amazon Forecast Sample GitHub repository .
The
Statusof a dataset must beACTIVEbefore you can import training data. Use the DescribeDataset operation to get the status.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.forecast.*;
import software.amazon.awscdk.*;
Object encryptionConfig;
IMergeStrategy mergeStrategy;
Object schema;
CfnDatasetPropsMixin cfnDatasetPropsMixin = CfnDatasetPropsMixin.Builder.create(CfnDatasetMixinProps.builder()
.dataFrequency("dataFrequency")
.datasetName("datasetName")
.datasetType("datasetType")
.domain("domain")
.encryptionConfig(encryptionConfig)
.schema(schema)
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnDatasetPropsMixin.static interfaceAn AWS Key Management Service (KMS) key and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.static interfaceDefines the fields of a dataset.static interfaceA key-value pair to associate with a resource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Forecast::Dataset.CfnDatasetPropsMixin(CfnDatasetMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Forecast::Dataset.protectedCfnDatasetPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDatasetPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDatasetMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnDatasetPropsMixin
protected CfnDatasetPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDatasetPropsMixin
protected CfnDatasetPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDatasetPropsMixin
@Stability(Stable) public CfnDatasetPropsMixin(@NotNull CfnDatasetMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Forecast::Dataset.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDatasetPropsMixin
Create a mixin to apply properties toAWS::Forecast::Dataset.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-