Skip to main content

suite_definitions

Creates, updates, deletes, gets or lists a suite_definitions resource.

Overview

Namesuite_definitions
TypeResource
Idaws.iotdeviceadvisor.suite_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)Date (in Unix epoch time) when the suite definition was created.
last_modified_atstring (date-time)Date (in Unix epoch time) when the suite definition was last modified.
latest_versionstringLatest suite definition version of the suite definition.
suite_definition_arnstringThe ARN of the suite definition.
suite_definition_configurationobjectGets the suite definition configuration.
suite_definition_idstringSuite definition ID of the suite definition.
suite_definition_versionstringSuite definition version of the suite definition.
tagsobjectTags attached to the suite definition.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_suite_definitionselectsuite_definition_id, regionsuiteDefinitionVersionGets information about a Device Advisor test suite. Requires permission to access the GetSuiteDefinition action.
list_suite_definitionsselectregionmaxResults, nextTokenLists the Device Advisor test suites you have created. Requires permission to access the ListSuiteDefinitions action.
create_suite_definitioninsertregion, suiteDefinitionConfigurationCreates a Device Advisor test suite. Requires permission to access the CreateSuiteDefinition action.
update_suite_definitionupdatesuite_definition_id, region, suiteDefinitionConfigurationUpdates a Device Advisor test suite. Requires permission to access the UpdateSuiteDefinition action.
delete_suite_definitiondeletesuite_definition_id, regionDeletes a Device Advisor test suite. Requires permission to access the DeleteSuiteDefinition action.
start_suite_runexecsuite_definition_id, region, suiteRunConfigurationStarts a Device Advisor test suite run. Requires permission to access the StartSuiteRun action.
stop_suite_runexecsuite_definition_id, suite_run_id, regionStops a Device Advisor test suite run that is currently running. Requires permission to access the StopSuiteRun action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
suite_definition_idstringSuite definition ID of the test suite run to be stopped.
suite_run_idstringSuite run ID of the test suite run to be stopped.
maxResultsintegerThe maximum number of results to return at once.
nextTokenstringA token used to get the next set of results.
suiteDefinitionVersionstringSuite definition version of the test suite to get.

SELECT examples

Gets information about a Device Advisor test suite. Requires permission to access the GetSuiteDefinition action.

SELECT
created_at,
last_modified_at,
latest_version,
suite_definition_arn,
suite_definition_configuration,
suite_definition_id,
suite_definition_version,
tags
FROM aws.iotdeviceadvisor.suite_definitions
WHERE suite_definition_id = '{{ suite_definition_id }}' -- required
AND region = '{{ region }}' -- required
AND suiteDefinitionVersion = '{{ suiteDefinitionVersion }}'
;

INSERT examples

Creates a Device Advisor test suite. Requires permission to access the CreateSuiteDefinition action.

INSERT INTO aws.iotdeviceadvisor.suite_definitions (
suiteDefinitionConfiguration,
tags,
clientToken,
region
)
SELECT
'{{ suiteDefinitionConfiguration }}' /* required */,
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
created_at,
suite_definition_arn,
suite_definition_id,
suite_definition_name
;

UPDATE examples

Updates a Device Advisor test suite. Requires permission to access the UpdateSuiteDefinition action.

UPDATE aws.iotdeviceadvisor.suite_definitions
SET
suiteDefinitionConfiguration = '{{ suiteDefinitionConfiguration }}'
WHERE
suite_definition_id = '{{ suite_definition_id }}' --required
AND region = '{{ region }}' --required
AND suiteDefinitionConfiguration = '{{ suiteDefinitionConfiguration }}' --required
RETURNING
created_at,
last_updated_at,
suite_definition_arn,
suite_definition_id,
suite_definition_name,
suite_definition_version;

DELETE examples

Deletes a Device Advisor test suite. Requires permission to access the DeleteSuiteDefinition action.

DELETE FROM aws.iotdeviceadvisor.suite_definitions
WHERE suite_definition_id = '{{ suite_definition_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts a Device Advisor test suite run. Requires permission to access the StartSuiteRun action.

EXEC aws.iotdeviceadvisor.suite_definitions.start_suite_run
@suite_definition_id='{{ suite_definition_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"suiteDefinitionVersion": "{{ suiteDefinitionVersion }}",
"suiteRunConfiguration": "{{ suiteRunConfiguration }}",
"tags": "{{ tags }}"
}'
;