AWS IoT
API Reference
AWS IoT: API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
AWS IoT ... 1
AWS IoT data ... 1
AWS IoT jobs data ... 1
AWS IoT Core Device Advisor ... 2
AWS IoT Fleet Hub ... 2
AWS IoT Secure Tunneling ... 2
Actions ... 3
AWS IoT ... 9
AcceptCertificateTransfer ... 15
AddThingToBillingGroup ... 17
AddThingToThingGroup ... 20
AssociateTargetsWithJob ... 23
AttachPolicy ... 26
AttachPrincipalPolicy ... 28
AttachSecurityProfile ... 30
AttachThingPrincipal ... 32
CancelAuditMitigationActionsTask ... 34
CancelAuditTask ... 36
CancelCertificateTransfer ... 38
CancelDetectMitigationActionsTask ... 40
CancelJob ... 42
CancelJobExecution ... 45
ClearDefaultAuthorizer ... 48
ConfirmTopicRuleDestination ... 50
CreateAuditSuppression ... 52
CreateAuthorizer ... 55
CreateBillingGroup ... 59
CreateCertificateFromCsr ... 62
CreateCustomMetric ... 65
CreateDimension ... 68
CreateDomainConfiguration ... 71
CreateDynamicThingGroup ... 75
CreateFleetMetric ... 79
CreateJob ... 84
CreateJobTemplate ... 90
CreateKeysAndCertificate ... 95
CreateMitigationAction ... 98
CreateOTAUpdate ... 101
CreatePolicy ... 107
CreatePolicyVersion ... 110
CreateProvisioningClaim ... 113
CreateProvisioningTemplate ... 116
CreateProvisioningTemplateVersion ... 120
CreateRoleAlias ... 123
CreateScheduledAudit ... 126
CreateSecurityProfile ... 129
CreateStream ... 133
CreateThing ... 137
CreateThingGroup ... 140
CreateThingType ... 143
CreateTopicRule ... 146
CreateTopicRuleDestination ... 154
DeleteAccountAuditConfiguration ... 157
DeleteAuditSuppression ... 159
DeleteAuthorizer ... 161
DeleteBillingGroup ... 163
DeleteCACertificate ... 165
DeleteCertificate ... 167
DeleteCustomMetric ... 169
DeleteDimension ... 171
DeleteDomainConfiguration ... 173
DeleteDynamicThingGroup ... 175
DeleteFleetMetric ... 177
DeleteJob ... 179
DeleteJobExecution ... 182
DeleteJobTemplate ... 185
DeleteMitigationAction ... 187
DeleteOTAUpdate ... 189
DeletePolicy ... 191
DeletePolicyVersion ... 193
DeleteProvisioningTemplate ... 195
DeleteProvisioningTemplateVersion ... 197
DeleteRegistrationCode ... 199
DeleteRoleAlias ... 201
DeleteScheduledAudit ... 203
DeleteSecurityProfile ... 205
DeleteStream ... 207
DeleteThing ... 209
DeleteThingGroup ... 211
DeleteThingType ... 213
DeleteTopicRule ... 215
DeleteTopicRuleDestination ... 217
DeleteV2LoggingLevel ... 219
DeprecateThingType ... 221
DescribeAccountAuditConfiguration ... 223
DescribeAuditFinding ... 225
DescribeAuditMitigationActionsTask ... 228
DescribeAuditSuppression ... 232
DescribeAuditTask ... 235
DescribeAuthorizer ... 238
DescribeBillingGroup ... 240
DescribeCACertificate ... 243
DescribeCertificate ... 246
DescribeCustomMetric ... 249
DescribeDefaultAuthorizer ... 252
DescribeDetectMitigationActionsTask ... 254
DescribeDimension ... 257
DescribeDomainConfiguration ... 260
DescribeEndpoint ... 263
DescribeEventConfigurations ... 265
DescribeFleetMetric ... 267
DescribeIndex ... 271
DescribeJob ... 274
DescribeJobExecution ... 277
DescribeJobTemplate ... 280
DescribeManagedJobTemplate ... 284
DescribeMitigationAction ... 287
DescribeProvisioningTemplate ... 290
DescribeProvisioningTemplateVersion ... 293
DescribeRoleAlias ... 296
DescribeScheduledAudit ... 298
DescribeSecurityProfile ... 301
DescribeStream ... 305
DescribeThing ... 308
DescribeThingGroup ... 311
DescribeThingRegistrationTask ... 315
DescribeThingType ... 319
DetachPolicy ... 322
DetachPrincipalPolicy ... 324
DetachSecurityProfile ... 326
DetachThingPrincipal ... 328
DisableTopicRule ... 330
EnableTopicRule ... 332
GetBehaviorModelTrainingSummaries ... 334
GetBucketsAggregation ... 336
GetCardinality ... 340
GetEffectivePolicies ... 343
GetIndexingConfiguration ... 346
GetJobDocument ... 349
GetLoggingOptions ... 351
GetOTAUpdate ... 353
GetPercentiles ... 357
GetPolicy ... 360
GetPolicyVersion ... 363
GetRegistrationCode ... 366
GetStatistics ... 368
GetTopicRule ... 371
GetTopicRuleDestination ... 379
GetV2LoggingOptions ... 381
ListActiveViolations ... 383
ListAttachedPolicies ... 386
ListAuditFindings ... 389
ListAuditMitigationActionsExecutions ... 393
ListAuditMitigationActionsTasks ... 396
ListAuditSuppressions ... 399
ListAuditTasks ... 402
ListAuthorizers ... 405
ListBillingGroups ... 408
ListCACertificates ... 410
ListCertificates ... 413
ListCertificatesByCA ... 416
ListCustomMetrics ... 419
ListDetectMitigationActionsExecutions ... 421
ListDetectMitigationActionsTasks ... 424
ListDimensions ... 427
ListDomainConfigurations ... 429
ListFleetMetrics ... 432
ListIndices ... 434
ListJobExecutionsForJob ... 436
ListJobExecutionsForThing ... 439
ListJobs ... 442
ListJobTemplates ... 445
ListManagedJobTemplates ... 447
ListMitigationActions ... 449
ListOTAUpdates ... 451
ListOutgoingCertificates ... 454
ListPolicies ... 457
ListPolicyPrincipals ... 460
ListPolicyVersions ... 463
ListPrincipalPolicies ... 465
ListPrincipalThings ... 468
ListProvisioningTemplates ... 471
ListProvisioningTemplateVersions ... 473
ListRoleAliases ... 476
ListScheduledAudits ... 479
ListSecurityProfiles ... 481
ListSecurityProfilesForTarget ... 484
ListStreams ... 487
ListTagsForResource ... 489
ListTargetsForPolicy ... 491
ListTargetsForSecurityProfile ... 494
ListThingGroups ... 496
ListThingGroupsForThing ... 499
ListThingPrincipals ... 501
ListThingRegistrationTaskReports ... 504
ListThingRegistrationTasks ... 507
ListThings ... 509
ListThingsInBillingGroup ... 512
ListThingsInThingGroup ... 514
ListThingTypes ... 516
ListTopicRuleDestinations ... 519
ListTopicRules ... 521
ListV2LoggingLevels ... 523
ListViolationEvents ... 525
PutVerificationStateOnViolation ... 529
RegisterCACertificate ... 531
RegisterCertificate ... 535
RegisterCertificateWithoutCA ... 538
RegisterThing ... 541
RejectCertificateTransfer ... 544
RemoveThingFromBillingGroup ... 547
RemoveThingFromThingGroup ... 550
ReplaceTopicRule ... 553
SearchIndex ... 561
SetDefaultAuthorizer ... 565
SetDefaultPolicyVersion ... 568
SetLoggingOptions ... 570
SetV2LoggingLevel ... 572
SetV2LoggingOptions ... 574
StartAuditMitigationActionsTask ... 576
StartDetectMitigationActionsTask ... 579
StartOnDemandAuditTask ... 582
StartThingRegistrationTask ... 584
StopThingRegistrationTask ... 587
TagResource ... 589
TestAuthorization ... 591
TestInvokeAuthorizer ... 595
TransferCertificate ... 599
UntagResource ... 602
UpdateAccountAuditConfiguration ... 604
UpdateAuditSuppression ... 607
UpdateAuthorizer ... 610
UpdateBillingGroup ... 614
UpdateCACertificate ... 617
UpdateCertificate ... 620
UpdateCustomMetric ... 623
UpdateDimension ... 626
UpdateDomainConfiguration ... 629
UpdateDynamicThingGroup ... 632
UpdateEventConfigurations ... 635
UpdateFleetMetric ... 637
UpdateIndexingConfiguration ... 641
UpdateJob ... 644
UpdateMitigationAction ... 648
UpdateProvisioningTemplate ... 651
UpdateRoleAlias ... 654
UpdateScheduledAudit ... 657
UpdateSecurityProfile ... 660
UpdateStream ... 666
UpdateThing ... 669
UpdateThingGroup ... 672
UpdateThingGroupsForThing ... 675
UpdateTopicRuleDestination ... 678
ValidateSecurityProfileBehaviors ... 681
AWS IoT data ... 683
DeleteThingShadow ... 684
GetRetainedMessage ... 687
GetThingShadow ... 690
ListNamedShadowsForThing ... 693
ListRetainedMessages ... 696
Publish ... 699
UpdateThingShadow ... 701
AWS IoT jobs data ... 703
DescribeJobExecution ... 704
GetPendingJobExecutions ... 707
StartNextPendingJobExecution ... 710
UpdateJobExecution ... 713
AWS IoT Core Device Advisor ... 716
CreateSuiteDefinition ... 718
DeleteSuiteDefinition ... 721
GetEndpoint ... 723
GetSuiteDefinition ... 725
GetSuiteRun ... 728
GetSuiteRunReport ... 732
ListSuiteDefinitions ... 734
ListSuiteRuns ... 736
ListTagsForResource ... 739
StartSuiteRun ... 741
StopSuiteRun ... 744
TagResource ... 746
UntagResource ... 748
UpdateSuiteDefinition ... 750
AWS IoT Fleet Hub ... 752
CreateApplication ... 753
DeleteApplication ... 756
DescribeApplication ... 758
ListApplications ... 762
ListTagsForResource ... 764
TagResource ... 766
UntagResource ... 768
UpdateApplication ... 770
AWS IoT Secure Tunneling ... 772
CloseTunnel ... 773
DescribeTunnel ... 775
ListTagsForResource ... 777
ListTunnels ... 779
OpenTunnel ... 781
TagResource ... 784
UntagResource ... 786
Data Types ... 788
AWS IoT ... 793
AbortConfig ... 798
AbortCriteria ... 799
Action ... 801
ActiveViolation ... 805
AddThingsToThingGroupParams ... 807
AggregationType ... 808
AlertTarget ... 809
Allowed ... 810
AssetPropertyTimestamp ... 811
AssetPropertyValue ... 812
AssetPropertyVariant ... 813
AttributePayload ... 814
AuditCheckConfiguration ... 815
AuditCheckDetails ... 816
AuditFinding ... 818
AuditMitigationActionExecutionMetadata ... 820
AuditMitigationActionsTaskMetadata ... 822
AuditMitigationActionsTaskTarget ... 823
AuditNotificationTarget ... 824
AuditSuppression ... 825
AuditTaskMetadata ... 827
AuthInfo ... 828
AuthorizerConfig ... 829
AuthorizerDescription ... 830
AuthorizerSummary ... 832
AuthResult ... 833
AwsJobAbortConfig ... 834
AwsJobAbortCriteria ... 835
AwsJobExecutionsRolloutConfig ... 837
AwsJobExponentialRolloutRate ... 838
AwsJobPresignedUrlConfig ... 839
AwsJobRateIncreaseCriteria ... 840
AwsJobTimeoutConfig ... 841
Behavior ... 842
BehaviorCriteria ... 844
BehaviorModelTrainingSummary ... 846
BillingGroupMetadata ... 848
BillingGroupProperties ... 849
Bucket ... 850
BucketsAggregationType ... 851
CACertificate ... 852
CACertificateDescription ... 853
Certificate ... 855
CertificateDescription ... 857
CertificateValidity ... 860
CloudwatchAlarmAction ... 861
CloudwatchLogsAction ... 862
CloudwatchMetricAction ... 863
CodeSigning ... 865
CodeSigningCertificateChain ... 866
CodeSigningSignature ... 867
Configuration ... 868
CustomCodeSigning ... 869
Denied ... 870
Destination ... 871
DetectMitigationActionExecution ... 872
DetectMitigationActionsTaskStatistics ... 874
DetectMitigationActionsTaskSummary ... 875
DetectMitigationActionsTaskTarget ... 877
DocumentParameter ... 878
DomainConfigurationSummary ... 880
DynamoDBAction ... 881
DynamoDBv2Action ... 883
EffectivePolicy ... 884
ElasticsearchAction ... 885
EnableIoTLoggingParams ... 887
ErrorInfo ... 888
ExplicitDeny ... 889
ExponentialRolloutRate ... 890
Field ... 891
FileLocation ... 892
FirehoseAction ... 893
FleetMetricNameAndArn ... 894
GroupNameAndArn ... 895
HttpAction ... 896
HttpActionHeader ... 898
HttpAuthorization ... 899
HttpContext ... 900
HttpUrlDestinationConfiguration ... 901
HttpUrlDestinationProperties ... 902
HttpUrlDestinationSummary ... 903
ImplicitDeny ... 904
IotAnalyticsAction ... 905
IotEventsAction ... 906
IotSiteWiseAction ... 908
Job ... 909
JobExecution ... 913
JobExecutionsRetryConfig ... 915
JobExecutionsRolloutConfig ... 916
JobExecutionStatusDetails ... 917
JobExecutionSummary ... 918
JobExecutionSummaryForJob ... 920
JobExecutionSummaryForThing ... 921
JobProcessDetails ... 922
JobSummary ... 924
JobTemplateSummary ... 926
KafkaAction ... 928
KeyPair ... 929
KinesisAction ... 930
LambdaAction ... 931
LoggingOptionsPayload ... 932
LogTarget ... 933
LogTargetConfiguration ... 934
MachineLearningDetectionConfig ... 935
ManagedJobTemplateSummary ... 936
MetricDimension ... 938
MetricToRetain ... 939
MetricValue ... 940
MitigationAction ... 942
MitigationActionIdentifier ... 943
MitigationActionParams ... 944
MqttContext ... 946
NonCompliantResource ... 947
OpenSearchAction ... 948
OTAUpdateFile ... 949
OTAUpdateInfo ... 951
OTAUpdateSummary ... 954
OutgoingCertificate ... 955
PercentPair ... 957
Policy ... 958
PolicyVersion ... 959
PolicyVersionIdentifier ... 960
PresignedUrlConfig ... 961
ProvisioningHook ... 962
ProvisioningTemplateSummary ... 963
ProvisioningTemplateVersionSummary ... 965
PublishFindingToSnsParams ... 966
PutAssetPropertyValueEntry ... 967
PutItemInput ... 969
RateIncreaseCriteria ... 970
RegistrationConfig ... 971
RelatedResource ... 972
ReplaceDefaultPolicyVersionParams ... 973
RepublishAction ... 974
ResourceIdentifier ... 975
RetryCriteria ... 977
RoleAliasDescription ... 978
S3Action ... 980
S3Destination ... 981
S3Location ... 982
SalesforceAction ... 983
ScheduledAuditMetadata ... 984
SecurityProfileIdentifier ... 986
SecurityProfileTarget ... 987
SecurityProfileTargetMapping ... 988
ServerCertificateSummary ... 989
SigningProfileParameter ... 990
SigV4Authorization ... 991
SnsAction ... 992
SqsAction ... 993
StartSigningJobParameter ... 994
StatisticalThreshold ... 995
Statistics ... 996
StepFunctionsAction ... 998
Stream ... 999
StreamFile ... 1000
StreamInfo ... 1001
StreamSummary ... 1003
Tag ... 1004
TaskStatistics ... 1005
TaskStatisticsForAuditCheck ... 1007
TermsAggregation ... 1008
ThingAttribute ... 1009
ThingConnectivity ... 1011
ThingDocument ... 1012
ThingGroupDocument ... 1014
ThingGroupIndexingConfiguration ... 1016
ThingGroupMetadata ... 1017
ThingGroupProperties ... 1018
ThingIndexingConfiguration ... 1019
ThingTypeDefinition ... 1021
ThingTypeMetadata ... 1022
ThingTypeProperties ... 1023
TimeoutConfig ... 1024
TimestreamAction ... 1025
TimestreamDimension ... 1027
TimestreamTimestamp ... 1028
TlsContext ... 1029
TopicRule ... 1030
TopicRuleDestination ... 1032
TopicRuleDestinationConfiguration ... 1034
TopicRuleDestinationSummary ... 1035
TopicRuleListItem ... 1037
TopicRulePayload ... 1038
TransferData ... 1040
UpdateCACertificateParams ... 1042
UpdateDeviceCertificateParams ... 1043
ValidationError ... 1044
ViolationEvent ... 1045
ViolationEventAdditionalInfo ... 1047
ViolationEventOccurrenceRange ... 1048
VpcDestinationConfiguration ... 1049
VpcDestinationProperties ... 1050
VpcDestinationSummary ... 1051
AWS IoT data ... 1051
RetainedMessageSummary ... 1052
AWS IoT jobs data ... 1052
JobExecution ... 1054
JobExecutionState ... 1057
JobExecutionSummary ... 1058
AWS IoT Core Device Advisor ... 1059
DeviceUnderTest ... 1060
GroupResult ... 1061
SuiteDefinitionConfiguration ... 1062
SuiteDefinitionInformation ... 1064
SuiteRunConfiguration ... 1066
SuiteRunInformation ... 1067
TestCaseRun ... 1069
TestResult ... 1071
AWS IoT Fleet Hub ... 1071
ApplicationSummary ... 1072
AWS IoT Secure Tunneling ... 1073
ConnectionState ... 1074
DestinationConfig ... 1075
Tag ... 1076
TimeoutConfig ... 1077
Tunnel ... 1078
TunnelSummary ... 1080
Common Parameters ... 1082
AWS IoT
Welcome
AWS IoT
AWS IoT provides secure, bi-directional communication between Internet-connected devices (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate with, configure rules for data processing and integration with other services, organize resources associated with each device (Registry), configure logging, and create and manage policies and credentials to authenticate devices.
The service endpoints that expose this API are listed in AWS IoT Core Endpoints and Quotas. You must use the endpoint for the region that has the resources you want to access.
The service name used by AWS Signature Version 4 to sign the request is: execute-api.
For more information about how AWS IoT works, see the Developer Guide.
For information about how to use the credentials provider for AWS IoT, see Authorizing Direct Calls to AWS Services.
AWS IoT data
AWS IoT data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS 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 AWS cloud.
Find the endpoint address for actions in AWS IoT data by running this CLI command:
aws iot describe-endpoint --endpoint-type iot:Data-ATS
The service name used by AWSSignature Version 4 to sign requests is: iotdevicegateway.
AWS IoT jobs data
AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT Core. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.
Find the endpoint address for actions in the AWS IoT jobs data plane by running this CLI command:
aws iot describe-endpoint --endpoint-type iot:Jobs
The service name used by AWS Signature Version 4 to sign requests is: IotLaserThingJobManagerService.
To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.
AWS IoT Core Device Advisor
AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT Core. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job
AWS IoT Core Device Advisor
AWS IoT Core Device Advisor is a cloud-based, fully managed test capability for validating IoT devices during device software development. Device Advisor provides pre-built tests that you can use to validate IoT devices for reliable and secure connectivity with AWS IoT Core before deploying devices to production. By using Device Advisor, you can confirm that your devices can connect to AWS IoT Core, follow security best practices and, if applicable, receive software updates from IoT Device Management.
You can also download signed qualification reports to submit to the AWS Partner Network to get your device qualified for the AWS Partner Device Catalog without the need to send your device in and wait for it to be tested.
AWS IoT Fleet Hub
With Fleet Hub for AWS IoT Device Management you can build stand-alone web applications for monitoring the health of your device fleets.
AWS IoT Secure Tunneling
AWS IoT Secure Tunneling creates remote connections to devices deployed in the field.
For more information about how AWS IoT Secure Tunneling works, see AWS IoT Secure Tunneling.
Actions
The following actions are supported by AWS IoT:
• AcceptCertificateTransfer (p. 15)
• AddThingToBillingGroup (p. 17)
• AddThingToThingGroup (p. 20)
• AssociateTargetsWithJob (p. 23)
• AttachPolicy (p. 26)
• AttachPrincipalPolicy (p. 28)
• AttachSecurityProfile (p. 30)
• AttachThingPrincipal (p. 32)
• CancelAuditMitigationActionsTask (p. 34)
• CancelAuditTask (p. 36)
• CancelCertificateTransfer (p. 38)
• CancelDetectMitigationActionsTask (p. 40)
• CancelJob (p. 42)
• CancelJobExecution (p. 45)
• ClearDefaultAuthorizer (p. 48)
• ConfirmTopicRuleDestination (p. 50)
• CreateAuditSuppression (p. 52)
• CreateAuthorizer (p. 55)
• CreateBillingGroup (p. 59)
• CreateCertificateFromCsr (p. 62)
• CreateCustomMetric (p. 65)
• CreateDimension (p. 68)
• CreateDomainConfiguration (p. 71)
• CreateDynamicThingGroup (p. 75)
• CreateFleetMetric (p. 79)
• CreateJob (p. 84)
• CreateJobTemplate (p. 90)
• CreateKeysAndCertificate (p. 95)
• CreateMitigationAction (p. 98)
• CreateOTAUpdate (p. 101)
• CreatePolicy (p. 107)
• CreatePolicyVersion (p. 110)
• CreateProvisioningClaim (p. 113)
• CreateProvisioningTemplate (p. 116)
• CreateProvisioningTemplateVersion (p. 120)
• CreateRoleAlias (p. 123)
• CreateScheduledAudit (p. 126)
• CreateSecurityProfile (p. 129)
• CreateStream (p. 133)
• CreateThing (p. 137)
• CreateThingGroup (p. 140)
• CreateThingType (p. 143)
• CreateTopicRule (p. 146)
• CreateTopicRuleDestination (p. 154)
• DeleteAccountAuditConfiguration (p. 157)
• DeleteAuditSuppression (p. 159)
• DeleteAuthorizer (p. 161)
• DeleteBillingGroup (p. 163)
• DeleteCACertificate (p. 165)
• DeleteCertificate (p. 167)
• DeleteCustomMetric (p. 169)
• DeleteDimension (p. 171)
• DeleteDomainConfiguration (p. 173)
• DeleteDynamicThingGroup (p. 175)
• DeleteFleetMetric (p. 177)
• DeleteJob (p. 179)
• DeleteJobExecution (p. 182)
• DeleteJobTemplate (p. 185)
• DeleteMitigationAction (p. 187)
• DeleteOTAUpdate (p. 189)
• DeletePolicy (p. 191)
• DeletePolicyVersion (p. 193)
• DeleteProvisioningTemplate (p. 195)
• DeleteProvisioningTemplateVersion (p. 197)
• DeleteRegistrationCode (p. 199)
• DeleteRoleAlias (p. 201)
• DeleteScheduledAudit (p. 203)
• DeleteSecurityProfile (p. 205)
• DeleteStream (p. 207)
• DeleteThing (p. 209)
• DeleteThingGroup (p. 211)
• DeleteThingType (p. 213)
• DeleteTopicRule (p. 215)
• DeleteTopicRuleDestination (p. 217)
• DeleteV2LoggingLevel (p. 219)
• DeprecateThingType (p. 221)
• DescribeAccountAuditConfiguration (p. 223)
• DescribeAuditFinding (p. 225)
• DescribeAuditMitigationActionsTask (p. 228)
• DescribeAuditSuppression (p. 232)
• DescribeAuditTask (p. 235)
• DescribeAuthorizer (p. 238)
• DescribeBillingGroup (p. 240)
• DescribeCACertificate (p. 243)
• DescribeCertificate (p. 246)
• DescribeCustomMetric (p. 249)
• DescribeDefaultAuthorizer (p. 252)
• DescribeDetectMitigationActionsTask (p. 254)
• DescribeDimension (p. 257)
• DescribeDomainConfiguration (p. 260)
• DescribeEndpoint (p. 263)
• DescribeEventConfigurations (p. 265)
• DescribeFleetMetric (p. 267)
• DescribeIndex (p. 271)
• DescribeJob (p. 274)
• DescribeJobExecution (p. 277)
• DescribeJobTemplate (p. 280)
• DescribeManagedJobTemplate (p. 284)
• DescribeMitigationAction (p. 287)
• DescribeProvisioningTemplate (p. 290)
• DescribeProvisioningTemplateVersion (p. 293)
• DescribeRoleAlias (p. 296)
• DescribeScheduledAudit (p. 298)
• DescribeSecurityProfile (p. 301)
• DescribeStream (p. 305)
• DescribeThing (p. 308)
• DescribeThingGroup (p. 311)
• DescribeThingRegistrationTask (p. 315)
• DescribeThingType (p. 319)
• DetachPolicy (p. 322)
• DetachPrincipalPolicy (p. 324)
• DetachSecurityProfile (p. 326)
• DetachThingPrincipal (p. 328)
• DisableTopicRule (p. 330)
• EnableTopicRule (p. 332)
• GetBehaviorModelTrainingSummaries (p. 334)
• GetBucketsAggregation (p. 336)
• GetCardinality (p. 340)
• GetEffectivePolicies (p. 343)
• GetIndexingConfiguration (p. 346)
• GetJobDocument (p. 349)
• GetLoggingOptions (p. 351)
• GetOTAUpdate (p. 353)
• GetPercentiles (p. 357)
• GetPolicy (p. 360)
• GetPolicyVersion (p. 363)
• GetRegistrationCode (p. 366)
• GetStatistics (p. 368)
• GetTopicRule (p. 371)
• GetTopicRuleDestination (p. 379)
• GetV2LoggingOptions (p. 381)
• ListActiveViolations (p. 383)
• ListAttachedPolicies (p. 386)
• ListAuditFindings (p. 389)
• ListAuditMitigationActionsExecutions (p. 393)
• ListAuditMitigationActionsTasks (p. 396)
• ListAuditSuppressions (p. 399)
• ListAuditTasks (p. 402)
• ListAuthorizers (p. 405)
• ListBillingGroups (p. 408)
• ListCACertificates (p. 410)
• ListCertificates (p. 413)
• ListCertificatesByCA (p. 416)
• ListCustomMetrics (p. 419)
• ListDetectMitigationActionsExecutions (p. 421)
• ListDetectMitigationActionsTasks (p. 424)
• ListDimensions (p. 427)
• ListDomainConfigurations (p. 429)
• ListFleetMetrics (p. 432)
• ListIndices (p. 434)
• ListJobExecutionsForJob (p. 436)
• ListJobExecutionsForThing (p. 439)
• ListJobs (p. 442)
• ListJobTemplates (p. 445)
• ListManagedJobTemplates (p. 447)
• ListMitigationActions (p. 449)
• ListOTAUpdates (p. 451)
• ListOutgoingCertificates (p. 454)
• ListPolicies (p. 457)
• ListPolicyPrincipals (p. 460)
• ListPolicyVersions (p. 463)
• ListPrincipalPolicies (p. 465)
• ListPrincipalThings (p. 468)
• ListProvisioningTemplates (p. 471)
• ListProvisioningTemplateVersions (p. 473)
• ListRoleAliases (p. 476)
• ListScheduledAudits (p. 479)
• ListSecurityProfiles (p. 481)
• ListSecurityProfilesForTarget (p. 484)
• ListStreams (p. 487)
• ListTagsForResource (p. 489)
• ListTargetsForPolicy (p. 491)
• ListTargetsForSecurityProfile (p. 494)
• ListThingGroups (p. 496)
• ListThingGroupsForThing (p. 499)
• ListThingPrincipals (p. 501)
• ListThingRegistrationTaskReports (p. 504)
• ListThingRegistrationTasks (p. 507)
• ListThings (p. 509)
• ListThingsInBillingGroup (p. 512)
• ListThingsInThingGroup (p. 514)
• ListThingTypes (p. 516)
• ListTopicRuleDestinations (p. 519)
• ListTopicRules (p. 521)
• ListV2LoggingLevels (p. 523)
• ListViolationEvents (p. 525)
• PutVerificationStateOnViolation (p. 529)
• RegisterCACertificate (p. 531)
• RegisterCertificate (p. 535)
• RegisterCertificateWithoutCA (p. 538)
• RegisterThing (p. 541)
• RejectCertificateTransfer (p. 544)
• RemoveThingFromBillingGroup (p. 547)
• RemoveThingFromThingGroup (p. 550)
• ReplaceTopicRule (p. 553)
• SearchIndex (p. 561)
• SetDefaultAuthorizer (p. 565)
• SetDefaultPolicyVersion (p. 568)
• SetLoggingOptions (p. 570)
• SetV2LoggingLevel (p. 572)
• SetV2LoggingOptions (p. 574)
• StartAuditMitigationActionsTask (p. 576)
• StartDetectMitigationActionsTask (p. 579)
• StartOnDemandAuditTask (p. 582)
• StartThingRegistrationTask (p. 584)
• StopThingRegistrationTask (p. 587)
• TagResource (p. 589)
• TestAuthorization (p. 591)
• TestInvokeAuthorizer (p. 595)
• TransferCertificate (p. 599)
• UntagResource (p. 602)
• UpdateAccountAuditConfiguration (p. 604)
• UpdateAuditSuppression (p. 607)
• UpdateAuthorizer (p. 610)
• UpdateBillingGroup (p. 614)
• UpdateCACertificate (p. 617)
• UpdateCertificate (p. 620)
• UpdateCustomMetric (p. 623)
• UpdateDimension (p. 626)
• UpdateDomainConfiguration (p. 629)
• UpdateDynamicThingGroup (p. 632)
• UpdateEventConfigurations (p. 635)
• UpdateFleetMetric (p. 637)
• UpdateIndexingConfiguration (p. 641)
• UpdateJob (p. 644)
• UpdateMitigationAction (p. 648)
• UpdateProvisioningTemplate (p. 651)
• UpdateRoleAlias (p. 654)
• UpdateScheduledAudit (p. 657)
• UpdateSecurityProfile (p. 660)
• UpdateStream (p. 666)
• UpdateThing (p. 669)
• UpdateThingGroup (p. 672)
• UpdateThingGroupsForThing (p. 675)
• UpdateTopicRuleDestination (p. 678)
• ValidateSecurityProfileBehaviors (p. 681)
The following actions are supported by AWS IoT data:
• DeleteThingShadow (p. 684)
• GetRetainedMessage (p. 687)
• GetThingShadow (p. 690)
• ListNamedShadowsForThing (p. 693)
• ListRetainedMessages (p. 696)
• Publish (p. 699)
• UpdateThingShadow (p. 701)
The following actions are supported by AWS IoT jobs data:
• DescribeJobExecution (p. 704)
• GetPendingJobExecutions (p. 707)
• StartNextPendingJobExecution (p. 710)
• UpdateJobExecution (p. 713)
The following actions are supported by AWS IoT Core Device Advisor:
• CreateSuiteDefinition (p. 718)
• DeleteSuiteDefinition (p. 721)
• GetEndpoint (p. 723)
• GetSuiteDefinition (p. 725)
• GetSuiteRun (p. 728)
• GetSuiteRunReport (p. 732)
• ListSuiteDefinitions (p. 734)
• ListSuiteRuns (p. 736)
• ListTagsForResource (p. 739)
• StartSuiteRun (p. 741)
• StopSuiteRun (p. 744)
• TagResource (p. 746)
• UntagResource (p. 748)
• UpdateSuiteDefinition (p. 750)
AWS IoT
The following actions are supported by AWS IoT Fleet Hub:
• CreateApplication (p. 753)
• DeleteApplication (p. 756)
• DescribeApplication (p. 758)
• ListApplications (p. 762)
• ListTagsForResource (p. 764)
• TagResource (p. 766)
• UntagResource (p. 768)
• UpdateApplication (p. 770)
The following actions are supported by AWS IoT Secure Tunneling:
• CloseTunnel (p. 773)
• DescribeTunnel (p. 775)
• ListTagsForResource (p. 777)
• ListTunnels (p. 779)
• OpenTunnel (p. 781)
• TagResource (p. 784)
• UntagResource (p. 786)
AWS IoT
The following actions are supported by AWS IoT:
• AcceptCertificateTransfer (p. 15)
• AddThingToBillingGroup (p. 17)
• AddThingToThingGroup (p. 20)
• AssociateTargetsWithJob (p. 23)
• AttachPolicy (p. 26)
• AttachPrincipalPolicy (p. 28)
• AttachSecurityProfile (p. 30)
• AttachThingPrincipal (p. 32)
• CancelAuditMitigationActionsTask (p. 34)
• CancelAuditTask (p. 36)
• CancelCertificateTransfer (p. 38)
• CancelDetectMitigationActionsTask (p. 40)
• CancelJob (p. 42)
• CancelJobExecution (p. 45)
• ClearDefaultAuthorizer (p. 48)
• ConfirmTopicRuleDestination (p. 50)
• CreateAuditSuppression (p. 52)
• CreateAuthorizer (p. 55)
• CreateBillingGroup (p. 59)
• CreateCertificateFromCsr (p. 62)
• CreateCustomMetric (p. 65)
AWS IoT
• CreateDimension (p. 68)
• CreateDomainConfiguration (p. 71)
• CreateDynamicThingGroup (p. 75)
• CreateFleetMetric (p. 79)
• CreateJob (p. 84)
• CreateJobTemplate (p. 90)
• CreateKeysAndCertificate (p. 95)
• CreateMitigationAction (p. 98)
• CreateOTAUpdate (p. 101)
• CreatePolicy (p. 107)
• CreatePolicyVersion (p. 110)
• CreateProvisioningClaim (p. 113)
• CreateProvisioningTemplate (p. 116)
• CreateProvisioningTemplateVersion (p. 120)
• CreateRoleAlias (p. 123)
• CreateScheduledAudit (p. 126)
• CreateSecurityProfile (p. 129)
• CreateStream (p. 133)
• CreateThing (p. 137)
• CreateThingGroup (p. 140)
• CreateThingType (p. 143)
• CreateTopicRule (p. 146)
• CreateTopicRuleDestination (p. 154)
• DeleteAccountAuditConfiguration (p. 157)
• DeleteAuditSuppression (p. 159)
• DeleteAuthorizer (p. 161)
• DeleteBillingGroup (p. 163)
• DeleteCACertificate (p. 165)
• DeleteCertificate (p. 167)
• DeleteCustomMetric (p. 169)
• DeleteDimension (p. 171)
• DeleteDomainConfiguration (p. 173)
• DeleteDynamicThingGroup (p. 175)
• DeleteFleetMetric (p. 177)
• DeleteJob (p. 179)
• DeleteJobExecution (p. 182)
• DeleteJobTemplate (p. 185)
• DeleteMitigationAction (p. 187)
• DeleteOTAUpdate (p. 189)
• DeletePolicy (p. 191)
• DeletePolicyVersion (p. 193)
• DeleteProvisioningTemplate (p. 195)
• DeleteProvisioningTemplateVersion (p. 197)
• DeleteRegistrationCode (p. 199)
• DeleteRoleAlias (p. 201)
• DeleteScheduledAudit (p. 203)
AWS IoT
• DeleteSecurityProfile (p. 205)
• DeleteStream (p. 207)
• DeleteThing (p. 209)
• DeleteThingGroup (p. 211)
• DeleteThingType (p. 213)
• DeleteTopicRule (p. 215)
• DeleteTopicRuleDestination (p. 217)
• DeleteV2LoggingLevel (p. 219)
• DeprecateThingType (p. 221)
• DescribeAccountAuditConfiguration (p. 223)
• DescribeAuditFinding (p. 225)
• DescribeAuditMitigationActionsTask (p. 228)
• DescribeAuditSuppression (p. 232)
• DescribeAuditTask (p. 235)
• DescribeAuthorizer (p. 238)
• DescribeBillingGroup (p. 240)
• DescribeCACertificate (p. 243)
• DescribeCertificate (p. 246)
• DescribeCustomMetric (p. 249)
• DescribeDefaultAuthorizer (p. 252)
• DescribeDetectMitigationActionsTask (p. 254)
• DescribeDimension (p. 257)
• DescribeDomainConfiguration (p. 260)
• DescribeEndpoint (p. 263)
• DescribeEventConfigurations (p. 265)
• DescribeFleetMetric (p. 267)
• DescribeIndex (p. 271)
• DescribeJob (p. 274)
• DescribeJobExecution (p. 277)
• DescribeJobTemplate (p. 280)
• DescribeManagedJobTemplate (p. 284)
• DescribeMitigationAction (p. 287)
• DescribeProvisioningTemplate (p. 290)
• DescribeProvisioningTemplateVersion (p. 293)
• DescribeRoleAlias (p. 296)
• DescribeScheduledAudit (p. 298)
• DescribeSecurityProfile (p. 301)
• DescribeStream (p. 305)
• DescribeThing (p. 308)
• DescribeThingGroup (p. 311)
• DescribeThingRegistrationTask (p. 315)
• DescribeThingType (p. 319)
• DetachPolicy (p. 322)
• DetachPrincipalPolicy (p. 324)
• DetachSecurityProfile (p. 326)
• DetachThingPrincipal (p. 328)
AWS IoT
• DisableTopicRule (p. 330)
• EnableTopicRule (p. 332)
• GetBehaviorModelTrainingSummaries (p. 334)
• GetBucketsAggregation (p. 336)
• GetCardinality (p. 340)
• GetEffectivePolicies (p. 343)
• GetIndexingConfiguration (p. 346)
• GetJobDocument (p. 349)
• GetLoggingOptions (p. 351)
• GetOTAUpdate (p. 353)
• GetPercentiles (p. 357)
• GetPolicy (p. 360)
• GetPolicyVersion (p. 363)
• GetRegistrationCode (p. 366)
• GetStatistics (p. 368)
• GetTopicRule (p. 371)
• GetTopicRuleDestination (p. 379)
• GetV2LoggingOptions (p. 381)
• ListActiveViolations (p. 383)
• ListAttachedPolicies (p. 386)
• ListAuditFindings (p. 389)
• ListAuditMitigationActionsExecutions (p. 393)
• ListAuditMitigationActionsTasks (p. 396)
• ListAuditSuppressions (p. 399)
• ListAuditTasks (p. 402)
• ListAuthorizers (p. 405)
• ListBillingGroups (p. 408)
• ListCACertificates (p. 410)
• ListCertificates (p. 413)
• ListCertificatesByCA (p. 416)
• ListCustomMetrics (p. 419)
• ListDetectMitigationActionsExecutions (p. 421)
• ListDetectMitigationActionsTasks (p. 424)
• ListDimensions (p. 427)
• ListDomainConfigurations (p. 429)
• ListFleetMetrics (p. 432)
• ListIndices (p. 434)
• ListJobExecutionsForJob (p. 436)
• ListJobExecutionsForThing (p. 439)
• ListJobs (p. 442)
• ListJobTemplates (p. 445)
• ListManagedJobTemplates (p. 447)
• ListMitigationActions (p. 449)
• ListOTAUpdates (p. 451)
• ListOutgoingCertificates (p. 454)
• ListPolicies (p. 457)
AWS IoT
• ListPolicyPrincipals (p. 460)
• ListPolicyVersions (p. 463)
• ListPrincipalPolicies (p. 465)
• ListPrincipalThings (p. 468)
• ListProvisioningTemplates (p. 471)
• ListProvisioningTemplateVersions (p. 473)
• ListRoleAliases (p. 476)
• ListScheduledAudits (p. 479)
• ListSecurityProfiles (p. 481)
• ListSecurityProfilesForTarget (p. 484)
• ListStreams (p. 487)
• ListTagsForResource (p. 489)
• ListTargetsForPolicy (p. 491)
• ListTargetsForSecurityProfile (p. 494)
• ListThingGroups (p. 496)
• ListThingGroupsForThing (p. 499)
• ListThingPrincipals (p. 501)
• ListThingRegistrationTaskReports (p. 504)
• ListThingRegistrationTasks (p. 507)
• ListThings (p. 509)
• ListThingsInBillingGroup (p. 512)
• ListThingsInThingGroup (p. 514)
• ListThingTypes (p. 516)
• ListTopicRuleDestinations (p. 519)
• ListTopicRules (p. 521)
• ListV2LoggingLevels (p. 523)
• ListViolationEvents (p. 525)
• PutVerificationStateOnViolation (p. 529)
• RegisterCACertificate (p. 531)
• RegisterCertificate (p. 535)
• RegisterCertificateWithoutCA (p. 538)
• RegisterThing (p. 541)
• RejectCertificateTransfer (p. 544)
• RemoveThingFromBillingGroup (p. 547)
• RemoveThingFromThingGroup (p. 550)
• ReplaceTopicRule (p. 553)
• SearchIndex (p. 561)
• SetDefaultAuthorizer (p. 565)
• SetDefaultPolicyVersion (p. 568)
• SetLoggingOptions (p. 570)
• SetV2LoggingLevel (p. 572)
• SetV2LoggingOptions (p. 574)
• StartAuditMitigationActionsTask (p. 576)
• StartDetectMitigationActionsTask (p. 579)
• StartOnDemandAuditTask (p. 582)
• StartThingRegistrationTask (p. 584)
AWS IoT
• StopThingRegistrationTask (p. 587)
• TagResource (p. 589)
• TestAuthorization (p. 591)
• TestInvokeAuthorizer (p. 595)
• TransferCertificate (p. 599)
• UntagResource (p. 602)
• UpdateAccountAuditConfiguration (p. 604)
• UpdateAuditSuppression (p. 607)
• UpdateAuthorizer (p. 610)
• UpdateBillingGroup (p. 614)
• UpdateCACertificate (p. 617)
• UpdateCertificate (p. 620)
• UpdateCustomMetric (p. 623)
• UpdateDimension (p. 626)
• UpdateDomainConfiguration (p. 629)
• UpdateDynamicThingGroup (p. 632)
• UpdateEventConfigurations (p. 635)
• UpdateFleetMetric (p. 637)
• UpdateIndexingConfiguration (p. 641)
• UpdateJob (p. 644)
• UpdateMitigationAction (p. 648)
• UpdateProvisioningTemplate (p. 651)
• UpdateRoleAlias (p. 654)
• UpdateScheduledAudit (p. 657)
• UpdateSecurityProfile (p. 660)
• UpdateStream (p. 666)
• UpdateThing (p. 669)
• UpdateThingGroup (p. 672)
• UpdateThingGroupsForThing (p. 675)
• UpdateTopicRuleDestination (p. 678)
• ValidateSecurityProfileBehaviors (p. 681)
AcceptCertificateTransfer
AcceptCertificateTransfer
Service: AWS IoT
Accepts a pending certificate transfer. The default state of the certificate is INACTIVE.
To check for pending certificate transfers, call ListCertificates (p. 413) to enumerate your certificates.
Requires permission to access the AcceptCertificateTransfer action.
Request Syntax
PATCH /accept-certificate-transfer/certificateId?setAsActive=setAsActive HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
certificateId (p. 15)
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) Length Constraints: Fixed length of 64.
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes setAsActive (p. 15)
Specifies whether the certificate is active.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400
AcceptCertificateTransfer
ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ServiceUnavailableException
The service is temporarily unavailable.
HTTP Status Code: 503 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
TransferAlreadyCompletedException
You can't revert the certificate transfer because the transfer is already complete.
HTTP Status Code: 410 UnauthorizedException
You are not authorized to perform this operation.
HTTP Status Code: 401
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AddThingToBillingGroup
AddThingToBillingGroup
Service: AWS IoT
Adds a thing to a billing group.
Requires permission to access the AddThingToBillingGroup action.
Request Syntax
PUT /billing-groups/addThingToBillingGroup HTTP/1.1 Content-type: application/json
{
"billingGroupArn": "string", "billingGroupName": "string", "thingArn": "string",
"thingName": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
billingGroupArn (p. 17)
The ARN of the billing group.
Type: String Required: No
billingGroupName (p. 17)
The name of the billing group.
NoteThis call is asynchronous. It might take several seconds for the detachment to propagate.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: No thingArn (p. 17)
The ARN of the thing to be added to the billing group.
Type: String Required: No thingName (p. 17)
The name of the thing to be added to the billing group.
AddThingToBillingGroup
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AddThingToBillingGroup
AddThingToThingGroup
AddThingToThingGroup
Service: AWS IoT
Adds a thing to a thing group.
Requires permission to access the AddThingToThingGroup action.
Request Syntax
PUT /thing-groups/addThingToThingGroup HTTP/1.1 Content-type: application/json
{ "overrideDynamicGroups": boolean, "thingArn": "string",
"thingGroupArn": "string", "thingGroupName": "string", "thingName": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
overrideDynamicGroups (p. 20)
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
Type: Boolean Required: No thingArn (p. 20)
The ARN of the thing to add to a group.
Type: String Required: No thingGroupArn (p. 20)
The ARN of the group to which you are adding a thing.
Type: String Required: No thingGroupName (p. 20)
The name of the group to which you are adding a thing.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
AddThingToThingGroup
Pattern: [a-zA-Z0-9:_-]+
Required: No thingName (p. 20)
The name of the thing to add to a group.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: No
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
AddThingToThingGroup
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AssociateTargetsWithJob
AssociateTargetsWithJob
Service: AWS IoT
Associates a group with a continuous job. The following criteria must be met:
• The job must have been created with the targetSelection field set to "CONTINUOUS".
• The job status must currently be "IN_PROGRESS".
• The total number of targets associated with a job must not exceed 100.
Requires permission to access the AssociateTargetsWithJob action.
Request Syntax
POST /jobs/jobId/targets?namespaceId=namespaceId HTTP/1.1 Content-type: application/json
{
"comment": "string", "targets": [ "string" ] }
URI Request Parameters
The request uses the following URI parameters.
jobId (p. 23)
The unique identifier you assigned to this job when it was created.
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern: [a-zA-Z0-9_-]+
Required: Yes namespaceId (p. 23)
The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, AWS IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
Note
The namespaceId feature is in public preview.
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern: [a-zA-Z0-9_-]+
Request Body
The request accepts the following data in JSON format.
comment (p. 23)
An optional comment string describing why the job was associated with the targets.
AssociateTargetsWithJob
Type: String
Length Constraints: Maximum length of 2028.
Pattern: [^\p{C}]+
Required: No targets (p. 23)
A list of thing group ARNs that define the targets of the job.
Type: Array of strings
Array Members: Minimum number of 1 item.
Length Constraints: Maximum length of 2048.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json { "description": "string", "jobArn": "string", "jobId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
description (p. 24)
A short text description of the job.
Type: String
Length Constraints: Maximum length of 2028.
Pattern: [^\p{C}]+
jobArn (p. 24)
An ARN identifying the job.
Type: String jobId (p. 24)
The unique identifier you assigned to this job when it was created.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern: [a-zA-Z0-9_-]+
AssociateTargetsWithJob
Errors
InvalidRequestException The request is not valid.
HTTP Status Code: 400 LimitExceededException
A limit has been exceeded.
HTTP Status Code: 410 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ServiceUnavailableException
The service is temporarily unavailable.
HTTP Status Code: 503 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachPolicy
AttachPolicy
Service: AWS IoT
Attaches the specified policy to the specified principal (certificate or other credential).
Requires permission to access the AttachPolicy action.
Request Syntax
PUT /target-policies/policyName HTTP/1.1 Content-type: application/json
{
"target": "string"
}
URI Request Parameters
The request uses the following URI parameters.
policyName (p. 26)
The name of the policy to attach.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
target (p. 26)
The identity to which the policy is attached. For example, a thing group or a certificate.
Type: String Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
AttachPolicy
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400 LimitExceededException
A limit has been exceeded.
HTTP Status Code: 410 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ServiceUnavailableException
The service is temporarily unavailable.
HTTP Status Code: 503 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400 UnauthorizedException
You are not authorized to perform this operation.
HTTP Status Code: 401
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachPrincipalPolicy
AttachPrincipalPolicy
Service: AWS IoT
Attaches the specified policy to the specified principal (certificate or other credential).
Note: This action is deprecated. Please use AttachPolicy (p. 26) instead.
Requires permission to access the AttachPrincipalPolicy action.
Request Syntax
PUT /principal-policies/policyName HTTP/1.1 x-amzn-iot-principal: principal
URI Request Parameters
The request uses the following URI parameters.
policyName (p. 28) The policy name.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [\w+=,.@-]+
Required: Yes principal (p. 28)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500
AttachPrincipalPolicy
InvalidRequestException The request is not valid.
HTTP Status Code: 400 LimitExceededException
A limit has been exceeded.
HTTP Status Code: 410 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ServiceUnavailableException
The service is temporarily unavailable.
HTTP Status Code: 503 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400 UnauthorizedException
You are not authorized to perform this operation.
HTTP Status Code: 401
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachSecurityProfile
AttachSecurityProfile
Service: AWS IoT
Associates a Device Defender security profile with a thing group or this account. Each thing group or account can have up to five security profiles associated with it.
Requires permission to access the AttachSecurityProfile action.
Request Syntax
PUT /security-profiles/securityProfileName/targets?
securityProfileTargetArn=securityProfileTargetArn HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
securityProfileName (p. 30)
The security profile that is attached.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
securityProfileTargetArn (p. 30)
The ARN of the target (thing group) to which the security profile is attached.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
AttachSecurityProfile
HTTP Status Code: 400 LimitExceededException
A limit has been exceeded.
HTTP Status Code: 410 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400 VersionConflictException
An exception thrown when the version of an entity specified with the expectedVersion parameter does not match the latest version in the system.
HTTP Status Code: 409
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachThingPrincipal
AttachThingPrincipal
Service: AWS IoT
Attaches the specified principal to the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Requires permission to access the AttachThingPrincipal action.
Request Syntax
PUT /things/thingName/principals HTTP/1.1 x-amzn-principal: principal
URI Request Parameters
The request uses the following URI parameters.
principal (p. 32)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Required: Yes thingName (p. 32)
The name of the thing.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
AttachThingPrincipal
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ServiceUnavailableException
The service is temporarily unavailable.
HTTP Status Code: 503 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400 UnauthorizedException
You are not authorized to perform this operation.
HTTP Status Code: 401
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CancelAuditMitigationActionsTask
CancelAuditMitigationActionsTask
Service: AWS IoT
Cancels a mitigation action task that is in progress. If the task is not in progress, an InvalidRequestException occurs.
Requires permission to access the CancelAuditMitigationActionsTask action.
Request Syntax
PUT /audit/mitigationactions/tasks/taskId/cancel HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
taskId (p. 34)
The unique identifier for the task that you want to cancel.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
CancelAuditMitigationActionsTask
HTTP Status Code: 404 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CancelAuditTask
CancelAuditTask
Service: AWS IoT
Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in progress, an "InvalidRequestException" occurs.
Requires permission to access the CancelAuditTask action.
Request Syntax
PUT /audit/tasks/taskId/cancel HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
taskId (p. 36)
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
Length Constraints: Minimum length of 1. Maximum length of 40.
Pattern: [a-zA-Z0-9\-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
CancelAuditTask
HTTP Status Code: 404 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CancelCertificateTransfer
CancelCertificateTransfer
Service: AWS IoT
Cancels a pending transfer for the specified certificate.
Note Only the transfer source account can use this operation to cancel a transfer. (Transfer destinations can use RejectCertificateTransfer (p. 544) instead.) After transfer, AWS IoT returns the certificate to the source account in the INACTIVE state. After the destination account has accepted the transfer, the transfer cannot be cancelled.
After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.
Requires permission to access the CancelCertificateTransfer action.
Request Syntax
PATCH /cancel-certificate-transfer/certificateId HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
certificateId (p. 38)
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.) Length Constraints: Fixed length of 64.
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
CancelCertificateTransfer
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404 ServiceUnavailableException
The service is temporarily unavailable.
HTTP Status Code: 503 ThrottlingException
The rate exceeds the limit.
HTTP Status Code: 400
TransferAlreadyCompletedException
You can't revert the certificate transfer because the transfer is already complete.
HTTP Status Code: 410 UnauthorizedException
You are not authorized to perform this operation.
HTTP Status Code: 401
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CancelDetectMitigationActionsTask
CancelDetectMitigationActionsTask
Service: AWS IoT
Cancels a Device Defender ML Detect mitigation action.
Requires permission to access the CancelDetectMitigationActionsTask action.
Request Syntax
PUT /detect/mitigationactions/tasks/taskId/cancel HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
taskId (p. 40)
The unique identifier of the task.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
An unexpected error has occurred.
HTTP Status Code: 500 InvalidRequestException
The request is not valid.
HTTP Status Code: 400 ResourceNotFoundException
The specified resource does not exist.
HTTP Status Code: 404