Table of Contents
A low-level client representing AWS IoT Things Graph:
import boto3
client = boto3.client('iotthingsgraph')
These are the available methods:
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.
See also: AWS API Documentation
Request Syntax
response = client.associate_entity_to_thing(
thingName='string',
entityId='string',
namespaceVersion=123
)
[REQUIRED]
The name of the thing to which the entity is to be associated.
[REQUIRED]
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
dict
Response Syntax
{}
Response Structure
Check if an operation can be paginated.
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.
See also: AWS API Documentation
Request Syntax
response = client.create_flow_template(
definition={
'language': 'GRAPHQL',
'text': 'string'
},
compatibleNamespaceVersion=123
)
[REQUIRED]
The workflow DefinitionDocument .
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
The namespace version in which the workflow is to be created.
If no value is specified, the latest version is used by default.
dict
Response Syntax
{
'summary': {
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
summary (dict) --
The summary object that describes the created workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
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.
See also: AWS API Documentation
Request Syntax
response = client.create_system_instance(
tags=[
{
'key': 'string',
'value': 'string'
},
],
definition={
'language': 'GRAPHQL',
'text': 'string'
},
target='GREENGRASS'|'CLOUD',
greengrassGroupName='string',
s3BucketName='string',
metricsConfiguration={
'cloudMetricEnabled': True|False,
'metricRuleRoleArn': 'string'
},
flowActionsRoleArn='string'
)
Metadata, consisting of key-value pairs, that can be used to categorize your system instances.
Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.
The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.
The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.
[REQUIRED]
A document that defines an entity.
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
[REQUIRED]
The target type of the deployment. Valid values are GREENGRASS and CLOUD .
An object that specifies whether cloud metrics are collected in a deployment and, if so, what role is used to collect metrics.
A Boolean that specifies whether cloud metrics are collected.
The ARN of the role that is used to collect cloud metrics.
dict
Response Syntax
{
'summary': {
'id': 'string',
'arn': 'string',
'status': 'NOT_DEPLOYED'|'BOOTSTRAP'|'DEPLOY_IN_PROGRESS'|'DEPLOYED_IN_TARGET'|'UNDEPLOY_IN_PROGRESS'|'FAILED'|'PENDING_DELETE'|'DELETED_IN_TARGET',
'target': 'GREENGRASS'|'CLOUD',
'greengrassGroupName': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'greengrassGroupId': 'string',
'greengrassGroupVersionId': 'string'
}
}
Response Structure
(dict) --
summary (dict) --
The summary object that describes the new system instance.
id (string) --
The ID of the system instance.
arn (string) --
The ARN of the system instance.
status (string) --
The status of the system instance.
target (string) --
The target of the system instance.
greengrassGroupName (string) --
The ID of the Greengrass group where the system instance is deployed.
createdAt (datetime) --
The date when the system instance was created.
updatedAt (datetime) --
The date and time when the system instance was last updated.
greengrassGroupId (string) --
The ID of the Greengrass group where the system instance is deployed.
greengrassGroupVersionId (string) --
The version of the Greengrass group where the system instance is deployed.
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.
See also: AWS API Documentation
Request Syntax
response = client.create_system_template(
definition={
'language': 'GRAPHQL',
'text': 'string'
},
compatibleNamespaceVersion=123
)
[REQUIRED]
The DefinitionDocument used to create the system.
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
The namespace version in which the system is to be created.
If no value is specified, the latest version is used by default.
dict
Response Syntax
{
'summary': {
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
summary (dict) --
The summary object that describes the created system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
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).
See also: AWS API Documentation
Request Syntax
response = client.delete_flow_template(
id='string'
)
[REQUIRED]
The ID of the workflow to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
{}
Response Structure
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.
See also: AWS API Documentation
Request Syntax
response = client.delete_namespace()
{
'namespaceArn': 'string',
'namespaceName': 'string'
}
Response Structure
The ARN of the namespace to be deleted.
The name of the namespace to be deleted.
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.
See also: AWS API Documentation
Request Syntax
response = client.delete_system_instance(
id='string'
)
{}
Response Structure
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.
See also: AWS API Documentation
Request Syntax
response = client.delete_system_template(
id='string'
)
[REQUIRED]
The ID of the system to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME
{}
Response Structure
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 .
See also: AWS API Documentation
Request Syntax
response = client.deploy_system_instance(
id='string'
)
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
{
'summary': {
'id': 'string',
'arn': 'string',
'status': 'NOT_DEPLOYED'|'BOOTSTRAP'|'DEPLOY_IN_PROGRESS'|'DEPLOYED_IN_TARGET'|'UNDEPLOY_IN_PROGRESS'|'FAILED'|'PENDING_DELETE'|'DELETED_IN_TARGET',
'target': 'GREENGRASS'|'CLOUD',
'greengrassGroupName': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'greengrassGroupId': 'string',
'greengrassGroupVersionId': 'string'
},
'greengrassDeploymentId': 'string'
}
Response Structure
An object that contains summary information about a system instance that was deployed.
The ID of the system instance.
The ARN of the system instance.
The status of the system instance.
The target of the system instance.
The ID of the Greengrass group where the system instance is deployed.
The date when the system instance was created.
The date and time when the system instance was last updated.
The ID of the Greengrass group where the system instance is deployed.
The version of the Greengrass group where the system instance is deployed.
The ID of the Greengrass deployment used to deploy the system instance.
Deprecates the specified workflow. This action marks the workflow for deletion. Deprecated flows can't be deployed, but existing deployments will continue to run.
See also: AWS API Documentation
Request Syntax
response = client.deprecate_flow_template(
id='string'
)
[REQUIRED]
The ID of the workflow to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
{}
Response Structure
Deprecates the specified system.
See also: AWS API Documentation
Request Syntax
response = client.deprecate_system_template(
id='string'
)
[REQUIRED]
The ID of the system to delete.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME
{}
Response Structure
Gets the latest version of the user's namespace and the public version that it is tracking.
See also: AWS API Documentation
Request Syntax
response = client.describe_namespace(
namespaceName='string'
)
{
'namespaceArn': 'string',
'namespaceName': 'string',
'trackingNamespaceName': 'string',
'trackingNamespaceVersion': 123,
'namespaceVersion': 123
}
Response Structure
The ARN of the namespace.
The name of the namespace.
The name of the public namespace that the latest namespace version is tracking.
The version of the public namespace that the latest version is tracking.
The version of the user's namespace to describe.
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.
See also: AWS API Documentation
Request Syntax
response = client.dissociate_entity_from_thing(
thingName='string',
entityType='DEVICE'|'SERVICE'|'DEVICE_MODEL'|'CAPABILITY'|'STATE'|'ACTION'|'EVENT'|'PROPERTY'|'MAPPING'|'ENUM'
)
[REQUIRED]
The name of the thing to disassociate.
[REQUIRED]
The entity type from which to disassociate the thing.
dict
Response Syntax
{}
Response Structure
Generate a presigned url given a client, its method, and arguments
The presigned url
Gets definitions of the specified entities. Uses the latest version of the user's namespace by default. This API returns the following TDM entities.
This action doesn't return definitions for systems, flows, and deployments.
See also: AWS API Documentation
Request Syntax
response = client.get_entities(
ids=[
'string',
],
namespaceVersion=123
)
[REQUIRED]
An array of entity IDs.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
dict
Response Syntax
{
'descriptions': [
{
'id': 'string',
'arn': 'string',
'type': 'DEVICE'|'SERVICE'|'DEVICE_MODEL'|'CAPABILITY'|'STATE'|'ACTION'|'EVENT'|'PROPERTY'|'MAPPING'|'ENUM',
'createdAt': datetime(2015, 1, 1),
'definition': {
'language': 'GRAPHQL',
'text': 'string'
}
},
]
}
Response Structure
(dict) --
descriptions (list) --
An array of descriptions for the specified entities.
(dict) --
Describes the properties of an entity.
id (string) --
The entity ID.
arn (string) --
The entity ARN.
type (string) --
The entity type.
createdAt (datetime) --
The time at which the entity was created.
definition (dict) --
The definition document of the entity.
language (string) --
The language used to define the entity. GRAPHQL is the only valid value.
text (string) --
The GraphQL text that defines the entity.
Gets the latest version of the DefinitionDocument and FlowTemplateSummary for the specified workflow.
See also: AWS API Documentation
Request Syntax
response = client.get_flow_template(
id='string',
revisionNumber=123
)
[REQUIRED]
The ID of the workflow.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
dict
Response Syntax
{
'description': {
'summary': {
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
'definition': {
'language': 'GRAPHQL',
'text': 'string'
},
'validatedNamespaceVersion': 123
}
}
Response Structure
(dict) --
description (dict) --
The object that describes the specified workflow.
summary (dict) --
An object that contains summary information about a workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
definition (dict) --
A workflow's definition document.
language (string) --
The language used to define the entity. GRAPHQL is the only valid value.
text (string) --
The GraphQL text that defines the entity.
validatedNamespaceVersion (integer) --
The version of the user's namespace against which the workflow was validated. Use this value in your system instance.
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.
See also: AWS API Documentation
Request Syntax
response = client.get_flow_template_revisions(
id='string',
nextToken='string',
maxResults=123
)
[REQUIRED]
The ID of the workflow.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that provide summary data about each revision.
(dict) --
An object that contains summary information about a workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Gets the status of a namespace deletion task.
See also: AWS API Documentation
Request Syntax
response = client.get_namespace_deletion_status()
{
'namespaceArn': 'string',
'namespaceName': 'string',
'status': 'IN_PROGRESS'|'SUCCEEDED'|'FAILED',
'errorCode': 'VALIDATION_FAILED',
'errorMessage': 'string'
}
Response Structure
The ARN of the namespace that is being deleted.
The name of the namespace that is being deleted.
The status of the deletion request.
An error code returned by the namespace deletion task.
An error code returned by the namespace deletion task.
Create a paginator for an operation.
Gets a system instance.
See also: AWS API Documentation
Request Syntax
response = client.get_system_instance(
id='string'
)
[REQUIRED]
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
{
'description': {
'summary': {
'id': 'string',
'arn': 'string',
'status': 'NOT_DEPLOYED'|'BOOTSTRAP'|'DEPLOY_IN_PROGRESS'|'DEPLOYED_IN_TARGET'|'UNDEPLOY_IN_PROGRESS'|'FAILED'|'PENDING_DELETE'|'DELETED_IN_TARGET',
'target': 'GREENGRASS'|'CLOUD',
'greengrassGroupName': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'greengrassGroupId': 'string',
'greengrassGroupVersionId': 'string'
},
'definition': {
'language': 'GRAPHQL',
'text': 'string'
},
's3BucketName': 'string',
'metricsConfiguration': {
'cloudMetricEnabled': True|False,
'metricRuleRoleArn': 'string'
},
'validatedNamespaceVersion': 123,
'validatedDependencyRevisions': [
{
'id': 'string',
'revisionNumber': 123
},
],
'flowActionsRoleArn': 'string'
}
}
Response Structure
An object that describes the system instance.
An object that contains summary information about a system instance.
The ID of the system instance.
The ARN of the system instance.
The status of the system instance.
The target of the system instance.
The ID of the Greengrass group where the system instance is deployed.
The date when the system instance was created.
The date and time when the system instance was last updated.
The ID of the Greengrass group where the system instance is deployed.
The version of the Greengrass group where the system instance is deployed.
A document that defines an entity.
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
The Amazon Simple Storage Service bucket where information about a system instance is stored.
An object that specifies whether cloud metrics are collected in a deployment and, if so, what role is used to collect metrics.
A Boolean that specifies whether cloud metrics are collected.
The ARN of the role that is used to collect cloud metrics.
The version of the user's namespace against which the system instance was validated.
A list of objects that contain all of the IDs and revision numbers of workflows and systems that are used in a system instance.
An object that contains the ID and revision number of a workflow or system that is part of a deployment.
The ID of the workflow or system.
The revision number of the workflow or system.
The AWS Identity and Access Management (IAM) role that AWS IoT Things Graph assumes during flow execution in a cloud deployment. This role must have read and write permissionss to AWS Lambda and AWS IoT and to any other AWS services that the flow uses.
Gets a system.
See also: AWS API Documentation
Request Syntax
response = client.get_system_template(
id='string',
revisionNumber=123
)
[REQUIRED]
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
dict
Response Syntax
{
'description': {
'summary': {
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
'definition': {
'language': 'GRAPHQL',
'text': 'string'
},
'validatedNamespaceVersion': 123
}
}
Response Structure
(dict) --
description (dict) --
An object that contains summary data about the system.
summary (dict) --
An object that contains summary information about a system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
definition (dict) --
The definition document of a system.
language (string) --
The language used to define the entity. GRAPHQL is the only valid value.
text (string) --
The GraphQL text that defines the entity.
validatedNamespaceVersion (integer) --
The namespace version against which the system was validated. Use this value in your system instance.
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.
See also: AWS API Documentation
Request Syntax
response = client.get_system_template_revisions(
id='string',
nextToken='string',
maxResults=123
)
[REQUIRED]
The ID of the system template.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary data about the system template revisions.
(dict) --
An object that contains information about a system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Gets the status of the specified upload.
See also: AWS API Documentation
Request Syntax
response = client.get_upload_status(
uploadId='string'
)
[REQUIRED]
The ID of the upload. This value is returned by the UploadEntityDefinitions action.
{
'uploadId': 'string',
'uploadStatus': 'IN_PROGRESS'|'SUCCEEDED'|'FAILED',
'namespaceArn': 'string',
'namespaceName': 'string',
'namespaceVersion': 123,
'failureReason': [
'string',
],
'createdDate': datetime(2015, 1, 1)
}
Response Structure
The ID of the upload.
The status of the upload. The initial status is IN_PROGRESS . The response show all validation failures if the upload fails.
The ARN of the upload.
The name of the upload's namespace.
The version of the user's namespace. Defaults to the latest version of the user's namespace.
The reason for an upload failure.
The date at which the upload was created.
Returns an object that can wait for some condition.
Returns a list of objects that contain information about events in a flow execution.
See also: AWS API Documentation
Request Syntax
response = client.list_flow_execution_messages(
flowExecutionId='string',
nextToken='string',
maxResults=123
)
[REQUIRED]
The ID of the flow execution.
dict
Response Syntax
{
'messages': [
{
'messageId': 'string',
'eventType': 'EXECUTION_STARTED'|'EXECUTION_FAILED'|'EXECUTION_ABORTED'|'EXECUTION_SUCCEEDED'|'STEP_STARTED'|'STEP_FAILED'|'STEP_SUCCEEDED'|'ACTIVITY_SCHEDULED'|'ACTIVITY_STARTED'|'ACTIVITY_FAILED'|'ACTIVITY_SUCCEEDED'|'START_FLOW_EXECUTION_TASK'|'SCHEDULE_NEXT_READY_STEPS_TASK'|'THING_ACTION_TASK'|'THING_ACTION_TASK_FAILED'|'THING_ACTION_TASK_SUCCEEDED'|'ACKNOWLEDGE_TASK_MESSAGE',
'timestamp': datetime(2015, 1, 1),
'payload': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
messages (list) --
A list of objects that contain information about events in the specified flow execution.
(dict) --
An object that contains information about a flow event.
messageId (string) --
The unique identifier of the message.
eventType (string) --
The type of flow event .
timestamp (datetime) --
The date and time when the message was last updated.
payload (string) --
A string containing information about the flow event.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Lists all tags on an AWS IoT Things Graph resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
maxResults=123,
resourceArn='string',
nextToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource whose tags are to be returned.
dict
Response Syntax
{
'tags': [
{
'key': 'string',
'value': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
tags (list) --
List of tags returned by the ListTagsForResource operation.
(dict) --
Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.
key (string) --
The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.
value (string) --
The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.
nextToken (string) --
The token that specifies the next page of results to return.
Searches for entities of the specified type. You can search for entities in your namespace and the public namespace that you're tracking.
See also: AWS API Documentation
Request Syntax
response = client.search_entities(
entityTypes=[
'DEVICE'|'SERVICE'|'DEVICE_MODEL'|'CAPABILITY'|'STATE'|'ACTION'|'EVENT'|'PROPERTY'|'MAPPING'|'ENUM',
],
filters=[
{
'name': 'NAME'|'NAMESPACE'|'SEMANTIC_TYPE_PATH'|'REFERENCED_ENTITY_ID',
'value': [
'string',
]
},
],
nextToken='string',
maxResults=123,
namespaceVersion=123
)
[REQUIRED]
The entity types for which to search.
Optional filter to apply to the search. Valid filters are NAME NAMESPACE , SEMANTIC_TYPE_PATH and REFERENCED_ENTITY_ID . REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.
Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.
An object that filters an entity search. Multiple filters function as OR criteria in the search. For example a search that includes a NAMESPACE and a REFERENCED_ENTITY_ID filter searches for entities in the specified namespace that use the entity specified by the value of REFERENCED_ENTITY_ID .
The name of the entity search filter field. REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
dict
Response Syntax
{
'descriptions': [
{
'id': 'string',
'arn': 'string',
'type': 'DEVICE'|'SERVICE'|'DEVICE_MODEL'|'CAPABILITY'|'STATE'|'ACTION'|'EVENT'|'PROPERTY'|'MAPPING'|'ENUM',
'createdAt': datetime(2015, 1, 1),
'definition': {
'language': 'GRAPHQL',
'text': 'string'
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
descriptions (list) --
An array of descriptions for each entity returned in the search result.
(dict) --
Describes the properties of an entity.
id (string) --
The entity ID.
arn (string) --
The entity ARN.
type (string) --
The entity type.
createdAt (datetime) --
The time at which the entity was created.
definition (dict) --
The definition document of the entity.
language (string) --
The language used to define the entity. GRAPHQL is the only valid value.
text (string) --
The GraphQL text that defines the entity.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Searches for AWS IoT Things Graph workflow execution instances.
See also: AWS API Documentation
Request Syntax
response = client.search_flow_executions(
systemInstanceId='string',
flowExecutionId='string',
startTime=datetime(2015, 1, 1),
endTime=datetime(2015, 1, 1),
nextToken='string',
maxResults=123
)
[REQUIRED]
The ID of the system instance that contains the flow.
dict
Response Syntax
{
'summaries': [
{
'flowExecutionId': 'string',
'status': 'RUNNING'|'ABORTED'|'SUCCEEDED'|'FAILED',
'systemInstanceId': 'string',
'flowTemplateId': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary information about each workflow execution in the result set.
(dict) --
An object that contains summary information about a flow execution.
flowExecutionId (string) --
The ID of the flow execution.
status (string) --
The current status of the flow execution.
systemInstanceId (string) --
The ID of the system instance that contains the flow.
flowTemplateId (string) --
The ID of the flow.
createdAt (datetime) --
The date and time when the flow execution summary was created.
updatedAt (datetime) --
The date and time when the flow execution summary was last updated.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Searches for summary information about workflows.
See also: AWS API Documentation
Request Syntax
response = client.search_flow_templates(
filters=[
{
'name': 'DEVICE_MODEL_ID',
'value': [
'string',
]
},
],
nextToken='string',
maxResults=123
)
An array of objects that limit the result set. The only valid filter is DEVICE_MODEL_ID .
An object that filters a workflow search.
The name of the search filter field.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary information about each workflow in the result set.
(dict) --
An object that contains summary information about a workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Searches for system instances in the user's account.
See also: AWS API Documentation
Request Syntax
response = client.search_system_instances(
filters=[
{
'name': 'SYSTEM_TEMPLATE_ID'|'STATUS'|'GREENGRASS_GROUP_NAME',
'value': [
'string',
]
},
],
nextToken='string',
maxResults=123
)
Optional filter to apply to the search. Valid filters are SYSTEM_TEMPLATE_ID , STATUS , and GREENGRASS_GROUP_NAME .
Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.
An object that filters a system instance search. Multiple filters function as OR criteria in the search. For example a search that includes a GREENGRASS_GROUP_NAME and a STATUS filter searches for system instances in the specified Greengrass group that have the specified status.
The name of the search filter field.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'status': 'NOT_DEPLOYED'|'BOOTSTRAP'|'DEPLOY_IN_PROGRESS'|'DEPLOYED_IN_TARGET'|'UNDEPLOY_IN_PROGRESS'|'FAILED'|'PENDING_DELETE'|'DELETED_IN_TARGET',
'target': 'GREENGRASS'|'CLOUD',
'greengrassGroupName': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'greengrassGroupId': 'string',
'greengrassGroupVersionId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary data abour the system instances in the result set.
(dict) --
An object that contains summary information about a system instance.
id (string) --
The ID of the system instance.
arn (string) --
The ARN of the system instance.
status (string) --
The status of the system instance.
target (string) --
The target of the system instance.
greengrassGroupName (string) --
The ID of the Greengrass group where the system instance is deployed.
createdAt (datetime) --
The date when the system instance was created.
updatedAt (datetime) --
The date and time when the system instance was last updated.
greengrassGroupId (string) --
The ID of the Greengrass group where the system instance is deployed.
greengrassGroupVersionId (string) --
The version of the Greengrass group where the system instance is deployed.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Searches for summary information about systems in the user's account. You can filter by the ID of a workflow to return only systems that use the specified workflow.
See also: AWS API Documentation
Request Syntax
response = client.search_system_templates(
filters=[
{
'name': 'FLOW_TEMPLATE_ID',
'value': [
'string',
]
},
],
nextToken='string',
maxResults=123
)
An array of filters that limit the result set. The only valid filter is FLOW_TEMPLATE_ID .
An object that filters a system search.
The name of the system search filter field.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary information about each system deployment in the result set.
(dict) --
An object that contains information about a system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Searches for things associated with the specified entity. You can search by both device and device model.
For example, if two different devices, camera1 and camera2, implement the camera device model, the user can associate thing1 to camera1 and thing2 to camera2. SearchThings(camera2) will return only thing2, but SearchThings(camera) will return both thing1 and thing2.
This action searches for exact matches and doesn't perform partial text matching.
See also: AWS API Documentation
Request Syntax
response = client.search_things(
entityId='string',
nextToken='string',
maxResults=123,
namespaceVersion=123
)
[REQUIRED]
The ID of the entity to which the things are associated.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
dict
Response Syntax
{
'things': [
{
'thingArn': 'string',
'thingName': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
things (list) --
An array of things in the result set.
(dict) --
An AWS IoT thing.
thingArn (string) --
The ARN of the thing.
thingName (string) --
The name of the thing.
nextToken (string) --
The string to specify as nextToken when you request the next page of results.
Creates a tag for the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource whose tags are returned.
[REQUIRED]
A list of tags to add to the resource.>
Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.
The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.
The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.
dict
Response Syntax
{}
Response Structure
Removes a system instance from its target (Cloud or Greengrass).
See also: AWS API Documentation
Request Syntax
response = client.undeploy_system_instance(
id='string'
)
{
'summary': {
'id': 'string',
'arn': 'string',
'status': 'NOT_DEPLOYED'|'BOOTSTRAP'|'DEPLOY_IN_PROGRESS'|'DEPLOYED_IN_TARGET'|'UNDEPLOY_IN_PROGRESS'|'FAILED'|'PENDING_DELETE'|'DELETED_IN_TARGET',
'target': 'GREENGRASS'|'CLOUD',
'greengrassGroupName': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'greengrassGroupId': 'string',
'greengrassGroupVersionId': 'string'
}
}
Response Structure
An object that contains summary information about the system instance that was removed from its target.
The ID of the system instance.
The ARN of the system instance.
The status of the system instance.
The target of the system instance.
The ID of the Greengrass group where the system instance is deployed.
The date when the system instance was created.
The date and time when the system instance was last updated.
The ID of the Greengrass group where the system instance is deployed.
The version of the Greengrass group where the system instance is deployed.
Removes a tag from the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource whose tags are to be removed.
[REQUIRED]
A list of tag key names to remove from the resource. You don't specify the value. Both the key and its associated value are removed.
This parameter to the API requires a JSON text string argument. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide .
dict
Response Syntax
{}
Response Structure
Updates the specified workflow. All deployed systems and system instances that use the workflow will see the changes in the flow when it is redeployed. If you don't want this behavior, copy the workflow (creating a new workflow with a different ID), and update the copy. The workflow can contain only entities in the specified namespace.
See also: AWS API Documentation
Request Syntax
response = client.update_flow_template(
id='string',
definition={
'language': 'GRAPHQL',
'text': 'string'
},
compatibleNamespaceVersion=123
)
[REQUIRED]
The ID of the workflow to be updated.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
[REQUIRED]
The DefinitionDocument that contains the updated workflow definition.
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
The version of the user's namespace.
If no value is specified, the latest version is used by default. Use the GetFlowTemplateRevisions if you want to find earlier revisions of the flow to update.
dict
Response Syntax
{
'summary': {
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
summary (dict) --
An object containing summary information about the updated workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
Updates the specified system. You don't need to run this action after updating a workflow. Any deployment that uses the system will see the changes in the system when it is redeployed.
See also: AWS API Documentation
Request Syntax
response = client.update_system_template(
id='string',
definition={
'language': 'GRAPHQL',
'text': 'string'
},
compatibleNamespaceVersion=123
)
[REQUIRED]
The ID of the system to be updated.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME
[REQUIRED]
The DefinitionDocument that contains the updated system definition.
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
The version of the user's namespace. Defaults to the latest version of the user's namespace.
If no value is specified, the latest version is used by default.
dict
Response Syntax
{
'summary': {
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
summary (dict) --
An object containing summary information about the updated system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
Asynchronously uploads one or more entity definitions to the user's namespace. The document parameter is required if syncWithPublicNamespace and deleteExistingEntites are false. If the syncWithPublicNamespace parameter is set to true , the user's namespace will synchronize with the latest version of the public namespace. If deprecateExistingEntities is set to true, all entities in the latest version will be deleted before the new DefinitionDocument is uploaded.
When a user uploads entity definitions for the first time, the service creates a new namespace for the user. The new namespace tracks the public namespace. Currently users can have only one namespace. The namespace version increments whenever a user uploads entity definitions that are backwards-incompatible and whenever a user sets the syncWithPublicNamespace parameter or the deprecateExistingEntities parameter to true .
The IDs for all of the entities should be in URN format. Each entity must be in the user's namespace. Users can't create entities in the public namespace, but entity definitions can refer to entities in the public namespace.
Valid entities are Device , DeviceModel , Service , Capability , State , Action , Event , Property , Mapping , Enum .
See also: AWS API Documentation
Request Syntax
response = client.upload_entity_definitions(
document={
'language': 'GRAPHQL',
'text': 'string'
},
syncWithPublicNamespace=True|False,
deprecateExistingEntities=True|False
)
The DefinitionDocument that defines the updated entities.
The language used to define the entity. GRAPHQL is the only valid value.
The GraphQL text that defines the entity.
dict
Response Syntax
{
'uploadId': 'string'
}
Response Structure
(dict) --
uploadId (string) --
The ID that specifies the upload action. You can use this to track the status of the upload.
The available paginators are:
paginator = client.get_paginator('get_flow_template_revisions')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.get_flow_template_revisions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
id='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the workflow.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that provide summary data about each revision.
(dict) --
An object that contains summary information about a workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('get_system_template_revisions')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.get_system_template_revisions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
id='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the system template.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary data about the system template revisions.
(dict) --
An object that contains information about a system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_flow_execution_messages')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.list_flow_execution_messages().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
flowExecutionId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the flow execution.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'messages': [
{
'messageId': 'string',
'eventType': 'EXECUTION_STARTED'|'EXECUTION_FAILED'|'EXECUTION_ABORTED'|'EXECUTION_SUCCEEDED'|'STEP_STARTED'|'STEP_FAILED'|'STEP_SUCCEEDED'|'ACTIVITY_SCHEDULED'|'ACTIVITY_STARTED'|'ACTIVITY_FAILED'|'ACTIVITY_SUCCEEDED'|'START_FLOW_EXECUTION_TASK'|'SCHEDULE_NEXT_READY_STEPS_TASK'|'THING_ACTION_TASK'|'THING_ACTION_TASK_FAILED'|'THING_ACTION_TASK_SUCCEEDED'|'ACKNOWLEDGE_TASK_MESSAGE',
'timestamp': datetime(2015, 1, 1),
'payload': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
messages (list) --
A list of objects that contain information about events in the specified flow execution.
(dict) --
An object that contains information about a flow event.
messageId (string) --
The unique identifier of the message.
eventType (string) --
The type of flow event .
timestamp (datetime) --
The date and time when the message was last updated.
payload (string) --
A string containing information about the flow event.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_tags_for_resource')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.list_tags_for_resource().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
resourceArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource whose tags are to be returned.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'tags': [
{
'key': 'string',
'value': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
tags (list) --
List of tags returned by the ListTagsForResource operation.
(dict) --
Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.
key (string) --
The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.
value (string) --
The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('search_entities')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.search_entities().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
entityTypes=[
'DEVICE'|'SERVICE'|'DEVICE_MODEL'|'CAPABILITY'|'STATE'|'ACTION'|'EVENT'|'PROPERTY'|'MAPPING'|'ENUM',
],
filters=[
{
'name': 'NAME'|'NAMESPACE'|'SEMANTIC_TYPE_PATH'|'REFERENCED_ENTITY_ID',
'value': [
'string',
]
},
],
namespaceVersion=123,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The entity types for which to search.
Optional filter to apply to the search. Valid filters are NAME NAMESPACE , SEMANTIC_TYPE_PATH and REFERENCED_ENTITY_ID . REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.
Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.
An object that filters an entity search. Multiple filters function as OR criteria in the search. For example a search that includes a NAMESPACE and a REFERENCED_ENTITY_ID filter searches for entities in the specified namespace that use the entity specified by the value of REFERENCED_ENTITY_ID .
The name of the entity search filter field. REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'descriptions': [
{
'id': 'string',
'arn': 'string',
'type': 'DEVICE'|'SERVICE'|'DEVICE_MODEL'|'CAPABILITY'|'STATE'|'ACTION'|'EVENT'|'PROPERTY'|'MAPPING'|'ENUM',
'createdAt': datetime(2015, 1, 1),
'definition': {
'language': 'GRAPHQL',
'text': 'string'
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
descriptions (list) --
An array of descriptions for each entity returned in the search result.
(dict) --
Describes the properties of an entity.
id (string) --
The entity ID.
arn (string) --
The entity ARN.
type (string) --
The entity type.
createdAt (datetime) --
The time at which the entity was created.
definition (dict) --
The definition document of the entity.
language (string) --
The language used to define the entity. GRAPHQL is the only valid value.
text (string) --
The GraphQL text that defines the entity.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('search_flow_executions')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.search_flow_executions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
systemInstanceId='string',
flowExecutionId='string',
startTime=datetime(2015, 1, 1),
endTime=datetime(2015, 1, 1),
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the system instance that contains the flow.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'summaries': [
{
'flowExecutionId': 'string',
'status': 'RUNNING'|'ABORTED'|'SUCCEEDED'|'FAILED',
'systemInstanceId': 'string',
'flowTemplateId': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary information about each workflow execution in the result set.
(dict) --
An object that contains summary information about a flow execution.
flowExecutionId (string) --
The ID of the flow execution.
status (string) --
The current status of the flow execution.
systemInstanceId (string) --
The ID of the system instance that contains the flow.
flowTemplateId (string) --
The ID of the flow.
createdAt (datetime) --
The date and time when the flow execution summary was created.
updatedAt (datetime) --
The date and time when the flow execution summary was last updated.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('search_flow_templates')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.search_flow_templates().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
filters=[
{
'name': 'DEVICE_MODEL_ID',
'value': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An array of objects that limit the result set. The only valid filter is DEVICE_MODEL_ID .
An object that filters a workflow search.
The name of the search filter field.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary information about each workflow in the result set.
(dict) --
An object that contains summary information about a workflow.
id (string) --
The ID of the workflow.
arn (string) --
The ARN of the workflow.
revisionNumber (integer) --
The revision number of the workflow.
createdAt (datetime) --
The date when the workflow was created.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('search_system_instances')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.search_system_instances().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
filters=[
{
'name': 'SYSTEM_TEMPLATE_ID'|'STATUS'|'GREENGRASS_GROUP_NAME',
'value': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Optional filter to apply to the search. Valid filters are SYSTEM_TEMPLATE_ID , STATUS , and GREENGRASS_GROUP_NAME .
Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.
An object that filters a system instance search. Multiple filters function as OR criteria in the search. For example a search that includes a GREENGRASS_GROUP_NAME and a STATUS filter searches for system instances in the specified Greengrass group that have the specified status.
The name of the search filter field.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'status': 'NOT_DEPLOYED'|'BOOTSTRAP'|'DEPLOY_IN_PROGRESS'|'DEPLOYED_IN_TARGET'|'UNDEPLOY_IN_PROGRESS'|'FAILED'|'PENDING_DELETE'|'DELETED_IN_TARGET',
'target': 'GREENGRASS'|'CLOUD',
'greengrassGroupName': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'greengrassGroupId': 'string',
'greengrassGroupVersionId': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary data abour the system instances in the result set.
(dict) --
An object that contains summary information about a system instance.
id (string) --
The ID of the system instance.
arn (string) --
The ARN of the system instance.
status (string) --
The status of the system instance.
target (string) --
The target of the system instance.
greengrassGroupName (string) --
The ID of the Greengrass group where the system instance is deployed.
createdAt (datetime) --
The date when the system instance was created.
updatedAt (datetime) --
The date and time when the system instance was last updated.
greengrassGroupId (string) --
The ID of the Greengrass group where the system instance is deployed.
greengrassGroupVersionId (string) --
The version of the Greengrass group where the system instance is deployed.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('search_system_templates')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.search_system_templates().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
filters=[
{
'name': 'FLOW_TEMPLATE_ID',
'value': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An array of filters that limit the result set. The only valid filter is FLOW_TEMPLATE_ID .
An object that filters a system search.
The name of the system search filter field.
An array of string values for the search filter field. Multiple values function as AND criteria in the search.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'summaries': [
{
'id': 'string',
'arn': 'string',
'revisionNumber': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
summaries (list) --
An array of objects that contain summary information about each system deployment in the result set.
(dict) --
An object that contains information about a system.
id (string) --
The ID of the system.
arn (string) --
The ARN of the system.
revisionNumber (integer) --
The revision number of the system.
createdAt (datetime) --
The date when the system was created.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('search_things')
Creates an iterator that will paginate through responses from IoTThingsGraph.Client.search_things().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
entityId='string',
namespaceVersion=123,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the entity to which the things are associated.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'things': [
{
'thingArn': 'string',
'thingName': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
things (list) --
An array of things in the result set.
(dict) --
An AWS IoT thing.
thingArn (string) --
The ARN of the thing.
thingName (string) --
The name of the thing.
NextToken (string) --
A token to resume pagination.