interface CfnComponentTypeProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoTTwinMaker.CfnComponentTypeProps |
![]() | software.amazon.awscdk.services.iottwinmaker.CfnComponentTypeProps |
![]() | aws_cdk.aws_iottwinmaker.CfnComponentTypeProps |
![]() | @aws-cdk/aws-iottwinmaker » CfnComponentTypeProps |
Properties for defining a CfnComponentType
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iottwinmaker from '@aws-cdk/aws-iottwinmaker';
declare const dataTypeProperty_: iottwinmaker.CfnComponentType.DataTypeProperty;
declare const dataValueProperty_: iottwinmaker.CfnComponentType.DataValueProperty;
declare const relationshipValue: any;
const cfnComponentTypeProps: iottwinmaker.CfnComponentTypeProps = {
componentTypeId: 'componentTypeId',
workspaceId: 'workspaceId',
// the properties below are optional
description: 'description',
extendsFrom: ['extendsFrom'],
functions: {
functionsKey: {
implementedBy: {
isNative: false,
lambda: {
arn: 'arn',
},
},
requiredProperties: ['requiredProperties'],
scope: 'scope',
},
},
isSingleton: false,
propertyDefinitions: {
propertyDefinitionsKey: {
configurations: {
configurationsKey: 'configurations',
},
dataType: {
type: 'type',
// the properties below are optional
allowedValues: [{
booleanValue: false,
doubleValue: 123,
expression: 'expression',
integerValue: 123,
listValue: [dataValueProperty_],
longValue: 123,
mapValue: {
mapValueKey: dataValueProperty_,
},
relationshipValue: relationshipValue,
stringValue: 'stringValue',
}],
nestedType: dataTypeProperty_,
relationship: {
relationshipType: 'relationshipType',
targetComponentTypeId: 'targetComponentTypeId',
},
unitOfMeasure: 'unitOfMeasure',
},
defaultValue: {
booleanValue: false,
doubleValue: 123,
expression: 'expression',
integerValue: 123,
listValue: [dataValueProperty_],
longValue: 123,
mapValue: {
mapValueKey: dataValueProperty_,
},
relationshipValue: relationshipValue,
stringValue: 'stringValue',
},
isExternalId: false,
isRequiredInEntity: false,
isStoredExternally: false,
isTimeSeries: false,
},
},
propertyGroups: {
propertyGroupsKey: {
groupType: 'groupType',
propertyNames: ['propertyNames'],
},
},
tags: {
tagsKey: 'tags',
},
};
Properties
Name | Type | Description |
---|---|---|
component | string | The ID of the component type. |
workspace | string | The ID of the workspace. |
description? | string | The description of the component type. |
extends | string[] | The name of the parent component type that this component type extends. |
functions? | { [string]: IResolvable | Function } | IResolvable | An object that maps strings to the functions in the component type. |
is | boolean | IResolvable | A boolean value that specifies whether an entity can have more than one component of this type. |
property | IResolvable | { [string]: IResolvable | Property } | An object that maps strings to the property definitions in the component type. |
property | IResolvable | { [string]: IResolvable | Property } | An object that maps strings to the property groups in the component type. |
tags? | { [string]: string } | The ComponentType tags. |
componentTypeId
Type:
string
The ID of the component type.
workspaceId
Type:
string
The ID of the workspace.
description?
Type:
string
(optional)
The description of the component type.
extendsFrom?
Type:
string[]
(optional)
The name of the parent component type that this component type extends.
functions?
Type:
{ [string]:
IResolvable
|
Function
} |
IResolvable
(optional)
An object that maps strings to the functions in the component type.
Each string in the mapping must be unique to this object.
For information on the FunctionResponse object see the FunctionResponse API reference.
isSingleton?
Type:
boolean |
IResolvable
(optional)
A boolean value that specifies whether an entity can have more than one component of this type.
propertyDefinitions?
Type:
IResolvable
| { [string]:
IResolvable
|
Property
}
(optional)
An object that maps strings to the property definitions in the component type.
Each string in the mapping must be unique to this object.
For information about the PropertyDefinitionResponse object, see the PropertyDefinitionResponse API reference.
propertyGroups?
Type:
IResolvable
| { [string]:
IResolvable
|
Property
}
(optional)
An object that maps strings to the property groups in the component type.
Each string in the mapping must be unique to this object.
tags?
Type:
{ [string]: string }
(optional)
The ComponentType tags.