iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
282 lines (281 loc) • 11.6 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement, Operator } from '../../shared';
/**
* 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;
/**
* 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
*/
constructor(sid?: string);
/**
* Grants permission to invoke CompleteTransformationPackageUpload on AWS Transform Custom
*
* Access Level: Write
*
* 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
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toCreateCampaign(): this;
/**
* Grants permission to invoke CompleteTransformationPackageUrl on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toCreateTransformationPackageUrl(): this;
/**
* Grants permission to invoke DeleteCampaign on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toDeleteCampaign(): this;
/**
* Grants permission to invoke DeleteKnowledgeItem on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toDeleteKnowledgeItem(): this;
/**
* Grants permission to invoke DeleteTransformationPackage on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toDeleteTransformationPackage(): this;
/**
* Grants permission to invoke ExecuteTransformation on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toExecuteTransformation(): this;
/**
* Grants permission to invoke GetCampaign on AWS Transform Custom
*
* Access Level: Read
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toGetCampaign(): this;
/**
* Grants permission to invoke GetKnowledgeItem on AWS Transform Custom
*
* Access Level: Read
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toGetKnowledgeItem(): this;
/**
* Grants permission to invoke GetTransformationPackageUrl on AWS Transform Custom
*
* Access Level: Read
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toGetTransformationPackageUrl(): this;
/**
* Grants permission to invoke ListCampaignRepositories on AWS Transform Custom
*
* Access Level: Read
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toListCampaignRepositories(): this;
/**
* Grants permission to invoke ListCampaign on AWS Transform Custom
*
* Access Level: Read
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toListCampaigns(): this;
/**
* Grants permission to invoke ListKnowledgeItems on AWS Transform Custom
*
* Access Level: Read
*
* 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: Read
*
* 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()
* - .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
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toUpdateCampaign(): this;
/**
* Grants permission to invoke UpdateCampaignRepositories on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toUpdateCampaignRepositoryStatus(): this;
/**
* Grants permission to invoke UpdateKnowledgeItemConfiguration on AWS Transform Custom
*
* Access Level: Write
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html/
*/
toUpdateKnowledgeItemConfiguration(): this;
/**
* Grants permission to invoke UpdateKnowledgeItemStatus on AWS Transform Custom
*
* Access Level: Write
*
* 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.
*/
onCampaign(name: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type conversation to the statement
*
* https://docs.aws.amazon.com/transform/latest/userguide/custom.html
*
* @param conversationId - Identifier for the conversationId.
* @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.
*/
onConversation(conversationId: 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.
*/
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.
*/
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:
* - .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
*
* @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:
* - .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;
}