Class LicenseGrant


  • public class LicenseGrant
    extends com.pulumi.resources.CustomResource
    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.ArrayList;
     import java.util.Arrays;
     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());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.licensemanager.LicenseGrant` using the grant ARN. For example: ```sh $ pulumi import aws:licensemanager/licenseGrant:LicenseGrant test arn:aws:license-manager::123456789011:grant:g-01d313393d9e443d8664cc054db1e089 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.List<java.lang.String>> allowedOperations()  
      com.pulumi.core.Output<java.lang.String> arn()  
      static LicenseGrant get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, LicenseGrantState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> homeRegion()  
      com.pulumi.core.Output<java.lang.String> licenseArn()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> parentArn()  
      com.pulumi.core.Output<java.lang.String> principal()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.lang.String> version()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LicenseGrant

        public LicenseGrant​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • LicenseGrant

        public LicenseGrant​(java.lang.String name,
                            LicenseGrantArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • LicenseGrant

        public LicenseGrant​(java.lang.String name,
                            LicenseGrantArgs args,
                            @Nullable
                            com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • allowedOperations

        public com.pulumi.core.Output<java.util.List<java.lang.String>> allowedOperations()
        Returns:
        A list of the allowed operations for the grant. This is a subset of the allowed operations on the license.
      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        The grant ARN.
      • homeRegion

        public com.pulumi.core.Output<java.lang.String> homeRegion()
        Returns:
        The home region for the license.
      • licenseArn

        public com.pulumi.core.Output<java.lang.String> licenseArn()
        Returns:
        The ARN of the license to grant.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The Name of the grant.
      • parentArn

        public com.pulumi.core.Output<java.lang.String> parentArn()
        Returns:
        The parent ARN.
      • principal

        public com.pulumi.core.Output<java.lang.String> principal()
        Returns:
        The target account for the grant in the form of the ARN for an account principal of the root user.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        The grant status.
      • version

        public com.pulumi.core.Output<java.lang.String> version()
        Returns:
        The grant version.
      • get

        public static LicenseGrant get​(java.lang.String name,
                                       com.pulumi.core.Output<java.lang.String> id,
                                       @Nullable
                                       LicenseGrantState state,
                                       @Nullable
                                       com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.