Class CfnThingType
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.iot.CfnThingType
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IThingTypeRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:12.520Z")
@Stability(Stable)
public class CfnThingType
extends CfnResource
implements IInspectable, IThingTypeRef, ITaggable
Creates a new thing 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.iot.*;
CfnThingType cfnThingType = CfnThingType.Builder.create(this, "MyCfnThingType")
.deprecateThingType(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.thingTypeName("thingTypeName")
.thingTypeProperties(ThingTypePropertiesProperty.builder()
.mqtt5Configuration(Mqtt5ConfigurationProperty.builder()
.propagatingAttributes(List.of(PropagatingAttributeProperty.builder()
.userPropertyKey("userPropertyKey")
// the properties below are optional
.connectionAttribute("connectionAttribute")
.thingAttribute("thingAttribute")
.build()))
.build())
.searchableAttributes(List.of("searchableAttributes"))
.thingTypeDescription("thingTypeDescription")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnThingType.static interfaceThe configuration to add user-defined properties to enrich MQTT 5 messages.static interfaceAn object that represents the connection attribute, the thing attribute, and the MQTT 5 user property key.static interfaceThe ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.iot.IThingTypeRef
IThingTypeRef.Jsii$Default, IThingTypeRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnThingType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnThingType(software.amazon.jsii.JsiiObjectRef objRef) CfnThingType(software.constructs.Construct scope, String id) Create a newAWS::IoT::ThingType.CfnThingType(software.constructs.Construct scope, String id, CfnThingTypeProps props) Create a newAWS::IoT::ThingType. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForThingType(IThingTypeRef resource) static IThingTypeReffromThingTypeArn(software.constructs.Construct scope, String id, String arn) Creates a new IThingTypeRef from an ARN.static IThingTypeReffromThingTypeName(software.constructs.Construct scope, String id, String thingTypeName) Creates a new IThingTypeRef from a thingTypeName.The thing type arn.The thing type id.Deprecates a thing type.getTags()Tag Manager which manages the tags for this resource.Metadata which can be used to manage the thing type.The name of the thing type.The thing type properties for the thing type to create.A reference to a ThingType resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnThingType.renderProperties(Map<String, Object> props) voidsetDeprecateThingType(Boolean value) Deprecates a thing type.voidsetDeprecateThingType(IResolvable value) Deprecates a thing type.voidsetTagsRaw(List<CfnTag> value) Metadata which can be used to manage the thing type.voidsetThingTypeName(String value) The name of the thing type.voidThe thing type properties for the thing type to create.voidThe thing type properties for the thing type to create.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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
-
CfnThingType
protected CfnThingType(software.amazon.jsii.JsiiObjectRef objRef) -
CfnThingType
protected CfnThingType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnThingType
@Stability(Stable) public CfnThingType(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnThingTypeProps props) Create a newAWS::IoT::ThingType.- 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.
-
CfnThingType
@Stability(Stable) public CfnThingType(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::IoT::ThingType.- 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.
-
-
Method Details
-
arnForThingType
- Parameters:
resource- This parameter is required.
-
fromThingTypeArn
@Stability(Stable) @NotNull public static IThingTypeRef fromThingTypeArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IThingTypeRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromThingTypeName
@Stability(Stable) @NotNull public static IThingTypeRef fromThingTypeName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String thingTypeName) Creates a new IThingTypeRef from a thingTypeName.- Parameters:
scope- This parameter is required.id- This parameter is required.thingTypeName- This parameter is required.
-
isCfnThingType
Checks whether the given object is a CfnThingType.- Parameters:
x- This parameter is required.
-
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 thing type arn. -
getAttrId
The thing type id. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getThingTypeRef
A reference to a ThingType resource.- Specified by:
getThingTypeRefin interfaceIThingTypeRef
-
getDeprecateThingType
Deprecates a thing type.You can not associate new things with deprecated thing type.
Returns union: either
BooleanorIResolvable -
setDeprecateThingType
Deprecates a thing type.You can not associate new things with deprecated thing type.
-
setDeprecateThingType
Deprecates a thing type.You can not associate new things with deprecated thing type.
-
getTagsRaw
Metadata which can be used to manage the thing type. -
setTagsRaw
Metadata which can be used to manage the thing type. -
getThingTypeName
The name of the thing type. -
setThingTypeName
The name of the thing type. -
getThingTypeProperties
The thing type properties for the thing type to create.Returns union: either
IResolvableorCfnThingType.ThingTypePropertiesProperty -
setThingTypeProperties
The thing type properties for the thing type to create. -
setThingTypeProperties
@Stability(Stable) public void setThingTypeProperties(@Nullable CfnThingType.ThingTypePropertiesProperty value) The thing type properties for the thing type to create.
-