

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Code examples for AWS IoT using AWS SDKs
<a name="iot_code_examples"></a>

The following code examples show you how to use AWS IoT with an AWS software development kit (SDK).

*Basics* are code examples that show you how to perform the essential operations within a service.

*Actions* are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.

*Scenarios* are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.

**More resources**
+  **[AWS IoT Developer Guide](https://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html)** – More information about AWS IoT.
+ **[AWS IoT API Reference](https://docs.aws.amazon.com/iot/latest/apireference/Welcome.html)** – Details about all available AWS IoT actions.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23iot-core)** – Code examples that you can filter by category or full-text search.
+ **[AWS SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.

**Contents**
+ [Basics](iot_code_examples_basics.md)
  + [Hello AWS IoT](iot_example_iot_Hello_section.md)
  + [Learn the basics](iot_example_iot_Scenario_section.md)
  + [Actions](iot_code_examples_actions.md)
    + [`AttachThingPrincipal`](iot_example_iot_AttachThingPrincipal_section.md)
    + [`CreateKeysAndCertificate`](iot_example_iot_CreateKeysAndCertificate_section.md)
    + [`CreateThing`](iot_example_iot_CreateThing_section.md)
    + [`CreateTopicRule`](iot_example_iot_CreateTopicRule_section.md)
    + [`DeleteCertificate`](iot_example_iot_DeleteCertificate_section.md)
    + [`DeleteThing`](iot_example_iot_DeleteThing_section.md)
    + [`DeleteTopicRule`](iot_example_iot_DeleteTopicRule_section.md)
    + [`DescribeEndpoint`](iot_example_iot_DescribeEndpoint_section.md)
    + [`DescribeThing`](iot_example_iot_DescribeThing_section.md)
    + [`DetachThingPrincipal`](iot_example_iot_DetachThingPrincipal_section.md)
    + [`ListCertificates`](iot_example_iot_ListCertificates_section.md)
    + [`ListThings`](iot_example_iot_ListThings_section.md)
    + [`SearchIndex`](iot_example_iot_SearchIndex_section.md)
    + [`UpdateIndexingConfiguration`](iot_example_iot_UpdateIndexingConfiguration_section.md)
    + [`UpdateThing`](iot_example_iot_UpdateThing_section.md)
+ [Scenarios](iot_code_examples_scenarios.md)
  + [Getting Started with IoT Device Defender](iot_example_iot_GettingStarted_079_section.md)
  + [Getting started with IoT Core](iot_example_iot_GettingStarted_063_section.md)