cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
961 lines • 91.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LicenseManager = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [license-manager](https://docs.aws.amazon.com/service-authorization/latest/reference/list_license-manager.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class LicenseManager extends shared_1.PolicyStatement {
/**
* Grants permission to accept a grant
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_AcceptGrant.html
*/
toAcceptGrant() {
return this.to('AcceptGrant');
}
/**
* Grants permission to check in license entitlements back to pool
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CheckInLicense.html
*/
toCheckInLicense() {
return this.to('CheckInLicense');
}
/**
* Grants permission to check out license entitlements for borrow use case
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CheckoutBorrowLicense.html
*/
toCheckoutBorrowLicense() {
return this.to('CheckoutBorrowLicense');
}
/**
* Grants permission to check out license entitlements
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CheckoutLicense.html
*/
toCheckoutLicense() {
return this.to('CheckoutLicense');
}
/**
* Grants permission to create a new grant for license
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateGrant.html
*/
toCreateGrant() {
return this.to('CreateGrant');
}
/**
* Grants permission to create new version of grant
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateGrantVersion.html
*/
toCreateGrantVersion() {
return this.to('CreateGrantVersion');
}
/**
* Grants permission to create a new license
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicense.html
*/
toCreateLicense() {
return this.to('CreateLicense');
}
/**
* Grants permission to create a license asset group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicenseAssetGroup.html
*/
toCreateLicenseAssetGroup() {
return this.to('CreateLicenseAssetGroup');
}
/**
* Grants permission to create a license asset ruleset
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicenseAssetRuleset.html
*/
toCreateLicenseAssetRuleset() {
return this.to('CreateLicenseAssetRuleset');
}
/**
* Grants permission to create a new license configuration
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicenseConfiguration.html
*/
toCreateLicenseConfiguration() {
return this.to('CreateLicenseConfiguration');
}
/**
* Grants permission to create a license conversion task for a resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicenseConversionTaskForResource.html
*/
toCreateLicenseConversionTaskForResource() {
return this.to('CreateLicenseConversionTaskForResource');
}
/**
* Grants permission to create a report generator for supported license manager resources
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicenseManagerReportGenerator.html
*/
toCreateLicenseManagerReportGenerator() {
return this.to('CreateLicenseManagerReportGenerator');
}
/**
* Grants permission to create new version of license
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateLicenseVersion.html
*/
toCreateLicenseVersion() {
return this.to('CreateLicenseVersion');
}
/**
* Grants permission to create a new token for license
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_CreateToken.html
*/
toCreateToken() {
return this.to('CreateToken');
}
/**
* Grants permission to delete a grant
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteGrant.html
*/
toDeleteGrant() {
return this.to('DeleteGrant');
}
/**
* Grants permission to delete a license
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteLicense.html
*/
toDeleteLicense() {
return this.to('DeleteLicense');
}
/**
* Grants permission to delete a license asset group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteLicenseAssetGroup.html
*/
toDeleteLicenseAssetGroup() {
return this.to('DeleteLicenseAssetGroup');
}
/**
* Grants permission to delete a license asset ruleset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteLicenseAssetRuleset.html
*/
toDeleteLicenseAssetRuleset() {
return this.to('DeleteLicenseAssetRuleset');
}
/**
* Grants permission to permanently delete a license configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteLicenseConfiguration.html
*/
toDeleteLicenseConfiguration() {
return this.to('DeleteLicenseConfiguration');
}
/**
* Grants permission to delete a report generator
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteLicenseManagerReportGenerator.html
*/
toDeleteLicenseManagerReportGenerator() {
return this.to('DeleteLicenseManagerReportGenerator');
}
/**
* Grants permission to delete token
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_DeleteToken.html
*/
toDeleteToken() {
return this.to('DeleteToken');
}
/**
* Grants permission to extend consumption period of already checkout license entitlements
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ExtendLicenseConsumption.html
*/
toExtendLicenseConsumption() {
return this.to('ExtendLicenseConsumption');
}
/**
* Grants permission to get access token
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetAccessToken.html
*/
toGetAccessToken() {
return this.to('GetAccessToken');
}
/**
* Grants permission to get a grant
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetGrant.html
*/
toGetGrant() {
return this.to('GetGrant');
}
/**
* Grants permission to get a license
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicense.html
*/
toGetLicense() {
return this.to('GetLicense');
}
/**
* Grants permission to get a license asset group
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicenseAssetGroup.html
*/
toGetLicenseAssetGroup() {
return this.to('GetLicenseAssetGroup');
}
/**
* Grants permission to get a license asset ruleset
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicenseAssetRuleset.html
*/
toGetLicenseAssetRuleset() {
return this.to('GetLicenseAssetRuleset');
}
/**
* Grants permission to get a license configuration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicenseConfiguration.html
*/
toGetLicenseConfiguration() {
return this.to('GetLicenseConfiguration');
}
/**
* Grants permission to retrieve a license conversion task
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicenseConversionTask.html
*/
toGetLicenseConversionTask() {
return this.to('GetLicenseConversionTask');
}
/**
* Grants permission to get a report generator
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicenseManagerReportGenerator.html
*/
toGetLicenseManagerReportGenerator() {
return this.to('GetLicenseManagerReportGenerator');
}
/**
* Grants permission to get a license usage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetLicenseUsage.html
*/
toGetLicenseUsage() {
return this.to('GetLicenseUsage');
}
/**
* Grants permission to get service settings
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_GetServiceSettings.html
*/
toGetServiceSettings() {
return this.to('GetServiceSettings');
}
/**
* Grants permission to list assets for a license asset group
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListAssetsForLicenseAssetGroup.html
*/
toListAssetsForLicenseAssetGroup() {
return this.to('ListAssetsForLicenseAssetGroup');
}
/**
* Grants permission to list associations for a selected license configuration
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListAssociationsForLicenseConfiguration.html
*/
toListAssociationsForLicenseConfiguration() {
return this.to('ListAssociationsForLicenseConfiguration');
}
/**
* Grants permission to list distributed grants
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListDistributedGrants.html
*/
toListDistributedGrants() {
return this.to('ListDistributedGrants');
}
/**
* Grants permission to list the license configuration operations that failed
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListFailuresForLicenseConfigurationOperations.html
*/
toListFailuresForLicenseConfigurationOperations() {
return this.to('ListFailuresForLicenseConfigurationOperations');
}
/**
* Grants permission to list license asset groups
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseAssetGroups.html
*/
toListLicenseAssetGroups() {
return this.to('ListLicenseAssetGroups');
}
/**
* Grants permission to list license asset rulesets
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseAssetRulesets.html
*/
toListLicenseAssetRulesets() {
return this.to('ListLicenseAssetRulesets');
}
/**
* Grants permission to list license configurations
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseConfigurations.html
*/
toListLicenseConfigurations() {
return this.to('ListLicenseConfigurations');
}
/**
* Grants permission to list license configurations for organization
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseConfigurationsForOrganization.html
*/
toListLicenseConfigurationsForOrganization() {
return this.to('ListLicenseConfigurationsForOrganization');
}
/**
* Grants permission to list license conversion tasks
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseConversionTasks.html
*/
toListLicenseConversionTasks() {
return this.to('ListLicenseConversionTasks');
}
/**
* Grants permission to list report generators
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseManagerReportGenerators.html
*/
toListLicenseManagerReportGenerators() {
return this.to('ListLicenseManagerReportGenerators');
}
/**
* Grants permission to list license specifications associated with a selected resource
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseSpecificationsForResource.html
*/
toListLicenseSpecificationsForResource() {
return this.to('ListLicenseSpecificationsForResource');
}
/**
* Grants permission to list license versions
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenseVersions.html
*/
toListLicenseVersions() {
return this.to('ListLicenseVersions');
}
/**
* Grants permission to list licenses
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListLicenses.html
*/
toListLicenses() {
return this.to('ListLicenses');
}
/**
* Grants permission to list received grants
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListReceivedGrants.html
*/
toListReceivedGrants() {
return this.to('ListReceivedGrants');
}
/**
* Grants permission to list received grants for organization
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListReceivedGrantsForOrganization.html
*/
toListReceivedGrantsForOrganization() {
return this.to('ListReceivedGrantsForOrganization');
}
/**
* Grants permission to list received licenses
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListReceivedLicenses.html
*/
toListReceivedLicenses() {
return this.to('ListReceivedLicenses');
}
/**
* Grants permission to list received licenses for organization
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListReceivedLicensesForOrganization.html
*/
toListReceivedLicensesForOrganization() {
return this.to('ListReceivedLicensesForOrganization');
}
/**
* Grants permission to list resource inventory
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListResourceInventory.html
*/
toListResourceInventory() {
return this.to('ListResourceInventory');
}
/**
* Grants permission to list tags for a selected resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to list tokens
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListTokens.html
*/
toListTokens() {
return this.to('ListTokens');
}
/**
* Grants permission to list usage records for selected license configuration
*
* Access Level: List
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_ListUsageForLicenseConfiguration.html
*/
toListUsageForLicenseConfiguration() {
return this.to('ListUsageForLicenseConfiguration');
}
/**
* Grants permission to reject a grant
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_RejectGrant.html
*/
toRejectGrant() {
return this.to('RejectGrant');
}
/**
* Grants permission to tag a selected resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_TagResource.html
*/
toTagResource() {
return this.to('TagResource');
}
/**
* Grants permission to untag a selected resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UntagResource.html
*/
toUntagResource() {
return this.to('UntagResource');
}
/**
* Grants permission to update a license asset group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UpdateLicenseAssetGroup.html
*/
toUpdateLicenseAssetGroup() {
return this.to('UpdateLicenseAssetGroup');
}
/**
* Grants permission to update a license asset ruleset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UpdateLicenseAssetRuleset.html
*/
toUpdateLicenseAssetRuleset() {
return this.to('UpdateLicenseAssetRuleset');
}
/**
* Grants permission to update an existing license configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UpdateLicenseConfiguration.html
*/
toUpdateLicenseConfiguration() {
return this.to('UpdateLicenseConfiguration');
}
/**
* Grants permission to update a report generator for supported license manager resources
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UpdateLicenseManagerReportGenerator.html
*/
toUpdateLicenseManagerReportGenerator() {
return this.to('UpdateLicenseManagerReportGenerator');
}
/**
* Grants permission to updates license specifications for a selected resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UpdateLicenseSpecificationsForResource.html
*/
toUpdateLicenseSpecificationsForResource() {
return this.to('UpdateLicenseSpecificationsForResource');
}
/**
* Grants permission to updates service settings
*
* Access Level: Permissions management, Write
*
* https://docs.aws.amazon.com/license-manager/latest/APIReference/API_UpdateServiceSettings.html
*/
toUpdateServiceSettings() {
return this.to('UpdateServiceSettings');
}
/**
* Adds a resource of type grant to the statement
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/granted-licenses.html
*
* @param grantId - Identifier for the grantId.
* @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()
*/
onGrant(grantId, account, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:license-manager::${account ?? this.defaultAccount}:grant:${grantId}`);
}
/**
* Adds a resource of type license to the statement
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/seller-issued-licenses.html
*
* @param licenseId - Identifier for the licenseId.
* @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()
*/
onLicense(licenseId, account, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:license-manager::${account ?? this.defaultAccount}:license:${licenseId}`);
}
/**
* Adds a resource of type license-asset-group to the statement
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/license-asset-group.html
*
* @param licenseAssetGroupId - Identifier for the licenseAssetGroupId.
* @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()
*/
onLicenseAssetGroup(licenseAssetGroupId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:license-manager:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:license-asset-group:${licenseAssetGroupId}`);
}
/**
* Adds a resource of type license-asset-ruleset to the statement
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/license-asset-ruleset.html
*
* @param licenseAssetRulesetId - Identifier for the licenseAssetRulesetId.
* @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()
*/
onLicenseAssetRuleset(licenseAssetRulesetId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:license-manager:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:license-asset-ruleset:${licenseAssetRulesetId}`);
}
/**
* Adds a resource of type license-configuration to the statement
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/license-configurations.html
*
* @param licenseConfigurationId - Identifier for the licenseConfigurationId.
* @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()
* - .ifResourceTag()
*/
onLicenseConfiguration(licenseConfigurationId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:license-manager:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:license-configuration:${licenseConfigurationId}`);
}
/**
* Adds a resource of type report-generator to the statement
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/license-reporting.html
*
* @param reportGeneratorId - Identifier for the reportGeneratorId.
* @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()
* - .ifResourceTag()
*/
onReportGenerator(reportGeneratorId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:license-manager:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:report-generator:${reportGeneratorId}`);
}
/**
* Filters access by the tags that are passed in the request
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/identity-access-management.html
*
* Applies to actions:
* - .toCreateGrant()
* - .toCreateLicense()
* - .toCreateLicenseAssetGroup()
* - .toCreateLicenseAssetRuleset()
* - .toCreateLicenseConfiguration()
* - .toCreateLicenseManagerReportGenerator()
* - .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, value, operator) {
return this.if(`aws:RequestTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by the tags associated with the resource
*
* Applies to actions:
* - .toAcceptGrant()
* - .toCheckoutBorrowLicense()
* - .toCreateGrant()
* - .toCreateGrantVersion()
* - .toCreateLicenseAssetGroup()
* - .toCreateLicenseVersion()
* - .toCreateToken()
* - .toDeleteGrant()
* - .toDeleteLicense()
* - .toDeleteLicenseAssetGroup()
* - .toDeleteLicenseAssetRuleset()
* - .toDeleteLicenseConfiguration()
* - .toDeleteLicenseManagerReportGenerator()
* - .toGetGrant()
* - .toGetLicense()
* - .toGetLicenseAssetGroup()
* - .toGetLicenseAssetRuleset()
* - .toGetLicenseConfiguration()
* - .toGetLicenseManagerReportGenerator()
* - .toGetLicenseUsage()
* - .toListAssetsForLicenseAssetGroup()
* - .toListAssociationsForLicenseConfiguration()
* - .toListFailuresForLicenseConfigurationOperations()
* - .toListLicenseAssetGroups()
* - .toListLicenseAssetRulesets()
* - .toListLicenseManagerReportGenerators()
* - .toListLicenseVersions()
* - .toListTagsForResource()
* - .toListUsageForLicenseConfiguration()
* - .toRejectGrant()
* - .toTagResource()
* - .toUntagResource()
* - .toUpdateLicenseAssetGroup()
* - .toUpdateLicenseAssetRuleset()
* - .toUpdateLicenseConfiguration()
* - .toUpdateLicenseManagerReportGenerator()
* - .toUpdateLicenseSpecificationsForResource()
*
* Applies to resource types:
* - grant
* - license
* - license-asset-group
* - license-asset-ruleset
* - license-configuration
* - report-generator
*
* @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, value, operator) {
return this.if(`aws:ResourceTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by tag keys that are passed in the request
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/identity-access-management.html
*
* Applies to actions:
* - .toCreateGrant()
* - .toCreateLicense()
* - .toCreateLicenseAssetGroup()
* - .toCreateLicenseAssetRuleset()
* - .toCreateLicenseConfiguration()
* - .toCreateLicenseManagerReportGenerator()
* - .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, operator) {
return this.if(`aws:TagKeys`, value, operator ?? 'StringLike');
}
/**
* Filters access by the tag key-value pairs attached to the resource
*
* https://docs.aws.amazon.com/license-manager/latest/userguide/identity-access-management.html
*
* Applies to actions:
* - .toDeleteLicenseConfiguration()
* - .toDeleteLicenseManagerReportGenerator()
* - .toGetLicenseConfiguration()
* - .toGetLicenseManagerReportGenerator()
* - .toListAssociationsForLicenseConfiguration()
* - .toListFailuresForLicenseConfigurationOperations()
* - .toListLicenseManagerReportGenerators()
* - .toListTagsForResource()
* - .toListUsageForLicenseConfiguration()
* - .toTagResource()
* - .toUntagResource()
* - .toUpdateLicenseConfiguration()
* - .toUpdateLicenseManagerReportGenerator()
* - .toUpdateLicenseSpecificationsForResource()
*
* Applies to resource types:
* - license-configuration
* - report-generator
*
* @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`
*/
ifResourceTag(tagKey, value, operator) {
return this.if(`ResourceTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Statement provider for service [license-manager](https://docs.aws.amazon.com/service-authorization/latest/reference/list_license-manager.html).
*
*/
constructor(props) {
super(props);
this.servicePrefix = 'license-manager';
this.accessLevelList = {
Write: [
'AcceptGrant',
'CheckInLicense',
'CheckoutBorrowLicense',
'CheckoutLicense',
'CreateGrant',
'CreateGrantVersion',
'CreateLicense',
'CreateLicenseAssetGroup',
'CreateLicenseAssetRuleset',
'CreateLicenseConfiguration',
'CreateLicenseConversionTaskForResource',
'CreateLicenseManagerReportGenerator',
'CreateLicenseVersion',
'CreateToken',
'DeleteGrant',
'DeleteLicense',
'DeleteLicenseAssetGroup',
'DeleteLicenseAssetRuleset',
'DeleteLicenseConfiguration',
'DeleteLicenseManagerReportGenerator',
'DeleteToken',
'ExtendLicenseConsumption',
'RejectGrant',
'TagResource',
'UntagResource',
'UpdateLicenseAssetGroup',
'UpdateLicenseAssetRuleset',
'UpdateLicenseConfiguration',
'UpdateLicenseManagerReportGenerator',
'UpdateLicenseSpecificationsForResource',
'UpdateServiceSettings'
],
Read: [
'GetAccessToken',
'GetGrant',
'GetLicense',
'GetLicenseAssetGroup',
'GetLicenseAssetRuleset',
'GetLicenseConfiguration',
'GetLicenseConversionTask',
'GetLicenseManagerReportGenerator',
'GetLicenseUsage',
'ListLicenses',
'ListTagsForResource'
],
List: [
'GetServiceSettings',
'ListAssetsForLicenseAssetGroup',
'ListAssociationsForLicenseConfiguration',
'ListDistributedGrants',
'ListFailuresForLicenseConfigurationOperations',
'ListLicenseAssetGroups',
'ListLicenseAssetRulesets',
'ListLicenseConfigurations',
'ListLicenseConfigurationsForOrganization',
'ListLicenseConversionTasks',
'ListLicenseManagerReportGenerators',
'ListLicenseSpecificationsForResource',
'ListLicenseVersions',
'ListReceivedGrants',
'ListReceivedGrantsForOrganization',
'ListReceivedLicenses',
'ListReceivedLicensesForOrganization',
'ListResourceInventory',
'ListTokens',
'ListUsageForLicenseConfiguration'
],
Tagging: [
'TagResource',
'UntagResource'
],
'Permissions management': [
'UpdateServiceSettings'
]
};
}
}
exports.LicenseManager = LicenseManager;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGljZW5zZS1tYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibGljZW5zZS1tYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHlDQUF5RDtBQUd6RDs7OztHQUlHO0FBQ0gsTUFBYSxjQUFlLFNBQVEsd0JBQWU7SUFHakQ7Ozs7OztPQU1HO0lBQ0ksYUFBYTtRQUNsQixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDaEMsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLGdCQUFnQjtRQUNyQixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztJQUNuQyxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksdUJBQXVCO1FBQzVCLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyx1QkFBdUIsQ0FBQyxDQUFDO0lBQzFDLENBQ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