Package com.pulumi.aws.licensemanager
Class LicenseGrantAccepter
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.licensemanager.LicenseGrantAccepter
-
public class LicenseGrantAccepter extends com.pulumi.resources.CustomResource
Accepts a License Manager grant. This allows for sharing licenses with other aws accounts. ## Example Usage <!--Start PulumiCodeChooser -->package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.licensemanager.LicenseGrantAccepter; import com.pulumi.aws.licensemanager.LicenseGrantAccepterArgs; 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 LicenseGrantAccepter("test", LicenseGrantAccepterArgs.builder() .grantArn("arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description LicenseGrantAccepter(java.lang.String name)
LicenseGrantAccepter(java.lang.String name, LicenseGrantAccepterArgs args)
LicenseGrantAccepter(java.lang.String name, LicenseGrantAccepterArgs 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()
static LicenseGrantAccepter
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, LicenseGrantAccepterState 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>
grantArn()
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>
status()
com.pulumi.core.Output<java.lang.String>
version()
-
-
-
Constructor Detail
-
LicenseGrantAccepter
public LicenseGrantAccepter(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
LicenseGrantAccepter
public LicenseGrantAccepter(java.lang.String name, LicenseGrantAccepterArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
LicenseGrantAccepter
public LicenseGrantAccepter(java.lang.String name, LicenseGrantAccepterArgs 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.
-
grantArn
public com.pulumi.core.Output<java.lang.String> grantArn()
- Returns:
- The ARN of the grant to accept.
-
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 for the 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.
-
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 LicenseGrantAccepter get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable LicenseGrantAccepterState 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.
-
-