UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

357 lines (356 loc) 12.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 [transform-custom](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awstransformcustom.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class TransformCustom extends PolicyStatement { servicePrefix: string; /** * Grants permission to invoke CompleteTransformationPackageUpload on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toCompleteTransformationPackageUpload(): this; /** * Grants permission to invoke ConverseStream on AWS Transform custom * * Access Level: Write * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toConverseStream(): this; /** * Grants permission to invoke CreateCampaign on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toCreateCampaign(): this; /** * Grants permission to invoke CreateTransformationPackageUrl on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toCreateTransformationPackageUrl(): this; /** * Grants permission to invoke DeleteCampaign on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toDeleteCampaign(): this; /** * Grants permission to invoke DeleteKnowledgeItem on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toDeleteKnowledgeItem(): this; /** * Grants permission to invoke DeleteTransformationPackage on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toDeleteTransformationPackage(): this; /** * Grants permission to invoke ExecuteTransformation on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toExecuteTransformation(): this; /** * Grants permission to invoke GetCampaign on AWS Transform custom * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toGetCampaign(): this; /** * Grants permission to invoke GetKnowledgeItem on AWS Transform custom * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toGetKnowledgeItem(): this; /** * Grants permission to invoke GetTransformationPackageUrl on AWS Transform custom * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toGetTransformationPackageUrl(): this; /** * Grants permission to invoke ListCampaignRepositories on AWS Transform custom * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toListCampaignRepositories(): this; /** * Grants permission to invoke ListCampaign on AWS Transform custom * * Access Level: List * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toListCampaigns(): this; /** * Grants permission to invoke ListKnowledgeItems on AWS Transform custom * * Access Level: List * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toListKnowledgeItems(): this; /** * Grants permission to invoke ListTagsForResource on AWS Transform custom * * Access Level: Read * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toListTagsForResource(): this; /** * Grants permission to invoke ListTransformationPackageMetadata on AWS Transform custom * * Access Level: List * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toListTransformationPackageMetadata(): this; /** * Grants permission to invoke TagResource on AWS Transform custom * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toTagResource(): this; /** * Grants permission to invoke UntagResource on AWS Transform custom * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toUntagResource(): this; /** * Grants permission to invoke UpdateCampaign on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toUpdateCampaign(): this; /** * Grants permission to invoke UpdateCampaignRepositories on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toUpdateCampaignRepositoryStatus(): this; /** * Grants permission to invoke UpdateKnowledgeItemConfiguration on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toUpdateKnowledgeItemConfiguration(): this; /** * Grants permission to invoke UpdateKnowledgeItemStatus on AWS Transform custom * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html */ toUpdateKnowledgeItemStatus(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type campaign to the statement * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html * * @param name - Identifier for the name. * @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() */ onCampaign(name: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type knowledge-item to the statement * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html * * @param transformationPackageName - Identifier for the transformationPackageName. * @param id - Identifier for the id. * @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() */ onKnowledgeItem(transformationPackageName: string, id: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type package to the statement * * https://docs.aws.amazon.com/transform/latest/userguide/custom.html * * @param name - Identifier for the name. * @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() */ onPackage(name: 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: * - .toCreateCampaign() * - .toCreateTransformationPackageUrl() * - .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: * - .toCompleteTransformationPackageUpload() * - .toCreateCampaign() * - .toCreateTransformationPackageUrl() * - .toDeleteCampaign() * - .toDeleteKnowledgeItem() * - .toDeleteTransformationPackage() * - .toExecuteTransformation() * - .toGetCampaign() * - .toGetKnowledgeItem() * - .toGetTransformationPackageUrl() * - .toListCampaignRepositories() * - .toTagResource() * - .toUpdateCampaign() * - .toUpdateCampaignRepositoryStatus() * - .toUpdateKnowledgeItemConfiguration() * - .toUpdateKnowledgeItemStatus() * * Applies to resource types: * - campaign * - knowledge-item * - package * * @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: * - .toCreateCampaign() * - .toCreateTransformationPackageUrl() * - .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 [transform-custom](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awstransformcustom.html). * */ constructor(props?: iam.PolicyStatementProps); }