UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

164 lines (163 loc) 6.54 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 [elemental-activations](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalappliancesandsoftwareactivationservice.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class ElementalActivations extends PolicyStatement { servicePrefix: string; /** * Grants permission to complete the process of registering customer account for AWS Elemental Appliances and Software Purchases * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toCompleteAccountRegistration(): this; /** * Grants permission to complete the process of uploading a Software file for AWS Elemental Appliances and Software Purchases * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toCompleteFileUpload(): this; /** * Grants permission to download the Software files for AWS Elemental Appliances and Software Purchases * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toDownloadSoftware(): this; /** * Grants permission to generate Software Licenses for AWS Elemental Appliances and Software Purchases * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toGenerateLicenses(): this; /** * Grants permission to describe an activation * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toGetActivation(): this; /** * Grants permission to list tags for an AWS Elemental Activations resource * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toListTagsForResource(): this; /** * Grants permission to start the process of registering customer account for AWS Elemental Appliances and Software Purchases * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toStartAccountRegistration(): this; /** * Grants permission to start the process of uploading a Software file for AWS Elemental Appliances and Software Purchases * * Access Level: Read * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toStartFileUpload(): this; /** * Grants permission to add a tag for an AWS Elemental Activations resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toTagResource(): this; /** * Grants permission to remove a tag from an AWS Elemental Activations resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/elemental-appliances-software/ */ toUntagResource(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type activation 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 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() */ onActivation(resourceId: string, account?: string, region?: 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: * - .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 tags associated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to actions: * - .toTagResource() * - .toUntagResource() * * Applies to resource types: * - activation * * @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: * - .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 [elemental-activations](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalappliancesandsoftwareactivationservice.html). * */ constructor(props?: iam.PolicyStatementProps); }