UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

563 lines (562 loc) 18.9 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 [databrew](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsgluedatabrew.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Databrew extends PolicyStatement { servicePrefix: string; /** * Grants permission to delete one or more recipe versions * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_BatchDeleteRecipeVersion.html */ toBatchDeleteRecipeVersion(): this; /** * Grants permission to create a dataset * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateDataset.html */ toCreateDataset(): this; /** * Grants permission to create a profile job * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateProfileJob.html */ toCreateProfileJob(): this; /** * Grants permission to create a project * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateProject.html */ toCreateProject(): this; /** * Grants permission to create a recipe * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateRecipe.html */ toCreateRecipe(): this; /** * Grants permission to create a recipe job * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateRecipeJob.html */ toCreateRecipeJob(): this; /** * Grants permission to create a ruleset * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateRuleset.html */ toCreateRuleset(): this; /** * Grants permission to create a schedule * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/databrew/latest/dg/API_CreateSchedule.html */ toCreateSchedule(): this; /** * Grants permission to delete a dataset * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_DeleteDataset.html */ toDeleteDataset(): this; /** * Grants permission to delete a job * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_DeleteJob.html */ toDeleteJob(): this; /** * Grants permission to delete a project * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_DeleteProject.html */ toDeleteProject(): this; /** * Grants permission to delete a recipe version * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_DeleteRecipeVersion.html */ toDeleteRecipeVersion(): this; /** * Grants permission to delete a ruleset * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_DeleteRuleset.html */ toDeleteRuleset(): this; /** * Grants permission to delete a schedule * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_DeleteSchedule.html */ toDeleteSchedule(): this; /** * Grants permission to view details about a dataset * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeDataset.html */ toDescribeDataset(): this; /** * Grants permission to view details about a job * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeJob.html */ toDescribeJob(): this; /** * Grants permission to view details about job run for a given job * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeJobRun.html */ toDescribeJobRun(): this; /** * Grants permission to view details about a project * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeProject.html */ toDescribeProject(): this; /** * Grants permission to view details about a recipe * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeRecipe.html */ toDescribeRecipe(): this; /** * Grants permission to view details about a ruleset * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeRuleset.html */ toDescribeRuleset(): this; /** * Grants permission to view details about a schedule * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_DescribeSchedule.html */ toDescribeSchedule(): this; /** * Grants permission to list datasets in your account * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListDatasets.html */ toListDatasets(): this; /** * Grants permission to list job runs for a given job * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListJobRuns.html */ toListJobRuns(): this; /** * Grants permission to list jobs in your account * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListJobs.html */ toListJobs(): this; /** * Grants permission to list projects in your account * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListProjects.html */ toListProjects(): this; /** * Grants permission to list versions in your recipe * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListRecipeVersions.html */ toListRecipeVersions(): this; /** * Grants permission to list recipes in your account * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListRecipes.html */ toListRecipes(): this; /** * Grants permission to list rulesets in your account * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListRulesets.html */ toListRulesets(): this; /** * Grants permission to list schedules in your account * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListSchedules.html */ toListSchedules(): this; /** * Grants permission to retrieve tags associated with a resource * * Access Level: Read * * https://docs.aws.amazon.com/databrew/latest/dg/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to publish a major verison of a recipe * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_PublishRecipe.html */ toPublishRecipe(): this; /** * Grants permission to submit an action to the interactive session for a project * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_SendProjectSessionAction.html */ toSendProjectSessionAction(): this; /** * Grants permission to start running a job * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_StartJobRun.html */ toStartJobRun(): this; /** * Grants permission to start an interactive session for a project * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_StartProjectSession.html */ toStartProjectSession(): this; /** * Grants permission to stop a job run for a job * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_StopJobRun.html */ toStopJobRun(): this; /** * Grants permission to add tags to a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/databrew/latest/dg/API_TagResource.html */ toTagResource(): this; /** * Grants permission to remove tags associated with a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/databrew/latest/dg/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to modify a dataset * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateDataset.html */ toUpdateDataset(): this; /** * Grants permission to modify a profile job * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateProfileJob.html */ toUpdateProfileJob(): this; /** * Grants permission to modify a project * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateProject.html */ toUpdateProject(): this; /** * Grants permission to modify a recipe * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateRecipe.html */ toUpdateRecipe(): this; /** * Grants permission to modify a recipe job * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateRecipeJob.html */ toUpdateRecipeJob(): this; /** * Grants permission to modify a ruleset * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateRuleset.html */ toUpdateRuleset(): this; /** * Grants permission to modify a schedule * * Access Level: Write * * https://docs.aws.amazon.com/databrew/latest/dg/API_UpdateSchedule.html */ toUpdateSchedule(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type Project to the statement * * https://docs.aws.amazon.com/databrew/latest/dg/projects.html * * @param resourceId - Identifier for the resourceId. * @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() */ onProject(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type Dataset to the statement * * https://docs.aws.amazon.com/databrew/latest/dg/datasets.html * * @param resourceId - Identifier for the resourceId. * @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() */ onDataset(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type Ruleset to the statement * * https://docs.aws.amazon.com/databrew/latest/dg/rulesets.html * * @param resourceId - Identifier for the resourceId. * @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() */ onRuleset(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type Recipe to the statement * * https://docs.aws.amazon.com/databrew/latest/dg/recipes.html * * @param resourceId - Identifier for the resourceId. * @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() */ onRecipe(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type Job to the statement * * https://docs.aws.amazon.com/databrew/latest/dg/jobs.html * * @param resourceId - Identifier for the resourceId. * @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() */ onJob(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type Schedule to the statement * * https://docs.aws.amazon.com/databrew/latest/dg/jobs.html#jobs.scheduling * * @param resourceId - Identifier for the resourceId. * @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() */ onSchedule(resourceId: 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: * - .toCreateDataset() * - .toCreateProfileJob() * - .toCreateProject() * - .toCreateRecipe() * - .toCreateRecipeJob() * - .toCreateRuleset() * - .toCreateSchedule() * - .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 actions: * - .toCreateDataset() * - .toCreateProfileJob() * - .toCreateProject() * - .toCreateRecipe() * - .toCreateRecipeJob() * - .toCreateRuleset() * - .toCreateSchedule() * * Applies to resource types: * - Project * - Dataset * - Ruleset * - Recipe * - Job * - Schedule * * @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: * - .toCreateDataset() * - .toCreateProfileJob() * - .toCreateProject() * - .toCreateRecipe() * - .toCreateRecipeJob() * - .toCreateRuleset() * - .toCreateSchedule() * - .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 [databrew](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsgluedatabrew.html). * */ constructor(props?: iam.PolicyStatementProps); }