AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Implementation for accessing IotData
IoT dataIoT data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the Amazon Web Services cloud. It implements a broker for applications and things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a persistent representation of your things and their state in the Amazon Web Services cloud.
Find the endpoint address for actions in IoT data by running this CLI command:
aws iot describe-endpoint --endpoint-type iot:Data-ATS
The service name used by Amazon Web ServicesSignature Version 4 to sign requests is: iotdevicegateway.
Namespace: Amazon.IotData
Assembly: AWSSDK.IotData.dll
Version: 3.x.y.z
public class AmazonIotDataClient : AmazonServiceClient IAmazonIotData, IAmazonService, IDisposable
The AmazonIotDataClient type exposes the following members
Name | Description | |
---|---|---|
AmazonIotDataClient(string) |
Constructs AmazonIotDataClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonIotDataClient(AmazonIotDataConfig) |
Constructs AmazonIotDataClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonIotDataClient(string, AWSCredentials) |
Constructs AmazonIotDataClient with AWS Credentials |
|
AmazonIotDataClient(AWSCredentials, AmazonIotDataConfig) |
Constructs AmazonIotDataClient with AWS Credentials and an AmazonIotDataClient Configuration object. |
|
AmazonIotDataClient(string, string, string) |
Constructs AmazonIotDataClient with AWS Access Key ID and AWS Secret Key |
|
AmazonIotDataClient(string, string, AmazonIotDataConfig) |
Constructs AmazonIotDataClient with AWS Access Key ID, AWS Secret Key and an AmazonIotDataClient Configuration object. |
|
AmazonIotDataClient(string, string, string, string) |
Constructs AmazonIotDataClient with AWS Access Key ID and AWS Secret Key |
|
AmazonIotDataClient(string, string, string, AmazonIotDataConfig) |
Constructs AmazonIotDataClient with AWS Access Key ID, AWS Secret Key and an AmazonIotDataClient Configuration object. |
Name | Type | Description | |
---|---|---|---|
Config | Amazon.Runtime.IClientConfig | Inherited from Amazon.Runtime.AmazonServiceClient. | |
Paginators | Amazon.IotData.Model.IIotDataPaginatorFactory |
Paginators for the service |
Name | Description | |
---|---|---|
DeleteThingShadow(DeleteThingShadowRequest) |
Deletes the shadow for the specified thing. Requires permission to access the DeleteThingShadow action. For more information, see DeleteThingShadow in the IoT Developer Guide. |
|
DeleteThingShadowAsync(DeleteThingShadowRequest, CancellationToken) |
Deletes the shadow for the specified thing. Requires permission to access the DeleteThingShadow action. For more information, see DeleteThingShadow in the IoT Developer Guide. |
|
DetermineServiceOperationEndpoint(AmazonWebServiceRequest) |
Returns the endpoint that will be used for a particular request. |
|
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. | |
GetRetainedMessage(GetRetainedMessageRequest) |
Gets the details of a single retained message for the specified topic. This action returns the message payload of the retained message, which can incur messaging costs. To list only the topic names of the retained messages, call ListRetainedMessages. Requires permission to access the GetRetainedMessage action. For more information about messaging costs, see Amazon Web Services IoT Core pricing - Messaging. |
|
GetRetainedMessageAsync(GetRetainedMessageRequest, CancellationToken) |
Gets the details of a single retained message for the specified topic. This action returns the message payload of the retained message, which can incur messaging costs. To list only the topic names of the retained messages, call ListRetainedMessages. Requires permission to access the GetRetainedMessage action. For more information about messaging costs, see Amazon Web Services IoT Core pricing - Messaging. |
|
GetThingShadow(GetThingShadowRequest) |
Gets the shadow for the specified thing. Requires permission to access the GetThingShadow action. For more information, see GetThingShadow in the IoT Developer Guide. |
|
GetThingShadowAsync(GetThingShadowRequest, CancellationToken) |
Gets the shadow for the specified thing. Requires permission to access the GetThingShadow action. For more information, see GetThingShadow in the IoT Developer Guide. |
|
ListNamedShadowsForThing(ListNamedShadowsForThingRequest) |
Lists the shadows for the specified thing. Requires permission to access the ListNamedShadowsForThing action. |
|
ListNamedShadowsForThingAsync(ListNamedShadowsForThingRequest, CancellationToken) |
Lists the shadows for the specified thing. Requires permission to access the ListNamedShadowsForThing action. |
|
ListRetainedMessages(ListRetainedMessagesRequest) |
Lists summary information about the retained messages stored for the account. This action returns only the topic names of the retained messages. It doesn't return any message payloads. Although this action doesn't return a message payload, it can still incur messaging costs. To get the message payload of a retained message, call GetRetainedMessage with the topic name of the retained message. Requires permission to access the ListRetainedMessages action. For more information about messaging costs, see Amazon Web Services IoT Core pricing - Messaging. |
|
ListRetainedMessagesAsync(ListRetainedMessagesRequest, CancellationToken) |
Lists summary information about the retained messages stored for the account. This action returns only the topic names of the retained messages. It doesn't return any message payloads. Although this action doesn't return a message payload, it can still incur messaging costs. To get the message payload of a retained message, call GetRetainedMessage with the topic name of the retained message. Requires permission to access the ListRetainedMessages action. For more information about messaging costs, see Amazon Web Services IoT Core pricing - Messaging. |
|
Publish(PublishRequest) |
Publishes an MQTT message. Requires permission to access the Publish action. For more information about MQTT messages, see MQTT Protocol in the IoT Developer Guide. For more information about messaging costs, see Amazon Web Services IoT Core pricing - Messaging. |
|
PublishAsync(PublishRequest, CancellationToken) |
Publishes an MQTT message. Requires permission to access the Publish action. For more information about MQTT messages, see MQTT Protocol in the IoT Developer Guide. For more information about messaging costs, see Amazon Web Services IoT Core pricing - Messaging. |
|
UpdateThingShadow(UpdateThingShadowRequest) |
Updates the shadow for the specified thing. Requires permission to access the UpdateThingShadow action. For more information, see UpdateThingShadow in the IoT Developer Guide. |
|
UpdateThingShadowAsync(UpdateThingShadowRequest, CancellationToken) |
Updates the shadow for the specified thing. Requires permission to access the UpdateThingShadow action. For more information, see UpdateThingShadow in the IoT Developer Guide. |
Name | Description | |
---|---|---|
AfterResponseEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
BeforeRequestEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
ExceptionEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5