You can access the features of the AWS IoT Core - control plane by using the AWS CLI, the AWS SDK for your preferred language, or by calling the REST API directly. We recommend using the AWS CLI or an AWS SDK to interact with AWS IoT Core because they incorporate the best practices for calling AWS services. Calling the REST APIs directly is an option, but you must provide the necessary security credentials that enable access to the API.
Note
IoT devices should use AWS IoT Device SDKs. The Device SDKs are optimized for use on devices, support MQTT communication with AWS IoT, and support the AWS IoT APIs most used by devices. For more information about the Device SDKs and the features they provide, see AWS IoT Device SDKs.
Mobile devices should use AWS Mobile SDKs. The Mobile SDKs provide support for AWS IoT APIs, MQTT device communications, and the APIs of other AWS services on mobile devices. For more information about the Mobile SDKs and the features they provide, see AWS Mobile SDKs.
You can use AWS Amplify tools and resources in web and mobile applications to
connect more easily to AWS IoT Core. For more information about connecting to AWS IoT Core by
using Amplify, see PubSub
The following sections describe the tools and SDKs that you can use to develop and
interact with AWS IoT and other AWS services. For the complete list of AWS tools and
development kits that are available to build and manage apps on AWS, see Tools to Build on AWS
AWS CLI for AWS IoT Core
The AWS CLI provides command-line access to AWS APIs.
-
Installation
For information about how to install the AWS CLI, see Installing the AWS CLI.
-
Authentication
The AWS CLI uses credentials from your AWS account.
-
Reference
For information about the AWS CLI commands for these AWS IoT Core services, see:
For tools to manage AWS services and resources in the PowerShell scripting
environment, see AWS Tools for
PowerShell
AWS SDKs
With AWS SDKs, your apps and compatible devices can call AWS IoT APIs and the APIs of other AWS services. This section provides links to the AWS SDKs and to the API reference documentation for the APIs of the AWS IoT Core services.
The AWS SDKs support these AWS IoT Core APIs
To install the AWS SDK for C++ and use it to connect to AWS IoT:
-
Follow the instructions in Getting Started Using the AWS SDK for C++
These instructions describe how to:
-
Install and build the SDK from source files
-
Provide credentials to use the SDK with your AWS account
-
Initialize and shutdown the SDK in your app or service
-
Create a CMake project to build your app or service
-
-
Create and run a sample app. For sample apps that use the AWS SDK for C++, see AWS SDK for C++ Code Examples.
Documentation for the AWS IoT Core services that the AWS SDK for C++ supports
AWS Mobile SDKs
The AWS Mobile SDKs provide mobile app developers platform-specific support for the APIs of the AWS IoT Core services, IoT device communication using MQTT, and the APIs of other AWS services.
AWS Mobile SDK for Android
The AWS Mobile SDK for Android contains a library, samples, and documentation for developers to build connected mobile applications using AWS. This SDK also includes support for MQTT device communications and calling the APIs of the AWS IoT Core services. For more information, see the following:
REST APIs of the AWS IoT Core services
The REST APIs of the AWS IoT Core services can be called directly by using HTTP requests.
-
Endpoint URL
The service endpoints that expose the REST APIs of the AWS IoT Core services vary by Region and are listed in AWS IoT Core Endpoints and Quotas. You must use the endpoint for the Region that has the AWS IoT resources that you want to access, because AWS IoT resources are Region specific.
-
Authentication
The REST APIs of the AWS IoT Core services use AWS IAM credentials for authentication. For more information, see Signing AWS API requests in the AWS General Reference.
-
API reference
For information about the specific functions provided by the REST APIs of the AWS IoT Core services, see: