AWS IoT Things Graph
API Reference
API Version 2018-09-06
AWS IoT Things Graph: API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Actions ... 2
AssociateEntityToThing ... 3
Request Syntax ... 3
Request Parameters ... 3
Response Elements ... 4
Errors ... 4
See Also ... 4
CreateFlowTemplate ... 5
Request Syntax ... 5
Request Parameters ... 5
Response Syntax ... 5
Response Elements ... 5
Errors ... 6
See Also ... 6
CreateSystemInstance ... 7
Request Syntax ... 7
Request Parameters ... 7
Response Syntax ... 8
Response Elements ... 9
Errors ... 9
See Also ... 9
CreateSystemTemplate ... 11
Request Syntax ... 11
Request Parameters ... 11
Response Syntax ... 11
Response Elements ... 11
Errors ... 12
See Also ... 12
DeleteFlowTemplate ... 13
Request Syntax ... 13
Request Parameters ... 13
Response Elements ... 13
Errors ... 13
See Also ... 14
DeleteNamespace ... 15
Response Syntax ... 15
Response Elements ... 15
Errors ... 15
See Also ... 15
DeleteSystemInstance ... 17
Request Syntax ... 17
Request Parameters ... 17
Response Elements ... 17
Errors ... 17
See Also ... 18
DeleteSystemTemplate ... 19
Request Syntax ... 19
Request Parameters ... 19
Response Elements ... 19
Errors ... 19
See Also ... 20
DeploySystemInstance ... 21
Request Syntax ... 21
API Version 2018-09-06 iii
Request Parameters ... 21
Response Syntax ... 21
Response Elements ... 22
Errors ... 22
See Also ... 22
DeprecateFlowTemplate ... 24
Request Syntax ... 24
Request Parameters ... 24
Response Elements ... 24
Errors ... 24
See Also ... 25
DeprecateSystemTemplate ... 26
Request Syntax ... 26
Request Parameters ... 26
Response Elements ... 26
Errors ... 26
See Also ... 27
DescribeNamespace ... 28
Request Syntax ... 28
Request Parameters ... 28
Response Syntax ... 28
Response Elements ... 28
Errors ... 29
See Also ... 29
DissociateEntityFromThing ... 31
Request Syntax ... 31
Request Parameters ... 31
Response Elements ... 31
Errors ... 31
See Also ... 32
GetEntities ... 33
Request Syntax ... 33
Request Parameters ... 33
Response Syntax ... 34
Response Elements ... 34
Errors ... 34
See Also ... 34
GetFlowTemplate ... 36
Request Syntax ... 36
Request Parameters ... 36
Response Syntax ... 36
Response Elements ... 37
Errors ... 37
See Also ... 37
GetFlowTemplateRevisions ... 38
Request Syntax ... 38
Request Parameters ... 38
Response Syntax ... 39
Response Elements ... 39
Errors ... 39
See Also ... 39
GetNamespaceDeletionStatus ... 41
Response Syntax ... 41
Response Elements ... 41
Errors ... 41
See Also ... 42
GetSystemInstance ... 43
Request Syntax ... 43
Request Parameters ... 43
Response Syntax ... 43
Response Elements ... 44
Errors ... 44
See Also ... 44
GetSystemTemplate ... 46
Request Syntax ... 46
Request Parameters ... 46
Response Syntax ... 46
Response Elements ... 47
Errors ... 47
See Also ... 47
GetSystemTemplateRevisions ... 48
Request Syntax ... 48
Request Parameters ... 48
Response Syntax ... 49
Response Elements ... 49
Errors ... 49
See Also ... 49
GetUploadStatus ... 51
Request Syntax ... 51
Request Parameters ... 51
Response Syntax ... 51
Response Elements ... 51
Errors ... 52
See Also ... 52
ListFlowExecutionMessages ... 54
Request Syntax ... 54
Request Parameters ... 54
Response Syntax ... 54
Response Elements ... 55
Errors ... 55
See Also ... 55
ListTagsForResource ... 57
Request Syntax ... 57
Request Parameters ... 57
Response Syntax ... 57
Response Elements ... 58
Errors ... 58
See Also ... 58
SearchEntities ... 60
Request Syntax ... 60
Request Parameters ... 60
Response Syntax ... 61
Response Elements ... 61
Errors ... 61
See Also ... 62
SearchFlowExecutions ... 63
Request Syntax ... 63
Request Parameters ... 63
Response Syntax ... 64
Response Elements ... 64
Errors ... 64
See Also ... 65
SearchFlowTemplates ... 66
Request Syntax ... 66
API Version 2018-09-06 v
Request Parameters ... 66
Response Syntax ... 66
Response Elements ... 67
Errors ... 67
See Also ... 67
SearchSystemInstances ... 69
Request Syntax ... 69
Request Parameters ... 69
Response Syntax ... 69
Response Elements ... 70
Errors ... 70
See Also ... 70
SearchSystemTemplates ... 72
Request Syntax ... 72
Request Parameters ... 72
Response Syntax ... 72
Response Elements ... 73
Errors ... 73
See Also ... 73
SearchThings ... 75
Request Syntax ... 75
Request Parameters ... 75
Response Syntax ... 76
Response Elements ... 76
Errors ... 76
See Also ... 77
TagResource ... 78
Request Syntax ... 78
Request Parameters ... 78
Response Elements ... 78
Errors ... 78
See Also ... 79
UndeploySystemInstance ... 80
Request Syntax ... 80
Request Parameters ... 80
Response Syntax ... 80
Response Elements ... 80
Errors ... 81
See Also ... 81
UntagResource ... 82
Request Syntax ... 82
Request Parameters ... 82
Response Elements ... 82
Errors ... 82
See Also ... 83
UpdateFlowTemplate ... 84
Request Syntax ... 84
Request Parameters ... 84
Response Syntax ... 85
Response Elements ... 85
Errors ... 85
See Also ... 85
UpdateSystemTemplate ... 87
Request Syntax ... 87
Request Parameters ... 87
Response Syntax ... 88
Response Elements ... 88
Errors ... 88
See Also ... 88
UploadEntityDefinitions ... 90
Request Syntax ... 90
Request Parameters ... 90
Response Syntax ... 91
Response Elements ... 91
Errors ... 91
See Also ... 91
Data Types ... 93
DefinitionDocument ... 94
Contents ... 94
See Also ... 94
DependencyRevision ... 95
Contents ... 95
See Also ... 95
EntityDescription ... 96
Contents ... 96
See Also ... 96
EntityFilter ... 98
Contents ... 98
See Also ... 98
FlowExecutionMessage ... 99
Contents ... 99
See Also ... 99
FlowExecutionSummary ... 100
Contents ... 100
See Also ... 101
FlowTemplateDescription ... 102
Contents ... 102
See Also ... 102
FlowTemplateFilter ... 103
Contents ... 103
See Also ... 103
FlowTemplateSummary ... 104
Contents ... 104
See Also ... 104
MetricsConfiguration ... 105
Contents ... 105
See Also ... 105
SystemInstanceDescription ... 106
Contents ... 106
See Also ... 107
SystemInstanceFilter ... 108
Contents ... 108
See Also ... 108
SystemInstanceSummary ... 109
Contents ... 109
See Also ... 110
SystemTemplateDescription ... 111
Contents ... 111
See Also ... 111
SystemTemplateFilter ... 112
Contents ... 112
See Also ... 112
SystemTemplateSummary ... 113
Contents ... 113
API Version 2018-09-06 vii
See Also ... 113
Tag ... 114
Contents ... 114
See Also ... 114
Thing ... 115
Contents ... 115
See Also ... 115
Common Parameters ... 116
Common Errors ... 118
Welcome
AWS IoT Things Graph provides an integrated set of tools that enable developers to connect devices and services that use different standards, such as units of measure and communication protocols. AWS IoT Things Graph makes it possible to build IoT applications with little to no code by connecting devices and services and defining how they interact at an abstract level.
For more information about how AWS IoT Things Graph works, see the User Guide.
This document was last published on March 6, 2022.
API Version 2018-09-06 1
Actions
The following actions are supported:
• AssociateEntityToThing (p. 3)
• CreateFlowTemplate (p. 5)
• CreateSystemInstance (p. 7)
• CreateSystemTemplate (p. 11)
• DeleteFlowTemplate (p. 13)
• DeleteNamespace (p. 15)
• DeleteSystemInstance (p. 17)
• DeleteSystemTemplate (p. 19)
• DeploySystemInstance (p. 21)
• DeprecateFlowTemplate (p. 24)
• DeprecateSystemTemplate (p. 26)
• DescribeNamespace (p. 28)
• DissociateEntityFromThing (p. 31)
• GetEntities (p. 33)
• GetFlowTemplate (p. 36)
• GetFlowTemplateRevisions (p. 38)
• GetNamespaceDeletionStatus (p. 41)
• GetSystemInstance (p. 43)
• GetSystemTemplate (p. 46)
• GetSystemTemplateRevisions (p. 48)
• GetUploadStatus (p. 51)
• ListFlowExecutionMessages (p. 54)
• ListTagsForResource (p. 57)
• SearchEntities (p. 60)
• SearchFlowExecutions (p. 63)
• SearchFlowTemplates (p. 66)
• SearchSystemInstances (p. 69)
• SearchSystemTemplates (p. 72)
• SearchThings (p. 75)
• TagResource (p. 78)
• UndeploySystemInstance (p. 80)
• UntagResource (p. 82)
• UpdateFlowTemplate (p. 84)
• UpdateSystemTemplate (p. 87)
• UploadEntityDefinitions (p. 90)
AssociateEntityToThing
Associates a device with a concrete thing that is in the user's registry.
A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.
Request Syntax
{
"entityId": "string", "namespaceVersion": number, "thingName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
entityId (p. 3)
The ID of the device to be associated with the thing.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes namespaceVersion (p. 3)
The version of the user's namespace. Defaults to the latest version of the user's namespace.
Type: Long Required: No thingName (p. 3)
The name of the thing to which the entity is to be associated.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
API Version 2018-09-06 3
Response Elements
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CreateFlowTemplate
Creates a workflow template. Workflows can be created only in the user's namespace. (The public namespace contains only entities.) The workflow can contain only entities in the specified namespace.
The workflow is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.
Request Syntax
{ "compatibleNamespaceVersion": number, "definition": {
"language": "string", "text": "string"
}}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
compatibleNamespaceVersion (p. 5)
The namespace version in which the workflow is to be created.
If no value is specified, the latest version is used by default.
Type: Long Required: No definition (p. 5)
The workflow DefinitionDocument.
Type: DefinitionDocument (p. 94) object Required: Yes
Response Syntax
{
"summary": { "arn": "string", "createdAt": number, "id": "string",
"revisionNumber": number }}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
API Version 2018-09-06 5
Errors
The following data is returned in JSON format by the service.
summary (p. 5)
The summary object that describes the created workflow.
Type: FlowTemplateSummary (p. 104) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 LimitExceededException
HTTP Status Code: 400 ResourceAlreadyExistsException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CreateSystemInstance
Creates a system instance.
This action validates the system instance, prepares the deployment-related resources. For Greengrass deployments, it updates the Greengrass group that is specified by the greengrassGroupName parameter. It also adds a file to the S3 bucket specified by the s3BucketName parameter. You need to call DeploySystemInstance after running this action.
For Greengrass deployments, since this action modifies and adds resources to a Greengrass group and an S3 bucket on the caller's behalf, the calling identity must have write permissions to both the specified Greengrass group and S3 bucket. Otherwise, the call will fail with an authorization error.
For cloud deployments, this action requires a flowActionsRoleArn value. This is an IAM role that has permissions to access AWS services, such as AWS Lambda and AWS IoT, that the flow uses when it executes.
If the definition document doesn't specify a version of the user's namespace, the latest version will be used by default.
Request Syntax
{ "definition": {
"language": "string", "text": "string"
},
"flowActionsRoleArn": "string", "greengrassGroupName": "string", "metricsConfiguration": { "cloudMetricEnabled": boolean, "metricRuleRoleArn": "string"
},
"s3BucketName": "string", "tags": [
{
"key": "string", "value": "string"
} ],
"target": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
definition (p. 7)
A document that defines an entity.
Type: DefinitionDocument (p. 94) object Required: Yes
API Version 2018-09-06 7
Response Syntax
flowActionsRoleArn (p. 7)
The ARN of the IAM role that AWS IoT Things Graph will assume when it executes the flow. This role must have read and write access to AWS Lambda and AWS IoT and any other AWS services that the flow uses when it executes. This value is required if the value of the target parameter is CLOUD.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Required: No
greengrassGroupName (p. 7)
The name of the Greengrass group where the system instance will be deployed. This value is required if the value of the target parameter is GREENGRASS.
Type: String Required: No
metricsConfiguration (p. 7)
An object that specifies whether cloud metrics are collected in a deployment and, if so, what role is used to collect metrics.
Type: MetricsConfiguration (p. 105) object Required: No
s3BucketName (p. 7)
The name of the Amazon Simple Storage Service bucket that will be used to store and deploy the system instance's resource file. This value is required if the value of the target parameter is GREENGRASS.
Type: String Required: No tags (p. 7)
Metadata, consisting of key-value pairs, that can be used to categorize your system instances.
Type: Array of Tag (p. 114) objects
Array Members: Minimum number of 0 items. Maximum number of 50 items.
Required: No target (p. 7)
The target type of the deployment. Valid values are GREENGRASS and CLOUD.
Type: String
Valid Values: GREENGRASS | CLOUD Required: Yes
Response Syntax
{
"summary": { "arn": "string", "createdAt": number,
"greengrassGroupId": "string", "greengrassGroupName": "string", "greengrassGroupVersionId": "string", "id": "string",
"status": "string", "target": "string", "updatedAt": number }
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
summary (p. 8)
The summary object that describes the new system instance.
Type: SystemInstanceSummary (p. 109) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 LimitExceededException
HTTP Status Code: 400 ResourceAlreadyExistsException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
API Version 2018-09-06 9
See Also
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CreateSystemTemplate
Creates a system. The system is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.
Request Syntax
{ "compatibleNamespaceVersion": number, "definition": {
"language": "string", "text": "string"
}}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
compatibleNamespaceVersion (p. 11)
The namespace version in which the system is to be created.
If no value is specified, the latest version is used by default.
Type: Long Required: No definition (p. 11)
The DefinitionDocument used to create the system.
Type: DefinitionDocument (p. 94) object Required: Yes
Response Syntax
{
"summary": { "arn": "string", "createdAt": number, "id": "string",
"revisionNumber": number }}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
API Version 2018-09-06 11
Errors
summary (p. 11)
The summary object that describes the created system.
Type: SystemTemplateSummary (p. 113) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceAlreadyExistsException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteFlowTemplate
Deletes a workflow. Any new system or deployment that contains this workflow will fail to update or deploy. Existing deployments that contain the workflow will continue to run (since they use a snapshot of the workflow taken at the time of deployment).
Request Syntax
{ "id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 13)
The ID of the workflow to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceInUseException
API Version 2018-09-06 13
See Also
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteNamespace
Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action. This action takes no request parameters.
Response Syntax
{ "namespaceArn": "string", "namespaceName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
namespaceArn (p. 15)
The ARN of the namespace to be deleted.
Type: String
namespaceName (p. 15)
The name of the namespace to be deleted.
Type: String
Length Constraints: Maximum length of 128.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException HTTP Status Code: 500 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
API Version 2018-09-06 15
See Also
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteSystemInstance
Deletes a system instance. Only system instances that have never been deployed, or that have been undeployed can be deleted.
Users can create a new system instance that has the same ID as a deleted system instance.
Request Syntax
{ "id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 17)
The ID of the system instance to be deleted.
Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceInUseException
HTTP Status Code: 400
API Version 2018-09-06 17
See Also
ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteSystemTemplate
Deletes a system. New deployments can't contain the system after its deletion. Existing deployments that contain the system will continue to work because they use a snapshot of the system that is taken when it is deployed.
Request Syntax
{ "id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 19)
The ID of the system to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceInUseException
API Version 2018-09-06 19
See Also
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeploySystemInstance
Greengrass and Cloud Deployments
Deploys the system instance to the target specified in CreateSystemInstance.
Greengrass Deployments
If the system or any workflows and entities have been updated before this action is called, then the deployment will create a new Amazon Simple Storage Service resource file and then deploy it.
Since this action creates a Greengrass deployment on the caller's behalf, the calling identity must have write permissions to the specified Greengrass group. Otherwise, the call will fail with an authorization error.
For information about the artifacts that get added to your Greengrass core device when you use this API, see AWS IoT Things Graph and AWS IoT Greengrass.
Request Syntax
{
"id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 21)
The ID of the system instance. This value is returned by the CreateSystemInstance action.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:deployment:DEPLOYMENTNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Syntax
{ "greengrassDeploymentId": "string", "summary": {
"arn": "string",
API Version 2018-09-06 21
Response Elements
"createdAt": number,
"greengrassGroupId": "string", "greengrassGroupName": "string", "greengrassGroupVersionId": "string", "id": "string",
"status": "string", "target": "string", "updatedAt": number }
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
greengrassDeploymentId (p. 21)
The ID of the Greengrass deployment used to deploy the system instance.
Type: String summary (p. 21)
An object that contains summary information about a system instance that was deployed.
Type: SystemInstanceSummary (p. 109) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceInUseException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 23
DeprecateFlowTemplate
DeprecateFlowTemplate
Deprecates the specified workflow. This action marks the workflow for deletion. Deprecated flows can't be deployed, but existing deployments will continue to run.
Request Syntax
{
"id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 24)
The ID of the workflow to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 25
DeprecateSystemTemplate
DeprecateSystemTemplate
Deprecates the specified system.
Request Syntax
{ "id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 26)
The ID of the system to delete.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400
ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 27
DescribeNamespace
DescribeNamespace
Gets the latest version of the user's namespace and the public version that it is tracking.
Request Syntax
{
"namespaceName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
namespaceName (p. 28)
The name of the user's namespace. Set this to aws to get the public namespace.
Type: String
Length Constraints: Maximum length of 128.
Required: No
Response Syntax
{
"namespaceArn": "string", "namespaceName": "string", "namespaceVersion": number, "trackingNamespaceName": "string", "trackingNamespaceVersion": number }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
namespaceArn (p. 28)
The ARN of the namespace.
Type: String
namespaceName (p. 28)
The name of the namespace.
Type: String
Length Constraints: Maximum length of 128.
namespaceVersion (p. 28)
The version of the user's namespace to describe.
Type: Long
trackingNamespaceName (p. 28)
The name of the public namespace that the latest namespace version is tracking.
Type: String
Length Constraints: Maximum length of 128.
trackingNamespaceVersion (p. 28)
The version of the public namespace that the latest version is tracking.
Type: Long
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 29
See Also
DissociateEntityFromThing
Dissociates a device entity from a concrete thing. The action takes only the type of the entity that you need to dissociate because only one entity of a particular type can be associated with a thing.
Request Syntax
{
"entityType": "string", "thingName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
entityType (p. 31)
The entity type from which to disassociate the thing.
Type: String
Valid Values: DEVICE | SERVICE | DEVICE_MODEL | CAPABILITY | STATE | ACTION | EVENT | PROPERTY | MAPPING | ENUM
Required: Yes thingName (p. 31)
The name of the thing to disassociate.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [a-zA-Z0-9:_-]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
API Version 2018-09-06 31
See Also
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetEntities
Gets definitions of the specified entities. Uses the latest version of the user's namespace by default. This API returns the following TDM entities.
• Properties
• States
• Events
• Actions
• Capabilities
• Mappings
• Devices
• Device Models
• Services
This action doesn't return definitions for systems, flows, and deployments.
Request Syntax
{
"ids": [ "string" ], "namespaceVersion": number }
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
ids (p. 33)
An array of entity IDs.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 25 items.
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
namespaceVersion (p. 33)
The version of the user's namespace. Defaults to the latest version of the user's namespace.
Type: Long
API Version 2018-09-06 33
Response Syntax
Required: No
Response Syntax
{ "descriptions": [ {
"arn": "string", "createdAt": number, "definition": {
"language": "string", "text": "string"
},
"id": "string", "type": "string"
} ]}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
descriptions (p. 34)
An array of descriptions for the specified entities.
Type: Array of EntityDescription (p. 96) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 35
GetFlowTemplate
GetFlowTemplate
Gets the latest version of the DefinitionDocument and FlowTemplateSummary for the specified workflow.
Request Syntax
{ "id": "string",
"revisionNumber": number }
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 36)
The ID of the workflow.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes revisionNumber (p. 36)
The number of the workflow revision to retrieve.
Type: Long Required: No
Response Syntax
{ "description": { "definition": {
"language": "string", "text": "string"
},
"summary": { "arn": "string", "createdAt": number, "id": "string",
"revisionNumber": number },
"validatedNamespaceVersion": number }
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
description (p. 36)
The object that describes the specified workflow.
Type: FlowTemplateDescription (p. 102) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 37
GetFlowTemplateRevisions
GetFlowTemplateRevisions
Gets revisions of the specified workflow. Only the last 100 revisions are stored. If the workflow has been deprecated, this action will return revisions that occurred before the deprecation. This action won't work for workflows that have been deleted.
Request Syntax
{
"id": "string", "maxResults": number, "nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 38)
The ID of the workflow.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes maxResults (p. 38)
The maximum number of results to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 250.
Required: No nextToken (p. 38)
The string that specifies the next page of results. Use this when you're paginating results.
Type: String Required: No
Response Syntax
{
"nextToken": "string", "summaries": [ {
"arn": "string", "createdAt": number, "id": "string",
"revisionNumber": number }
]}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
nextToken (p. 39)
The string to specify as nextToken when you request the next page of results.
Type: String summaries (p. 39)
An array of objects that provide summary data about each revision.
Type: Array of FlowTemplateSummary (p. 104) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
API Version 2018-09-06 39
See Also
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetNamespaceDeletionStatus
Gets the status of a namespace deletion task.
Response Syntax
{ "errorCode": "string", "errorMessage": "string", "namespaceArn": "string", "namespaceName": "string", "status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
errorCode (p. 41)
An error code returned by the namespace deletion task.
Type: String
Valid Values: VALIDATION_FAILED errorMessage (p. 41)
An error code returned by the namespace deletion task.
Type: String namespaceArn (p. 41)
The ARN of the namespace that is being deleted.
Type: String
namespaceName (p. 41)
The name of the namespace that is being deleted.
Type: String
Length Constraints: Maximum length of 128.
status (p. 41)
The status of the deletion request.
Type: String
Valid Values: IN_PROGRESS | SUCCEEDED | FAILED
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
API Version 2018-09-06 41
See Also
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetSystemInstance
Gets a system instance.
Request Syntax
{ "id": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 43)
The ID of the system deployment instance. This value is returned by CreateSystemInstance.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:deployment:DEPLOYMENTNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes
Response Syntax
{ "description": { "definition": {
"language": "string", "text": "string"
},
"flowActionsRoleArn": "string", "metricsConfiguration": { "cloudMetricEnabled": boolean, "metricRuleRoleArn": "string"
},
"s3BucketName": "string", "summary": {
"arn": "string", "createdAt": number,
"greengrassGroupId": "string", "greengrassGroupName": "string", "greengrassGroupVersionId": "string", "id": "string",
API Version 2018-09-06 43
Response Elements
"status": "string", "target": "string", "updatedAt": number },
"validatedDependencyRevisions": [ {
"id": "string",
"revisionNumber": number }
],
"validatedNamespaceVersion": number }}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
description (p. 43)
An object that describes the system instance.
Type: SystemInstanceDescription (p. 106) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 45
GetSystemTemplate
GetSystemTemplate
Gets a system.
Request Syntax
{ "id": "string",
"revisionNumber": number }
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 46)
The ID of the system to get. This ID must be in the user's namespace.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes revisionNumber (p. 46)
The number that specifies the revision of the system to get.
Type: Long Required: No
Response Syntax
{
"description": { "definition": {
"language": "string", "text": "string"
},
"summary": { "arn": "string", "createdAt": number, "id": "string",
"revisionNumber": number
},
"validatedNamespaceVersion": number }}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
description (p. 46)
An object that contains summary data about the system.
Type: SystemTemplateDescription (p. 111) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 47
GetSystemTemplateRevisions
GetSystemTemplateRevisions
Gets revisions made to the specified system template. Only the previous 100 revisions are stored. If the system has been deprecated, this action will return the revisions that occurred before its deprecation.
This action won't work with systems that have been deleted.
Request Syntax
{
"id": "string", "maxResults": number, "nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
id (p. 48)
The ID of the system template.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME Type: String
Length Constraints: Maximum length of 160.
Pattern: ^urn:tdm:(([a-z]{2}-(gov-)?[a-z]{4,9}-[0-9]{1,3}/
[0-9]+/)*[\p{Alnum}_]+(/[\p{Alnum}_]+)*):([\p{Alpha}]*):([\p{Alnum}_]+(/
[\p{Alnum}_]+)*)$
Required: Yes maxResults (p. 48)
The maximum number of results to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 250.
Required: No nextToken (p. 48)
The string that specifies the next page of results. Use this when you're paginating results.
Type: String Required: No
Response Syntax
{
"nextToken": "string", "summaries": [ {
"arn": "string", "createdAt": number, "id": "string",
"revisionNumber": number }
]}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
nextToken (p. 49)
The string to specify as nextToken when you request the next page of results.
Type: String summaries (p. 49)
An array of objects that contain summary data about the system template revisions.
Type: Array of SystemTemplateSummary (p. 113) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
API Version 2018-09-06 49
See Also
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetUploadStatus
Gets the status of the specified upload.
Request Syntax
{ "uploadId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
uploadId (p. 51)
The ID of the upload. This value is returned by the UploadEntityDefinitions action.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 40.
Required: Yes
Response Syntax
{ "createdDate": number,
"failureReason": [ "string" ], "namespaceArn": "string", "namespaceName": "string", "namespaceVersion": number, "uploadId": "string", "uploadStatus": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
createdDate (p. 51)
The date at which the upload was created.
Type: Timestamp failureReason (p. 51)
The reason for an upload failure.
Type: Array of strings
API Version 2018-09-06 51
Errors
namespaceArn (p. 51) The ARN of the upload.
Type: String
namespaceName (p. 51)
The name of the upload's namespace.
Type: String
Length Constraints: Maximum length of 128.
namespaceVersion (p. 51)
The version of the user's namespace. Defaults to the latest version of the user's namespace.
Type: Long uploadId (p. 51)
The ID of the upload.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 40.
uploadStatus (p. 51)
The status of the upload. The initial status is IN_PROGRESS. The response show all validation failures if the upload fails.
Type: String
Valid Values: IN_PROGRESS | SUCCEEDED | FAILED
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 53
ListFlowExecutionMessages
ListFlowExecutionMessages
Returns a list of objects that contain information about events in a flow execution.
Request Syntax
{
"flowExecutionId": "string", "maxResults": number, "nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
flowExecutionId (p. 54)
The ID of the flow execution.
Type: String Required: Yes maxResults (p. 54)
The maximum number of results to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 250.
Required: No nextToken (p. 54)
The string that specifies the next page of results. Use this when you're paginating results.
Type: String Required: No
Response Syntax
{ "messages": [ {
"eventType": "string", "messageId": "string", "payload": "string", "timestamp": number }
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
messages (p. 54)
A list of objects that contain information about events in the specified flow execution.
Type: Array of FlowExecutionMessage (p. 99) objects nextToken (p. 54)
The string to specify as nextToken when you request the next page of results.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceNotFoundException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 55
See Also
ListTagsForResource
Lists all tags on an AWS IoT Things Graph resource.
Request Syntax
{
"maxResults": number, "nextToken": "string", "resourceArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 116).
The request accepts the following data in JSON format.
maxResults (p. 57)
The maximum number of tags to return.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 250.
Required: No nextToken (p. 57)
The token that specifies the next page of results to return.
Type: String Required: No resourceArn (p. 57)
The Amazon Resource Name (ARN) of the resource whose tags are to be returned.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Required: Yes
Response Syntax
{
"nextToken": "string", "tags": [
{
"key": "string", "value": "string"
} ]
API Version 2018-09-06 57
Response Elements
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
nextToken (p. 57)
The token that specifies the next page of results to return.
Type: String tags (p. 57)
List of tags returned by the ListTagsForResource operation.
Type: Array of Tag (p. 114) objects
Array Members: Minimum number of 0 items. Maximum number of 50 items.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 118).
InternalFailureException
HTTP Status Code: 500 InvalidRequestException
HTTP Status Code: 400 ResourceAlreadyExistsException
HTTP Status Code: 400 ThrottlingException
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
API Version 2018-09-06 59