Class CfnThingType
Creates a new thing type.
Inherited Members
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnThingType : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnThingType
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thingtype.html
CloudformationResource: AWS::IoT::ThingType
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var cfnThingType = new CfnThingType(this, "MyCfnThingType", new CfnThingTypeProps {
DeprecateThingType = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
ThingTypeName = "thingTypeName",
ThingTypeProperties = new ThingTypePropertiesProperty {
Mqtt5Configuration = new Mqtt5ConfigurationProperty {
PropagatingAttributes = new [] { new PropagatingAttributeProperty {
UserPropertyKey = "userPropertyKey",
// the properties below are optional
ConnectionAttribute = "connectionAttribute",
ThingAttribute = "thingAttribute"
} }
},
SearchableAttributes = new [] { "searchableAttributes" },
ThingTypeDescription = "thingTypeDescription"
}
});
Synopsis
Constructors
CfnThingType(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnThingType(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnThingType(Construct, String, ICfnThingTypeProps) |
Properties
AttrArn | The thing type arn. |
AttrId | The thing type id. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DeprecateThingType | Deprecates a thing type. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | Metadata which can be used to manage the thing type. |
ThingTypeName | The name of the thing type. |
ThingTypeProperties | The thing type properties for the thing type to create. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnThingType(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnThingType(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnThingType(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnThingType(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnThingType(Construct, String, ICfnThingTypeProps)
public CfnThingType(Construct scope, string id, ICfnThingTypeProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnThingTypeProps
Resource properties.
Properties
AttrArn
The thing type arn.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrId
The thing type id.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DeprecateThingType
Deprecates a thing type.
public virtual object DeprecateThingType { get; set; }
Property Value
System.Object
Remarks
You can not associate new things with deprecated thing type.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Metadata which can be used to manage the thing type.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
ThingTypeName
The name of the thing type.
public virtual string ThingTypeName { get; set; }
Property Value
System.String
ThingTypeProperties
The thing type properties for the thing type to create.
public virtual object ThingTypeProperties { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>