cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
92 lines (91 loc) • 3.51 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement } from '../../shared';
import { aws_iam as iam } from "aws-cdk-lib";
/**
* Statement provider for service [pricingplanmanager](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awspricingplanmanagerservice.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Pricingplanmanager extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to associate resources with a subscription
*
* Access Level: Write
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toAssociateResourcesToSubscription(): this;
/**
* Grants permission to cancel a subscription
*
* Access Level: Write
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toCancelSubscription(): this;
/**
* Grants permission to cancel a pending a change for a subscription
*
* Access Level: Write
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toCancelSubscriptionChange(): this;
/**
* Grants permission to create a subscription
*
* Access Level: Write
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toCreateSubscription(): this;
/**
* Grants permission to disassociate resources from a subscription
*
* Access Level: Write
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toDisassociateResourcesFromSubscription(): this;
/**
* Grants permission to get the details for a subscription
*
* Access Level: Read
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toGetSubscription(): this;
/**
* Grants permission to list subscriptions in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toListSubscriptions(): this;
/**
* Grants permission to update a subscription
*
* Access Level: Write
*
* https://docs.aws.amazon.com/PricingPlanManager/latest/UserGuide/security-pricing-plan.html
*/
toUpdateSubscription(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type subscription to the statement
*
* https://docs.aws.amazon.com/pricingplanmanager/userguide/subscription.html
*
* @param subscriptionId - Identifier for the subscriptionId.
* @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.
*/
onSubscription(subscriptionId: string, account?: string, partition?: string): this;
/**
* Statement provider for service [pricingplanmanager](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awspricingplanmanagerservice.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}