Package com.pulumi.aws.licensemanager
Class LicenseGrant
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.licensemanager.LicenseGrant
-
public class LicenseGrant extends com.pulumi.resources.CustomResourceProvides a License Manager grant. This allows for sharing licenses with other AWS accounts. ## Example Usage
## 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 ```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()); } }
-
-
Constructor Summary
Constructors Constructor Description LicenseGrant(java.lang.String name)LicenseGrant(java.lang.String name, LicenseGrantArgs args)LicenseGrant(java.lang.String name, LicenseGrantArgs args, com.pulumi.resources.CustomResourceOptions options)
-
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 LicenseGrantget(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()
-
-
-
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.
-
-