ThingType constructor
ThingType(
- String name, {
- ThingTypeArgs? args,
- CustomResourceOptions? options,
Creates a new ThingType.
name The Pulumi resource name.
args Arguments used to configure this ThingType. The set of arguments for ThingType.
options Resource options controlling this resource's behavior.
Implementation
ThingType(
String name, {
ThingTypeArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:iot/thingType:ThingType',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
arn = registerOutput<String>('arn');
deprecated = registerOutput<bool?>('deprecated');
this.name = registerOutput<String>('name');
properties = registerOutput<ThingTypeProperties?>('properties', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ThingTypeProperties.fromMap((guardedValue as Map).cast<String, dynamic>()); });
region = registerOutput<String>('region');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}