@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.895Z") @Stability(value=Stable) public class CfnThing extends CfnResource implements IInspectable
Use the AWS::IoT::Thing resource to declare an AWS IoT thing.
For information about working with things, see How AWS IoT Works and Device Registry for AWS IoT in the AWS IoT Developer Guide .
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.*;
CfnThing cfnThing = CfnThing.Builder.create(this, "MyCfnThing")
.attributePayload(AttributePayloadProperty.builder()
.attributes(Map.of(
"attributesKey", "attributes"))
.build())
.thingName("thingName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnThing.AttributePayloadProperty
The AttributePayload property specifies up to three attributes for an AWS IoT as key-value pairs.
|
static class |
CfnThing.Builder
A fluent builder for
CfnThing. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnThing(software.constructs.Construct scope,
String id)
Create a new `AWS::IoT::Thing`.
|
|
CfnThing(software.constructs.Construct scope,
String id,
CfnThingProps props)
Create a new `AWS::IoT::Thing`.
|
protected |
CfnThing(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnThing(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttributePayload()
A string that contains up to three key value pairs.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getThingName()
The name of the thing to update.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAttributePayload(CfnThing.AttributePayloadProperty value)
A string that contains up to three key value pairs.
|
void |
setAttributePayload(IResolvable value)
A string that contains up to three key value pairs.
|
void |
setThingName(String value)
The name of the thing to update.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnThing(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnThing(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnThing(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnThingProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnThing(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getAttributePayload()
Maximum length of 800. Duplicates not allowed.
@Stability(value=Stable)
public void setAttributePayload(@Nullable
CfnThing.AttributePayloadProperty value)
Maximum length of 800. Duplicates not allowed.
@Stability(value=Stable)
public void setAttributePayload(@Nullable
IResolvable value)
Maximum length of 800. Duplicates not allowed.
@Stability(value=Stable) @Nullable public String getThingName()
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
@Stability(value=Stable)
public void setThingName(@Nullable
String value)
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
Copyright © 2022. All rights reserved.