License Grant
    Provides a License Manager grant. This allows for sharing licenses with other AWS accounts.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.licensemanager.LicenseGrant;
import com.pulumi.aws.licensemanager.LicenseGrantArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var test = new LicenseGrant("test", LicenseGrantArgs.builder()
            .name("share-license-with-account")
            .allowedOperations(
                "ListPurchasedLicenses",
                "CheckoutLicense",
                "CheckInLicense",
                "ExtendConsumptionLicense",
                "CreateToken")
            .licenseArn("arn:aws:license-manager::111111111111:license:l-exampleARN")
            .principal("arn:aws:iam::111111111112:root")
            .homeRegion("us-east-1")
            .build());
    }
}Content copied to clipboard
resources:
  test:
    type: aws:licensemanager:LicenseGrant
    properties:
      name: share-license-with-account
      allowedOperations:
        - ListPurchasedLicenses
        - CheckoutLicense
        - CheckInLicense
        - ExtendConsumptionLicense
        - CreateToken
      licenseArn: arn:aws:license-manager::111111111111:license:l-exampleARN
      principal: arn:aws:iam::111111111112:root
      homeRegion: us-east-1Content copied to clipboard
Import
Using pulumi import, import aws_licensemanager_grant using the grant arn. For example:
$ pulumi import aws:licensemanager/licenseGrant:LicenseGrant test arn:aws:license-manager::123456789011:grant:g-01d313393d9e443d8664cc054db1e089Content copied to clipboard