Class CfnComponentType
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.CfnComponentType
- All Implemented Interfaces:
IInspectable,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:09.780Z")
@Stability(Stable)
public class CfnComponentType
extends CfnResource
implements IInspectable, ITaggable
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
.compositeComponentTypes(Map.of(
"compositeComponentTypesKey", CompositeComponentTypeProperty.builder()
.componentTypeId("componentTypeId")
.build()))
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnComponentType.static interfaceSpecifies the ID of the composite component type.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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnComponentType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnComponentType(software.amazon.jsii.JsiiObjectRef objRef) CfnComponentType(software.constructs.Construct scope, String id, CfnComponentTypeProps props) -
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.The component type the update time.The ID of the component type.Maps strings tocompositeComponentTypesof thecomponentType.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()Tag Manager which manages the tags for this resource.The ComponentType tags.The ID of the workspace that contains the component type.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComponentTypeId(String value) The ID of the component type.voidsetCompositeComponentTypes(Map<String, Object> value) Maps strings tocompositeComponentTypesof thecomponentType.voidMaps strings tocompositeComponentTypesof thecomponentType.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.voidsetTagsRaw(Map<String, String> value) The ComponentType tags.voidsetWorkspaceId(String value) The ID of the workspace that contains the component type.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, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnComponentTypeProps 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:
inspectin 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:
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. -
getAttrStatus
-
getAttrStatusError
-
getAttrStatusErrorCode
-
getAttrStatusErrorMessage
-
getAttrStatusState
-
getAttrUpdateDateTime
The component type the update time. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getComponentTypeId
The ID of the component type. -
setComponentTypeId
The ID of the component type. -
getWorkspaceId
The ID of the workspace that contains the component type. -
setWorkspaceId
The ID of the workspace that contains the component type. -
getCompositeComponentTypes
Maps strings tocompositeComponentTypesof thecomponentType. -
setCompositeComponentTypes
Maps strings tocompositeComponentTypesof thecomponentType. -
setCompositeComponentTypes
Maps strings tocompositeComponentTypesof thecomponentType. -
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. -
setFunctions
An object that maps strings to the functions in the component type. -
setFunctions
An object that maps strings to the functions in the component type. -
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. -
setPropertyDefinitions
An object that maps strings to the property definitions in the component type. -
setPropertyDefinitions
An object that maps strings to the property definitions in the component type. -
getPropertyGroups
An object that maps strings to the property groups in the component type. -
setPropertyGroups
An object that maps strings to the property groups in the component type. -
setPropertyGroups
An object that maps strings to the property groups in the component type. -
getTagsRaw
The ComponentType tags. -
setTagsRaw
The ComponentType tags.
-