Skip to main content

suite_definitions

Creates, updates, deletes or gets a suite_definition resource or lists suite_definitions in a region

Overview

Namesuite_definitions
TypeResource
DescriptionAn example resource schema demonstrating some basic constructs and validation rules.
Idaws.iotcoredeviceadvisor.suite_definitions

Fields

NameDatatypeDescription
suite_definition_configurationobject
suite_definition_idstringThe unique identifier for the suite definition.
suite_definition_arnstringThe Amazon Resource name for the suite definition.
suite_definition_versionstringThe suite definition version of a test suite.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSuiteDefinitionConfiguration, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all suite_definitions in a region.

SELECT
region,
suite_definition_configuration,
suite_definition_id,
suite_definition_arn,
suite_definition_version,
tags
FROM aws.iotcoredeviceadvisor.suite_definitions
WHERE region = 'us-east-1';

Gets all properties from an individual suite_definition.

SELECT
region,
suite_definition_configuration,
suite_definition_id,
suite_definition_arn,
suite_definition_version,
tags
FROM aws.iotcoredeviceadvisor.suite_definitions
WHERE region = 'us-east-1' AND data__Identifier = '<SuiteDefinitionId>';

INSERT example

Use the following StackQL query and manifest file to create a new suite_definition resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iotcoredeviceadvisor.suite_definitions (
SuiteDefinitionConfiguration,
region
)
SELECT
'{{ SuiteDefinitionConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotcoredeviceadvisor.suite_definitions
WHERE data__Identifier = '<SuiteDefinitionId>'
AND region = 'us-east-1';

Permissions

To operate on the suite_definitions resource, the following permissions are required:

Create

iot:DescribeCertificate,
iot:DescribeThing,
iot:GetPolicy,
iot:ListAttachedPolicies,
iot:ListCertificates,
iot:ListPrincipalPolicies,
iot:ListTagsForResource,
iot:ListThingPrincipals,
iot:ListThings,
iotdeviceadvisor:CreateSuiteDefinition,
iotdeviceadvisor:TagResource,
iam:PassRole

Read

iotdeviceadvisor:GetSuiteDefinition,
iotdeviceadvisor:TagResource

Update

iot:DescribeCertificate,
iot:DescribeThing,
iot:GetPolicy,
iot:ListAttachedPolicies,
iot:ListCertificates,
iot:ListPrincipalPolicies,
iot:ListTagsForResource,
iot:ListThingPrincipals,
iot:ListThings,
iotdeviceadvisor:UpdateSuiteDefinition,
iotdeviceadvisor:GetSuiteDefinition,
iotdeviceadvisor:UntagResource,
iotdeviceadvisor:TagResource,
iam:PassRole

Delete

iotdeviceadvisor:GetSuiteDefinition,
iotdeviceadvisor:DeleteSuiteDefinition

List

iotdeviceadvisor:ListSuiteDefinitions