Class CfnEntity
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iottwinmaker.CfnEntity
- All Implemented Interfaces:
IInspectable,ITaggable,IEntityRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:41.850Z")
@Stability(Stable)
public class CfnEntity
extends CfnResource
implements IInspectable, IEntityRef, ITaggable
Use the
AWS::IoTTwinMaker::Entity resource to declare an entity.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iottwinmaker.*;
DataValueProperty dataValueProperty_;
Object definition;
Object error;
Object relationshipValue;
CfnEntity cfnEntity = CfnEntity.Builder.create(this, "MyCfnEntity")
.entityName("entityName")
.workspaceId("workspaceId")
// the properties below are optional
.components(Map.of(
"componentsKey", ComponentProperty.builder()
.componentName("componentName")
.componentTypeId("componentTypeId")
.definedIn("definedIn")
.description("description")
.properties(Map.of(
"propertiesKey", PropertyProperty.builder()
.definition(definition)
.value(DataValueProperty.builder()
.booleanValue(false)
.doubleValue(123)
.expression("expression")
.integerValue(123)
.listValue(List.of(dataValueProperty_))
.longValue(123)
.mapValue(Map.of(
"mapValueKey", dataValueProperty_))
.relationshipValue(relationshipValue)
.stringValue("stringValue")
.build())
.build()))
.propertyGroups(Map.of(
"propertyGroupsKey", PropertyGroupProperty.builder()
.groupType("groupType")
.propertyNames(List.of("propertyNames"))
.build()))
.status(StatusProperty.builder()
.error(error)
.state("state")
.build())
.build()))
.compositeComponents(Map.of(
"compositeComponentsKey", CompositeComponentProperty.builder()
.componentName("componentName")
.componentPath("componentPath")
.componentTypeId("componentTypeId")
.description("description")
.properties(Map.of(
"propertiesKey", PropertyProperty.builder()
.definition(definition)
.value(DataValueProperty.builder()
.booleanValue(false)
.doubleValue(123)
.expression("expression")
.integerValue(123)
.listValue(List.of(dataValueProperty_))
.longValue(123)
.mapValue(Map.of(
"mapValueKey", dataValueProperty_))
.relationshipValue(relationshipValue)
.stringValue("stringValue")
.build())
.build()))
.propertyGroups(Map.of(
"propertyGroupsKey", PropertyGroupProperty.builder()
.groupType("groupType")
.propertyNames(List.of("propertyNames"))
.build()))
.status(StatusProperty.builder()
.error(error)
.state("state")
.build())
.build()))
.description("description")
.entityId("entityId")
.parentEntityId("parentEntityId")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEntity.static interfaceThe entity component.static interfaceInformation about a composite component.static interfaceThe entity data type.static interfaceAn object that specifies a value for a property.static interfaceThe entity definition.static interfaceThe entity error.static interfaceThe property group.static interfaceAn object that sets information about a property.static interfaceThe entity relationship.static interfaceThe entity relationship.static interfaceThe current status of the entity.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iottwinmaker.IEntityRef
IEntityRef.Jsii$Default, IEntityRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEntity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEntity(software.amazon.jsii.JsiiObjectRef objRef) CfnEntity(software.constructs.Construct scope, String id, CfnEntityProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe entity ARN.The date and time the entity was created.A boolean value that specifies whether the entity has child entities or not.The date and time when the component type was last updated.An object that maps strings to the components in the entity.Maps string tocompositeComponentupdates in the request.The description of the entity.The ID of the entity.The entity name.A reference to a Entity resource.The ID of the parent entity.getTags()Tag Manager which manages the tags for this resource.Metadata that you can use to manage the entity.The ID of the workspace that contains the entity.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComponents(Map<String, Object> value) An object that maps strings to the components in the entity.voidsetComponents(IResolvable value) An object that maps strings to the components in the entity.voidsetCompositeComponents(Map<String, Object> value) Maps string tocompositeComponentupdates in the request.voidMaps string tocompositeComponentupdates in the request.voidsetDescription(String value) The description of the entity.voidsetEntityId(String value) The ID of the entity.voidsetEntityName(String value) The entity name.voidsetParentEntityId(String value) The ID of the parent entity.voidsetTagsRaw(Map<String, String> value) Metadata that you can use to manage the entity.voidsetWorkspaceId(String value) The ID of the workspace that contains the entity.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEntity
protected CfnEntity(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEntity
protected CfnEntity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEntity
@Stability(Stable) public CfnEntity(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEntityProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The entity ARN. -
getAttrCreationDateTime
The date and time the entity was created. -
getAttrHasChildEntities
A boolean value that specifies whether the entity has child entities or not. -
getAttrStatus
-
getAttrStatusError
-
getAttrStatusErrorCode
-
getAttrStatusErrorMessage
-
getAttrStatusState
-
getAttrUpdateDateTime
The date and time when the component type was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEntityRef
A reference to a Entity resource.- Specified by:
getEntityRefin interfaceIEntityRef
-
getTags
Tag Manager which manages the tags for this resource. -
getEntityName
The entity name. -
setEntityName
The entity name. -
getWorkspaceId
The ID of the workspace that contains the entity. -
setWorkspaceId
The ID of the workspace that contains the entity. -
getComponents
An object that maps strings to the components in the entity.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnEntity.ComponentProperty> -
setComponents
An object that maps strings to the components in the entity. -
setComponents
An object that maps strings to the components in the entity. -
getCompositeComponents
Maps string tocompositeComponentupdates in the request.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnEntity.CompositeComponentProperty> -
setCompositeComponents
Maps string tocompositeComponentupdates in the request. -
setCompositeComponents
Maps string tocompositeComponentupdates in the request. -
getDescription
The description of the entity. -
setDescription
The description of the entity. -
getEntityId
The ID of the entity. -
setEntityId
The ID of the entity. -
getParentEntityId
The ID of the parent entity. -
setParentEntityId
The ID of the parent entity. -
getTagsRaw
Metadata that you can use to manage the entity. -
setTagsRaw
Metadata that you can use to manage the entity.
-