import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Iotdeviceadvisor extends PolicyStatement { public servicePrefix = 'iotdeviceadvisor' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to create a suite definition
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_CreateSuiteDefinition.html
     */ public toCreateSuiteDefinition ( ) { return this . to ( 'CreateSuiteDefinition' ) ; } /**
     * Grants permission to delete a suite definition
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_DeleteSuiteDefinition.html
     */ public toDeleteSuiteDefinition ( ) { return this . to ( 'DeleteSuiteDefinition' ) ; } /**
     * Grants permission to get a Device Advisor endpoint
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_GetEndpoint.html
     */ public toGetEndpoint ( ) { return this . to ( 'GetEndpoint' ) ; } /**
     * Grants permission to get a suite definition
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_GetSuiteDefinition.html
     */ public toGetSuiteDefinition ( ) { return this . to ( 'GetSuiteDefinition' ) ; } /**
     * Grants permission to get a suite run
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_GetSuiteRun.html
     */ public toGetSuiteRun ( ) { return this . to ( 'GetSuiteRun' ) ; } /**
     * Grants permission to get the qualification report for a suite run
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_GetSuiteRunReport.html
     */ public toGetSuiteRunReport ( ) { return this . to ( 'GetSuiteRunReport' ) ; } /**
     * Grants permission to list suite definitions
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_ListSuiteDefinitions.html
     */ public toListSuiteDefinitions ( ) { return this . to ( 'ListSuiteDefinitions' ) ; } /**
     * Grants permission to list suite runs
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_ListSuiteRuns.html
     */ public toListSuiteRuns ( ) { return this . to ( 'ListSuiteRuns' ) ; } /**
     * Grants permission to list the tags (metadata) assigned to a resource
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permission to start a suite run
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_StartSuiteRun.html
     */ public toStartSuiteRun ( ) { return this . to ( 'StartSuiteRun' ) ; } /**
     * Grants permission to stop a suite run
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_StopSuiteRun.html
     */ public toStopSuiteRun ( ) { return this . to ( 'StopSuiteRun' ) ; } /**
     * Grants permission to add to or modify the tags of the given resource. Tags are metadata which can be used to manage a resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_TagResource.html
     */ public toTagResource ( ) { return this . to ( 'TagResource' ) ; } /**
     * Grants permission to remove the given tags (metadata) from a resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_UntagResource.html
     */ public toUntagResource ( ) { return this . to ( 'UntagResource' ) ; } /**
     * Grants permission to update a suite definition
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iot/latest/apireference/API_iotdeviceadvisor_UpdateSuiteDefinition.html
     */ public toUpdateSuiteDefinition ( ) { return this . to ( 'UpdateSuiteDefinition' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'CreateSuiteDefinition' , 'DeleteSuiteDefinition' , 'StartSuiteRun' , 'StopSuiteRun' , 'UpdateSuiteDefinition' ] , Read : [ 'GetEndpoint' , 'GetSuiteDefinition' , 'GetSuiteRun' , 'GetSuiteRunReport' , 'ListTagsForResource' ] , List : [ 'ListSuiteDefinitions' , 'ListSuiteRuns' ] , Tagging : [ 'TagResource' , 'UntagResource' ] } ; param suiteDefinitionId param account param region param partition public onSuitedefinition ( suiteDefinitionId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotdeviceadvisor:${ region || '*' }:${ account || '*' }:suitedefinition/${ suiteDefinitionId }` ) ; } param suiteDefinitionId param suiteRunId param account param region param partition public onSuiterun ( suiteDefinitionId , suiteRunId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotdeviceadvisor:${ region || '*' }:${ account || '*' }:suiterun/${ suiteDefinitionId }/${ suiteRunId }` ) ; } }