java.lang.Object
software.amazon.jsii.JsiiObject
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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::IoTTwinMaker::Entity.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The entity ARN.
    • getAttrCreationDateTime

      @Stability(Stable) @NotNull public String getAttrCreationDateTime()
      The date and time the entity was created.
    • getAttrHasChildEntities

      @Stability(Stable) @NotNull public IResolvable getAttrHasChildEntities()
      A boolean value that specifies whether the entity has child entities or not.
    • getAttrStatusErrorCode

      @Stability(Stable) @NotNull public String getAttrStatusErrorCode()
      The error code.
    • getAttrStatusErrorMessage

      @Stability(Stable) @NotNull public String getAttrStatusErrorMessage()
      The error message.
    • getAttrStatusState

      @Stability(Stable) @NotNull public String getAttrStatusState()
      The state ofthe entity, component type, or workspace.
    • getAttrUpdateDateTime

      @Stability(Stable) @NotNull public String getAttrUpdateDateTime()
      The date and time when the component type was last updated.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Metadata that you can use to manage the entity.
    • getEntityName

      @Stability(Stable) @NotNull public String getEntityName()
      The entity name.
    • setEntityName

      @Stability(Stable) public void setEntityName(@NotNull String value)
      The entity name.
    • getWorkspaceId

      @Stability(Stable) @NotNull public String getWorkspaceId()
      The ID of the workspace.
    • setWorkspaceId

      @Stability(Stable) public void setWorkspaceId(@NotNull String value)
      The ID of the workspace.
    • getComponents

      @Stability(Stable) @Nullable public Object 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

      @Stability(Stable) public void setComponents(@Nullable IResolvable value)
      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

      @Stability(Stable) public void setComponents(@Nullable Map<String,Object> value)
      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

      @Stability(Stable) @Nullable public String getDescription()
      The description of the entity.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the entity.
    • getEntityId

      @Stability(Stable) @Nullable public String getEntityId()
      The entity ID.
    • setEntityId

      @Stability(Stable) public void setEntityId(@Nullable String value)
      The entity ID.
    • getParentEntityId

      @Stability(Stable) @Nullable public String getParentEntityId()
      The ID of the parent entity.
    • setParentEntityId

      @Stability(Stable) public void setParentEntityId(@Nullable String value)
      The ID of the parent entity.