Class LicenseConfiguration
Provides a License Manager license configuration resource.
Note: Removing the
license_countattribute 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: 1maximumVcpus- Resource must have maximum vCPU count in order to use the license. Default: unbounded, limit: 10000minimumCores- Resource must have minimum core count in order to use the license. Default: 1maximumCores- Resource must have maximum core count in order to use the license. Default: unbounded, limit: 10000minimumSockets- Resource must have minimum socket count in order to use the license. Default: 1maximumSockets- Resource must have maximum socket count in order to use the license. Default: unbounded, limit: 10000allowedTenancy- Defines where the license can be used. If set, restricts license usage to selected tenancies. Specify a comma delimited list ofEC2-Default,EC2-DedicatedHost,EC2-DedicatedInstance
Inherited Members
Namespace: Pulumi.Aws.LicenseManager
Assembly: Pulumi.Aws.dll
Syntax
public class LicenseConfiguration : CustomResource
Constructors
View SourceLicenseConfiguration(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 SourceDescription
Description of the license configuration.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LicenseCount
Number of licenses managed by the license configuration.
Declaration
public Output<int?> LicenseCount { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
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>> |
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> |
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>> |
Name
Name of the license configuration.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |