Class CfnEntity
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.iottwinmaker.CfnEntity
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.946Z")
@Stability(Stable)
public class CfnEntity
extends CfnResource
implements IInspectable
A CloudFormation
AWS::IoTTwinMaker::Entity.
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()))
.description("description")
.entityId("entityId")
.parentEntityId("parentEntityId")
.tags(Map.of(
"tagsKey", "tags"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEntity.static interfaceThe entity 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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
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 error code.The error message.The state ofthe entity, component type, or workspace.The date and time when the component type was last updated.An object that maps strings to the components in the entity.The description of the entity.The entity ID.The entity name.The ID of the parent entity.getTags()Metadata that you can use to manage the entity.The ID of the workspace.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.voidsetDescription(String value) The description of the entity.voidsetEntityId(String value) The entity ID.voidsetEntityName(String value) The entity name.voidsetParentEntityId(String value) The ID of the parent entity.voidsetWorkspaceId(String value) The ID of the workspace.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnEntityProps props) Create a newAWS::IoTTwinMaker::Entity.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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. -
getAttrStatusErrorCode
The error code. -
getAttrStatusErrorMessage
The error message. -
getAttrStatusState
The state ofthe entity, component type, or workspace. -
getAttrUpdateDateTime
The date and time when the component type was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Metadata that you can use to manage the entity. -
getEntityName
The entity name. -
setEntityName
The entity name. -
getWorkspaceId
The ID of the workspace. -
setWorkspaceId
The ID of the workspace. -
getComponents
An 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.
-
setComponents
An 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.
-
setComponents
An 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.
-
getDescription
The description of the entity. -
setDescription
The description of the entity. -
getEntityId
The entity ID. -
setEntityId
The entity ID. -
getParentEntityId
The ID of the parent entity. -
setParentEntityId
The ID of the parent entity.
-