Show / Hide Table of Contents

Class LicenseConfiguration

Provides a License Manager license configuration resource.

Note: Removing the license_count attribute is not supported by the License Manager API - recreate the resource instead.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.LicenseManager.LicenseConfiguration("example", new Aws.LicenseManager.LicenseConfigurationArgs
    {
        Description = "Example",
        LicenseCount = 10,
        LicenseCountHardLimit = true,
        LicenseCountingType = "Socket",
        LicenseRules = 
        {
            "#minimumSockets=2",
        },
        Tags = 
        {
            { "foo", "barr" },
        },
    });
}

}

Rules

License rules should be in the format of #RuleType=RuleValue. Supported rule types:

  • minimumVcpus - Resource must have minimum vCPU count in order to use the license. Default: 1
  • maximumVcpus - Resource must have maximum vCPU count in order to use the license. Default: unbounded, limit: 10000
  • minimumCores - Resource must have minimum core count in order to use the license. Default: 1
  • maximumCores - Resource must have maximum core count in order to use the license. Default: unbounded, limit: 10000
  • minimumSockets - Resource must have minimum socket count in order to use the license. Default: 1
  • maximumSockets - Resource must have maximum socket count in order to use the license. Default: unbounded, limit: 10000
  • allowedTenancy - Defines where the license can be used. If set, restricts license usage to selected tenancies. Specify a comma delimited list of EC2-Default, EC2-DedicatedHost, EC2-DedicatedInstance
Inheritance
System.Object
Resource
CustomResource
LicenseConfiguration
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.LicenseManager
Assembly: Pulumi.Aws.dll
Syntax
public class LicenseConfiguration : CustomResource

Constructors

View Source

LicenseConfiguration(String, LicenseConfigurationArgs, CustomResourceOptions)

Create a LicenseConfiguration resource with the given unique name, arguments, and options.

Declaration
public LicenseConfiguration(string name, LicenseConfigurationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

LicenseConfigurationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

Description of the license configuration.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

LicenseCount

Number of licenses managed by the license configuration.

Declaration
public Output<int?> LicenseCount { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

LicenseCountHardLimit

Sets the number of available licenses as a hard limit.

Declaration
public Output<bool?> LicenseCountHardLimit { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

LicenseCountingType

Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket.

Declaration
public Output<string> LicenseCountingType { get; }
Property Value
Type Description
Output<System.String>
View Source

LicenseRules

Array of configured License Manager rules.

Declaration
public Output<ImmutableArray<string>> LicenseRules { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

Name of the license configuration.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A map of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, LicenseConfigurationState, CustomResourceOptions)

Get an existing LicenseConfiguration resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static LicenseConfiguration Get(string name, Input<string> id, LicenseConfigurationState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

LicenseConfigurationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
LicenseConfiguration
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.