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.101.0 (build b95fe5d)",
date="2024-07-12T19:34:03.436Z")
@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 class
A fluent builder forCfnComponentType
.static interface
Specifies the ID of the composite component type.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.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
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnComponentType
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnComponentType
(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 tocompositeComponentTypes
of 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.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
setCompositeComponentTypes
(Map<String, Object> value) Maps strings tocompositeComponentTypes
of thecomponentType
.void
Maps strings tocompositeComponentTypes
of thecomponentType
.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
setTagsRaw
(Map<String, String> value) The ComponentType tags.void
setWorkspaceId
(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, 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
-
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:
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 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:
getCfnProperties
in 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 tocompositeComponentTypes
of thecomponentType
. -
setCompositeComponentTypes
Maps strings tocompositeComponentTypes
of thecomponentType
. -
setCompositeComponentTypes
Maps strings tocompositeComponentTypes
of 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.
-