Class CfnComponentType
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::IoTTwinMaker::ComponentType.
Use the AWS::IoTTwinMaker::ComponentType resource to declare a component type.
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.*;
DataTypeProperty dataTypeProperty_;
DataValueProperty dataValueProperty_;
Object relationshipValue;
CfnComponentType cfnComponentType = CfnComponentType.Builder.create(this, "MyCfnComponentType")
.componentTypeId("componentTypeId")
.workspaceId("workspaceId")
// the properties below are optional
.description("description")
.extendsFrom(List.of("extendsFrom"))
.functions(Map.of(
"functionsKey", FunctionProperty.builder()
.implementedBy(DataConnectorProperty.builder()
.isNative(false)
.lambda(LambdaFunctionProperty.builder()
.arn("arn")
.build())
.build())
.requiredProperties(List.of("requiredProperties"))
.scope("scope")
.build()))
.isSingleton(false)
.propertyDefinitions(Map.of(
"propertyDefinitionsKey", PropertyDefinitionProperty.builder()
.configurations(Map.of(
"configurationsKey", "configurations"))
.dataType(DataTypeProperty.builder()
.type("type")
// the properties below are optional
.allowedValues(List.of(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()))
.nestedType(dataTypeProperty_)
.relationship(RelationshipProperty.builder()
.relationshipType("relationshipType")
.targetComponentTypeId("targetComponentTypeId")
.build())
.unitOfMeasure("unitOfMeasure")
.build())
.defaultValue(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())
.isExternalId(false)
.isRequiredInEntity(false)
.isStoredExternally(false)
.isTimeSeries(false)
.build()))
.propertyGroups(Map.of(
"propertyGroupsKey", PropertyGroupProperty.builder()
.groupType("groupType")
.propertyNames(List.of("propertyNames"))
.build()))
.tags(Map.of(
"tagsKey", "tags"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnComponentType.static interfaceThe data connector.static interfaceAn object that specifies the data type of a property.static interfaceAn object that specifies a value for a property.static interfaceThe component type error.static interfaceThe function body.static interfaceThe Lambda function.static interfacePropertyDefinition is an object that maps strings to the property definitions in the component type.static interfaceThe property group.static interfaceAn object that specifies a relationship with another component type.static interfaceThe component type relationship value.static interfaceThe component type status.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
ConstructorsModifierConstructorDescriptionCfnComponentType(Construct scope, String id, CfnComponentTypeProps props) Create a newAWS::IoTTwinMaker::ComponentType.protectedCfnComponentType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnComponentType(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the component type.The date and time when the component type was created.A boolean value that specifies whether the component type is abstract.A boolean value that specifies whether the component type has a schema initializer and that the schema initializer has run.component type error code.The component type error message.The component type state.The component type the update time.The ID of the component type.The description of the component type.The name of the parent component type that this component type extends.An object that maps strings to the functions in the component type.A boolean value that specifies whether an entity can have more than one component of this type.An object that maps strings to the property definitions in the component type.An object that maps strings to the property groups in the component type.getTags()The ComponentType tags.The ID of the workspace.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComponentTypeId(String value) The ID of the component type.voidsetDescription(String value) The description of the component type.voidsetExtendsFrom(List<String> value) The name of the parent component type that this component type extends.voidsetFunctions(Map<String, Object> value) An object that maps strings to the functions in the component type.voidsetFunctions(IResolvable value) An object that maps strings to the functions in the component type.voidsetIsSingleton(Boolean value) A boolean value that specifies whether an entity can have more than one component of this type.voidsetIsSingleton(IResolvable value) A boolean value that specifies whether an entity can have more than one component of this type.voidsetPropertyDefinitions(Map<String, Object> value) An object that maps strings to the property definitions in the component type.voidAn object that maps strings to the property definitions in the component type.voidsetPropertyGroups(Map<String, Object> value) An object that maps strings to the property groups in the component type.voidsetPropertyGroups(IResolvable value) An object that maps strings to the property groups in the component type.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
-
CfnComponentType
protected CfnComponentType(software.amazon.jsii.JsiiObjectRef objRef) -
CfnComponentType
protected CfnComponentType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnComponentType
@Stability(Stable) public CfnComponentType(@NotNull Construct scope, @NotNull String id, @NotNull CfnComponentTypeProps props) Create a newAWS::IoTTwinMaker::ComponentType.- 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 ARN of the component type. -
getAttrCreationDateTime
The date and time when the component type was created. -
getAttrIsAbstract
A boolean value that specifies whether the component type is abstract. -
getAttrIsSchemaInitialized
A boolean value that specifies whether the component type has a schema initializer and that the schema initializer has run. -
getAttrStatusErrorCode
component type error code. -
getAttrStatusErrorMessage
The component type error message. -
getAttrStatusState
The component type state. -
getAttrUpdateDateTime
The component type the update time. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The ComponentType tags. -
getComponentTypeId
The ID of the component type. -
setComponentTypeId
The ID of the component type. -
getWorkspaceId
The ID of the workspace. -
setWorkspaceId
The ID of the workspace. -
getDescription
The description of the component type. -
setDescription
The description of the component type. -
getExtendsFrom
The name of the parent component type that this component type extends. -
setExtendsFrom
The name of the parent component type that this component type extends. -
getFunctions
An object that maps strings to the functions in the component type.Each string in the mapping must be unique to this object.
For information on the FunctionResponse object see the FunctionResponse API reference.
-
setFunctions
An object that maps strings to the functions in the component type.Each string in the mapping must be unique to this object.
For information on the FunctionResponse object see the FunctionResponse API reference.
-
setFunctions
An object that maps strings to the functions in the component type.Each string in the mapping must be unique to this object.
For information on the FunctionResponse object see the FunctionResponse API reference.
-
getIsSingleton
A boolean value that specifies whether an entity can have more than one component of this type. -
setIsSingleton
A boolean value that specifies whether an entity can have more than one component of this type. -
setIsSingleton
A boolean value that specifies whether an entity can have more than one component of this type. -
getPropertyDefinitions
An object that maps strings to the property definitions in the component type.Each string in the mapping must be unique to this object.
For information about the PropertyDefinitionResponse object, see the PropertyDefinitionResponse API reference.
-
setPropertyDefinitions
An object that maps strings to the property definitions in the component type.Each string in the mapping must be unique to this object.
For information about the PropertyDefinitionResponse object, see the PropertyDefinitionResponse API reference.
-
setPropertyDefinitions
An object that maps strings to the property definitions in the component type.Each string in the mapping must be unique to this object.
For information about the PropertyDefinitionResponse object, see the PropertyDefinitionResponse API reference.
-
getPropertyGroups
An object that maps strings to the property groups in the component type.Each string in the mapping must be unique to this object.
-
setPropertyGroups
An object that maps strings to the property groups in the component type.Each string in the mapping must be unique to this object.
-
setPropertyGroups
An object that maps strings to the property groups in the component type.Each string in the mapping must be unique to this object.
-