UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

489 lines (488 loc) 17.2 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 [aws-marketplace](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmarketplace.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class AwsMarketplace extends PolicyStatement { servicePrefix: string; /** * Grants permission to approve an incoming subscription request (for providers who provide products that require subscription verification) * * Access Level: Write * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toAcceptAgreementApprovalRequest(): this; /** * Grants permission to accept an agreement cancellation request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toAcceptAgreementCancellationRequest(): this; /** * Grants permission to accept a payment request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toAcceptAgreementPaymentRequest(): this; /** * Grants permission to accept an agreement request * * Access Level: Write * * Possible conditions: * - .ifAgreementType() * - .ifProductId() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toAcceptAgreementRequest(): this; /** * Grants permission to create a billing adjustment request against an agreement * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toBatchCreateBillingAdjustmentRequest(): this; /** * Grants permission to cancel agreements * * Access Level: Write * * Possible conditions: * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toCancelAgreement(): this; /** * Grants permission to cancel a pending agreement cancellation request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toCancelAgreementCancellationRequest(): this; /** * Grants permission to cancel a payment request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toCancelAgreementPaymentRequest(): this; /** * Grants permission to cancel pending subscription requests for products that require subscription verification * * Access Level: Write * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toCancelAgreementRequest(): this; /** * Grants permission to create an agreement request * * Access Level: Write * * Possible conditions: * - .ifAgreementType() * - .ifProductId() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toCreateAgreementRequest(): this; /** * Grants permission to describe the metadata about the agreement * * Access Level: Read * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toDescribeAgreement(): this; /** * Grants permission to view the details of incoming subscription requests (for providers who provide products that require subscription verification) * * Access Level: Read * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetAgreementApprovalRequest(): this; /** * Grants permission to view the details of an agreement cancellation request * * Access Level: Read * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetAgreementCancellationRequest(): this; /** * Grants permission to get the entitlements associated with an agreement * * Access Level: Read * * Possible conditions: * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetAgreementEntitlements(): this; /** * Grants permission to view details for a payment request * * Access Level: Read * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetAgreementPaymentRequest(): this; /** * Grants permission to view the details of subscription requests for data products that require subscription verification * * Access Level: Read * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetAgreementRequest(): this; /** * Grants permission to get a list of terms for an agreement * * Access Level: List * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetAgreementTerms(): this; /** * Grants permission to view the details of a billing adjustment request * * Access Level: Read * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toGetBillingAdjustmentRequest(): this; /** * Grants permission to list incoming subscription requests (for providers who provide products that require subscription verification) * * Access Level: List * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListAgreementApprovalRequests(): this; /** * Grants permission to list agreement cancellation requests * * Access Level: List * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListAgreementCancellationRequests(): this; /** * Grants permission to list charges associated with an agreement * * Access Level: List * * Possible conditions: * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListAgreementCharges(): this; /** * Grants permission to list invoice line items for an agreement * * Access Level: List * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListAgreementInvoiceLineItems(): this; /** * Grants permission to list payment requests for an agreement * * Access Level: List * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListAgreementPaymentRequests(): this; /** * Grants permission to list subscription requests for products that require subscription verification * * Access Level: List * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListAgreementRequests(): this; /** * Grants permission to list billing adjustment requests * * Access Level: List * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListBillingAdjustmentRequests(): this; /** * Grants permission to list details of the entitlements associated with an agreement. Note that this action is not applicable to Marketplace purchases * * Access Level: Read * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toListEntitlementDetails(): this; /** * Grants permission to decline an incoming subscription requests (for providers who provide products that require subscription verification) * * Access Level: Write * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toRejectAgreementApprovalRequest(): this; /** * Grants permission to reject an agreement cancellation request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toRejectAgreementCancellationRequest(): this; /** * Grants permission to reject a payment request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toRejectAgreementPaymentRequest(): this; /** * Grants permission to search agreements * * Access Level: List * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toSearchAgreements(): this; /** * Grants permission to send an agreement cancellation request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toSendAgreementCancellationRequest(): this; /** * Grants permission to send a payment request * * Access Level: Write * * Possible conditions: * - .ifPartyType() * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toSendAgreementPaymentRequest(): this; /** * Grants permission to subscribe to AWS Marketplace products. Includes the ability to send a subscription request for products that require subscription verification. Includes the ability to enable auto-renewal for an existing subscription * * Access Level: Write * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toSubscribe(): this; /** * Grants permission to unsubscribe from AWS Marketplace products. Includes the ability to disable auto-renewal for an existing subscription * * Access Level: Write * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toUnsubscribe(): this; /** * Grants permission to make changes to an incoming subscription request, including the ability to delete the prospective subscriber's information (for providers who provide products that require subscription verification) * * Access Level: Write * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toUpdateAgreementApprovalRequest(): this; /** * Grants permission to update purchase orders for charges associated with an agreement * * Access Level: Write * * Possible conditions: * - .ifAgreementType() * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toUpdatePurchaseOrders(): this; /** * Grants permission to view account's subscriptions * * Access Level: List * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html */ toViewSubscriptions(): this; protected accessLevelList: AccessLevelList; /** * Filters access by the type of the agreement * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html * * Applies to actions: * - .toAcceptAgreementCancellationRequest() * - .toAcceptAgreementPaymentRequest() * - .toAcceptAgreementRequest() * - .toBatchCreateBillingAdjustmentRequest() * - .toCancelAgreement() * - .toCancelAgreementCancellationRequest() * - .toCancelAgreementPaymentRequest() * - .toCreateAgreementRequest() * - .toDescribeAgreement() * - .toGetAgreementCancellationRequest() * - .toGetAgreementEntitlements() * - .toGetAgreementPaymentRequest() * - .toGetAgreementTerms() * - .toGetBillingAdjustmentRequest() * - .toListAgreementCancellationRequests() * - .toListAgreementCharges() * - .toListAgreementInvoiceLineItems() * - .toListAgreementPaymentRequests() * - .toListBillingAdjustmentRequests() * - .toRejectAgreementCancellationRequest() * - .toRejectAgreementPaymentRequest() * - .toSearchAgreements() * - .toSendAgreementCancellationRequest() * - .toSendAgreementPaymentRequest() * - .toUpdatePurchaseOrders() * * @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` */ ifAgreementType(value: string | string[], operator?: Operator | string): this; /** * Filters access by the party type of the agreement * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html * * Applies to actions: * - .toAcceptAgreementCancellationRequest() * - .toAcceptAgreementPaymentRequest() * - .toBatchCreateBillingAdjustmentRequest() * - .toCancelAgreementCancellationRequest() * - .toCancelAgreementPaymentRequest() * - .toDescribeAgreement() * - .toGetAgreementCancellationRequest() * - .toGetAgreementPaymentRequest() * - .toGetAgreementTerms() * - .toGetBillingAdjustmentRequest() * - .toListAgreementCancellationRequests() * - .toListAgreementInvoiceLineItems() * - .toListAgreementPaymentRequests() * - .toListBillingAdjustmentRequests() * - .toRejectAgreementCancellationRequest() * - .toRejectAgreementPaymentRequest() * - .toSearchAgreements() * - .toSendAgreementCancellationRequest() * - .toSendAgreementPaymentRequest() * * @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` */ ifPartyType(value: string | string[], operator?: Operator | string): this; /** * Filters access by product id for AWS Marketplace purchases * * https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-iam-users-groups-policies.html * * Applies to actions: * - .toAcceptAgreementRequest() * - .toCreateAgreementRequest() * * @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` */ ifProductId(value: string | string[], operator?: Operator | string): this; /** * Statement provider for service [aws-marketplace](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmarketplace.html). * */ constructor(props?: iam.PolicyStatementProps); }