CfnDatasetGroupPropsMixin

class aws_cdk.cfn_property_mixins.aws_forecast.CfnDatasetGroupPropsMixin(props, *, strategy=None)

Bases: Mixin

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. .. epigraph:

Amazon Forecast is no longer available to new customers. Existing customers of Amazon Forecast can continue to use the service as normal. `Learn more" <https://docs.aws.amazon.com/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/>`_

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. .. epigraph:

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 <https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html>`_ operation.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html

CloudformationResource:

AWS::Forecast::DatasetGroup

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

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

# merge_strategy: cdk.IMergeStrategy

cfn_dataset_group_props_mixin = forecast.CfnDatasetGroupPropsMixin(forecast.CfnDatasetGroupMixinProps(
    dataset_arns=["datasetArns"],
    dataset_group_name="datasetGroupName",
    domain="domain",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::Forecast::DatasetGroup.

Parameters:
  • props (Union[CfnDatasetGroupMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['datasetArns', 'datasetGroupName', 'domain', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.