UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

225 lines (224 loc) 8.69 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 [bcm-dashboards](https://docs.aws.amazon.com/service-authorization/latest/reference/list_bcm-dashboards.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class BcmDashboards extends PolicyStatement { servicePrefix: string; /** * Grants permission to create a dashboard * * Access Level: Write * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_CreateDashboard.html */ toCreateDashboard(): this; /** * Grants permission to create a scheduled report * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_CreateScheduledReport.html */ toCreateScheduledReport(): this; /** * Grants permission to delete a dashboard * * Access Level: Write * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_DeleteDashboard.html */ toDeleteDashboard(): this; /** * Grants permission to delete a scheduled report * * Access Level: Write * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_DeleteScheduledReport.html */ toDeleteScheduledReport(): this; /** * Grants permission to execute a scheduled report * * Access Level: Write * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_ExecuteScheduledReport.html */ toExecuteScheduledReport(): this; /** * Grants permission to get dashboard information * * Access Level: Read * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_GetDashboard.html */ toGetDashboard(): this; /** * Grants permission to get the resource policy for a dashboard * * Access Level: Read * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_GetResourcePolicy.html */ toGetResourcePolicy(): this; /** * Grants permission to get scheduled report information * * Access Level: Read * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_GetScheduledReport.html */ toGetScheduledReport(): this; /** * Grants permission to list information about all of the dashboards for a user * * Access Level: Read * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_ListDashboards.html */ toListDashboards(): this; /** * Grants permission to list information about all of the scheduled reports for a user * * Access Level: List * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_ListScheduledReports.html */ toListScheduledReports(): this; /** * Grants permission to list all of the tags for a resource * * Access Level: Read * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to create a tag for a resource * * Access Level: Tagging, Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_TagResource.html */ toTagResource(): this; /** * Grants permission to remove a tag for a resource * * Access Level: Tagging, Write * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update an existing dashboard * * Access Level: Write * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_UpdateDashboard.html */ toUpdateDashboard(): this; /** * Grants permission to update an existing scheduled report * * Access Level: Write * * https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_bcmDashboards_UpdateScheduledReport.html */ toUpdateScheduledReport(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type dashboard to the statement * * https://docs.aws.amazon.com/cost-management/latest/userguide/ * * @param dashboardName - Identifier for the dashboardName. * @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() * - .ifAwsTagKeys() */ onDashboard(dashboardName: string, account?: string, partition?: string): this; /** * Adds a resource of type scheduled-report to the statement * * https://docs.aws.amazon.com/cost-management/latest/userguide/ * * @param scheduledReportName - Identifier for the scheduledReportName. * @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() * - .ifAwsTagKeys() */ onScheduledReport(scheduledReportName: string, account?: 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 tag key-value pairs attached to the resource * * https://docs.aws.amazon.com/cost-management/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-tags * * Applies to actions: * - .toCreateScheduledReport() * * Applies to resource types: * - dashboard * - scheduled-report * * @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: * - .toCreateScheduledReport() * - .toTagResource() * - .toUntagResource() * * Applies to resource types: * - dashboard * - scheduled-report * * @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 [bcm-dashboards](https://docs.aws.amazon.com/service-authorization/latest/reference/list_bcm-dashboards.html). * */ constructor(props?: iam.PolicyStatementProps); }