1. Packages
  2. AWS Classic
  3. API Docs
  4. licensemanager
  5. LicenseGrantAccepter

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.0 published on Wednesday, May 1, 2024 by Pulumi

aws.licensemanager.LicenseGrantAccepter

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.0 published on Wednesday, May 1, 2024 by Pulumi

    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.

    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:

    GrantArn string
    The ARN of the grant to accept.
    GrantArn string
    The ARN of the grant to accept.
    grantArn String
    The ARN of the grant to accept.
    grantArn string
    The ARN of the grant to accept.
    grant_arn str
    The ARN of the grant to accept.
    grantArn 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:

    AllowedOperations List<string>
    A list of the allowed operations for the grant.
    HomeRegion string
    The home region for the license.
    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseArn string
    The ARN of the license for the grant.
    Name string
    The Name of the grant.
    ParentArn string
    The parent ARN.
    Principal string
    The target account for the grant.
    Status string
    The grant status.
    Version string
    The grant version.
    AllowedOperations []string
    A list of the allowed operations for the grant.
    HomeRegion string
    The home region for the license.
    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseArn string
    The ARN of the license for the grant.
    Name string
    The Name of the grant.
    ParentArn string
    The parent ARN.
    Principal string
    The target account for the grant.
    Status string
    The grant status.
    Version string
    The grant version.
    allowedOperations List<String>
    A list of the allowed operations for the grant.
    homeRegion String
    The home region for the license.
    id String
    The provider-assigned unique ID for this managed resource.
    licenseArn String
    The ARN of the license for the grant.
    name String
    The Name of the grant.
    parentArn String
    The parent ARN.
    principal String
    The target account for the grant.
    status String
    The grant status.
    version String
    The grant version.
    allowedOperations string[]
    A list of the allowed operations for the grant.
    homeRegion string
    The home region for the license.
    id string
    The provider-assigned unique ID for this managed resource.
    licenseArn string
    The ARN of the license for the grant.
    name string
    The Name of the grant.
    parentArn 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.
    allowedOperations List<String>
    A list of the allowed operations for the grant.
    homeRegion String
    The home region for the license.
    id String
    The provider-assigned unique ID for this managed resource.
    licenseArn String
    The ARN of the license for the grant.
    name String
    The Name of the grant.
    parentArn 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.
    The following state arguments are supported:
    AllowedOperations List<string>
    A list of the allowed operations for the grant.
    GrantArn string
    The ARN of the grant to accept.
    HomeRegion string
    The home region for the license.
    LicenseArn string
    The ARN of the license for the grant.
    Name string
    The Name of the grant.
    ParentArn string
    The parent ARN.
    Principal string
    The target account for the grant.
    Status string
    The grant status.
    Version string
    The grant version.
    AllowedOperations []string
    A list of the allowed operations for the grant.
    GrantArn string
    The ARN of the grant to accept.
    HomeRegion string
    The home region for the license.
    LicenseArn string
    The ARN of the license for the grant.
    Name string
    The Name of the grant.
    ParentArn string
    The parent ARN.
    Principal string
    The target account for the grant.
    Status string
    The grant status.
    Version string
    The grant version.
    allowedOperations List<String>
    A list of the allowed operations for the grant.
    grantArn String
    The ARN of the grant to accept.
    homeRegion String
    The home region for the license.
    licenseArn String
    The ARN of the license for the grant.
    name String
    The Name of the grant.
    parentArn String
    The parent ARN.
    principal String
    The target account for the grant.
    status String
    The grant status.
    version String
    The grant version.
    allowedOperations string[]
    A list of the allowed operations for the grant.
    grantArn string
    The ARN of the grant to accept.
    homeRegion string
    The home region for the license.
    licenseArn string
    The ARN of the license for the grant.
    name string
    The Name of the grant.
    parentArn 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.
    allowedOperations List<String>
    A list of the allowed operations for the grant.
    grantArn String
    The ARN of the grant to accept.
    homeRegion String
    The home region for the license.
    licenseArn String
    The ARN of the license for the grant.
    name String
    The Name of the grant.
    parentArn 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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.33.0 published on Wednesday, May 1, 2024 by Pulumi