libZSservicesZSamazonka-license-managerZSamazonka-license-manager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LicenseManager.CreateLicenseConfiguration

Description

Creates a license configuration.

A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), license affinity to host (how long a license must be associated with a host), and the number of licenses purchased and used.

Synopsis

Creating a Request

data CreateLicenseConfiguration Source #

See: newCreateLicenseConfiguration smart constructor.

Constructors

CreateLicenseConfiguration' 

Fields

  • licenseCount :: Maybe Integer

    Number of licenses managed by the license configuration.

  • licenseCountHardLimit :: Maybe Bool

    Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.

  • disassociateWhenNotFound :: Maybe Bool

    When true, disassociates a resource when software is uninstalled.

  • productInformationList :: Maybe [ProductInformation]

    Product information.

  • licenseRules :: Maybe [Text]

    License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as follows.

    • Cores dimension: allowedTenancy | licenseAffinityToHost | maximumCores | minimumCores
    • Instances dimension: allowedTenancy | maximumCores | minimumCores | maximumSockets | minimumSockets | maximumVcpus | minimumVcpus
    • Sockets dimension: allowedTenancy | licenseAffinityToHost | maximumSockets | minimumSockets
    • vCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus | minimumVcpus

    The unit for licenseAffinityToHost is days and the range is 1 to 180. The possible values for allowedTenancy are EC2-Default, EC2-DedicatedHost, and EC2-DedicatedInstance. The possible values for honorVcpuOptimization are True and False.

  • description :: Maybe Text

    Description of the license configuration.

  • tags :: Maybe [Tag]

    Tags to add to the license configuration.

  • name :: Text

    Name of the license configuration.

  • licenseCountingType :: LicenseCountingType

    Dimension used to track the license inventory.

Instances

Instances details
Eq CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Read CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Show CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Generic CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Associated Types

type Rep CreateLicenseConfiguration :: Type -> Type #

NFData CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Hashable CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

ToJSON CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

AWSRequest CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

ToHeaders CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

ToPath CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

ToQuery CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

type Rep CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

type Rep CreateLicenseConfiguration = D1 ('MetaData "CreateLicenseConfiguration" "Amazonka.LicenseManager.CreateLicenseConfiguration" "libZSservicesZSamazonka-license-managerZSamazonka-license-manager" 'False) (C1 ('MetaCons "CreateLicenseConfiguration'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "licenseCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "licenseCountHardLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "disassociateWhenNotFound") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "productInformationList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProductInformation])))) :*: ((S1 ('MetaSel ('Just "licenseRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "licenseCountingType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LicenseCountingType))))))
type AWSResponse CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

newCreateLicenseConfiguration Source #

Create a value of CreateLicenseConfiguration with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:licenseCount:CreateLicenseConfiguration', createLicenseConfiguration_licenseCount - Number of licenses managed by the license configuration.

$sel:licenseCountHardLimit:CreateLicenseConfiguration', createLicenseConfiguration_licenseCountHardLimit - Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.

$sel:disassociateWhenNotFound:CreateLicenseConfiguration', createLicenseConfiguration_disassociateWhenNotFound - When true, disassociates a resource when software is uninstalled.

$sel:productInformationList:CreateLicenseConfiguration', createLicenseConfiguration_productInformationList - Product information.

$sel:licenseRules:CreateLicenseConfiguration', createLicenseConfiguration_licenseRules - License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as follows.

  • Cores dimension: allowedTenancy | licenseAffinityToHost | maximumCores | minimumCores
  • Instances dimension: allowedTenancy | maximumCores | minimumCores | maximumSockets | minimumSockets | maximumVcpus | minimumVcpus
  • Sockets dimension: allowedTenancy | licenseAffinityToHost | maximumSockets | minimumSockets
  • vCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus | minimumVcpus

The unit for licenseAffinityToHost is days and the range is 1 to 180. The possible values for allowedTenancy are EC2-Default, EC2-DedicatedHost, and EC2-DedicatedInstance. The possible values for honorVcpuOptimization are True and False.

$sel:description:CreateLicenseConfiguration', createLicenseConfiguration_description - Description of the license configuration.

$sel:tags:CreateLicenseConfiguration', createLicenseConfiguration_tags - Tags to add to the license configuration.

$sel:name:CreateLicenseConfiguration', createLicenseConfiguration_name - Name of the license configuration.

$sel:licenseCountingType:CreateLicenseConfiguration', createLicenseConfiguration_licenseCountingType - Dimension used to track the license inventory.

Request Lenses

createLicenseConfiguration_licenseCount :: Lens' CreateLicenseConfiguration (Maybe Integer) Source #

Number of licenses managed by the license configuration.

createLicenseConfiguration_licenseCountHardLimit :: Lens' CreateLicenseConfiguration (Maybe Bool) Source #

Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.

createLicenseConfiguration_disassociateWhenNotFound :: Lens' CreateLicenseConfiguration (Maybe Bool) Source #

When true, disassociates a resource when software is uninstalled.

createLicenseConfiguration_licenseRules :: Lens' CreateLicenseConfiguration (Maybe [Text]) Source #

License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as follows.

  • Cores dimension: allowedTenancy | licenseAffinityToHost | maximumCores | minimumCores
  • Instances dimension: allowedTenancy | maximumCores | minimumCores | maximumSockets | minimumSockets | maximumVcpus | minimumVcpus
  • Sockets dimension: allowedTenancy | licenseAffinityToHost | maximumSockets | minimumSockets
  • vCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus | minimumVcpus

The unit for licenseAffinityToHost is days and the range is 1 to 180. The possible values for allowedTenancy are EC2-Default, EC2-DedicatedHost, and EC2-DedicatedInstance. The possible values for honorVcpuOptimization are True and False.

createLicenseConfiguration_tags :: Lens' CreateLicenseConfiguration (Maybe [Tag]) Source #

Tags to add to the license configuration.

Destructuring the Response

data CreateLicenseConfigurationResponse Source #

Constructors

CreateLicenseConfigurationResponse' 

Fields

Instances

Instances details
Eq CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Read CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Show CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Generic CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Associated Types

type Rep CreateLicenseConfigurationResponse :: Type -> Type #

NFData CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

type Rep CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

type Rep CreateLicenseConfigurationResponse = D1 ('MetaData "CreateLicenseConfigurationResponse" "Amazonka.LicenseManager.CreateLicenseConfiguration" "libZSservicesZSamazonka-license-managerZSamazonka-license-manager" 'False) (C1 ('MetaCons "CreateLicenseConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "licenseConfigurationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateLicenseConfigurationResponse Source #

Create a value of CreateLicenseConfigurationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:licenseConfigurationArn:CreateLicenseConfigurationResponse', createLicenseConfigurationResponse_licenseConfigurationArn - Amazon Resource Name (ARN) of the license configuration.

$sel:httpStatus:CreateLicenseConfigurationResponse', createLicenseConfigurationResponse_httpStatus - The response's http status code.

Response Lenses