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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnComponentType
.static interface
The data connector.static interface
An object that specifies the data type of a property.static interface
An object that specifies a value for a property.static interface
The component type error.static interface
The function body.static interface
The Lambda function.static interface
PropertyDefinition is an object that maps strings to the property definitions in the component type.static interface
The property group.static interface
An object that specifies a relationship with another component type.static interface
The component type relationship value.static interface
The component type status.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnComponentType
(Construct scope, String id, CfnComponentTypeProps props) Create a newAWS::IoTTwinMaker::ComponentType
.protected
CfnComponentType
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnComponentType
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setComponentTypeId
(String value) The ID of the component type.void
setDescription
(String value) The description of the component type.void
setExtendsFrom
(List<String> value) The name of the parent component type that this component type extends.void
setFunctions
(Map<String, Object> value) An object that maps strings to the functions in the component type.void
setFunctions
(IResolvable value) An object that maps strings to the functions in the component type.void
setIsSingleton
(Boolean value) A boolean value that specifies whether an entity can have more than one component of this type.void
setIsSingleton
(IResolvable value) A boolean value that specifies whether an entity can have more than one component of this type.void
setPropertyDefinitions
(Map<String, Object> value) An object that maps strings to the property definitions in the component type.void
An object that maps strings to the property definitions in the component type.void
setPropertyGroups
(Map<String, Object> value) An object that maps strings to the property groups in the component type.void
setPropertyGroups
(IResolvable value) An object that maps strings to the property groups in the component type.void
setWorkspaceId
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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
-
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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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.
-