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.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
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" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/licensemanager"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := licensemanager.NewLicenseConfiguration(ctx, "example", &licensemanager.LicenseConfigurationArgs{
Description: pulumi.String("Example"),
LicenseCount: pulumi.Int(10),
LicenseCountHardLimit: pulumi.Bool(true),
LicenseCountingType: pulumi.String("Socket"),
LicenseRules: pulumi.StringArray{
pulumi.String("#minimumSockets=2"),
},
Tags: pulumi.StringMap{
"foo": pulumi.String("barr"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.licensemanager.LicenseConfiguration("example",
description="Example",
license_count=10,
license_count_hard_limit=True,
license_counting_type="Socket",
license_rules=["#minimumSockets=2"],
tags={
"foo": "barr",
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.licensemanager.LicenseConfiguration("example", {
description: "Example",
licenseCount: 10,
licenseCountHardLimit: true,
licenseCountingType: "Socket",
licenseRules: ["#minimumSockets=2"],
tags: {
foo: "barr",
},
});Create a LicenseConfiguration Resource
new LicenseConfiguration(name: string, args: LicenseConfigurationArgs, opts?: CustomResourceOptions);def LicenseConfiguration(resource_name, opts=None, description=None, license_count=None, license_count_hard_limit=None, license_counting_type=None, license_rules=None, name=None, tags=None, __props__=None);func NewLicenseConfiguration(ctx *Context, name string, args LicenseConfigurationArgs, opts ...ResourceOption) (*LicenseConfiguration, error)public LicenseConfiguration(string name, LicenseConfigurationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args LicenseConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LicenseConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LicenseConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
LicenseConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The LicenseConfiguration resource accepts the following input properties:
- License
Counting stringType Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- Description string
Description of the license configuration.
- License
Count int Number of licenses managed by the license configuration.
- License
Count boolHard Limit Sets the number of available licenses as a hard limit.
- License
Rules List<string> Array of configured License Manager rules.
- Name string
Name of the license configuration.
- Dictionary<string, string>
A map of tags to assign to the resource.
- License
Counting stringType Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- Description string
Description of the license configuration.
- License
Count int Number of licenses managed by the license configuration.
- License
Count boolHard Limit Sets the number of available licenses as a hard limit.
- License
Rules []string Array of configured License Manager rules.
- Name string
Name of the license configuration.
- map[string]string
A map of tags to assign to the resource.
- license
Counting stringType Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- description string
Description of the license configuration.
- license
Count number Number of licenses managed by the license configuration.
- license
Count booleanHard Limit Sets the number of available licenses as a hard limit.
- license
Rules string[] Array of configured License Manager rules.
- name string
Name of the license configuration.
- {[key: string]: string}
A map of tags to assign to the resource.
- license_
counting_ strtype Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- description str
Description of the license configuration.
- license_
count float Number of licenses managed by the license configuration.
- license_
count_ boolhard_ limit Sets the number of available licenses as a hard limit.
- license_
rules List[str] Array of configured License Manager rules.
- name str
Name of the license configuration.
- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LicenseConfiguration resource produces the following output properties:
Look up an Existing LicenseConfiguration Resource
Get an existing LicenseConfiguration 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?: LicenseConfigurationState, opts?: CustomResourceOptions): LicenseConfigurationstatic get(resource_name, id, opts=None, description=None, license_count=None, license_count_hard_limit=None, license_counting_type=None, license_rules=None, name=None, tags=None, __props__=None);func GetLicenseConfiguration(ctx *Context, name string, id IDInput, state *LicenseConfigurationState, opts ...ResourceOption) (*LicenseConfiguration, error)public static LicenseConfiguration Get(string name, Input<string> id, LicenseConfigurationState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Description string
Description of the license configuration.
- License
Count int Number of licenses managed by the license configuration.
- License
Count boolHard Limit Sets the number of available licenses as a hard limit.
- License
Counting stringType Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- License
Rules List<string> Array of configured License Manager rules.
- Name string
Name of the license configuration.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Description string
Description of the license configuration.
- License
Count int Number of licenses managed by the license configuration.
- License
Count boolHard Limit Sets the number of available licenses as a hard limit.
- License
Counting stringType Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- License
Rules []string Array of configured License Manager rules.
- Name string
Name of the license configuration.
- map[string]string
A map of tags to assign to the resource.
- description string
Description of the license configuration.
- license
Count number Number of licenses managed by the license configuration.
- license
Count booleanHard Limit Sets the number of available licenses as a hard limit.
- license
Counting stringType Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- license
Rules string[] Array of configured License Manager rules.
- name string
Name of the license configuration.
- {[key: string]: string}
A map of tags to assign to the resource.
- description str
Description of the license configuration.
- license_
count float Number of licenses managed by the license configuration.
- license_
count_ boolhard_ limit Sets the number of available licenses as a hard limit.
- license_
counting_ strtype Dimension to use to track license inventory. Specify either
vCPU,Instance,CoreorSocket.- license_
rules List[str] Array of configured License Manager rules.
- name str
Name of the license configuration.
- Dict[str, str]
A map of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.