@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.920Z") @Stability(value=Stable) public class CfnDevice extends CfnResource implements IInspectable
The AWS::IoT1Click::Device resource controls the enabled state of an AWS IoT 1-Click compatible device. For more information, see Device in the AWS IoT 1-Click Devices API Reference .
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.iot1click.*;
CfnDevice cfnDevice = CfnDevice.Builder.create(this, "MyCfnDevice")
.deviceId("deviceId")
.enabled(false)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDevice.Builder
A fluent builder for
CfnDevice. |
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 |
|---|---|
|
CfnDevice(software.constructs.Construct scope,
String id,
CfnDeviceProps props)
Create a new `AWS::IoT1Click::Device`.
|
protected |
CfnDevice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDevice(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The ARN of the device, such as `arn:aws:iot1click:us-west-2:123456789012:devices/G030PX0312744DWM` .
|
String |
getAttrDeviceId()
The unique identifier of the device.
|
IResolvable |
getAttrEnabled()
A Boolean value indicating whether the device is enabled ( `true` ) or not ( `false` ).
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDeviceId()
The ID of the device, such as `G030PX0312744DWM` .
|
Object |
getEnabled()
A Boolean value indicating whether the device is enabled ( `true` ) or not ( `false` ).
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDeviceId(String value)
The ID of the device, such as `G030PX0312744DWM` .
|
void |
setEnabled(Boolean value)
A Boolean value indicating whether the device is enabled ( `true` ) or not ( `false` ).
|
void |
setEnabled(IResolvable value)
A Boolean value indicating whether the device is enabled ( `true` ) or not ( `false` ).
|
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 CfnDevice(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDevice(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDevice(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDeviceProps 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. 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 public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrDeviceId()
@Stability(value=Stable) @NotNull public IResolvable getAttrEnabled()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDeviceId()
@Stability(value=Stable)
public void setDeviceId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getEnabled()
@Stability(value=Stable)
public void setEnabled(@NotNull
Boolean value)
@Stability(value=Stable)
public void setEnabled(@NotNull
IResolvable value)
Copyright © 2022. All rights reserved.