amazonka-license-manager-2.0: Amazon License Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • description :: Maybe Text

    Description of the license configuration.

  • disassociateWhenNotFound :: Maybe Bool

    When true, disassociates a resource when software is uninstalled.

  • 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.

  • 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.

  • productInformationList :: Maybe [ProductInformation]

    Product information.

  • 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
ToJSON 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

AWSRequest 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 #

Read CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Show CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

NFData CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Eq CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Hashable CreateLicenseConfiguration Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

type AWSResponse 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" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" 'False) (C1 ('MetaCons "CreateLicenseConfiguration'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "disassociateWhenNotFound") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "licenseCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "licenseCountHardLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "licenseRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "productInformationList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProductInformation]))) :*: (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))))))

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:

CreateLicenseConfiguration, createLicenseConfiguration_description - Description of the license configuration.

CreateLicenseConfiguration, createLicenseConfiguration_disassociateWhenNotFound - When true, disassociates a resource when software is uninstalled.

CreateLicenseConfiguration, createLicenseConfiguration_licenseCount - Number of licenses managed by the license configuration.

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

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.

CreateLicenseConfiguration, createLicenseConfiguration_productInformationList - Product information.

CreateLicenseConfiguration, createLicenseConfiguration_tags - Tags to add to the license configuration.

CreateLicenseConfiguration, createLicenseConfiguration_name - Name of the license configuration.

CreateLicenseConfiguration, createLicenseConfiguration_licenseCountingType - Dimension used to track the license inventory.

Request Lenses

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

When true, disassociates a resource when software is uninstalled.

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_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
Generic CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Associated Types

type Rep CreateLicenseConfigurationResponse :: Type -> Type #

Read CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Show CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

NFData CreateLicenseConfigurationResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicenseConfiguration

Eq 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" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" '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:

CreateLicenseConfigurationResponse, createLicenseConfigurationResponse_licenseConfigurationArn - Amazon Resource Name (ARN) of the license configuration.

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

Response Lenses