Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Association ¶
type Association struct { pulumi.CustomResourceState // ARN of the license configuration. LicenseConfigurationArn pulumi.StringOutput `pulumi:"licenseConfigurationArn"` // ARN of the resource associated with the license configuration. ResourceArn pulumi.StringOutput `pulumi:"resourceArn"` }
Provides a License Manager association.
> **Note:** License configurations can also be associated with launch templates by specifying the `licenseSpecifications` block for an `ec2.LaunchTemplate`.
func GetAssociation ¶
func GetAssociation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AssociationState, opts ...pulumi.ResourceOption) (*Association, error)
GetAssociation gets an existing Association resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAssociation ¶
func NewAssociation(ctx *pulumi.Context, name string, args *AssociationArgs, opts ...pulumi.ResourceOption) (*Association, error)
NewAssociation registers a new resource with the given unique name, arguments, and options.
type AssociationArgs ¶
type AssociationArgs struct { // ARN of the license configuration. LicenseConfigurationArn pulumi.StringInput // ARN of the resource associated with the license configuration. ResourceArn pulumi.StringInput }
The set of arguments for constructing a Association resource.
func (AssociationArgs) ElementType ¶
func (AssociationArgs) ElementType() reflect.Type
type AssociationState ¶
type AssociationState struct { // ARN of the license configuration. LicenseConfigurationArn pulumi.StringPtrInput // ARN of the resource associated with the license configuration. ResourceArn pulumi.StringPtrInput }
func (AssociationState) ElementType ¶
func (AssociationState) ElementType() reflect.Type
type LicenseConfiguration ¶
type LicenseConfiguration struct { pulumi.CustomResourceState // Description of the license configuration. Description pulumi.StringPtrOutput `pulumi:"description"` // Number of licenses managed by the license configuration. LicenseCount pulumi.IntPtrOutput `pulumi:"licenseCount"` // Sets the number of available licenses as a hard limit. LicenseCountHardLimit pulumi.BoolPtrOutput `pulumi:"licenseCountHardLimit"` // Dimension to use to track license inventory. Specify either `vCPU`, `Instance`, `Core` or `Socket`. LicenseCountingType pulumi.StringOutput `pulumi:"licenseCountingType"` // Array of configured License Manager rules. LicenseRules pulumi.StringArrayOutput `pulumi:"licenseRules"` // Name of the license configuration. Name pulumi.StringOutput `pulumi:"name"` // A map of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Provides a License Manager license configuration resource.
> **Note:** Removing the `licenseCount` attribute is not supported by the License Manager API - recreate the resource instead.
## Example Usage
```go 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 { example, 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: map[string]interface{}{ "foo": "barr", }, }) if err != nil { return err } return nil }) }
```
## 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`
func GetLicenseConfiguration ¶
func GetLicenseConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LicenseConfigurationState, opts ...pulumi.ResourceOption) (*LicenseConfiguration, error)
GetLicenseConfiguration gets an existing LicenseConfiguration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLicenseConfiguration ¶
func NewLicenseConfiguration(ctx *pulumi.Context, name string, args *LicenseConfigurationArgs, opts ...pulumi.ResourceOption) (*LicenseConfiguration, error)
NewLicenseConfiguration registers a new resource with the given unique name, arguments, and options.
type LicenseConfigurationArgs ¶
type LicenseConfigurationArgs struct { // Description of the license configuration. Description pulumi.StringPtrInput // Number of licenses managed by the license configuration. LicenseCount pulumi.IntPtrInput // Sets the number of available licenses as a hard limit. LicenseCountHardLimit pulumi.BoolPtrInput // Dimension to use to track license inventory. Specify either `vCPU`, `Instance`, `Core` or `Socket`. LicenseCountingType pulumi.StringInput // Array of configured License Manager rules. LicenseRules pulumi.StringArrayInput // Name of the license configuration. Name pulumi.StringPtrInput // A map of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a LicenseConfiguration resource.
func (LicenseConfigurationArgs) ElementType ¶
func (LicenseConfigurationArgs) ElementType() reflect.Type
type LicenseConfigurationState ¶
type LicenseConfigurationState struct { // Description of the license configuration. Description pulumi.StringPtrInput // Number of licenses managed by the license configuration. LicenseCount pulumi.IntPtrInput // Sets the number of available licenses as a hard limit. LicenseCountHardLimit pulumi.BoolPtrInput // Dimension to use to track license inventory. Specify either `vCPU`, `Instance`, `Core` or `Socket`. LicenseCountingType pulumi.StringPtrInput // Array of configured License Manager rules. LicenseRules pulumi.StringArrayInput // Name of the license configuration. Name pulumi.StringPtrInput // A map of tags to assign to the resource. Tags pulumi.StringMapInput }
func (LicenseConfigurationState) ElementType ¶
func (LicenseConfigurationState) ElementType() reflect.Type