CfnDatasetPropsMixin
- class aws_cdk.mixins_preview.aws_iotsitewise.mixins.CfnDatasetPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a dataset to connect an external datasource.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-dataset.html
- CloudformationResource:
AWS::IoTSiteWise::Dataset
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins cfn_dataset_props_mixin = iotsitewise_mixins.CfnDatasetPropsMixin(iotsitewise_mixins.CfnDatasetMixinProps( dataset_description="datasetDescription", dataset_name="datasetName", dataset_source=iotsitewise_mixins.CfnDatasetPropsMixin.DatasetSourceProperty( source_detail=iotsitewise_mixins.CfnDatasetPropsMixin.SourceDetailProperty( kendra=iotsitewise_mixins.CfnDatasetPropsMixin.KendraSourceDetailProperty( knowledge_base_arn="knowledgeBaseArn", role_arn="roleArn" ) ), source_format="sourceFormat", source_type="sourceType" ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IoTSiteWise::Dataset.- Parameters:
props (
Union[CfnDatasetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['datasetDescription', 'datasetName', 'datasetSource', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
DatasetSourceProperty
- class CfnDatasetPropsMixin.DatasetSourceProperty(*, source_detail=None, source_format=None, source_type=None)
Bases:
objectThe data source for the dataset.
- Parameters:
source_detail (
Union[IResolvable,SourceDetailProperty,Dict[str,Any],None]) – The details of the dataset source associated with the dataset.source_format (
Optional[str]) – The format of the dataset source associated with the dataset.source_type (
Optional[str]) – The type of data source for the dataset.
- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins dataset_source_property = iotsitewise_mixins.CfnDatasetPropsMixin.DatasetSourceProperty( source_detail=iotsitewise_mixins.CfnDatasetPropsMixin.SourceDetailProperty( kendra=iotsitewise_mixins.CfnDatasetPropsMixin.KendraSourceDetailProperty( knowledge_base_arn="knowledgeBaseArn", role_arn="roleArn" ) ), source_format="sourceFormat", source_type="sourceType" )
Attributes
- source_detail
The details of the dataset source associated with the dataset.
- source_format
The format of the dataset source associated with the dataset.
- source_type
The type of data source for the dataset.
KendraSourceDetailProperty
- class CfnDatasetPropsMixin.KendraSourceDetailProperty(*, knowledge_base_arn=None, role_arn=None)
Bases:
objectThe source details for the Kendra dataset source.
- Parameters:
knowledge_base_arn (
Optional[str]) – TheknowledgeBaseArndetails for the Kendra dataset source.role_arn (
Optional[str]) – TheroleARNdetails for the Kendra dataset source.
- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins kendra_source_detail_property = iotsitewise_mixins.CfnDatasetPropsMixin.KendraSourceDetailProperty( knowledge_base_arn="knowledgeBaseArn", role_arn="roleArn" )
Attributes
- knowledge_base_arn
The
knowledgeBaseArndetails for the Kendra dataset source.
- role_arn
The
roleARNdetails for the Kendra dataset source.
SourceDetailProperty
- class CfnDatasetPropsMixin.SourceDetailProperty(*, kendra=None)
Bases:
objectThe details of the dataset source associated with the dataset.
- Parameters:
kendra (
Union[IResolvable,KendraSourceDetailProperty,Dict[str,Any],None]) – Contains details about the Kendra dataset source.- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins source_detail_property = iotsitewise_mixins.CfnDatasetPropsMixin.SourceDetailProperty( kendra=iotsitewise_mixins.CfnDatasetPropsMixin.KendraSourceDetailProperty( knowledge_base_arn="knowledgeBaseArn", role_arn="roleArn" ) )
Attributes
- kendra
Contains details about the Kendra dataset source.