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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-18T22:16:57.965Z")
@Stability(Stable)
public class CfnEntity
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEntity
.static interface
The entity component.static interface
Information about a composite 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.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnEntity
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEntity
(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 tocompositeComponent
updates in the request.The description of the entity.The ID of the entity.The entity name.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.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
setCompositeComponents
(Map<String, Object> value) Maps string tocompositeComponent
updates in the request.void
Maps string tocompositeComponent
updates in the request.void
setDescription
(String value) The description of the entity.void
setEntityId
(String value) The ID of the entity.void
setEntityName
(String value) The entity name.void
setParentEntityId
(String value) The ID of the parent entity.void
setTagsRaw
(Map<String, String> value) Metadata that you can use to manage the entity.void
setWorkspaceId
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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 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:
inspect
in 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:
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. -
getAttrStatus
-
getAttrStatusError
-
getAttrStatusErrorCode
-
getAttrStatusErrorMessage
-
getAttrStatusState
-
getAttrUpdateDateTime
The date and time when the component type was last updated. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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 tocompositeComponent
updates in the request. -
setCompositeComponents
Maps string tocompositeComponent
updates in the request. -
setCompositeComponents
Maps string tocompositeComponent
updates 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.
-