cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
176 lines (175 loc) • 7.22 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 [account-access](https://docs.aws.amazon.com/service-authorization/latest/reference/list_account-access.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class AccountAccess extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to enable an account access manager instance and create an AWS account access application in the associated IAM Identity Center instance
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toCreateApplication(): this;
/**
* Grants permission to create an entitlement in an account access manager instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toCreateEntitlement(): this;
/**
* Grants permission to delete an account access manager instance and its AWS account access application in the associated IAM Identity Center instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toDeleteApplication(): this;
/**
* Grants permission to delete an entitlement in an account access manager instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toDeleteEntitlement(): this;
/**
* Grants permission to describe an account access manager instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toGetApplication(): this;
/**
* Grants permission to get entitlement details for an account access manager instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toGetEntitlement(): this;
/**
* Grants permission to list account access manager instances
*
* Access Level: List
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toListApplications(): this;
/**
* Grants permission to list entitlements for an account access manager instance
*
* Access Level: List
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toListEntitlements(): this;
/**
* Grants permission to list tags for an account access manager resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toListTagsForResource(): this;
/**
* Grants permission to tag an account access manager resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toTagResource(): this;
/**
* Grants permission to remove tags from an account access manager resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*/
toUntagResource(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type application to the statement
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_accountaccessmanager.html
*
* @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()
*/
onApplication(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Filters access by 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:
* - .toCreateApplication()
* - .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 attached to the resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to actions:
* - .toCreateEntitlement()
* - .toDeleteApplication()
* - .toDeleteEntitlement()
* - .toGetApplication()
* - .toGetEntitlement()
* - .toListEntitlements()
* - .toListTagsForResource()
* - .toTagResource()
* - .toUntagResource()
*
* Applies to resource types:
* - application
*
* @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
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateApplication()
* - .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 [account-access](https://docs.aws.amazon.com/service-authorization/latest/reference/list_account-access.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}