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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEntity
.static interface
The entity component.static interface
The entity data type.static interface
An object that specifies a value for a property.static interface
The entity definition.static interface
The entity error.static interface
The property group.static interface
An object that sets information about a property.static interface
The entity relationship.static interface
The entity relationship.static interface
The current status of the entity.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setComponents
(Map<String, Object> value) An object that maps strings to the components in the entity.void
setComponents
(IResolvable value) An object that maps strings to the components in the entity.void
setDescription
(String value) The description of the entity.void
setEntityId
(String value) The entity ID.void
setEntityName
(String value) The entity name.void
setParentEntityId
(String value) The ID of the parent entity.void
setWorkspaceId
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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.
-