IoTDeviceAdvisor

Table of Contents

Client

class IoTDeviceAdvisor.Client

A low-level client representing AWS IoT Core Device Advisor (oTDeviceAdvisor)

AWS IoT Core Device Advisor is a cloud-based, fully managed test capability for validating IoT devices during device software development. Device Advisor provides pre-built tests that you can use to validate IoT devices for reliable and secure connectivity with AWS IoT Core before deploying devices to production. By using Device Advisor, you can confirm that your devices can connect to AWS IoT Core, follow security best practices and, if applicable, receive software updates from IoT Device Management. You can also download signed qualification reports to submit to the AWS Partner Network to get your device qualified for the AWS Partner Device Catalog without the need to send your device in and wait for it to be tested.

import boto3

client = boto3.client('iotdeviceadvisor')

These are the available methods:

can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
create_suite_definition(**kwargs)

Creates a Device Advisor test suite.

See also: AWS API Documentation

Request Syntax

response = client.create_suite_definition(
    suiteDefinitionConfiguration={
        'suiteDefinitionName': 'string',
        'devices': [
            {
                'thingArn': 'string',
                'certificateArn': 'string'
            },
        ],
        'intendedForQualification': True|False,
        'rootGroup': 'string',
        'devicePermissionRoleArn': 'string'
    },
    tags={
        'string': 'string'
    }
)
Parameters
  • suiteDefinitionConfiguration (dict) --

    Creates a Device Advisor test suite with suite definition configuration.

    • suiteDefinitionName (string) --

      Gets Suite Definition Configuration name.

    • devices (list) --

      Gets the devices configured.

      • (dict) --

        Lists all the devices under test

        • thingArn (string) --

          Lists devices thing arn

        • certificateArn (string) --

          Lists devices certificate arn

    • intendedForQualification (boolean) --

      Gets the tests intended for qualification in a suite.

    • rootGroup (string) --

      Gets test suite root group.

    • devicePermissionRoleArn (string) --

      Gets device permission arn.

  • tags (dict) --

    The tags to be attached to the suite definition.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'suiteDefinitionId': 'string',
    'suiteDefinitionArn': 'string',
    'suiteDefinitionName': 'string',
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • suiteDefinitionId (string) --

      Creates a Device Advisor test suite with suite UUID.

    • suiteDefinitionArn (string) --

      Creates a Device Advisor test suite with Amazon Resource name.

    • suiteDefinitionName (string) --

      Creates a Device Advisor test suite with suite definition name.

    • createdAt (datetime) --

      Creates a Device Advisor test suite with TimeStamp of when it was created.

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
delete_suite_definition(**kwargs)

Deletes a Device Advisor test suite.

See also: AWS API Documentation

Request Syntax

response = client.delete_suite_definition(
    suiteDefinitionId='string'
)
Parameters
suiteDefinitionId (string) --

[REQUIRED]

Suite definition Id of the test suite to be deleted.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_suite_definition(**kwargs)

Gets information about a Device Advisor test suite.

See also: AWS API Documentation

Request Syntax

response = client.get_suite_definition(
    suiteDefinitionId='string',
    suiteDefinitionVersion='string'
)
Parameters
  • suiteDefinitionId (string) --

    [REQUIRED]

    Suite definition Id of the test suite to get.

  • suiteDefinitionVersion (string) -- Suite definition version of the test suite to get.
Return type

dict

Returns

Response Syntax

