Table of Contents
A low-level client representing AWS IoT Fleet Hub
With Fleet Hub for AWS IoT Device Management you can build stand-alone web applications for monitoring the health of your device fleets.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
import boto3
client = boto3.client('iotfleethub')
These are the available methods:
Check if an operation can be paginated.
Creates a Fleet Hub for AWS IoT Device Management web application.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.create_application(
applicationName='string',
applicationDescription='string',
clientToken='string',
roleArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The name of the web application.
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
This field is autopopulated if not provided.
[REQUIRED]
The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
Note
The name of the role must be in the form ``AWSIotFleetHub_*random_string* `` .
A set of key/value pairs that you can use to manage the web application resource.
dict
Response Syntax
{
'applicationId': 'string',
'applicationArn': 'string'
}
Response Structure
(dict) --
applicationId (string) --
The unique Id of the web application.
applicationArn (string) --
The ARN of the web application.
Exceptions
Deletes a Fleet Hub for AWS IoT Device Management web application.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.delete_application(
applicationId='string',
clientToken='string'
)
[REQUIRED]
The unique Id of the web application.
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
This field is autopopulated if not provided.
dict
Response Syntax
{}
Response Structure
Exceptions
Gets information about a Fleet Hub for AWS IoT Device Management web application.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.describe_application(
applicationId='string'
)
[REQUIRED]
The unique Id of the web application.
{
'applicationId': 'string',
'applicationArn': 'string',
'applicationName': 'string',
'applicationDescription': 'string',
'applicationUrl': 'string',
'applicationState': 'CREATING'|'DELETING'|'ACTIVE'|'CREATE_FAILED'|'DELETE_FAILED',
'applicationCreationDate': 123,
'applicationLastUpdateDate': 123,
'roleArn': 'string',
'ssoClientId': 'string',
'errorMessage': 'string',
'tags': {
'string': 'string'
}
}
Response Structure
The unique Id of the web application.
The ARN of the web application.
The name of the web application.
An optional description of the web application.
The URL of the web application.
The current state of the web application.
The date (in Unix epoch time) when the application was created.
The date (in Unix epoch time) when the application was last updated.
The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
The Id of the single sign-on client that you use to authenticate and authorize users on the web application.
A message indicating why the DescribeApplication API failed.
A set of key/value pairs that you can use to manage the web application resource.
Exceptions
Create a paginator for an operation.
Returns an object that can wait for some condition.
Gets a list of Fleet Hub for AWS IoT Device Management web applications for the current account.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.list_applications(
nextToken='string'
)
{
'applicationSummaries': [
{
'applicationId': 'string',
'applicationName': 'string',
'applicationDescription': 'string',
'applicationUrl': 'string',
'applicationCreationDate': 123,
'applicationLastUpdateDate': 123,
'applicationState': 'CREATING'|'DELETING'|'ACTIVE'|'CREATE_FAILED'|'DELETE_FAILED'
},
],
'nextToken': 'string'
}
Response Structure
An array of objects that provide summaries of information about the web applications in the list.
A summary of information about a AWS IoT Device Management web application.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
The unique Id of the web application.
The name of the web application.
An optional description of the web application.
The URL of the web application.
The date (in Unix epoch time) when the web application was created.
The date (in Unix epoch time) when the web application was last updated.
The current state of the web application.
A token used to get the next set of results.
Exceptions
Lists the tags for the specified resource.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
resourceArn='string'
)
[REQUIRED]
The ARN of the resource.
{
'tags': {
'string': 'string'
}
}
Response Structure
The list of tags assigned to the resource.
Exceptions
Adds to or modifies the tags of the specified resource. Tags are metadata which can be used to manage a resource.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The ARN of the resource.
[REQUIRED]
The new or modified tags for the resource.
dict
Response Syntax
{}
Response Structure
Exceptions
Removes the specified tags (metadata) from the resource.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The ARN of the resource.
[REQUIRED]
A list of the keys of the tags to be removed from the resource.
dict
Response Syntax
{}
Response Structure
Exceptions
Updates information about a Fleet Hub for a AWS IoT Device Management web application.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
See also: AWS API Documentation
Request Syntax
response = client.update_application(
applicationId='string',
applicationName='string',
applicationDescription='string',
clientToken='string'
)
[REQUIRED]
The unique Id of the web application.
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
This field is autopopulated if not provided.
dict
Response Syntax
{}
Response Structure
Exceptions
The available paginators are:
paginator = client.get_paginator('list_applications')
Creates an iterator that will paginate through responses from IoTFleetHub.Client.list_applications().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'StartingToken': 'string'
}
)
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.
A token to specify where to start paginating. This is the NextToken from a previous response.
{
'applicationSummaries': [
{
'applicationId': 'string',
'applicationName': 'string',
'applicationDescription': 'string',
'applicationUrl': 'string',
'applicationCreationDate': 123,
'applicationLastUpdateDate': 123,
'applicationState': 'CREATING'|'DELETING'|'ACTIVE'|'CREATE_FAILED'|'DELETE_FAILED'
},
],
'NextToken': 'string'
}
Response Structure
An array of objects that provide summaries of information about the web applications in the list.
A summary of information about a AWS IoT Device Management web application.
Note
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
The unique Id of the web application.
The name of the web application.
An optional description of the web application.
The URL of the web application.
The date (in Unix epoch time) when the web application was created.
The date (in Unix epoch time) when the web application was last updated.
The current state of the web application.
A token to resume pagination.