@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.070Z") @Stability(value=Stable) public class CfnEntity extends CfnResource implements IInspectable
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()))
.status(StatusProperty.builder()
.error(error)
.state("state")
.build())
.build()))
.description("description")
.entityId("entityId")
.parentEntityId("parentEntityId")
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEntity.Builder
A fluent builder for
CfnEntity. |
static interface |
CfnEntity.ComponentProperty
The entity componenet.
|
static interface |
CfnEntity.DataValueProperty
An object that specifies a value for a property.
|
static interface |
CfnEntity.PropertyProperty
An object that sets information about a property.
|
static interface |
CfnEntity.StatusProperty
The current status of the entity.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEntity(software.constructs.Construct scope,
String id,
CfnEntityProps props)
Create a new `AWS::IoTTwinMaker::Entity`.
|
protected |
CfnEntity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEntity(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The entity ARN.
|
String |
getAttrCreationDateTime()
The date and time the entity was created.
|
IResolvable |
getAttrHasChildEntities()
A boolean value that specifies whether the entity has child entities or not.
|
String |
getAttrUpdateDateTime()
The date and time when the component type was last updated.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getComponents()
An object that maps strings to the components in the entity.
|
String |
getDescription()
The description of the entity.
|
String |
getEntityId()
The entity ID.
|
String |
getEntityName()
The entity name.
|
String |
getParentEntityId()
The ID of the parent entity.
|
TagManager |
getTags()
Metadata that you can use to manage the entity.
|
String |
getWorkspaceId()
The ID of the workspace.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setComponents(IResolvable value)
An object that maps strings to the components in the entity.
|
void |
setComponents(Map<String,Object> 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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEntity(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEntity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEntity(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEntityProps props)
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCreationDateTime()
@Stability(value=Stable) @NotNull public IResolvable getAttrHasChildEntities()
@Stability(value=Stable) @NotNull public String getAttrUpdateDateTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getEntityName()
@Stability(value=Stable)
public void setEntityName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getWorkspaceId()
@Stability(value=Stable)
public void setWorkspaceId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getComponents()
Each string in the mapping must be unique to this object.
For information on the component object see the component API reference.
@Stability(value=Stable)
public void setComponents(@Nullable
IResolvable value)
Each string in the mapping must be unique to this object.
For information on the component object see the component API reference.
@Stability(value=Stable)
public void setComponents(@Nullable
Map<String,Object> value)
Each string in the mapping must be unique to this object.
For information on the component object see the component API reference.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getEntityId()
@Stability(value=Stable)
public void setEntityId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getParentEntityId()
@Stability(value=Stable)
public void setParentEntityId(@Nullable
String value)
Copyright © 2022. All rights reserved.