Resource: awsLicensemanagerGrant
Provides a License Manager grant. This allows for sharing licenses with other AWS accounts.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.licensemanagerGrant.LicensemanagerGrant(this, "test", {
allowedOperations: [
"ListPurchasedLicenses",
"CheckoutLicense",
"CheckInLicense",
"ExtendConsumptionLicense",
"CreateToken",
],
homeRegion: "us-east-1",
licenseArn: "arn:aws:license-manager::111111111111:license:l-exampleARN",
name: "share-license-with-account",
principal: "arn:aws:iam::111111111112:root",
});
Argument Reference
The following arguments are supported:
name- (Required) The Name of the grant.allowedOperations- (Required) A list of the allowed operations for the grant. This is a subset of the allowed operations on the license.licenseArn- (Required) The ARN of the license to grant.principal- (Required) The target account for the grant in the form of the ARN for an account principal of the root user.homeRegion- (Required) The home region for the license.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id- The grant ARN (Same asarn).arn- The grant ARN.parentArn- The parent ARN.status- The grant status.version- The grant version.
Import
awsLicensemanagerGrant can be imported using the grant arn.