UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

296 lines (295 loc) 11.1 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [lookoutvision](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlookoutforvision.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Lookoutvision extends PolicyStatement { servicePrefix: string; /** * Grants permission to create a dataset manifest * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_CreateDataset.html */ toCreateDataset(): this; /** * Grants permission to create a new anomaly detection model * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_CreateModel.html */ toCreateModel(): this; /** * Grants permission to create a new project * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_CreateProject.html */ toCreateProject(): this; /** * Grants permission to delete a dataset * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DeleteDataset.html */ toDeleteDataset(): this; /** * Grants permission to delete a model and all associated assets * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DeleteModel.html */ toDeleteModel(): this; /** * Grants permission to permanently remove a project * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DeleteProject.html */ toDeleteProject(): this; /** * Grants permission to show detailed information about dataset manifest * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DescribeDataset.html */ toDescribeDataset(): this; /** * Grants permission to show detailed information about a model * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DescribeModel.html */ toDescribeModel(): this; /** * Grants permission to show detailed information about a model packaging job * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DescribeModelPackagingJob.html */ toDescribeModelPackagingJob(): this; /** * Grants permission to show detailed information about a project * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DescribeProject.html */ toDescribeProject(): this; /** * Grants permission to provides state information about a running anomaly detection job * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/developer-guide/trial-detection.html */ toDescribeTrialDetection(): this; /** * Grants permission to invoke detection of anomalies * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_DetectAnomalies.html */ toDetectAnomalies(): this; /** * Grants permission to list the contents of dataset manifest * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_ListDatasetEntries.html */ toListDatasetEntries(): this; /** * Grants permission to list all model packaging jobs associated with a project * * Access Level: List * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_ListModelPackagingJobs.html */ toListModelPackagingJobs(): this; /** * Grants permission to list all models associated with a project * * Access Level: List * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_ListModels.html */ toListModels(): this; /** * Grants permission to list all projects * * Access Level: List * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_ListProjects.html */ toListProjects(): this; /** * Grants permission to list tags for a resource * * Access Level: Read * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to list all anomaly detection jobs * * Access Level: List * * https://docs.aws.amazon.com/lookout-for-vision/latest/developer-guide/trial-detection.html */ toListTrialDetections(): this; /** * Grants permission to start anomaly detection model * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_StartModel.html */ toStartModel(): this; /** * Grants permission to start a model packaging job * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_StartModelPackagingJob.html */ toStartModelPackagingJob(): this; /** * Grants permission to start bulk detection of anomalies for a set of images stored in an S3 bucket * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/developer-guide/trial-detection.html */ toStartTrialDetection(): this; /** * Grants permission to stop anomaly detection model * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_StopModel.html */ toStopModel(): this; /** * Grants permission to tag a resource with given key value pairs * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to remove the tag with the given key from a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update a training or test dataset manifest * * Access Level: Write * * https://docs.aws.amazon.com/lookout-for-vision/latest/APIReference/API_UpdateDatasetEntries.html */ toUpdateDatasetEntries(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type model to the statement * * https://docs.aws.amazon.com/lookout-for-vision/latest/developer-guide/model-create-project.html * * @param projectName - Identifier for the projectName. * @param modelVersion - Identifier for the modelVersion. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onModel(projectName: string, modelVersion: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type project to the statement * * https://docs.aws.amazon.com/lookout-for-vision/latest/developer-guide/model-create-project.html * * @param projectName - Identifier for the projectName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onProject(projectName: string, account?: string, region?: string, partition?: string): this; /** * Filters access by the tags that are passed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateModel() * - .toTagResource() * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsRequestTag(tagKey: string, value: string | string[], operator?: Operator | string): this; /** * Filters access by the tags associated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - model * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsResourceTag(tagKey: string, value: string | string[], operator?: Operator | string): this; /** * Filters access by the tag keys that are passed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateModel() * - .toTagResource() * - .toUntagResource() * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsTagKeys(value: string | string[], operator?: Operator | string): this; /** * Statement provider for service [lookoutvision](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlookoutforvision.html). * */ constructor(props?: iam.PolicyStatementProps); }