Module licensemanager
This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-awsrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-awsrepo.
Resources
Others
Resources
Resource Association
class Association extends CustomResourceProvides a License Manager association.
Note: License configurations can also be associated with launch templates by specifying the
licenseSpecificationsblock for anaws.ec2.LaunchTemplate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleAmi = pulumi.output(aws.getAmi({
filters: [{
name: "name",
values: ["amzn-ami-vpc-nat*"],
}],
mostRecent: true,
owners: ["amazon"],
}, { async: true }));
const exampleInstance = new aws.ec2.Instance("example", {
ami: exampleAmi.id,
instanceType: "t2.micro",
});
const exampleLicenseConfiguration = new aws.licensemanager.LicenseConfiguration("example", {
licenseCountingType: "Instance",
});
const exampleAssociation = new aws.licensemanager.Association("example", {
licenseConfigurationArn: exampleLicenseConfiguration.arn,
resourceArn: exampleInstance.arn,
});constructor
new Association(name: string, args: AssociationArgs, opts?: pulumi.CustomResourceOptions)Create a Association resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AssociationState, opts?: pulumi.CustomResourceOptions): AssociationGet an existing Association resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is AssociationReturns true if the given object is an instance of Association. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property licenseConfigurationArn
public licenseConfigurationArn: pulumi.Output<string>;ARN of the license configuration.
property resourceArn
public resourceArn: pulumi.Output<string>;ARN of the resource associated with the license configuration.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource LicenseConfiguration
class LicenseConfiguration extends CustomResourceProvides a License Manager license configuration resource.
Note: Removing the
licenseCountattribute is not supported by the License Manager API - recreate the resource instead.
Example Usage
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",
},
});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
constructor
new LicenseConfiguration(name: string, args: LicenseConfigurationArgs, opts?: pulumi.CustomResourceOptions)Create a LicenseConfiguration resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LicenseConfigurationState, opts?: pulumi.CustomResourceOptions): LicenseConfigurationGet an existing LicenseConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is LicenseConfigurationReturns true if the given object is an instance of LicenseConfiguration. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property description
public description: pulumi.Output<string | undefined>;Description of the license configuration.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property licenseCount
public licenseCount: pulumi.Output<number | undefined>;Number of licenses managed by the license configuration.
property licenseCountHardLimit
public licenseCountHardLimit: pulumi.Output<boolean | undefined>;Sets the number of available licenses as a hard limit.
property licenseCountingType
public licenseCountingType: pulumi.Output<string>;Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket.
property licenseRules
public licenseRules: pulumi.Output<string[] | undefined>;Array of configured License Manager rules.
property name
public name: pulumi.Output<string>;Name of the license configuration.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;A map of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface AssociationArgs
interface AssociationArgsThe set of arguments for constructing a Association resource.
property licenseConfigurationArn
licenseConfigurationArn: pulumi.Input<string>;ARN of the license configuration.
property resourceArn
resourceArn: pulumi.Input<string>;ARN of the resource associated with the license configuration.
interface AssociationState
interface AssociationStateInput properties used for looking up and filtering Association resources.
property licenseConfigurationArn
licenseConfigurationArn?: pulumi.Input<string>;ARN of the license configuration.
property resourceArn
resourceArn?: pulumi.Input<string>;ARN of the resource associated with the license configuration.
interface LicenseConfigurationArgs
interface LicenseConfigurationArgsThe set of arguments for constructing a LicenseConfiguration resource.
property description
description?: pulumi.Input<string>;Description of the license configuration.
property licenseCount
licenseCount?: pulumi.Input<number>;Number of licenses managed by the license configuration.
property licenseCountHardLimit
licenseCountHardLimit?: pulumi.Input<boolean>;Sets the number of available licenses as a hard limit.
property licenseCountingType
licenseCountingType: pulumi.Input<string>;Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket.
property licenseRules
licenseRules?: pulumi.Input<pulumi.Input<string>[]>;Array of configured License Manager rules.
property name
name?: pulumi.Input<string>;Name of the license configuration.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A map of tags to assign to the resource.
interface LicenseConfigurationState
interface LicenseConfigurationStateInput properties used for looking up and filtering LicenseConfiguration resources.
property description
description?: pulumi.Input<string>;Description of the license configuration.
property licenseCount
licenseCount?: pulumi.Input<number>;Number of licenses managed by the license configuration.
property licenseCountHardLimit
licenseCountHardLimit?: pulumi.Input<boolean>;Sets the number of available licenses as a hard limit.
property licenseCountingType
licenseCountingType?: pulumi.Input<string>;Dimension to use to track license inventory. Specify either vCPU, Instance, Core or Socket.
property licenseRules
licenseRules?: pulumi.Input<pulumi.Input<string>[]>;Array of configured License Manager rules.
property name
name?: pulumi.Input<string>;Name of the license configuration.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A map of tags to assign to the resource.