cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
330 lines (329 loc) • 12.8 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 [invoicing](https://docs.aws.amazon.com/service-authorization/latest/reference/list_invoicing.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Invoicing extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to get invoice profile details for an account in your organization
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_BatchGetInvoiceProfile.html
*/
toBatchGetInvoiceProfile(): this;
/**
* Grants permission to create an invoice unit for your organization
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_CreateInvoiceUnit.html
*/
toCreateInvoiceUnit(): this;
/**
* Grants permission to create a procurement portal preference
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_CreateProcurementPortalPreference.html
*/
toCreateProcurementPortalPreference(): this;
/**
* Grants permission to update an invoice unit for your organization
*
* Access Level: Write
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_DeleteInvoiceUnit.html
*/
toDeleteInvoiceUnit(): this;
/**
* Grants permission to delete a procurement portal preference
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_DeleteProcurementPortalPreference.html
*/
toDeleteProcurementPortalPreference(): this;
/**
* Grants permission to get downloadable Invoice document pre-signed URL with supplemental documents
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_GetInvoicePDF.html
*/
toGetInvoicePDF(): this;
/**
* Grants permission to get invoice units for your organization
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_GetInvoiceUnit.html
*/
toGetInvoiceUnit(): this;
/**
* Grants permission to get a procurement portal preference
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_GetProcurementPortalPreference.html
*/
toGetProcurementPortalPreference(): this;
/**
* Grants permission to get Invoice summary information for your account or linked account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListInvoiceSummaries.html
*/
toListInvoiceSummaries(): this;
/**
* Grants permission to list invoice units for your organization
*
* Access Level: List
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListInvoiceUnits.html
*/
toListInvoiceUnits(): this;
/**
* Grants permission to list procurement portal preferences for an account
*
* Access Level: List
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListProcurementPortalPreferences.html
*/
toListProcurementPortalPreferences(): this;
/**
* Grants permission to list suppliers for a procurement portal
*
* Access Level: List
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListProcurementPortalSuppliers.html
*/
toListProcurementPortalSuppliers(): this;
/**
* Grants permission to list procurement portals for an account
*
* Access Level: List
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListProcurementPortals.html
*/
toListProcurementPortals(): this;
/**
* Grants permission to list tags for a resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListTagsForResource.html
*/
toListTagsForResource(): this;
/**
* Grants permission to update a procurement portal preference
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_PutProcurementPortalPreference.html
*/
toPutProcurementPortalPreference(): this;
/**
* Grants permission to send a one-time passcode (OTP) to validate a procurement portal preference
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_SendProcurementPortalValidation.html
*/
toSendProcurementPortalValidation(): this;
/**
* Grants permission to tag a resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_TagResource.html
*/
toTagResource(): this;
/**
* Grants permission to untag a resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_UntagResource.html
*/
toUntagResource(): this;
/**
* Grants permission to update an invoice unit for your organization
*
* Access Level: Write
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_UpdateInvoiceUnit.html
*/
toUpdateInvoiceUnit(): this;
/**
* Grants permission to update the status for a procurement portal preference
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_UpdateProcurementPortalPreferenceStatus.html
*/
toUpdateProcurementPortalPreferenceStatus(): this;
/**
* Grants permission to verify the one-time passcode (OTP) to validate a procurement portal preference
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_VerifyProcurementPortalValidation.html
*/
toVerifyProcurementPortalValidation(): this;
/**
* Grants permission to get Invoice Correction
*
* Access Level: Read
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_GetInvoiceCorrection.html
*/
toGetInvoiceCorrection(): this;
/**
* Grants permission to get Invoice Email Delivery Preferences
*
* Access Level: Read
*
* https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/security_iam_id-based-policy-examples.html#billing-permissions-ref
*/
toGetInvoiceEmailDeliveryPreferences(): this;
/**
* Grants permission to list Invoice Corrections
*
* Access Level: List
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ListInvoiceCorrections.html
*/
toListInvoiceCorrections(): this;
/**
* Grants permission to put Invoice Email Delivery Preferences
*
* Access Level: Write
*
* https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/security_iam_id-based-policy-examples.html#billing-permissions-ref
*/
toPutInvoiceEmailDeliveryPreferences(): this;
/**
* Grants permission to start Invoice Correction
*
* Access Level: Write
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_StartInvoiceCorrection.html
*/
toStartInvoiceCorrection(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type invoice-unit to the statement
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_InvoiceUnit.html
*
* @param identifier - Identifier for the identifier.
* @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()
*/
onInvoiceUnit(identifier: string, account?: string, partition?: string): this;
/**
* Adds a resource of type procurement-portal-preference to the statement
*
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_invoicing_ProcurementPortalPreference.html
*
* @param identifier - Identifier for the identifier.
* @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()
*/
onProcurementPortalPreference(identifier: string, account?: string, partition?: string): this;
/**
* Filters access by allowed set of values for each of the tags
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
*
* Applies to actions:
* - .toCreateInvoiceUnit()
* - .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-value associated with the resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to actions:
* - .toCreateProcurementPortalPreference()
* - .toDeleteInvoiceUnit()
* - .toDeleteProcurementPortalPreference()
* - .toGetInvoiceUnit()
* - .toListTagsForResource()
* - .toPutProcurementPortalPreference()
* - .toSendProcurementPortalValidation()
* - .toTagResource()
* - .toUntagResource()
* - .toUpdateInvoiceUnit()
* - .toUpdateProcurementPortalPreferenceStatus()
* - .toVerifyProcurementPortalValidation()
*
* Applies to resource types:
* - invoice-unit
* - procurement-portal-preference
*
* @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 presence of mandatory tags in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateInvoiceUnit()
* - .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 [invoicing](https://docs.aws.amazon.com/service-authorization/latest/reference/list_invoicing.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}