{
    'suiteDefinitionId': 'string',
    'suiteDefinitionArn': 'string',
    'suiteDefinitionVersion': 'string',
    'latestVersion': 'string',
    'suiteDefinitionConfiguration': {
        'suiteDefinitionName': 'string',
        'devices': [
            {
                'thingArn': 'string',
                'certificateArn': 'string'
            },
        ],
        'intendedForQualification': True|False,
        'rootGroup': 'string',
        'devicePermissionRoleArn': 'string'
    },
    'createdAt': datetime(2015, 1, 1),
    'lastModifiedAt': datetime(2015, 1, 1),
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • suiteDefinitionId (string) --

      Suite definition Id of the suite definition.

    • suiteDefinitionArn (string) --

      The ARN of the suite definition.

    • suiteDefinitionVersion (string) --

      Suite definition version of the suite definition.

    • latestVersion (string) --

      Latest suite definition version of the suite definition.

    • suiteDefinitionConfiguration (dict) --

      Suite configuration of the suite definition.

      • suiteDefinitionName (string) --

        Gets Suite Definition Configuration name.

      • devices (list) --

        Gets the devices configured.

        • (dict) --

          Lists all the devices under test

          • thingArn (string) --

            Lists devices thing arn

          • certificateArn (string) --

            Lists devices certificate arn

      • intendedForQualification (boolean) --

        Gets the tests intended for qualification in a suite.

      • rootGroup (string) --

        Gets test suite root group.

      • devicePermissionRoleArn (string) --

        Gets device permission arn.

    • createdAt (datetime) --

      Date (in Unix epoch time) when the suite definition was created.

    • lastModifiedAt (datetime) --

      Date (in Unix epoch time) when the suite definition was last modified.

    • tags (dict) --

      Tags attached to the suite definition.

      • (string) --
        • (string) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
get_suite_run(**kwargs)

Gets information about a Device Advisor test suite run.

See also: AWS API Documentation

Request Syntax

response = client.get_suite_run(
    suiteDefinitionId='string',
    suiteRunId='string'
)
Parameters
  • suiteDefinitionId (string) --

    [REQUIRED]

    Suite definition Id for the test suite run.

  • suiteRunId (string) --

    [REQUIRED]

    Suite run Id for the test suite run.

Return type

dict

Returns

Response Syntax

{
    'suiteDefinitionId': 'string',
    'suiteDefinitionVersion': 'string',
    'suiteRunId': 'string',
    'suiteRunArn': 'string',
    'suiteRunConfiguration': {
        'primaryDevice': {
            'thingArn': 'string',
            'certificateArn': 'string'
        },
        'selectedTestList': [
            'string',
        ]
    },
    'testResult': {
        'groups': [
            {
                'groupId': 'string',
                'groupName': 'string',
                'tests': [
                    {
                        'testCaseRunId': 'string',
                        'testCaseDefinitionId': 'string',
                        'testCaseDefinitionName': 'string',
                        'status': 'PASS'|'FAIL'|'CANCELED'|'PENDING'|'RUNNING'|'STOPPING'|'STOPPED'|'PASS_WITH_WARNINGS'|'ERROR',
                        'startTime': datetime(2015, 1, 1),
                        'endTime': datetime(2015, 1, 1),
                        'logUrl': 'string',
                        'warnings': 'string',
                        'failure': 'string'
                    },
                ]
            },
        ]
    },
    'startTime': datetime(2015, 1, 1),
    'endTime': datetime(2015, 1, 1),
    'status': 'PASS'|'FAIL'|'CANCELED'|'PENDING'|'RUNNING'|'STOPPING'|'STOPPED'|'PASS_WITH_WARNINGS'|'ERROR',
    'errorReason': 'string',
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • suiteDefinitionId (string) --

      Suite definition Id for the test suite run.

    • suiteDefinitionVersion (string) --

      Suite definition version for the test suite run.

    • suiteRunId (string) --

      Suite run Id for the test suite run.

    • suiteRunArn (string) --

      The ARN of the suite run.

    • suiteRunConfiguration (dict) --

      Suite run configuration for the test suite run.

      • primaryDevice (dict) --

        Gets the primary device for suite run.

        • thingArn (string) --

          Lists devices thing arn

        • certificateArn (string) --

          Lists devices certificate arn

      • selectedTestList (list) --

        Gets test case list.

        • (string) --
    • testResult (dict) --

      Test results for the test suite run.

      • groups (list) --

        Show each group of test results.

        • (dict) --

          Show Group Result.

          • groupId (string) --

            Group result Id.

          • groupName (string) --

            Group Result Name.

          • tests (list) --

            Tests under Group Result.

            • (dict) --

              Provides test case run.

              • testCaseRunId (string) --

                Provides test case run Id.

              • testCaseDefinitionId (string) --

                Provides test case run definition Id.

              • testCaseDefinitionName (string) --

                Provides test case run definition Name.

              • status (string) --

                Provides test case run status.

              • startTime (datetime) --

                Provides test case run start time.

              • endTime (datetime) --

                Provides test case run end time.

              • logUrl (string) --

                Provides test case run log Url.

              • warnings (string) --

                Provides test case run warnings.

              • failure (string) --

                Provides test case run failure result.

    • startTime (datetime) --

      Date (in Unix epoch time) when the test suite run was started.

    • endTime (datetime) --

      Date (in Unix epoch time) when the test suite run ended.

    • status (string) --

      Status for the test suite run.

    • errorReason (string) --

      Error reason for any test suite run failure.

    • tags (dict) --

      The tags attached to the suite run.

      • (string) --
        • (string) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
get_suite_run_report(**kwargs)

Gets a report download link for a successful Device Advisor qualifying test suite run.

See also: AWS API Documentation

Request Syntax

response = client.get_suite_run_report(
    suiteDefinitionId='string',
    suiteRunId='string'
)
Parameters
  • suiteDefinitionId (string) --

    [REQUIRED]

    Suite definition Id of the test suite.

  • suiteRunId (string) --

    [REQUIRED]

    Suite run Id of the test suite run.

Return type

dict

Returns

Response Syntax

{
    'qualificationReportDownloadUrl': 'string'
}

Response Structure

  • (dict) --

    • qualificationReportDownloadUrl (string) --

      Download URL of the qualification report.

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
list_suite_definitions(**kwargs)

Lists the Device Advisor test suites you have created.

See also: AWS API Documentation

Request Syntax

response = client.list_suite_definitions(
    maxResults=123,
    nextToken='string'
)
Parameters
  • maxResults (integer) -- The maximum number of results to return at once.
  • nextToken (string) -- A token used to get the next set of results.
Return type

dict

Returns

Response Syntax

{
    'suiteDefinitionInformationList': [
        {
            'suiteDefinitionId': 'string',
            'suiteDefinitionName': 'string',
            'defaultDevices': [
                {
                    'thingArn': 'string',
                    'certificateArn': 'string'
                },
            ],
            'intendedForQualification': True|False,
            'createdAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • suiteDefinitionInformationList (list) --

      An array of objects that provide summaries of information about the suite definitions in the list.

      • (dict) --

        Information about the suite definition.

        • suiteDefinitionId (string) --

          Suite definition Id of the test suite.

        • suiteDefinitionName (string) --

          Suite name of the test suite.

        • defaultDevices (list) --

          Specifies the devices under test for the test suite.

          • (dict) --

            Lists all the devices under test

            • thingArn (string) --

              Lists devices thing arn

            • certificateArn (string) --

              Lists devices certificate arn

        • intendedForQualification (boolean) --

          Specifies if the test suite is intended for qualification.

        • createdAt (datetime) --

          Date (in Unix epoch time) when the test suite was created.

    • nextToken (string) --

      A token used to get the next set of results.

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
list_suite_runs(**kwargs)

Lists the runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a specific version of the test suite.

See also: AWS API Documentation

Request Syntax

response = client.list_suite_runs(
    suiteDefinitionId='string',
    suiteDefinitionVersion='string',
    maxResults=123,
    nextToken='string'
)
Parameters
  • suiteDefinitionId (string) -- Lists the test suite runs of the specified test suite based on suite definition Id.
  • suiteDefinitionVersion (string) -- Must be passed along with suiteDefinitionId. Lists the test suite runs of the specified test suite based on suite definition version.
  • maxResults (integer) -- The maximum number of results to return at once.
  • nextToken (string) -- A token to retrieve the next set of results.
Return type

dict

Returns

Response Syntax

{
    'suiteRunsList': [
        {
            'suiteDefinitionId': 'string',
            'suiteDefinitionVersion': 'string',
            'suiteDefinitionName': 'string',
            'suiteRunId': 'string',
            'createdAt': datetime(2015, 1, 1),
            'startedAt': datetime(2015, 1, 1),
            'endAt': datetime(2015, 1, 1),
            'status': 'PASS'|'FAIL'|'CANCELED'|'PENDING'|'RUNNING'|'STOPPING'|'STOPPED'|'PASS_WITH_WARNINGS'|'ERROR',
            'passed': 123,
            'failed': 123
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • suiteRunsList (list) --

      An array of objects that provide summaries of information about the suite runs in the list.

      • (dict) --

        Information about the suite run.

        • suiteDefinitionId (string) --

          Suite definition Id of the suite run.

        • suiteDefinitionVersion (string) --

          Suite definition version of the suite run.

        • suiteDefinitionName (string) --

          Suite definition name of the suite run.

        • suiteRunId (string) --

          Suite run Id of the suite run.

        • createdAt (datetime) --

          Date (in Unix epoch time) when the suite run was created.

        • startedAt (datetime) --

          Date (in Unix epoch time) when the suite run was started.

        • endAt (datetime) --

          Date (in Unix epoch time) when the suite run ended.

        • status (string) --

          Status of the suite run.

        • passed (integer) --

          Number of test cases that passed in the suite run.

        • failed (integer) --

          Number of test cases that failed in the suite run.

    • nextToken (string) --

      A token to retrieve the next set of results.

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
list_tags_for_resource(**kwargs)

Lists the tags attached to an IoT Device Advisor resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string'
)
Parameters
resourceArn (string) --

[REQUIRED]

The ARN of the IoT Device Advisor resource.

Return type
dict
Returns
Response Syntax
{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --
    • tags (dict) --

      The tags attached to the IoT Device Advisor resource.

      • (string) --
        • (string) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
start_suite_run(**kwargs)

Starts a Device Advisor test suite run.

See also: AWS API Documentation

Request Syntax

response = client.start_suite_run(
    suiteDefinitionId='string',
    suiteDefinitionVersion='string',
    suiteRunConfiguration={
        'primaryDevice': {
            'thingArn': 'string',
            'certificateArn': 'string'
        },
        'selectedTestList': [
            'string',
        ]
    },
    tags={
        'string': 'string'
    }
)
Parameters
  • suiteDefinitionId (string) --

    [REQUIRED]

    Suite definition Id of the test suite.

  • suiteDefinitionVersion (string) -- Suite definition version of the test suite.
  • suiteRunConfiguration (dict) --

    Suite run configuration.

    • primaryDevice (dict) --

      Gets the primary device for suite run.

      • thingArn (string) --

        Lists devices thing arn

      • certificateArn (string) --

        Lists devices certificate arn

    • selectedTestList (list) --

      Gets test case list.

      • (string) --
  • tags (dict) --

    The tags to be attached to the suite run.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'suiteRunId': 'string',
    'suiteRunArn': 'string',
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • suiteRunId (string) --

      Suite Run Id of the started suite run.

    • suiteRunArn (string) --

      Amazon resource name of the started suite run.

    • createdAt (datetime) --

      Date (in Unix epoch time) when the suite run was created.

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ConflictException
stop_suite_run(**kwargs)

Stops a Device Advisor test suite run that is currently running.

See also: AWS API Documentation

Request Syntax

response = client.stop_suite_run(
    suiteDefinitionId='string',
    suiteRunId='string'
)
Parameters
  • suiteDefinitionId (string) --

    [REQUIRED]

    Suite definition Id of the test suite run to be stopped.

  • suiteRunId (string) --

    [REQUIRED]

    Suite run Id of the test suite run to be stopped.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
tag_resource(**kwargs)

Adds to and modifies existing tags of an IoT Device Advisor resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

    The resource ARN of an IoT Device Advisor resource.

  • tags (dict) --

    [REQUIRED]

    The tags to be attached to the IoT Device Advisor resource.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
untag_resource(**kwargs)

Removes tags from an IoT Device Advisor resource.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

    The resource ARN of an IoT Device Advisor resource.

  • tagKeys (list) --

    [REQUIRED]

    List of tag keys to remove from the IoT Device Advisor resource.

    • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.InternalServerException
  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.ResourceNotFoundException
update_suite_definition(**kwargs)

Updates a Device Advisor test suite.

See also: AWS API Documentation

Request Syntax

response = client.update_suite_definition(
    suiteDefinitionId='string',
    suiteDefinitionConfiguration={
        'suiteDefinitionName': 'string',
        'devices': [
            {
                'thingArn': 'string',
                'certificateArn': 'string'
            },
        ],
        'intendedForQualification': True|False,
        'rootGroup': 'string',
        'devicePermissionRoleArn': 'string'
    }
)
Parameters
  • suiteDefinitionId (string) --

    [REQUIRED]

    Suite definition Id of the test suite to be updated.

  • suiteDefinitionConfiguration (dict) --

    Updates a Device Advisor test suite with suite definition configuration.

    • suiteDefinitionName (string) --

      Gets Suite Definition Configuration name.

    • devices (list) --

      Gets the devices configured.

      • (dict) --

        Lists all the devices under test

        • thingArn (string) --

          Lists devices thing arn

        • certificateArn (string) --

          Lists devices certificate arn

    • intendedForQualification (boolean) --

      Gets the tests intended for qualification in a suite.

    • rootGroup (string) --

      Gets test suite root group.

    • devicePermissionRoleArn (string) --

      Gets device permission arn.

Return type

dict

Returns

Response Syntax

{
    'suiteDefinitionId': 'string',
    'suiteDefinitionArn': 'string',
    'suiteDefinitionName': 'string',
    'suiteDefinitionVersion': 'string',
    'createdAt': datetime(2015, 1, 1),
    'lastUpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • suiteDefinitionId (string) --

      Suite definition Id of the updated test suite.

    • suiteDefinitionArn (string) --

      Amazon Resource name of the updated test suite.

    • suiteDefinitionName (string) --

      Suite definition name of the updated test suite.

    • suiteDefinitionVersion (string) --

      Suite definition version of the updated test suite.

    • createdAt (datetime) --

      Timestamp of when the test suite was created.

    • lastUpdatedAt (datetime) --

      Timestamp of when the test suite was updated.

Exceptions

  • IoTDeviceAdvisor.Client.exceptions.ValidationException
  • IoTDeviceAdvisor.Client.exceptions.InternalServerException

Paginators

The available paginators are: