import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Lookoutequipment extends PolicyStatement { public servicePrefix = 'lookoutequipment' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to create a dataset
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_CreateDataset.html
     */ public toCreateDataset ( ) { return this . to ( 'CreateDataset' ) ; } /**
     * Grants permission to create an inference scheduler for a trained model
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_CreateInferenceScheduler.html
     */ public toCreateInferenceScheduler ( ) { return this . to ( 'CreateInferenceScheduler' ) ; } /**
     * Grants permission to create a model that is trained on a dataset
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_CreateModel.html
     */ public toCreateModel ( ) { return this . to ( 'CreateModel' ) ; } /**
     * Grants permission to delete a dataset
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DeleteDataset.html
     */ public toDeleteDataset ( ) { return this . to ( 'DeleteDataset' ) ; } /**
     * Grants permission to delete an inference scheduler
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DeleteInferenceScheduler.html
     */ public toDeleteInferenceScheduler ( ) { return this . to ( 'DeleteInferenceScheduler' ) ; } /**
     * Grants permission to delete a model
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DeleteModel.html
     */ public toDeleteModel ( ) { return this . to ( 'DeleteModel' ) ; } /**
     * Grants permission to describe a data ingestion job
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DescribeDataIngestionJob
     */ public toDescribeDataIngestionJob ( ) { return this . to ( 'DescribeDataIngestionJob' ) ; } /**
     * Grants permission to describe a dataset
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DescribeDataset.html
     */ public toDescribeDataset ( ) { return this . to ( 'DescribeDataset' ) ; } /**
     * Grants permission to describe an inference scheduler
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DescribeInferenceScheduler.html
     */ public toDescribeInferenceScheduler ( ) { return this . to ( 'DescribeInferenceScheduler' ) ; } /**
     * Grants permission to describe a model
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_DescribeModel.html
     */ public toDescribeModel ( ) { return this . to ( 'DescribeModel' ) ; } /**
     * Grants permission to list the data ingestion jobs in your account or for a particular dataset
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_ListDataIngestionJobs.html
     */ public toListDataIngestionJobs ( ) { return this . to ( 'ListDataIngestionJobs' ) ; } /**
     * Grants permission to list the datasets in your account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_ListDatasets.html
     */ public toListDatasets ( ) { return this . to ( 'ListDatasets' ) ; } /**
     * Grants permission to list the inference executions for an inference scheduler
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_ListInferenceExecutions.html
     */ public toListInferenceExecutions ( ) { return this . to ( 'ListInferenceExecutions' ) ; } /**
     * Grants permission to list the inference schedulers in your account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_ListInferenceSchedulers.html
     */ public toListInferenceSchedulers ( ) { return this . to ( 'ListInferenceSchedulers' ) ; } /**
     * Grants permission to list the models in your account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_ListModels.html
     */ public toListModels ( ) { return this . to ( 'ListModels' ) ; } /**
     * Grants permission to list the tags for a resource
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permission to start a data ingestion job for a dataset
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_StartDataIngestionJob.html
     */ public toStartDataIngestionJob ( ) { return this . to ( 'StartDataIngestionJob' ) ; } /**
     * Grants permission to start an inference scheduler
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_StartInferenceScheduler.html
     */ public toStartInferenceScheduler ( ) { return this . to ( 'StartInferenceScheduler' ) ; } /**
     * Grants permission to stop an inference scheduler
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_StopInferenceScheduler.html
     */ public toStopInferenceScheduler ( ) { return this . to ( 'StopInferenceScheduler' ) ; } /**
     * Grants permission to tag a resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsRequestTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_TagResource.html
     */ public toTagResource ( ) { return this . to ( 'TagResource' ) ; } /**
     * Grants permission to untag a resource
     *
     * Access Level: Tagging
     *
     * Possible conditions:
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_UntagResource.html
     */ public toUntagResource ( ) { return this . to ( 'UntagResource' ) ; } /**
     * Grants permission to update an inference scheduler
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/API_UpdateInferenceScheduler.html
     */ public toUpdateInferenceScheduler ( ) { return this . to ( 'UpdateInferenceScheduler' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'CreateDataset' , 'CreateInferenceScheduler' , 'CreateModel' , 'DeleteDataset' , 'DeleteInferenceScheduler' , 'DeleteModel' , 'StartDataIngestionJob' , 'StartInferenceScheduler' , 'StopInferenceScheduler' , 'UpdateInferenceScheduler' ] , Read : [ 'DescribeDataIngestionJob' , 'DescribeDataset' , 'DescribeInferenceScheduler' , 'DescribeModel' , 'ListInferenceExecutions' , 'ListTagsForResource' ] , List : [ 'ListDataIngestionJobs' , 'ListDatasets' , 'ListInferenceSchedulers' , 'ListModels' ] , Tagging : [ 'TagResource' , 'UntagResource' ] } ; param datasetName param datasetId param accountId param region param partition public onDataset ( datasetName , datasetId , accountId ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:lookoutequipment:${ region || '*' }:${ accountId || '*' }:dataset/${ datasetName }/${ datasetId }` ) ; } param modelName param modelId param account param region param partition public onModel ( modelName , modelId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:lookoutequipment:${ region || '*' }:${ account || '*' }:model/${ modelName }/${ modelId }` ) ; } param inferenceSchedulerName param inferenceSchedulerId param account param region param partition public onInferenceScheduler ( inferenceSchedulerName , inferenceSchedulerId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:lookoutequipment:${ region || '*' }:${ account || '*' }:inference-scheduler/${ inferenceSchedulerName }/${ inferenceSchedulerId }` ) ; } }