IoTDeviceAdvisor / Client / create_suite_definition
create_suite_definition#
- IoTDeviceAdvisor.Client.create_suite_definition(**kwargs)#
- Creates a Device Advisor test suite. - Requires permission to access the CreateSuiteDefinition action. - See also: AWS API Documentation - Request Syntax- response = 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' ) - Parameters:
- suiteDefinitionConfiguration (dict) – - [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 - intendedForQualificationis set to true,- rootGroupcan be an empty string. If- intendedForQualificationis false,- rootGroupcannot be an empty string. If- rootGroupis empty, and- intendedForQualificationis 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. 
 
- tags (dict) – - The tags to be attached to the suite definition. - (string) – - (string) – 
 
 
- clientToken (string) – - 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. 
 
- Return type:
- 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. 
 
 
 - Exceptions- IoTDeviceAdvisor.Client.exceptions.ValidationException
- IoTDeviceAdvisor.Client.exceptions.InternalServerException