AWS::IoTTwinMaker::Entity
Use the AWS::IoTTwinMaker::Entity resource to declare an entity.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::IoTTwinMaker::Entity", "Properties" : { "Components" :{, "Description" :Key:Value, ...}String, "EntityId" :String, "EntityName" :String, "ParentEntityId" :String, "Tags" :{, "WorkspaceId" :Key:Value, ...}String} }
YAML
Type: AWS::IoTTwinMaker::Entity Properties: Components:Description:Key:ValueStringEntityId:StringEntityName:StringParentEntityId:StringTags:WorkspaceId:Key:ValueString
Properties
ComponentsAn object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
For information on the component object see the component API reference.
Required: No
Type: Map of Component
Update requires: No interruption
DescriptionThe description of the entity.
Required: No
Type: String
Update requires: No interruption
EntityIdThe entity ID.
Required: No
Type: String
Update requires: Replacement
EntityNameThe entity name.
Required: Yes
Type: String
Update requires: No interruption
ParentEntityIdThe ID of the parent entity.
Required: No
Type: String
Update requires: No interruption
TagsMetadata that you can use to manage the entity.
Required: No
Type: Map of String
Update requires: No interruption
WorkspaceIdThe ID of the workspace.
Required: Yes
Type: String
Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the workspace Id and the entity Id.
For more information about using the Reffunction, see Ref.
Fn::GetAtt
The Fn::GetAttintrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAttintrinsic function, see Fn::GetAtt.
ArnThe entity ARN.
CreationDateTimeThe date and time the entity was created.
HasChildEntitiesA boolean value that specifies whether the entity has child entities or not.
StatusThe entity status.
Status.ErrorThe error.
Status.Error.CodeThe error code.
Status.Error.MessageThe error message.
Status.StateThe state ofthe entity, component type, or workspace.
UpdateDateTimeThe date and time when the component type was last updated.