import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement , Operator } from '../shared' ; param sid export class Iotroborunner extends PolicyStatement { public servicePrefix = 'iotroborunner' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to create an action
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateAction.html
     */ public toCreateAction ( ) { return this . to ( 'CreateAction' ) ; } /**
     * Grants permission to create an action template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateActionTemplate.html
     */ public toCreateActionTemplate ( ) { return this . to ( 'CreateActionTemplate' ) ; } /**
     * Grants permission to create an action template dependency
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateActionTemplateDependency.html
     */ public toCreateActionTemplateDependency ( ) { return this . to ( 'CreateActionTemplateDependency' ) ; } /**
     * Grants permission to create an activity
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateActivity.html
     */ public toCreateActivity ( ) { return this . to ( 'CreateActivity' ) ; } /**
     * Grants permission to create an activity dependency
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateActivityDependency.html
     */ public toCreateActivityDependency ( ) { return this . to ( 'CreateActivityDependency' ) ; } /**
     * Grants permission to create a destination
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateDestination.html
     */ public toCreateDestination ( ) { return this . to ( 'CreateDestination' ) ; } /**
     * Grants permission to create a destination relationship
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateDestinationRelationship.html
     */ public toCreateDestinationRelationship ( ) { return this . to ( 'CreateDestinationRelationship' ) ; } /**
     * Grants permission to create a site
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateSite.html
     */ public toCreateSite ( ) { return this . to ( 'CreateSite' ) ; } /**
     * Grants permission to create a task
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateTask.html
     */ public toCreateTask ( ) { return this . to ( 'CreateTask' ) ; } /**
     * Grants permission to create a task dependency
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateTaskDependency.html
     */ public toCreateTaskDependency ( ) { return this . to ( 'CreateTaskDependency' ) ; } /**
     * Grants permission to create a worker
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateWorker.html
     */ public toCreateWorker ( ) { return this . to ( 'CreateWorker' ) ; } /**
     * Grants permission to create a worker fleet
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_CreateWorkerFleet.html
     */ public toCreateWorkerFleet ( ) { return this . to ( 'CreateWorkerFleet' ) ; } /**
     * Grants permission to delete an action
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteAction.html
     */ public toDeleteAction ( ) { return this . to ( 'DeleteAction' ) ; } /**
     * Grants permission to delete an action template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteActionTemplate.html
     */ public toDeleteActionTemplate ( ) { return this . to ( 'DeleteActionTemplate' ) ; } /**
     * Grants permission to delete an action template dependency
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteActionTemplateDependency.html
     */ public toDeleteActionTemplateDependency ( ) { return this . to ( 'DeleteActionTemplateDependency' ) ; } /**
     * Grants permission to delete an activity
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteActivity.html
     */ public toDeleteActivity ( ) { return this . to ( 'DeleteActivity' ) ; } /**
     * Grants permission to delete an activity dependency
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteActivityDependency.html
     */ public toDeleteActivityDependency ( ) { return this . to ( 'DeleteActivityDependency' ) ; } /**
     * Grants permission to delete a destination
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteDestination.html
     */ public toDeleteDestination ( ) { return this . to ( 'DeleteDestination' ) ; } /**
     * Grants permission to delete a destination relationship
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteDestinationRelationship.html
     */ public toDeleteDestinationRelationship ( ) { return this . to ( 'DeleteDestinationRelationship' ) ; } /**
     * Grants permission to delete a site
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteSite.html
     */ public toDeleteSite ( ) { return this . to ( 'DeleteSite' ) ; } /**
     * Grants permission to delete a task
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteTask.html
     */ public toDeleteTask ( ) { return this . to ( 'DeleteTask' ) ; } /**
     * Grants permission to delete a task dependency
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteTaskDependency.html
     */ public toDeleteTaskDependency ( ) { return this . to ( 'DeleteTaskDependency' ) ; } /**
     * Grants permission to delete a worker
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteWorker.html
     */ public toDeleteWorker ( ) { return this . to ( 'DeleteWorker' ) ; } /**
     * Grants permission to delete a worker fleet
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_DeleteWorkerFleet.html
     */ public toDeleteWorkerFleet ( ) { return this . to ( 'DeleteWorkerFleet' ) ; } /**
     * Grants permission to get an action
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetAction.html
     */ public toGetAction ( ) { return this . to ( 'GetAction' ) ; } /**
     * Grants permission to get an action template
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetActionTemplate.html
     */ public toGetActionTemplate ( ) { return this . to ( 'GetActionTemplate' ) ; } /**
     * Grants permission to get an activity
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetActivity.html
     */ public toGetActivity ( ) { return this . to ( 'GetActivity' ) ; } /**
     * Grants permission to get a destination
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetDestination.html
     */ public toGetDestination ( ) { return this . to ( 'GetDestination' ) ; } /**
     * Grants permission to get a destination relationship
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetDestinationRelationship.html
     */ public toGetDestinationRelationship ( ) { return this . to ( 'GetDestinationRelationship' ) ; } /**
     * Grants permission to get a site
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetSite.html
     */ public toGetSite ( ) { return this . to ( 'GetSite' ) ; } /**
     * Grants permission to get a task
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetTask.html
     */ public toGetTask ( ) { return this . to ( 'GetTask' ) ; } /**
     * Grants permission to get a worker
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetWorker.html
     */ public toGetWorker ( ) { return this . to ( 'GetWorker' ) ; } /**
     * Grants permission to get a worker fleet
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_GetWorkerFleet.html
     */ public toGetWorkerFleet ( ) { return this . to ( 'GetWorkerFleet' ) ; } /**
     * Grants permission to list action templates
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListActionTemplates.html
     */ public toListActionTemplates ( ) { return this . to ( 'ListActionTemplates' ) ; } /**
     * Grants permission to list actions
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListActions.html
     */ public toListActions ( ) { return this . to ( 'ListActions' ) ; } /**
     * Grants permission to list activities
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListActivities.html
     */ public toListActivities ( ) { return this . to ( 'ListActivities' ) ; } /**
     * Grants permission to list destination relationships
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListDestinationRelationships.html
     */ public toListDestinationRelationships ( ) { return this . to ( 'ListDestinationRelationships' ) ; } /**
     * Grants permission to list destinations
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListDestinations.html
     */ public toListDestinations ( ) { return this . to ( 'ListDestinations' ) ; } /**
     * Grants permission to list sites
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListSites.html
     */ public toListSites ( ) { return this . to ( 'ListSites' ) ; } /**
     * Grants permission to list tasks
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListTasks.html
     */ public toListTasks ( ) { return this . to ( 'ListTasks' ) ; } /**
     * Grants permission to list worker fleets
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListWorkerFleets.html
     */ public toListWorkerFleets ( ) { return this . to ( 'ListWorkerFleets' ) ; } /**
     * Grants permission to list workers
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_ListWorkers.html
     */ public toListWorkers ( ) { return this . to ( 'ListWorkers' ) ; } /**
     * Grants permission to update an action's state
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateActionState.html
     */ public toUpdateActionState ( ) { return this . to ( 'UpdateActionState' ) ; } /**
     * Grants permission to update an activity
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateActivity.html
     */ public toUpdateActivity ( ) { return this . to ( 'UpdateActivity' ) ; } /**
     * Grants permission to update a destination
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateDestination.html
     */ public toUpdateDestination ( ) { return this . to ( 'UpdateDestination' ) ; } /**
     * Grants permission to update a site
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateSite.html
     */ public toUpdateSite ( ) { return this . to ( 'UpdateSite' ) ; } /**
     * Grants permission to update a task
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateTask.html
     */ public toUpdateTask ( ) { return this . to ( 'UpdateTask' ) ; } /**
     * Grants permission to update a worker
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateWorker.html
     */ public toUpdateWorker ( ) { return this . to ( 'UpdateWorker' ) ; } /**
     * Grants permission to update a worker fleet
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/iotroborunner/latest/dev/API_UpdateWorkerFleet.html
     */ public toUpdateWorkerFleet ( ) { return this . to ( 'UpdateWorkerFleet' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'CreateAction' , 'CreateActionTemplate' , 'CreateActionTemplateDependency' , 'CreateActivity' , 'CreateActivityDependency' , 'CreateDestination' , 'CreateDestinationRelationship' , 'CreateSite' , 'CreateTask' , 'CreateTaskDependency' , 'CreateWorker' , 'CreateWorkerFleet' , 'DeleteAction' , 'DeleteActionTemplate' , 'DeleteActionTemplateDependency' , 'DeleteActivity' , 'DeleteActivityDependency' , 'DeleteDestination' , 'DeleteDestinationRelationship' , 'DeleteSite' , 'DeleteTask' , 'DeleteTaskDependency' , 'DeleteWorker' , 'DeleteWorkerFleet' , 'UpdateActionState' , 'UpdateActivity' , 'UpdateDestination' , 'UpdateSite' , 'UpdateTask' , 'UpdateWorker' , 'UpdateWorkerFleet' ] , Read : [ 'GetAction' , 'GetActionTemplate' , 'GetActivity' , 'GetDestination' , 'GetDestinationRelationship' , 'GetSite' , 'GetTask' , 'GetWorker' , 'GetWorkerFleet' , 'ListActionTemplates' , 'ListActions' , 'ListActivities' , 'ListDestinationRelationships' , 'ListDestinations' , 'ListSites' , 'ListTasks' , 'ListWorkerFleets' , 'ListWorkers' ] } ; param actionId param account param region param partition public onActionResource ( actionId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:action/${ actionId }` ) ; } param actionTemplateId param account param region param partition public onActionTemplateResource ( actionTemplateId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:action-template/${ actionTemplateId }` ) ; } param activityId param account param region param partition public onActivityResource ( activityId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:activity/${ activityId }` ) ; } param destinationRelationshipId param account param region param partition public onDestinationRelationshipResource ( destinationRelationshipId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:destination-relationship/${ destinationRelationshipId }` ) ; } param destinationId param account param region param partition public onDestinationResource ( destinationId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:destination/${ destinationId }` ) ; } param siteId param account param region param partition public onSiteResource ( siteId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:site/${ siteId }` ) ; } param tagKey param account param region param partition public onTaggingResource ( tagKey , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:tag/${ tagKey }` ) ; } param taskId param account param region param partition public onTaskResource ( taskId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:task/${ taskId }` ) ; } param workerFleetId param account param region param partition public onWorkerFleetResource ( workerFleetId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:worker-fleet/${ workerFleetId }` ) ; } param workerId param account param region param partition public onWorkerResource ( workerId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:iotroborunner:${ region || '*' }:${ account || '*' }:worker/${ workerId }` ) ; } param value param operator public ifActionResourceId ( value , operator ? ) { return this . if ( `ActionResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifActionTemplateResourceId ( value , operator ? ) { return this . if ( `ActionTemplateResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifActivityResourceId ( value , operator ? ) { return this . if ( `ActivityResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifDestinationRelationshipResourceId ( value , operator ? ) { return this . if ( `DestinationRelationshipResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifDestinationResourceId ( value , operator ? ) { return this . if ( `DestinationResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifSiteResourceId ( value , operator ? ) { return this . if ( `SiteResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifTaggingResourceTagKey ( value , operator ? ) { return this . if ( `TaggingResourceTagKey` , value , operator || 'StringLike' ) ; } param value param operator public ifTaskResourceId ( value , operator ? ) { return this . if ( `TaskResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifWorkerFleetResourceId ( value , operator ? ) { return this . if ( `WorkerFleetResourceId` , value , operator || 'StringLike' ) ; } param value param operator public ifWorkerResourceId ( value , operator ? ) { return this . if ( `WorkerResourceId` , value , operator || 'StringLike' ) ; } }