Iot Api
Iot Api
API Reference
AWS IoT API Reference
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.
AWS IoT API Reference
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 ................................................................................................... 16
AddThingToBillingGroup .................................................................................................... 18
AddThingToThingGroup ..................................................................................................... 21
AssociateTargetsWithJob ................................................................................................... 24
AttachPolicy .................................................................................................................... 27
AttachPrincipalPolicy ........................................................................................................ 29
AttachSecurityProfile ........................................................................................................ 31
AttachThingPrincipal ......................................................................................................... 33
CancelAuditMitigationActionsTask ....................................................................................... 35
CancelAuditTask ............................................................................................................... 37
CancelCertificateTransfer ................................................................................................... 39
CancelDetectMitigationActionsTask ..................................................................................... 41
CancelJob ........................................................................................................................ 43
CancelJobExecution .......................................................................................................... 46
ClearDefaultAuthorizer ...................................................................................................... 49
ConfirmTopicRuleDestination ............................................................................................. 51
CreateAuditSuppression ..................................................................................................... 53
CreateAuthorizer .............................................................................................................. 56
CreateBillingGroup ............................................................................................................ 60
CreateCertificateFromCsr ................................................................................................... 63
CreateCustomMetric .......................................................................................................... 66
CreateDimension .............................................................................................................. 69
CreateDomainConfiguration ............................................................................................... 72
CreateDynamicThingGroup ................................................................................................ 76
CreateFleetMetric ............................................................................................................. 80
CreateJob ........................................................................................................................ 85
CreateJobTemplate ........................................................................................................... 92
CreateKeysAndCertificate ................................................................................................... 97
CreateMitigationAction .................................................................................................... 100
CreateOTAUpdate ........................................................................................................... 103
CreatePackage ................................................................................................................ 109
CreatePackageVersion ..................................................................................................... 112
CreatePolicy ................................................................................................................... 116
CreatePolicyVersion ......................................................................................................... 119
CreateProvisioningClaim .................................................................................................. 122
CreateProvisioningTemplate ............................................................................................. 125
CreateProvisioningTemplateVersion ................................................................................... 129
CreateRoleAlias .............................................................................................................. 132
CreateScheduledAudit ..................................................................................................... 135
CreateSecurityProfile ....................................................................................................... 138
CreateStream ................................................................................................................. 142
CreateThing ................................................................................................................... 146
CreateThingGroup ........................................................................................................... 149
CreateThingType ............................................................................................................. 152
CreateTopicRule .............................................................................................................. 155
iii
AWS IoT API Reference
iv
AWS IoT API Reference
v
AWS IoT API Reference
vi
AWS IoT API Reference
vii
AWS IoT API Reference
viii
AWS IoT API Reference
ix
AWS IoT API Reference
x
AWS IoT API Reference
xi
AWS IoT API Reference
xii
AWS IoT API Reference
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.
Find the endpoint address for actions in AWS IoT data by running this CLI command:
The service name used by AWSSignature Version 4 to sign requests is: iotdevicegateway.
Find the endpoint address for actions in the AWS IoT jobs data plane by running this CLI command:
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.
1
AWS IoT API Reference
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
For more information about how AWS IoT Secure Tunneling works, see AWS IoT Secure Tunneling.
2
AWS IoT API Reference
Actions
The following actions are supported by AWS IoT:
3
AWS IoT API Reference
4
AWS IoT API Reference
5
AWS IoT API Reference
6
AWS IoT API Reference
7
AWS IoT API Reference
The following actions are supported by AWS IoT Core Device Advisor:
8
AWS IoT API Reference
AWS IoT
AWS IoT
The following actions are supported by AWS IoT:
9
AWS IoT API Reference
AWS IoT
10
AWS IoT API Reference
AWS IoT
11
AWS IoT API Reference
AWS IoT
12
AWS IoT API Reference
AWS IoT
13
AWS IoT API Reference
AWS IoT
14
AWS IoT API Reference
AWS IoT
15
AWS IoT API Reference
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. 440) to enumerate your certificates.
Request Syntax
PATCH /accept-certificate-transfer/certificateId?setAsActive=setAsActive HTTP/1.1
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
setAsActive (p. 16)
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
16
AWS IoT API Reference
AcceptCertificateTransfer
ResourceNotFoundException
You can't revert the certificate transfer because the transfer is already complete.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
17
AWS IoT API Reference
AddThingToBillingGroup
AddThingToBillingGroup
Service: AWS IoT
Request Syntax
PUT /billing-groups/addThingToBillingGroup HTTP/1.1
Content-type: application/json
{
"billingGroupArn": "string",
"billingGroupName": "string",
"thingArn": "string",
"thingName": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
billingGroupName (p. 18)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingArn (p. 18)
Type: String
Required: No
thingName (p. 18)
18
AWS IoT API Reference
AddThingToBillingGroup
Type: String
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
19
AWS IoT API Reference
AddThingToBillingGroup
20
AWS IoT API Reference
AddThingToThingGroup
AddThingToThingGroup
Service: AWS IoT
Request Syntax
PUT /thing-groups/addThingToThingGroup HTTP/1.1
Content-type: application/json
{
"overrideDynamicGroups": boolean,
"thingArn": "string",
"thingGroupArn": "string",
"thingGroupName": "string",
"thingName": "string"
}
Request Body
The request accepts the following data in JSON format.
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. 21)
Type: String
Required: No
thingGroupArn (p. 21)
Type: String
Required: No
thingGroupName (p. 21)
Type: String
21
AWS IoT API Reference
AddThingToThingGroup
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingName (p. 21)
Type: String
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
22
AWS IoT API Reference
AddThingToThingGroup
23
AWS IoT API Reference
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.
Request Syntax
POST /jobs/jobId/targets?namespaceId=namespaceId HTTP/1.1
Content-type: application/json
{
"comment": "string",
"targets": [ "string" ]
}
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
namespaceId (p. 24)
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.
Pattern: [a-zA-Z0-9_-]+
Request Body
The request accepts the following data in JSON format.
An optional comment string describing why the job was associated with the targets.
24
AWS IoT API Reference
AssociateTargetsWithJob
Type: String
Pattern: [^\p{C}]+
Required: No
targets (p. 24)
A list of thing group ARNs that define the targets of the job.
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.
Type: String
Pattern: [^\p{C}]+
jobArn (p. 25)
Type: String
jobId (p. 25)
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
25
AWS IoT API Reference
AssociateTargetsWithJob
Errors
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
26
AWS IoT API Reference
AttachPolicy
AttachPolicy
Service: AWS IoT
Attaches the specified policy to the specified principal (certificate or other credential).
Request Syntax
PUT /target-policies/policyName HTTP/1.1
Content-type: application/json
{
"target": "string"
}
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
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
27
AWS IoT API Reference
AttachPolicy
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
28
AWS IoT API Reference
AttachPrincipalPolicy
AttachPrincipalPolicy
Service: AWS IoT
Attaches the specified policy to the specified principal (certificate or other credential).
Note: This action is deprecated and works as expected for backward compatibility, but we won't add
enhancements. Use AttachPolicy (p. 27) instead.
Request Syntax
PUT /principal-policies/policyName HTTP/1.1
x-amzn-iot-principal: principal
Pattern: [\w+=,.@-]+
Required: Yes
principal (p. 29)
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
29
AWS IoT API Reference
AttachPrincipalPolicy
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
30
AWS IoT API Reference
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.
Request Syntax
PUT /security-profiles/securityProfileName/targets?
securityProfileTargetArn=securityProfileTargetArn HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
securityProfileTargetArn (p. 31)
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
31
AWS IoT API Reference
AttachSecurityProfile
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
32
AWS IoT API Reference
AttachThingPrincipal
AttachThingPrincipal
Service: AWS IoT
Attaches the specified principal to the specified thing. A principal can be X.509 certificates, Amazon
Cognito identities or federated identities.
Request Syntax
PUT /things/thingName/principals HTTP/1.1
x-amzn-principal: principal
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an
Amazon Cognito ID.
Required: Yes
thingName (p. 33)
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
33
AWS IoT API Reference
AttachThingPrincipal
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
34
AWS IoT API Reference
CancelAuditMitigationActionsTask
CancelAuditMitigationActionsTask
Service: AWS IoT
Cancels a mitigation action task that is in progress. If the task is not in progress, an
InvalidRequestException occurs.
Request Syntax
PUT /audit/mitigationactions/tasks/taskId/cancel HTTP/1.1
The unique identifier for the task that you want to cancel.
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
35
AWS IoT API Reference
CancelAuditMitigationActionsTask
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
36
AWS IoT API Reference
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.
Request Syntax
PUT /audit/tasks/taskId/cancel HTTP/1.1
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
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
37
AWS IoT API Reference
CancelAuditTask
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
38
AWS IoT API Reference
CancelCertificateTransfer
CancelCertificateTransfer
Service: AWS IoT
Note Only the transfer source account can use this operation to cancel a transfer. (Transfer destinations
can use RejectCertificateTransfer (p. 581) 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.
Request Syntax
PATCH /cancel-certificate-transfer/certificateId HTTP/1.1
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
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
39
AWS IoT API Reference
CancelCertificateTransfer
You can't revert the certificate transfer because the transfer is already complete.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
40
AWS IoT API Reference
CancelDetectMitigationActionsTask
CancelDetectMitigationActionsTask
Service: AWS IoT
Request Syntax
PUT /detect/mitigationactions/tasks/taskId/cancel HTTP/1.1
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
41
AWS IoT API Reference
CancelDetectMitigationActionsTask
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
42
AWS IoT API Reference
CancelJob
CancelJob
Service: AWS IoT
Cancels a job.
Request Syntax
PUT /jobs/jobId/cancel?force=force HTTP/1.1
Content-type: application/json
{
"comment": "string",
"reasonCode": "string"
}
(Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise
only job executions with status "QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable
to update the job execution status. Use caution and ensure that each device executing a job which is
canceled is able to recover to a valid state.
jobId (p. 43)
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [^\p{C}]+
Required: No
reasonCode (p. 43)
(Optional)A reason code string that explains why the job was canceled.
43
AWS IoT API Reference
CancelJob
Type: String
Pattern: [\p{Upper}\p{Digit}_]+
Required: No
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.
Type: String
Pattern: [^\p{C}]+
jobArn (p. 44)
Type: String
jobId (p. 44)
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Errors
InvalidRequestException
44
AWS IoT API Reference
CancelJob
LimitExceededException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
45
AWS IoT API Reference
CancelJobExecution
CancelJobExecution
Service: AWS IoT
Request Syntax
PUT /things/thingName/jobs/jobId/cancel?force=force HTTP/1.1
Content-type: application/json
{
"expectedVersion": number,
"statusDetails": {
"string" : "string"
}
}
(Optional) If true the job execution will be canceled if it has status IN_PROGRESS or QUEUED,
otherwise the job execution will be canceled only if it has status QUEUED. If you attempt
to cancel a job execution that is IN_PROGRESS, and you do not set force to true, then an
InvalidStateTransitionException will be thrown. The default is false.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the
job execution status. Use caution and ensure that the device is able to recover to a valid state.
jobId (p. 46)
Pattern: [a-zA-Z0-9_-]+
Required: Yes
thingName (p. 46)
The name of the thing whose execution of the job will be canceled.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
(Optional) The expected current version of the job execution. Each time you update the job
execution, its version is incremented. If the version of the job execution stored in Jobs does not
46
AWS IoT API Reference
CancelJobExecution
match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains
the current job execution status data is returned. (This makes it unnecessary to perform a separate
DescribeJobExecution request in order to obtain the job execution status data.)
Type: Long
Required: No
statusDetails (p. 46)
A collection of name/value pairs that describe the status of the job execution. If not specified, the
statusDetails are unchanged. You can specify at most 10 name/value pairs.
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
InvalidRequestException
An attempt was made to change to an invalid state, for example by deleting a job or a job execution
which is "IN_PROGRESS" without setting the force parameter.
47
AWS IoT API Reference
CancelJobExecution
ThrottlingException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
48
AWS IoT API Reference
ClearDefaultAuthorizer
ClearDefaultAuthorizer
Service: AWS IoT
Request Syntax
DELETE /default-authorizer HTTP/1.1
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
49
AWS IoT API Reference
ClearDefaultAuthorizer
UnauthorizedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
50
AWS IoT API Reference
ConfirmTopicRuleDestination
ConfirmTopicRuleDestination
Service: AWS IoT
Confirms a topic rule destination. When you create a rule requiring a destination, AWS IoT sends a
confirmation message to the endpoint or base address you specify. The message includes a token which
you pass back when calling ConfirmTopicRuleDestination to confirm that you own or have access
to the endpoint.
Request Syntax
GET /confirmdestination/confirmationToken+ HTTP/1.1
The token used to confirm ownership or access to the topic rule confirmation URL.
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
51
AWS IoT API Reference
ConfirmTopicRuleDestination
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
52
AWS IoT API Reference
CreateAuditSuppression
CreateAuditSuppression
Service: AWS IoT
Request Syntax
POST /audit/suppressions/create HTTP/1.1
Content-type: application/json
{
"checkName": "string",
"clientRequestToken": "string",
"description": "string",
"expirationDate": number,
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"suppressIndefinitely": boolean
}
Request Body
The request accepts the following data in JSON format.
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Type: String
Required: Yes
clientRequestToken (p. 53)
Each audit supression must have a unique client request token. If you try to create a new audit
suppression with the same token as one that already exists, an exception occurs. If you omit this
value, AWS SDKs will automatically generate a unique client request.
53
AWS IoT API Reference
CreateAuditSuppression
Type: String
Pattern: ^[a-zA-Z0-9-_]+$
Required: Yes
description (p. 53)
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
expirationDate (p. 53)
Type: Timestamp
Required: No
resourceIdentifier (p. 53)
Required: Yes
suppressIndefinitely (p. 53)
Type: Boolean
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
54
AWS IoT API Reference
CreateAuditSuppression
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
55
AWS IoT API Reference
CreateAuthorizer
CreateAuthorizer
Service: AWS IoT
Creates an authorizer.
Request Syntax
POST /authorizer/authorizerName HTTP/1.1
Content-type: application/json
{
"authorizerFunctionArn": "string",
"enableCachingForHttp": boolean,
"signingDisabled": boolean,
"status": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"tokenKeyName": "string",
"tokenSigningPublicKeys": {
"string" : "string"
}
}
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: Yes
56
AWS IoT API Reference
CreateAuthorizer
When true, the result from the authorizer’s Lambda function is cached for clients that use
persistent HTTP connections. The results are cached for the time specified by the Lambda function
in refreshAfterInSeconds. This value does not affect authorization of clients that use MQTT
connections.
Type: Boolean
Required: No
signingDisabled (p. 56)
Specifies whether AWS IoT validates the token signature in an authorization request.
Type: Boolean
Required: No
status (p. 56)
Type: String
Required: No
tags (p. 56)
Required: No
tokenKeyName (p. 56)
The name of the token key used to extract the token from the HTTP headers.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
tokenSigningPublicKeys (p. 56)
The public keys used to verify the digital signature returned by your custom authentication service.
57
AWS IoT API Reference
CreateAuthorizer
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizerArn": "string",
"authorizerName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Type: String
Pattern: [\w=,@-]+
Errors
InternalFailureException
58
AWS IoT API Reference
CreateAuthorizer
ResourceAlreadyExistsException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
59
AWS IoT API Reference
CreateBillingGroup
CreateBillingGroup
Service: AWS IoT
Request Syntax
POST /billing-groups/billingGroupName HTTP/1.1
Content-type: application/json
{
"billingGroupProperties": {
"billingGroupDescription": "string"
},
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: No
tags (p. 60)
Required: No
60
AWS IoT API Reference
CreateBillingGroup
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"billingGroupArn": "string",
"billingGroupId": "string",
"billingGroupName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
billingGroupId (p. 61)
Type: String
Pattern: [a-zA-Z0-9\-]+
billingGroupName (p. 61)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
61
AWS IoT API Reference
CreateBillingGroup
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
62
AWS IoT API Reference
CreateCertificateFromCsr
CreateCertificateFromCsr
Service: AWS IoT
You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into
that directory, and then specifying that directory on the command line. The following commands show
how to create a batch of certificates given a batch of CSRs. In the following commands, we assume that a
set of CSRs are located inside of the directory my-csr-directory:
This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot
create-certificate-from-csr AWS CLI command to create a certificate for the corresponding CSR.
You can also run the aws iot create-certificate-from-csr part of the command in parallel to
speed up the certificate creation process:
On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is:
On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is:
Request Syntax
POST /certificates?setAsActive=setAsActive HTTP/1.1
Content-type: application/json
{
"certificateSigningRequest": "string"
}
63
AWS IoT API Reference
CreateCertificateFromCsr
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateArn": "string",
"certificateId": "string",
"certificatePem": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a principal for policy
operations.
Type: String
certificateId (p. 64)
Type: String
Pattern: (0x)?[a-fA-F0-9]+
certificatePem (p. 64)
Type: String
Pattern: [\s\S]*
64
AWS IoT API Reference
CreateCertificateFromCsr
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
65
AWS IoT API Reference
CreateCustomMetric
CreateCustomMetric
Service: AWS IoT
Use this API to define a Custom Metric published by your devices to Device Defender.
Request Syntax
POST /custom-metric/metricName HTTP/1.1
Content-type: application/json
{
"clientRequestToken": "string",
"displayName": "string",
"metricType": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
The name of the custom metric. This will be used in the metric report submitted from the device/
thing. The name can't begin with aws:. You can't change the name after you define it.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Each custom metric must have a unique client request token. If you try to create a new custom
metric that already exists with a different token, an exception occurs. If you omit this value, AWS
SDKs will automatically generate a unique client request.
Type: String
Pattern: ^[a-zA-Z0-9-_]+$
Required: Yes
66
AWS IoT API Reference
CreateCustomMetric
The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't
use this name as the metric identifier in the device metric report. You can update the friendly name
after you define it.
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
metricType (p. 66)
Type: String
Required: Yes
tags (p. 66)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"metricArn": "string",
"metricName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The Amazon Resource Number (ARN) of the custom metric. For example, arn:aws-
partition:iot:region:accountId:custommetric/metricName
Type: String
metricName (p. 67)
67
AWS IoT API Reference
CreateCustomMetric
Type: String
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
68
AWS IoT API Reference
CreateDimension
CreateDimension
Service: AWS IoT
Create a dimension that you can use to limit the scope of a metric used in a security profile for AWS IoT
Device Defender. For example, using a TOPIC_FILTER dimension, you can narrow down the scope of the
metric only to MQTT topics whose name match the pattern specified in the dimension.
Request Syntax
POST /dimensions/name HTTP/1.1
Content-type: application/json
{
"clientRequestToken": "string",
"stringValues": [ "string" ],
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"type": "string"
}
A unique identifier for the dimension. Choose something that describes the type and value to make
it easy to remember what it does.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Each dimension must have a unique client request token. If you try to create a new dimension with
the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS
SDKs will automatically generate a unique client request.
Type: String
Pattern: ^[a-zA-Z0-9-_]+$
Required: Yes
69
AWS IoT API Reference
CreateDimension
Specifies the value or list of values for the dimension. For TOPIC_FILTER dimensions, this is a
pattern used to match the MQTT topic (for example, "admin/#").
Required: Yes
tags (p. 69)
Required: No
type (p. 69)
Type: String
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"arn": "string",
"name": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
name (p. 70)
Type: String
Pattern: [a-zA-Z0-9:_-]+
70
AWS IoT API Reference
CreateDimension
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
71
AWS IoT API Reference
CreateDomainConfiguration
CreateDomainConfiguration
Service: AWS IoT
Request Syntax
POST /domainConfigurations/domainConfigurationName HTTP/1.1
Content-type: application/json
{
"authorizerConfig": {
"allowAuthorizerOverride": boolean,
"defaultAuthorizerName": "string"
},
"domainName": "string",
"serverCertificateArns": [ "string" ],
"serviceType": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"tlsConfig": {
"securityPolicy": "string"
},
"validationCertificateArn": "string"
}
The name of the domain configuration. This value must be unique to a region.
Pattern: [\w.-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: No
72
AWS IoT API Reference
CreateDomainConfiguration
Type: String
Pattern: [\s\S]*
Required: No
serverCertificateArns (p. 72)
The ARNs of the certificates that AWS IoT passes to the device during the TLS handshake. Currently
you can specify only one certificate ARN. This value is not required for AWS-managed domains.
Pattern: arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-
z]{4,9}-\d{1}:\d{12}:certificate/[a-zA-Z0-9/-]+
Required: No
serviceType (p. 72)
Type: String
Required: No
tags (p. 72)
Required: No
tlsConfig (p. 72)
Required: No
validationCertificateArn (p. 72)
The certificate used to validate the server certificate and prove domain name ownership. This
certificate must be signed by a public certificate authority. This value is not required for AWS-
managed domains.
73
AWS IoT API Reference
CreateDomainConfiguration
Type: String
Pattern: arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-
z]{4,9}-\d{1}:\d{12}:certificate/[a-zA-Z0-9/-]+
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"domainConfigurationArn": "string",
"domainConfigurationName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
domainConfigurationName (p. 74)
Type: String
Pattern: [\w.-]+
Errors
CertificateValidationException
74
AWS IoT API Reference
CreateDomainConfiguration
LimitExceededException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
75
AWS IoT API Reference
CreateDynamicThingGroup
CreateDynamicThingGroup
Service: AWS IoT
Request Syntax
POST /dynamic-thing-groups/thingGroupName HTTP/1.1
Content-type: application/json
{
"indexName": "string",
"queryString": "string",
"queryVersion": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"thingGroupProperties": {
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"thingGroupDescription": "string"
}
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
76
AWS IoT API Reference
CreateDynamicThingGroup
Pattern: [a-zA-Z0-9:_-]+
Required: No
queryString (p. 76)
Type: String
Required: Yes
queryVersion (p. 76)
Type: String
Required: No
tags (p. 76)
Required: No
thingGroupProperties (p. 76)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"indexName": "string",
"queryString": "string",
"queryVersion": "string",
"thingGroupArn": "string",
"thingGroupId": "string",
"thingGroupName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
77
AWS IoT API Reference
CreateDynamicThingGroup
Type: String
Pattern: [a-zA-Z0-9:_-]+
queryString (p. 77)
Type: String
Type: String
thingGroupArn (p. 77)
Type: String
thingGroupId (p. 77)
Type: String
Pattern: [a-zA-Z0-9\-]+
thingGroupName (p. 77)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
78
AWS IoT API Reference
CreateDynamicThingGroup
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
79
AWS IoT API Reference
CreateFleetMetric
CreateFleetMetric
Service: AWS IoT
Request Syntax
PUT /fleet-metric/metricName HTTP/1.1
Content-type: application/json
{
"aggregationField": "string",
"aggregationType": {
"name": "string",
"values": [ "string" ]
},
"description": "string",
"indexName": "string",
"period": number,
"queryString": "string",
"queryVersion": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"unit": "string"
}
Pattern: [a-zA-Z0-9_\-\.]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
80
AWS IoT API Reference
CreateFleetMetric
Required: Yes
description (p. 80)
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
indexName (p. 80)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
period (p. 80)
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be
multiple of 60.
Type: Integer
Required: Yes
queryString (p. 80)
Type: String
Required: Yes
queryVersion (p. 80)
Type: String
Required: No
tags (p. 80)
81
AWS IoT API Reference
CreateFleetMetric
Required: No
unit (p. 80)
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by
CW metric. Default to null.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"metricArn": "string",
"metricName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
metricName (p. 82)
Type: String
Pattern: [a-zA-Z0-9_\-\.]+
Errors
IndexNotReadyException
82
AWS IoT API Reference
CreateFleetMetric
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
83
AWS IoT API Reference
CreateFleetMetric
84
AWS IoT API Reference
CreateJob
CreateJob
Service: AWS IoT
Creates a job.
Request Syntax
PUT /jobs/jobId HTTP/1.1
Content-type: application/json
{
"abortConfig": {
"criteriaList": [
{
"action": "string",
"failureType": "string",
"minNumberOfExecutedThings": number,
"thresholdPercentage": number
}
]
},
"description": "string",
"destinationPackageVersions": [ "string" ],
"document": "string",
"documentParameters": {
"string" : "string"
},
"documentSource": "string",
"jobExecutionsRetryConfig": {
"criteriaList": [
{
"failureType": "string",
"numberOfRetries": number
}
]
},
"jobExecutionsRolloutConfig": {
"exponentialRate": {
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"jobTemplateArn": "string",
"namespaceId": "string",
"presignedUrlConfig": {
"expiresInSec": number,
"roleArn": "string"
},
"schedulingConfig": {
"endBehavior": "string",
"endTime": "string",
"maintenanceWindows": [
{
"durationInMinutes": number,
"startTime": "string"
}
85
AWS IoT API Reference
CreateJob
],
"startTime": "string"
},
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"targets": [ "string" ],
"targetSelection": "string",
"timeoutConfig": {
"inProgressTimeoutInMinutes": number
}
}
A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-
numeric characters, "-" and "_" are valid for use here.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: No
description (p. 85)
Type: String
Pattern: [^\p{C}]+
Required: No
destinationPackageVersions (p. 85)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are
allowed.
86
AWS IoT API Reference
CreateJob
Pattern: ^arn:[!-~]+$
Required: No
document (p. 85)
The job document. Required if you don't specify a value for documentSource.
Type: String
Required: No
documentParameters (p. 85)
Parameters of an AWS managed template that you can specify to create the job document.
Note
documentParameters can only be used when creating jobs from AWS managed
templates. This parameter can't be used with custom job templates or to create jobs from
them.
Required: No
documentSource (p. 85)
An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is
required if you don't specify a value for document.
Type: String
Required: No
jobExecutionsRetryConfig (p. 85)
Required: No
jobExecutionsRolloutConfig (p. 85)
87
AWS IoT API Reference
CreateJob
Required: No
jobTemplateArn (p. 85)
Type: String
Pattern: ^arn:[!-~]+$
Required: No
namespaceId (p. 85)
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.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
presignedUrlConfig (p. 85)
Required: No
schedulingConfig (p. 85)
The configuration that allows you to schedule a job for a future date and time in addition to
specifying the end behavior for each job execution.
Required: No
tags (p. 85)
Required: No
targets (p. 85)
A list of things and thing groups to which the job should be sent.
88
AWS IoT API Reference
CreateJob
Required: Yes
targetSelection (p. 85)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those
things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be
run on a thing when a change is detected in a target. For example, a job will run on a thing when
the thing is added to a target group, even after the job was completed by all things originally in the
group.
Note
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing
group targets. By using continuous jobs, devices that join the group receive the job
execution even after the job has been created.
Type: String
Required: No
timeoutConfig (p. 85)
Specifies the amount of time each device has to finish its execution of the job. The timer is started
when the job execution status is set to IN_PROGRESS. If the job execution status is not set to
another terminal state before the time expires, it will be automatically set to TIMED_OUT.
Required: No
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.
Type: String
Pattern: [^\p{C}]+
jobArn (p. 89)
89
AWS IoT API Reference
CreateJob
Type: String
jobId (p. 89)
Type: String
Pattern: [a-zA-Z0-9_-]+
Errors
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
90
AWS IoT API Reference
CreateJob
91
AWS IoT API Reference
CreateJobTemplate
CreateJobTemplate
Service: AWS IoT
Request Syntax
PUT /job-templates/jobTemplateId HTTP/1.1
Content-type: application/json
{
"abortConfig": {
"criteriaList": [
{
"action": "string",
"failureType": "string",
"minNumberOfExecutedThings": number,
"thresholdPercentage": number
}
]
},
"description": "string",
"destinationPackageVersions": [ "string" ],
"document": "string",
"documentSource": "string",
"jobArn": "string",
"jobExecutionsRetryConfig": {
"criteriaList": [
{
"failureType": "string",
"numberOfRetries": number
}
]
},
"jobExecutionsRolloutConfig": {
"exponentialRate": {
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"maintenanceWindows": [
{
"durationInMinutes": number,
"startTime": "string"
}
],
"presignedUrlConfig": {
"expiresInSec": number,
"roleArn": "string"
},
"tags": [
{
"Key": "string",
"Value": "string"
}
],
92
AWS IoT API Reference
CreateJobTemplate
"timeoutConfig": {
"inProgressTimeoutInMinutes": number
}
}
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-",
and "_" are valid for use here.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The criteria that determine when and how a job abort takes place.
Required: No
description (p. 92)
Type: String
Pattern: [^\p{C}]+
Required: Yes
destinationPackageVersions (p. 92)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are
allowed.
Pattern: ^arn:[!-~]+$
Required: No
document (p. 92)
The job document. Required if you don't specify a value for documentSource.
93
AWS IoT API Reference
CreateJobTemplate
Type: String
Required: No
documentSource (p. 92)
An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is
required if you don't specify a value for document.
Type: String
Required: No
jobArn (p. 92)
The ARN of the job to use as the basis for the job template.
Type: String
Required: No
jobExecutionsRetryConfig (p. 92)
Required: No
jobExecutionsRolloutConfig (p. 92)
Required: No
maintenanceWindows (p. 92)
Allows you to configure an optional maintenance window for the rollout of a job document to all
devices in the target group for a job.
Required: No
presignedUrlConfig (p. 92)
Required: No
tags (p. 92)
94
AWS IoT API Reference
CreateJobTemplate
Required: No
timeoutConfig (p. 92)
Specifies the amount of time each device has to finish its execution of the job. A timer is started
when the job execution status is set to IN_PROGRESS. If the job execution status is not set to
another terminal state before the timer expires, it will be automatically set to TIMED_OUT.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"jobTemplateArn": "string",
"jobTemplateId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: ^arn:[!-~]+$
jobTemplateId (p. 95)
Type: String
Pattern: [a-zA-Z0-9_-]+
Errors
ConflictException
95
AWS IoT API Reference
CreateJobTemplate
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
96
AWS IoT API Reference
CreateKeysAndCertificate
CreateKeysAndCertificate
Service: AWS IoT
Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key. You can also
call CreateKeysAndCertificate over MQTT from a device, for more information, see Provisioning
MQTT API.
Note This is the only time AWS IoT issues the private key for this certificate, so it is important to keep it
in a secure location.
Request Syntax
POST /keys-and-certificate?setAsActive=setAsActive HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateArn": "string",
"certificateId": "string",
"certificatePem": "string",
"keyPair": {
"PrivateKey": "string",
"PublicKey": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
97
AWS IoT API Reference
CreateKeysAndCertificate
The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS
IoT Certificate).
Type: String
Pattern: (0x)?[a-fA-F0-9]+
certificatePem (p. 97)
Type: String
Pattern: [\s\S]*
keyPair (p. 97)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
98
AWS IoT API Reference
CreateKeysAndCertificate
99
AWS IoT API Reference
CreateMitigationAction
CreateMitigationAction
Service: AWS IoT
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only
certain types of mitigation actions can be applied to specific check names. For more information, see
Mitigation actions. Each mitigation action can apply only one type of change.
Request Syntax
POST /mitigationactions/actions/actionName HTTP/1.1
Content-type: application/json
{
"actionParams": {
"addThingsToThingGroupParams": {
"overrideDynamicGroups": boolean,
"thingGroupNames": [ "string" ]
},
"enableIoTLoggingParams": {
"logLevel": "string",
"roleArnForLogging": "string"
},
"publishFindingToSnsParams": {
"topicArn": "string"
},
"replaceDefaultPolicyVersionParams": {
"templateName": "string"
},
"updateCACertificateParams": {
"action": "string"
},
"updateDeviceCertificateParams": {
"action": "string"
}
},
"roleArn": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
A friendly name for the action. Choose a friendly name that accurately describes the action (for
example, EnableLoggingAction).
Pattern: [a-zA-Z0-9_-]+
Required: Yes
100
AWS IoT API Reference
CreateMitigationAction
Request Body
The request accepts the following data in JSON format.
Defines the type of action and the parameters for that action.
Required: Yes
roleArn (p. 100)
The ARN of the IAM role that is used to apply the mitigation action.
Type: String
Required: Yes
tags (p. 100)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"actionArn": "string",
"actionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
actionId (p. 101)
Type: String
101
AWS IoT API Reference
CreateMitigationAction
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
102
AWS IoT API Reference
CreateOTAUpdate
CreateOTAUpdate
Service: AWS IoT
Request Syntax
POST /otaUpdates/otaUpdateId HTTP/1.1
Content-type: application/json
{
"additionalParameters": {
"string" : "string"
},
"awsJobAbortConfig": {
"abortCriteriaList": [
{
"action": "string",
"failureType": "string",
"minNumberOfExecutedThings": number,
"thresholdPercentage": number
}
]
},
"awsJobExecutionsRolloutConfig": {
"exponentialRate": {
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"awsJobPresignedUrlConfig": {
"expiresInSec": number
},
"awsJobTimeoutConfig": {
"inProgressTimeoutInMinutes": number
},
"description": "string",
"files": [
{
"attributes": {
"string" : "string"
},
"codeSigning": {
"awsSignerJobId": "string",
"customCodeSigning": {
"certificateChain": {
"certificateName": "string",
"inlineDocument": "string"
},
"hashAlgorithm": "string",
"signature": {
"inlineDocument": blob
},
"signatureAlgorithm": "string"
},
"startSigningJobParameter": {
103
AWS IoT API Reference
CreateOTAUpdate
"destination": {
"s3Destination": {
"bucket": "string",
"prefix": "string"
}
},
"signingProfileName": "string",
"signingProfileParameter": {
"certificateArn": "string",
"certificatePathOnDevice": "string",
"platform": "string"
}
}
},
"fileLocation": {
"s3Location": {
"bucket": "string",
"key": "string",
"version": "string"
},
"stream": {
"fileId": number,
"streamId": "string"
}
},
"fileName": "string",
"fileType": number,
"fileVersion": "string"
}
],
"protocols": [ "string" ],
"roleArn": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"targets": [ "string" ],
"targetSelection": "string"
}
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
104
AWS IoT API Reference
CreateOTAUpdate
A list of additional OTA update parameters, which are name-value pairs. They won't be sent to
devices as a part of the Job document.
Required: No
awsJobAbortConfig (p. 103)
The criteria that determine when and how a job abort takes place.
Required: No
awsJobExecutionsRolloutConfig (p. 103)
Required: No
awsJobPresignedUrlConfig (p. 103)
Required: No
awsJobTimeoutConfig (p. 103)
Specifies the amount of time each device has to finish its execution of the job. A timer is started
when the job execution status is set to IN_PROGRESS. If the job execution status is not set to
another terminal state before the timer expires, it will be automatically set to TIMED_OUT.
Required: No
description (p. 103)
Type: String
Pattern: [^\p{C}]+
Required: No
files (p. 103)
105
AWS IoT API Reference
CreateOTAUpdate
Required: Yes
protocols (p. 103)
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP,
MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
Required: No
roleArn (p. 103)
The IAM role that grants AWS IoT Core access to the Amazon S3, AWS IoT jobs and AWS Code
Signing resources to create an OTA update job.
Type: String
Required: Yes
tags (p. 103)
Required: No
targets (p. 103)
Required: Yes
targetSelection (p. 103)
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the
things specified as targets have completed the update (SNAPSHOT). If continuous, the update may
also be run on a thing when a change is detected in a target. For example, an update will run on a
thing when the thing is added to a target group, even after the update was completed by all things
originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
106
AWS IoT API Reference
CreateOTAUpdate
"awsIotJobArn": "string",
"awsIotJobId": "string",
"otaUpdateArn": "string",
"otaUpdateId": "string",
"otaUpdateStatus": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The AWS IoT job ARN associated with the OTA update.
Type: String
awsIotJobId (p. 106)
Type: String
otaUpdateArn (p. 106)
Type: String
otaUpdateId (p. 106)
Type: String
Pattern: [a-zA-Z0-9_-]+
otaUpdateStatus (p. 106)
Type: String
Errors
InternalFailureException
107
AWS IoT API Reference
CreateOTAUpdate
LimitExceededException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
108
AWS IoT API Reference
CreatePackage
CreatePackage
Service: AWS IoT
Creates an AWS IoT software package that can be deployed to your fleet.
Request Syntax
PUT /packages/packageName?clientToken=clientToken HTTP/1.1
Content-type: application/json
{
"description": "string",
"tags": {
"string" : "string"
}
}
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
packageName (p. 109)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
A summary of the package being created. This can be used to outline the package's contents or
purpose.
Type: String
Pattern: [^\p{C}]+
109
AWS IoT API Reference
CreatePackage
Required: No
tags (p. 109)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"description": "string",
"packageArn": "string",
"packageName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [^\p{C}]+
packageArn (p. 110)
Type: String
packageName (p. 110)
Type: String
Pattern: [a-zA-Z0-9-_.]+
110
AWS IoT API Reference
CreatePackage
Errors
ConflictException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
111
AWS IoT API Reference
CreatePackageVersion
CreatePackageVersion
Service: AWS IoT
Request Syntax
PUT /packages/packageName/versions/versionName?clientToken=clientToken HTTP/1.1
Content-type: application/json
{
"attributes": {
"string" : "string"
},
"description": "string",
"tags": {
"string" : "string"
}
}
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
packageName (p. 112)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
versionName (p. 112)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
112
AWS IoT API Reference
CreatePackageVersion
Metadata that can be used to define a package version’s configuration. For example, the S3 file
location, configuration options that are being sent to the device or fleet.
The combined size of all the attributes on a package version is limited to 3KB.
Required: No
description (p. 112)
A summary of the package version being created. This can be used to outline the package's contents
or purpose.
Type: String
Pattern: [^\p{C}]+
Required: No
tags (p. 112)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"attributes": {
"string" : "string"
},
"description": "string",
"errorReason": "string",
"packageName": "string",
"packageVersionArn": "string",
"status": "string",
113
AWS IoT API Reference
CreatePackageVersion
"versionName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Metadata that were added to the package version that can be used to define a package version’s
configuration.
Type: String
Pattern: [^\p{C}]+
errorReason (p. 113)
Type: String
packageName (p. 113)
Type: String
Pattern: [a-zA-Z0-9-_.]+
packageVersionArn (p. 113)
Type: String
Pattern: ^arn:[!-~]+$
status (p. 113)
The status of the package version. For more information, see Package version lifecycle.
Type: String
114
AWS IoT API Reference
CreatePackageVersion
Type: String
Pattern: [a-zA-Z0-9-_.]+
Errors
ConflictException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
115
AWS IoT API Reference
CreatePolicy
CreatePolicy
Service: AWS IoT
The created policy is the default version for the policy. This operation creates a policy version with a
version identifier of 1 and sets 1 as the policy's default version.
Request Syntax
POST /policies/policyName HTTP/1.1
Content-type: application/json
{
"policyDocument": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The JSON document that describes the policy. policyDocument must have a minimum length of 1,
with a maximum length of 2048, excluding whitespace.
Type: String
Pattern: [\s\S]*
Required: Yes
tags (p. 116)
116
AWS IoT API Reference
CreatePolicy
Note
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"policyArn": "string",
"policyDocument": "string",
"policyName": "string",
"policyVersionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
policyDocument (p. 117)
Type: String
Pattern: [\s\S]*
policyName (p. 117)
Type: String
Pattern: [\w+=,.@-]+
policyVersionId (p. 117)
Type: String
Pattern: [0-9]+
117
AWS IoT API Reference
CreatePolicy
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
118
AWS IoT API Reference
CreatePolicyVersion
CreatePolicyVersion
Service: AWS IoT
Creates a new version of the specified AWS IoT policy. To update a policy, create a new policy
version. A managed policy can have up to five versions. If the policy has five versions, you must use
DeletePolicyVersion (p. 207) to delete an existing version before you create a new one.
Optionally, you can set the new version as the policy's default version. The default version is the
operative version (that is, the version that is in effect for the certificates to which the policy is attached).
Request Syntax
POST /policies/policyName/version?setAsDefault=setAsDefault HTTP/1.1
Content-type: application/json
{
"policyDocument": "string"
}
Pattern: [\w+=,.@-]+
Required: Yes
setAsDefault (p. 119)
Specifies whether the policy version is set as the default. When this parameter is true, the new policy
version becomes the operative version (that is, the version that is in effect for the certificates to
which the policy is attached).
Request Body
The request accepts the following data in JSON format.
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048,
excluding whitespace.
Type: String
Pattern: [\s\S]*
Required: Yes
119
AWS IoT API Reference
CreatePolicyVersion
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"isDefaultVersion": boolean,
"policyArn": "string",
"policyDocument": "string",
"policyVersionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Boolean
policyArn (p. 120)
Type: String
policyDocument (p. 120)
Type: String
Pattern: [\s\S]*
policyVersionId (p. 120)
Type: String
Pattern: [0-9]+
Errors
InternalFailureException
120
AWS IoT API Reference
CreatePolicyVersion
MalformedPolicyException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
121
AWS IoT API Reference
CreateProvisioningClaim
CreateProvisioningClaim
Service: AWS IoT
Request Syntax
POST /provisioning-templates/templateName/provisioning-claim HTTP/1.1
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateId": "string",
"certificatePem": "string",
"expiration": number,
"keyPair": {
"PrivateKey": "string",
"PublicKey": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
122
AWS IoT API Reference
CreateProvisioningClaim
Pattern: (0x)?[a-fA-F0-9]+
certificatePem (p. 122)
Type: String
Pattern: [\s\S]*
expiration (p. 122)
Type: Timestamp
keyPair (p. 122)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
123
AWS IoT API Reference
CreateProvisioningClaim
124
AWS IoT API Reference
CreateProvisioningTemplate
CreateProvisioningTemplate
Service: AWS IoT
Request Syntax
POST /provisioning-templates HTTP/1.1
Content-type: application/json
{
"description": "string",
"enabled": boolean,
"preProvisioningHook": {
"payloadVersion": "string",
"targetArn": "string"
},
"provisioningRoleArn": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"templateBody": "string",
"templateName": "string",
"type": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [^\p{C}]*
Required: No
enabled (p. 125)
Type: Boolean
Required: No
125
AWS IoT API Reference
CreateProvisioningTemplate
Required: No
provisioningRoleArn (p. 125)
The role ARN for the role associated with the provisioning template. This IoT role grants permission
to provision a device.
Type: String
Required: Yes
tags (p. 125)
Required: No
templateBody (p. 125)
Type: String
Pattern: [\s\S]*
Required: Yes
templateName (p. 125)
Type: String
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
type (p. 125)
The type you define in a provisioning template. You can create a template with only one type. You
can't change the template type after its creation. The default value is FLEET_PROVISIONING. For
more information about provisioning template, see: Provisioning template.
Type: String
126
AWS IoT API Reference
CreateProvisioningTemplate
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"defaultVersionId": number,
"templateArn": "string",
"templateName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Integer
templateArn (p. 127)
Type: String
templateName (p. 127)
Type: String
Pattern: ^[0-9A-Za-z_-]+$
Errors
InternalFailureException
127
AWS IoT API Reference
CreateProvisioningTemplate
ResourceAlreadyExistsException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
128
AWS IoT API Reference
CreateProvisioningTemplateVersion
CreateProvisioningTemplateVersion
Service: AWS IoT
Request Syntax
POST /provisioning-templates/templateName/versions?setAsDefault=setAsDefault HTTP/1.1
Content-type: application/json
{
"templateBody": "string"
}
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
129
AWS IoT API Reference
CreateProvisioningTemplateVersion
"isDefaultVersion": boolean,
"templateArn": "string",
"templateName": "string",
"versionId": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
True if the provisioning template version is the default version, otherwise false.
Type: Boolean
templateArn (p. 129)
Type: String
templateName (p. 129)
Type: String
Pattern: ^[0-9A-Za-z_-]+$
versionId (p. 129)
Type: Integer
Errors
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
130
AWS IoT API Reference
CreateProvisioningTemplateVersion
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
131
AWS IoT API Reference
CreateRoleAlias
CreateRoleAlias
Service: AWS IoT
Request Syntax
POST /role-aliases/roleAlias HTTP/1.1
Content-type: application/json
{
"credentialDurationSeconds": number,
"roleArn": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
The role alias that points to a role ARN. This allows you to change the role without having to update
the device.
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.
This value must be less than or equal to the maximum session duration of the IAM role that the role
alias references.
Type: Integer
Required: No
roleArn (p. 132)
132
AWS IoT API Reference
CreateRoleAlias
Type: String
Required: Yes
tags (p. 132)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"roleAlias": "string",
"roleAliasArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [\w=,@-]+
roleAliasArn (p. 133)
Type: String
Errors
InternalFailureException
133
AWS IoT API Reference
CreateRoleAlias
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
134
AWS IoT API Reference
CreateScheduledAudit
CreateScheduledAudit
Service: AWS IoT
Request Syntax
POST /audit/scheduledaudits/scheduledAuditName HTTP/1.1
Content-type: application/json
{
"dayOfMonth": "string",
"dayOfWeek": "string",
"frequency": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"targetCheckNames": [ "string" ]
}
The name you want to give to the scheduled audit. (Max. 128 chars)
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The day of the month on which the scheduled audit takes place. This can be "1" through "31" or
"LAST". This field is required if the "frequency" parameter is set to MONTHLY. If days 29 to 31 are
specified, and the month doesn't have that many days, the audit takes place on the LAST day of the
month.
Type: String
Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
Required: No
dayOfWeek (p. 135)
The day of the week on which the scheduled audit takes place, either SUN, MON, TUE, WED, THU, FRI,
or SAT. This field is required if the frequency parameter is set to WEEKLY or BIWEEKLY.
135
AWS IoT API Reference
CreateScheduledAudit
Type: String
Required: No
frequency (p. 135)
How often the scheduled audit takes place, either DAILY, WEEKLY, BIWEEKLY or MONTHLY. The start
time of each audit is determined by the system.
Type: String
Required: Yes
tags (p. 135)
Required: No
targetCheckNames (p. 135)
Which checks are performed during the scheduled audit. Checks must be enabled for your account.
(Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"scheduledAuditArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
InternalFailureException
136
AWS IoT API Reference
CreateScheduledAudit
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
137
AWS IoT API Reference
CreateSecurityProfile
CreateSecurityProfile
Service: AWS IoT
Request Syntax
POST /security-profiles/securityProfileName HTTP/1.1
Content-type: application/json
{
"additionalMetricsToRetain": [ "string" ],
"additionalMetricsToRetainV2": [
{
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
}
}
],
"alertTargets": {
"string" : {
"alertTargetArn": "string",
"roleArn": "string"
}
},
"behaviors": [
{
"criteria": {
"comparisonOperator": "string",
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
}
],
"metricsExportConfig": {
138
AWS IoT API Reference
CreateSecurityProfile
"mqttTopic": "string",
"roleArn": "string"
},
"securityProfileDescription": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used
in the profile's behaviors, but it is also retained for any metric specified here. Can be used with
custom metrics; cannot be used with dimensions.
Required: No
additionalMetricsToRetainV2 (p. 138)
A list of metrics whose data is retained (stored). By default, data is retained for any metric used
in the profile's behaviors, but it is also retained for any metric specified here. Can be used with
custom metrics; cannot be used with dimensions.
Required: No
alertTargets (p. 138)
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are
generated when a device (thing) violates a behavior.
139
AWS IoT API Reference
CreateSecurityProfile
Required: No
behaviors (p. 138)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Required: No
metricsExportConfig (p. 138)
Specifies the MQTT topic and role ARN required for metric export.
Required: No
securityProfileDescription (p. 138)
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
tags (p. 138)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"securityProfileArn": "string",
"securityProfileName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
140
AWS IoT API Reference
CreateSecurityProfile
Type: String
securityProfileName (p. 140)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
141
AWS IoT API Reference
CreateStream
CreateStream
Service: AWS IoT
Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data
bytes in chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more
files associated with a stream.
Request Syntax
POST /streams/streamId HTTP/1.1
Content-type: application/json
{
"description": "string",
"files": [
{
"fileId": number,
"s3Location": {
"bucket": "string",
"key": "string",
"version": "string"
}
}
],
"roleArn": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
142
AWS IoT API Reference
CreateStream
Pattern: [^\p{C}]+
Required: No
files (p. 142)
Required: Yes
roleArn (p. 142)
An IAM role that allows the IoT service principal to access your S3 files.
Type: String
Required: Yes
tags (p. 142)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"description": "string",
"streamArn": "string",
"streamId": "string",
"streamVersion": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [^\p{C}]+
143
AWS IoT API Reference
CreateStream
Type: String
streamId (p. 143)
Type: String
Pattern: [a-zA-Z0-9_-]+
streamVersion (p. 143)
Type: Integer
Errors
InternalFailureException
144
AWS IoT API Reference
CreateStream
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
145
AWS IoT API Reference
CreateThing
CreateThing
Service: AWS IoT
Creates a thing record in the registry. If this call is made multiple times using the same thing name
and configuration, the call will succeed. If this call is made with the same thing name but different
configuration a ResourceAlreadyExistsException is thrown.
Note
This is a control plane operation. See Authorization for information about authorizing control
plane actions.
Request Syntax
POST /things/thingName HTTP/1.1
Content-type: application/json
{
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"billingGroupName": "string",
"thingTypeName": "string"
}
You can't change a thing's name after you create it. To change a thing's name, you must create a new
thing, give it the new name, and then delete the old thing.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The attribute payload, which consists of up to three name/value pairs in a JSON document. For
example:
{\"attributes\":{\"string1\":\"string2\"}}
146
AWS IoT API Reference
CreateThing
Required: No
billingGroupName (p. 146)
The name of the billing group the thing will be added to.
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingTypeName (p. 146)
The name of the thing type associated with the new thing.
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"thingArn": "string",
"thingId": "string",
"thingName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
thingId (p. 147)
Type: String
thingName (p. 147)
Type: String
147
AWS IoT API Reference
CreateThing
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
148
AWS IoT API Reference
CreateThingGroup
CreateThingGroup
Service: AWS IoT
Request Syntax
POST /thing-groups/thingGroupName HTTP/1.1
Content-type: application/json
{
"parentGroupName": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"thingGroupProperties": {
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"thingGroupDescription": "string"
}
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
149
AWS IoT API Reference
CreateThingGroup
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
tags (p. 149)
Required: No
thingGroupProperties (p. 149)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"thingGroupArn": "string",
"thingGroupId": "string",
"thingGroupName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
thingGroupId (p. 150)
Type: String
Pattern: [a-zA-Z0-9\-]+
thingGroupName (p. 150)
Type: String
150
AWS IoT API Reference
CreateThingGroup
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
151
AWS IoT API Reference
CreateThingType
CreateThingType
Service: AWS IoT
Request Syntax
POST /thing-types/thingTypeName HTTP/1.1
Content-type: application/json
{
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"thingTypeProperties": {
"searchableAttributes": [ "string" ],
"thingTypeDescription": "string"
}
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: No
thingTypeProperties (p. 152)
The ThingTypeProperties for the thing type to create. It contains information about the new thing
type including a description, and a list of searchable thing attribute names.
Required: No
152
AWS IoT API Reference
CreateThingType
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"thingTypeArn": "string",
"thingTypeId": "string",
"thingTypeName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
thingTypeId (p. 153)
Type: String
thingTypeName (p. 153)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
153
AWS IoT API Reference
CreateThingType
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
154
AWS IoT API Reference
CreateTopicRule
CreateTopicRule
Service: AWS IoT
Creates a rule. Creating rules is an administrator-level action. Any user who has permission to create
rules will be able to access data processed by the rule.
Request Syntax
POST /rules/ruleName HTTP/1.1
x-amz-tagging: tags
Content-type: application/json
{
"actions": [
{
"cloudwatchAlarm": {
"alarmName": "string",
"roleArn": "string",
"stateReason": "string",
"stateValue": "string"
},
"cloudwatchLogs": {
"batchMode": boolean,
"logGroupName": "string",
"roleArn": "string"
},
"cloudwatchMetric": {
"metricName": "string",
"metricNamespace": "string",
"metricTimestamp": "string",
"metricUnit": "string",
"metricValue": "string",
"roleArn": "string"
},
"dynamoDB": {
"hashKeyField": "string",
"hashKeyType": "string",
"hashKeyValue": "string",
"operation": "string",
"payloadField": "string",
"rangeKeyField": "string",
"rangeKeyType": "string",
"rangeKeyValue": "string",
"roleArn": "string",
"tableName": "string"
},
"dynamoDBv2": {
"putItem": {
"tableName": "string"
},
"roleArn": "string"
},
"elasticsearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"firehose": {
"batchMode": boolean,
155
AWS IoT API Reference
CreateTopicRule
"deliveryStreamName": "string",
"roleArn": "string",
"separator": "string"
},
"http": {
"auth": {
"sigv4": {
"roleArn": "string",
"serviceName": "string",
"signingRegion": "string"
}
},
"confirmationUrl": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
},
"iotAnalytics": {
"batchMode": boolean,
"channelArn": "string",
"channelName": "string",
"roleArn": "string"
},
"iotEvents": {
"batchMode": boolean,
"inputName": "string",
"messageId": "string",
"roleArn": "string"
},
"iotSiteWise": {
"putAssetPropertyValueEntries": [
{
"assetId": "string",
"entryId": "string",
"propertyAlias": "string",
"propertyId": "string",
"propertyValues": [
{
"quality": "string",
"timestamp": {
"offsetInNanos": "string",
"timeInSeconds": "string"
},
"value": {
"booleanValue": "string",
"doubleValue": "string",
"integerValue": "string",
"stringValue": "string"
}
}
]
}
],
"roleArn": "string"
},
"kafka": {
"clientProperties": {
"string" : "string"
},
"destinationArn": "string",
"headers": [
{
156
AWS IoT API Reference
CreateTopicRule
"key": "string",
"value": "string"
}
],
"key": "string",
"partition": "string",
"topic": "string"
},
"kinesis": {
"partitionKey": "string",
"roleArn": "string",
"streamName": "string"
},
"lambda": {
"functionArn": "string"
},
"location": {
"deviceId": "string",
"latitude": "string",
"longitude": "string",
"roleArn": "string",
"timestamp": {
"unit": "string",
"value": "string"
},
"trackerName": "string"
},
"openSearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"republish": {
"headers": {
"contentType": "string",
"correlationData": "string",
"messageExpiry": "string",
"payloadFormatIndicator": "string",
"responseTopic": "string",
"userProperties": [
{
"key": "string",
"value": "string"
}
]
},
"qos": number,
"roleArn": "string",
"topic": "string"
},
"s3": {
"bucketName": "string",
"cannedAcl": "string",
"key": "string",
"roleArn": "string"
},
"salesforce": {
"token": "string",
"url": "string"
},
"sns": {
"messageFormat": "string",
"roleArn": "string",
"targetArn": "string"
157
AWS IoT API Reference
CreateTopicRule
},
"sqs": {
"queueUrl": "string",
"roleArn": "string",
"useBase64": boolean
},
"stepFunctions": {
"executionNamePrefix": "string",
"roleArn": "string",
"stateMachineName": "string"
},
"timestream": {
"databaseName": "string",
"dimensions": [
{
"name": "string",
"value": "string"
}
],
"roleArn": "string",
"tableName": "string",
"timestamp": {
"unit": "string",
"value": "string"
}
}
}
],
"awsIotSqlVersion": "string",
"description": "string",
"errorAction": {
"cloudwatchAlarm": {
"alarmName": "string",
"roleArn": "string",
"stateReason": "string",
"stateValue": "string"
},
"cloudwatchLogs": {
"batchMode": boolean,
"logGroupName": "string",
"roleArn": "string"
},
"cloudwatchMetric": {
"metricName": "string",
"metricNamespace": "string",
"metricTimestamp": "string",
"metricUnit": "string",
"metricValue": "string",
"roleArn": "string"
},
"dynamoDB": {
"hashKeyField": "string",
"hashKeyType": "string",
"hashKeyValue": "string",
"operation": "string",
"payloadField": "string",
"rangeKeyField": "string",
"rangeKeyType": "string",
"rangeKeyValue": "string",
"roleArn": "string",
"tableName": "string"
},
"dynamoDBv2": {
"putItem": {
"tableName": "string"
},
158
AWS IoT API Reference
CreateTopicRule
"roleArn": "string"
},
"elasticsearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"firehose": {
"batchMode": boolean,
"deliveryStreamName": "string",
"roleArn": "string",
"separator": "string"
},
"http": {
"auth": {
"sigv4": {
"roleArn": "string",
"serviceName": "string",
"signingRegion": "string"
}
},
"confirmationUrl": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
},
"iotAnalytics": {
"batchMode": boolean,
"channelArn": "string",
"channelName": "string",
"roleArn": "string"
},
"iotEvents": {
"batchMode": boolean,
"inputName": "string",
"messageId": "string",
"roleArn": "string"
},
"iotSiteWise": {
"putAssetPropertyValueEntries": [
{
"assetId": "string",
"entryId": "string",
"propertyAlias": "string",
"propertyId": "string",
"propertyValues": [
{
"quality": "string",
"timestamp": {
"offsetInNanos": "string",
"timeInSeconds": "string"
},
"value": {
"booleanValue": "string",
"doubleValue": "string",
"integerValue": "string",
"stringValue": "string"
}
}
]
159
AWS IoT API Reference
CreateTopicRule
}
],
"roleArn": "string"
},
"kafka": {
"clientProperties": {
"string" : "string"
},
"destinationArn": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"key": "string",
"partition": "string",
"topic": "string"
},
"kinesis": {
"partitionKey": "string",
"roleArn": "string",
"streamName": "string"
},
"lambda": {
"functionArn": "string"
},
"location": {
"deviceId": "string",
"latitude": "string",
"longitude": "string",
"roleArn": "string",
"timestamp": {
"unit": "string",
"value": "string"
},
"trackerName": "string"
},
"openSearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"republish": {
"headers": {
"contentType": "string",
"correlationData": "string",
"messageExpiry": "string",
"payloadFormatIndicator": "string",
"responseTopic": "string",
"userProperties": [
{
"key": "string",
"value": "string"
}
]
},
"qos": number,
"roleArn": "string",
"topic": "string"
},
"s3": {
"bucketName": "string",
"cannedAcl": "string",
160
AWS IoT API Reference
CreateTopicRule
"key": "string",
"roleArn": "string"
},
"salesforce": {
"token": "string",
"url": "string"
},
"sns": {
"messageFormat": "string",
"roleArn": "string",
"targetArn": "string"
},
"sqs": {
"queueUrl": "string",
"roleArn": "string",
"useBase64": boolean
},
"stepFunctions": {
"executionNamePrefix": "string",
"roleArn": "string",
"stateMachineName": "string"
},
"timestream": {
"databaseName": "string",
"dimensions": [
{
"name": "string",
"value": "string"
}
],
"roleArn": "string",
"tableName": "string",
"timestamp": {
"unit": "string",
"value": "string"
}
}
},
"ruleDisabled": boolean,
"sql": "string"
}
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
tags (p. 155)
161
AWS IoT API Reference
CreateTopicRule
Request Body
The request accepts the following data in JSON format.
Required: Yes
awsIotSqlVersion (p. 155)
The version of the SQL rules engine to use when evaluating the rule.
Type: String
Required: No
description (p. 155)
Type: String
Required: No
errorAction (p. 155)
Required: No
ruleDisabled (p. 155)
Type: Boolean
Required: No
sql (p. 155)
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the
AWS IoT Developer Guide.
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.
162
AWS IoT API Reference
CreateTopicRule
Errors
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
163
AWS IoT API Reference
CreateTopicRuleDestination
CreateTopicRuleDestination
Service: AWS IoT
Creates a topic rule destination. The destination must be confirmed prior to use.
Request Syntax
POST /destinations HTTP/1.1
Content-type: application/json
{
"destinationConfiguration": {
"httpUrlConfiguration": {
"confirmationUrl": "string"
},
"vpcConfiguration": {
"roleArn": "string",
"securityGroups": [ "string" ],
"subnetIds": [ "string" ],
"vpcId": "string"
}
}
}
Request Body
The request accepts the following data in JSON format.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"topicRuleDestination": {
"arn": "string",
"createdAt": number,
"httpUrlProperties": {
"confirmationUrl": "string"
},
"lastUpdatedAt": number,
"status": "string",
"statusReason": "string",
"vpcProperties": {
164
AWS IoT API Reference
CreateTopicRuleDestination
"roleArn": "string",
"securityGroups": [ "string" ],
"subnetIds": [ "string" ],
"vpcId": "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
165
AWS IoT API Reference
CreateTopicRuleDestination
166
AWS IoT API Reference
DeleteAccountAuditConfiguration
DeleteAccountAuditConfiguration
Service: AWS IoT
Restores the default settings for Device Defender audits for this account. Any configuration data you
entered is deleted and all audit checks are reset to disabled.
Request Syntax
DELETE /audit/configuration?deleteScheduledAudits=deleteScheduledAudits HTTP/1.1
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
167
AWS IoT API Reference
DeleteAccountAuditConfiguration
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
168
AWS IoT API Reference
DeleteAuditSuppression
DeleteAuditSuppression
Service: AWS IoT
Request Syntax
POST /audit/suppressions/delete HTTP/1.1
Content-type: application/json
{
"checkName": "string",
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
}
}
Request Body
The request accepts the following data in JSON format.
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Type: String
Required: Yes
resourceIdentifier (p. 169)
Required: Yes
169
AWS IoT API Reference
DeleteAuditSuppression
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
170
AWS IoT API Reference
DeleteAuthorizer
DeleteAuthorizer
Service: AWS IoT
Deletes an authorizer.
Request Syntax
DELETE /authorizer/authorizerName HTTP/1.1
Pattern: [\w=,@-]+
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
DeleteConflictException
You can't delete the resource because it is attached to one or more resources.
171
AWS IoT API Reference
DeleteAuthorizer
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
172
AWS IoT API Reference
DeleteBillingGroup
DeleteBillingGroup
Service: AWS IoT
Request Syntax
DELETE /billing-groups/billingGroupName?expectedVersion=expectedVersion HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
expectedVersion (p. 173)
The expected version of the billing group. If the version of the billing group does not match the
expected version specified in the request, the DeleteBillingGroup request is rejected with a
VersionConflictException.
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
173
AWS IoT API Reference
DeleteBillingGroup
ThrottlingException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
174
AWS IoT API Reference
DeleteCACertificate
DeleteCACertificate
Service: AWS IoT
Request Syntax
DELETE /cacertificate/caCertificateId HTTP/1.1
The ID of the certificate to delete. (The last part of the certificate ARN contains the certificate ID.)
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
CertificateStateException
175
AWS IoT API Reference
DeleteCACertificate
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
176
AWS IoT API Reference
DeleteCertificate
DeleteCertificate
Service: AWS IoT
A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE.
To delete a certificate, first use the DetachPolicy (p. 339) action to detach all policies. Next, use the
UpdateCertificate (p. 658) action to set the certificate to the INACTIVE status.
Request Syntax
DELETE /certificates/certificateId?forceDelete=forceDelete HTTP/1.1
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
forceDelete (p. 177)
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
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
CertificateStateException
You can't delete the resource because it is attached to one or more resources.
177
AWS IoT API Reference
DeleteCertificate
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
178
AWS IoT API Reference
DeleteCustomMetric
DeleteCustomMetric
Service: AWS IoT
Request Syntax
DELETE /custom-metric/metricName HTTP/1.1
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
179
AWS IoT API Reference
DeleteCustomMetric
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
180
AWS IoT API Reference
DeleteDimension
DeleteDimension
Service: AWS IoT
Request Syntax
DELETE /dimensions/name HTTP/1.1
The unique identifier for the dimension that you want to delete.
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
181
AWS IoT API Reference
DeleteDimension
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
182
AWS IoT API Reference
DeleteDomainConfiguration
DeleteDomainConfiguration
Service: AWS IoT
Request Syntax
DELETE /domainConfigurations/domainConfigurationName HTTP/1.1
Pattern: [\w.-]+
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
183
AWS IoT API Reference
DeleteDomainConfiguration
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
184
AWS IoT API Reference
DeleteDynamicThingGroup
DeleteDynamicThingGroup
Service: AWS IoT
Request Syntax
DELETE /dynamic-thing-groups/thingGroupName?expectedVersion=expectedVersion HTTP/1.1
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
185
AWS IoT API Reference
DeleteDynamicThingGroup
ThrottlingException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
186
AWS IoT API Reference
DeleteFleetMetric
DeleteFleetMetric
Service: AWS IoT
Deletes the specified fleet metric. Returns successfully with no error if the deletion is successful or you
specify a fleet metric that doesn't exist.
Request Syntax
DELETE /fleet-metric/metricName?expectedVersion=expectedVersion HTTP/1.1
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
187
AWS IoT API Reference
DeleteFleetMetric
ServiceUnavailableException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
188
AWS IoT API Reference
DeleteJob
DeleteJob
Service: AWS IoT
Deleting a job may take time, depending on the number of job executions created for the job
and various other factors. While the job is being deleted, the status of the job will be shown
as "DELETION_IN_PROGRESS". Attempting to delete or cancel a job whose status is already
"DELETION_IN_PROGRESS" will result in an error.
Only 10 jobs may have status "DELETION_IN_PROGRESS" at the same time, or a LimitExceededException
will occur.
Request Syntax
DELETE /jobs/jobId?force=force&namespaceId=namespaceId HTTP/1.1
(Optional) When true, you can delete a job which is "IN_PROGRESS". Otherwise, you can only delete
a job which is in a terminal state ("COMPLETED" or "CANCELED") or an exception will occur. The
default is false.
Note
Deleting a job which is "IN_PROGRESS", will cause a device which is executing the job to be
unable to access job information or update the job execution status. Use caution and ensure
that each device executing a job which is deleted is able to recover to a valid state.
jobId (p. 189)
After a job deletion is completed, you may reuse this jobId when you create a new job. However, this
is not recommended, and you must ensure that your devices are not using the jobId to refer to the
deleted job.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
namespaceId (p. 189)
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.
189
AWS IoT API Reference
DeleteJob
Pattern: [a-zA-Z0-9_-]+
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
InvalidRequestException
An attempt was made to change to an invalid state, for example by deleting a job or a job execution
which is "IN_PROGRESS" without setting the force parameter.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
190
AWS IoT API Reference
DeleteJob
191
AWS IoT API Reference
DeleteJobExecution
DeleteJobExecution
Service: AWS IoT
Request Syntax
DELETE /things/thingName/jobs/jobId/executionNumber/executionNumber?
force=force&namespaceId=namespaceId HTTP/1.1
The ID of the job execution to be deleted. The executionNumber refers to the execution of a
particular job on a particular device.
Note that once a job execution is deleted, the executionNumber may be reused by IoT, so be sure
you get and use the correct value here.
Required: Yes
force (p. 192)
(Optional) When true, you can delete a job execution which is "IN_PROGRESS". Otherwise, you
can only delete a job execution which is in a terminal state ("SUCCEEDED", "FAILED", "REJECTED",
"REMOVED" or "CANCELED") or an exception will occur. The default is false.
Note
Deleting a job execution which is "IN_PROGRESS", will cause the device to be unable to
access job information or update the job execution status. Use caution and ensure that the
device is able to recover to a valid state.
jobId (p. 192)
Pattern: [a-zA-Z0-9_-]+
Required: Yes
namespaceId (p. 192)
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.
Pattern: [a-zA-Z0-9_-]+
192
AWS IoT API Reference
DeleteJobExecution
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
InvalidRequestException
An attempt was made to change to an invalid state, for example by deleting a job or a job execution
which is "IN_PROGRESS" without setting the force parameter.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
193
AWS IoT API Reference
DeleteJobExecution
194
AWS IoT API Reference
DeleteJobTemplate
DeleteJobTemplate
Service: AWS IoT
Request Syntax
DELETE /job-templates/jobTemplateId HTTP/1.1
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
195
AWS IoT API Reference
DeleteJobTemplate
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
196
AWS IoT API Reference
DeleteMitigationAction
DeleteMitigationAction
Service: AWS IoT
Request Syntax
DELETE /mitigationactions/actions/actionName HTTP/1.1
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
197
AWS IoT API Reference
DeleteMitigationAction
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
198
AWS IoT API Reference
DeleteOTAUpdate
DeleteOTAUpdate
Service: AWS IoT
Request Syntax
DELETE /otaUpdates/otaUpdateId?
deleteStream=deleteStream&forceDeleteAWSJob=forceDeleteAWSJob HTTP/1.1
When true, the stream created by the OTAUpdate process is deleted when the OTA update is
deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
forceDeleteAWSJob (p. 199)
When true, deletes the AWS IoT job created by the OTAUpdate process even if it is "IN_PROGRESS".
Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will
occur. The default is false.
otaUpdateId (p. 199)
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
199
AWS IoT API Reference
DeleteOTAUpdate
InvalidRequestException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
200
AWS IoT API Reference
DeletePackage
DeletePackage
Service: AWS IoT
Note: All package versions must be deleted before deleting the software package.
Request Syntax
DELETE /packages/packageName?clientToken=clientToken HTTP/1.1
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
packageName (p. 201)
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
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
201
AWS IoT API Reference
DeletePackage
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
202
AWS IoT API Reference
DeletePackageVersion
DeletePackageVersion
Service: AWS IoT
Note: If a package version is designated as default, you must remove the designation from the software
package using the UpdatePackage (p. 689) action.
Request Syntax
DELETE /packages/packageName/versions/versionName?clientToken=clientToken HTTP/1.1
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
packageName (p. 203)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
versionName (p. 203)
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.
203
AWS IoT API Reference
DeletePackageVersion
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
204
AWS IoT API Reference
DeletePolicy
DeletePolicy
Service: AWS IoT
To delete a policy, use the DeletePolicyVersion (p. 207) action to delete all non-default versions of the
policy; use the DetachPolicy (p. 339) action to detach the policy from any certificate; and then use the
DeletePolicy action to delete the policy.
When a policy is deleted using DeletePolicy, its default version is deleted with it.
Note
Because of the distributed nature of AWS, it can take up to five minutes after a policy is
detached before it's ready to be deleted.
Request Syntax
DELETE /policies/policyName HTTP/1.1
Pattern: [\w+=,.@-]+
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
DeleteConflictException
You can't delete the resource because it is attached to one or more resources.
205
AWS IoT API Reference
DeletePolicy
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
206
AWS IoT API Reference
DeletePolicyVersion
DeletePolicyVersion
Service: AWS IoT
Deletes the specified version of the specified policy. You cannot delete the default version of a policy
using this action. To delete the default version of a policy, use DeletePolicy (p. 205). To find out which
version of a policy is marked as the default version, use ListPolicyVersions.
Request Syntax
DELETE /policies/policyName/version/policyVersionId HTTP/1.1
Pattern: [\w+=,.@-]+
Required: Yes
policyVersionId (p. 207)
Pattern: [0-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
DeleteConflictException
You can't delete the resource because it is attached to one or more resources.
207
AWS IoT API Reference
DeletePolicyVersion
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
208
AWS IoT API Reference
DeleteProvisioningTemplate
DeleteProvisioningTemplate
Service: AWS IoT
Request Syntax
DELETE /provisioning-templates/templateName HTTP/1.1
Pattern: ^[0-9A-Za-z_-]+$
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
You can't delete the resource because it is attached to one or more resources.
209
AWS IoT API Reference
DeleteProvisioningTemplate
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
210
AWS IoT API Reference
DeleteProvisioningTemplateVersion
DeleteProvisioningTemplateVersion
Service: AWS IoT
Request Syntax
DELETE /provisioning-templates/templateName/versions/versionId HTTP/1.1
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
versionId (p. 211)
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
You can't delete the resource because it is attached to one or more resources.
211
AWS IoT API Reference
DeleteProvisioningTemplateVersion
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
212
AWS IoT API Reference
DeleteRegistrationCode
DeleteRegistrationCode
Service: AWS IoT
Request Syntax
DELETE /registrationcode HTTP/1.1
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
213
AWS IoT API Reference
DeleteRegistrationCode
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
214
AWS IoT API Reference
DeleteRoleAlias
DeleteRoleAlias
Service: AWS IoT
Request Syntax
DELETE /role-aliases/roleAlias HTTP/1.1
Pattern: [\w=,@-]+
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
DeleteConflictException
You can't delete the resource because it is attached to one or more resources.
215
AWS IoT API Reference
DeleteRoleAlias
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
216
AWS IoT API Reference
DeleteScheduledAudit
DeleteScheduledAudit
Service: AWS IoT
Request Syntax
DELETE /audit/scheduledaudits/scheduledAuditName HTTP/1.1
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
217
AWS IoT API Reference
DeleteScheduledAudit
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
218
AWS IoT API Reference
DeleteSecurityProfile
DeleteSecurityProfile
Service: AWS IoT
Request Syntax
DELETE /security-profiles/securityProfileName?expectedVersion=expectedVersion HTTP/1.1
The expected version of the security profile. A new version is generated whenever the
security profile is updated. If you specify a value that is different from the actual version, a
VersionConflictException is thrown.
securityProfileName (p. 219)
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
219
AWS IoT API Reference
DeleteSecurityProfile
ThrottlingException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
220
AWS IoT API Reference
DeleteStream
DeleteStream
Service: AWS IoT
Deletes a stream.
Request Syntax
DELETE /streams/streamId HTTP/1.1
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
DeleteConflictException
You can't delete the resource because it is attached to one or more resources.
221
AWS IoT API Reference
DeleteStream
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
222
AWS IoT API Reference
DeleteThing
DeleteThing
Service: AWS IoT
Deletes the specified thing. Returns successfully with no error if the deletion is successful or you specify a
thing that doesn't exist.
Request Syntax
DELETE /things/thingName?expectedVersion=expectedVersion HTTP/1.1
The expected version of the thing record in the registry. If the version of the record in the registry
does not match the expected version specified in the request, the DeleteThing request is rejected
with a VersionConflictException.
thingName (p. 223)
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
223
AWS IoT API Reference
DeleteThing
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
224
AWS IoT API Reference
DeleteThingGroup
DeleteThingGroup
Service: AWS IoT
Request Syntax
DELETE /thing-groups/thingGroupName?expectedVersion=expectedVersion HTTP/1.1
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
225
AWS IoT API Reference
DeleteThingGroup
ThrottlingException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
226
AWS IoT API Reference
DeleteThingType
DeleteThingType
Service: AWS IoT
Deletes the specified thing type. You cannot delete a thing type if it has things associated with it. To
delete a thing type, first mark it as deprecated by calling DeprecateThingType (p. 235), then remove
any associated things by calling UpdateThing (p. 716) to change the thing type on any associated thing,
and finally use DeleteThingType (p. 227) to delete the thing type.
Request Syntax
DELETE /thing-types/thingTypeName HTTP/1.1
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
227
AWS IoT API Reference
DeleteThingType
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
228
AWS IoT API Reference
DeleteTopicRule
DeleteTopicRule
Service: AWS IoT
Request Syntax
DELETE /rules/ruleName HTTP/1.1
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
229
AWS IoT API Reference
DeleteTopicRule
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
230
AWS IoT API Reference
DeleteTopicRuleDestination
DeleteTopicRuleDestination
Service: AWS IoT
Request Syntax
DELETE /destinations/arn+ HTTP/1.1
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
231
AWS IoT API Reference
DeleteTopicRuleDestination
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
232
AWS IoT API Reference
DeleteV2LoggingLevel
DeleteV2LoggingLevel
Service: AWS IoT
Request Syntax
DELETE /v2LoggingLevel?targetName=targetName&targetType=targetType HTTP/1.1
The name of the resource for which you are configuring logging.
Required: Yes
targetType (p. 233)
The type of resource for which you are configuring logging. Must be THING_Group.
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
InternalException
233
AWS IoT API Reference
DeleteV2LoggingLevel
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
234
AWS IoT API Reference
DeprecateThingType
DeprecateThingType
Service: AWS IoT
Deprecates a thing type. You can not associate new things with deprecated thing type.
Request Syntax
POST /thing-types/thingTypeName/deprecate HTTP/1.1
Content-type: application/json
{
"undoDeprecate": boolean
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Whether to undeprecate a deprecated thing type. If true, the thing type will not be deprecated
anymore and you can associate it with things.
Type: Boolean
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
235
AWS IoT API Reference
DeprecateThingType
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
236
AWS IoT API Reference
DescribeAccountAuditConfiguration
DescribeAccountAuditConfiguration
Service: AWS IoT
Gets information about the Device Defender audit settings for this account. Settings include how audit
notifications are sent and which audit checks are enabled or disabled.
Request Syntax
GET /audit/configuration HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"auditCheckConfigurations": {
"string" : {
"enabled": boolean
}
},
"auditNotificationTargetConfigurations": {
"string" : {
"enabled": boolean,
"roleArn": "string",
"targetArn": "string"
}
},
"roleArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Which audit checks are enabled and disabled for this account.
Information about the targets to which audit notifications are sent for this account.
237
AWS IoT API Reference
DescribeAccountAuditConfiguration
The ARN of the role that grants permission to AWS IoT to access information about your devices,
policies, certificates, and other items as required when performing an audit.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
238
AWS IoT API Reference
DescribeAuditFinding
DescribeAuditFinding
Service: AWS IoT
Gets information about a single audit finding. Properties include the reason for noncompliance, the
severity of the issue, and the start time when the audit that returned the finding.
Request Syntax
GET /audit/findings/findingId HTTP/1.1
A unique identifier for a single audit finding. You can use this identifier to apply mitigation actions to
the finding.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"finding": {
"checkName": "string",
"findingId": "string",
"findingTime": number,
"isSuppressed": boolean,
"nonCompliantResource": {
"additionalInfo": {
"string" : "string"
},
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
239
AWS IoT API Reference
DescribeAuditFinding
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"resourceType": "string"
},
"reasonForNonCompliance": "string",
"reasonForNonComplianceCode": "string",
"relatedResources": [
{
"additionalInfo": {
"string" : "string"
},
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"resourceType": "string"
}
],
"severity": "string",
"taskId": "string",
"taskStartTime": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
240
AWS IoT API Reference
DescribeAuditFinding
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
241
AWS IoT API Reference
DescribeAuditMitigationActionsTask
DescribeAuditMitigationActionsTask
Service: AWS IoT
Gets information about an audit mitigation task that is used to apply mitigation actions to a set of audit
findings. Properties include the actions being applied, the audit checks to which they're being applied,
the task status, and aggregated task statistics.
Request Syntax
GET /audit/mitigationactions/tasks/taskId HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"actionsDefinition": [
{
"actionParams": {
"addThingsToThingGroupParams": {
"overrideDynamicGroups": boolean,
"thingGroupNames": [ "string" ]
},
"enableIoTLoggingParams": {
"logLevel": "string",
"roleArnForLogging": "string"
},
"publishFindingToSnsParams": {
"topicArn": "string"
},
"replaceDefaultPolicyVersionParams": {
"templateName": "string"
},
"updateCACertificateParams": {
"action": "string"
},
"updateDeviceCertificateParams": {
"action": "string"
}
242
AWS IoT API Reference
DescribeAuditMitigationActionsTask
},
"id": "string",
"name": "string",
"roleArn": "string"
}
],
"auditCheckToActionsMapping": {
"string" : [ "string" ]
},
"endTime": number,
"startTime": number,
"target": {
"auditCheckToReasonCodeFilter": {
"string" : [ "string" ]
},
"auditTaskId": "string",
"findingIds": [ "string" ]
},
"taskStatistics": {
"string" : {
"canceledFindingsCount": number,
"failedFindingsCount": number,
"skippedFindingsCount": number,
"succeededFindingsCount": number,
"totalFindingsCount": number
}
},
"taskStatus": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Specifies the mitigation actions and their parameters that are applied as part of this task.
Specifies the mitigation actions that should be applied to specific audit checks.
Pattern: [a-zA-Z0-9_-]+
endTime (p. 242)
The date and time when the task was completed or canceled.
Type: Timestamp
startTime (p. 242)
Type: Timestamp
243
AWS IoT API Reference
DescribeAuditMitigationActionsTask
Identifies the findings to which the mitigation actions are applied. This can be by audit checks, by
audit task, or a set of findings.
Aggregate counts of the results when the mitigation tasks were applied to the findings for this audit
mitigation actions task.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
244
AWS IoT API Reference
DescribeAuditMitigationActionsTask
245
AWS IoT API Reference
DescribeAuditSuppression
DescribeAuditSuppression
Service: AWS IoT
Request Syntax
POST /audit/suppressions/describe HTTP/1.1
Content-type: application/json
{
"checkName": "string",
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
}
}
Request Body
The request accepts the following data in JSON format.
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Type: String
Required: Yes
resourceIdentifier (p. 246)
Required: Yes
246
AWS IoT API Reference
DescribeAuditSuppression
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"checkName": "string",
"description": "string",
"expirationDate": number,
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"suppressIndefinitely": boolean
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Type: String
description (p. 247)
Type: String
Pattern: [\p{Graph}\x20]*
expirationDate (p. 247)
Type: Timestamp
resourceIdentifier (p. 247)
247
AWS IoT API Reference
DescribeAuditSuppression
Type: Boolean
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
248
AWS IoT API Reference
DescribeAuditTask
DescribeAuditTask
Service: AWS IoT
Request Syntax
GET /audit/tasks/taskId HTTP/1.1
Pattern: [a-zA-Z0-9\-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"auditDetails": {
"string" : {
"checkCompliant": boolean,
"checkRunStatus": "string",
"errorCode": "string",
"message": "string",
"nonCompliantResourcesCount": number,
"suppressedNonCompliantResourcesCount": number,
"totalResourcesCount": number
}
},
"scheduledAuditName": "string",
"taskStartTime": number,
"taskStatistics": {
"canceledChecks": number,
"compliantChecks": number,
"failedChecks": number,
"inProgressChecks": number,
"nonCompliantChecks": number,
"totalChecks": number,
"waitingForDataCollectionChecks": number
},
"taskStatus": "string",
249
AWS IoT API Reference
DescribeAuditTask
"taskType": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The name of the scheduled audit (only if the audit was a scheduled audit).
Type: String
Pattern: [a-zA-Z0-9_-]+
taskStartTime (p. 249)
Type: Timestamp
taskStatistics (p. 249)
Type: String
Type: String
Errors
InternalFailureException
250
AWS IoT API Reference
DescribeAuditTask
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
251
AWS IoT API Reference
DescribeAuthorizer
DescribeAuthorizer
Service: AWS IoT
Describes an authorizer.
Request Syntax
GET /authorizer/authorizerName HTTP/1.1
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizerDescription": {
"authorizerArn": "string",
"authorizerFunctionArn": "string",
"authorizerName": "string",
"creationDate": number,
"enableCachingForHttp": boolean,
"lastModifiedDate": number,
"signingDisabled": boolean,
"status": "string",
"tokenKeyName": "string",
"tokenSigningPublicKeys": {
"string" : "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
252
AWS IoT API Reference
DescribeAuthorizer
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
253
AWS IoT API Reference
DescribeBillingGroup
DescribeBillingGroup
Service: AWS IoT
Request Syntax
GET /billing-groups/billingGroupName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"billingGroupArn": "string",
"billingGroupId": "string",
"billingGroupMetadata": {
"creationDate": number
},
"billingGroupName": "string",
"billingGroupProperties": {
"billingGroupDescription": "string"
},
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
254
AWS IoT API Reference
DescribeBillingGroup
Type: String
billingGroupId (p. 254)
Type: String
Pattern: [a-zA-Z0-9\-]+
billingGroupMetadata (p. 254)
Type: String
Pattern: [a-zA-Z0-9:_-]+
billingGroupProperties (p. 254)
Type: Long
Errors
InternalFailureException
255
AWS IoT API Reference
DescribeBillingGroup
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
256
AWS IoT API Reference
DescribeCACertificate
DescribeCACertificate
Service: AWS IoT
Request Syntax
GET /cacertificate/caCertificateId HTTP/1.1
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateDescription": {
"autoRegistrationStatus": "string",
"certificateArn": "string",
"certificateId": "string",
"certificateMode": "string",
"certificatePem": "string",
"creationDate": number,
"customerVersion": number,
"generationId": "string",
"lastModifiedDate": number,
"ownedBy": "string",
"status": "string",
"validity": {
"notAfter": number,
"notBefore": number
}
},
"registrationConfig": {
"roleArn": "string",
"templateBody": "string",
"templateName": "string"
}
257
AWS IoT API Reference
DescribeCACertificate
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
258
AWS IoT API Reference
DescribeCACertificate
259
AWS IoT API Reference
DescribeCertificate
DescribeCertificate
Service: AWS IoT
Request Syntax
GET /certificates/certificateId HTTP/1.1
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateDescription": {
"caCertificateId": "string",
"certificateArn": "string",
"certificateId": "string",
"certificateMode": "string",
"certificatePem": "string",
"creationDate": number,
"customerVersion": number,
"generationId": "string",
"lastModifiedDate": number,
"ownedBy": "string",
"previousOwnedBy": "string",
"status": "string",
"transferData": {
"acceptDate": number,
"rejectDate": number,
"rejectReason": "string",
"transferDate": number,
"transferMessage": "string"
},
"validity": {
"notAfter": number,
"notBefore": number
260
AWS IoT API Reference
DescribeCertificate
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
261
AWS IoT API Reference
DescribeCertificate
262
AWS IoT API Reference
DescribeCustomMetric
DescribeCustomMetric
Service: AWS IoT
Request Syntax
GET /custom-metric/metricName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"displayName": "string",
"lastModifiedDate": number,
"metricArn": "string",
"metricName": "string",
"metricType": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
263
AWS IoT API Reference
DescribeCustomMetric
Field represents a friendly name in the console for the custom metric; doesn't have to be unique.
Don't use this name as the metric identifier in the device metric report. Can be updated.
Type: String
Pattern: [\p{Graph}\x20]*
lastModifiedDate (p. 263)
The time the custom metric was last modified in milliseconds since epoch.
Type: Timestamp
metricArn (p. 263)
Type: String
metricName (p. 263)
Type: String
Pattern: [a-zA-Z0-9:_-]+
metricType (p. 263)
Type: String
Errors
InternalFailureException
264
AWS IoT API Reference
DescribeCustomMetric
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
265
AWS IoT API Reference
DescribeDefaultAuthorizer
DescribeDefaultAuthorizer
Service: AWS IoT
Request Syntax
GET /default-authorizer HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizerDescription": {
"authorizerArn": "string",
"authorizerFunctionArn": "string",
"authorizerName": "string",
"creationDate": number,
"enableCachingForHttp": boolean,
"lastModifiedDate": number,
"signingDisabled": boolean,
"status": "string",
"tokenKeyName": "string",
"tokenSigningPublicKeys": {
"string" : "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
266
AWS IoT API Reference
DescribeDefaultAuthorizer
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
267
AWS IoT API Reference
DescribeDetectMitigationActionsTask
DescribeDetectMitigationActionsTask
Service: AWS IoT
Request Syntax
GET /detect/mitigationactions/tasks/taskId HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taskSummary": {
"actionsDefinition": [
{
"actionParams": {
"addThingsToThingGroupParams": {
"overrideDynamicGroups": boolean,
"thingGroupNames": [ "string" ]
},
"enableIoTLoggingParams": {
"logLevel": "string",
"roleArnForLogging": "string"
},
"publishFindingToSnsParams": {
"topicArn": "string"
},
"replaceDefaultPolicyVersionParams": {
"templateName": "string"
},
"updateCACertificateParams": {
"action": "string"
},
"updateDeviceCertificateParams": {
268
AWS IoT API Reference
DescribeDetectMitigationActionsTask
"action": "string"
}
},
"id": "string",
"name": "string",
"roleArn": "string"
}
],
"onlyActiveViolationsIncluded": boolean,
"suppressedAlertsIncluded": boolean,
"target": {
"behaviorName": "string",
"securityProfileName": "string",
"violationIds": [ "string" ]
},
"taskEndTime": number,
"taskId": "string",
"taskStartTime": number,
"taskStatistics": {
"actionsExecuted": number,
"actionsFailed": number,
"actionsSkipped": number
},
"taskStatus": "string",
"violationEventOccurrenceRange": {
"endTime": number,
"startTime": number
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
269
AWS IoT API Reference
DescribeDetectMitigationActionsTask
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
270
AWS IoT API Reference
DescribeDimension
DescribeDimension
Service: AWS IoT
Request Syntax
GET /dimensions/name HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"arn": "string",
"creationDate": number,
"lastModifiedDate": number,
"name": "string",
"stringValues": [ "string" ],
"type": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
271
AWS IoT API Reference
DescribeDimension
Type: Timestamp
lastModifiedDate (p. 271)
Type: Timestamp
name (p. 271)
Type: String
Pattern: [a-zA-Z0-9:_-]+
stringValues (p. 271)
The value or list of values used to scope the dimension. For example, for topic filters, this is the
pattern used to match the MQTT topic name.
Type: String
Errors
InternalFailureException
272
AWS IoT API Reference
DescribeDimension
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
273
AWS IoT API Reference
DescribeDomainConfiguration
DescribeDomainConfiguration
Service: AWS IoT
Request Syntax
GET /domainConfigurations/domainConfigurationName HTTP/1.1
Pattern: [\w.:-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizerConfig": {
"allowAuthorizerOverride": boolean,
"defaultAuthorizerName": "string"
},
"domainConfigurationArn": "string",
"domainConfigurationName": "string",
"domainConfigurationStatus": "string",
"domainName": "string",
"domainType": "string",
"lastStatusChangeDate": number,
"serverCertificates": [
{
"serverCertificateArn": "string",
"serverCertificateStatus": "string",
"serverCertificateStatusDetail": "string"
}
],
"serviceType": "string",
"tlsConfig": {
"securityPolicy": "string"
}
}
274
AWS IoT API Reference
DescribeDomainConfiguration
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
domainConfigurationName (p. 274)
Type: String
Pattern: [\w.:-]+
domainConfigurationStatus (p. 274)
A Boolean value that specifies the current state of the domain configuration.
Type: String
Type: String
Pattern: [\s\S]*
domainType (p. 274)
Type: String
The date and time the domain configuration's status was last changed.
Type: Timestamp
serverCertificates (p. 274)
A list containing summary information about the server certificate included in the domain
configuration.
275
AWS IoT API Reference
DescribeDomainConfiguration
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
276
AWS IoT API Reference
DescribeDomainConfiguration
277
AWS IoT API Reference
DescribeEndpoint
DescribeEndpoint
Service: AWS IoT
Returns a unique endpoint specific to the AWS account making the call.
Request Syntax
GET /endpoint?endpointType=endpointType HTTP/1.1
We strongly recommend that customers use the newer iot:Data-ATS endpoint type to avoid
issues related to the widespread distrust of Symantec certificate authorities. ATS Signed Certificates
are more secure and are trusted by most popular browsers.
Pattern: [\s\S]*
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"endpointAddress": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
278
AWS IoT API Reference
DescribeEndpoint
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
279
AWS IoT API Reference
DescribeEventConfigurations
DescribeEventConfigurations
Service: AWS IoT
Request Syntax
GET /event-configurations HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"eventConfigurations": {
"string" : {
"Enabled": boolean
}
},
"lastModifiedDate": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
eventConfigurations (p. 280)
280
AWS IoT API Reference
DescribeEventConfigurations
Type: Timestamp
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
281
AWS IoT API Reference
DescribeFleetMetric
DescribeFleetMetric
Service: AWS IoT
Request Syntax
GET /fleet-metric/metricName HTTP/1.1
Pattern: [a-zA-Z0-9_\-\.]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"aggregationField": "string",
"aggregationType": {
"name": "string",
"values": [ "string" ]
},
"creationDate": number,
"description": "string",
"indexName": "string",
"lastModifiedDate": number,
"metricArn": "string",
"metricName": "string",
"period": number,
"queryString": "string",
"queryVersion": "string",
"unit": "string",
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
282
AWS IoT API Reference
DescribeFleetMetric
Type: String
Type: Timestamp
description (p. 282)
Type: String
Pattern: [\p{Graph}\x20]*
indexName (p. 282)
Type: String
Pattern: [a-zA-Z0-9:_-]+
lastModifiedDate (p. 282)
Type: Timestamp
metricArn (p. 282)
Type: String
metricName (p. 282)
Type: String
Pattern: [a-zA-Z0-9_\-\.]+
period (p. 282)
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be
multiple of 60.
283
AWS IoT API Reference
DescribeFleetMetric
Type: Integer
Type: String
Type: String
unit (p. 282)
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by
CW metric.
Type: String
Type: Long
Errors
InternalFailureException
284
AWS IoT API Reference
DescribeFleetMetric
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
285
AWS IoT API Reference
DescribeIndex
DescribeIndex
Service: AWS IoT
Request Syntax
GET /indices/indexName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"indexName": "string",
"indexStatus": "string",
"schema": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [a-zA-Z0-9:_-]+
286
AWS IoT API Reference
DescribeIndex
Type: String
Contains a value that specifies the type of indexing performed. Valid values are:
• REGISTRY – Your thing index contains only registry data.
• REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
• REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing
connectivity status data.
• REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data,
shadow data, and thing connectivity status data.
• MULTI_INDEXING_MODE - Your thing index contains multiple data sources. For more information,
see GetIndexingConfiguration.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
287
AWS IoT API Reference
DescribeIndex
288
AWS IoT API Reference
DescribeJob
DescribeJob
Service: AWS IoT
Describes a job.
Request Syntax
GET /jobs/jobId HTTP/1.1
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"documentSource": "string",
"job": {
"abortConfig": {
"criteriaList": [
{
"action": "string",
"failureType": "string",
"minNumberOfExecutedThings": number,
"thresholdPercentage": number
}
]
},
"comment": "string",
"completedAt": number,
"createdAt": number,
"description": "string",
"destinationPackageVersions": [ "string" ],
"documentParameters": {
"string" : "string"
},
"forceCanceled": boolean,
"isConcurrent": boolean,
"jobArn": "string",
"jobExecutionsRetryConfig": {
"criteriaList": [
289
AWS IoT API Reference
DescribeJob
{
"failureType": "string",
"numberOfRetries": number
}
]
},
"jobExecutionsRolloutConfig": {
"exponentialRate": {
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"jobId": "string",
"jobProcessDetails": {
"numberOfCanceledThings": number,
"numberOfFailedThings": number,
"numberOfInProgressThings": number,
"numberOfQueuedThings": number,
"numberOfRejectedThings": number,
"numberOfRemovedThings": number,
"numberOfSucceededThings": number,
"numberOfTimedOutThings": number,
"processingTargets": [ "string" ]
},
"jobTemplateArn": "string",
"lastUpdatedAt": number,
"namespaceId": "string",
"presignedUrlConfig": {
"expiresInSec": number,
"roleArn": "string"
},
"reasonCode": "string",
"scheduledJobRollouts": [
{
"startTime": "string"
}
],
"schedulingConfig": {
"endBehavior": "string",
"endTime": "string",
"maintenanceWindows": [
{
"durationInMinutes": number,
"startTime": "string"
}
],
"startTime": "string"
},
"status": "string",
"targets": [ "string" ],
"targetSelection": "string",
"timeoutConfig": {
"inProgressTimeoutInMinutes": number
}
}
}
290
AWS IoT API Reference
DescribeJob
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
291
AWS IoT API Reference
DescribeJob
292
AWS IoT API Reference
DescribeJobExecution
DescribeJobExecution
Service: AWS IoT
Request Syntax
GET /things/thingName/jobs/jobId?executionNumber=executionNumber HTTP/1.1
A string (consisting of the digits "0" through "9" which is used to specify a particular job execution on
a particular device.
jobId (p. 293)
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
thingName (p. 293)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"execution": {
"approximateSecondsBeforeTimedOut": number,
"executionNumber": number,
"forceCanceled": boolean,
"jobId": "string",
"lastUpdatedAt": number,
"queuedAt": number,
"startedAt": number,
293
AWS IoT API Reference
DescribeJobExecution
"status": "string",
"statusDetails": {
"detailsMap": {
"string" : "string"
}
},
"thingArn": "string",
"versionNumber": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
294
AWS IoT API Reference
DescribeJobExecution
295
AWS IoT API Reference
DescribeJobTemplate
DescribeJobTemplate
Service: AWS IoT
Request Syntax
GET /job-templates/jobTemplateId HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"abortConfig": {
"criteriaList": [
{
"action": "string",
"failureType": "string",
"minNumberOfExecutedThings": number,
"thresholdPercentage": number
}
]
},
"createdAt": number,
"description": "string",
"destinationPackageVersions": [ "string" ],
"document": "string",
"documentSource": "string",
"jobExecutionsRetryConfig": {
"criteriaList": [
{
"failureType": "string",
"numberOfRetries": number
}
]
},
"jobExecutionsRolloutConfig": {
"exponentialRate": {
296
AWS IoT API Reference
DescribeJobTemplate
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"jobTemplateArn": "string",
"jobTemplateId": "string",
"maintenanceWindows": [
{
"durationInMinutes": number,
"startTime": "string"
}
],
"presignedUrlConfig": {
"expiresInSec": number,
"roleArn": "string"
},
"timeoutConfig": {
"inProgressTimeoutInMinutes": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The criteria that determine when and how a job abort takes place.
The time, in seconds since the epoch, when the job template was created.
Type: Timestamp
description (p. 296)
Type: String
Pattern: [^\p{C}]+
destinationPackageVersions (p. 296)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are
allowed.
297
AWS IoT API Reference
DescribeJobTemplate
Pattern: ^arn:[!-~]+$
document (p. 296)
Type: String
Type: String
The configuration that determines how many retries are allowed for each failure type for a job.
Type: String
Pattern: ^arn:[!-~]+$
jobTemplateId (p. 296)
Type: String
Pattern: [a-zA-Z0-9_-]+
maintenanceWindows (p. 296)
Allows you to configure an optional maintenance window for the rollout of a job document to all
devices in the target group for a job.
Specifies the amount of time each device has to finish its execution of the job. A timer is started
when the job execution status is set to IN_PROGRESS. If the job execution status is not set to
another terminal state before the timer expires, it will be automatically set to TIMED_OUT.
298
AWS IoT API Reference
DescribeJobTemplate
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
299
AWS IoT API Reference
DescribeManagedJobTemplate
DescribeManagedJobTemplate
Service: AWS IoT
Request Syntax
GET /managed-job-templates/templateName?templateVersion=templateVersion HTTP/1.1
Required: Yes
templateVersion (p. 300)
An optional parameter to specify version of a managed template. If not specified, the pre-defined
default version is returned.
Pattern: ^[1-9]+.[0-9]+
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"description": "string",
"document": "string",
"documentParameters": [
{
"description": "string",
"example": "string",
"key": "string",
"optional": boolean,
"regex": "string"
}
],
"environments": [ "string" ],
"templateArn": "string",
"templateName": "string",
"templateVersion": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
300
AWS IoT API Reference
DescribeManagedJobTemplate
Type: String
Pattern: [^\p{C}]+
document (p. 300)
Type: String
A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a
managed template.
Note
documentParameters can only be used when creating jobs from AWS managed
templates. This parameter can't be used with custom job templates or to create jobs from
them.
A list of environments that are supported with the managed job template.
Pattern: [^\p{C}]+
templateArn (p. 300)
Type: String
Pattern: ^arn:[!-~]+$
templateName (p. 300)
Type: String
Type: String
Pattern: ^[1-9]+.[0-9]+
301
AWS IoT API Reference
DescribeManagedJobTemplate
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
302
AWS IoT API Reference
DescribeMitigationAction
DescribeMitigationAction
Service: AWS IoT
Request Syntax
GET /mitigationactions/actions/actionName HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"actionArn": "string",
"actionId": "string",
"actionName": "string",
"actionParams": {
"addThingsToThingGroupParams": {
"overrideDynamicGroups": boolean,
"thingGroupNames": [ "string" ]
},
"enableIoTLoggingParams": {
"logLevel": "string",
"roleArnForLogging": "string"
},
"publishFindingToSnsParams": {
"topicArn": "string"
},
"replaceDefaultPolicyVersionParams": {
"templateName": "string"
},
"updateCACertificateParams": {
"action": "string"
},
"updateDeviceCertificateParams": {
"action": "string"
303
AWS IoT API Reference
DescribeMitigationAction
}
},
"actionType": "string",
"creationDate": number,
"lastModifiedDate": number,
"roleArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
actionId (p. 303)
Type: String
actionName (p. 303)
Type: String
Pattern: [a-zA-Z0-9_-]+
actionParams (p. 303)
Parameters that control how the mitigation action is applied, specific to the type of mitigation
action.
Type: String
The date and time when the mitigation action was added to your AWS accounts.
Type: Timestamp
lastModifiedDate (p. 303)
The date and time when the mitigation action was last changed.
Type: Timestamp
304
AWS IoT API Reference
DescribeMitigationAction
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
305
AWS IoT API Reference
DescribeProvisioningTemplate
DescribeProvisioningTemplate
Service: AWS IoT
Request Syntax
GET /provisioning-templates/templateName HTTP/1.1
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"defaultVersionId": number,
"description": "string",
"enabled": boolean,
"lastModifiedDate": number,
"preProvisioningHook": {
"payloadVersion": "string",
"targetArn": "string"
},
"provisioningRoleArn": "string",
"templateArn": "string",
"templateBody": "string",
"templateName": "string",
"type": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
306
AWS IoT API Reference
DescribeProvisioningTemplate
Type: Timestamp
defaultVersionId (p. 306)
Type: Integer
description (p. 306)
Type: String
Pattern: [^\p{C}]*
enabled (p. 306)
Type: Boolean
lastModifiedDate (p. 306)
Type: Timestamp
preProvisioningHook (p. 306)
The ARN of the role associated with the provisioning template. This IoT role grants permission to
provision a device.
Type: String
Type: String
templateBody (p. 306)
Type: String
Pattern: [\s\S]*
templateName (p. 306)
307
AWS IoT API Reference
DescribeProvisioningTemplate
Type: String
Pattern: ^[0-9A-Za-z_-]+$
type (p. 306)
The type you define in a provisioning template. You can create a template with only one type. You
can't change the template type after its creation. The default value is FLEET_PROVISIONING. For
more information about provisioning template, see: Provisioning template.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
308
AWS IoT API Reference
DescribeProvisioningTemplate
309
AWS IoT API Reference
DescribeProvisioningTemplateVersion
DescribeProvisioningTemplateVersion
Service: AWS IoT
Request Syntax
GET /provisioning-templates/templateName/versions/versionId HTTP/1.1
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
versionId (p. 310)
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"isDefaultVersion": boolean,
"templateBody": "string",
"versionId": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
310
AWS IoT API Reference
DescribeProvisioningTemplateVersion
Type: Timestamp
isDefaultVersion (p. 310)
Type: Boolean
templateBody (p. 310)
Type: String
Pattern: [\s\S]*
versionId (p. 310)
Type: Integer
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
311
AWS IoT API Reference
DescribeProvisioningTemplateVersion
312
AWS IoT API Reference
DescribeRoleAlias
DescribeRoleAlias
Service: AWS IoT
Request Syntax
GET /role-aliases/roleAlias HTTP/1.1
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"roleAliasDescription": {
"creationDate": number,
"credentialDurationSeconds": number,
"lastModifiedDate": number,
"owner": "string",
"roleAlias": "string",
"roleAliasArn": "string",
"roleArn": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
313
AWS IoT API Reference
DescribeRoleAlias
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
314
AWS IoT API Reference
DescribeScheduledAudit
DescribeScheduledAudit
Service: AWS IoT
Request Syntax
GET /audit/scheduledaudits/scheduledAuditName HTTP/1.1
The name of the scheduled audit whose information you want to get.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"dayOfMonth": "string",
"dayOfWeek": "string",
"frequency": "string",
"scheduledAuditArn": "string",
"scheduledAuditName": "string",
"targetCheckNames": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The day of the month on which the scheduled audit takes place. This is will be 1 through 31 or LAST.
If days 29-31 are specified, and the month does not have that many days, the audit takes place on
the LAST day of the month.
Type: String
315
AWS IoT API Reference
DescribeScheduledAudit
Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
dayOfWeek (p. 315)
The day of the week on which the scheduled audit takes place, either one of SUN, MON, TUE, WED,
THU, FRI, or SAT.
Type: String
How often the scheduled audit takes place, either one of DAILY, WEEKLY, BIWEEKLY, or MONTHLY.
The start time of each audit is determined by the system.
Type: String
Type: String
scheduledAuditName (p. 315)
Type: String
Pattern: [a-zA-Z0-9_-]+
targetCheckNames (p. 315)
Which checks are performed during the scheduled audit. Checks must be enabled for your account.
(Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Errors
InternalFailureException
316
AWS IoT API Reference
DescribeScheduledAudit
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
317
AWS IoT API Reference
DescribeSecurityProfile
DescribeSecurityProfile
Service: AWS IoT
Request Syntax
GET /security-profiles/securityProfileName HTTP/1.1
The name of the security profile whose information you want to get.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"additionalMetricsToRetain": [ "string" ],
"additionalMetricsToRetainV2": [
{
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
}
}
],
"alertTargets": {
"string" : {
"alertTargetArn": "string",
"roleArn": "string"
}
},
"behaviors": [
{
"criteria": {
"comparisonOperator": "string",
318
AWS IoT API Reference
DescribeSecurityProfile
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
}
],
"creationDate": number,
"lastModifiedDate": number,
"metricsExportConfig": {
"mqttTopic": "string",
"roleArn": "string"
},
"securityProfileArn": "string",
"securityProfileDescription": "string",
"securityProfileName": "string",
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
the profile's behaviors, but it is also retained for any metric specified here.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
the profile's behaviors, but it is also retained for any metric specified here.
319
AWS IoT API Reference
DescribeSecurityProfile
Where the alerts are sent. (Alerts are always sent to the console.)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Type: Timestamp
lastModifiedDate (p. 318)
Type: Timestamp
metricsExportConfig (p. 318)
Specifies the MQTT topic and role ARN required for metric export.
Type: String
securityProfileDescription (p. 318)
A description of the security profile (associated with the security profile when it was created or
updated).
Type: String
Pattern: [\p{Graph}\x20]*
securityProfileName (p. 318)
Type: String
Pattern: [a-zA-Z0-9:_-]+
version (p. 318)
The version of the security profile. A new version is generated whenever the security profile is
updated.
Type: Long
320
AWS IoT API Reference
DescribeSecurityProfile
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
321
AWS IoT API Reference
DescribeStream
DescribeStream
Service: AWS IoT
Request Syntax
GET /streams/streamId HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"streamInfo": {
"createdAt": number,
"description": "string",
"files": [
{
"fileId": number,
"s3Location": {
"bucket": "string",
"key": "string",
"version": "string"
}
}
],
"lastUpdatedAt": number,
"roleArn": "string",
"streamArn": "string",
"streamId": "string",
"streamVersion": number
}
}
322
AWS IoT API Reference
DescribeStream
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
323
AWS IoT API Reference
DescribeStream
324
AWS IoT API Reference
DescribeThing
DescribeThing
Service: AWS IoT
Request Syntax
GET /things/thingName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"attributes": {
"string" : "string"
},
"billingGroupName": "string",
"defaultClientId": "string",
"thingArn": "string",
"thingId": "string",
"thingName": "string",
"thingTypeName": "string",
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
325
AWS IoT API Reference
DescribeThing
Type: String
Pattern: [a-zA-Z0-9:_-]+
defaultClientId (p. 325)
The default MQTT client ID. For a typical device, the thing name is also used as the default MQTT
client ID. Although we don’t require a mapping between a thing's registry name and its use of MQTT
client IDs, certificates, or shadow state, we recommend that you choose a thing name and use it as
the MQTT client ID for the registry and the Device Shadow service.
This lets you better organize your AWS IoT fleet without removing the flexibility of the underlying
device certificate model or shadows.
Type: String
thingArn (p. 325)
Type: String
thingId (p. 325)
Type: String
thingName (p. 325)
Type: String
Pattern: [a-zA-Z0-9:_-]+
thingTypeName (p. 325)
Type: String
Pattern: [a-zA-Z0-9:_-]+
version (p. 325)
326
AWS IoT API Reference
DescribeThing
Note
To avoid unintentional changes to the information in the registry, you can pass the version
information in the expectedVersion parameter of the UpdateThing and DeleteThing
calls.
Type: Long
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
327
AWS IoT API Reference
DescribeThingGroup
DescribeThingGroup
Service: AWS IoT
Request Syntax
GET /thing-groups/thingGroupName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"indexName": "string",
"queryString": "string",
"queryVersion": "string",
"status": "string",
"thingGroupArn": "string",
"thingGroupId": "string",
"thingGroupMetadata": {
"creationDate": number,
"parentGroupName": "string",
"rootToParentThingGroups": [
{
"groupArn": "string",
"groupName": "string"
}
]
},
"thingGroupName": "string",
"thingGroupProperties": {
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
328
AWS IoT API Reference
DescribeThingGroup
},
"thingGroupDescription": "string"
},
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [a-zA-Z0-9:_-]+
queryString (p. 328)
Type: String
Type: String
status (p. 328)
Type: String
Type: String
thingGroupId (p. 328)
Type: String
Pattern: [a-zA-Z0-9\-]+
thingGroupMetadata (p. 328)
329
AWS IoT API Reference
DescribeThingGroup
Type: String
Pattern: [a-zA-Z0-9:_-]+
thingGroupProperties (p. 328)
Type: Long
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
330
AWS IoT API Reference
DescribeThingGroup
331
AWS IoT API Reference
DescribeThingRegistrationTask
DescribeThingRegistrationTask
Service: AWS IoT
Request Syntax
GET /thing-registration-tasks/taskId HTTP/1.1
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"failureCount": number,
"inputFileBucket": "string",
"inputFileKey": "string",
"lastModifiedDate": number,
"message": "string",
"percentageProgress": number,
"roleArn": "string",
"status": "string",
"successCount": number,
"taskId": "string",
"templateBody": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
332
AWS IoT API Reference
DescribeThingRegistrationTask
Type: Timestamp
failureCount (p. 332)
Type: Integer
inputFileBucket (p. 332)
Type: String
Pattern: [a-zA-Z0-9._-]+
inputFileKey (p. 332)
Type: String
Pattern: [a-zA-Z0-9!_.*'()-\/]+
lastModifiedDate (p. 332)
Type: Timestamp
message (p. 332)
The message.
Type: String
Type: Integer
The role ARN that grants access to the input file bucket.
Type: String
Type: String
333
AWS IoT API Reference
DescribeThingRegistrationTask
Type: Integer
taskId (p. 332)
Type: String
Type: String
Pattern: [\s\S]*
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
334
AWS IoT API Reference
DescribeThingRegistrationTask
335
AWS IoT API Reference
DescribeThingType
DescribeThingType
Service: AWS IoT
Request Syntax
GET /thing-types/thingTypeName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"thingTypeArn": "string",
"thingTypeId": "string",
"thingTypeMetadata": {
"creationDate": number,
"deprecated": boolean,
"deprecationDate": number
},
"thingTypeName": "string",
"thingTypeProperties": {
"searchableAttributes": [ "string" ],
"thingTypeDescription": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
336
AWS IoT API Reference
DescribeThingType
Type: String
thingTypeId (p. 336)
Type: String
thingTypeMetadata (p. 336)
The ThingTypeMetadata contains additional information about the thing type including: creation
date and time, a value indicating whether the thing type is deprecated, and a date and time when it
was deprecated.
Type: String
Pattern: [a-zA-Z0-9:_-]+
thingTypeProperties (p. 336)
The ThingTypeProperties contains information about the thing type including description, and a list
of searchable thing attribute names.
Errors
InternalFailureException
337
AWS IoT API Reference
DescribeThingType
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
338
AWS IoT API Reference
DetachPolicy
DetachPolicy
Service: AWS IoT
Request Syntax
POST /target-policies/policyName HTTP/1.1
Content-type: application/json
{
"target": "string"
}
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
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.
339
AWS IoT API Reference
DetachPolicy
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
340
AWS IoT API Reference
DetachPrincipalPolicy
DetachPrincipalPolicy
Service: AWS IoT
Note: This action is deprecated and works as expected for backward compatibility, but we won't add
enhancements. Use DetachPolicy (p. 339) instead.
Request Syntax
DELETE /principal-policies/policyName HTTP/1.1
x-amzn-iot-principal: principal
Pattern: [\w+=,.@-]+
Required: Yes
principal (p. 341)
The principal.
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
341
AWS IoT API Reference
DetachPrincipalPolicy
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
342
AWS IoT API Reference
DetachSecurityProfile
DetachSecurityProfile
Service: AWS IoT
Disassociates a Device Defender security profile from a thing group or from this account.
Request Syntax
DELETE /security-profiles/securityProfileName/targets?
securityProfileTargetArn=securityProfileTargetArn HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
securityProfileTargetArn (p. 343)
The ARN of the thing group from which the security profile is detached.
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
343
AWS IoT API Reference
DetachSecurityProfile
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
344
AWS IoT API Reference
DetachThingPrincipal
DetachThingPrincipal
Service: AWS IoT
Detaches the specified principal from the specified thing. A principal can be X.509 certificates, IAM users,
groups, and roles, Amazon Cognito identities or federated identities.
Note
This call is asynchronous. It might take several seconds for the detachment to propagate.
Request Syntax
DELETE /things/thingName/principals HTTP/1.1
x-amzn-principal: principal
If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon
Cognito identity, this value must be the ID of the Amazon Cognito identity.
Required: Yes
thingName (p. 345)
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
345
AWS IoT API Reference
DetachThingPrincipal
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
346
AWS IoT API Reference
DisableTopicRule
DisableTopicRule
Service: AWS IoT
Request Syntax
POST /rules/ruleName/disable HTTP/1.1
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
347
AWS IoT API Reference
DisableTopicRule
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
348
AWS IoT API Reference
EnableTopicRule
EnableTopicRule
Service: AWS IoT
Request Syntax
POST /rules/ruleName/enable HTTP/1.1
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
349
AWS IoT API Reference
EnableTopicRule
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
350
AWS IoT API Reference
GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummaries
Service: AWS IoT
Request Syntax
GET /behavior-model-training/summaries?
maxResults=maxResults&nextToken=nextToken&securityProfileName=securityProfileName HTTP/1.1
The maximum number of results to return at one time. The default is 10.
Pattern: [a-zA-Z0-9:_-]+
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"summaries": [
{
"behaviorName": "string",
"datapointsCollectionPercentage": number,
"lastModelRefreshDate": number,
"modelStatus": "string",
"securityProfileName": "string",
"trainingDataCollectionStartDate": number
}
]
}
351
AWS IoT API Reference
GetBehaviorModelTrainingSummaries
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
summaries (p. 351)
A list of all ML Detect behaviors and their model status for a given Security Profile.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
352
AWS IoT API Reference
GetBucketsAggregation
GetBucketsAggregation
Service: AWS IoT
Request Syntax
POST /indices/buckets HTTP/1.1
Content-type: application/json
{
"aggregationField": "string",
"bucketsAggregationType": {
"termsAggregation": {
"maxBuckets": number
}
},
"indexName": "string",
"queryString": "string",
"queryVersion": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
bucketsAggregationType (p. 353)
The basic control of the response shape and the bucket aggregation type to perform.
Required: Yes
indexName (p. 353)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
353
AWS IoT API Reference
GetBucketsAggregation
Type: String
Required: Yes
queryVersion (p. 353)
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"buckets": [
{
"count": number,
"keyValue": "string"
}
],
"totalCount": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.
keyValue: The aggregation field value counted for the particular bucket.
Type: Integer
Errors
IndexNotReadyException
354
AWS IoT API Reference
GetBucketsAggregation
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
355
AWS IoT API Reference
GetBucketsAggregation
356
AWS IoT API Reference
GetCardinality
GetCardinality
Service: AWS IoT
Returns the approximate count of unique values that match the query.
Request Syntax
POST /indices/cardinality HTTP/1.1
Content-type: application/json
{
"aggregationField": "string",
"indexName": "string",
"queryString": "string",
"queryVersion": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
indexName (p. 357)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
queryString (p. 357)
Type: String
Required: Yes
queryVersion (p. 357)
357
AWS IoT API Reference
GetCardinality
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"cardinality": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Integer
Errors
IndexNotReadyException
358
AWS IoT API Reference
GetCardinality
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
359
AWS IoT API Reference
GetEffectivePolicies
GetEffectivePolicies
Service: AWS IoT
Gets a list of the policies that have an effect on the authorization behavior of the specified device when it
connects to the AWS IoT device gateway.
Request Syntax
POST /effective-policies?thingName=thingName HTTP/1.1
Content-type: application/json
{
"cognitoIdentityPoolId": "string",
"principal": "string"
}
Pattern: [a-zA-Z0-9:_-]+
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
principal (p. 360)
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
360
AWS IoT API Reference
GetEffectivePolicies
{
"effectivePolicies": [
{
"policyArn": "string",
"policyDocument": "string",
"policyName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
361
AWS IoT API Reference
GetEffectivePolicies
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
362
AWS IoT API Reference
GetIndexingConfiguration
GetIndexingConfiguration
Service: AWS IoT
Request Syntax
GET /indexing/config HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"thingGroupIndexingConfiguration": {
"customFields": [
{
"name": "string",
"type": "string"
}
],
"managedFields": [
{
"name": "string",
"type": "string"
}
],
"thingGroupIndexingMode": "string"
},
"thingIndexingConfiguration": {
"customFields": [
{
"name": "string",
"type": "string"
}
],
"deviceDefenderIndexingMode": "string",
"filter": {
"geoLocations": [
{
"name": "string",
"order": "string"
}
],
"namedShadowNames": [ "string" ]
},
"managedFields": [
{
363
AWS IoT API Reference
GetIndexingConfiguration
"name": "string",
"type": "string"
}
],
"namedShadowIndexingMode": "string",
"thingConnectivityIndexingMode": "string",
"thingIndexingMode": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
364
AWS IoT API Reference
GetIndexingConfiguration
365
AWS IoT API Reference
GetJobDocument
GetJobDocument
Service: AWS IoT
Request Syntax
GET /jobs/jobId/job-document HTTP/1.1
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"document": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
InvalidRequestException
366
AWS IoT API Reference
GetJobDocument
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
367
AWS IoT API Reference
GetLoggingOptions
GetLoggingOptions
Service: AWS IoT
Request Syntax
GET /loggingOptions HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"logLevel": "string",
"roleArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Type: String
Errors
InternalException
368
AWS IoT API Reference
GetLoggingOptions
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
369
AWS IoT API Reference
GetOTAUpdate
GetOTAUpdate
Service: AWS IoT
Request Syntax
GET /otaUpdates/otaUpdateId HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"otaUpdateInfo": {
"additionalParameters": {
"string" : "string"
},
"awsIotJobArn": "string",
"awsIotJobId": "string",
"awsJobExecutionsRolloutConfig": {
"exponentialRate": {
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"awsJobPresignedUrlConfig": {
"expiresInSec": number
},
"creationDate": number,
"description": "string",
"errorInfo": {
"code": "string",
370
AWS IoT API Reference
GetOTAUpdate
"message": "string"
},
"lastModifiedDate": number,
"otaUpdateArn": "string",
"otaUpdateFiles": [
{
"attributes": {
"string" : "string"
},
"codeSigning": {
"awsSignerJobId": "string",
"customCodeSigning": {
"certificateChain": {
"certificateName": "string",
"inlineDocument": "string"
},
"hashAlgorithm": "string",
"signature": {
"inlineDocument": blob
},
"signatureAlgorithm": "string"
},
"startSigningJobParameter": {
"destination": {
"s3Destination": {
"bucket": "string",
"prefix": "string"
}
},
"signingProfileName": "string",
"signingProfileParameter": {
"certificateArn": "string",
"certificatePathOnDevice": "string",
"platform": "string"
}
}
},
"fileLocation": {
"s3Location": {
"bucket": "string",
"key": "string",
"version": "string"
},
"stream": {
"fileId": number,
"streamId": "string"
}
},
"fileName": "string",
"fileType": number,
"fileVersion": "string"
}
],
"otaUpdateId": "string",
"otaUpdateStatus": "string",
"protocols": [ "string" ],
"targets": [ "string" ],
"targetSelection": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
371
AWS IoT API Reference
GetOTAUpdate
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
372
AWS IoT API Reference
GetOTAUpdate
373
AWS IoT API Reference
GetPackage
GetPackage
Service: AWS IoT
Request Syntax
GET /packages/packageName HTTP/1.1
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"defaultVersionName": "string",
"description": "string",
"lastModifiedDate": number,
"packageArn": "string",
"packageName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
374
AWS IoT API Reference
GetPackage
Type: String
Pattern: [a-zA-Z0-9-_.]+
description (p. 374)
Type: String
Pattern: [^\p{C}]+
lastModifiedDate (p. 374)
Type: Timestamp
packageArn (p. 374)
Type: String
packageName (p. 374)
Type: String
Pattern: [a-zA-Z0-9-_.]+
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
375
AWS IoT API Reference
GetPackage
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
376
AWS IoT API Reference
GetPackageConfiguration
GetPackageConfiguration
Service: AWS IoT
Request Syntax
GET /package-configuration HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"versionUpdateByJobsConfig": {
"enabled": boolean,
"roleArn": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
377
AWS IoT API Reference
GetPackageConfiguration
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
378
AWS IoT API Reference
GetPackageVersion
GetPackageVersion
Service: AWS IoT
Request Syntax
GET /packages/packageName/versions/versionName HTTP/1.1
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
versionName (p. 379)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"attributes": {
"string" : "string"
},
"creationDate": number,
"description": "string",
"errorReason": "string",
"lastModifiedDate": number,
"packageName": "string",
"packageVersionArn": "string",
"status": "string",
"versionName": "string"
}
379
AWS IoT API Reference
GetPackageVersion
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Metadata that were added to the package version that can be used to define a package version’s
configuration.
Type: Timestamp
description (p. 379)
Type: String
Pattern: [^\p{C}]+
errorReason (p. 379)
Type: String
lastModifiedDate (p. 379)
Type: Timestamp
packageName (p. 379)
Type: String
Pattern: [a-zA-Z0-9-_.]+
packageVersionArn (p. 379)
Type: String
380
AWS IoT API Reference
GetPackageVersion
Pattern: ^arn:[!-~]+$
status (p. 379)
The status associated to the package version. For more information, see Package version lifecycle.
Type: String
Type: String
Pattern: [a-zA-Z0-9-_.]+
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
381
AWS IoT API Reference
GetPackageVersion
382
AWS IoT API Reference
GetPercentiles
GetPercentiles
Service: AWS IoT
Groups the aggregated values that match the query into percentile groupings. The default percentile
groupings are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles.
This function returns a value for each percentile group specified (or the default percentile groupings).
The percentile group "1" contains the aggregated field value that occurs in approximately one percent
of the values that match the query. The percentile group "5" contains the aggregated field value that
occurs in approximately five percent of the values that match the query, and so on. The result is an
approximation, the more values that match the query, the more accurate the percentile values.
Request Syntax
POST /indices/percentiles HTTP/1.1
Content-type: application/json
{
"aggregationField": "string",
"indexName": "string",
"percents": [ number ],
"queryString": "string",
"queryVersion": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
indexName (p. 383)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
percents (p. 383)
383
AWS IoT API Reference
GetPercentiles
Required: No
queryString (p. 383)
Type: String
Required: Yes
queryVersion (p. 383)
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"percentiles": [
{
"percent": number,
"value": number
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
IndexNotReadyException
384
AWS IoT API Reference
GetPercentiles
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
385
AWS IoT API Reference
GetPolicy
GetPolicy
Service: AWS IoT
Gets information about the specified policy with the policy document of the default version.
Request Syntax
GET /policies/policyName HTTP/1.1
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"defaultVersionId": "string",
"generationId": "string",
"lastModifiedDate": number,
"policyArn": "string",
"policyDocument": "string",
"policyName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
386
AWS IoT API Reference
GetPolicy
Type: String
Pattern: [0-9]+
generationId (p. 386)
Type: String
lastModifiedDate (p. 386)
Type: Timestamp
policyArn (p. 386)
Type: String
policyDocument (p. 386)
Type: String
Pattern: [\s\S]*
policyName (p. 386)
Type: String
Pattern: [\w+=,.@-]+
Errors
InternalFailureException
387
AWS IoT API Reference
GetPolicy
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
388
AWS IoT API Reference
GetPolicyVersion
GetPolicyVersion
Service: AWS IoT
Request Syntax
GET /policies/policyName/version/policyVersionId HTTP/1.1
Pattern: [\w+=,.@-]+
Required: Yes
policyVersionId (p. 389)
Pattern: [0-9]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"generationId": "string",
"isDefaultVersion": boolean,
"lastModifiedDate": number,
"policyArn": "string",
"policyDocument": "string",
"policyName": "string",
"policyVersionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
389
AWS IoT API Reference
GetPolicyVersion
Type: Timestamp
generationId (p. 389)
Type: String
isDefaultVersion (p. 389)
Type: Boolean
lastModifiedDate (p. 389)
Type: Timestamp
policyArn (p. 389)
Type: String
policyDocument (p. 389)
Type: String
Pattern: [\s\S]*
policyName (p. 389)
Type: String
Pattern: [\w+=,.@-]+
policyVersionId (p. 389)
Type: String
Pattern: [0-9]+
Errors
InternalFailureException
390
AWS IoT API Reference
GetPolicyVersion
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
391
AWS IoT API Reference
GetRegistrationCode
GetRegistrationCode
Service: AWS IoT
Request Syntax
GET /registrationcode HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"registrationCode": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Errors
InternalFailureException
392
AWS IoT API Reference
GetRegistrationCode
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
393
AWS IoT API Reference
GetStatistics
GetStatistics
Service: AWS IoT
Returns the count, average, sum, minimum, maximum, sum of squares, variance, and standard deviation
for the specified aggregated field. If the aggregation field is of type String, only the count statistic is
returned.
Request Syntax
POST /indices/statistics HTTP/1.1
Content-type: application/json
{
"aggregationField": "string",
"indexName": "string",
"queryString": "string",
"queryVersion": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
indexName (p. 394)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
queryString (p. 394)
The query used to search. You can specify "*" for the query string to get the count of all indexed
things in your AWS account.
Type: String
Required: Yes
394
AWS IoT API Reference
GetStatistics
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"statistics": {
"average": number,
"count": number,
"maximum": number,
"minimum": number,
"stdDeviation": number,
"sum": number,
"sumOfSquares": number,
"variance": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The statistics returned by the Fleet Indexing service based on the query and aggregation field.
Errors
IndexNotReadyException
395
AWS IoT API Reference
GetStatistics
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
396
AWS IoT API Reference
GetTopicRule
GetTopicRule
Service: AWS IoT
Request Syntax
GET /rules/ruleName HTTP/1.1
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"rule": {
"actions": [
{
"cloudwatchAlarm": {
"alarmName": "string",
"roleArn": "string",
"stateReason": "string",
"stateValue": "string"
},
"cloudwatchLogs": {
"batchMode": boolean,
"logGroupName": "string",
"roleArn": "string"
},
"cloudwatchMetric": {
"metricName": "string",
"metricNamespace": "string",
"metricTimestamp": "string",
"metricUnit": "string",
"metricValue": "string",
"roleArn": "string"
},
"dynamoDB": {
397
AWS IoT API Reference
GetTopicRule
"hashKeyField": "string",
"hashKeyType": "string",
"hashKeyValue": "string",
"operation": "string",
"payloadField": "string",
"rangeKeyField": "string",
"rangeKeyType": "string",
"rangeKeyValue": "string",
"roleArn": "string",
"tableName": "string"
},
"dynamoDBv2": {
"putItem": {
"tableName": "string"
},
"roleArn": "string"
},
"elasticsearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"firehose": {
"batchMode": boolean,
"deliveryStreamName": "string",
"roleArn": "string",
"separator": "string"
},
"http": {
"auth": {
"sigv4": {
"roleArn": "string",
"serviceName": "string",
"signingRegion": "string"
}
},
"confirmationUrl": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
},
"iotAnalytics": {
"batchMode": boolean,
"channelArn": "string",
"channelName": "string",
"roleArn": "string"
},
"iotEvents": {
"batchMode": boolean,
"inputName": "string",
"messageId": "string",
"roleArn": "string"
},
"iotSiteWise": {
"putAssetPropertyValueEntries": [
{
"assetId": "string",
"entryId": "string",
"propertyAlias": "string",
"propertyId": "string",
398
AWS IoT API Reference
GetTopicRule
"propertyValues": [
{
"quality": "string",
"timestamp": {
"offsetInNanos": "string",
"timeInSeconds": "string"
},
"value": {
"booleanValue": "string",
"doubleValue": "string",
"integerValue": "string",
"stringValue": "string"
}
}
]
}
],
"roleArn": "string"
},
"kafka": {
"clientProperties": {
"string" : "string"
},
"destinationArn": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"key": "string",
"partition": "string",
"topic": "string"
},
"kinesis": {
"partitionKey": "string",
"roleArn": "string",
"streamName": "string"
},
"lambda": {
"functionArn": "string"
},
"location": {
"deviceId": "string",
"latitude": "string",
"longitude": "string",
"roleArn": "string",
"timestamp": {
"unit": "string",
"value": "string"
},
"trackerName": "string"
},
"openSearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"republish": {
"headers": {
"contentType": "string",
"correlationData": "string",
"messageExpiry": "string",
"payloadFormatIndicator": "string",
399
AWS IoT API Reference
GetTopicRule
"responseTopic": "string",
"userProperties": [
{
"key": "string",
"value": "string"
}
]
},
"qos": number,
"roleArn": "string",
"topic": "string"
},
"s3": {
"bucketName": "string",
"cannedAcl": "string",
"key": "string",
"roleArn": "string"
},
"salesforce": {
"token": "string",
"url": "string"
},
"sns": {
"messageFormat": "string",
"roleArn": "string",
"targetArn": "string"
},
"sqs": {
"queueUrl": "string",
"roleArn": "string",
"useBase64": boolean
},
"stepFunctions": {
"executionNamePrefix": "string",
"roleArn": "string",
"stateMachineName": "string"
},
"timestream": {
"databaseName": "string",
"dimensions": [
{
"name": "string",
"value": "string"
}
],
"roleArn": "string",
"tableName": "string",
"timestamp": {
"unit": "string",
"value": "string"
}
}
}
],
"awsIotSqlVersion": "string",
"createdAt": number,
"description": "string",
"errorAction": {
"cloudwatchAlarm": {
"alarmName": "string",
"roleArn": "string",
"stateReason": "string",
"stateValue": "string"
},
"cloudwatchLogs": {
"batchMode": boolean,
400
AWS IoT API Reference
GetTopicRule
"logGroupName": "string",
"roleArn": "string"
},
"cloudwatchMetric": {
"metricName": "string",
"metricNamespace": "string",
"metricTimestamp": "string",
"metricUnit": "string",
"metricValue": "string",
"roleArn": "string"
},
"dynamoDB": {
"hashKeyField": "string",
"hashKeyType": "string",
"hashKeyValue": "string",
"operation": "string",
"payloadField": "string",
"rangeKeyField": "string",
"rangeKeyType": "string",
"rangeKeyValue": "string",
"roleArn": "string",
"tableName": "string"
},
"dynamoDBv2": {
"putItem": {
"tableName": "string"
},
"roleArn": "string"
},
"elasticsearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"firehose": {
"batchMode": boolean,
"deliveryStreamName": "string",
"roleArn": "string",
"separator": "string"
},
"http": {
"auth": {
"sigv4": {
"roleArn": "string",
"serviceName": "string",
"signingRegion": "string"
}
},
"confirmationUrl": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
},
"iotAnalytics": {
"batchMode": boolean,
"channelArn": "string",
"channelName": "string",
"roleArn": "string"
},
"iotEvents": {
401
AWS IoT API Reference
GetTopicRule
"batchMode": boolean,
"inputName": "string",
"messageId": "string",
"roleArn": "string"
},
"iotSiteWise": {
"putAssetPropertyValueEntries": [
{
"assetId": "string",
"entryId": "string",
"propertyAlias": "string",
"propertyId": "string",
"propertyValues": [
{
"quality": "string",
"timestamp": {
"offsetInNanos": "string",
"timeInSeconds": "string"
},
"value": {
"booleanValue": "string",
"doubleValue": "string",
"integerValue": "string",
"stringValue": "string"
}
}
]
}
],
"roleArn": "string"
},
"kafka": {
"clientProperties": {
"string" : "string"
},
"destinationArn": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"key": "string",
"partition": "string",
"topic": "string"
},
"kinesis": {
"partitionKey": "string",
"roleArn": "string",
"streamName": "string"
},
"lambda": {
"functionArn": "string"
},
"location": {
"deviceId": "string",
"latitude": "string",
"longitude": "string",
"roleArn": "string",
"timestamp": {
"unit": "string",
"value": "string"
},
"trackerName": "string"
},
"openSearch": {
402
AWS IoT API Reference
GetTopicRule
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"republish": {
"headers": {
"contentType": "string",
"correlationData": "string",
"messageExpiry": "string",
"payloadFormatIndicator": "string",
"responseTopic": "string",
"userProperties": [
{
"key": "string",
"value": "string"
}
]
},
"qos": number,
"roleArn": "string",
"topic": "string"
},
"s3": {
"bucketName": "string",
"cannedAcl": "string",
"key": "string",
"roleArn": "string"
},
"salesforce": {
"token": "string",
"url": "string"
},
"sns": {
"messageFormat": "string",
"roleArn": "string",
"targetArn": "string"
},
"sqs": {
"queueUrl": "string",
"roleArn": "string",
"useBase64": boolean
},
"stepFunctions": {
"executionNamePrefix": "string",
"roleArn": "string",
"stateMachineName": "string"
},
"timestream": {
"databaseName": "string",
"dimensions": [
{
"name": "string",
"value": "string"
}
],
"roleArn": "string",
"tableName": "string",
"timestamp": {
"unit": "string",
"value": "string"
}
}
},
"ruleDisabled": boolean,
403
AWS IoT API Reference
GetTopicRule
"ruleName": "string",
"sql": "string"
},
"ruleArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The rule.
Type: String
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
404
AWS IoT API Reference
GetTopicRule
405
AWS IoT API Reference
GetTopicRuleDestination
GetTopicRuleDestination
Service: AWS IoT
Request Syntax
GET /destinations/arn+ HTTP/1.1
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"topicRuleDestination": {
"arn": "string",
"createdAt": number,
"httpUrlProperties": {
"confirmationUrl": "string"
},
"lastUpdatedAt": number,
"status": "string",
"statusReason": "string",
"vpcProperties": {
"roleArn": "string",
"securityGroups": [ "string" ],
"subnetIds": [ "string" ],
"vpcId": "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
406
AWS IoT API Reference
GetTopicRuleDestination
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
407
AWS IoT API Reference
GetV2LoggingOptions
GetV2LoggingOptions
Service: AWS IoT
Request Syntax
GET /v2LoggingOptions HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"defaultLogLevel": "string",
"disableAllLogs": boolean,
"roleArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Type: Boolean
roleArn (p. 408)
The IAM role ARN AWS IoT uses to write to your CloudWatch logs.
Type: String
408
AWS IoT API Reference
GetV2LoggingOptions
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
409
AWS IoT API Reference
ListActiveViolations
ListActiveViolations
Service: AWS IoT
Lists the active violations for a given Device Defender security profile.
Request Syntax
GET /active-violations?
behaviorCriteriaType=behaviorCriteriaType&listSuppressedAlerts=listSuppressedAlerts&maxResults=maxResul
HTTP/1.1
The name of the Device Defender security profile for which violations are listed.
Pattern: [a-zA-Z0-9:_-]+
thingName (p. 410)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
410
AWS IoT API Reference
ListActiveViolations
Content-type: application/json
{
"activeViolations": [
{
"behavior": {
"criteria": {
"comparisonOperator": "string",
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
},
"lastViolationTime": number,
"lastViolationValue": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
},
"securityProfileName": "string",
"thingName": "string",
"verificationState": "string",
"verificationStateDescription": "string",
"violationEventAdditionalInfo": {
"confidenceLevel": "string"
},
"violationId": "string",
"violationStartTime": number
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
411
AWS IoT API Reference
ListActiveViolations
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
412
AWS IoT API Reference
ListAttachedPolicies
ListAttachedPolicies
Service: AWS IoT
Request Syntax
POST /attached-policies/target?marker=marker&pageSize=pageSize&recursive=recursive HTTP/1.1
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 413)
The group or principal for which the policies will be listed. Valid principals are
CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn
(arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextMarker": "string",
"policies": [
{
"policyArn": "string",
"policyName": "string"
}
]
413
AWS IoT API Reference
ListAttachedPolicies
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to retrieve the next set of results, or ``null`` if there are no more results.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
policies (p. 413)
The policies.
Errors
InternalFailureException
414
AWS IoT API Reference
ListAttachedPolicies
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
415
AWS IoT API Reference
ListAuditFindings
ListAuditFindings
Service: AWS IoT
Lists the findings (results) of a Device Defender audit or of the audits performed during a specified time
period. (Findings are retained for 90 days.)
Request Syntax
POST /audit/findings HTTP/1.1
Content-type: application/json
{
"checkName": "string",
"endTime": number,
"listSuppressedFindings": boolean,
"maxResults": number,
"nextToken": "string",
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"startTime": number,
"taskId": "string"
}
Request Body
The request accepts the following data in JSON format.
A filter to limit results to the findings for the specified audit check.
Type: String
Required: No
endTime (p. 416)
A filter to limit results to those found before the specified time. You must specify either the
startTime and endTime or the taskId, but not both.
416
AWS IoT API Reference
ListAuditFindings
Type: Timestamp
Required: No
listSuppressedFindings (p. 416)
Boolean flag indicating whether only the suppressed findings or the unsuppressed findings should
be listed. If this parameter isn't provided, the response will list both suppressed and unsuppressed
findings.
Type: Boolean
Required: No
maxResults (p. 416)
The maximum number of results to return at one time. The default is 25.
Type: Integer
Required: No
nextToken (p. 416)
Type: String
Required: No
resourceIdentifier (p. 416)
Required: No
startTime (p. 416)
A filter to limit results to those found after the specified time. You must specify either the startTime
and endTime or the taskId, but not both.
Type: Timestamp
Required: No
taskId (p. 416)
A filter to limit results to the audit with the specified ID. You must specify either the taskId or the
startTime and endTime, but not both.
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
Response Syntax
HTTP/1.1 200
417
AWS IoT API Reference
ListAuditFindings
Content-type: application/json
{
"findings": [
{
"checkName": "string",
"findingId": "string",
"findingTime": number,
"isSuppressed": boolean,
"nonCompliantResource": {
"additionalInfo": {
"string" : "string"
},
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"resourceType": "string"
},
"reasonForNonCompliance": "string",
"reasonForNonComplianceCode": "string",
"relatedResources": [
{
"additionalInfo": {
"string" : "string"
},
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"resourceType": "string"
}
],
"severity": "string",
"taskId": "string",
"taskStartTime": number
418
AWS IoT API Reference
ListAuditFindings
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
419
AWS IoT API Reference
ListAuditMitigationActionsExecutions
ListAuditMitigationActionsExecutions
Service: AWS IoT
Gets the status of audit mitigation action tasks that were executed.
Request Syntax
GET /audit/mitigationactions/executions?
actionStatus=actionStatus&findingId=findingId&maxResults=maxResults&nextToken=nextToken&taskId=taskId
HTTP/1.1
Specify this filter to limit results to those that were applied to a specific audit finding.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
maxResults (p. 420)
The maximum number of results to return at one time. The default is 25.
Specify this filter to limit results to actions for a specific audit mitigation actions task.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
420
AWS IoT API Reference
ListAuditMitigationActionsExecutions
Content-type: application/json
{
"actionsExecutions": [
{
"actionId": "string",
"actionName": "string",
"endTime": number,
"errorCode": "string",
"findingId": "string",
"message": "string",
"startTime": number,
"status": "string",
"taskId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A set of task execution results based on the input parameters. Details include the mitigation action
applied, start time, and task status.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
421
AWS IoT API Reference
ListAuditMitigationActionsExecutions
422
AWS IoT API Reference
ListAuditMitigationActionsTasks
ListAuditMitigationActionsTasks
Service: AWS IoT
Gets a list of audit mitigation action tasks that match the specified filters.
Request Syntax
GET /audit/mitigationactions/tasks?
auditTaskId=auditTaskId&endTime=endTime&findingId=findingId&maxResults=maxResults&nextToken=nextToken&s
HTTP/1.1
Specify this filter to limit results to tasks that were applied to results for a specific audit.
Pattern: [a-zA-Z0-9\-]+
endTime (p. 423)
Specify this filter to limit results to tasks that were completed or canceled on or before a specific
date and time.
Required: Yes
findingId (p. 423)
Specify this filter to limit results to tasks that were applied to a specific audit finding.
Pattern: [a-zA-Z0-9_-]+
maxResults (p. 423)
The maximum number of results to return at one time. The default is 25.
Specify this filter to limit results to tasks that began on or after a specific date and time.
Required: Yes
taskStatus (p. 423)
Specify this filter to limit results to tasks that are in a specific state.
423
AWS IoT API Reference
ListAuditMitigationActionsTasks
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"tasks": [
{
"startTime": number,
"taskId": "string",
"taskStatus": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
tasks (p. 424)
The collection of audit mitigation tasks that matched the filter criteria.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
424
AWS IoT API Reference
ListAuditMitigationActionsTasks
425
AWS IoT API Reference
ListAuditSuppressions
ListAuditSuppressions
Service: AWS IoT
Request Syntax
POST /audit/suppressions/list HTTP/1.1
Content-type: application/json
{
"ascendingOrder": boolean,
"checkName": "string",
"maxResults": number,
"nextToken": "string",
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
}
}
Request Body
The request accepts the following data in JSON format.
Determines whether suppressions are listed in ascending order by expiration date or not. If
parameter isn't provided, ascendingOrder=true.
Type: Boolean
Required: No
checkName (p. 426)
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
426
AWS IoT API Reference
ListAuditSuppressions
Type: String
Required: No
maxResults (p. 426)
The maximum number of results to return at one time. The default is 25.
Type: Integer
Required: No
nextToken (p. 426)
Type: String
Required: No
resourceIdentifier (p. 426)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"suppressions": [
{
"checkName": "string",
"description": "string",
"expirationDate": number,
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"suppressIndefinitely": boolean
}
]
427
AWS IoT API Reference
ListAuditSuppressions
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
suppressions (p. 427)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
428
AWS IoT API Reference
ListAuditTasks
ListAuditTasks
Service: AWS IoT
Lists the Device Defender audits that have been performed during a given time period.
Request Syntax
GET /audit/tasks?
endTime=endTime&maxResults=maxResults&nextToken=nextToken&startTime=startTime&taskStatus=taskStatus&tas
HTTP/1.1
Required: Yes
maxResults (p. 429)
The maximum number of results to return at one time. The default is 25.
The beginning of the time period. Audit information is retained for a limited time (90 days).
Requesting a start time prior to what is retained results in an "InvalidRequestException".
Required: Yes
taskStatus (p. 429)
A filter to limit the output to audits with the specified completion status: can be one of
"IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
A filter to limit the output to the specified type of audit: can be one of "ON_DEMAND_AUDIT_TASK"
or "SCHEDULED__AUDIT_TASK".
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
429
AWS IoT API Reference
ListAuditTasks
Content-type: application/json
{
"nextToken": "string",
"tasks": [
{
"taskId": "string",
"taskStatus": "string",
"taskType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
tasks (p. 429)
The audits that were performed during the specified time period.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
430
AWS IoT API Reference
ListAuditTasks
431
AWS IoT API Reference
ListAuthorizers
ListAuthorizers
Service: AWS IoT
Request Syntax
GET /authorizers/?
isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize&status=status HTTP/1.1
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 432)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizers": [
{
"authorizerArn": "string",
"authorizerName": "string"
}
],
"nextMarker": "string"
}
432
AWS IoT API Reference
ListAuthorizers
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The authorizers.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
433
AWS IoT API Reference
ListAuthorizers
434
AWS IoT API Reference
ListBillingGroups
ListBillingGroups
Service: AWS IoT
Request Syntax
GET /billing-groups?
maxResults=maxResults&namePrefixFilter=namePrefixFilter&nextToken=nextToken HTTP/1.1
Limit the results to billing groups whose names have the given prefix.
Pattern: [a-zA-Z0-9:_-]+
nextToken (p. 435)
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"billingGroups": [
{
"groupArn": "string",
"groupName": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
435
AWS IoT API Reference
ListBillingGroups
The token to use to get the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
436
AWS IoT API Reference
ListCACertificates
ListCACertificates
Service: AWS IoT
The results are paginated with a default page size of 25. You can use the returned marker to retrieve
additional results.
Request Syntax
GET /cacertificates?
isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize&templateName=templateName
HTTP/1.1
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 437)
Pattern: ^[0-9A-Za-z_-]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificates": [
{
437
AWS IoT API Reference
ListCACertificates
"certificateArn": "string",
"certificateId": "string",
"creationDate": number,
"status": "string"
}
],
"nextMarker": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
Errors
InternalFailureException
438
AWS IoT API Reference
ListCACertificates
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
439
AWS IoT API Reference
ListCertificates
ListCertificates
Service: AWS IoT
The results are paginated with a default page size of 25. You can use the returned marker to retrieve
additional results.
Request Syntax
GET /certificates?isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize HTTP/1.1
Specifies the order for results. If True, the results are returned in ascending order, based on the
creation date.
marker (p. 440)
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 440)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificates": [
{
"certificateArn": "string",
"certificateId": "string",
"certificateMode": "string",
"creationDate": number,
"status": "string"
}
],
"nextMarker": "string"
}
440
AWS IoT API Reference
ListCertificates
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The marker for the next set of results, or null if there are no additional results.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
441
AWS IoT API Reference
ListCertificates
442
AWS IoT API Reference
ListCertificatesByCA
ListCertificatesByCA
Service: AWS IoT
Request Syntax
GET /certificates-by-ca/caCertificateId?
isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize HTTP/1.1
Specifies the order for results. If True, the results are returned in ascending order, based on the
creation date.
caCertificateId (p. 443)
The ID of the CA certificate. This operation will list all registered device certificate that were signed
by this CA certificate.
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
marker (p. 443)
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 443)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificates": [
{
443
AWS IoT API Reference
ListCertificatesByCA
"certificateArn": "string",
"certificateId": "string",
"certificateMode": "string",
"creationDate": number,
"status": "string"
}
],
"nextMarker": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The marker for the next set of results, or null if there are no additional results.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
Errors
InternalFailureException
444
AWS IoT API Reference
ListCertificatesByCA
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
445
AWS IoT API Reference
ListCustomMetrics
ListCustomMetrics
Service: AWS IoT
Request Syntax
GET /custom-metrics?maxResults=maxResults&nextToken=nextToken HTTP/1.1
The maximum number of results to return at one time. The default is 25.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"metricNames": [ "string" ],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Pattern: [a-zA-Z0-9:_-]+
nextToken (p. 446)
A token that can be used to retrieve the next set of results, or null if there are no additional results.
446
AWS IoT API Reference
ListCustomMetrics
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
447
AWS IoT API Reference
ListDetectMitigationActionsExecutions
ListDetectMitigationActionsExecutions
Service: AWS IoT
Lists mitigation actions executions for a Device Defender ML Detect Security Profile.
Request Syntax
GET /detect/mitigationactions/executions?
endTime=endTime&maxResults=maxResults&nextToken=nextToken&startTime=startTime&taskId=taskId&thingName=t
HTTP/1.1
The end of the time period for which ML Detect mitigation actions executions are returned.
maxResults (p. 448)
The maximum number of results to return at one time. The default is 25.
A filter to limit results to those found after the specified time. You must specify either the startTime
and endTime or the taskId, but not both.
taskId (p. 448)
Pattern: [a-zA-Z0-9_-]+
thingName (p. 448)
Pattern: [a-zA-Z0-9\-]+
Request Body
The request does not have a request body.
448
AWS IoT API Reference
ListDetectMitigationActionsExecutions
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"actionsExecutions": [
{
"actionName": "string",
"errorCode": "string",
"executionEndDate": number,
"executionStartDate": number,
"message": "string",
"status": "string",
"taskId": "string",
"thingName": "string",
"violationId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
449
AWS IoT API Reference
ListDetectMitigationActionsExecutions
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
450
AWS IoT API Reference
ListDetectMitigationActionsTasks
ListDetectMitigationActionsTasks
Service: AWS IoT
Request Syntax
GET /detect/mitigationactions/tasks?
endTime=endTime&maxResults=maxResults&nextToken=nextToken&startTime=startTime HTTP/1.1
The end of the time period for which ML Detect mitigation actions tasks are returned.
Required: Yes
maxResults (p. 451)
The maximum number of results to return at one time. The default is 25.
A filter to limit results to those found after the specified time. You must specify either the startTime
and endTime or the taskId, but not both.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"tasks": [
{
"actionsDefinition": [
{
"actionParams": {
"addThingsToThingGroupParams": {
"overrideDynamicGroups": boolean,
"thingGroupNames": [ "string" ]
451
AWS IoT API Reference
ListDetectMitigationActionsTasks
},
"enableIoTLoggingParams": {
"logLevel": "string",
"roleArnForLogging": "string"
},
"publishFindingToSnsParams": {
"topicArn": "string"
},
"replaceDefaultPolicyVersionParams": {
"templateName": "string"
},
"updateCACertificateParams": {
"action": "string"
},
"updateDeviceCertificateParams": {
"action": "string"
}
},
"id": "string",
"name": "string",
"roleArn": "string"
}
],
"onlyActiveViolationsIncluded": boolean,
"suppressedAlertsIncluded": boolean,
"target": {
"behaviorName": "string",
"securityProfileName": "string",
"violationIds": [ "string" ]
},
"taskEndTime": number,
"taskId": "string",
"taskStartTime": number,
"taskStatistics": {
"actionsExecuted": number,
"actionsFailed": number,
"actionsSkipped": number
},
"taskStatus": "string",
"violationEventOccurrenceRange": {
"endTime": number,
"startTime": number
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
tasks (p. 451)
The collection of ML Detect mitigation tasks that matched the filter criteria.
452
AWS IoT API Reference
ListDetectMitigationActionsTasks
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
453
AWS IoT API Reference
ListDimensions
ListDimensions
Service: AWS IoT
List the set of dimensions that are defined for your AWS accounts.
Request Syntax
GET /dimensions?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"dimensionNames": [ "string" ],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A list of the names of the defined dimensions. Use DescribeDimension to get details for a
dimension.
Pattern: [a-zA-Z0-9:_-]+
454
AWS IoT API Reference
ListDimensions
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
455
AWS IoT API Reference
ListDomainConfigurations
ListDomainConfigurations
Service: AWS IoT
Gets a list of domain configurations for the user. This list is sorted alphabetically by domain
configuration name.
Request Syntax
GET /domainConfigurations?marker=marker&pageSize=pageSize&serviceType=serviceType HTTP/1.1
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 456)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"domainConfigurations": [
{
"domainConfigurationArn": "string",
"domainConfigurationName": "string",
"serviceType": "string"
}
],
"nextMarker": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
456
AWS IoT API Reference
ListDomainConfigurations
A list of objects that contain summary information about the user's domain configurations.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
457
AWS IoT API Reference
ListDomainConfigurations
458
AWS IoT API Reference
ListFleetMetrics
ListFleetMetrics
Service: AWS IoT
Request Syntax
GET /fleet-metrics?maxResults=maxResults&nextToken=nextToken HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null
to receive the first set of results.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"fleetMetrics": [
{
"metricArn": "string",
"metricName": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
459
AWS IoT API Reference
ListFleetMetrics
The token for the next set of results. Will not be returned if the operation has returned all results.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
460
AWS IoT API Reference
ListIndices
ListIndices
Service: AWS IoT
Request Syntax
GET /indices?maxResults=maxResults&nextToken=nextToken HTTP/1.1
The token used to get the next set of results, or null if there are no additional results.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"indexNames": [ "string" ],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Pattern: [a-zA-Z0-9:_-]+
nextToken (p. 461)
The token used to get the next set of results, or null if there are no additional results.
461
AWS IoT API Reference
ListIndices
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
462
AWS IoT API Reference
ListJobExecutionsForJob
ListJobExecutionsForJob
Service: AWS IoT
Request Syntax
GET /jobs/jobId/things?maxResults=maxResults&nextToken=nextToken&status=status HTTP/1.1
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
maxResults (p. 463)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"executionSummaries": [
{
"jobExecutionSummary": {
"executionNumber": number,
"lastUpdatedAt": number,
"queuedAt": number,
"retryAttempt": number,
463
AWS IoT API Reference
ListJobExecutionsForJob
"startedAt": number,
"status": "string"
},
"thingArn": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token for the next set of results, or null if there are no additional results.
Type: String
Errors
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
464
AWS IoT API Reference
ListJobExecutionsForJob
465
AWS IoT API Reference
ListJobExecutionsForThing
ListJobExecutionsForThing
Service: AWS IoT
Request Syntax
GET /things/thingName/jobs?
jobId=jobId&maxResults=maxResults&namespaceId=namespaceId&nextToken=nextToken&status=status
HTTP/1.1
The unique identifier you assigned to this job when it was created.
Pattern: [a-zA-Z0-9_-]+
maxResults (p. 466)
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.
Pattern: [a-zA-Z0-9_-]+
nextToken (p. 466)
An optional filter that lets you search for jobs that have the specified status.
Pattern: [a-zA-Z0-9:_-]+
466
AWS IoT API Reference
ListJobExecutionsForThing
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"executionSummaries": [
{
"jobExecutionSummary": {
"executionNumber": number,
"lastUpdatedAt": number,
"queuedAt": number,
"retryAttempt": number,
"startedAt": number,
"status": "string"
},
"jobId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token for the next set of results, or null if there are no additional results.
Type: String
Errors
InvalidRequestException
467
AWS IoT API Reference
ListJobExecutionsForThing
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
468
AWS IoT API Reference
ListJobs
ListJobs
Service: AWS IoT
Lists jobs.
Request Syntax
GET /jobs?
maxResults=maxResults&namespaceId=namespaceId&nextToken=nextToken&status=status&targetSelection=targetS
HTTP/1.1
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.
Pattern: [a-zA-Z0-9_-]+
nextToken (p. 469)
An optional filter that lets you search for jobs that have the specified status.
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those
things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be
run on a thing when a change is detected in a target. For example, a job will run on a thing when
the thing is added to a target group, even after the job was completed by all things originally in the
group.
Note
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing
group targets. By using continuous jobs, devices that join the group receive the job
execution even after the job has been created.
469
AWS IoT API Reference
ListJobs
A filter that limits the returned jobs to those for the specified group.
Pattern: [a-zA-Z0-9\-]+
thingGroupName (p. 469)
A filter that limits the returned jobs to those for the specified group.
Pattern: [a-zA-Z0-9:_-]+
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"jobs": [
{
"completedAt": number,
"createdAt": number,
"isConcurrent": boolean,
"jobArn": "string",
"jobId": "string",
"lastUpdatedAt": number,
"status": "string",
"targetSelection": "string",
"thingGroupId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A list of jobs.
The token for the next set of results, or null if there are no additional results.
Type: String
470
AWS IoT API Reference
ListJobs
Errors
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
471
AWS IoT API Reference
ListJobTemplates
ListJobTemplates
Service: AWS IoT
Request Syntax
GET /job-templates?maxResults=maxResults&nextToken=nextToken HTTP/1.1
The token to use to return the next set of results in the list.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"jobTemplates": [
{
"createdAt": number,
"description": "string",
"jobTemplateArn": "string",
"jobTemplateId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
472
AWS IoT API Reference
ListJobTemplates
The token for the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
473
AWS IoT API Reference
ListManagedJobTemplates
ListManagedJobTemplates
Service: AWS IoT
Request Syntax
GET /managed-job-templates?
maxResults=maxResults&nextToken=nextToken&templateName=templateName HTTP/1.1
An optional parameter for template name. If specified, only the versions of the managed job
templates that have the specified template name will be returned.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"managedJobTemplates": [
{
"description": "string",
"environments": [ "string" ],
"templateArn": "string",
"templateName": "string",
"templateVersion": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
474
AWS IoT API Reference
ListManagedJobTemplates
Type: String
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
475
AWS IoT API Reference
ListMetricValues
ListMetricValues
Service: AWS IoT
Lists the values reported for an AWS IoT Device Defender metric (device-side metric, cloud-side metric, or
custom metric) by the given thing during the specified time period.
Request Syntax
GET /metric-values?
dimensionName=dimensionName&dimensionValueOperator=dimensionValueOperator&endTime=endTime&maxResults=ma
HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
dimensionValueOperator (p. 476)
The end of the time period for which metric values are returned.
Required: Yes
maxResults (p. 476)
The name of the security profile metric for which values are returned.
Required: Yes
nextToken (p. 476)
The start of the time period for which metric values are returned.
Required: Yes
thingName (p. 476)
The name of the thing for which security profile metric values are returned.
476
AWS IoT API Reference
ListMetricValues
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"metricDatumList": [
{
"timestamp": number,
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The data the thing reports for the metric during the specified time period.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
Errors
InternalFailureException
477
AWS IoT API Reference
ListMetricValues
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
478
AWS IoT API Reference
ListMitigationActions
ListMitigationActions
Service: AWS IoT
Gets a list of all mitigation actions that match the specified filter criteria.
Request Syntax
GET /mitigationactions/actions?
actionType=actionType&maxResults=maxResults&nextToken=nextToken HTTP/1.1
Specify a value to limit the result to mitigation actions with a specific action type.
The maximum number of results to return at one time. The default is 25.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"actionIdentifiers": [
{
"actionArn": "string",
"actionName": "string",
"creationDate": number
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
479
AWS IoT API Reference
ListMitigationActions
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
480
AWS IoT API Reference
ListOTAUpdates
ListOTAUpdates
Service: AWS IoT
Request Syntax
GET /otaUpdates?maxResults=maxResults&nextToken=nextToken&otaUpdateStatus=otaUpdateStatus
HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"otaUpdates": [
{
"creationDate": number,
"otaUpdateArn": "string",
"otaUpdateId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
481
AWS IoT API Reference
ListOTAUpdates
Type: String
otaUpdates (p. 481)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
482
AWS IoT API Reference
ListOTAUpdates
483
AWS IoT API Reference
ListOutgoingCertificates
ListOutgoingCertificates
Service: AWS IoT
Lists certificates that are being transferred but not yet accepted.
Request Syntax
GET /certificates-out-going?isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize
HTTP/1.1
Specifies the order for results. If True, the results are returned in ascending order, based on the
creation date.
marker (p. 484)
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 484)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextMarker": "string",
"outgoingCertificates": [
{
"certificateArn": "string",
"certificateId": "string",
"creationDate": number,
"transferDate": number,
"transferMessage": "string",
"transferredTo": "string"
}
]
}
484
AWS IoT API Reference
ListOutgoingCertificates
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
outgoingCertificates (p. 484)
The certificates that are being transferred but not yet accepted.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
485
AWS IoT API Reference
ListOutgoingCertificates
486
AWS IoT API Reference
ListPackages
ListPackages
Service: AWS IoT
Request Syntax
GET /packages?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"packageSummaries": [
{
"creationDate": number,
"defaultVersionName": "string",
"lastModifiedDate": number,
"packageName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
487
AWS IoT API Reference
ListPackages
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
488
AWS IoT API Reference
ListPackageVersions
ListPackageVersions
Service: AWS IoT
Request Syntax
GET /packages/packageName/versions?maxResults=maxResults&nextToken=nextToken&status=status
HTTP/1.1
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
status (p. 489)
The status of the package version. For more information, see Package version lifecycle.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"packageVersionSummaries": [
{
"creationDate": number,
"lastModifiedDate": number,
"packageName": "string",
"status": "string",
489
AWS IoT API Reference
ListPackageVersions
"versionName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
packageVersionSummaries (p. 489)
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
490
AWS IoT API Reference
ListPolicies
ListPolicies
Service: AWS IoT
Request Syntax
GET /policies?isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize HTTP/1.1
Specifies the order for results. If true, the results are returned in ascending creation order.
marker (p. 491)
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 491)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextMarker": "string",
"policies": [
{
"policyArn": "string",
"policyName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
491
AWS IoT API Reference
ListPolicies
The marker for the next set of results, or null if there are no additional results.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
policies (p. 491)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
492
AWS IoT API Reference
ListPolicies
493
AWS IoT API Reference
ListPolicyPrincipals
ListPolicyPrincipals
Service: AWS IoT
Note: This action is deprecated and works as expected for backward compatibility, but we won't add
enhancements. Use ListTargetsForPolicy (p. 528) instead.
Request Syntax
GET /policy-principals?isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize
HTTP/1.1
x-amzn-iot-policy: policyName
Specifies the order for results. If true, the results are returned in ascending creation order.
marker (p. 494)
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 494)
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
494
AWS IoT API Reference
ListPolicyPrincipals
"nextMarker": "string",
"principals": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The marker for the next set of results, or null if there are no additional results.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
principals (p. 494)
Errors
InternalFailureException
495
AWS IoT API Reference
ListPolicyPrincipals
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
496
AWS IoT API Reference
ListPolicyVersions
ListPolicyVersions
Service: AWS IoT
Lists the versions of the specified policy and identifies the default version.
Request Syntax
GET /policies/policyName/version HTTP/1.1
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"policyVersions": [
{
"createDate": number,
"isDefaultVersion": boolean,
"versionId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
497
AWS IoT API Reference
ListPolicyVersions
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
498
AWS IoT API Reference
ListPrincipalPolicies
ListPrincipalPolicies
Service: AWS IoT
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in
AmazonCognito Identity format.
Note: This action is deprecated and works as expected for backward compatibility, but we won't add
enhancements. Use ListAttachedPolicies (p. 413) instead.
Request Syntax
GET /principal-policies?isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize
HTTP/1.1
x-amzn-iot-principal: principal
Specifies the order for results. If true, results are returned in ascending creation order.
marker (p. 499)
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 499)
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextMarker": "string",
"policies": [
499
AWS IoT API Reference
ListPrincipalPolicies
{
"policyArn": "string",
"policyName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The marker for the next set of results, or null if there are no additional results.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
policies (p. 499)
The policies.
Errors
InternalFailureException
500
AWS IoT API Reference
ListPrincipalPolicies
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
501
AWS IoT API Reference
ListPrincipalThings
ListPrincipalThings
Service: AWS IoT
Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users,
groups, and roles, Amazon Cognito identities or federated identities.
Request Syntax
GET /principals/things?maxResults=maxResults&nextToken=nextToken HTTP/1.1
x-amzn-principal: principal
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
principal (p. 502)
The principal.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"things": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results, or null if there are no additional results.
502
AWS IoT API Reference
ListPrincipalThings
Type: String
things (p. 502)
The things.
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
503
AWS IoT API Reference
ListPrincipalThings
504
AWS IoT API Reference
ListProvisioningTemplates
ListProvisioningTemplates
Service: AWS IoT
Request Syntax
GET /provisioning-templates?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"templates": [
{
"creationDate": number,
"description": "string",
"enabled": boolean,
"lastModifiedDate": number,
"templateArn": "string",
"templateName": "string",
"type": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
505
AWS IoT API Reference
ListProvisioningTemplates
Type: String
templates (p. 505)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
506
AWS IoT API Reference
ListProvisioningTemplateVersions
ListProvisioningTemplateVersions
Service: AWS IoT
Request Syntax
GET /provisioning-templates/templateName/versions?maxResults=maxResults&nextToken=nextToken
HTTP/1.1
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"versions": [
{
"creationDate": number,
"isDefaultVersion": boolean,
"versionId": number
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
507
AWS IoT API Reference
ListProvisioningTemplateVersions
Type: String
versions (p. 507)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
508
AWS IoT API Reference
ListProvisioningTemplateVersions
509
AWS IoT API Reference
ListRelatedResourcesForAuditFinding
ListRelatedResourcesForAuditFinding
Service: AWS IoT
The related resources of an Audit finding. The following resources can be returned from calling this API:
• DEVICE_CERTIFICATE
• CA_CERTIFICATE
• IOT_POLICY
• COGNITO_IDENTITY_POOL
• CLIENT_ID
• ACCOUNT_SETTINGS
• ROLE_ALIAS
• IAM_ROLE
• ISSUER_CERTIFICATE
Note
This API is similar to DescribeAuditFinding's RelatedResources but provides pagination and is not
limited to 10 resources. When calling DescribeAuditFinding for the intermediate CA revoked for
active device certificates check, RelatedResources will not be populated. You must use this API,
ListRelatedResourcesForAuditFinding, to list the certificates.
Request Syntax
GET /audit/relatedResources?findingId=findingId&maxResults=maxResults&nextToken=nextToken
HTTP/1.1
Pattern: [a-zA-Z0-9_-]+
Required: Yes
maxResults (p. 510)
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Request Body
The request does not have a request body.
510
AWS IoT API Reference
ListRelatedResourcesForAuditFinding
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"relatedResources": [
{
"additionalInfo": {
"string" : "string"
},
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"resourceType": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null for the first API call.
Type: String
relatedResources (p. 511)
Errors
InternalFailureException
511
AWS IoT API Reference
ListRelatedResourcesForAuditFinding
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
512
AWS IoT API Reference
ListRoleAliases
ListRoleAliases
Service: AWS IoT
Request Syntax
GET /role-aliases?isAscendingOrder=ascendingOrder&marker=marker&pageSize=pageSize HTTP/1.1
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 513)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextMarker": "string",
"roleAliases": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
513
AWS IoT API Reference
ListRoleAliases
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
roleAliases (p. 513)
Pattern: [\w=,@-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
514
AWS IoT API Reference
ListRoleAliases
515
AWS IoT API Reference
ListScheduledAudits
ListScheduledAudits
Service: AWS IoT
Request Syntax
GET /audit/scheduledaudits?maxResults=maxResults&nextToken=nextToken HTTP/1.1
The maximum number of results to return at one time. The default is 25.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"scheduledAudits": [
{
"dayOfMonth": "string",
"dayOfWeek": "string",
"frequency": "string",
"scheduledAuditArn": "string",
"scheduledAuditName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
516
AWS IoT API Reference
ListScheduledAudits
Type: String
scheduledAudits (p. 516)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
517
AWS IoT API Reference
ListSecurityProfiles
ListSecurityProfiles
Service: AWS IoT
Lists the Device Defender security profiles you've created. You can filter security profiles by dimension or
custom metric.
Request Syntax
GET /security-profiles?
dimensionName=dimensionName&maxResults=maxResults&metricName=metricName&nextToken=nextToken
HTTP/1.1
A filter to limit results to the security profiles that use the defined dimension. Cannot be used with
metricName
Pattern: [a-zA-Z0-9:_-]+
maxResults (p. 518)
Pattern: [a-zA-Z0-9:_-]+
nextToken (p. 518)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
518
AWS IoT API Reference
ListSecurityProfiles
"nextToken": "string",
"securityProfileIdentifiers": [
{
"arn": "string",
"name": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
securityProfileIdentifiers (p. 518)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
519
AWS IoT API Reference
ListSecurityProfiles
520
AWS IoT API Reference
ListSecurityProfilesForTarget
ListSecurityProfilesForTarget
Service: AWS IoT
Lists the Device Defender security profiles attached to a target (thing group).
Request Syntax
GET /security-profiles-for-target?
maxResults=maxResults&nextToken=nextToken&recursive=recursive&securityProfileTargetArn=securityProfileT
HTTP/1.1
The ARN of the target (thing group) whose attached security profiles you want to get.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"securityProfileTargetMappings": [
{
"securityProfileIdentifier": {
"arn": "string",
"name": "string"
},
"target": {
"arn": "string"
}
}
]
521
AWS IoT API Reference
ListSecurityProfilesForTarget
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
securityProfileTargetMappings (p. 521)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
522
AWS IoT API Reference
ListSecurityProfilesForTarget
523
AWS IoT API Reference
ListStreams
ListStreams
Service: AWS IoT
Request Syntax
GET /streams?isAscendingOrder=ascendingOrder&maxResults=maxResults&nextToken=nextToken
HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"streams": [
{
"description": "string",
"streamArn": "string",
"streamId": "string",
"streamVersion": number
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
524
AWS IoT API Reference
ListStreams
Type: String
streams (p. 524)
A list of streams.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
525
AWS IoT API Reference
ListTagsForResource
ListTagsForResource
Service: AWS IoT
Request Syntax
GET /tags?nextToken=nextToken&resourceArn=resourceArn HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
resourceArn (p. 526)
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results, or null if there are no additional results.
Type: String
526
AWS IoT API Reference
ListTagsForResource
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
527
AWS IoT API Reference
ListTargetsForPolicy
ListTargetsForPolicy
Service: AWS IoT
Request Syntax
POST /policy-targets/policyName?marker=marker&pageSize=pageSize HTTP/1.1
Pattern: [A-Za-z0-9+/]+={0,2}
pageSize (p. 528)
Pattern: [\w+=,.@-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextMarker": "string",
"targets": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
528
AWS IoT API Reference
ListTargetsForPolicy
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
targets (p. 528)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
529
AWS IoT API Reference
ListTargetsForPolicy
530
AWS IoT API Reference
ListTargetsForSecurityProfile
ListTargetsForSecurityProfile
Service: AWS IoT
Lists the targets (thing groups) associated with a given Device Defender security profile.
Request Syntax
GET /security-profiles/securityProfileName/targets?
maxResults=maxResults&nextToken=nextToken HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"securityProfileTargets": [
{
"arn": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
531
AWS IoT API Reference
ListTargetsForSecurityProfile
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
securityProfileTargets (p. 531)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
532
AWS IoT API Reference
ListThingGroups
ListThingGroups
Service: AWS IoT
Request Syntax
GET /thing-groups?
maxResults=maxResults&namePrefixFilter=namePrefixFilter&nextToken=nextToken&parentGroup=parentGroup&rec
HTTP/1.1
A filter that limits the results to those with the specified name prefix.
Pattern: [a-zA-Z0-9:_-]+
nextToken (p. 533)
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
parentGroup (p. 533)
A filter that limits the results to those with the specified parent group.
Pattern: [a-zA-Z0-9:_-]+
recursive (p. 533)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
533
AWS IoT API Reference
ListThingGroups
"thingGroups": [
{
"groupArn": "string",
"groupName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results. Will not be returned if operation has returned all
results.
Type: String
thingGroups (p. 533)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
534
AWS IoT API Reference
ListThingGroups
535
AWS IoT API Reference
ListThingGroupsForThing
ListThingGroupsForThing
Service: AWS IoT
Request Syntax
GET /things/thingName/thing-groups?maxResults=maxResults&nextToken=nextToken HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
thingName (p. 536)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"thingGroups": [
{
"groupArn": "string",
"groupName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
536
AWS IoT API Reference
ListThingGroupsForThing
The token to use to get the next set of results, or null if there are no additional results.
Type: String
thingGroups (p. 536)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
537
AWS IoT API Reference
ListThingPrincipals
ListThingPrincipals
Service: AWS IoT
Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users,
groups, and roles, Amazon Cognito identities or federated identities.
Request Syntax
GET /things/thingName/principals?maxResults=maxResults&nextToken=nextToken HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
thingName (p. 538)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"principals": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
538
AWS IoT API Reference
ListThingPrincipals
The token to use to get the next set of results, or null if there are no additional results.
Type: String
principals (p. 538)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
539
AWS IoT API Reference
ListThingPrincipals
540
AWS IoT API Reference
ListThingRegistrationTaskReports
ListThingRegistrationTaskReports
Service: AWS IoT
Request Syntax
GET /thing-registration-tasks/taskId/reports?
maxResults=maxResults&nextToken=nextToken&reportType=reportType HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
reportType (p. 541)
Required: Yes
taskId (p. 541)
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"reportType": "string",
"resourceLinks": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
541
AWS IoT API Reference
ListThingRegistrationTaskReports
The token to use to get the next set of results, or null if there are no additional results.
Type: String
reportType (p. 541)
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
542
AWS IoT API Reference
ListThingRegistrationTaskReports
543
AWS IoT API Reference
ListThingRegistrationTasks
ListThingRegistrationTasks
Service: AWS IoT
Request Syntax
GET /thing-registration-tasks?maxResults=maxResults&nextToken=nextToken&status=status
HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
status (p. 544)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"taskIds": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results, or null if there are no additional results.
544
AWS IoT API Reference
ListThingRegistrationTasks
Type: String
taskIds (p. 544)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
545
AWS IoT API Reference
ListThings
ListThings
Service: AWS IoT
Lists your things. Use the attributeName and attributeValue parameters to filter your things. For
example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in
the registry that contain an attribute Color with the value Red. For more information, see List Things
from the AWS IoT Core Developer Guide.
Request Syntax
GET /things?
attributeName=attributeName&attributeValue=attributeValue&maxResults=maxResults&nextToken=nextToken&thi
HTTP/1.1
Pattern: [a-zA-Z0-9_.,@/:#-]+
attributeValue (p. 546)
Pattern: [a-zA-Z0-9_.,@/:#-]*
maxResults (p. 546)
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
thingTypeName (p. 546)
Pattern: [a-zA-Z0-9:_-]+
546
AWS IoT API Reference
ListThings
When true, the action returns the thing resources with attribute values that start with the
attributeValue provided.
When false, or not present, the action returns only the thing resources with attribute values that
match the entire attributeValue provided.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"things": [
{
"attributes": {
"string" : "string"
},
"thingArn": "string",
"thingName": "string",
"thingTypeName": "string",
"version": number
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results. Will not be returned if operation has returned all
results.
Type: String
things (p. 547)
The things.
Errors
InternalFailureException
547
AWS IoT API Reference
ListThings
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
548
AWS IoT API Reference
ListThingsInBillingGroup
ListThingsInBillingGroup
Service: AWS IoT
Lists the things you have added to the given billing group.
Request Syntax
GET /billing-groups/billingGroupName/things?maxResults=maxResults&nextToken=nextToken
HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
maxResults (p. 549)
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"things": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
549
AWS IoT API Reference
ListThingsInBillingGroup
The token to use to get the next set of results. Will not be returned if operation has returned all
results.
Type: String
things (p. 549)
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
550
AWS IoT API Reference
ListThingsInThingGroup
ListThingsInThingGroup
Service: AWS IoT
Request Syntax
GET /thing-groups/thingGroupName/things?
maxResults=maxResults&nextToken=nextToken&recursive=recursive HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
recursive (p. 551)
When true, list things in this thing group and in all child groups as well.
thingGroupName (p. 551)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"things": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
551
AWS IoT API Reference
ListThingsInThingGroup
The token to use to get the next set of results, or null if there are no additional results.
Type: String
things (p. 551)
Pattern: [a-zA-Z0-9:_-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
552
AWS IoT API Reference
ListThingTypes
ListThingTypes
Service: AWS IoT
Request Syntax
GET /thing-types?maxResults=maxResults&nextToken=nextToken&thingTypeName=thingTypeName
HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
thingTypeName (p. 553)
Pattern: [a-zA-Z0-9:_-]+
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"thingTypes": [
{
"thingTypeArn": "string",
"thingTypeMetadata": {
"creationDate": number,
"deprecated": boolean,
"deprecationDate": number
},
"thingTypeName": "string",
"thingTypeProperties": {
"searchableAttributes": [ "string" ],
"thingTypeDescription": "string"
553
AWS IoT API Reference
ListThingTypes
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token for the next set of results. Will not be returned if operation has returned all results.
Type: String
thingTypes (p. 553)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
554
AWS IoT API Reference
ListThingTypes
555
AWS IoT API Reference
ListTopicRuleDestinations
ListTopicRuleDestinations
Service: AWS IoT
Request Syntax
GET /destinations?maxResults=maxResults&nextToken=nextToken HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"destinationSummaries": [
{
"arn": "string",
"createdAt": number,
"httpUrlSummary": {
"confirmationUrl": "string"
},
"lastUpdatedAt": number,
"status": "string",
"statusReason": "string",
"vpcDestinationSummary": {
"roleArn": "string",
"securityGroups": [ "string" ],
"subnetIds": [ "string" ],
"vpcId": "string"
}
}
],
"nextToken": "string"
}
556
AWS IoT API Reference
ListTopicRuleDestinations
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results, or null if there are no additional results.
Type: String
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
557
AWS IoT API Reference
ListTopicRules
ListTopicRules
Service: AWS IoT
Request Syntax
GET /rules?maxResults=maxResults&nextToken=nextToken&ruleDisabled=ruleDisabled&topic=topic
HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
ruleDisabled (p. 558)
The topic.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"rules": [
{
"createdAt": number,
"ruleArn": "string",
"ruleDisabled": boolean,
"ruleName": "string",
"topicPattern": "string"
}
]
}
558
AWS IoT API Reference
ListTopicRules
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results, or null if there are no additional results.
Type: String
rules (p. 558)
The rules.
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
559
AWS IoT API Reference
ListV2LoggingLevels
ListV2LoggingLevels
Service: AWS IoT
Request Syntax
GET /v2LoggingLevel?maxResults=maxResults&nextToken=nextToken&targetType=targetType
HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
targetType (p. 560)
The type of resource for which you are configuring logging. Must be THING_Group.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"logTargetConfigurations": [
{
"logLevel": "string",
"logTarget": {
"targetName": "string",
"targetType": "string"
}
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
560
AWS IoT API Reference
ListV2LoggingLevels
The token to use to get the next set of results, or null if there are no additional results.
Type: String
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
561
AWS IoT API Reference
ListViolationEvents
ListViolationEvents
Service: AWS IoT
Lists the Device Defender security profile violations discovered during the given time period. You can
use filters to limit the results to those alerts issued for a particular security profile, behavior, or thing
(device).
Request Syntax
GET /violation-events?
behaviorCriteriaType=behaviorCriteriaType&endTime=endTime&listSuppressedAlerts=listSuppressedAlerts&max
HTTP/1.1
Required: Yes
listSuppressedAlerts (p. 562)
A filter to limit results to those alerts generated by the specified security profile.
Pattern: [a-zA-Z0-9:_-]+
startTime (p. 562)
Required: Yes
thingName (p. 562)
562
AWS IoT API Reference
ListViolationEvents
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"violationEvents": [
{
"behavior": {
"criteria": {
"comparisonOperator": "string",
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
},
"metricValue": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
},
"securityProfileName": "string",
"thingName": "string",
"verificationState": "string",
"verificationStateDescription": "string",
563
AWS IoT API Reference
ListViolationEvents
"violationEventAdditionalInfo": {
"confidenceLevel": "string"
},
"violationEventTime": number,
"violationEventType": "string",
"violationId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A token that can be used to retrieve the next set of results, or null if there are no additional results.
Type: String
violationEvents (p. 563)
The security profile violation alerts issued for this account during the given time period, potentially
filtered by security profile, behavior violated, or thing (device) violating.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
564
AWS IoT API Reference
ListViolationEvents
565
AWS IoT API Reference
PutVerificationStateOnViolation
PutVerificationStateOnViolation
Service: AWS IoT
Set a verification state and provide a description of that verification state on a violation (detect alarm).
Request Syntax
POST /violations/verification-state/violationId HTTP/1.1
Content-type: application/json
{
"verificationState": "string",
"verificationStateDescription": "string"
}
Pattern: [a-zA-Z0-9\-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
verificationStateDescription (p. 566)
Type: String
Pattern: [^\p{Cntrl}]*
Required: No
Response Syntax
HTTP/1.1 200
566
AWS IoT API Reference
PutVerificationStateOnViolation
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
567
AWS IoT API Reference
RegisterCACertificate
RegisterCACertificate
Service: AWS IoT
Registers a CA certificate with AWS IoT Core. There is no limit to the number of CA certificates you can
register in your AWS account. You can register up to 10 CA certificates with the same CA subject
field per AWS account.
Request Syntax
POST /cacertificate?allowAutoRegistration=allowAutoRegistration&setAsActive=setAsActive
HTTP/1.1
Content-type: application/json
{
"caCertificate": "string",
"certificateMode": "string",
"registrationConfig": {
"roleArn": "string",
"templateBody": "string",
"templateName": "string"
},
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"verificationCertificate": "string"
}
Request Body
The request accepts the following data in JSON format.
The CA certificate.
Type: String
Pattern: [\s\S]*
568
AWS IoT API Reference
RegisterCACertificate
Required: Yes
certificateMode (p. 568)
Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the
verificationCertificate field is not provided, set certificateMode to be SNI_ONLY.
If the verificationCertificate field is provided, set certificateMode to be DEFAULT.
When certificateMode is not provided, it defaults to DEFAULT. All the device certificates that
are registered using this CA will be registered in the same certificate mode as the CA. For more
information about certificate mode for device certificates, see certificate mode.
Type: String
Required: No
registrationConfig (p. 568)
Required: No
tags (p. 568)
Required: No
verificationCertificate (p. 568)
Type: String
Pattern: [\s\S]*
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateArn": "string",
"certificateId": "string"
}
569
AWS IoT API Reference
RegisterCACertificate
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
certificateId (p. 569)
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Errors
CertificateValidationException
570
AWS IoT API Reference
RegisterCACertificate
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
571
AWS IoT API Reference
RegisterCertificate
RegisterCertificate
Service: AWS IoT
Registers a device certificate with AWS IoT in the same certificate mode as the signing CA. If you have
more than one CA certificate that has the same subject field, you must specify the CA certificate that was
used to sign the device certificate being registered.
Request Syntax
POST /certificate/register?setAsActive=setAsActive HTTP/1.1
Content-type: application/json
{
"caCertificatePem": "string",
"certificatePem": "string",
"status": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: No
certificatePem (p. 572)
Type: String
Pattern: [\s\S]*
Required: Yes
572
AWS IoT API Reference
RegisterCertificate
The status of the register certificate request. Valid values that you can use include ACTIVE,
INACTIVE, and REVOKED.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateArn": "string",
"certificateId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
certificateId (p. 573)
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Errors
CertificateConflictException
Unable to verify the CA certificate used to sign the device certificate you are attempting to register.
This is happens when you have registered more than one CA certificate that has the same subject
field and public key.
573
AWS IoT API Reference
RegisterCertificate
CertificateValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
574
AWS IoT API Reference
RegisterCertificateWithoutCA
RegisterCertificateWithoutCA
Service: AWS IoT
Register a certificate that does not have a certificate authority (CA). For supported certificates, consult
Certificate signing algorithms supported by AWS IoT.
Request Syntax
POST /certificate/register-no-ca HTTP/1.1
Content-type: application/json
{
"certificatePem": "string",
"status": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: Yes
status (p. 575)
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificateArn": "string",
"certificateId": "string"
}
575
AWS IoT API Reference
RegisterCertificateWithoutCA
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
certificateId (p. 575)
The ID of the registered certificate. (The last part of the certificate ARN contains the certificate ID.
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Errors
CertificateStateException
576
AWS IoT API Reference
RegisterCertificateWithoutCA
UnauthorizedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
577
AWS IoT API Reference
RegisterThing
RegisterThing
Service: AWS IoT
Provisions a thing in the device registry. RegisterThing calls other AWS IoT control plane APIs. These calls
might exceed your account level AWS IoT Throttling Limits and cause throttle errors. Please contact AWS
Customer Support to raise your throttling limits if necessary.
Request Syntax
POST /things HTTP/1.1
Content-type: application/json
{
"parameters": {
"string" : "string"
},
"templateBody": "string"
}
Request Body
The request accepts the following data in JSON format.
The parameters for provisioning a thing. See Provisioning Templates for more information.
Required: No
templateBody (p. 578)
The provisioning template. See Provisioning Devices That Have Device Certificates for more
information.
Type: String
Pattern: [\s\S]*
Required: Yes
578
AWS IoT API Reference
RegisterThing
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"certificatePem": "string",
"resourceArns": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [\s\S]*
resourceArns (p. 579)
Errors
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
579
AWS IoT API Reference
RegisterThing
ServiceUnavailableException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
580
AWS IoT API Reference
RejectCertificateTransfer
RejectCertificateTransfer
Service: AWS IoT
Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status
changes from PENDING_TRANSFER to INACTIVE.
To check for pending certificate transfers, call ListCertificates (p. 440) to enumerate your certificates.
This operation can only be called by the transfer destination. After it is called, the certificate will be
returned to the source's account in the INACTIVE state.
Request Syntax
PATCH /reject-certificate-transfer/certificateId HTTP/1.1
Content-type: application/json
{
"rejectReason": "string"
}
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: No
Response Syntax
HTTP/1.1 200
581
AWS IoT API Reference
RejectCertificateTransfer
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalFailureException
You can't revert the certificate transfer because the transfer is already complete.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
582
AWS IoT API Reference
RejectCertificateTransfer
583
AWS IoT API Reference
RemoveThingFromBillingGroup
RemoveThingFromBillingGroup
Service: AWS IoT
Request Syntax
PUT /billing-groups/removeThingFromBillingGroup HTTP/1.1
Content-type: application/json
{
"billingGroupArn": "string",
"billingGroupName": "string",
"thingArn": "string",
"thingName": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
billingGroupName (p. 584)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingArn (p. 584)
Type: String
Required: No
thingName (p. 584)
584
AWS IoT API Reference
RemoveThingFromBillingGroup
Type: String
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
585
AWS IoT API Reference
RemoveThingFromBillingGroup
586
AWS IoT API Reference
RemoveThingFromThingGroup
RemoveThingFromThingGroup
Service: AWS IoT
You must specify either a thingGroupArn or a thingGroupName to identify the thing group and either
a thingArn or a thingName to identify the thing to remove from the thing group.
Request Syntax
PUT /thing-groups/removeThingFromThingGroup HTTP/1.1
Content-type: application/json
{
"thingArn": "string",
"thingGroupArn": "string",
"thingGroupName": "string",
"thingName": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
thingGroupArn (p. 587)
Type: String
Required: No
thingGroupName (p. 587)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingName (p. 587)
587
AWS IoT API Reference
RemoveThingFromThingGroup
Type: String
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
588
AWS IoT API Reference
RemoveThingFromThingGroup
589
AWS IoT API Reference
ReplaceTopicRule
ReplaceTopicRule
Service: AWS IoT
Replaces the rule. You must specify all parameters for the new rule. Creating rules is an administrator-
level action. Any user who has permission to create rules will be able to access data processed by the
rule.
Request Syntax
PATCH /rules/ruleName HTTP/1.1
Content-type: application/json
{
"actions": [
{
"cloudwatchAlarm": {
"alarmName": "string",
"roleArn": "string",
"stateReason": "string",
"stateValue": "string"
},
"cloudwatchLogs": {
"batchMode": boolean,
"logGroupName": "string",
"roleArn": "string"
},
"cloudwatchMetric": {
"metricName": "string",
"metricNamespace": "string",
"metricTimestamp": "string",
"metricUnit": "string",
"metricValue": "string",
"roleArn": "string"
},
"dynamoDB": {
"hashKeyField": "string",
"hashKeyType": "string",
"hashKeyValue": "string",
"operation": "string",
"payloadField": "string",
"rangeKeyField": "string",
"rangeKeyType": "string",
"rangeKeyValue": "string",
"roleArn": "string",
"tableName": "string"
},
"dynamoDBv2": {
"putItem": {
"tableName": "string"
},
"roleArn": "string"
},
"elasticsearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"firehose": {
"batchMode": boolean,
590
AWS IoT API Reference
ReplaceTopicRule
"deliveryStreamName": "string",
"roleArn": "string",
"separator": "string"
},
"http": {
"auth": {
"sigv4": {
"roleArn": "string",
"serviceName": "string",
"signingRegion": "string"
}
},
"confirmationUrl": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
},
"iotAnalytics": {
"batchMode": boolean,
"channelArn": "string",
"channelName": "string",
"roleArn": "string"
},
"iotEvents": {
"batchMode": boolean,
"inputName": "string",
"messageId": "string",
"roleArn": "string"
},
"iotSiteWise": {
"putAssetPropertyValueEntries": [
{
"assetId": "string",
"entryId": "string",
"propertyAlias": "string",
"propertyId": "string",
"propertyValues": [
{
"quality": "string",
"timestamp": {
"offsetInNanos": "string",
"timeInSeconds": "string"
},
"value": {
"booleanValue": "string",
"doubleValue": "string",
"integerValue": "string",
"stringValue": "string"
}
}
]
}
],
"roleArn": "string"
},
"kafka": {
"clientProperties": {
"string" : "string"
},
"destinationArn": "string",
"headers": [
{
591
AWS IoT API Reference
ReplaceTopicRule
"key": "string",
"value": "string"
}
],
"key": "string",
"partition": "string",
"topic": "string"
},
"kinesis": {
"partitionKey": "string",
"roleArn": "string",
"streamName": "string"
},
"lambda": {
"functionArn": "string"
},
"location": {
"deviceId": "string",
"latitude": "string",
"longitude": "string",
"roleArn": "string",
"timestamp": {
"unit": "string",
"value": "string"
},
"trackerName": "string"
},
"openSearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"republish": {
"headers": {
"contentType": "string",
"correlationData": "string",
"messageExpiry": "string",
"payloadFormatIndicator": "string",
"responseTopic": "string",
"userProperties": [
{
"key": "string",
"value": "string"
}
]
},
"qos": number,
"roleArn": "string",
"topic": "string"
},
"s3": {
"bucketName": "string",
"cannedAcl": "string",
"key": "string",
"roleArn": "string"
},
"salesforce": {
"token": "string",
"url": "string"
},
"sns": {
"messageFormat": "string",
"roleArn": "string",
"targetArn": "string"
592
AWS IoT API Reference
ReplaceTopicRule
},
"sqs": {
"queueUrl": "string",
"roleArn": "string",
"useBase64": boolean
},
"stepFunctions": {
"executionNamePrefix": "string",
"roleArn": "string",
"stateMachineName": "string"
},
"timestream": {
"databaseName": "string",
"dimensions": [
{
"name": "string",
"value": "string"
}
],
"roleArn": "string",
"tableName": "string",
"timestamp": {
"unit": "string",
"value": "string"
}
}
}
],
"awsIotSqlVersion": "string",
"description": "string",
"errorAction": {
"cloudwatchAlarm": {
"alarmName": "string",
"roleArn": "string",
"stateReason": "string",
"stateValue": "string"
},
"cloudwatchLogs": {
"batchMode": boolean,
"logGroupName": "string",
"roleArn": "string"
},
"cloudwatchMetric": {
"metricName": "string",
"metricNamespace": "string",
"metricTimestamp": "string",
"metricUnit": "string",
"metricValue": "string",
"roleArn": "string"
},
"dynamoDB": {
"hashKeyField": "string",
"hashKeyType": "string",
"hashKeyValue": "string",
"operation": "string",
"payloadField": "string",
"rangeKeyField": "string",
"rangeKeyType": "string",
"rangeKeyValue": "string",
"roleArn": "string",
"tableName": "string"
},
"dynamoDBv2": {
"putItem": {
"tableName": "string"
},
593
AWS IoT API Reference
ReplaceTopicRule
"roleArn": "string"
},
"elasticsearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"firehose": {
"batchMode": boolean,
"deliveryStreamName": "string",
"roleArn": "string",
"separator": "string"
},
"http": {
"auth": {
"sigv4": {
"roleArn": "string",
"serviceName": "string",
"signingRegion": "string"
}
},
"confirmationUrl": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"url": "string"
},
"iotAnalytics": {
"batchMode": boolean,
"channelArn": "string",
"channelName": "string",
"roleArn": "string"
},
"iotEvents": {
"batchMode": boolean,
"inputName": "string",
"messageId": "string",
"roleArn": "string"
},
"iotSiteWise": {
"putAssetPropertyValueEntries": [
{
"assetId": "string",
"entryId": "string",
"propertyAlias": "string",
"propertyId": "string",
"propertyValues": [
{
"quality": "string",
"timestamp": {
"offsetInNanos": "string",
"timeInSeconds": "string"
},
"value": {
"booleanValue": "string",
"doubleValue": "string",
"integerValue": "string",
"stringValue": "string"
}
}
]
594
AWS IoT API Reference
ReplaceTopicRule
}
],
"roleArn": "string"
},
"kafka": {
"clientProperties": {
"string" : "string"
},
"destinationArn": "string",
"headers": [
{
"key": "string",
"value": "string"
}
],
"key": "string",
"partition": "string",
"topic": "string"
},
"kinesis": {
"partitionKey": "string",
"roleArn": "string",
"streamName": "string"
},
"lambda": {
"functionArn": "string"
},
"location": {
"deviceId": "string",
"latitude": "string",
"longitude": "string",
"roleArn": "string",
"timestamp": {
"unit": "string",
"value": "string"
},
"trackerName": "string"
},
"openSearch": {
"endpoint": "string",
"id": "string",
"index": "string",
"roleArn": "string",
"type": "string"
},
"republish": {
"headers": {
"contentType": "string",
"correlationData": "string",
"messageExpiry": "string",
"payloadFormatIndicator": "string",
"responseTopic": "string",
"userProperties": [
{
"key": "string",
"value": "string"
}
]
},
"qos": number,
"roleArn": "string",
"topic": "string"
},
"s3": {
"bucketName": "string",
"cannedAcl": "string",
595
AWS IoT API Reference
ReplaceTopicRule
"key": "string",
"roleArn": "string"
},
"salesforce": {
"token": "string",
"url": "string"
},
"sns": {
"messageFormat": "string",
"roleArn": "string",
"targetArn": "string"
},
"sqs": {
"queueUrl": "string",
"roleArn": "string",
"useBase64": boolean
},
"stepFunctions": {
"executionNamePrefix": "string",
"roleArn": "string",
"stateMachineName": "string"
},
"timestream": {
"databaseName": "string",
"dimensions": [
{
"name": "string",
"value": "string"
}
],
"roleArn": "string",
"tableName": "string",
"timestamp": {
"unit": "string",
"value": "string"
}
}
},
"ruleDisabled": boolean,
"sql": "string"
}
Pattern: ^[a-zA-Z0-9_]+$
Required: Yes
Request Body
The request accepts the following data in JSON format.
596
AWS IoT API Reference
ReplaceTopicRule
Required: Yes
awsIotSqlVersion (p. 590)
The version of the SQL rules engine to use when evaluating the rule.
Type: String
Required: No
description (p. 590)
Type: String
Required: No
errorAction (p. 590)
Required: No
ruleDisabled (p. 590)
Type: Boolean
Required: No
sql (p. 590)
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the
AWS IoT Developer Guide.
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
597
AWS IoT API Reference
ReplaceTopicRule
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
598
AWS IoT API Reference
SearchIndex
SearchIndex
Service: AWS IoT
Request Syntax
POST /indices/search HTTP/1.1
Content-type: application/json
{
"indexName": "string",
"maxResults": number,
"nextToken": "string",
"queryString": "string",
"queryVersion": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
maxResults (p. 599)
The maximum number of results to return per page at one time. The response might contain fewer
results but will never contain more.
Type: Integer
Required: No
nextToken (p. 599)
The token used to get the next set of results, or null if there are no additional results.
Type: String
Required: No
599
AWS IoT API Reference
SearchIndex
The search query string. For more information about the search query syntax, see Query syntax.
Type: String
Required: Yes
queryVersion (p. 599)
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"thingGroups": [
{
"attributes": {
"string" : "string"
},
"parentGroupNames": [ "string" ],
"thingGroupDescription": "string",
"thingGroupId": "string",
"thingGroupName": "string"
}
],
"things": [
{
"attributes": {
"string" : "string"
},
"connectivity": {
"connected": boolean,
"disconnectReason": "string",
"timestamp": number
},
"deviceDefender": "string",
"shadow": "string",
"thingGroupNames": [ "string" ],
"thingId": "string",
"thingName": "string",
"thingTypeName": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
600
AWS IoT API Reference
SearchIndex
The token used to get the next set of results, or null if there are no additional results.
Type: String
thingGroups (p. 600)
Errors
IndexNotReadyException
601
AWS IoT API Reference
SearchIndex
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
602
AWS IoT API Reference
SetDefaultAuthorizer
SetDefaultAuthorizer
Service: AWS IoT
Sets the default authorizer. This will be used if a websocket connection is made without specifying an
authorizer.
Request Syntax
POST /default-authorizer HTTP/1.1
Content-type: application/json
{
"authorizerName": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\w=,@-]+
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizerArn": "string",
"authorizerName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
603
AWS IoT API Reference
SetDefaultAuthorizer
Type: String
Type: String
Pattern: [\w=,@-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
604
AWS IoT API Reference
SetDefaultAuthorizer
605
AWS IoT API Reference
SetDefaultPolicyVersion
SetDefaultPolicyVersion
Service: AWS IoT
Sets the specified version of the specified policy as the policy's default (operative) version. This action
affects all certificates to which the policy is attached. To list the principals the policy is attached to, use
the ListPrincipalPolicies (p. 499) action.
Request Syntax
PATCH /policies/policyName/version/policyVersionId HTTP/1.1
Pattern: [\w+=,.@-]+
Required: Yes
policyVersionId (p. 606)
Pattern: [0-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
606
AWS IoT API Reference
SetDefaultPolicyVersion
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
607
AWS IoT API Reference
SetLoggingOptions
SetLoggingOptions
Service: AWS IoT
Request Syntax
POST /loggingOptions HTTP/1.1
Content-type: application/json
{
"logLevel": "string",
"roleArn": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
roleArn (p. 608)
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
InternalException
608
AWS IoT API Reference
SetLoggingOptions
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
609
AWS IoT API Reference
SetV2LoggingLevel
SetV2LoggingLevel
Service: AWS IoT
Request Syntax
POST /v2LoggingLevel HTTP/1.1
Content-type: application/json
{
"logLevel": "string",
"logTarget": {
"targetName": "string",
"targetType": "string"
}
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
logTarget (p. 610)
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.
610
AWS IoT API Reference
SetV2LoggingLevel
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
611
AWS IoT API Reference
SetV2LoggingOptions
SetV2LoggingOptions
Service: AWS IoT
Request Syntax
POST /v2LoggingOptions HTTP/1.1
Content-type: application/json
{
"defaultLogLevel": "string",
"disableAllLogs": boolean,
"roleArn": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
disableAllLogs (p. 612)
Type: Boolean
Required: No
roleArn (p. 612)
The ARN of the role that allows IoT to write to Cloudwatch logs.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
612
AWS IoT API Reference
SetV2LoggingOptions
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
613
AWS IoT API Reference
StartAuditMitigationActionsTask
StartAuditMitigationActionsTask
Service: AWS IoT
Starts a task that applies a set of mitigation actions to the specified target.
Request Syntax
POST /audit/mitigationactions/tasks/taskId HTTP/1.1
Content-type: application/json
{
"auditCheckToActionsMapping": {
"string" : [ "string" ]
},
"clientRequestToken": "string",
"target": {
"auditCheckToReasonCodeFilter": {
"string" : [ "string" ]
},
"auditTaskId": "string",
"findingIds": [ "string" ]
}
}
A unique identifier for the task. You can use this identifier to check the status of the task or to cancel
it.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
For an audit check, specifies which mitigation actions to apply. Those actions must be defined in
your AWS accounts.
Pattern: [a-zA-Z0-9_-]+
614
AWS IoT API Reference
StartAuditMitigationActionsTask
Required: Yes
clientRequestToken (p. 614)
Each audit mitigation task must have a unique client request token. If you try to start a new task
with the same token as a task that already exists, an exception occurs. If you omit this value, a
unique client request token is generated automatically.
Type: String
Pattern: ^[a-zA-Z0-9-_]+$
Required: Yes
target (p. 614)
Specifies the audit findings to which the mitigation actions are applied. You can apply them to a
type of audit check, to all findings from an audit, or to a specific set of findings.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taskId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The unique identifier for the audit mitigation task. This matches the taskId that you specified in
the request.
Type: String
Pattern: [a-zA-Z0-9_-]+
Errors
InternalFailureException
615
AWS IoT API Reference
StartAuditMitigationActionsTask
InvalidRequestException
This exception occurs if you attempt to start a task with the same task-id as an existing task but with
a different clientRequestToken.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
616
AWS IoT API Reference
StartDetectMitigationActionsTask
StartDetectMitigationActionsTask
Service: AWS IoT
Request Syntax
PUT /detect/mitigationactions/tasks/taskId HTTP/1.1
Content-type: application/json
{
"actions": [ "string" ],
"clientRequestToken": "string",
"includeOnlyActiveViolations": boolean,
"includeSuppressedAlerts": boolean,
"target": {
"behaviorName": "string",
"securityProfileName": "string",
"violationIds": [ "string" ]
},
"violationEventOccurrenceRange": {
"endTime": number,
"startTime": number
}
}
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
617
AWS IoT API Reference
StartDetectMitigationActionsTask
Each mitigation action task must have a unique client request token. If you try to create a new task
with the same token as a task that already exists, an exception occurs. If you omit this value, AWS
SDKs will automatically generate a unique client request.
Type: String
Pattern: ^[a-zA-Z0-9-_]+$
Required: Yes
includeOnlyActiveViolations (p. 617)
Type: Boolean
Required: No
includeSuppressedAlerts (p. 617)
Type: Boolean
Required: No
target (p. 617)
Specifies the ML Detect findings to which the mitigation actions are applied.
Required: Yes
violationEventOccurrenceRange (p. 617)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taskId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
618
AWS IoT API Reference
StartDetectMitigationActionsTask
Type: String
Pattern: [a-zA-Z0-9_-]+
Errors
InternalFailureException
This exception occurs if you attempt to start a task with the same task-id as an existing task but with
a different clientRequestToken.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
619
AWS IoT API Reference
StartOnDemandAuditTask
StartOnDemandAuditTask
Service: AWS IoT
Request Syntax
POST /audit/tasks HTTP/1.1
Content-type: application/json
{
"targetCheckNames": [ "string" ]
}
Request Body
The request accepts the following data in JSON format.
Which checks are performed during the audit. The checks you specify must be enabled for your
account or an exception occurs. Use DescribeAccountAuditConfiguration to see the list of all
checks, including those that are enabled or UpdateAccountAuditConfiguration to select which
checks are enabled.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taskId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
620
AWS IoT API Reference
StartOnDemandAuditTask
Pattern: [a-zA-Z0-9\-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
621
AWS IoT API Reference
StartThingRegistrationTask
StartThingRegistrationTask
Service: AWS IoT
Request Syntax
POST /thing-registration-tasks HTTP/1.1
Content-type: application/json
{
"inputFileBucket": "string",
"inputFileKey": "string",
"roleArn": "string",
"templateBody": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [a-zA-Z0-9._-]+
Required: Yes
inputFileKey (p. 622)
The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each
line contains the parameter values to provision one device (thing).
Type: String
Pattern: [a-zA-Z0-9!_.*'()-\/]+
Required: Yes
roleArn (p. 622)
The IAM role ARN that grants permission the input file.
Type: String
622
AWS IoT API Reference
StartThingRegistrationTask
Required: Yes
templateBody (p. 622)
Type: String
Pattern: [\s\S]*
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"taskId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
InternalFailureException
623
AWS IoT API Reference
StartThingRegistrationTask
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
624
AWS IoT API Reference
StopThingRegistrationTask
StopThingRegistrationTask
Service: AWS IoT
Request Syntax
PUT /thing-registration-tasks/taskId/cancel HTTP/1.1
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
625
AWS IoT API Reference
StopThingRegistrationTask
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
626
AWS IoT API Reference
TagResource
TagResource
Service: AWS IoT
Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a
resource.
Request Syntax
POST /tags HTTP/1.1
Content-type: application/json
{
"resourceArn": "string",
"tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
tags (p. 627)
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.
627
AWS IoT API Reference
TagResource
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
628
AWS IoT API Reference
TestAuthorization
TestAuthorization
Service: AWS IoT
Tests if a specified principal is authorized to perform an AWS IoT action on a specified resource. Use this
to test and debug the authorization behavior of devices that connect to the AWS IoT device gateway.
Request Syntax
POST /test-authorization?clientId=clientId HTTP/1.1
Content-type: application/json
{
"authInfos": [
{
"actionType": "string",
"resources": [ "string" ]
}
],
"cognitoIdentityPoolId": "string",
"policyNamesToAdd": [ "string" ],
"policyNamesToSkip": [ "string" ],
"principal": "string"
}
Request Body
The request accepts the following data in JSON format.
A list of authorization info objects. Simulating authorization will create a response for each
authInfo object in the list.
Required: Yes
cognitoIdentityPoolId (p. 629)
Type: String
Required: No
policyNamesToAdd (p. 629)
When testing custom authorization, the policies specified here are treated as if they are attached to
the principal being authorized.
629
AWS IoT API Reference
TestAuthorization
Pattern: [\w+=,.@-]+
Required: No
policyNamesToSkip (p. 629)
When testing custom authorization, the policies specified here are treated as if they are not attached
to the principal being authorized.
Pattern: [\w+=,.@-]+
Required: No
principal (p. 629)
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authResults": [
{
"allowed": {
"policies": [
{
"policyArn": "string",
"policyName": "string"
}
]
},
"authDecision": "string",
"authInfo": {
"actionType": "string",
"resources": [ "string" ]
},
"denied": {
"explicitDeny": {
"policies": [
{
"policyArn": "string",
"policyName": "string"
}
]
},
"implicitDeny": {
"policies": [
{
630
AWS IoT API Reference
TestAuthorization
"policyArn": "string",
"policyName": "string"
}
]
}
},
"missingContextValues": [ "string" ]
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
InternalFailureException
631
AWS IoT API Reference
TestAuthorization
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
632
AWS IoT API Reference
TestInvokeAuthorizer
TestInvokeAuthorizer
Service: AWS IoT
Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and
debug the custom authorization behavior of devices that connect to the AWS IoT device gateway.
Request Syntax
POST /authorizer/authorizerName/test HTTP/1.1
Content-type: application/json
{
"httpContext": {
"headers": {
"string" : "string"
},
"queryString": "string"
},
"mqttContext": {
"clientId": "string",
"password": blob,
"username": "string"
},
"tlsContext": {
"serverName": "string"
},
"token": "string",
"tokenSignature": "string"
}
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: No
633
AWS IoT API Reference
TestInvokeAuthorizer
Required: No
tlsContext (p. 633)
Required: No
token (p. 633)
Type: String
Pattern: [\s\S]*
Required: No
tokenSignature (p. 633)
The signature made with the token and your custom authentication service's private key. This value
must be Base-64-encoded.
Type: String
Pattern: [A-Za-z0-9+/]+={0,2}
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"disconnectAfterInSeconds": number,
"isAuthenticated": boolean,
"policyDocuments": [ "string" ],
"principalId": "string",
"refreshAfterInSeconds": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
634
AWS IoT API Reference
TestInvokeAuthorizer
Type: Integer
isAuthenticated (p. 634)
Type: Boolean
policyDocuments (p. 634)
Pattern: [\s\S]*
principalId (p. 634)
Type: String
Pattern: [a-zA-Z0-9]+
refreshAfterInSeconds (p. 634)
The number of seconds after which the temporary credentials are refreshed.
Type: Integer
Errors
InternalFailureException
635
AWS IoT API Reference
TestInvokeAuthorizer
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
636
AWS IoT API Reference
TransferCertificate
TransferCertificate
Service: AWS IoT
No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer
target.
The certificate being transferred must not be in the ACTIVE state. You can use the
UpdateCertificate (p. 658) action to deactivate it.
The certificate must not have any policies attached to it. You can use the DetachPolicy (p. 339) action to
detach them.
Request Syntax
PATCH /transfer-certificate/certificateId?targetAwsAccount=targetAwsAccount HTTP/1.1
Content-type: application/json
{
"transferMessage": "string"
}
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
targetAwsAccount (p. 637)
Pattern: [0-9]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
637
AWS IoT API Reference
TransferCertificate
Type: String
Pattern: [\s\S]*
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"transferredCertificateArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
CertificateStateException
638
AWS IoT API Reference
TransferCertificate
ThrottlingException
You can't transfer the certificate because authorization policies are still attached.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
639
AWS IoT API Reference
UntagResource
UntagResource
Service: AWS IoT
Request Syntax
POST /untag HTTP/1.1
Content-type: application/json
{
"resourceArn": "string",
"tagKeys": [ "string" ]
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
tagKeys (p. 640)
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
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
640
AWS IoT API Reference
UntagResource
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
641
AWS IoT API Reference
UpdateAccountAuditConfiguration
UpdateAccountAuditConfiguration
Service: AWS IoT
Configures or reconfigures the Device Defender audit settings for this account. Settings include how
audit notifications are sent and which audit checks are enabled or disabled.
Request Syntax
PATCH /audit/configuration HTTP/1.1
Content-type: application/json
{
"auditCheckConfigurations": {
"string" : {
"enabled": boolean
}
},
"auditNotificationTargetConfigurations": {
"string" : {
"enabled": boolean,
"roleArn": "string",
"targetArn": "string"
}
},
"roleArn": "string"
}
Request Body
The request accepts the following data in JSON format.
Specifies which audit checks are enabled and disabled for this account. Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
currently enabled.
Some data collection might start immediately when certain checks are enabled. When a check is
disabled, any data collected so far in relation to the check is deleted.
You cannot disable a check if it's used by any scheduled audit. You must first delete the check from
the scheduled audit or delete the scheduled audit itself.
Required: No
auditNotificationTargetConfigurations (p. 642)
642
AWS IoT API Reference
UpdateAccountAuditConfiguration
Required: No
roleArn (p. 642)
The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT to access
information about your devices, policies, certificates, and other items as required when performing
an audit.
Type: String
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
643
AWS IoT API Reference
UpdateAccountAuditConfiguration
644
AWS IoT API Reference
UpdateAuditSuppression
UpdateAuditSuppression
Service: AWS IoT
Request Syntax
PATCH /audit/suppressions/update HTTP/1.1
Content-type: application/json
{
"checkName": "string",
"description": "string",
"expirationDate": number,
"resourceIdentifier": {
"account": "string",
"caCertificateId": "string",
"clientId": "string",
"cognitoIdentityPoolId": "string",
"deviceCertificateArn": "string",
"deviceCertificateId": "string",
"iamRoleArn": "string",
"issuerCertificateIdentifier": {
"issuerCertificateSerialNumber": "string",
"issuerCertificateSubject": "string",
"issuerId": "string"
},
"policyVersionIdentifier": {
"policyName": "string",
"policyVersionId": "string"
},
"roleAliasArn": "string"
},
"suppressIndefinitely": boolean
}
Request Body
The request accepts the following data in JSON format.
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Type: String
Required: Yes
description (p. 645)
Type: String
645
AWS IoT API Reference
UpdateAuditSuppression
Pattern: [\p{Graph}\x20]*
Required: No
expirationDate (p. 645)
The expiration date (epoch timestamp in seconds) that you want the suppression to adhere to.
Type: Timestamp
Required: No
resourceIdentifier (p. 645)
Required: Yes
suppressIndefinitely (p. 645)
Type: Boolean
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
646
AWS IoT API Reference
UpdateAuditSuppression
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
647
AWS IoT API Reference
UpdateAuthorizer
UpdateAuthorizer
Service: AWS IoT
Updates an authorizer.
Request Syntax
PUT /authorizer/authorizerName HTTP/1.1
Content-type: application/json
{
"authorizerFunctionArn": "string",
"enableCachingForHttp": boolean,
"status": "string",
"tokenKeyName": "string",
"tokenSigningPublicKeys": {
"string" : "string"
}
}
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [\s\S]*
Required: No
enableCachingForHttp (p. 648)
When true, the result from the authorizer’s Lambda function is cached for the time specified
in refreshAfterInSeconds. The cached result is used while the device reuses the same HTTP
connection.
Type: Boolean
648
AWS IoT API Reference
UpdateAuthorizer
Required: No
status (p. 648)
Type: String
Required: No
tokenKeyName (p. 648)
The key used to extract the token from the HTTP headers.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
tokenSigningPublicKeys (p. 648)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"authorizerArn": "string",
"authorizerName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
649
AWS IoT API Reference
UpdateAuthorizer
Type: String
Pattern: [\w=,@-]+
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
650
AWS IoT API Reference
UpdateAuthorizer
651
AWS IoT API Reference
UpdateBillingGroup
UpdateBillingGroup
Service: AWS IoT
Request Syntax
PATCH /billing-groups/billingGroupName HTTP/1.1
Content-type: application/json
{
"billingGroupProperties": {
"billingGroupDescription": "string"
},
"expectedVersion": number
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: Yes
expectedVersion (p. 652)
The expected version of the billing group. If the version of the billing group does not match the
expected version specified in the request, the UpdateBillingGroup request is rejected with a
VersionConflictException.
Type: Long
Required: No
Response Syntax
HTTP/1.1 200
652
AWS IoT API Reference
UpdateBillingGroup
Content-type: application/json
{
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Long
Errors
InternalFailureException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
653
AWS IoT API Reference
UpdateBillingGroup
654
AWS IoT API Reference
UpdateCACertificate
UpdateCACertificate
Service: AWS IoT
Request Syntax
PUT /cacertificate/caCertificateId?
newAutoRegistrationStatus=newAutoRegistrationStatus&newStatus=newStatus HTTP/1.1
Content-type: application/json
{
"registrationConfig": {
"roleArn": "string",
"templateBody": "string",
"templateName": "string"
},
"removeAutoRegistration": boolean
}
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
newAutoRegistrationStatus (p. 655)
The new value for the auto registration status. Valid values are: "ENABLE" or "DISABLE".
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Request Body
The request accepts the following data in JSON format.
655
AWS IoT API Reference
UpdateCACertificate
Required: No
removeAutoRegistration (p. 655)
Type: Boolean
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
656
AWS IoT API Reference
UpdateCACertificate
657
AWS IoT API Reference
UpdateCertificate
UpdateCertificate
Service: AWS IoT
Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to AWS
IoT.
Within a few minutes of updating a certificate from the ACTIVE state to any other state, AWS IoT
disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in
the ACTIVE state to reconnect.
Request Syntax
PUT /certificates/certificateId?newStatus=newStatus HTTP/1.1
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Pattern: (0x)?[a-fA-F0-9]+
Required: Yes
newStatus (p. 658)
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
658
AWS IoT API Reference
UpdateCertificate
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
CertificateStateException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
659
AWS IoT API Reference
UpdateCertificate
660
AWS IoT API Reference
UpdateCustomMetric
UpdateCustomMetric
Service: AWS IoT
Request Syntax
PATCH /custom-metric/metricName HTTP/1.1
Content-type: application/json
{
"displayName": "string"
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Field represents a friendly name in the console for the custom metric, it doesn't have to be unique.
Don't use this name as the metric identifier in the device metric report. Can be updated.
Type: String
Pattern: [\p{Graph}\x20]*
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"creationDate": number,
"displayName": "string",
"lastModifiedDate": number,
"metricArn": "string",
661
AWS IoT API Reference
UpdateCustomMetric
"metricName": "string",
"metricType": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
displayName (p. 661)
Type: String
Pattern: [\p{Graph}\x20]*
lastModifiedDate (p. 661)
The time the custom metric was last modified in milliseconds since epoch.
Type: Timestamp
metricArn (p. 661)
Type: String
metricName (p. 661)
Type: String
Pattern: [a-zA-Z0-9:_-]+
metricType (p. 661)
Type: String
Errors
InternalFailureException
662
AWS IoT API Reference
UpdateCustomMetric
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
663
AWS IoT API Reference
UpdateDimension
UpdateDimension
Service: AWS IoT
Updates the definition for a dimension. You cannot change the type of a dimension after it is created
(you can delete it and recreate it).
Request Syntax
PATCH /dimensions/name HTTP/1.1
Content-type: application/json
{
"stringValues": [ "string" ]
}
A unique identifier for the dimension. Choose something that describes the type and value to make
it easy to remember what it does.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Specifies the value or list of values for the dimension. For TOPIC_FILTER dimensions, this is a
pattern used to match the MQTT topic (for example, "admin/#").
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"arn": "string",
"creationDate": number,
664
AWS IoT API Reference
UpdateDimension
"lastModifiedDate": number,
"name": "string",
"stringValues": [ "string" ],
"type": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
creationDate (p. 664)
The date and time, in milliseconds since epoch, when the dimension was initially created.
Type: Timestamp
lastModifiedDate (p. 664)
The date and time, in milliseconds since epoch, when the dimension was most recently updated.
Type: Timestamp
name (p. 664)
Type: String
Pattern: [a-zA-Z0-9:_-]+
stringValues (p. 664)
The value or list of values used to scope the dimension. For example, for topic filters, this is the
pattern used to match the MQTT topic name.
Type: String
Errors
InternalFailureException
665
AWS IoT API Reference
UpdateDimension
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
666
AWS IoT API Reference
UpdateDomainConfiguration
UpdateDomainConfiguration
Service: AWS IoT
Updates values stored in the domain configuration. Domain configurations for default endpoints can't be
updated.
Request Syntax
PUT /domainConfigurations/domainConfigurationName HTTP/1.1
Content-type: application/json
{
"authorizerConfig": {
"allowAuthorizerOverride": boolean,
"defaultAuthorizerName": "string"
},
"domainConfigurationStatus": "string",
"removeAuthorizerConfig": boolean,
"tlsConfig": {
"securityPolicy": "string"
}
}
Pattern: [\w.:-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: No
domainConfigurationStatus (p. 667)
Type: String
667
AWS IoT API Reference
UpdateDomainConfiguration
Required: No
removeAuthorizerConfig (p. 667)
Type: Boolean
Required: No
tlsConfig (p. 667)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"domainConfigurationArn": "string",
"domainConfigurationName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
domainConfigurationName (p. 668)
Type: String
Pattern: [\w.:-]+
Errors
CertificateValidationException
668
AWS IoT API Reference
UpdateDomainConfiguration
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
669
AWS IoT API Reference
UpdateDynamicThingGroup
UpdateDynamicThingGroup
Service: AWS IoT
Request Syntax
PATCH /dynamic-thing-groups/thingGroupName HTTP/1.1
Content-type: application/json
{
"expectedVersion": number,
"indexName": "string",
"queryString": "string",
"queryVersion": "string",
"thingGroupProperties": {
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"thingGroupDescription": "string"
}
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: Long
Required: No
indexName (p. 670)
670
AWS IoT API Reference
UpdateDynamicThingGroup
Note
Currently one index is supported: AWS_Things.
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
queryString (p. 670)
Type: String
Required: No
queryVersion (p. 670)
Type: String
Required: No
thingGroupProperties (p. 670)
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Long
671
AWS IoT API Reference
UpdateDynamicThingGroup
Errors
InternalFailureException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
672
AWS IoT API Reference
UpdateEventConfigurations
UpdateEventConfigurations
Service: AWS IoT
Request Syntax
PATCH /event-configurations HTTP/1.1
Content-type: application/json
{
"eventConfigurations": {
"string" : {
"Enabled": boolean
}
}
}
Request Body
The request accepts the following data in JSON format.
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
673
AWS IoT API Reference
UpdateEventConfigurations
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
674
AWS IoT API Reference
UpdateFleetMetric
UpdateFleetMetric
Service: AWS IoT
Request Syntax
PATCH /fleet-metric/metricName HTTP/1.1
Content-type: application/json
{
"aggregationField": "string",
"aggregationType": {
"name": "string",
"values": [ "string" ]
},
"description": "string",
"expectedVersion": number,
"indexName": "string",
"period": number,
"queryString": "string",
"queryVersion": "string",
"unit": "string"
}
Pattern: [a-zA-Z0-9_\-\.]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
aggregationType (p. 675)
675
AWS IoT API Reference
UpdateFleetMetric
Required: No
description (p. 675)
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
expectedVersion (p. 675)
Type: Long
Required: No
indexName (p. 675)
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
period (p. 675)
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be
multiple of 60.
Type: Integer
Required: No
queryString (p. 675)
Type: String
Required: No
queryVersion (p. 675)
Type: String
Required: No
unit (p. 675)
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by
CW metric.
676
AWS IoT API Reference
UpdateFleetMetric
Type: String
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
IndexNotReadyException
677
AWS IoT API Reference
UpdateFleetMetric
ThrottlingException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
678
AWS IoT API Reference
UpdateIndexingConfiguration
UpdateIndexingConfiguration
Service: AWS IoT
Request Syntax
POST /indexing/config HTTP/1.1
Content-type: application/json
{
"thingGroupIndexingConfiguration": {
"customFields": [
{
"name": "string",
"type": "string"
}
],
"managedFields": [
{
"name": "string",
"type": "string"
}
],
"thingGroupIndexingMode": "string"
},
"thingIndexingConfiguration": {
"customFields": [
{
"name": "string",
"type": "string"
}
],
"deviceDefenderIndexingMode": "string",
"filter": {
"geoLocations": [
{
"name": "string",
"order": "string"
}
],
"namedShadowNames": [ "string" ]
},
"managedFields": [
{
"name": "string",
"type": "string"
}
],
"namedShadowIndexingMode": "string",
"thingConnectivityIndexingMode": "string",
"thingIndexingMode": "string"
}
}
679
AWS IoT API Reference
UpdateIndexingConfiguration
Request Body
The request accepts the following data in JSON format.
Required: No
thingIndexingConfiguration (p. 679)
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
680
AWS IoT API Reference
UpdateIndexingConfiguration
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
681
AWS IoT API Reference
UpdateJob
UpdateJob
Service: AWS IoT
Request Syntax
PATCH /jobs/jobId?namespaceId=namespaceId HTTP/1.1
Content-type: application/json
{
"abortConfig": {
"criteriaList": [
{
"action": "string",
"failureType": "string",
"minNumberOfExecutedThings": number,
"thresholdPercentage": number
}
]
},
"description": "string",
"jobExecutionsRetryConfig": {
"criteriaList": [
{
"failureType": "string",
"numberOfRetries": number
}
]
},
"jobExecutionsRolloutConfig": {
"exponentialRate": {
"baseRatePerMinute": number,
"incrementFactor": number,
"rateIncreaseCriteria": {
"numberOfNotifiedThings": number,
"numberOfSucceededThings": number
}
},
"maximumPerMinute": number
},
"presignedUrlConfig": {
"expiresInSec": number,
"roleArn": "string"
},
"timeoutConfig": {
"inProgressTimeoutInMinutes": number
}
}
682
AWS IoT API Reference
UpdateJob
Pattern: [a-zA-Z0-9_-]+
Required: Yes
namespaceId (p. 682)
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.
Pattern: [a-zA-Z0-9_-]+
Request Body
The request accepts the following data in JSON format.
Required: No
description (p. 682)
Type: String
Pattern: [^\p{C}]+
Required: No
jobExecutionsRetryConfig (p. 682)
Required: No
jobExecutionsRolloutConfig (p. 682)
Required: No
presignedUrlConfig (p. 682)
Required: No
683
AWS IoT API Reference
UpdateJob
Specifies the amount of time each device has to finish its execution of the job. The timer is started
when the job execution status is set to IN_PROGRESS. If the job execution status is not set to
another terminal state before the time expires, it will be automatically set to TIMED_OUT.
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
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
684
AWS IoT API Reference
UpdateJob
685
AWS IoT API Reference
UpdateMitigationAction
UpdateMitigationAction
Service: AWS IoT
Request Syntax
PATCH /mitigationactions/actions/actionName HTTP/1.1
Content-type: application/json
{
"actionParams": {
"addThingsToThingGroupParams": {
"overrideDynamicGroups": boolean,
"thingGroupNames": [ "string" ]
},
"enableIoTLoggingParams": {
"logLevel": "string",
"roleArnForLogging": "string"
},
"publishFindingToSnsParams": {
"topicArn": "string"
},
"replaceDefaultPolicyVersionParams": {
"templateName": "string"
},
"updateCACertificateParams": {
"action": "string"
},
"updateDeviceCertificateParams": {
"action": "string"
}
},
"roleArn": "string"
}
The friendly name for the mitigation action. You cannot change the name by using
UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the
new name.
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
686
AWS IoT API Reference
UpdateMitigationAction
Defines the type of action and the parameters for that action.
Required: No
roleArn (p. 686)
The ARN of the IAM role that is used to apply the mitigation action.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"actionArn": "string",
"actionId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
actionId (p. 687)
Type: String
Errors
InternalFailureException
687
AWS IoT API Reference
UpdateMitigationAction
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
688
AWS IoT API Reference
UpdatePackage
UpdatePackage
Service: AWS IoT
Request Syntax
PATCH /packages/packageName?clientToken=clientToken HTTP/1.1
Content-type: application/json
{
"defaultVersionName": "string",
"description": "string",
"unsetDefaultVersion": boolean
}
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
packageName (p. 689)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Note: You cannot name a defaultVersion and set unsetDefaultVersion equal to true at the
same time.
Type: String
Pattern: [a-zA-Z0-9-_.]+
Required: No
689
AWS IoT API Reference
UpdatePackage
Type: String
Pattern: [^\p{C}]+
Required: No
unsetDefaultVersion (p. 689)
Indicates whether you want to remove the named default package version from the software
package. Set as true to remove the default package version.
Note: You cannot name a defaultVersion and set unsetDefaultVersion equal to true at the
same time.
Type: Boolean
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
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
690
AWS IoT API Reference
UpdatePackage
691
AWS IoT API Reference
UpdatePackageConfiguration
UpdatePackageConfiguration
Service: AWS IoT
Request Syntax
PATCH /package-configuration?clientToken=clientToken HTTP/1.1
Content-type: application/json
{
"versionUpdateByJobsConfig": {
"enabled": boolean,
"roleArn": "string"
}
}
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
Request Body
The request accepts the following data in JSON format.
Configuration to manage job's package version reporting. This updates the thing's reserved named
shadow that the job targets.
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.
692
AWS IoT API Reference
UpdatePackageConfiguration
Errors
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
693
AWS IoT API Reference
UpdatePackageVersion
UpdatePackageVersion
Service: AWS IoT
Request Syntax
PATCH /packages/packageName/versions/versionName?clientToken=clientToken HTTP/1.1
Content-type: application/json
{
"action": "string",
"attributes": {
"string" : "string"
},
"description": "string"
}
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: \S{36,64}
packageName (p. 694)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
versionName (p. 694)
Pattern: [a-zA-Z0-9-_.]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The status that the package version should be assigned. For more information, see Package version
lifecycle.
694
AWS IoT API Reference
UpdatePackageVersion
Type: String
Required: No
attributes (p. 694)
Metadata that can be used to define a package version’s configuration. For example, the Amazon S3
file location, configuration options that are being sent to the device or fleet.
Note: Attributes can be updated only when the package version is in a draft state.
The combined size of all the attributes on a package version is limited to 3KB.
Required: No
description (p. 694)
Type: String
Pattern: [^\p{C}]+
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
InternalServerException
Internal error from the service that indicates an unexpected error or that the service is unavailable.
695
AWS IoT API Reference
UpdatePackageVersion
ThrottlingException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
696
AWS IoT API Reference
UpdateProvisioningTemplate
UpdateProvisioningTemplate
Service: AWS IoT
Request Syntax
PATCH /provisioning-templates/templateName HTTP/1.1
Content-type: application/json
{
"defaultVersionId": number,
"description": "string",
"enabled": boolean,
"preProvisioningHook": {
"payloadVersion": "string",
"targetArn": "string"
},
"provisioningRoleArn": "string",
"removePreProvisioningHook": boolean
}
Pattern: ^[0-9A-Za-z_-]+$
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: Integer
Required: No
description (p. 697)
Type: String
Pattern: [^\p{C}]*
697
AWS IoT API Reference
UpdateProvisioningTemplate
Required: No
enabled (p. 697)
Type: Boolean
Required: No
preProvisioningHook (p. 697)
Required: No
provisioningRoleArn (p. 697)
The ARN of the role associated with the provisioning template. This IoT role grants permission to
provision a device.
Type: String
Required: No
removePreProvisioningHook (p. 697)
Type: Boolean
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
698
AWS IoT API Reference
UpdateProvisioningTemplate
InvalidRequestException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
699
AWS IoT API Reference
UpdateRoleAlias
UpdateRoleAlias
Service: AWS IoT
Request Syntax
PUT /role-aliases/roleAlias HTTP/1.1
Content-type: application/json
{
"credentialDurationSeconds": number,
"roleArn": "string"
}
Pattern: [\w=,@-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
This value must be less than or equal to the maximum session duration of the IAM role that the role
alias references.
Type: Integer
Required: No
roleArn (p. 700)
Type: String
Required: No
700
AWS IoT API Reference
UpdateRoleAlias
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"roleAlias": "string",
"roleAliasArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [\w=,@-]+
roleAliasArn (p. 701)
Type: String
Errors
InternalFailureException
701
AWS IoT API Reference
UpdateRoleAlias
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
702
AWS IoT API Reference
UpdateScheduledAudit
UpdateScheduledAudit
Service: AWS IoT
Updates a scheduled audit, including which checks are performed and how often the audit takes place.
Request Syntax
PATCH /audit/scheduledaudits/scheduledAuditName HTTP/1.1
Content-type: application/json
{
"dayOfMonth": "string",
"dayOfWeek": "string",
"frequency": "string",
"targetCheckNames": [ "string" ]
}
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The day of the month on which the scheduled audit takes place. This can be 1 through 31 or LAST.
This field is required if the frequency parameter is set to MONTHLY. If days 29-31 are specified, and
the month does not have that many days, the audit takes place on the "LAST" day of the month.
Type: String
Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
Required: No
dayOfWeek (p. 703)
The day of the week on which the scheduled audit takes place. This can be one of SUN, MON, TUE,
WED, THU, FRI, or SAT. This field is required if the "frequency" parameter is set to WEEKLY or
BIWEEKLY.
Type: String
703
AWS IoT API Reference
UpdateScheduledAudit
Required: No
frequency (p. 703)
How often the scheduled audit takes place, either DAILY, WEEKLY, BIWEEKLY, or MONTHLY. The start
time of each audit is determined by the system.
Type: String
Required: No
targetCheckNames (p. 703)
Which checks are performed during the scheduled audit. Checks must be enabled for your account.
(Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"scheduledAuditArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Errors
InternalFailureException
704
AWS IoT API Reference
UpdateScheduledAudit
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
705
AWS IoT API Reference
UpdateSecurityProfile
UpdateSecurityProfile
Service: AWS IoT
Request Syntax
PATCH /security-profiles/securityProfileName?expectedVersion=expectedVersion HTTP/1.1
Content-type: application/json
{
"additionalMetricsToRetain": [ "string" ],
"additionalMetricsToRetainV2": [
{
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
}
}
],
"alertTargets": {
"string" : {
"alertTargetArn": "string",
"roleArn": "string"
}
},
"behaviors": [
{
"criteria": {
"comparisonOperator": "string",
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
}
],
"deleteAdditionalMetricsToRetain": boolean,
706
AWS IoT API Reference
UpdateSecurityProfile
"deleteAlertTargets": boolean,
"deleteBehaviors": boolean,
"deleteMetricsExportConfig": boolean,
"metricsExportConfig": {
"mqttTopic": "string",
"roleArn": "string"
},
"securityProfileDescription": "string"
}
The expected version of the security profile. A new version is generated whenever the
security profile is updated. If you specify a value that is different from the actual version, a
VersionConflictException is thrown.
securityProfileName (p. 706)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used
in the profile's behaviors, but it is also retained for any metric specified here. Can be used with
custom metrics; cannot be used with dimensions.
Required: No
additionalMetricsToRetainV2 (p. 706)
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom
metrics; cannot be used with dimensions.
Required: No
alertTargets (p. 706)
Where the alerts are sent. (Alerts are always sent to the console.)
707
AWS IoT API Reference
UpdateSecurityProfile
Required: No
behaviors (p. 706)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Required: No
deleteAdditionalMetricsToRetain (p. 706)
If true, delete all additionalMetricsToRetain defined for this security profile. If any
additionalMetricsToRetain are defined in the current invocation, an exception occurs.
Type: Boolean
Required: No
deleteAlertTargets (p. 706)
If true, delete all alertTargets defined for this security profile. If any alertTargets are defined
in the current invocation, an exception occurs.
Type: Boolean
Required: No
deleteBehaviors (p. 706)
If true, delete all behaviors defined for this security profile. If any behaviors are defined in the
current invocation, an exception occurs.
Type: Boolean
Required: No
deleteMetricsExportConfig (p. 706)
Type: Boolean
Required: No
metricsExportConfig (p. 706)
Specifies the MQTT topic and role ARN required for metric export.
Required: No
securityProfileDescription (p. 706)
Type: String
708
AWS IoT API Reference
UpdateSecurityProfile
Pattern: [\p{Graph}\x20]*
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"additionalMetricsToRetain": [ "string" ],
"additionalMetricsToRetainV2": [
{
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
}
}
],
"alertTargets": {
"string" : {
"alertTargetArn": "string",
"roleArn": "string"
}
},
"behaviors": [
{
"criteria": {
"comparisonOperator": "string",
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
}
],
"creationDate": number,
"lastModifiedDate": number,
709
AWS IoT API Reference
UpdateSecurityProfile
"metricsExportConfig": {
"mqttTopic": "string",
"roleArn": "string"
},
"securityProfileArn": "string",
"securityProfileDescription": "string",
"securityProfileName": "string",
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
the security profile's behaviors, but it is also retained for any metric specified here.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom
metrics; cannot be used with dimensions.
Where the alerts are sent. (Alerts are always sent to the console.)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Type: Timestamp
lastModifiedDate (p. 709)
Type: Timestamp
metricsExportConfig (p. 709)
Specifies the MQTT topic and role ARN required for metric export.
710
AWS IoT API Reference
UpdateSecurityProfile
Type: String
securityProfileDescription (p. 709)
Type: String
Pattern: [\p{Graph}\x20]*
securityProfileName (p. 709)
Type: String
Pattern: [a-zA-Z0-9:_-]+
version (p. 709)
Type: Long
Errors
InternalFailureException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
711
AWS IoT API Reference
UpdateSecurityProfile
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
712
AWS IoT API Reference
UpdateStream
UpdateStream
Service: AWS IoT
Request Syntax
PUT /streams/streamId HTTP/1.1
Content-type: application/json
{
"description": "string",
"files": [
{
"fileId": number,
"s3Location": {
"bucket": "string",
"key": "string",
"version": "string"
}
}
],
"roleArn": "string"
}
Pattern: [a-zA-Z0-9_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: [^\p{C}]+
Required: No
files (p. 713)
713
AWS IoT API Reference
UpdateStream
Required: No
roleArn (p. 713)
An IAM role that allows the IoT service principal assumes to access your S3 files.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"description": "string",
"streamArn": "string",
"streamId": "string",
"streamVersion": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
Pattern: [^\p{C}]+
streamArn (p. 714)
Type: String
streamId (p. 714)
Type: String
Pattern: [a-zA-Z0-9_-]+
streamVersion (p. 714)
714
AWS IoT API Reference
UpdateStream
Type: Integer
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
715
AWS IoT API Reference
UpdateThing
UpdateThing
Service: AWS IoT
Request Syntax
PATCH /things/thingName HTTP/1.1
Content-type: application/json
{
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"expectedVersion": number,
"removeThingType": boolean,
"thingTypeName": "string"
}
You can't change a thing's name. To change a thing's name, you must create a new thing, give it the
new name, and then delete the old thing.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
A list of thing attributes, a JSON string containing name-value pairs. For example:
{\"attributes\":{\"name1\":\"value2\"}}
Required: No
716
AWS IoT API Reference
UpdateThing
The expected version of the thing record in the registry. If the version of the record in the registry
does not match the expected version specified in the request, the UpdateThing request is rejected
with a VersionConflictException.
Type: Long
Required: No
removeThingType (p. 716)
Type: Boolean
Required: No
thingTypeName (p. 716)
Type: String
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
717
AWS IoT API Reference
UpdateThing
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
718
AWS IoT API Reference
UpdateThingGroup
UpdateThingGroup
Service: AWS IoT
Request Syntax
PATCH /thing-groups/thingGroupName HTTP/1.1
Content-type: application/json
{
"expectedVersion": number,
"thingGroupProperties": {
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"thingGroupDescription": "string"
}
}
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
The expected version of the thing group. If this does not match the version of the thing group being
updated, the update will fail.
Type: Long
Required: No
thingGroupProperties (p. 719)
Required: Yes
719
AWS IoT API Reference
UpdateThingGroup
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"version": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Long
Errors
InternalFailureException
An exception thrown when the version of an entity specified with the expectedVersion parameter
does not match the latest version in the system.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
720
AWS IoT API Reference
UpdateThingGroup
721
AWS IoT API Reference
UpdateThingGroupsForThing
UpdateThingGroupsForThing
Service: AWS IoT
Request Syntax
PUT /thing-groups/updateThingGroupsForThing HTTP/1.1
Content-type: application/json
{
"overrideDynamicGroups": boolean,
"thingGroupsToAdd": [ "string" ],
"thingGroupsToRemove": [ "string" ],
"thingName": "string"
}
Request Body
The request accepts the following data in JSON format.
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
thingGroupsToAdd (p. 722)
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingGroupsToRemove (p. 722)
Pattern: [a-zA-Z0-9:_-]+
Required: No
722
AWS IoT API Reference
UpdateThingGroupsForThing
Type: String
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
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
723
AWS IoT API Reference
UpdateThingGroupsForThing
724
AWS IoT API Reference
UpdateTopicRuleDestination
UpdateTopicRuleDestination
Service: AWS IoT
Updates a topic rule destination. You use this to change the status, endpoint URL, or confirmation URL of
the destination.
Request Syntax
PATCH /destinations HTTP/1.1
Content-type: application/json
{
"arn": "string",
"status": "string"
}
Request Body
The request accepts the following data in JSON format.
Type: String
Required: Yes
status (p. 725)
A topic rule destination was created but has not been confirmed. You can set
status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling
UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your
confirmation endpoint.
ENABLED
Confirmation was completed, and traffic to this destination is allowed. You can set status to
DISABLED by calling UpdateTopicRuleDestination.
DISABLED
Confirmation was completed, and traffic to this destination is not allowed. You can set status
to ENABLED by calling UpdateTopicRuleDestination.
ERROR
Confirmation could not be completed, for example if the confirmation timed out. You can call
GetTopicRuleDestination for details about the error. You can set status to IN_PROGRESS
by calling UpdateTopicRuleDestination. Calling UpdateTopicRuleDestination causes
a new confirmation challenge to be sent to your confirmation endpoint.
725
AWS IoT API Reference
UpdateTopicRuleDestination
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
ConflictingResourceUpdateException
A conflicting resource update exception. This exception is thrown when two pending updates cause a
conflict.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
726
AWS IoT API Reference
UpdateTopicRuleDestination
727
AWS IoT API Reference
ValidateSecurityProfileBehaviors
ValidateSecurityProfileBehaviors
Service: AWS IoT
Request Syntax
POST /security-profile-behaviors/validate HTTP/1.1
Content-type: application/json
{
"behaviors": [
{
"criteria": {
"comparisonOperator": "string",
"consecutiveDatapointsToAlarm": number,
"consecutiveDatapointsToClear": number,
"durationSeconds": number,
"mlDetectionConfig": {
"confidenceLevel": "string"
},
"statisticalThreshold": {
"statistic": "string"
},
"value": {
"cidrs": [ "string" ],
"count": number,
"number": number,
"numbers": [ number ],
"ports": [ number ],
"strings": [ "string" ]
}
},
"exportMetric": boolean,
"metric": "string",
"metricDimension": {
"dimensionName": "string",
"operator": "string"
},
"name": "string",
"suppressAlerts": boolean
}
]
}
Request Body
The request accepts the following data in JSON format.
Specifies the behaviors that, when violated by a device (thing), cause an alert.
728
AWS IoT API Reference
ValidateSecurityProfileBehaviors
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"valid": boolean,
"validationErrors": [
{
"errorMessage": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Boolean
validationErrors (p. 729)
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
729
AWS IoT API Reference
AWS IoT data
730
AWS IoT API Reference
DeleteThingShadow
DeleteThingShadow
Service: AWS IoT data
For more information, see DeleteThingShadow in the AWS IoT Developer Guide.
Request Syntax
DELETE /things/thingName/shadow?name=shadowName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
thingName (p. 731)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
payload
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
731
AWS IoT API Reference
DeleteThingShadow
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
732
AWS IoT API Reference
DeleteThingShadow
733
AWS IoT API Reference
GetRetainedMessage
GetRetainedMessage
Service: AWS IoT data
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.
For more information about messaging costs, see AWS IoT Core pricing - Messaging.
Request Syntax
GET /retainedMessage/topic HTTP/1.1
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"lastModifiedTime": number,
"payload": blob,
"qos": number,
"topic": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The Epoch date and time, in milliseconds, when the retained message was stored by AWS IoT.
Type: Long
payload (p. 734)
734
AWS IoT API Reference
GetRetainedMessage
The quality of service (QoS) level used to publish the retained message.
Type: Integer
Type: String
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
735
AWS IoT API Reference
GetRetainedMessage
736
AWS IoT API Reference
GetThingShadow
GetThingShadow
Service: AWS IoT data
For more information, see GetThingShadow in the AWS IoT Developer Guide.
Request Syntax
GET /things/thingName/shadow?name=shadowName HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
thingName (p. 737)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
payload
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
737
AWS IoT API Reference
GetThingShadow
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
738
AWS IoT API Reference
GetThingShadow
739
AWS IoT API Reference
ListNamedShadowsForThing
ListNamedShadowsForThing
Service: AWS IoT data
Request Syntax
GET /api/things/shadow/ListNamedShadowsForThing/thingName?
nextToken=nextToken&pageSize=pageSize HTTP/1.1
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"results": [ "string" ],
"timestamp": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
740
AWS IoT API Reference
ListNamedShadowsForThing
The token to use to get the next set of results, or null if there are no additional results.
Type: String
results (p. 740)
Pattern: [a-zA-Z0-9:_-]+
timestamp (p. 740)
The Epoch date and time the response was generated by AWS IoT.
Type: Long
Errors
InternalFailureException
741
AWS IoT API Reference
ListNamedShadowsForThing
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
742
AWS IoT API Reference
ListRetainedMessages
ListRetainedMessages
Service: AWS IoT data
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.
For more information about messaging costs, see AWS IoT Core pricing - Messaging.
Request Syntax
GET /retainedMessage?maxResults=maxResults&nextToken=nextToken HTTP/1.1
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"retainedTopics": [
{
"lastModifiedTime": number,
"payloadSize": number,
"qos": number,
"topic": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
743
AWS IoT API Reference
ListRetainedMessages
The token for the next set of results, or null if there are no additional results.
Type: String
retainedTopics (p. 743)
A summary list the account's retained messages. The information returned doesn't include the
message payloads of the retained messages.
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
744
AWS IoT API Reference
ListRetainedMessages
745
AWS IoT API Reference
Publish
Publish
Service: AWS IoT data
For more information about MQTT messages, see MQTT Protocol in the AWS IoT Developer Guide.
For more information about messaging costs, see AWS IoT Core pricing - Messaging.
Request Syntax
POST /topics/topic?
contentType=contentType&messageExpiry=messageExpiry&qos=qos&responseTopic=responseTopic&retain=retain
HTTP/1.1
x-amz-mqtt5-user-properties: userProperties
x-amz-mqtt5-payload-format-indicator: payloadFormatIndicator
x-amz-mqtt5-correlation-data: correlationData
payload
A UTF-8 encoded string that describes the content of the publishing message.
correlationData (p. 746)
The base64-encoded binary data used by the sender of the request message to identify which
request the response message is for when it's received. correlationData is an HTTP header value
in the API.
messageExpiry (p. 746)
A user-defined integer value that represents the message expiry interval in seconds. If absent, the
message doesn't expire. For more information about the limits of messageExpiry, see AWS IoT
Core message broker and protocol limits and quotas from the AWS Reference Guide.
payloadFormatIndicator (p. 746)
An Enum string value that indicates whether the payload is formatted as UTF-8.
payloadFormatIndicator is an HTTP header value in the API.
A UTF-8 encoded string that's used as the topic name for a response message. The response topic is
used to describe the topic which the receiver should publish to as part of the request-response flow.
The topic must not contain wildcard characters.
746
AWS IoT API Reference
Publish
A Boolean value that determines whether to set the RETAIN flag when the message is published.
Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.
Required: Yes
userProperties (p. 746)
A JSON string that contains an array of JSON objects. If you don’t use AWS SDK or AWS CLI,
you must encode the JSON string to base64 format before adding it to the HTTP header.
userProperties is an HTTP header value in the API.
The following example userProperties parameter is a JSON string which represents two User
Properties. Note that it needs to be base64-encoded:
Request Body
The request accepts the following binary data.
The message body. MQTT accepts text, binary, and empty (null) message payloads.
Publishing an empty (null) payload with retain = true deletes the retained message identified by
topic from AWS IoT Core.
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
747
AWS IoT API Reference
Publish
MethodNotAllowedException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
748
AWS IoT API Reference
UpdateThingShadow
UpdateThingShadow
Service: AWS IoT data
For more information, see UpdateThingShadow in the AWS IoT Developer Guide.
Request Syntax
POST /things/thingName/shadow?name=shadowName HTTP/1.1
payload
Pattern: [a-zA-Z0-9:_-]+
thingName (p. 749)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following binary data.
Required: Yes
Response Syntax
HTTP/1.1 200
payload
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
749
AWS IoT API Reference
UpdateThingShadow
Errors
ConflictException
The specified version does not match the version of the document.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
750
AWS IoT API Reference
AWS IoT jobs data
751
AWS IoT API Reference
DescribeJobExecution
DescribeJobExecution
Service: AWS IoT jobs data
Request Syntax
GET /things/thingName/jobs/jobId?
executionNumber=executionNumber&includeJobDocument=includeJobDocument&namespaceId=namespaceId
HTTP/1.1
Optional. A number that identifies a particular job execution on a particular device. If not specified,
the latest job execution is returned.
includeJobDocument (p. 752)
Optional. Unless set to false, the response contains the job document. The default is true.
jobId (p. 752)
Pattern: [a-zA-Z0-9_-]+|^\$next
Required: Yes
namespaceId (p. 752)
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.
Pattern: [a-zA-Z0-9_-]+
thingName (p. 752)
The thing name associated with the device the job execution is running on.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
752
AWS IoT API Reference
DescribeJobExecution
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"execution": {
"approximateSecondsBeforeTimedOut": number,
"executionNumber": number,
"jobDocument": "string",
"jobId": "string",
"lastUpdatedAt": number,
"queuedAt": number,
"startedAt": number,
"status": "string",
"statusDetails": {
"string" : "string"
},
"thingName": "string",
"versionNumber": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
CertificateValidationException
753
AWS IoT API Reference
DescribeJobExecution
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
754
AWS IoT API Reference
GetPendingJobExecutions
GetPendingJobExecutions
Service: AWS IoT jobs data
Gets the list of all jobs for a thing that are not in a terminal status.
Request Syntax
GET /things/thingName/jobs?namespaceId=namespaceId HTTP/1.1
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.
Pattern: [a-zA-Z0-9_-]+
thingName (p. 755)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"inProgressJobs": [
{
"executionNumber": number,
"jobId": "string",
"lastUpdatedAt": number,
"queuedAt": number,
"startedAt": number,
"versionNumber": number
755
AWS IoT API Reference
GetPendingJobExecutions
}
],
"queuedJobs": [
{
"executionNumber": number,
"jobId": "string",
"lastUpdatedAt": number,
"queuedAt": number,
"startedAt": number,
"versionNumber": number
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
CertificateValidationException
756
AWS IoT API Reference
GetPendingJobExecutions
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
757
AWS IoT API Reference
StartNextPendingJobExecution
StartNextPendingJobExecution
Service: AWS IoT jobs data
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Request Syntax
PUT /things/thingName/jobs/$next?namespaceId=namespaceId HTTP/1.1
Content-type: application/json
{
"statusDetails": {
"string" : "string"
},
"stepTimeoutInMinutes": number
}
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.
Pattern: [a-zA-Z0-9_-]+
thingName (p. 758)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Request Body
The request accepts the following data in JSON format.
A collection of name/value pairs that describe the status of the job execution. If not specified, the
statusDetails are unchanged.
The maximum length of the value in the name/value pair is 1,024 characters.
758
AWS IoT API Reference
StartNextPendingJobExecution
Required: No
stepTimeoutInMinutes (p. 758)
Specifies the amount of time this device has to finish execution of this job. If the job execution
status is not set to a terminal state before this timer expires, or before the timer is reset (by calling
UpdateJobExecution, setting the status to IN_PROGRESS, and specifying a new timeout value in
field stepTimeoutInMinutes) the job execution status will be automatically set to TIMED_OUT.
Note that setting the step timeout has no effect on the in progress timeout that may have been
specified when the job was created (CreateJob using field timeoutConfig).
Valid values for this parameter range from 1 to 10080 (1 minute to 7 days).
Type: Long
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"execution": {
"approximateSecondsBeforeTimedOut": number,
"executionNumber": number,
"jobDocument": "string",
"jobId": "string",
"lastUpdatedAt": number,
"queuedAt": number,
"startedAt": number,
"status": "string",
"statusDetails": {
"string" : "string"
},
"thingName": "string",
"versionNumber": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A JobExecution object.
759
AWS IoT API Reference
StartNextPendingJobExecution
Errors
CertificateValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
760
AWS IoT API Reference
UpdateJobExecution
UpdateJobExecution
Service: AWS IoT jobs data
Request Syntax
POST /things/thingName/jobs/jobId?namespaceId=namespaceId HTTP/1.1
Content-type: application/json
{
"executionNumber": number,
"expectedVersion": number,
"includeJobDocument": boolean,
"includeJobExecutionState": boolean,
"status": "string",
"statusDetails": {
"string" : "string"
},
"stepTimeoutInMinutes": number
}
Pattern: [a-zA-Z0-9_-]+
Required: Yes
namespaceId (p. 761)
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.
Pattern: [a-zA-Z0-9_-]+
thingName (p. 761)
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
761
AWS IoT API Reference
UpdateJobExecution
Request Body
The request accepts the following data in JSON format.
Type: Long
Required: No
expectedVersion (p. 761)
Optional. The expected current version of the job execution. Each time you update the job execution,
its version is incremented. If the version of the job execution stored in Jobs does not match,
the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the
current job execution status data is returned. (This makes it unnecessary to perform a separate
DescribeJobExecution request in order to obtain the job execution status data.)
Type: Long
Required: No
includeJobDocument (p. 761)
Optional. When set to true, the response contains the job document. The default is false.
Type: Boolean
Required: No
includeJobExecutionState (p. 761)
Optional. When included and set to true, the response contains the JobExecutionState data. The
default is false.
Type: Boolean
Required: No
status (p. 761)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be
specified on every update.
Type: String
Required: Yes
statusDetails (p. 761)
Optional. A collection of name/value pairs that describe the status of the job execution. If not
specified, the statusDetails are unchanged.
The maximum length of the value in the name/value pair is 1,024 characters.
762
AWS IoT API Reference
UpdateJobExecution
Required: No
stepTimeoutInMinutes (p. 761)
Specifies the amount of time this device has to finish execution of this job. If the job execution status
is not set to a terminal state before this timer expires, or before the timer is reset (by again calling
UpdateJobExecution, setting the status to IN_PROGRESS, and specifying a new timeout value
in this field) the job execution status will be automatically set to TIMED_OUT. Note that setting or
resetting the step timeout has no effect on the in progress timeout that may have been specified
when the job was created (CreateJob using field timeoutConfig).
Valid values for this parameter range from 1 to 10080 (1 minute to 7 days). A value of -1 is also valid
and will cancel the current step timer (created by an earlier use of UpdateJobExecutionRequest).
Type: Long
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"executionState": {
"status": "string",
"statusDetails": {
"string" : "string"
},
"versionNumber": number
},
"jobDocument": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
A JobExecutionState object.
Type: String
763
AWS IoT API Reference
AWS IoT Core Device Advisor
Errors
CertificateValidationException
An update attempted to change the job execution to a state that is invalid because of the job
execution's current state (for example, an attempt to change a request in state SUCCESS to state
IN_PROGRESS). In this case, the body of the error message also contains the executionState field.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
764
AWS IoT API Reference
AWS IoT Core Device Advisor
765
AWS IoT API Reference
CreateSuiteDefinition
CreateSuiteDefinition
Service: AWS IoT Core Device Advisor
Request Syntax
POST /suiteDefinitions HTTP/1.1
Content-type: application/json
{
"suiteDefinitionConfiguration": {
"devicePermissionRoleArn": "string",
"devices": [
{
"certificateArn": "string",
"deviceRoleArn": "string",
"thingArn": "string"
}
],
"intendedForQualification": boolean,
"isLongDurationTest": boolean,
"protocol": "string",
"rootGroup": "string",
"suiteDefinitionName": "string"
},
"tags": {
"string" : "string"
}
}
Request Body
The request accepts the following data in JSON format.
Required: Yes
tags (p. 766)
766
AWS IoT API Reference
CreateSuiteDefinition
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"createdAt": number,
"suiteDefinitionArn": "string",
"suiteDefinitionId": "string",
"suiteDefinitionName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
suiteDefinitionArn (p. 767)
Type: String
Type: String
The suite definition name of the test suite. This is a required parameter.
Type: String
Errors
InternalServerException
767
AWS IoT API Reference
CreateSuiteDefinition
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
768
AWS IoT API Reference
DeleteSuiteDefinition
DeleteSuiteDefinition
Service: AWS IoT Core Device Advisor
Request Syntax
DELETE /suiteDefinitions/suiteDefinitionId HTTP/1.1
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
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
769
AWS IoT API Reference
DeleteSuiteDefinition
770
AWS IoT API Reference
GetEndpoint
GetEndpoint
Service: AWS IoT Core Device Advisor
Request Syntax
GET /endpoint?
authenticationMethod=authenticationMethod&certificateArn=certificateArn&deviceRoleArn=deviceRoleArn&thi
HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"endpoint": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
771
AWS IoT API Reference
GetEndpoint
Type: String
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
772
AWS IoT API Reference
GetSuiteDefinition
GetSuiteDefinition
Service: AWS IoT Core Device Advisor
Request Syntax
GET /suiteDefinitions/suiteDefinitionId?suiteDefinitionVersion=suiteDefinitionVersion
HTTP/1.1
Required: Yes
suiteDefinitionVersion (p. 773)
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"createdAt": number,
"lastModifiedAt": number,
"latestVersion": "string",
"suiteDefinitionArn": "string",
"suiteDefinitionConfiguration": {
"devicePermissionRoleArn": "string",
"devices": [
{
"certificateArn": "string",
"deviceRoleArn": "string",
"thingArn": "string"
}
],
"intendedForQualification": boolean,
"isLongDurationTest": boolean,
"protocol": "string",
"rootGroup": "string",
"suiteDefinitionName": "string"
773
AWS IoT API Reference
GetSuiteDefinition
},
"suiteDefinitionId": "string",
"suiteDefinitionVersion": "string",
"tags": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Date (in Unix epoch time) when the suite definition was created.
Type: Timestamp
lastModifiedAt (p. 773)
Date (in Unix epoch time) when the suite definition was last modified.
Type: Timestamp
latestVersion (p. 773)
Type: String
Type: String
Type: String
Type: String
774
AWS IoT API Reference
GetSuiteDefinition
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
775
AWS IoT API Reference
GetSuiteRun
GetSuiteRun
Service: AWS IoT Core Device Advisor
Request Syntax
GET /suiteDefinitions/suiteDefinitionId/suiteRuns/suiteRunId HTTP/1.1
Required: Yes
suiteRunId (p. 776)
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"endTime": number,
"errorReason": "string",
"startTime": number,
"status": "string",
"suiteDefinitionId": "string",
"suiteDefinitionVersion": "string",
"suiteRunArn": "string",
"suiteRunConfiguration": {
"parallelRun": boolean,
"primaryDevice": {
"certificateArn": "string",
"deviceRoleArn": "string",
"thingArn": "string"
},
"selectedTestList": [ "string" ]
},
776
AWS IoT API Reference
GetSuiteRun
"suiteRunId": "string",
"tags": {
"string" : "string"
},
"testResult": {
"groups": [
{
"groupId": "string",
"groupName": "string",
"tests": [
{
"endTime": number,
"failure": "string",
"logUrl": "string",
"startTime": number,
"status": "string",
"testCaseDefinitionId": "string",
"testCaseDefinitionName": "string",
"testCaseRunId": "string",
"testScenarios": [
{
"failure": "string",
"status": "string",
"systemMessage": "string",
"testCaseScenarioId": "string",
"testCaseScenarioType": "string"
}
],
"warnings": "string"
}
]
}
]
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Date (in Unix epoch time) when the test suite run ended.
Type: Timestamp
errorReason (p. 776)
Type: String
startTime (p. 776)
Date (in Unix epoch time) when the test suite run started.
Type: Timestamp
status (p. 776)
Type: String
777
AWS IoT API Reference
GetSuiteRun
Type: String
Type: String
Type: String
Type: String
Errors
InternalServerException
778
AWS IoT API Reference
GetSuiteRun
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
779
AWS IoT API Reference
GetSuiteRunReport
GetSuiteRunReport
Service: AWS IoT Core Device Advisor
Gets a report download link for a successful Device Advisor qualifying test suite run.
Request Syntax
GET /suiteDefinitions/suiteDefinitionId/suiteRuns/suiteRunId/report HTTP/1.1
Required: Yes
suiteRunId (p. 780)
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"qualificationReportDownloadUrl": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
780
AWS IoT API Reference
GetSuiteRunReport
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
781
AWS IoT API Reference
ListSuiteDefinitions
ListSuiteDefinitions
Service: AWS IoT Core Device Advisor
Request Syntax
GET /suiteDefinitions?maxResults=maxResults&nextToken=nextToken HTTP/1.1
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"suiteDefinitionInformationList": [
{
"createdAt": number,
"defaultDevices": [
{
"certificateArn": "string",
"deviceRoleArn": "string",
"thingArn": "string"
}
],
"intendedForQualification": boolean,
"isLongDurationTest": boolean,
"protocol": "string",
"suiteDefinitionId": "string",
"suiteDefinitionName": "string"
}
]
}
782
AWS IoT API Reference
ListSuiteDefinitions
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
An array of objects that provide summaries of information about the suite definitions in the list.
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
783
AWS IoT API Reference
ListSuiteRuns
ListSuiteRuns
Service: AWS IoT Core Device Advisor
Lists runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a
specific version of the test suite.
Request Syntax
GET /suiteRuns?
maxResults=maxResults&nextToken=nextToken&suiteDefinitionId=suiteDefinitionId&suiteDefinitionVersion=su
HTTP/1.1
Lists the test suite runs of the specified test suite based on suite definition ID.
Must be passed along with suiteDefinitionId. Lists the test suite runs of the specified test suite
based on suite definition version.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"suiteRunsList": [
{
"createdAt": number,
"endAt": number,
"failed": number,
784
AWS IoT API Reference
ListSuiteRuns
"passed": number,
"startedAt": number,
"status": "string",
"suiteDefinitionId": "string",
"suiteDefinitionName": "string",
"suiteDefinitionVersion": "string",
"suiteRunId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: String
An array of objects that provide summaries of information about the suite runs in the list.
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
785
AWS IoT API Reference
ListSuiteRuns
786
AWS IoT API Reference
ListTagsForResource
ListTagsForResource
Service: AWS IoT Core Device Advisor
Request Syntax
GET /tags/resourceArn HTTP/1.1
The resource ARN of the IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun
ARN.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"tags": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
787
AWS IoT API Reference
ListTagsForResource
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
788
AWS IoT API Reference
StartSuiteRun
StartSuiteRun
Service: AWS IoT Core Device Advisor
Request Syntax
POST /suiteDefinitions/suiteDefinitionId/suiteRuns HTTP/1.1
Content-type: application/json
{
"suiteDefinitionVersion": "string",
"suiteRunConfiguration": {
"parallelRun": boolean,
"primaryDevice": {
"certificateArn": "string",
"deviceRoleArn": "string",
"thingArn": "string"
},
"selectedTestList": [ "string" ]
},
"tags": {
"string" : "string"
}
}
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Required: No
suiteRunConfiguration (p. 789)
789
AWS IoT API Reference
StartSuiteRun
Required: Yes
tags (p. 789)
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"createdAt": number,
"endpoint": "string",
"suiteRunArn": "string",
"suiteRunId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Starts a Device Advisor test suite run based on suite create time.
Type: Timestamp
endpoint (p. 790)
Type: String
Type: String
Type: String
790
AWS IoT API Reference
StartSuiteRun
Errors
ConflictException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
791
AWS IoT API Reference
StopSuiteRun
StopSuiteRun
Service: AWS IoT Core Device Advisor
Request Syntax
POST /suiteDefinitions/suiteDefinitionId/suiteRuns/suiteRunId/stop HTTP/1.1
Required: Yes
suiteRunId (p. 792)
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
InternalServerException
792
AWS IoT API Reference
StopSuiteRun
ValidationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
793
AWS IoT API Reference
TagResource
TagResource
Service: AWS IoT Core Device Advisor
Request Syntax
POST /tags/resourceArn HTTP/1.1
Content-type: application/json
{
"tags": {
"string" : "string"
}
}
The resource ARN of an IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun
ARN.
Required: Yes
Request Body
The request accepts the following data in JSON format.
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.
794
AWS IoT API Reference
TagResource
Errors
InternalServerException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
795
AWS IoT API Reference
UntagResource
UntagResource
Service: AWS IoT Core Device Advisor
Request Syntax
DELETE /tags/resourceArn?tagKeys=tagKeys HTTP/1.1
The resource ARN of an IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun
ARN.
Required: Yes
tagKeys (p. 796)
List of tag keys to remove from the IoT Device Advisor resource.
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
InternalServerException
796
AWS IoT API Reference
UntagResource
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
797
AWS IoT API Reference
UpdateSuiteDefinition
UpdateSuiteDefinition
Service: AWS IoT Core Device Advisor
Request Syntax
PATCH /suiteDefinitions/suiteDefinitionId HTTP/1.1
Content-type: application/json
{
"suiteDefinitionConfiguration": {
"devicePermissionRoleArn": "string",
"devices": [
{
"certificateArn": "string",
"deviceRoleArn": "string",
"thingArn": "string"
}
],
"intendedForQualification": boolean,
"isLongDurationTest": boolean,
"protocol": "string",
"rootGroup": "string",
"suiteDefinitionName": "string"
}
}
Required: Yes
Request Body
The request accepts the following data in JSON format.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
798
AWS IoT API Reference
UpdateSuiteDefinition
{
"createdAt": number,
"lastUpdatedAt": number,
"suiteDefinitionArn": "string",
"suiteDefinitionId": "string",
"suiteDefinitionName": "string",
"suiteDefinitionVersion": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Type: Timestamp
lastUpdatedAt (p. 798)
Type: Timestamp
suiteDefinitionArn (p. 798)
Type: String
Type: String
Type: String
Type: String
Errors
InternalServerException
799
AWS IoT API Reference
AWS IoT Fleet Hub
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
800
AWS IoT API Reference
CreateApplication
CreateApplication
Service: AWS IoT Fleet Hub
Creates a Fleet Hub for AWS IoT Device Management web application.
Request Syntax
POST /applications HTTP/1.1
Content-type: application/json
{
"applicationDescription": "string",
"applicationName": "string",
"clientToken": "string",
"roleArn": "string",
"tags": {
"string" : "string"
}
}
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: ^[ -~]*$
Required: No
applicationName (p. 801)
Type: String
Pattern: ^[ -~]*$
Required: Yes
clientToken (p. 801)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Type: String
801
AWS IoT API Reference
CreateApplication
Pattern: ^[a-zA-Z0-9-_]+$
Required: No
roleArn (p. 801)
The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
Note
The name of the role must be in the form AWSIotFleetHub_random_string .
Type: String
Pattern: ^arn:[!-~]+$
Required: Yes
tags (p. 801)
A set of key/value pairs that you can use to manage the web application resource.
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"applicationArn": "string",
"applicationId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
Type: String
Pattern: ^arn:[!-~]+$
802
AWS IoT API Reference
CreateApplication
Type: String
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
803
AWS IoT API Reference
DeleteApplication
DeleteApplication
Service: AWS IoT Fleet Hub
Deletes a Fleet Hub for AWS IoT Device Management web application.
Request Syntax
DELETE /applications/applicationId?clientToken=clientToken HTTP/1.1
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Required: Yes
clientToken (p. 804)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Pattern: ^[a-zA-Z0-9-_]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Errors
InternalFailureException
804
AWS IoT API Reference
DeleteApplication
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
805
AWS IoT API Reference
DescribeApplication
DescribeApplication
Service: AWS IoT Fleet Hub
Gets information about a Fleet Hub for AWS IoT Device Management web application.
Request Syntax
GET /applications/applicationId HTTP/1.1
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"applicationArn": "string",
"applicationCreationDate": number,
"applicationDescription": "string",
"applicationId": "string",
"applicationLastUpdateDate": number,
"applicationName": "string",
"applicationState": "string",
"applicationUrl": "string",
"errorMessage": "string",
"roleArn": "string",
"ssoClientId": "string",
"tags": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
806
AWS IoT API Reference
DescribeApplication
Type: String
Pattern: ^arn:[!-~]+$
applicationCreationDate (p. 806)
The date (in Unix epoch time) when the application was created.
Type: Long
applicationDescription (p. 806)
Type: String
Pattern: ^[ -~]*$
applicationId (p. 806)
Type: String
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
applicationLastUpdateDate (p. 806)
The date (in Unix epoch time) when the application was last updated.
Type: Long
applicationName (p. 806)
Type: String
Pattern: ^[ -~]*$
applicationState (p. 806)
Type: String
Type: String
807
AWS IoT API Reference
DescribeApplication
Pattern: ^https\://\S+$
errorMessage (p. 806)
A message that explains any failures included in the applicationState response field. This
message explains failures in the CreateApplication and DeleteApplication actions.
Type: String
roleArn (p. 806)
The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
Type: String
Pattern: ^arn:[!-~]+$
ssoClientId (p. 806)
The Id of the single sign-on client that you use to authenticate and authorize users on the web
application.
Type: String
tags (p. 806)
A set of key/value pairs that you can use to manage the web application resource.
Errors
InternalFailureException
808
AWS IoT API Reference
DescribeApplication
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
809
AWS IoT API Reference
ListApplications
ListApplications
Service: AWS IoT Fleet Hub
Gets a list of Fleet Hub for AWS IoT Device Management web applications for the current account.
Request Syntax
GET /applications?nextToken=nextToken HTTP/1.1
Pattern: ^[A-Za-z0-9+/=]+$
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"applicationSummaries": [
{
"applicationCreationDate": number,
"applicationDescription": "string",
"applicationId": "string",
"applicationLastUpdateDate": number,
"applicationName": "string",
"applicationState": "string",
"applicationUrl": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
An array of objects that provide summaries of information about the web applications in the list.
810
AWS IoT API Reference
ListApplications
Type: String
Pattern: ^[A-Za-z0-9+/=]+$
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
811
AWS IoT API Reference
ListTagsForResource
ListTagsForResource
Service: AWS IoT Fleet Hub
Request Syntax
GET /tags/resourceArn HTTP/1.1
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"tags": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
812
AWS IoT API Reference
ListTagsForResource
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
813
AWS IoT API Reference
TagResource
TagResource
Service: AWS IoT Fleet Hub
Adds to or modifies the tags of the specified resource. Tags are metadata which can be used to manage a
resource.
Request Syntax
POST /tags/resourceArn HTTP/1.1
Content-type: application/json
{
"tags": {
"string" : "string"
}
}
Required: Yes
Request Body
The request accepts the following data in JSON format.
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.
814
AWS IoT API Reference
TagResource
Errors
InternalFailureException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
815
AWS IoT API Reference
UntagResource
UntagResource
Service: AWS IoT Fleet Hub
Request Syntax
DELETE /tags/resourceArn?tagKeys=tagKeys HTTP/1.1
Required: Yes
tagKeys (p. 816)
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
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
816
AWS IoT API Reference
UntagResource
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
817
AWS IoT API Reference
UpdateApplication
UpdateApplication
Service: AWS IoT Fleet Hub
Updates information about a Fleet Hub for AWS IoT Device Management web application.
Request Syntax
PATCH /applications/applicationId HTTP/1.1
Content-type: application/json
{
"applicationDescription": "string",
"applicationName": "string",
"clientToken": "string"
}
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Required: Yes
Request Body
The request accepts the following data in JSON format.
Type: String
Pattern: ^[ -~]*$
Required: No
applicationName (p. 818)
Type: String
Pattern: ^[ -~]*$
Required: No
818
AWS IoT API Reference
UpdateApplication
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
Don't reuse this client token if a new idempotent request is required.
Type: String
Pattern: ^[a-zA-Z0-9-_]+$
Required: No
Response Syntax
HTTP/1.1 202
Response Elements
If the action is successful, the service sends back an HTTP 202 response with an empty HTTP body.
Errors
ConflictException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
819
AWS IoT API Reference
AWS IoT Secure Tunneling
820
AWS IoT API Reference
CloseTunnel
CloseTunnel
Service: AWS IoT Secure Tunneling
Closes a tunnel identified by the unique tunnel id. When a CloseTunnel request is received, we close
the WebSocket connections between the client and proxy server so no data can be transmitted.
Request Syntax
{
"delete": boolean,
"tunnelId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
When set to true, AWS IoT Secure Tunneling deletes the tunnel data immediately.
Type: Boolean
Required: No
tunnelId (p. 821)
Type: String
Pattern: [a-zA-Z0-9_\-+=:]{1,128}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
821
AWS IoT API Reference
CloseTunnel
822
AWS IoT API Reference
DescribeTunnel
DescribeTunnel
Service: AWS IoT Secure Tunneling
Request Syntax
{
"tunnelId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
Type: String
Pattern: [a-zA-Z0-9_\-+=:]{1,128}
Required: Yes
Response Syntax
{
"tunnel": {
"createdAt": number,
"description": "string",
"destinationConfig": {
"services": [ "string" ],
"thingName": "string"
},
"destinationConnectionState": {
"lastUpdatedAt": number,
"status": "string"
},
"lastUpdatedAt": number,
"sourceConnectionState": {
"lastUpdatedAt": number,
"status": "string"
},
"status": "string",
"tags": [
{
"key": "string",
"value": "string"
}
],
"timeoutConfig": {
"maxLifetimeTimeoutMinutes": number
823
AWS IoT API Reference
DescribeTunnel
},
"tunnelArn": "string",
"tunnelId": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
824
AWS IoT API Reference
ListTagsForResource
ListTagsForResource
Service: AWS IoT Secure Tunneling
Request Syntax
{
"resourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
Type: String
Required: Yes
Response Syntax
{
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
825
AWS IoT API Reference
ListTagsForResource
Errors
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
826
AWS IoT API Reference
ListTunnels
ListTunnels
Service: AWS IoT Secure Tunneling
List all tunnels for an AWS account. Tunnels are listed by creation time in descending order, newer
tunnels will be listed before older tunnels.
Request Syntax
{
"maxResults": number,
"nextToken": "string",
"thingName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
Type: Integer
Required: No
nextToken (p. 827)
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
receive the first set of results.
Type: String
Pattern: [a-zA-Z0-9_=-]{1,4096}
Required: No
thingName (p. 827)
The name of the IoT thing associated with the destination device.
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
Response Syntax
{
827
AWS IoT API Reference
ListTunnels
"nextToken": "string",
"tunnelSummaries": [
{
"createdAt": number,
"description": "string",
"lastUpdatedAt": number,
"status": "string",
"tunnelArn": "string",
"tunnelId": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The token to use to get the next set of results, or null if there are no additional results.
Type: String
Pattern: [a-zA-Z0-9_=-]{1,4096}
tunnelSummaries (p. 827)
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
828
AWS IoT API Reference
OpenTunnel
OpenTunnel
Service: AWS IoT Secure Tunneling
Creates a new tunnel, and returns two client access tokens for clients to use to connect to the AWS IoT
Secure Tunneling proxy server.
Request Syntax
{
"description": "string",
"destinationConfig": {
"services": [ "string" ],
"thingName": "string"
},
"tags": [
{
"key": "string",
"value": "string"
}
],
"timeoutConfig": {
"maxLifetimeTimeoutMinutes": number
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
Type: String
Pattern: [^\p{C}]{1,2048}
Required: No
destinationConfig (p. 829)
Required: No
tags (p. 829)
Required: No
829
AWS IoT API Reference
OpenTunnel
Required: No
Response Syntax
{
"destinationAccessToken": "string",
"sourceAccessToken": "string",
"tunnelArn": "string",
"tunnelId": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The access token the destination local proxy uses to connect to AWS IoT Secure Tunneling.
Type: String
sourceAccessToken (p. 830)
The access token the source local proxy uses to connect to AWS IoT Secure Tunneling.
Type: String
tunnelArn (p. 830)
Type: String
Type: String
Pattern: [a-zA-Z0-9_\-+=:]{1,128}
Errors
LimitExceededException
830
AWS IoT API Reference
OpenTunnel
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
831
AWS IoT API Reference
RotateTunnelAccessToken
RotateTunnelAccessToken
Service: AWS IoT Secure Tunneling
Revokes the current client access token (CAT) and returns new CAT for clients to use when reconnecting
to secure tunneling to access the same tunnel.
Request Syntax
{
"clientMode": "string",
"destinationConfig": {
"services": [ "string" ],
"thingName": "string"
},
"tunnelId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
The mode of the client that will use the client token, which can be either the source or destination,
or both source and destination.
Type: String
Required: Yes
destinationConfig (p. 832)
Required: No
tunnelId (p. 832)
The tunnel for which you want to rotate the access tokens.
Type: String
Pattern: [a-zA-Z0-9_\-+=:]{1,128}
Required: Yes
832
AWS IoT API Reference
RotateTunnelAccessToken
Response Syntax
{
"destinationAccessToken": "string",
"sourceAccessToken": "string",
"tunnelArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The client access token that the destination local proxy uses to connect to AWS IoT Secure
Tunneling.
Type: String
sourceAccessToken (p. 833)
The client access token that the source local proxy uses to connect to AWS IoT Secure Tunneling.
Type: String
tunnelArn (p. 833)
Type: String
Errors
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
833
AWS IoT API Reference
RotateTunnelAccessToken
834
AWS IoT API Reference
TagResource
TagResource
Service: AWS IoT Secure Tunneling
A resource tag.
Request Syntax
{
"resourceArn": "string",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
Type: String
Required: Yes
tags (p. 835)
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
ResourceNotFoundException
835
AWS IoT API Reference
TagResource
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
836
AWS IoT API Reference
UntagResource
UntagResource
Service: AWS IoT Secure Tunneling
Request Syntax
{
"resourceArn": "string",
"tagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common
Parameters (p. 1160).
Type: String
Required: Yes
tagKeys (p. 837)
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
837
AWS IoT API Reference
UntagResource
838
AWS IoT API Reference
Data Types
The following data types are supported by AWS IoT:
839
AWS IoT API Reference
840
AWS IoT API Reference
841
AWS IoT API Reference
842
AWS IoT API Reference
The following data types are supported by AWS IoT jobs data:
The following data types are supported by AWS IoT Core Device Advisor:
843
AWS IoT API Reference
AWS IoT
The following data types are supported by AWS IoT Fleet Hub:
The following data types are supported by AWS IoT Secure Tunneling:
AWS IoT
The following data types are supported by AWS IoT:
844
AWS IoT API Reference
AWS IoT
845
AWS IoT API Reference
AWS IoT
846
AWS IoT API Reference
AWS IoT
847
AWS IoT API Reference
AWS IoT
848
AWS IoT API Reference
AWS IoT
849
AWS IoT API Reference
AbortConfig
AbortConfig
Service: AWS IoT
The criteria that determine when and how a job abort takes place.
Contents
criteriaList
The list of criteria that determine when and how to abort the job.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
850
AWS IoT API Reference
AbortCriteria
AbortCriteria
Service: AWS IoT
The criteria that determine when and how a job abort takes place.
Contents
action
Type: String
Required: Yes
failureType
The type of job execution failures that can initiate a job abort.
Type: String
Required: Yes
minNumberOfExecutedThings
The minimum number of things which must receive job execution notifications before the job can be
aborted.
Type: Integer
Required: Yes
thresholdPercentage
The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not
10.999).
Type: Double
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
851
AWS IoT API Reference
AbortCriteria
852
AWS IoT API Reference
Action
Action
Service: AWS IoT
Contents
cloudwatchAlarm
Required: No
cloudwatchLogs
Required: No
cloudwatchMetric
Required: No
dynamoDB
Required: No
dynamoDBv2
Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write
each attribute in an MQTT message payload into a separate DynamoDB column.
Required: No
elasticsearch
Required: No
firehose
853
AWS IoT API Reference
Action
Required: No
http
Required: No
iotAnalytics
Required: No
iotEvents
Required: No
iotSiteWise
Sends data from the MQTT message that triggered the rule to AWS IoT SiteWise asset properties.
Required: No
kafka
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed
Apache Kafka cluster.
Required: No
kinesis
Required: No
lambda
Required: No
location
The Amazon Location Service rule action sends device location updates from an MQTT message to
an Amazon Location tracker resource.
854
AWS IoT API Reference
Action
Required: No
openSearch
Required: No
republish
Required: No
s3
Required: No
salesforce
Required: No
sns
Required: No
sqs
Required: No
stepFunctions
Required: No
timestream
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon
Timestream table. For more information, see the Timestream topic rule action documentation.
Required: No
855
AWS IoT API Reference
Action
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
856
AWS IoT API Reference
ActiveViolation
ActiveViolation
Service: AWS IoT
Contents
behavior
Required: No
lastViolationTime
Type: Timestamp
Required: No
lastViolationValue
The value of the metric (the measurement) that caused the most recent violation.
Required: No
securityProfileName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingName
Type: String
Required: No
verificationState
Type: String
Required: No
verificationStateDescription
857
AWS IoT API Reference
ActiveViolation
Type: String
Pattern: [^\p{Cntrl}]*
Required: No
violationEventAdditionalInfo
Required: No
violationId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
violationStartTime
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
858
AWS IoT API Reference
AddThingsToThingGroupParams
AddThingsToThingGroupParams
Service: AWS IoT
Parameters used when defining a mitigation action that move a set of things to a thing group.
Contents
thingGroupNames
The list of groups to which you want to add the things that triggered the mitigation action. You can
add a thing to a maximum of 10 groups, but you can't add a thing to more than one group in the
same hierarchy.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
overrideDynamicGroups
Specifies if this mitigation action can move the things that triggered the mitigation action even if
they are part of one or more dynamic thing groups.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
859
AWS IoT API Reference
AggregationType
AggregationType
Service: AWS IoT
Contents
name
Type: String
Required: Yes
values
Pattern: [a-zA-Z0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
860
AWS IoT API Reference
AlertTarget
AlertTarget
Service: AWS IoT
A structure containing the alert target ARN and the role ARN.
Contents
alertTargetArn
The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
Type: String
Required: Yes
roleArn
The ARN of the role that grants permission to send alerts to the notification target.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
861
AWS IoT API Reference
Allowed
Allowed
Service: AWS IoT
Contents
policies
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
862
AWS IoT API Reference
AssetPropertyTimestamp
AssetPropertyTimestamp
Service: AWS IoT
Contents
timeInSeconds
A string that contains the time in seconds since epoch. Accepts substitution templates.
Type: String
Required: Yes
offsetInNanos
Optional. A string that contains the nanosecond time offset. Accepts substitution templates.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
863
AWS IoT API Reference
AssetPropertyValue
AssetPropertyValue
Service: AWS IoT
Contents
timestamp
Required: Yes
value
Required: Yes
quality
Optional. A string that describes the quality of the value. Accepts substitution templates. Must be
GOOD, BAD, or UNCERTAIN.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
864
AWS IoT API Reference
AssetPropertyVariant
AssetPropertyVariant
Service: AWS IoT
Contents
booleanValue
Optional. A string that contains the boolean value (true or false) of the value entry. Accepts
substitution templates.
Type: String
Required: No
doubleValue
Optional. A string that contains the double value of the value entry. Accepts substitution templates.
Type: String
Required: No
integerValue
Optional. A string that contains the integer value of the value entry. Accepts substitution templates.
Type: String
Required: No
stringValue
Optional. The string value of the value entry. Accepts substitution templates.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
865
AWS IoT API Reference
AttributePayload
AttributePayload
Service: AWS IoT
Contents
attributes
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
Required: No
merge
Specifies whether the list of attributes provided in the AttributePayload is merged with the
attributes stored in the registry, instead of overwriting them.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
866
AWS IoT API Reference
AuditCheckConfiguration
AuditCheckConfiguration
Service: AWS IoT
Which audit checks are enabled and disabled for this account.
Contents
enabled
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
867
AWS IoT API Reference
AuditCheckDetails
AuditCheckDetails
Service: AWS IoT
Contents
checkCompliant
Type: Boolean
Required: No
checkRunStatus
Type: String
Required: No
errorCode
The code of any error encountered when this check is performed during this audit. One of
"INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
Type: String
Required: No
message
The message associated with any error encountered when this check is performed during this audit.
Type: String
Required: No
nonCompliantResourcesCount
The number of resources that were found noncompliant during the check.
Type: Long
Required: No
suppressedNonCompliantResourcesCount
Describes how many of the non-compliant resources created during the evaluation of an audit check
were marked as suppressed.
Type: Long
Required: No
868
AWS IoT API Reference
AuditCheckDetails
totalResourcesCount
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
869
AWS IoT API Reference
AuditFinding
AuditFinding
Service: AWS IoT
Contents
checkName
Type: String
Required: No
findingId
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to
one or more sets of findings.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
findingTime
Type: Timestamp
Required: No
isSuppressed
Indicates whether the audit finding was suppressed or not during reporting.
Type: Boolean
Required: No
nonCompliantResource
The resource that was found to be noncompliant with the audit check.
Required: No
reasonForNonCompliance
Type: String
Required: No
reasonForNonComplianceCode
A code that indicates the reason that the resource was noncompliant.
Type: String
870
AWS IoT API Reference
AuditFinding
Required: No
relatedResources
Required: No
severity
Type: String
Required: No
taskId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
taskStartTime
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
871
AWS IoT API Reference
AuditMitigationActionExecutionMetadata
AuditMitigationActionExecutionMetadata
Service: AWS IoT
Contents
actionId
The unique identifier for the mitigation action being applied by the task.
Type: String
Required: No
actionName
The friendly name of the mitigation action being applied by the task.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
endTime
The date and time when the task was completed or canceled. Blank if the task is still running.
Type: Timestamp
Required: No
errorCode
If an error occurred, the code that indicates which type of error occurred.
Type: String
Required: No
findingId
The unique identifier for the findings to which the task and associated mitigation action are applied.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
message
Type: String
872
AWS IoT API Reference
AuditMitigationActionExecutionMetadata
Required: No
startTime
Type: Timestamp
Required: No
status
Type: String
Required: No
taskId
The unique identifier for the task that applies the mitigation action.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
873
AWS IoT API Reference
AuditMitigationActionsTaskMetadata
AuditMitigationActionsTaskMetadata
Service: AWS IoT
Contents
startTime
The time at which the audit mitigation actions task was started.
Type: Timestamp
Required: No
taskId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
taskStatus
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
874
AWS IoT API Reference
AuditMitigationActionsTaskTarget
AuditMitigationActionsTaskTarget
Service: AWS IoT
Used in MitigationActionParams, this information identifies the target findings to which the mitigation
actions are applied. Only one entry appears.
Contents
auditCheckToReasonCodeFilter
Specifies a filter in the form of an audit check and set of reason codes that identify the findings from
the audit to which the audit mitigation actions task apply.
Required: No
auditTaskId
If the task will apply a mitigation action to findings from a specific audit, this value uniquely
identifies the audit.
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
findingIds
If the task will apply a mitigation action to one or more listed findings, this value uniquely identifies
those findings.
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
875
AWS IoT API Reference
AuditNotificationTarget
AuditNotificationTarget
Service: AWS IoT
Contents
enabled
Type: Boolean
Required: No
roleArn
The ARN of the role that grants permission to send notifications to the target.
Type: String
Required: No
targetArn
The ARN of the target (SNS topic) to which audit notifications are sent.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
876
AWS IoT API Reference
AuditSuppression
AuditSuppression
Service: AWS IoT
Contents
checkName
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfiguration to see the list of all checks, including those that are
enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)
Type: String
Required: Yes
resourceIdentifier
Required: Yes
description
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
expirationDate
The expiration date (epoch timestamp in seconds) that you want the suppression to adhere to.
Type: Timestamp
Required: No
suppressIndefinitely
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
877
AWS IoT API Reference
AuditSuppression
878
AWS IoT API Reference
AuditTaskMetadata
AuditTaskMetadata
Service: AWS IoT
Contents
taskId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
taskStatus
Type: String
Required: No
taskType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
879
AWS IoT API Reference
AuthInfo
AuthInfo
Service: AWS IoT
Contents
resources
The resources for which the principal is being authorized to perform the specified action.
Pattern: [\s\S]*
Required: Yes
actionType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
880
AWS IoT API Reference
AuthorizerConfig
AuthorizerConfig
Service: AWS IoT
Contents
allowAuthorizerOverride
A Boolean that specifies whether the domain configuration's authorization service can be
overridden.
Type: Boolean
Required: No
defaultAuthorizerName
Type: String
Pattern: [\w=,@-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
881
AWS IoT API Reference
AuthorizerDescription
AuthorizerDescription
Service: AWS IoT
Contents
authorizerArn
Type: String
Required: No
authorizerFunctionArn
Type: String
Pattern: [\s\S]*
Required: No
authorizerName
Type: String
Pattern: [\w=,@-]+
Required: No
creationDate
Type: Timestamp
Required: No
enableCachingForHttp
When true, the result from the authorizer’s Lambda function is cached for the time specified
in refreshAfterInSeconds. The cached result is used while the device reuses the same HTTP
connection.
Type: Boolean
Required: No
lastModifiedDate
Type: Timestamp
882
AWS IoT API Reference
AuthorizerDescription
Required: No
signingDisabled
Specifies whether AWS IoT validates the token signature in an authorization request.
Type: Boolean
Required: No
status
Type: String
Required: No
tokenKeyName
The key used to extract the token from the HTTP headers.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
tokenSigningPublicKeys
The public keys used to validate the token signature returned by your custom authentication service.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
883
AWS IoT API Reference
AuthorizerSummary
AuthorizerSummary
Service: AWS IoT
Contents
authorizerArn
Type: String
Required: No
authorizerName
Type: String
Pattern: [\w=,@-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
884
AWS IoT API Reference
AuthResult
AuthResult
Service: AWS IoT
Contents
allowed
Required: No
authDecision
The final authorization decision of this scenario. Multiple statements are taken into account when
determining the authorization decision. An explicit deny statement can override multiple allow
statements.
Type: String
Required: No
authInfo
Authorization information.
Required: No
denied
Required: No
missingContextValues
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
885
AWS IoT API Reference
AwsJobAbortConfig
AwsJobAbortConfig
Service: AWS IoT
The criteria that determine when and how a job abort takes place.
Contents
abortCriteriaList
The list of criteria that determine when and how to abort the job.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
886
AWS IoT API Reference
AwsJobAbortCriteria
AwsJobAbortCriteria
Service: AWS IoT
The criteria that determine when and how a job abort takes place.
Contents
action
Type: String
Required: Yes
failureType
The type of job execution failures that can initiate a job abort.
Type: String
Required: Yes
minNumberOfExecutedThings
The minimum number of things which must receive job execution notifications before the job can be
aborted.
Type: Integer
Required: Yes
thresholdPercentage
The minimum percentage of job execution failures that must occur to initiate the job abort.
AWS IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not
10.999).
Type: Double
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
887
AWS IoT API Reference
AwsJobAbortCriteria
888
AWS IoT API Reference
AwsJobExecutionsRolloutConfig
AwsJobExecutionsRolloutConfig
Service: AWS IoT
Contents
exponentialRate
The rate of increase for a job rollout. This parameter allows you to define an exponential rate
increase for a job rollout.
Required: No
maximumPerMinute
The maximum number of OTA update job executions started per minute.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
889
AWS IoT API Reference
AwsJobExponentialRolloutRate
AwsJobExponentialRolloutRate
Service: AWS IoT
The rate of increase for a job rollout. This parameter allows you to define an exponential rate increase
for a job rollout.
Contents
baseRatePerMinute
The minimum number of things that will be notified of a pending job, per minute, at the start of the
job rollout. This is the initial rate of the rollout.
Type: Integer
Required: Yes
incrementFactor
The rate of increase for a job rollout. The number of things notified is multiplied by this factor.
Type: Double
Required: Yes
rateIncreaseCriteria
AWS IoT Core supports up to one digit after the decimal (for example, 1.5, but not 1.55).
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
890
AWS IoT API Reference
AwsJobPresignedUrlConfig
AwsJobPresignedUrlConfig
Service: AWS IoT
Configuration information for pre-signed URLs. Valid when protocols contains HTTP.
Contents
expiresInSec
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is
1800 seconds. Pre-signed URLs are generated when a request for the job document is received.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
891
AWS IoT API Reference
AwsJobRateIncreaseCriteria
AwsJobRateIncreaseCriteria
Service: AWS IoT
Contents
numberOfNotifiedThings
When this number of things have been notified, it will initiate an increase in the rollout rate.
Type: Integer
Required: No
numberOfSucceededThings
When this number of things have succeeded in their job execution, it will initiate an increase in the
rollout rate.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
892
AWS IoT API Reference
AwsJobTimeoutConfig
AwsJobTimeoutConfig
Service: AWS IoT
Specifies the amount of time each device has to finish its execution of the job. A timer is started when
the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal
state before the timer expires, it will be automatically set to TIMED_OUT.
Contents
inProgressTimeoutInMinutes
Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout
interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer
can't be updated and will apply to all job executions for the job. Whenever a job execution remains
in the IN_PROGRESS status for longer than this interval, the job execution will fail and switch to the
terminal TIMED_OUT status.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
893
AWS IoT API Reference
Behavior
Behavior
Service: AWS IoT
Contents
name
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
criteria
The criteria that determine if a device is behaving normally in regard to the metric.
Note
In the AWS IoT console, you can choose to be sent an alert through Amazon SNS when AWS
IoT Device Defender detects that a device is behaving anomalously.
Required: No
exportMetric
Type: Boolean
Required: No
metric
Type: String
Required: No
metricDimension
The dimension for a metric in your behavior. For example, using a TOPIC_FILTER dimension, you
can narrow down the scope of the metric to only MQTT topics where the name matches the pattern
specified in the dimension. This can't be used with custom metrics.
Required: No
suppressAlerts
Suppresses alerts.
Type: Boolean
Required: No
894
AWS IoT API Reference
Behavior
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
895
AWS IoT API Reference
BehaviorCriteria
BehaviorCriteria
Service: AWS IoT
Contents
comparisonOperator
The operator that relates the thing measured (metric) to the criteria (containing a value or
statisticalThreshold). Valid operators include:
• string-list: in-set and not-in-set
• number-list: in-set and not-in-set
• ip-address-list: in-cidr-set and not-in-cidr-set
• number: less-than, less-than-equals, greater-than, and greater-than-equals
Type: String
Required: No
consecutiveDatapointsToAlarm
If a device is in violation of the behavior for the specified number of consecutive datapoints, an
alarm occurs. If not specified, the default is 1.
Type: Integer
Required: No
consecutiveDatapointsToClear
If an alarm has occurred and the offending device is no longer in violation of the behavior for the
specified number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.
Type: Integer
Required: No
durationSeconds
Use this to specify the time duration over which the behavior is evaluated, for those criteria that
have a time dimension (for example, NUM_MESSAGES_SENT). For a statisticalThreshhold
metric comparison, measurements from all devices are accumulated over this time duration before
being used to calculate percentiles, and later, measurements from an individual device are also
accumulated over this time duration before being given a percentile rank. Cannot be used with list-
based metric datatypes.
Type: Integer
Required: No
mlDetectionConfig
896
AWS IoT API Reference
BehaviorCriteria
Required: No
statisticalThreshold
Required: No
value
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
897
AWS IoT API Reference
BehaviorModelTrainingSummary
BehaviorModelTrainingSummary
Service: AWS IoT
Contents
behaviorName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
datapointsCollectionPercentage
Type: Double
Required: No
lastModelRefreshDate
Type: Timestamp
Required: No
modelStatus
Type: String
Required: No
securityProfileName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
trainingDataCollectionStartDate
Type: Timestamp
898
AWS IoT API Reference
BehaviorModelTrainingSummary
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
899
AWS IoT API Reference
BillingGroupMetadata
BillingGroupMetadata
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
900
AWS IoT API Reference
BillingGroupProperties
BillingGroupProperties
Service: AWS IoT
Contents
billingGroupDescription
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
901
AWS IoT API Reference
Bucket
Bucket
Service: AWS IoT
Contents
count
The number of documents that have the value counted for the particular bucket.
Type: Integer
Required: No
keyValue
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
902
AWS IoT API Reference
BucketsAggregationType
BucketsAggregationType
Service: AWS IoT
Contents
termsAggregation
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the
number of occurrences of an aggregation field value.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
903
AWS IoT API Reference
CACertificate
CACertificate
Service: AWS IoT
A CA certificate.
Contents
certificateArn
Type: String
Required: No
certificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
creationDate
Type: Timestamp
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
904
AWS IoT API Reference
CACertificateDescription
CACertificateDescription
Service: AWS IoT
Describes a CA certificate.
Contents
autoRegistrationStatus
Whether the CA certificate configured for auto registration of device certificates. Valid values are
"ENABLE" and "DISABLE"
Type: String
Required: No
certificateArn
Type: String
Required: No
certificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
certificateMode
All the device certificates that are registered using this CA will be registered in the same mode as the
CA. For more information about certificate mode for device certificates, see certificate mode.
Type: String
Required: No
certificatePem
Type: String
Pattern: [\s\S]*
Required: No
905
AWS IoT API Reference
CACertificateDescription
creationDate
Type: Timestamp
Required: No
customerVersion
Type: Integer
Required: No
generationId
Type: String
Required: No
lastModifiedDate
Type: Timestamp
Required: No
ownedBy
Type: String
Pattern: [0-9]+
Required: No
status
Type: String
Required: No
validity
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
906
AWS IoT API Reference
CACertificateDescription
907
AWS IoT API Reference
Certificate
Certificate
Service: AWS IoT
Contents
certificateArn
Type: String
Required: No
certificateId
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
certificateMode
DEFAULT: A certificate in DEFAULT mode is either generated by AWS IoT Core or registered with an
issuer certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT mode aren't
required to send the Server Name Indication (SNI) extension when connecting to AWS IoT Core.
However, to use features such as custom domains and VPC endpoints, we recommend that you use
the SNI extension when connecting to AWS IoT Core.
SNI_ONLY: A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with
certificates in SNI_ONLY mode must send the SNI extension when connecting to AWS IoT Core.
Type: String
Required: No
creationDate
Type: Timestamp
Required: No
status
Type: String
908
AWS IoT API Reference
Certificate
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
909
AWS IoT API Reference
CertificateDescription
CertificateDescription
Service: AWS IoT
Describes a certificate.
Contents
caCertificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
certificateArn
Type: String
Required: No
certificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
certificateMode
DEFAULT: A certificate in DEFAULT mode is either generated by AWS IoT Core or registered with an
issuer certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT mode aren't
required to send the Server Name Indication (SNI) extension when connecting to AWS IoT Core.
However, to use features such as custom domains and VPC endpoints, we recommend that you use
the SNI extension when connecting to AWS IoT Core.
SNI_ONLY: A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with
certificates in SNI_ONLY mode must send the SNI extension when connecting to AWS IoT Core.
For more information about the value for SNI extension, see Transport security in AWS IoT.
Type: String
Required: No
certificatePem
910
AWS IoT API Reference
CertificateDescription
Type: String
Pattern: [\s\S]*
Required: No
creationDate
Type: Timestamp
Required: No
customerVersion
Type: Integer
Required: No
generationId
Type: String
Required: No
lastModifiedDate
Type: Timestamp
Required: No
ownedBy
Type: String
Pattern: [0-9]+
Required: No
previousOwnedBy
Type: String
Pattern: [0-9]+
Required: No
911
AWS IoT API Reference
CertificateDescription
status
Type: String
Required: No
transferData
Required: No
validity
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
912
AWS IoT API Reference
CertificateValidity
CertificateValidity
Service: AWS IoT
Contents
notAfter
Type: Timestamp
Required: No
notBefore
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
913
AWS IoT API Reference
CloudwatchAlarmAction
CloudwatchAlarmAction
Service: AWS IoT
Contents
alarmName
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
stateReason
Type: String
Required: Yes
stateValue
The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
914
AWS IoT API Reference
CloudwatchLogsAction
CloudwatchLogsAction
Service: AWS IoT
Contents
logGroupName
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
batchMode
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values
include true or false (default).
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
915
AWS IoT API Reference
CloudwatchMetricAction
CloudwatchMetricAction
Service: AWS IoT
Contents
metricName
Type: String
Required: Yes
metricNamespace
Type: String
Required: Yes
metricUnit
Type: String
Required: Yes
metricValue
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
metricTimestamp
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
916
AWS IoT API Reference
CloudwatchMetricAction
917
AWS IoT API Reference
CodeSigning
CodeSigning
Service: AWS IoT
Contents
awsSignerJobId
Type: String
Required: No
customCodeSigning
Required: No
startSigningJobParameter
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
918
AWS IoT API Reference
CodeSigningCertificateChain
CodeSigningCertificateChain
Service: AWS IoT
Describes the certificate chain being used when code signing a file.
Contents
certificateName
Type: String
Required: No
inlineDocument
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
919
AWS IoT API Reference
CodeSigningSignature
CodeSigningSignature
Service: AWS IoT
Contents
inlineDocument
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
920
AWS IoT API Reference
Configuration
Configuration
Service: AWS IoT
Configuration.
Contents
Enabled
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
921
AWS IoT API Reference
CustomCodeSigning
CustomCodeSigning
Service: AWS IoT
Contents
certificateChain
Required: No
hashAlgorithm
The hash algorithm used to code sign the file. You can use a string as the algorithm name if the
target over-the-air (OTA) update devices are able to verify the signature that was generated using
the same signature algorithm. For example, FreeRTOS uses SHA256 or SHA1, so you can pass either
of them based on which was used for generating the signature.
Type: String
Required: No
signature
Required: No
signatureAlgorithm
The signature algorithm used to code sign the file. You can use a string as the algorithm name if the
target over-the-air (OTA) update devices are able to verify the signature that was generated using
the same signature algorithm. For example, FreeRTOS uses ECDSA or RSA, so you can pass either of
them based on which was used for generating the signature.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
922
AWS IoT API Reference
Denied
Denied
Service: AWS IoT
Contents
explicitDeny
Required: No
implicitDeny
Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow
an action on a resource it is considered an implicit deny.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
923
AWS IoT API Reference
Destination
Destination
Service: AWS IoT
Contents
s3Destination
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
924
AWS IoT API Reference
DetectMitigationActionExecution
DetectMitigationActionExecution
Service: AWS IoT
Contents
actionName
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
errorCode
Type: String
Required: No
executionEndDate
Type: Timestamp
Required: No
executionStartDate
Type: Timestamp
Required: No
message
Type: String
Required: No
status
Type: String
Required: No
taskId
925
AWS IoT API Reference
DetectMitigationActionExecution
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
thingName
Type: String
Required: No
violationId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
926
AWS IoT API Reference
DetectMitigationActionsTaskStatistics
DetectMitigationActionsTaskStatistics
Service: AWS IoT
Contents
actionsExecuted
Type: Long
Required: No
actionsFailed
Type: Long
Required: No
actionsSkipped
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
927
AWS IoT API Reference
DetectMitigationActionsTaskSummary
DetectMitigationActionsTaskSummary
Service: AWS IoT
Contents
actionsDefinition
Required: No
onlyActiveViolationsIncluded
Type: Boolean
Required: No
suppressedAlertsIncluded
Type: Boolean
Required: No
target
Specifies the ML Detect findings to which the mitigation actions are applied.
Required: No
taskEndTime
Type: Timestamp
Required: No
taskId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
taskStartTime
Type: Timestamp
928
AWS IoT API Reference
DetectMitigationActionsTaskSummary
Required: No
taskStatistics
Required: No
taskStatus
Type: String
Required: No
violationEventOccurrenceRange
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
929
AWS IoT API Reference
DetectMitigationActionsTaskTarget
DetectMitigationActionsTaskTarget
Service: AWS IoT
Contents
behaviorName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
securityProfileName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
violationIds
Pattern: [a-zA-Z0-9\-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
930
AWS IoT API Reference
DocumentParameter
DocumentParameter
Service: AWS IoT
A map of key-value pairs containing the patterns that need to be replaced in a managed template job
document schema. You can use the description of each key as a guidance to specify the inputs during
runtime when creating a job.
Note
documentParameters can only be used when creating jobs from AWS managed templates.
This parameter can't be used with custom job templates or to create jobs from them.
Contents
description
Description of the map field containing the patterns that need to be replaced in a managed
template job document schema.
Type: String
Pattern: [^\p{C}]+
Required: No
example
An example illustrating a pattern that need to be replaced in a managed template job document
schema.
Type: String
Pattern: [^\p{C}]+
Required: No
key
Key of the map field containing the patterns that need to be replaced in a managed template job
document schema.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
optional
Specifies whether a pattern that needs to be replaced in a managed template job document schema
is optional or required.
Type: Boolean
Required: No
regex
A regular expression of the patterns that need to be replaced in a managed template job document
schema.
931
AWS IoT API Reference
DocumentParameter
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
932
AWS IoT API Reference
DomainConfigurationSummary
DomainConfigurationSummary
Service: AWS IoT
• Data
• Jobs
• CredentialProvider
Contents
domainConfigurationArn
Type: String
Required: No
domainConfigurationName
The name of the domain configuration. This value must be unique to a region.
Type: String
Pattern: [\w.:-]+
Required: No
serviceType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
933
AWS IoT API Reference
DynamoDBAction
DynamoDBAction
Service: AWS IoT
The tableName, hashKeyField, and rangeKeyField values must match the values used when you
created the table.
The hashKeyValue and rangeKeyvalue fields use a substitution template syntax. These templates
provide data at runtime. The syntax is as follows: ${sql-expression}.
You can specify any valid expression in a WHERE or SELECT clause, including JSON properties,
comparisons, calculations, and functions. For example, the following field uses the third level of the
topic:
"hashKeyValue": "${topic(3)}"
"rangeKeyValue": "${timestamp()}"
Contents
hashKeyField
Type: String
Required: Yes
hashKeyValue
Type: String
Required: Yes
roleArn
The ARN of the IAM role that grants access to the DynamoDB table.
Type: String
Required: Yes
tableName
Type: String
Required: Yes
hashKeyType
Type: String
934
AWS IoT API Reference
DynamoDBAction
Required: No
operation
The type of operation to be performed. This follows the substitution template, so it can be
${operation}, but the substitution must result in one of the following: INSERT, UPDATE, or
DELETE.
Type: String
Required: No
payloadField
Type: String
Required: No
rangeKeyField
Type: String
Required: No
rangeKeyType
Type: String
Required: No
rangeKeyValue
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
935
AWS IoT API Reference
DynamoDBv2Action
DynamoDBv2Action
Service: AWS IoT
This DynamoDB action writes each attribute in the message payload into it's own column in the
DynamoDB table.
Contents
putItem
Specifies the DynamoDB table to which the message data will be written. For example:
Each attribute in the message payload will be written to a separate column in the DynamoDB
database.
Required: Yes
roleArn
The ARN of the IAM role that grants access to the DynamoDB table.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
936
AWS IoT API Reference
EffectivePolicy
EffectivePolicy
Service: AWS IoT
Contents
policyArn
Type: String
Required: No
policyDocument
Type: String
Pattern: [\s\S]*
Required: No
policyName
Type: String
Pattern: [\w+=,.@-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
937
AWS IoT API Reference
ElasticsearchAction
ElasticsearchAction
Service: AWS IoT
Contents
endpoint
Type: String
Pattern: https?://.*
Required: Yes
id
Type: String
Required: Yes
index
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
type
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
938
AWS IoT API Reference
ElasticsearchAction
939
AWS IoT API Reference
EnableIoTLoggingParams
EnableIoTLoggingParams
Service: AWS IoT
Parameters used when defining a mitigation action that enable AWS IoT Core logging.
Contents
logLevel
Type: String
Required: Yes
roleArnForLogging
The Amazon Resource Name (ARN) of the IAM role used for logging.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
940
AWS IoT API Reference
ErrorInfo
ErrorInfo
Service: AWS IoT
Error information.
Contents
code
Type: String
Required: No
message
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
941
AWS IoT API Reference
ExplicitDeny
ExplicitDeny
Service: AWS IoT
Contents
policies
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
942
AWS IoT API Reference
ExponentialRolloutRate
ExponentialRolloutRate
Service: AWS IoT
Contents
baseRatePerMinute
The minimum number of things that will be notified of a pending job, per minute at the start of job
rollout. This parameter allows you to define the initial rate of rollout.
Type: Integer
Required: Yes
incrementFactor
AWS IoT Core supports up to one digit after the decimal (for example, 1.5, but not 1.55).
Type: Double
Required: Yes
rateIncreaseCriteria
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
943
AWS IoT API Reference
Field
Field
Service: AWS IoT
Contents
name
Type: String
Required: No
type
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
944
AWS IoT API Reference
FileLocation
FileLocation
Service: AWS IoT
Contents
s3Location
Required: No
stream
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
945
AWS IoT API Reference
FirehoseAction
FirehoseAction
Service: AWS IoT
Contents
deliveryStreamName
Type: String
Required: Yes
roleArn
The IAM role that grants access to the Amazon Kinesis Firehose stream.
Type: String
Required: Yes
batchMode
Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch. The
default value is false.
When batchMode is true and the rule's SQL statement evaluates to an Array, each Array element
forms one record in the PutRecordBatch request. The resulting array can't have more than 500
records.
Type: Boolean
Required: No
separator
A character separator that will be used to separate records written to the Firehose stream. Valid
values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
Type: String
Pattern: ([\n\t])|(\r\n)|(,)
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
946
AWS IoT API Reference
FleetMetricNameAndArn
FleetMetricNameAndArn
Service: AWS IoT
Contents
metricArn
Type: String
Required: No
metricName
Type: String
Pattern: [a-zA-Z0-9_\-\.]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
947
AWS IoT API Reference
GeoLocationTarget
GeoLocationTarget
Service: AWS IoT
A geolocation target that you select to index. Each geolocation target contains a name and order key-
value pair that specifies the geolocation target fields.
Contents
name
The name of the geolocation target field. If the target field is part of a named shadow, you must
select the named shadow using the namedShadow filter.
Type: String
Required: No
order
The order of the geolocation target field. This field is optional. The default value is LatLon.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
948
AWS IoT API Reference
GroupNameAndArn
GroupNameAndArn
Service: AWS IoT
Contents
groupArn
Type: String
Required: No
groupName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
949
AWS IoT API Reference
HttpAction
HttpAction
Service: AWS IoT
Contents
url
The endpoint URL. If substitution templates are used in the URL, you must also specify a
confirmationUrl. If this is a new destination, a new TopicRuleDestination is created if
possible.
Type: String
Required: Yes
auth
Required: No
confirmationUrl
The URL to which AWS IoT sends a confirmation message. The value of the confirmation URL
must be a prefix of the endpoint URL. If you do not specify a confirmation URL AWS IoT uses the
endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you
must create and enable topic rule destinations that match each possible value of the substitution
template before traffic is allowed to your endpoint URL.
Type: String
Required: No
headers
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
950
AWS IoT API Reference
HttpAction
951
AWS IoT API Reference
HttpActionHeader
HttpActionHeader
Service: AWS IoT
Contents
key
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
952
AWS IoT API Reference
HttpAuthorization
HttpAuthorization
Service: AWS IoT
Contents
sigv4
Use Sig V4 authorization. For more information, see Signature Version 4 Signing Process.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
953
AWS IoT API Reference
HttpContext
HttpContext
Service: AWS IoT
Specifies the HTTP context to use for the test authorizer request.
Contents
headers
Required: No
queryString
Type: String
Pattern: [\s\S]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
954
AWS IoT API Reference
HttpUrlDestinationConfiguration
HttpUrlDestinationConfiguration
Service: AWS IoT
HTTP URL destination configuration used by the topic rule's HTTP action.
Contents
confirmationUrl
The URL AWS IoT uses to confirm ownership of or access to the topic rule destination URL.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
955
AWS IoT API Reference
HttpUrlDestinationProperties
HttpUrlDestinationProperties
Service: AWS IoT
Contents
confirmationUrl
The URL used to confirm the HTTP topic rule destination URL.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
956
AWS IoT API Reference
HttpUrlDestinationSummary
HttpUrlDestinationSummary
Service: AWS IoT
Contents
confirmationUrl
The URL used to confirm ownership of or access to the HTTP topic rule destination URL.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
957
AWS IoT API Reference
ImplicitDeny
ImplicitDeny
Service: AWS IoT
Information that implicitly denies authorization. When policy doesn't explicitly deny or allow an action
on a resource it is considered an implicit deny.
Contents
policies
Policies that don't contain a matching allow or deny statement for the specified action on the
specified resource.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
958
AWS IoT API Reference
IndexingFilter
IndexingFilter
Service: AWS IoT
Contents
geoLocations
The list of geolocation targets that you select to index. The default maximum number of geolocation
targets for indexing is 1. To increase the limit, see AWS IoT Device Management Quotas in the AWS
General Reference.
Required: No
namedShadowNames
The shadow names that you select to index. The default maximum number of shadow names for
indexing is 10. To increase the limit, see AWS IoT Device Management Quotas in the AWS General
Reference.
Pattern: [$a-zA-Z0-9:_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
959
AWS IoT API Reference
IotAnalyticsAction
IotAnalyticsAction
Service: AWS IoT
Contents
batchMode
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element
is delivered as a separate message when passed by BatchPutMessage to the AWS IoT Analytics
channel. The resulting array can't have more than 100 messages.
Type: Boolean
Required: No
channelArn
(deprecated) The ARN of the IoT Analytics channel to which message data will be sent.
Type: String
Required: No
channelName
The name of the IoT Analytics channel to which message data will be sent.
Type: String
Required: No
roleArn
The ARN of the role which has a policy that grants IoT Analytics permission to send message data via
IoT Analytics (iotanalytics:BatchPutMessage).
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
960
AWS IoT API Reference
IotEventsAction
IotEventsAction
Service: AWS IoT
Contents
inputName
Type: String
Required: Yes
roleArn
The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT Events detector.
("Action":"iotevents:BatchPutMessage").
Type: String
Required: Yes
batchMode
Whether to process the event actions as a batch. The default value is false.
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is
treated as a separate message when it's sent to AWS IoT Events by calling BatchPutMessage. The
resulting array can't have more than 10 messages.
Type: Boolean
Required: No
messageId
When batchMode is true, you can't specify a messageId--a new UUID value will be assigned.
Assign a value to this property to ensure that only one input (message) with a given messageId will
be processed by an AWS IoT Events detector.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
961
AWS IoT API Reference
IotEventsAction
962
AWS IoT API Reference
IotSiteWiseAction
IotSiteWiseAction
Service: AWS IoT
Describes an action to send data from an MQTT message that triggered the rule to AWS IoT SiteWise
asset properties.
Contents
putAssetPropertyValueEntries
Required: Yes
roleArn
The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT
SiteWise. ("Action": "iotsitewise:BatchPutAssetPropertyValue"). The trust policy can
restrict access to specific asset hierarchy paths.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
963
AWS IoT API Reference
IssuerCertificateIdentifier
IssuerCertificateIdentifier
Service: AWS IoT
Contents
issuerCertificateSerialNumber
Type: String
Pattern: [a-fA-F0-9:]+
Required: No
issuerCertificateSubject
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
issuerId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
964
AWS IoT API Reference
Job
Job
Service: AWS IoT
Contents
abortConfig
Required: No
comment
If the job was updated, describes the reason for the update.
Type: String
Pattern: [^\p{C}]+
Required: No
completedAt
The time, in seconds since the epoch, when the job was completed.
Type: Timestamp
Required: No
createdAt
The time, in seconds since the epoch, when the job was created.
Type: Timestamp
Required: No
description
Type: String
Pattern: [^\p{C}]+
Required: No
destinationPackageVersions
The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are
allowed.
965
AWS IoT API Reference
Job
Pattern: ^arn:[!-~]+$
Required: No
documentParameters
A key-value map that pairs the patterns that need to be replaced in a managed template job
document schema. You can use the description of each key as a guidance to specify the inputs
during runtime when creating a job.
Note
documentParameters can only be used when creating jobs from AWS managed
templates. This parameter can't be used with custom job templates or to create jobs from
them.
Required: No
forceCanceled
Will be true if the job was canceled with the optional force parameter set to true.
Type: Boolean
Required: No
isConcurrent
Indicates whether a job is concurrent. Will be true when a job is rolling out new job executions or
canceling previously created executions, otherwise false.
Type: Boolean
Required: No
jobArn
Type: String
Required: No
jobExecutionsRetryConfig
Required: No
jobExecutionsRolloutConfig
966
AWS IoT API Reference
Job
Required: No
jobId
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
jobProcessDetails
Required: No
jobTemplateArn
Type: String
Pattern: ^arn:[!-~]+$
Required: No
lastUpdatedAt
The time, in seconds since the epoch, when the job was last updated.
Type: Timestamp
Required: No
namespaceId
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.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
presignedUrlConfig
967
AWS IoT API Reference
Job
Required: No
reasonCode
If the job was updated, provides the reason code for the update.
Type: String
Pattern: [\p{Upper}\p{Digit}_]+
Required: No
scheduledJobRollouts
Displays the next seven maintenance window occurrences and their start times.
Required: No
schedulingConfig
The configuration that allows you to schedule a job for a future date and time in addition to
specifying the end behavior for each job execution.
Required: No
status
Type: String
Required: No
targets
A list of IoT things and thing groups to which the job should be sent.
Required: No
targetSelection
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those
things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be
run on a thing when a change is detected in a target. For example, a job will run on a device when
the thing representing the device is added to a target group, even after the job was completed by all
things originally in the group.
Note
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing
group targets. By using continuous jobs, devices that join the group receive the job
execution even after the job has been created.
968
AWS IoT API Reference
Job
Type: String
Required: No
timeoutConfig
Specifies the amount of time each device has to finish its execution of the job. A timer is started
when the job execution status is set to IN_PROGRESS. If the job execution status is not set to
another terminal state before the timer expires, it will be automatically set to TIMED_OUT.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
969
AWS IoT API Reference
JobExecution
JobExecution
Service: AWS IoT
The job execution object represents the execution of a job on a particular device.
Contents
approximateSecondsBeforeTimedOut
The estimated number of seconds that remain before the job execution status will be changed
to TIMED_OUT. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080
minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated
duration. This value will not be included if the job execution has reached a terminal status.
Type: Long
Required: No
executionNumber
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device. It can be used in commands which return or update job execution information.
Type: Long
Required: No
forceCanceled
Will be true if the job execution was canceled with the optional force parameter set to true.
Type: Boolean
Required: No
jobId
The unique identifier you assigned to the job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
lastUpdatedAt
The time, in seconds since the epoch, when the job execution was last updated.
Type: Timestamp
Required: No
queuedAt
The time, in seconds since the epoch, when the job execution was queued.
Type: Timestamp
Required: No
970
AWS IoT API Reference
JobExecution
startedAt
The time, in seconds since the epoch, when the job execution started.
Type: Timestamp
Required: No
status
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT,
CANCELED, or REJECTED).
Type: String
Required: No
statusDetails
A collection of name/value pairs that describe the status of the job execution.
Required: No
thingArn
Type: String
Required: No
versionNumber
The version of the job execution. Job execution versions are incremented each time they are updated
by a device.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
971
AWS IoT API Reference
JobExecutionsRetryConfig
JobExecutionsRetryConfig
Service: AWS IoT
The configuration that determines how many retries are allowed for each failure type for a job.
Contents
criteriaList
The list of criteria that determines how many retries are allowed for each failure type for a job.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
972
AWS IoT API Reference
JobExecutionsRolloutConfig
JobExecutionsRolloutConfig
Service: AWS IoT
Contents
exponentialRate
The rate of increase for a job rollout. This parameter allows you to define an exponential rate for a
job rollout.
Required: No
maximumPerMinute
The maximum number of things that will be notified of a pending job, per minute. This parameter
allows you to create a staged rollout.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
973
AWS IoT API Reference
JobExecutionStatusDetails
JobExecutionStatusDetails
Service: AWS IoT
Contents
detailsMap
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
974
AWS IoT API Reference
JobExecutionSummary
JobExecutionSummary
Service: AWS IoT
Contents
executionNumber
A string (consisting of the digits "0" through "9") which identifies this particular job execution
on this particular device. It can be used later in commands which return or update job execution
information.
Type: Long
Required: No
lastUpdatedAt
The time, in seconds since the epoch, when the job execution was last updated.
Type: Timestamp
Required: No
queuedAt
The time, in seconds since the epoch, when the job execution was queued.
Type: Timestamp
Required: No
retryAttempt
The number that indicates how many retry attempts have been completed for this job on this device.
Type: Integer
Required: No
startedAt
The time, in seconds since the epoch, when the job execution started.
Type: Timestamp
Required: No
status
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
975
AWS IoT API Reference
JobExecutionSummary
976
AWS IoT API Reference
JobExecutionSummaryForJob
JobExecutionSummaryForJob
Service: AWS IoT
Contents
jobExecutionSummary
Required: No
thingArn
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
977
AWS IoT API Reference
JobExecutionSummaryForThing
JobExecutionSummaryForThing
Service: AWS IoT
Contents
jobExecutionSummary
Required: No
jobId
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
978
AWS IoT API Reference
JobProcessDetails
JobProcessDetails
Service: AWS IoT
Contents
numberOfCanceledThings
Type: Integer
Required: No
numberOfFailedThings
Type: Integer
Required: No
numberOfInProgressThings
Type: Integer
Required: No
numberOfQueuedThings
Type: Integer
Required: No
numberOfRejectedThings
Type: Integer
Required: No
numberOfRemovedThings
The number of things that are no longer scheduled to execute the job because they have been
deleted or have been removed from the group that was a target of the job.
Type: Integer
Required: No
numberOfSucceededThings
Type: Integer
Required: No
979
AWS IoT API Reference
JobProcessDetails
numberOfTimedOutThings
Type: Integer
Required: No
processingTargets
The target devices to which the job execution is being rolled out. This value will be null after the job
execution has finished rolling out to all the target devices.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
980
AWS IoT API Reference
JobSummary
JobSummary
Service: AWS IoT
Contents
completedAt
The time, in seconds since the epoch, when the job completed.
Type: Timestamp
Required: No
createdAt
The time, in seconds since the epoch, when the job was created.
Type: Timestamp
Required: No
isConcurrent
Indicates whether a job is concurrent. Will be true when a job is rolling out new job executions or
canceling previously created executions, otherwise false.
Type: Boolean
Required: No
jobArn
Type: String
Required: No
jobId
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
lastUpdatedAt
The time, in seconds since the epoch, when the job was last updated.
Type: Timestamp
Required: No
status
Type: String
981
AWS IoT API Reference
JobSummary
Required: No
targetSelection
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those
things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be
run on a thing when a change is detected in a target. For example, a job will run on a thing when
the thing is added to a target group, even after the job was completed by all things originally in the
group.
Note
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing
group targets. By using continuous jobs, devices that join the group receive the job
execution even after the job has been created.
Type: String
Required: No
thingGroupId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
982
AWS IoT API Reference
JobTemplateSummary
JobTemplateSummary
Service: AWS IoT
Contents
createdAt
The time, in seconds since the epoch, when the job template was created.
Type: Timestamp
Required: No
description
Type: String
Pattern: [^\p{C}]+
Required: No
jobTemplateArn
Type: String
Pattern: ^arn:[!-~]+$
Required: No
jobTemplateId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
983
AWS IoT API Reference
JobTemplateSummary
984
AWS IoT API Reference
KafkaAction
KafkaAction
Service: AWS IoT
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed
Apache Kafka cluster.
Contents
clientProperties
Required: Yes
destinationArn
Type: String
Required: Yes
topic
Type: String
Required: Yes
headers
Required: No
key
Type: String
Required: No
partition
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
985
AWS IoT API Reference
KafkaAction
986
AWS IoT API Reference
KafkaActionHeader
KafkaActionHeader
Service: AWS IoT
Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action. You can use these
headers to route data from IoT clients to downstream Kafka clusters without modifying your message
payload.
For more information about Rule's Kafka action, see Apache Kafka.
Contents
key
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
987
AWS IoT API Reference
KeyPair
KeyPair
Service: AWS IoT
Contents
PrivateKey
Type: String
Required: No
PublicKey
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
988
AWS IoT API Reference
KinesisAction
KinesisAction
Service: AWS IoT
Contents
roleArn
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
Type: String
Required: Yes
streamName
Type: String
Required: Yes
partitionKey
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
989
AWS IoT API Reference
LambdaAction
LambdaAction
Service: AWS IoT
Contents
functionArn
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
990
AWS IoT API Reference
LocationAction
LocationAction
Service: AWS IoT
The Amazon Location rule action sends device location updates from an MQTT message to an Amazon
Location tracker resource.
Contents
deviceId
Type: String
Required: Yes
latitude
A string that evaluates to a double value that represents the latitude of the device's location.
Type: String
Required: Yes
longitude
A string that evaluates to a double value that represents the longitude of the device's location.
Type: String
Required: Yes
roleArn
The IAM role that grants permission to write to the Amazon Location resource.
Type: String
Required: Yes
trackerName
The name of the tracker resource in Amazon Location in which the location is updated.
Type: String
Required: Yes
timestamp
The time that the location data was sampled. The default value is the time the MQTT message was
processed.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
991
AWS IoT API Reference
LocationAction
992
AWS IoT API Reference
LocationTimestamp
LocationTimestamp
Service: AWS IoT
Describes how to interpret an application-defined timestamp value from an MQTT message payload and
the precision of that value.
Contents
value
Type: String
Required: Yes
unit
The precision of the timestamp value that results from the expression described in value.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
993
AWS IoT API Reference
LoggingOptionsPayload
LoggingOptionsPayload
Service: AWS IoT
Contents
roleArn
Type: String
Required: Yes
logLevel
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
994
AWS IoT API Reference
LogTarget
LogTarget
Service: AWS IoT
A log target.
Contents
targetType
Type: String
Required: Yes
targetName
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
995
AWS IoT API Reference
LogTargetConfiguration
LogTargetConfiguration
Service: AWS IoT
Contents
logLevel
Type: String
Required: No
logTarget
A log target
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
996
AWS IoT API Reference
MachineLearningDetectionConfig
MachineLearningDetectionConfig
Service: AWS IoT
Contents
confidenceLevel
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
997
AWS IoT API Reference
MaintenanceWindow
MaintenanceWindow
Service: AWS IoT
Contents
durationInMinutes
Type: Integer
Required: Yes
startTime
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
998
AWS IoT API Reference
ManagedJobTemplateSummary
ManagedJobTemplateSummary
Service: AWS IoT
Contents
description
Type: String
Pattern: [^\p{C}]+
Required: No
environments
A list of environments that are supported with the managed job template.
Pattern: [^\p{C}]+
Required: No
templateArn
Type: String
Pattern: ^arn:[!-~]+$
Required: No
templateName
Type: String
Required: No
templateVersion
Type: String
Pattern: ^[1-9]+.[0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
999
AWS IoT API Reference
ManagedJobTemplateSummary
1000
AWS IoT API Reference
MetricDatum
MetricDatum
Service: AWS IoT
A metric.
Contents
timestamp
Type: Timestamp
Required: No
value
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1001
AWS IoT API Reference
MetricDimension
MetricDimension
Service: AWS IoT
Contents
dimensionName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
operator
Defines how the dimensionValues of a dimension are interpreted. For example, for dimension
type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the
topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the
topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1002
AWS IoT API Reference
MetricsExportConfig
MetricsExportConfig
Service: AWS IoT
Contents
mqttTopic
The MQTT topic that Device Defender Detect should publish messages to for metrics export.
Type: String
Required: Yes
roleArn
This role ARN has permission to publish MQTT messages, after which Device Defender Detect can
assume the role and publish messages on your behalf.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1003
AWS IoT API Reference
MetricToRetain
MetricToRetain
Service: AWS IoT
Contents
metric
Type: String
Required: Yes
exportMetric
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect
should export the corresponding metrics.
Type: Boolean
Required: No
metricDimension
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1004
AWS IoT API Reference
MetricValue
MetricValue
Service: AWS IoT
Contents
cidrs
If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared
with the metric.
Pattern: [a-fA-F0-9:\.\/]+
Required: No
count
If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be
compared with the metric.
Type: Long
Required: No
number
Type: Double
Required: No
numbers
Required: No
ports
If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with
the metric.
Required: No
strings
1005
AWS IoT API Reference
MetricValue
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1006
AWS IoT API Reference
MitigationAction
MitigationAction
Service: AWS IoT
Contents
actionParams
The set of parameters for this mitigation action. The parameters vary, depending on the kind of
action you apply.
Required: No
id
Type: String
Required: No
name
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
roleArn
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1007
AWS IoT API Reference
MitigationActionIdentifier
MitigationActionIdentifier
Service: AWS IoT
Contents
actionArn
Type: String
Required: No
actionName
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
creationDate
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1008
AWS IoT API Reference
MitigationActionParams
MitigationActionParams
Service: AWS IoT
The set of parameters for this mitigation action. You can specify only one type of parameter (in other
words, you can apply only one action for each defined mitigation action).
Contents
addThingsToThingGroupParams
Parameters to define a mitigation action that moves devices associated with a certificate to one or
more specified thing groups, typically for quarantine.
Required: No
enableIoTLoggingParams
Parameters to define a mitigation action that enables AWS IoT Core logging at a specified level of
detail.
Required: No
publishFindingToSnsParams
Parameters to define a mitigation action that publishes findings to Amazon Simple Notification
Service (Amazon SNS. You can implement your own custom actions in response to the Amazon SNS
messages.
Required: No
replaceDefaultPolicyVersionParams
Parameters to define a mitigation action that adds a blank policy to restrict permissions.
Required: No
updateCACertificateParams
Parameters to define a mitigation action that changes the state of the CA certificate to inactive.
Required: No
updateDeviceCertificateParams
Parameters to define a mitigation action that changes the state of the device certificate to inactive.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1009
AWS IoT API Reference
MitigationActionParams
1010
AWS IoT API Reference
MqttContext
MqttContext
Service: AWS IoT
Specifies the MQTT context to use for the test authorizer request
Contents
clientId
Type: String
Pattern: [\s\S]*
Required: No
password
Required: No
username
Type: String
Pattern: [\s\S]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1011
AWS IoT API Reference
MqttHeaders
MqttHeaders
Service: AWS IoT
Specifies MQTT Version 5.0 headers information. For more information, see MQTT from AWS IoT Core
Developer Guide.
Contents
contentType
A UTF-8 encoded string that describes the content of the publishing message.
For more information, see Content Type from the MQTT Version 5.0 specification.
Type: String
Required: No
correlationData
The base64-encoded binary data used by the sender of the request message to identify which
request the response message is for when it's received.
For more information, see Correlation Data from the MQTT Version 5.0 specification.
Note
This binary data must be based64-encoded.
Type: String
Required: No
messageExpiry
A user-defined integer value that will persist a message at the message broker for a specified
amount of time to ensure that the message will expire if it's no longer relevant to the subscriber. The
value of messageExpiry represents the number of seconds before it expires. For more information
about the limits of messageExpiry, see AWS IoT Core message broker and protocol limits and
quotas from the AWS Reference Guide.
Type: String
Required: No
payloadFormatIndicator
An Enum string value that indicates whether the payload is formatted as UTF-8.
For more information, see Payload Format Indicator from the MQTT Version 5.0 specification.
1012
AWS IoT API Reference
MqttHeaders
Type: String
Required: No
responseTopic
A UTF-8 encoded string that's used as the topic name for a response message. The response topic is
used to describe the topic which the receiver should publish to as part of the request-response flow.
The topic must not contain wildcard characters.
For more information, see Response Topic from the MQTT Version 5.0 specification.
Type: String
Required: No
userProperties
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1013
AWS IoT API Reference
NonCompliantResource
NonCompliantResource
Service: AWS IoT
Information about the resource that was noncompliant with the audit check.
Contents
additionalInfo
Required: No
resourceIdentifier
Required: No
resourceType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1014
AWS IoT API Reference
OpenSearchAction
OpenSearchAction
Service: AWS IoT
Contents
endpoint
Type: String
Pattern: https?://.*
Required: Yes
id
Type: String
Required: Yes
index
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
type
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1015
AWS IoT API Reference
OTAUpdateFile
OTAUpdateFile
Service: AWS IoT
Contents
attributes
A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
Required: No
codeSigning
Required: No
fileLocation
Required: No
fileName
Type: String
Required: No
fileType
An integer value you can include in the job document to allow your devices to identify the type of
file received from the cloud.
Type: Integer
Required: No
fileVersion
Type: String
Required: No
1016
AWS IoT API Reference
OTAUpdateFile
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1017
AWS IoT API Reference
OTAUpdateInfo
OTAUpdateInfo
Service: AWS IoT
Contents
additionalParameters
Required: No
awsIotJobArn
The AWS IoT job ARN associated with the OTA update.
Type: String
Required: No
awsIotJobId
Type: String
Required: No
awsJobExecutionsRolloutConfig
Required: No
awsJobPresignedUrlConfig
Configuration information for pre-signed URLs. Valid when protocols contains HTTP.
Required: No
creationDate
Type: Timestamp
Required: No
description
Type: String
1018
AWS IoT API Reference
OTAUpdateInfo
Pattern: [^\p{C}]+
Required: No
errorInfo
Required: No
lastModifiedDate
Type: Timestamp
Required: No
otaUpdateArn
Type: String
Required: No
otaUpdateFiles
Required: No
otaUpdateId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
otaUpdateStatus
Type: String
Required: No
protocols
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP,
MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
1019
AWS IoT API Reference
OTAUpdateInfo
Required: No
targets
Required: No
targetSelection
Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all
those things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the
OTA update may also be run on a thing when a change is detected in a target. For example, an OTA
update will run on a thing when the thing is added to a target group, even after the OTA update was
completed by all things originally in the group.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1020
AWS IoT API Reference
OTAUpdateSummary
OTAUpdateSummary
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
otaUpdateArn
Type: String
Required: No
otaUpdateId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1021
AWS IoT API Reference
OutgoingCertificate
OutgoingCertificate
Service: AWS IoT
Contents
certificateArn
Type: String
Required: No
certificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
creationDate
Type: Timestamp
Required: No
transferDate
Type: Timestamp
Required: No
transferMessage
Type: String
Pattern: [\s\S]*
Required: No
transferredTo
Type: String
Pattern: [0-9]+
1022
AWS IoT API Reference
OutgoingCertificate
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1023
AWS IoT API Reference
PackageSummary
PackageSummary
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
defaultVersionName
Type: String
Pattern: [a-zA-Z0-9-_.]+
Required: No
lastModifiedDate
Type: Timestamp
Required: No
packageName
Type: String
Pattern: [a-zA-Z0-9-_.]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1024
AWS IoT API Reference
PackageVersionSummary
PackageVersionSummary
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
lastModifiedDate
Type: Timestamp
Required: No
packageName
Type: String
Pattern: [a-zA-Z0-9-_.]+
Required: No
status
The status of the package version. For more information, see Package version lifecycle.
Type: String
Required: No
versionName
Type: String
Pattern: [a-zA-Z0-9-_.]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1025
AWS IoT API Reference
PackageVersionSummary
1026
AWS IoT API Reference
PercentPair
PercentPair
Service: AWS IoT
Contents
percent
The percentile.
Type: Double
Required: No
value
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1027
AWS IoT API Reference
Policy
Policy
Service: AWS IoT
Contents
policyArn
Type: String
Required: No
policyName
Type: String
Pattern: [\w+=,.@-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1028
AWS IoT API Reference
PolicyVersion
PolicyVersion
Service: AWS IoT
Contents
createDate
Type: Timestamp
Required: No
isDefaultVersion
Type: Boolean
Required: No
versionId
Type: String
Pattern: [0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1029
AWS IoT API Reference
PolicyVersionIdentifier
PolicyVersionIdentifier
Service: AWS IoT
Information about the version of the policy associated with the resource.
Contents
policyName
Type: String
Pattern: [\w+=,.@-]+
Required: No
policyVersionId
Type: String
Pattern: [0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1030
AWS IoT API Reference
PresignedUrlConfig
PresignedUrlConfig
Service: AWS IoT
Contents
expiresInSec
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is
3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job
document.
Type: Long
Required: No
roleArn
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job
data/updates are stored. The role must also grant permission for IoT to download the files.
Important
For information about addressing the confused deputy problem, see cross-service confused
deputy prevention in the AWS IoT Core developer guide.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1031
AWS IoT API Reference
ProvisioningHook
ProvisioningHook
Service: AWS IoT
Contents
targetArn
Type: String
Required: Yes
payloadVersion
Type: String
Pattern: ^[0-9-]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1032
AWS IoT API Reference
ProvisioningTemplateSummary
ProvisioningTemplateSummary
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
description
Type: String
Pattern: [^\p{C}]*
Required: No
enabled
Type: Boolean
Required: No
lastModifiedDate
The date when the provisioning template summary was last modified.
Type: Timestamp
Required: No
templateArn
Type: String
Required: No
templateName
Type: String
Pattern: ^[0-9A-Za-z_-]+$
Required: No
1033
AWS IoT API Reference
ProvisioningTemplateSummary
type
The type you define in a provisioning template. You can create a template with only one type. You
can't change the template type after its creation. The default value is FLEET_PROVISIONING. For
more information about provisioning template, see: Provisioning template.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1034
AWS IoT API Reference
ProvisioningTemplateVersionSummary
ProvisioningTemplateVersionSummary
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
isDefaultVersion
True if the provisioning template version is the default version, otherwise false.
Type: Boolean
Required: No
versionId
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1035
AWS IoT API Reference
PublishFindingToSnsParams
PublishFindingToSnsParams
Service: AWS IoT
Parameters to define a mitigation action that publishes findings to Amazon SNS. You can implement
your own custom actions in response to the Amazon SNS messages.
Contents
topicArn
The ARN of the topic to which you want to publish the findings.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1036
AWS IoT API Reference
PutAssetPropertyValueEntry
PutAssetPropertyValueEntry
Service: AWS IoT
Contents
propertyValues
A list of property values to insert that each contain timestamp, quality, and value (TQV) information.
Required: Yes
assetId
The ID of the AWS IoT SiteWise asset. You must specify either a propertyAlias or both an
aliasId and a propertyId. Accepts substitution templates.
Type: String
Required: No
entryId
Optional. A unique identifier for this entry that you can define to better track which message caused
an error in case of failure. Accepts substitution templates. Defaults to a new UUID.
Type: String
Required: No
propertyAlias
The name of the property alias associated with your asset property. You must specify either a
propertyAlias or both an aliasId and a propertyId. Accepts substitution templates.
Type: String
Required: No
propertyId
The ID of the asset's property. You must specify either a propertyAlias or both an aliasId and a
propertyId. Accepts substitution templates.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1037
AWS IoT API Reference
PutAssetPropertyValueEntry
1038
AWS IoT API Reference
PutItemInput
PutItemInput
Service: AWS IoT
The input for the DynamoActionVS action that specifies the DynamoDB table to which the message data
will be written.
Contents
tableName
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1039
AWS IoT API Reference
RateIncreaseCriteria
RateIncreaseCriteria
Service: AWS IoT
Allows you to define a criteria to initiate the increase in rate of rollout for a job.
Contents
numberOfNotifiedThings
The threshold for number of notified things that will initiate the increase in rate of rollout.
Type: Integer
Required: No
numberOfSucceededThings
The threshold for number of succeeded things that will initiate the increase in rate of rollout.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1040
AWS IoT API Reference
RegistrationConfig
RegistrationConfig
Service: AWS IoT
Contents
roleArn
Type: String
Required: No
templateBody
Type: String
Pattern: [\s\S]*
Required: No
templateName
Type: String
Pattern: ^[0-9A-Za-z_-]+$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1041
AWS IoT API Reference
RelatedResource
RelatedResource
Service: AWS IoT
Contents
additionalInfo
Required: No
resourceIdentifier
Required: No
resourceType
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1042
AWS IoT API Reference
ReplaceDefaultPolicyVersionParams
ReplaceDefaultPolicyVersionParams
Service: AWS IoT
Parameters to define a mitigation action that adds a blank policy to restrict permissions.
Contents
templateName
The name of the template to be applied. The only supported value is BLANK_POLICY.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1043
AWS IoT API Reference
RepublishAction
RepublishAction
Service: AWS IoT
Contents
roleArn
Type: String
Required: Yes
topic
Type: String
Required: Yes
headers
MQTT Version 5.0 headers information. For more information, see MQTT from the AWS IoT Core
Developer Guide.
Required: No
qos
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1044
AWS IoT API Reference
ResourceIdentifier
ResourceIdentifier
Service: AWS IoT
Contents
account
Type: String
Pattern: [0-9]+
Required: No
caCertificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
Required: No
clientId
Type: String
Required: No
cognitoIdentityPoolId
Type: String
Required: No
deviceCertificateArn
Type: String
Required: No
deviceCertificateId
Type: String
Pattern: (0x)?[a-fA-F0-9]+
1045
AWS IoT API Reference
ResourceIdentifier
Required: No
iamRoleArn
The ARN of the IAM role that has overly permissive actions.
Type: String
Required: No
issuerCertificateIdentifier
Required: No
policyVersionIdentifier
Required: No
roleAliasArn
The ARN of the role alias that has overly permissive actions.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1046
AWS IoT API Reference
RetryCriteria
RetryCriteria
Service: AWS IoT
The criteria that determines how many retries are allowed for each failure type for a job.
Contents
failureType
The type of job execution failures that can initiate a job retry.
Type: String
Required: Yes
numberOfRetries
The number of retries allowed for a failure type for the job.
Type: Integer
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1047
AWS IoT API Reference
RoleAliasDescription
RoleAliasDescription
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
credentialDurationSeconds
Type: Integer
Required: No
lastModifiedDate
The UNIX timestamp of when the role alias was last modified.
Type: Timestamp
Required: No
owner
Type: String
Pattern: [0-9]+
Required: No
roleAlias
Type: String
Pattern: [\w=,@-]+
Required: No
roleAliasArn
Type: String
1048
AWS IoT API Reference
RoleAliasDescription
Required: No
roleArn
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1049
AWS IoT API Reference
S3Action
S3Action
Service: AWS IoT
Contents
bucketName
Type: String
Required: Yes
key
The object key. For more information, see Actions, resources, and condition keys for Amazon S3.
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
cannedAcl
The Amazon S3 canned ACL that controls access to the object identified by the object key. For more
information, see S3 canned ACLs.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1050
AWS IoT API Reference
S3Destination
S3Destination
Service: AWS IoT
Contents
bucket
Type: String
Required: No
prefix
The S3 prefix.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1051
AWS IoT API Reference
S3Location
S3Location
Service: AWS IoT
The S3 location.
Contents
bucket
The S3 bucket.
Type: String
Required: No
key
The S3 key.
Type: String
Required: No
version
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1052
AWS IoT API Reference
SalesforceAction
SalesforceAction
Service: AWS IoT
Contents
token
The token used to authenticate access to the Salesforce IoT Cloud Input Stream. The token is
available from the Salesforce IoT Cloud platform after creation of the Input Stream.
Type: String
Required: Yes
url
The URL exposed by the Salesforce IoT Cloud Input Stream. The URL is available from the Salesforce
IoT Cloud platform after creation of the Input Stream.
Type: String
Pattern: https://ingestion-[a-zA-Z0-9]{1,12}\.[a-zA-Z0-9]+\.((sfdc-matrix
\.net)|(sfdcnow\.com))/streams/\w{1,20}/\w{1,20}/event
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1053
AWS IoT API Reference
ScheduledAuditMetadata
ScheduledAuditMetadata
Service: AWS IoT
Contents
dayOfMonth
The day of the month on which the scheduled audit is run (if the frequency is "MONTHLY"). If
days 29-31 are specified, and the month does not have that many days, the audit takes place on the
"LAST" day of the month.
Type: String
Pattern: ^([1-9]|[12][0-9]|3[01])$|^LAST$
Required: No
dayOfWeek
The day of the week on which the scheduled audit is run (if the frequency is "WEEKLY" or
"BIWEEKLY").
Type: String
Required: No
frequency
Type: String
Required: No
scheduledAuditArn
Type: String
Required: No
scheduledAuditName
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1054
AWS IoT API Reference
ScheduledAuditMetadata
1055
AWS IoT API Reference
ScheduledJobRollout
ScheduledJobRollout
Service: AWS IoT
Displays the next seven maintenance window occurrences and their start times.
Contents
startTime
Displays the start times of the next seven maintenance window occurrences.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1056
AWS IoT API Reference
SchedulingConfig
SchedulingConfig
Service: AWS IoT
Specifies the date and time that a job will begin the rollout of the job document to all devices in the
target group. Additionally, you can specify the end behavior for each job execution when it reaches the
scheduled end time.
Contents
endBehavior
Specifies the end behavior for all job executions after a job reaches the selected endTime. If
endTime is not selected when creating the job, then endBehavior does not apply.
Type: String
Required: No
endTime
The time a job will stop rollout of the job document to all devices in the target group for a job.
The endTime must take place no later than two years from the current time and be scheduled a
minimum of thirty minutes from the current time. The minimum duration between startTime and
endTime is thirty minutes. The maximum duration between startTime and endTime is two years.
The date and time format for the endTime is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for endTime when using an API command or the AWS
Command Line Interface, see Timestamp.
Type: String
Required: No
maintenanceWindows
Required: No
startTime
The time a job will begin rollout of the job document to all devices in the target group for a job. The
startTime can be scheduled up to a year in advance and must be scheduled a minimum of thirty
minutes from the current time. The date and time format for the startTime is YYYY-MM-DD for
the date and HH:MM for the time.
For more information on the syntax for startTime when using an API command or the AWS
Command Line Interface, see Timestamp.
Type: String
Required: No
1057
AWS IoT API Reference
SchedulingConfig
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1058
AWS IoT API Reference
SecurityProfileIdentifier
SecurityProfileIdentifier
Service: AWS IoT
Contents
arn
Type: String
Required: Yes
name
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1059
AWS IoT API Reference
SecurityProfileTarget
SecurityProfileTarget
Service: AWS IoT
Contents
arn
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1060
AWS IoT API Reference
SecurityProfileTargetMapping
SecurityProfileTargetMapping
Service: AWS IoT
Information about a security profile and the target associated with it.
Contents
securityProfileIdentifier
Required: No
target
Information about the target (thing group) associated with the security profile.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1061
AWS IoT API Reference
ServerCertificateSummary
ServerCertificateSummary
Service: AWS IoT
Contents
serverCertificateArn
Type: String
Pattern: arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-
z]{4,9}-\d{1}:\d{12}:certificate/[a-zA-Z0-9/-]+
Required: No
serverCertificateStatus
Type: String
Required: No
serverCertificateStatusDetail
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1062
AWS IoT API Reference
SigningProfileParameter
SigningProfileParameter
Service: AWS IoT
Contents
certificateArn
Certificate ARN.
Type: String
Required: No
certificatePathOnDevice
Type: String
Required: No
platform
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1063
AWS IoT API Reference
SigV4Authorization
SigV4Authorization
Service: AWS IoT
Contents
roleArn
Type: String
Required: Yes
serviceName
Type: String
Required: Yes
signingRegion
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1064
AWS IoT API Reference
SnsAction
SnsAction
Service: AWS IoT
Contents
roleArn
Type: String
Required: Yes
targetArn
Type: String
Required: Yes
messageFormat
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW".
The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should
be parsed and relevant platform-specific bits of the payload should be extracted. To read more
about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html
refer to their official documentation.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1065
AWS IoT API Reference
SqsAction
SqsAction
Service: AWS IoT
Contents
queueUrl
Type: String
Required: Yes
roleArn
Type: String
Required: Yes
useBase64
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1066
AWS IoT API Reference
StartSigningJobParameter
StartSigningJobParameter
Service: AWS IoT
Contents
destination
Required: No
signingProfileName
Type: String
Required: No
signingProfileParameter
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1067
AWS IoT API Reference
StatisticalThreshold
StatisticalThreshold
Service: AWS IoT
A statistical ranking (percentile) that indicates a threshold value by which a behavior is determined to be
in compliance or in violation of the behavior.
Contents
statistic
The percentile that resolves to a threshold value by which compliance with a behavior is determined.
Metrics are collected over the specified period (durationSeconds) from all reporting devices
in your account and statistical ranks are calculated. Then, the measurements from a device are
collected over the same period. If the accumulated measurements from the device fall above or
below (comparisonOperator) the value associated with the percentile specified, then the device is
considered to be in compliance with the behavior, otherwise a violation occurs.
Type: String
Pattern: (p0|p0\.1|p0\.01|p1|p10|p50|p90|p99|p99\.9|p99\.99|p100)
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1068
AWS IoT API Reference
Statistics
Statistics
Service: AWS IoT
A map of key-value pairs for all supported statistics. For issues with missing or unexpected values for this
API, consult Fleet indexing troubleshooting guide.
Contents
average
Type: Double
Required: No
count
The count of things that match the query string criteria and contain a valid aggregation field value.
Type: Integer
Required: No
maximum
Type: Double
Required: No
minimum
Type: Double
Required: No
stdDeviation
Type: Double
Required: No
sum
Type: Double
Required: No
sumOfSquares
Type: Double
Required: No
1069
AWS IoT API Reference
Statistics
variance
Type: Double
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1070
AWS IoT API Reference
StepFunctionsAction
StepFunctionsAction
Service: AWS IoT
Contents
roleArn
The ARN of the role that grants IoT permission to start execution of a state machine
("Action":"states:StartExecution").
Type: String
Required: Yes
stateMachineName
The name of the Step Functions state machine whose execution will be started.
Type: String
Required: Yes
executionNamePrefix
(Optional) A name will be given to the state machine execution consisting of this prefix followed by a
UUID. Step Functions automatically creates a unique name for each state machine execution if one is
not provided.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1071
AWS IoT API Reference
Stream
Stream
Service: AWS IoT
Contents
fileId
Type: Integer
Required: No
streamId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1072
AWS IoT API Reference
StreamFile
StreamFile
Service: AWS IoT
Contents
fileId
Type: Integer
Required: No
s3Location
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1073
AWS IoT API Reference
StreamInfo
StreamInfo
Service: AWS IoT
Contents
createdAt
Type: Timestamp
Required: No
description
Type: String
Pattern: [^\p{C}]+
Required: No
files
Required: No
lastUpdatedAt
Type: Timestamp
Required: No
roleArn
Type: String
Required: No
streamArn
Type: String
Required: No
streamId
1074
AWS IoT API Reference
StreamInfo
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
streamVersion
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1075
AWS IoT API Reference
StreamSummary
StreamSummary
Service: AWS IoT
A summary of a stream.
Contents
description
Type: String
Pattern: [^\p{C}]+
Required: No
streamArn
Type: String
Required: No
streamId
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
streamVersion
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1076
AWS IoT API Reference
Tag
Tag
Service: AWS IoT
Contents
Key
Type: String
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
Value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1077
AWS IoT API Reference
TaskStatistics
TaskStatistics
Service: AWS IoT
Contents
canceledChecks
The number of checks that did not run because the audit was canceled.
Type: Integer
Required: No
compliantChecks
Type: Integer
Required: No
failedChecks
Type: Integer
Required: No
inProgressChecks
Type: Integer
Required: No
nonCompliantChecks
Type: Integer
Required: No
totalChecks
Type: Integer
Required: No
waitingForDataCollectionChecks
Type: Integer
Required: No
1078
AWS IoT API Reference
TaskStatistics
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1079
AWS IoT API Reference
TaskStatisticsForAuditCheck
TaskStatisticsForAuditCheck
Service: AWS IoT
Provides summary counts of how many tasks for findings are in a particular state. This information is
included in the response from DescribeAuditMitigationActionsTask.
Contents
canceledFindingsCount
The number of findings to which the mitigation action task was canceled when applied.
Type: Long
Required: No
failedFindingsCount
The number of findings for which at least one of the actions failed when applied.
Type: Long
Required: No
skippedFindingsCount
The number of findings skipped because of filter conditions provided in the parameters to the
command.
Type: Long
Required: No
succeededFindingsCount
The number of findings for which all mitigation actions succeeded when applied.
Type: Long
Required: No
totalFindingsCount
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1080
AWS IoT API Reference
TermsAggregation
TermsAggregation
Service: AWS IoT
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the
number of occurrences of an aggregation field value.
Contents
maxBuckets
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1081
AWS IoT API Reference
ThingAttribute
ThingAttribute
Service: AWS IoT
The properties of the thing, including thing name, thing type name, and a list of thing attributes.
Contents
attributes
Required: No
thingArn
Type: String
Required: No
thingName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingTypeName
The name of the thing type, if the thing has been associated with a type.
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
version
Type: Long
Required: No
1082
AWS IoT API Reference
ThingAttribute
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1083
AWS IoT API Reference
ThingConnectivity
ThingConnectivity
Service: AWS IoT
Contents
connected
True if the thing is connected to the AWS IoT Core service; false if it is not connected.
Type: Boolean
Required: No
disconnectReason
The reason why the client is disconnected. If the thing has been disconnected for approximately an
hour, the disconnectReason value might be missing.
Type: String
Required: No
timestamp
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has
been disconnected for approximately an hour, the time value might be missing.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1084
AWS IoT API Reference
ThingDocument
ThingDocument
Service: AWS IoT
Contents
attributes
The attributes.
Required: No
connectivity
Indicates whether the thing is connected to the AWS IoT Core service.
Required: No
deviceDefender
Type: String
Required: No
shadow
For more information about shadows, see AWS IoT Device Shadow service.
Type: String
Required: No
thingGroupNames
Pattern: [a-zA-Z0-9:_-]+
Required: No
1085
AWS IoT API Reference
ThingDocument
thingId
Type: String
Required: No
thingName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingTypeName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1086
AWS IoT API Reference
ThingGroupDocument
ThingGroupDocument
Service: AWS IoT
Contents
attributes
Required: No
parentGroupNames
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingGroupDescription
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
thingGroupId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
thingGroupName
Type: String
1087
AWS IoT API Reference
ThingGroupDocument
Pattern: [a-zA-Z0-9:_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1088
AWS IoT API Reference
ThingGroupIndexingConfiguration
ThingGroupIndexingConfiguration
Service: AWS IoT
Contents
thingGroupIndexingMode
Type: String
Required: Yes
customFields
A list of thing group fields to index. This list cannot contain any managed fields. Use the
GetIndexingConfiguration API to get a list of managed fields.
Required: No
managedFields
Contains fields that are indexed and whose types are already known by the Fleet Indexing service.
This is an optional field. For more information, see Managed fields in the AWS IoT Core Developer
Guide.
Note
You can't modify managed fields by updating fleet indexing configuration.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1089
AWS IoT API Reference
ThingGroupMetadata
ThingGroupMetadata
Service: AWS IoT
Contents
creationDate
Type: Timestamp
Required: No
parentGroupName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
rootToParentThingGroups
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1090
AWS IoT API Reference
ThingGroupProperties
ThingGroupProperties
Service: AWS IoT
Contents
attributePayload
Required: No
thingGroupDescription
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1091
AWS IoT API Reference
ThingIndexingConfiguration
ThingIndexingConfiguration
Service: AWS IoT
The thing indexing configuration. For more information, see Managing Thing Indexing.
Contents
thingIndexingMode
Type: String
Required: Yes
customFields
Required: No
deviceDefenderIndexingMode
For more information about Device Defender violations, see Device Defender Detect.
Type: String
Required: No
filter
Required: No
1092
AWS IoT API Reference
ThingIndexingConfiguration
managedFields
Contains fields that are indexed and whose types are already known by the Fleet Indexing service.
This is an optional field. For more information, see Managed fields in the AWS IoT Core Developer
Guide.
Note
You can't modify managed fields by updating fleet indexing configuration.
Required: No
namedShadowIndexingMode
For more information about Shadows, see AWS IoT Device Shadow service.
Type: String
Required: No
thingConnectivityIndexingMode
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1093
AWS IoT API Reference
ThingTypeDefinition
ThingTypeDefinition
Service: AWS IoT
The definition of the thing type, including thing type name and description.
Contents
thingTypeArn
Type: String
Required: No
thingTypeMetadata
The ThingTypeMetadata contains additional information about the thing type including: creation
date and time, a value indicating whether the thing type is deprecated, and a date and time when it
was deprecated.
Required: No
thingTypeName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingTypeProperties
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1094
AWS IoT API Reference
ThingTypeMetadata
ThingTypeMetadata
Service: AWS IoT
The ThingTypeMetadata contains additional information about the thing type including: creation date
and time, a value indicating whether the thing type is deprecated, and a date and time when time was
deprecated.
Contents
creationDate
The date and time when the thing type was created.
Type: Timestamp
Required: No
deprecated
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Type: Boolean
Required: No
deprecationDate
The date and time when the thing type was deprecated.
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1095
AWS IoT API Reference
ThingTypeProperties
ThingTypeProperties
Service: AWS IoT
The ThingTypeProperties contains information about the thing type including: a thing type description,
and a list of searchable thing attribute names.
Contents
searchableAttributes
Pattern: [a-zA-Z0-9_.,@/:#-]+
Required: No
thingTypeDescription
Type: String
Pattern: [\p{Graph}\x20]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1096
AWS IoT API Reference
TimeoutConfig
TimeoutConfig
Service: AWS IoT
Specifies the amount of time each device has to finish its execution of the job. A timer is started when
the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal
state before the timer expires, it will be automatically set to TIMED_OUT.
Contents
inProgressTimeoutInMinutes
Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout
interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer
can't be updated and will apply to all job executions for the job. Whenever a job execution remains
in the IN_PROGRESS status for longer than this interval, the job execution will fail and switch to the
terminal TIMED_OUT status.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1097
AWS IoT API Reference
TimestreamAction
TimestreamAction
Service: AWS IoT
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon
Timestream table. For more information, see the Timestream topic rule action documentation.
Contents
databaseName
Type: String
Required: Yes
dimensions
Metadata attributes of the time series that are written in each measure record.
Required: Yes
roleArn
The ARN of the role that grants permission to write to the Amazon Timestream database table.
Type: String
Required: Yes
tableName
The name of the database table into which to write the measure records.
Type: String
Required: Yes
timestamp
Specifies an application-defined value to replace the default value assigned to the Timestream
record's timestamp in the time column.
You can use this property to specify the value and the precision of the Timestream record's
timestamp. You can specify a value from the message payload or a value computed by a substitution
template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the
rule.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1098
AWS IoT API Reference
TimestreamAction
1099
AWS IoT API Reference
TimestreamDimension
TimestreamDimension
Service: AWS IoT
Metadata attributes of the time series that are written in each measure record.
Contents
name
The metadata dimension name. This is the name of the column in the Amazon Timestream database
table record.
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1100
AWS IoT API Reference
TimestreamTimestamp
TimestreamTimestamp
Service: AWS IoT
Describes how to interpret an application-defined timestamp value from an MQTT message payload and
the precision of that value.
Contents
unit
The precision of the timestamp value that results from the expression described in value.
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1101
AWS IoT API Reference
TlsConfig
TlsConfig
Service: AWS IoT
Contents
securityPolicy
The security policy for a domain configuration. For more information, see Security policies in the
AWS IoT Core developer guide.
Type: String
Pattern: [\s\S]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1102
AWS IoT API Reference
TlsContext
TlsContext
Service: AWS IoT
Specifies the TLS context to use for the test authorizer request.
Contents
serverName
Type: String
Pattern: [\s\S]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1103
AWS IoT API Reference
TopicRule
TopicRule
Service: AWS IoT
Describes a rule.
Contents
actions
Required: No
awsIotSqlVersion
The version of the SQL rules engine to use when evaluating the rule.
Type: String
Required: No
createdAt
Type: Timestamp
Required: No
description
Type: String
Required: No
errorAction
Required: No
ruleDisabled
Type: Boolean
Required: No
ruleName
Type: String
1104
AWS IoT API Reference
TopicRule
Pattern: ^[a-zA-Z0-9_]+$
Required: No
sql
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to
escape the newline characters.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1105
AWS IoT API Reference
TopicRuleDestination
TopicRuleDestination
Service: AWS IoT
Contents
arn
Type: String
Required: No
createdAt
The date and time when the topic rule destination was created.
Type: Timestamp
Required: No
httpUrlProperties
Required: No
lastUpdatedAt
The date and time when the topic rule destination was last updated.
Type: Timestamp
Required: No
status
A topic rule destination was created but has not been confirmed. You can set
status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling
UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your
confirmation endpoint.
ENABLED
Confirmation was completed, and traffic to this destination is allowed. You can set status to
DISABLED by calling UpdateTopicRuleDestination.
DISABLED
Confirmation was completed, and traffic to this destination is not allowed. You can set status
to ENABLED by calling UpdateTopicRuleDestination.
ERROR
Confirmation could not be completed, for example if the confirmation timed out. You can call
GetTopicRuleDestination for details about the error. You can set status to IN_PROGRESS
1106
AWS IoT API Reference
TopicRuleDestination
Type: String
Required: No
statusReason
Additional details or reason why the topic rule destination is in the current status.
Type: String
Required: No
vpcProperties
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1107
AWS IoT API Reference
TopicRuleDestinationConfiguration
TopicRuleDestinationConfiguration
Service: AWS IoT
Contents
httpUrlConfiguration
Required: No
vpcConfiguration
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1108
AWS IoT API Reference
TopicRuleDestinationSummary
TopicRuleDestinationSummary
Service: AWS IoT
Contents
arn
Type: String
Required: No
createdAt
The date and time when the topic rule destination was created.
Type: Timestamp
Required: No
httpUrlSummary
Required: No
lastUpdatedAt
The date and time when the topic rule destination was last updated.
Type: Timestamp
Required: No
status
A topic rule destination was created but has not been confirmed. You can set
status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling
UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your
confirmation endpoint.
ENABLED
Confirmation was completed, and traffic to this destination is allowed. You can set status to
DISABLED by calling UpdateTopicRuleDestination.
DISABLED
Confirmation was completed, and traffic to this destination is not allowed. You can set status
to ENABLED by calling UpdateTopicRuleDestination.
ERROR
Confirmation could not be completed, for example if the confirmation timed out. You can call
GetTopicRuleDestination for details about the error. You can set status to IN_PROGRESS
1109
AWS IoT API Reference
TopicRuleDestinationSummary
Type: String
Required: No
statusReason
Type: String
Required: No
vpcDestinationSummary
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1110
AWS IoT API Reference
TopicRuleListItem
TopicRuleListItem
Service: AWS IoT
Describes a rule.
Contents
createdAt
Type: Timestamp
Required: No
ruleArn
Type: String
Required: No
ruleDisabled
Type: Boolean
Required: No
ruleName
Type: String
Pattern: ^[a-zA-Z0-9_]+$
Required: No
topicPattern
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1111
AWS IoT API Reference
TopicRulePayload
TopicRulePayload
Service: AWS IoT
Describes a rule.
Contents
actions
Required: Yes
sql
The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the
AWS IoT Developer Guide.
Type: String
Required: Yes
awsIotSqlVersion
The version of the SQL rules engine to use when evaluating the rule.
Type: String
Required: No
description
Type: String
Required: No
errorAction
Required: No
ruleDisabled
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1112
AWS IoT API Reference
TopicRulePayload
1113
AWS IoT API Reference
TransferData
TransferData
Service: AWS IoT
Contents
acceptDate
Type: Timestamp
Required: No
rejectDate
Type: Timestamp
Required: No
rejectReason
Type: String
Pattern: [\s\S]*
Required: No
transferDate
Type: Timestamp
Required: No
transferMessage
Type: String
Pattern: [\s\S]*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1114
AWS IoT API Reference
TransferData
1115
AWS IoT API Reference
UpdateCACertificateParams
UpdateCACertificateParams
Service: AWS IoT
Parameters to define a mitigation action that changes the state of the CA certificate to inactive.
Contents
action
The action that you want to apply to the CA certificate. The only supported value is DEACTIVATE.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1116
AWS IoT API Reference
UpdateDeviceCertificateParams
UpdateDeviceCertificateParams
Service: AWS IoT
Parameters to define a mitigation action that changes the state of the device certificate to inactive.
Contents
action
The action that you want to apply to the device certificate. The only supported value is
DEACTIVATE.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1117
AWS IoT API Reference
UserProperty
UserProperty
Service: AWS IoT
A key-value pair that you define in the header. Both the key and the value are either literal strings or
valid substitution templates.
Contents
key
Type: String
Required: Yes
value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1118
AWS IoT API Reference
ValidationError
ValidationError
Service: AWS IoT
Contents
errorMessage
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1119
AWS IoT API Reference
VersionUpdateByJobsConfig
VersionUpdateByJobsConfig
Service: AWS IoT
Configuration to manage IoT Job's package version reporting. If configured, Jobs updates the thing's
reserved named shadow with the package version information up on successful job completion.
Note: For each job, the destinationPackageVersions attribute has to be set with the correct data for Jobs
to report to the thing shadow.
Contents
enabled
Type: Boolean
Required: No
roleArn
The Amazon Resource Name (ARN) of the role that grants permission to the AWS IoT jobs service to
update the reserved named shadow when the job successfully completes.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1120
AWS IoT API Reference
ViolationEvent
ViolationEvent
Service: AWS IoT
Contents
behavior
Required: No
metricValue
Required: No
securityProfileName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
thingName
Type: String
Required: No
verificationState
Type: String
Required: No
verificationStateDescription
Type: String
Pattern: [^\p{Cntrl}]*
1121
AWS IoT API Reference
ViolationEvent
Required: No
violationEventAdditionalInfo
Required: No
violationEventTime
Type: Timestamp
Required: No
violationEventType
Type: String
Required: No
violationId
Type: String
Pattern: [a-zA-Z0-9\-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1122
AWS IoT API Reference
ViolationEventAdditionalInfo
ViolationEventAdditionalInfo
Service: AWS IoT
Contents
confidenceLevel
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1123
AWS IoT API Reference
ViolationEventOccurrenceRange
ViolationEventOccurrenceRange
Service: AWS IoT
Contents
endTime
The end date and time of a time period in which violation events occurred.
Type: Timestamp
Required: Yes
startTime
The start date and time of a time period in which violation events occurred.
Type: Timestamp
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1124
AWS IoT API Reference
VpcDestinationConfiguration
VpcDestinationConfiguration
Service: AWS IoT
Contents
roleArn
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
Type: String
Required: Yes
subnetIds
Required: Yes
vpcId
Type: String
Required: Yes
securityGroups
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1125
AWS IoT API Reference
VpcDestinationProperties
VpcDestinationProperties
Service: AWS IoT
Contents
roleArn
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
Type: String
Required: No
securityGroups
Required: No
subnetIds
Required: No
vpcId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1126
AWS IoT API Reference
VpcDestinationSummary
VpcDestinationSummary
Service: AWS IoT
Contents
roleArn
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
Type: String
Required: No
securityGroups
Required: No
subnetIds
Required: No
vpcId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1127
AWS IoT API Reference
RetainedMessageSummary
RetainedMessageSummary
Service: AWS IoT data
Contents
lastModifiedTime
The Epoch date and time, in milliseconds, when the retained message was stored by AWS IoT.
Type: Long
Required: No
payloadSize
Type: Long
Required: No
qos
The quality of service (QoS) level used to publish the retained message.
Type: Integer
Required: No
topic
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1128
AWS IoT API Reference
AWS IoT jobs data
1129
AWS IoT API Reference
JobExecution
JobExecution
Service: AWS IoT jobs data
Contents
approximateSecondsBeforeTimedOut
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT. The actual job execution timeout can occur up to 60 seconds later than the estimated
duration.
Type: Long
Required: No
executionNumber
A number that identifies a particular job execution on a particular device. It can be used later in
commands that return or update job execution information.
Type: Long
Required: No
jobDocument
Type: String
Required: No
jobId
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
lastUpdatedAt
The time, in seconds since the epoch, when the job execution was last updated.
Type: Long
Required: No
queuedAt
The time, in seconds since the epoch, when the job execution was enqueued.
Type: Long
Required: No
1130
AWS IoT API Reference
JobExecution
startedAt
The time, in seconds since the epoch, when the job execution was started.
Type: Long
Required: No
status
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS",
"CANCELED", "TIMED_OUT", "REJECTED", or "REMOVED".
Type: String
Required: No
statusDetails
A collection of name/value pairs that describe the status of the job execution.
The maximum length of the value in the name/value pair is 1,024 characters.
Required: No
thingName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
versionNumber
The version of the job execution. Job execution versions are incremented each time they are updated
by a device.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1131
AWS IoT API Reference
JobExecution
1132
AWS IoT API Reference
JobExecutionState
JobExecutionState
Service: AWS IoT jobs data
Contents
status
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS",
"CANCELED", "TIMED_OUT", "REJECTED", or "REMOVED".
Type: String
Required: No
statusDetails
A collection of name/value pairs that describe the status of the job execution.
The maximum length of the value in the name/value pair is 1,024 characters.
Required: No
versionNumber
The version of the job execution. Job execution versions are incremented each time they are updated
by a device.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1133
AWS IoT API Reference
JobExecutionSummary
JobExecutionSummary
Service: AWS IoT jobs data
Contents
executionNumber
Type: Long
Required: No
jobId
The unique identifier you assigned to this job when it was created.
Type: String
Pattern: [a-zA-Z0-9_-]+
Required: No
lastUpdatedAt
The time, in seconds since the epoch, when the job execution was last updated.
Type: Long
Required: No
queuedAt
The time, in seconds since the epoch, when the job execution was enqueued.
Type: Long
Required: No
startedAt
The time, in seconds since the epoch, when the job execution started.
Type: Long
Required: No
versionNumber
The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs
receives an update from a device.
Type: Long
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1134
AWS IoT API Reference
AWS IoT Core Device Advisor
1135
AWS IoT API Reference
DeviceUnderTest
DeviceUnderTest
Service: AWS IoT Core Device Advisor
Information of a test device. A thing ARN, certificate ARN or device role ARN is required.
Contents
certificateArn
Type: String
Required: No
deviceRoleArn
Type: String
Required: No
thingArn
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1136
AWS IoT API Reference
GroupResult
GroupResult
Service: AWS IoT Core Device Advisor
Contents
groupId
Type: String
Required: No
groupName
Type: String
Required: No
tests
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1137
AWS IoT API Reference
SuiteDefinitionConfiguration
SuiteDefinitionConfiguration
Service: AWS IoT Core Device Advisor
Contents
devicePermissionRoleArn
Type: String
Required: Yes
rootGroup
Gets the test suite root group. This is a required parameter. For updating or creating the latest
qualification suite, if intendedForQualification is set to true, rootGroup can be an empty
string. If intendedForQualification is false, rootGroup cannot be an empty string. If
rootGroup is empty, and intendedForQualification is set to true, all the qualification tests are
included, and the configuration is default.
For a qualification suite, the minimum length is 0, and the maximum is 2048. For a non-qualification
suite, the minimum length is 1, and the maximum is 2048.
Type: String
Required: Yes
suiteDefinitionName
Type: String
Required: Yes
devices
Required: No
intendedForQualification
Type: Boolean
Required: No
1138
AWS IoT API Reference
SuiteDefinitionConfiguration
isLongDurationTest
Type: Boolean
Required: No
protocol
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1139
AWS IoT API Reference
SuiteDefinitionInformation
SuiteDefinitionInformation
Service: AWS IoT Core Device Advisor
Contents
createdAt
Date (in Unix epoch time) when the test suite was created.
Type: Timestamp
Required: No
defaultDevices
Specifies the devices that are under test for the test suite.
Required: No
intendedForQualification
Type: Boolean
Required: No
isLongDurationTest
Type: Boolean
Required: No
protocol
Type: String
Required: No
suiteDefinitionId
Type: String
Required: No
suiteDefinitionName
1140
AWS IoT API Reference
SuiteDefinitionInformation
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1141
AWS IoT API Reference
SuiteRunConfiguration
SuiteRunConfiguration
Service: AWS IoT Core Device Advisor
Contents
primaryDevice
Sets the primary device for the test suite run. This requires a thing ARN or a certificate ARN.
Required: Yes
parallelRun
Type: Boolean
Required: No
selectedTestList
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1142
AWS IoT API Reference
SuiteRunInformation
SuiteRunInformation
Service: AWS IoT Core Device Advisor
Contents
createdAt
Date (in Unix epoch time) when the suite run was created.
Type: Timestamp
Required: No
endAt
Date (in Unix epoch time) when the suite run ended.
Type: Timestamp
Required: No
failed
Type: Integer
Required: No
passed
Type: Integer
Required: No
startedAt
Date (in Unix epoch time) when the suite run was started.
Type: Timestamp
Required: No
status
Type: String
Required: No
1143
AWS IoT API Reference
SuiteRunInformation
suiteDefinitionId
Type: String
Required: No
suiteDefinitionName
Type: String
Required: No
suiteDefinitionVersion
Type: String
Required: No
suiteRunId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1144
AWS IoT API Reference
TestCaseRun
TestCaseRun
Service: AWS IoT Core Device Advisor
Contents
endTime
Type: Timestamp
Required: No
failure
Type: String
Required: No
logUrl
Type: String
Required: No
startTime
Type: Timestamp
Required: No
status
Provides the test case run status. Status is one of the following:
• PASS: Test passed.
• FAIL: Test failed.
• PENDING: Test has not started running but is scheduled.
• RUNNING: Test is running.
• STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run.
• STOPPED Test is stopped. You will see this status only if you stop a suite run.
• PASS_WITH_WARNINGS: Test passed with warnings.
• ERORR: Test faced an error when running due to an internal issue.
Type: String
Required: No
testCaseDefinitionId
1145
AWS IoT API Reference
TestCaseRun
Type: String
Required: No
testCaseDefinitionName
Type: String
Required: No
testCaseRunId
Type: String
Required: No
testScenarios
Required: No
warnings
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1146
AWS IoT API Reference
TestCaseScenario
TestCaseScenario
Service: AWS IoT Core Device Advisor
Contents
failure
Type: String
Required: No
status
Provides the test case scenario status. Status is one of the following:
• PASS: Test passed.
• FAIL: Test failed.
• PENDING: Test has not started running but is scheduled.
• RUNNING: Test is running.
• STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run.
• STOPPED Test is stopped. You will see this status only if you stop a suite run.
• PASS_WITH_WARNINGS: Test passed with warnings.
• ERORR: Test faced an error when running due to an internal issue.
Type: String
Required: No
systemMessage
Type: String
Required: No
testCaseScenarioId
Type: String
Required: No
testCaseScenarioType
Type: String
1147
AWS IoT API Reference
TestCaseScenario
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1148
AWS IoT API Reference
TestResult
TestResult
Service: AWS IoT Core Device Advisor
Contents
groups
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1149
AWS IoT API Reference
ApplicationSummary
ApplicationSummary
Service: AWS IoT Fleet Hub
A summary of information about a Fleet Hub for AWS IoT Device Management web application.
Contents
applicationId
Type: String
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Required: Yes
applicationName
Type: String
Pattern: ^[ -~]*$
Required: Yes
applicationUrl
Type: String
Pattern: ^https\://\S+$
Required: Yes
applicationCreationDate
The date (in Unix epoch time) when the web application was created.
Type: Long
Required: No
applicationDescription
Type: String
Pattern: ^[ -~]*$
Required: No
1150
AWS IoT API Reference
AWS IoT Secure Tunneling
applicationLastUpdateDate
The date (in Unix epoch time) when the web application was last updated.
Type: Long
Required: No
applicationState
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1151
AWS IoT API Reference
ConnectionState
ConnectionState
Service: AWS IoT Secure Tunneling
Contents
lastUpdatedAt
Type: Timestamp
Required: No
status
The connection status of the tunnel. Valid values are CONNECTED and DISCONNECTED.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1152
AWS IoT API Reference
DestinationConfig
DestinationConfig
Service: AWS IoT Secure Tunneling
Contents
services
A list of service names that identify the target application. The AWS IoT client running on the
destination device reads this value and uses it to look up a port or an IP address and a port. The
AWS IoT client instantiates the local proxy, which uses this information to connect to the destination
application.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
thingName
Type: String
Pattern: [a-zA-Z0-9:_-]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1153
AWS IoT API Reference
Tag
Tag
Service: AWS IoT Secure Tunneling
An arbitary key/value pair used to add searchable metadata to secure tunnel resources.
Contents
key
Type: String
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
value
Type: String
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1154
AWS IoT API Reference
TimeoutConfig
TimeoutConfig
Service: AWS IoT Secure Tunneling
Contents
maxLifetimeTimeoutMinutes
The maximum amount of time (in minutes) a tunnel can remain open. If not specified,
maxLifetimeTimeoutMinutes defaults to 720 minutes. Valid values are from 1 minute to 12 hours
(720 minutes)
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1155
AWS IoT API Reference
Tunnel
Tunnel
Service: AWS IoT Secure Tunneling
Contents
createdAt
Type: Timestamp
Required: No
description
Type: String
Pattern: [^\p{C}]{1,2048}
Required: No
destinationConfig
The destination configuration that specifies the thing name of the destination device and a service
name that the local proxy uses to connect to the destination application.
Required: No
destinationConnectionState
Required: No
lastUpdatedAt
Type: Timestamp
Required: No
sourceConnectionState
Required: No
status
Type: String
1156
AWS IoT API Reference
Tunnel
Required: No
tags
Required: No
timeoutConfig
Required: No
tunnelArn
Type: String
Required: No
tunnelId
Type: String
Pattern: [a-zA-Z0-9_\-+=:]{1,128}
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1157
AWS IoT API Reference
TunnelSummary
TunnelSummary
Service: AWS IoT Secure Tunneling
Contents
createdAt
Type: Timestamp
Required: No
description
Type: String
Pattern: [^\p{C}]{1,2048}
Required: No
lastUpdatedAt
Type: Timestamp
Required: No
status
Type: String
Required: No
tunnelArn
Type: String
Required: No
tunnelId
Type: String
Pattern: [a-zA-Z0-9_\-+=:]{1,128}
Required: No
1158
AWS IoT API Reference
TunnelSummary
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
1159
AWS IoT API Reference
Common Parameters
The following list contains the parameters that all actions use for signing Signature Version 4 requests
with a query string. Any action-specific parameters are listed in the topic for that action. For more
information about Signature Version 4, see Signing AWS API requests in the IAM User Guide.
Action
Type: string
Required: Yes
Version
The API version that the request is written for, expressed in the format YYYY-MM-DD.
Type: string
Required: Yes
X-Amz-Algorithm
The hash algorithm that you used to create the request signature.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Credential
The credential scope value, which is a string that includes your access key, the date, the region you
are targeting, the service you are requesting, and a termination string ("aws4_request"). The value is
expressed in the following format: access_key/YYYYMMDD/region/service/aws4_request.
For more information, see Create a signed AWS API request in the IAM User Guide.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Date
The date that is used to create the signature. The format must be ISO 8601 basic format
(YYYYMMDD'T'HHMMSS'Z'). For example, the following date time is a valid X-Amz-Date value:
20120325T120000Z.
Condition: X-Amz-Date is optional for all requests; it can be used to override the date used for
signing requests. If the Date header is specified in the ISO 8601 basic format, X-Amz-Date is not
required. When X-Amz-Date is used, it always overrides the value of the Date header. For more
information, see Elements of an AWS API request signature in the IAM User Guide.
1160
AWS IoT API Reference
Type: string
Required: Conditional
X-Amz-Security-Token
The temporary security token that was obtained through a call to AWS Security Token Service (AWS
STS). For a list of services that support temporary security credentials from AWS STS, see AWS
services that work with IAM in the IAM User Guide.
Condition: If you're using temporary security credentials from AWS STS, you must include the
security token.
Type: string
Required: Conditional
X-Amz-Signature
Specifies the hex-encoded signature that was calculated from the string to sign and the derived
signing key.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-SignedHeaders
Specifies all the HTTP headers that were included as part of the canonical request. For more
information about specifying signed headers, see Create a signed AWS API request in the IAM User
Guide.
Condition: Specify this parameter when you include authentication information in a query string
instead of in the HTTP authorization header.
Type: string
Required: Conditional
1161