UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

214 lines (213 loc) 7.8 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 [airflow-serverless](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmwaaserverless.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class AirflowServerless extends PolicyStatement { servicePrefix: string; /** * Grants permission to create a new workflow * * Access Level: Write * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_CreateWorkflow.html */ toCreateWorkflow(): this; /** * Grants permission to delete a workflow * * Access Level: Write * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_DeleteWorkflow.html */ toDeleteWorkflow(): this; /** * Grants permission to retrieve the task details for a workflow run * * Access Level: Read * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_GetTaskInstance.html */ toGetTaskInstance(): this; /** * Grants permission to retrieve details about a workflow * * Access Level: Read * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_GetWorkflow.html */ toGetWorkflow(): this; /** * Grants permission to retrieve details about a workflow run * * Access Level: Read * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_GetWorkflowRun.html */ toGetWorkflowRun(): this; /** * Grants permission to list the tags for the specified resource * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to list the tasks for a workflow run * * Access Level: List * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_ListTaskInstances.html */ toListTaskInstances(): this; /** * Grants permission to list the workflow runs of a workflow * * Access Level: List * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_ListWorkflowRuns.html */ toListWorkflowRuns(): this; /** * Grants permission to list the workflow versions * * Access Level: List * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_ListWorkflowVersions.html */ toListWorkflowVersions(): this; /** * Grants permission to list the workflows * * Access Level: List * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_ListWorkflows.html */ toListWorkflows(): this; /** * Grants permission to start an on-demand workflow run for the workflow * * Access Level: Write * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_StartWorkflowRun.html */ toStartWorkflowRun(): this; /** * Grants permission to stop a workflow run * * Access Level: Write * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_StopWorkflowRun.html */ toStopWorkflowRun(): this; /** * Grants permission to tag the specified resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to untag the specified resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update an existing workflow * * Access Level: Write * * https://docs.aws.amazon.com/mwaa-serverless/latest/APIReference/API_UpdateWorkflow.html */ toUpdateWorkflow(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type Workflow to the statement * * https://docs.aws.amazon.com/mwaa/latest/mwaa-serverless-userguide/workflows.html * * @param workflowId - Identifier for the workflowId. * @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() */ onWorkflow(workflowId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by the presence of tag key-value pairs in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateWorkflow() * - .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 tag key-value pairs that are attached to the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to actions: * - .toListTagsForResource() * - .toTagResource() * - .toUntagResource() * * Applies to resource types: * - Workflow * * @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 tag keys in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateWorkflow() * - .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 [airflow-serverless](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmwaaserverless.html). * */ constructor(props?: iam.PolicyStatementProps); }