aws.licensemanager.LicenseGrantAccepter
Explore with Pulumi AI
Accepts a License Manager grant. This allows for sharing licenses with other aws accounts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.licensemanager.LicenseGrantAccepter("test", {grantArn: "arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329"});
import pulumi
import pulumi_aws as aws
test = aws.licensemanager.LicenseGrantAccepter("test", grant_arn="arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/licensemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := licensemanager.NewLicenseGrantAccepter(ctx, "test", &licensemanager.LicenseGrantAccepterArgs{
GrantArn: pulumi.String("arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.LicenseManager.LicenseGrantAccepter("test", new()
{
GrantArn = "arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329",
});
});
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());
}
}
resources:
test:
type: aws:licensemanager:LicenseGrantAccepter
properties:
grantArn: arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329
Create LicenseGrantAccepter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LicenseGrantAccepter(name: string, args: LicenseGrantAccepterArgs, opts?: CustomResourceOptions);
@overload
def LicenseGrantAccepter(resource_name: str,
args: LicenseGrantAccepterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LicenseGrantAccepter(resource_name: str,
opts: Optional[ResourceOptions] = None,
grant_arn: Optional[str] = None)
func NewLicenseGrantAccepter(ctx *Context, name string, args LicenseGrantAccepterArgs, opts ...ResourceOption) (*LicenseGrantAccepter, error)
public LicenseGrantAccepter(string name, LicenseGrantAccepterArgs args, CustomResourceOptions? opts = null)
public LicenseGrantAccepter(String name, LicenseGrantAccepterArgs args)
public LicenseGrantAccepter(String name, LicenseGrantAccepterArgs args, CustomResourceOptions options)
type: aws:licensemanager:LicenseGrantAccepter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LicenseGrantAccepterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LicenseGrantAccepterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LicenseGrantAccepterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LicenseGrantAccepterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LicenseGrantAccepterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var licenseGrantAccepterResource = new Aws.LicenseManager.LicenseGrantAccepter("licenseGrantAccepterResource", new()
{
GrantArn = "string",
});
example, err := licensemanager.NewLicenseGrantAccepter(ctx, "licenseGrantAccepterResource", &licensemanager.LicenseGrantAccepterArgs{
GrantArn: pulumi.String("string"),
})
var licenseGrantAccepterResource = new LicenseGrantAccepter("licenseGrantAccepterResource", LicenseGrantAccepterArgs.builder()
.grantArn("string")
.build());
license_grant_accepter_resource = aws.licensemanager.LicenseGrantAccepter("licenseGrantAccepterResource", grant_arn="string")
const licenseGrantAccepterResource = new aws.licensemanager.LicenseGrantAccepter("licenseGrantAccepterResource", {grantArn: "string"});
type: aws:licensemanager:LicenseGrantAccepter
properties:
grantArn: string
LicenseGrantAccepter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LicenseGrantAccepter resource accepts the following input properties:
- Grant
Arn string - The ARN of the grant to accept.
- Grant
Arn string - The ARN of the grant to accept.
- grant
Arn String - The ARN of the grant to accept.
- grant
Arn string - The ARN of the grant to accept.
- grant_
arn str - The ARN of the grant to accept.
- grant
Arn String - The ARN of the grant to accept.
Outputs
All input properties are implicitly available as output properties. Additionally, the LicenseGrantAccepter resource produces the following output properties:
- Allowed
Operations List<string> - A list of the allowed operations for the grant.
- Home
Region string - The home region for the license.
- Id string
- The provider-assigned unique ID for this managed resource.
- License
Arn string - The ARN of the license for the grant.
- Name string
- The Name of the grant.
- Parent
Arn string - The parent ARN.
- Principal string
- The target account for the grant.
- Status string
- The grant status.
- Version string
- The grant version.
- Allowed
Operations []string - A list of the allowed operations for the grant.
- Home
Region string - The home region for the license.
- Id string
- The provider-assigned unique ID for this managed resource.
- License
Arn string - The ARN of the license for the grant.
- Name string
- The Name of the grant.
- Parent
Arn string - The parent ARN.
- Principal string
- The target account for the grant.
- Status string
- The grant status.
- Version string
- The grant version.
- allowed
Operations List<String> - A list of the allowed operations for the grant.
- home
Region String - The home region for the license.
- id String
- The provider-assigned unique ID for this managed resource.
- license
Arn String - The ARN of the license for the grant.
- name String
- The Name of the grant.
- parent
Arn String - The parent ARN.
- principal String
- The target account for the grant.
- status String
- The grant status.
- version String
- The grant version.
- allowed
Operations string[] - A list of the allowed operations for the grant.
- home
Region string - The home region for the license.
- id string
- The provider-assigned unique ID for this managed resource.
- license
Arn string - The ARN of the license for the grant.
- name string
- The Name of the grant.
- parent
Arn string - The parent ARN.
- principal string
- The target account for the grant.
- status string
- The grant status.
- version string
- The grant version.
- allowed_
operations Sequence[str] - A list of the allowed operations for the grant.
- home_
region str - The home region for the license.
- id str
- The provider-assigned unique ID for this managed resource.
- license_
arn str - The ARN of the license for the grant.
- name str
- The Name of the grant.
- parent_
arn str - The parent ARN.
- principal str
- The target account for the grant.
- status str
- The grant status.
- version str
- The grant version.
- allowed
Operations List<String> - A list of the allowed operations for the grant.
- home
Region String - The home region for the license.
- id String
- The provider-assigned unique ID for this managed resource.
- license
Arn String - The ARN of the license for the grant.
- name String
- The Name of the grant.
- parent
Arn String - The parent ARN.
- principal String
- The target account for the grant.
- status String
- The grant status.
- version String
- The grant version.
Look up Existing LicenseGrantAccepter Resource
Get an existing LicenseGrantAccepter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LicenseGrantAccepterState, opts?: CustomResourceOptions): LicenseGrantAccepter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_operations: Optional[Sequence[str]] = None,
grant_arn: Optional[str] = None,
home_region: Optional[str] = None,
license_arn: Optional[str] = None,
name: Optional[str] = None,
parent_arn: Optional[str] = None,
principal: Optional[str] = None,
status: Optional[str] = None,
version: Optional[str] = None) -> LicenseGrantAccepter
func GetLicenseGrantAccepter(ctx *Context, name string, id IDInput, state *LicenseGrantAccepterState, opts ...ResourceOption) (*LicenseGrantAccepter, error)
public static LicenseGrantAccepter Get(string name, Input<string> id, LicenseGrantAccepterState? state, CustomResourceOptions? opts = null)
public static LicenseGrantAccepter get(String name, Output<String> id, LicenseGrantAccepterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allowed
Operations List<string> - A list of the allowed operations for the grant.
- Grant
Arn string - The ARN of the grant to accept.
- Home
Region string - The home region for the license.
- License
Arn string - The ARN of the license for the grant.
- Name string
- The Name of the grant.
- Parent
Arn string - The parent ARN.
- Principal string
- The target account for the grant.
- Status string
- The grant status.
- Version string
- The grant version.
- Allowed
Operations []string - A list of the allowed operations for the grant.
- Grant
Arn string - The ARN of the grant to accept.
- Home
Region string - The home region for the license.
- License
Arn string - The ARN of the license for the grant.
- Name string
- The Name of the grant.
- Parent
Arn string - The parent ARN.
- Principal string
- The target account for the grant.
- Status string
- The grant status.
- Version string
- The grant version.
- allowed
Operations List<String> - A list of the allowed operations for the grant.
- grant
Arn String - The ARN of the grant to accept.
- home
Region String - The home region for the license.
- license
Arn String - The ARN of the license for the grant.
- name String
- The Name of the grant.
- parent
Arn String - The parent ARN.
- principal String
- The target account for the grant.
- status String
- The grant status.
- version String
- The grant version.
- allowed
Operations string[] - A list of the allowed operations for the grant.
- grant
Arn string - The ARN of the grant to accept.
- home
Region string - The home region for the license.
- license
Arn string - The ARN of the license for the grant.
- name string
- The Name of the grant.
- parent
Arn string - The parent ARN.
- principal string
- The target account for the grant.
- status string
- The grant status.
- version string
- The grant version.
- allowed_
operations Sequence[str] - A list of the allowed operations for the grant.
- grant_
arn str - The ARN of the grant to accept.
- home_
region str - The home region for the license.
- license_
arn str - The ARN of the license for the grant.
- name str
- The Name of the grant.
- parent_
arn str - The parent ARN.
- principal str
- The target account for the grant.
- status str
- The grant status.
- version str
- The grant version.
- allowed
Operations List<String> - A list of the allowed operations for the grant.
- grant
Arn String - The ARN of the grant to accept.
- home
Region String - The home region for the license.
- license
Arn String - The ARN of the license for the grant.
- name String
- The Name of the grant.
- parent
Arn String - The parent ARN.
- principal String
- The target account for the grant.
- status String
- The grant status.
- version String
- The grant version.
Import
Using pulumi import
, import aws_licensemanager_grant_accepter
using the grant arn. For example:
$ pulumi import aws:licensemanager/licenseGrantAccepter:LicenseGrantAccepter test arn:aws:license-manager::123456789012:grant:g-1cf9fba4ba2f42dcab11c686c4b4d329
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.