AWS IoT Core Device Advisor

2024/10/02 - AWS IoT Core Device Advisor - 1 updated api methods

Changes  Add clientToken attribute and implement idempotency for CreateSuiteDefinition.

CreateSuiteDefinition (updated) Link ΒΆ
Changes (request)
{'clientToken': 'string'}

Creates a Device Advisor test suite.

Requires permission to access the CreateSuiteDefinition action.

See also: AWS API Documentation

Request Syntax

client.create_suite_definition(
    suiteDefinitionConfiguration={
        'suiteDefinitionName': 'string',
        'devices': [
            {
                'thingArn': 'string',
                'certificateArn': 'string',
                'deviceRoleArn': 'string'
            },
        ],
        'intendedForQualification': True|False,
        'isLongDurationTest': True|False,
        'rootGroup': 'string',
        'devicePermissionRoleArn': 'string',
        'protocol': 'MqttV3_1_1'|'MqttV5'|'MqttV3_1_1_OverWebSocket'|'MqttV5_OverWebSocket'
    },
    tags={
        'string': 'string'
    },
    clientToken='string'
)
type suiteDefinitionConfiguration

dict

param suiteDefinitionConfiguration

[REQUIRED]

Creates a Device Advisor test suite with suite definition configuration.

  • suiteDefinitionName (string) -- [REQUIRED]

    Gets the suite definition name. This is a required parameter.

  • devices (list) --

    Gets the devices configured.

    • (dict) --

      Information of a test device. A thing ARN, certificate ARN or device role ARN is required.

      • thingArn (string) --

        Lists device's thing ARN.

      • certificateArn (string) --

        Lists device's certificate ARN.

      • deviceRoleArn (string) --

        Lists device's role ARN.

  • intendedForQualification (boolean) --

    Gets the tests intended for qualification in a suite.

  • isLongDurationTest (boolean) --

    Verifies if the test suite is a long duration test.

  • rootGroup (string) -- [REQUIRED]

    Gets the test suite root group. This is a required parameter. For updating or creating the latest qualification suite, if intendedForQualification is set to true, rootGroup can be an empty string. If intendedForQualification is false, rootGroup cannot be an empty string. If rootGroup is empty, and intendedForQualification is set to true, all the qualification tests are included, and the configuration is default.

    For a qualification suite, the minimum length is 0, and the maximum is 2048. For a non-qualification suite, the minimum length is 1, and the maximum is 2048.

  • devicePermissionRoleArn (string) -- [REQUIRED]

    Gets the device permission ARN. This is a required parameter.

  • protocol (string) --

    Sets the MQTT protocol that is configured in the suite definition.

type tags

dict

param tags

The tags to be attached to the suite definition.

  • (string) --

    • (string) --

type clientToken

string

param clientToken

The client token for the test suite definition creation. This token is used for tracking test suite definition creation using retries and obtaining its status. This parameter is optional.

This field is autopopulated if not provided.

rtype

dict

returns

Response Syntax

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

Response Structure

  • (dict) --

    • suiteDefinitionId (string) --

      The UUID of the test suite created.

    • suiteDefinitionArn (string) --

      The Amazon Resource Name (ARN) of the test suite.

    • suiteDefinitionName (string) --

      The suite definition name of the test suite. This is a required parameter.

    • createdAt (datetime) --

      The timestamp of when the test suite was created.