cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
219 lines (218 loc) • 7.52 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement, Operator } from '../../shared';
import { aws_iam as iam } from "aws-cdk-lib";
/**
* Statement provider for service [elemental-support-cases](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalsupportcases.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class ElementalSupportCases extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to add a comment to a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toAddCaseComment(): this;
/**
* Grants permission to verify whether the caller has the permissions to perform support case operations
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toCheckCasePermission(): this;
/**
* Grants permission to complete a multipart file upload to a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toCompleteMultipartUpload(): this;
/**
* Grants permission to create a support case
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toCreateCase(): this;
/**
* Grants permission to create a cli command to allow a file upload to a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toCreateS3CLIUploadCommand(): this;
/**
* Grants permission to download a file from a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toCreateS3DownloadUrl(): this;
/**
* Grants permission to describe a support case in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toGetCase(): this;
/**
* Grants permission to verify whether the caller has the permissions to perform support case operations
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toGetCasePermission(): this;
/**
* Grants permission to list the support cases in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toGetCases(): this;
/**
* Grants permission to retrieve cached case user data for use in the Console
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toGetUICache(): this;
/**
* Grants permission to list tags on a support case
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toListTagsForCase(): this;
/**
* Grants permission to start a multipart file upload to a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toStartMultipartUpload(): this;
/**
* Grants permission to add a tag on a support case
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toTagCase(): this;
/**
* Grants permission to remove a tag on a support case
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toUntagCase(): this;
/**
* Grants permission to update a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toUpdateCase(): this;
/**
* Grants permission to update a support case status
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toUpdateCaseStatus(): this;
/**
* Grants permission to update a multipart file upload to a support case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-appliances-software
*/
toUpdateMultipartUpload(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type case to the statement
*
* https://docs.aws.amazon.com/elemental-appliances-software/
*
* @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 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()
*/
onCase(resourceId: string, account?: string, partition?: string): this;
/**
* Filters access by 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:
* - .toCreateCase()
* - .toTagCase()
*
* @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 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:
* - case
*
* @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 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:
* - .toCreateCase()
* - .toTagCase()
* - .toUntagCase()
*
* @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 [elemental-support-cases](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalsupportcases.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}