Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateLicenseConfiguration = CreateLicenseConfiguration' {}
- newCreateLicenseConfiguration :: Text -> LicenseCountingType -> CreateLicenseConfiguration
- createLicenseConfiguration_description :: Lens' CreateLicenseConfiguration (Maybe Text)
- createLicenseConfiguration_disassociateWhenNotFound :: Lens' CreateLicenseConfiguration (Maybe Bool)
- createLicenseConfiguration_licenseCount :: Lens' CreateLicenseConfiguration (Maybe Integer)
- createLicenseConfiguration_licenseCountHardLimit :: Lens' CreateLicenseConfiguration (Maybe Bool)
- createLicenseConfiguration_licenseRules :: Lens' CreateLicenseConfiguration (Maybe [Text])
- createLicenseConfiguration_productInformationList :: Lens' CreateLicenseConfiguration (Maybe [ProductInformation])
- createLicenseConfiguration_tags :: Lens' CreateLicenseConfiguration (Maybe [Tag])
- createLicenseConfiguration_name :: Lens' CreateLicenseConfiguration Text
- createLicenseConfiguration_licenseCountingType :: Lens' CreateLicenseConfiguration LicenseCountingType
- data CreateLicenseConfigurationResponse = CreateLicenseConfigurationResponse' {}
- newCreateLicenseConfigurationResponse :: Int -> CreateLicenseConfigurationResponse
- createLicenseConfigurationResponse_licenseConfigurationArn :: Lens' CreateLicenseConfigurationResponse (Maybe Text)
- createLicenseConfigurationResponse_httpStatus :: Lens' CreateLicenseConfigurationResponse Int
Creating a Request
data CreateLicenseConfiguration Source #
See: newCreateLicenseConfiguration
smart constructor.
CreateLicenseConfiguration' | |
|
Instances
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_description :: Lens' CreateLicenseConfiguration (Maybe Text) Source #
Description of the license configuration.
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_productInformationList :: Lens' CreateLicenseConfiguration (Maybe [ProductInformation]) Source #
Product information.
createLicenseConfiguration_tags :: Lens' CreateLicenseConfiguration (Maybe [Tag]) Source #
Tags to add to the license configuration.
createLicenseConfiguration_name :: Lens' CreateLicenseConfiguration Text Source #
Name of the license configuration.
createLicenseConfiguration_licenseCountingType :: Lens' CreateLicenseConfiguration LicenseCountingType Source #
Dimension used to track the license inventory.
Destructuring the Response
data CreateLicenseConfigurationResponse Source #
See: newCreateLicenseConfigurationResponse
smart constructor.
CreateLicenseConfigurationResponse' | |
|
Instances
Generic CreateLicenseConfigurationResponse Source # | |
Read CreateLicenseConfigurationResponse Source # | |
Show CreateLicenseConfigurationResponse Source # | |
NFData CreateLicenseConfigurationResponse Source # | |
Defined in Amazonka.LicenseManager.CreateLicenseConfiguration rnf :: CreateLicenseConfigurationResponse -> () # | |
Eq CreateLicenseConfigurationResponse Source # | |
type Rep CreateLicenseConfigurationResponse Source # | |
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
createLicenseConfigurationResponse_licenseConfigurationArn :: Lens' CreateLicenseConfigurationResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the license configuration.
createLicenseConfigurationResponse_httpStatus :: Lens' CreateLicenseConfigurationResponse Int Source #
The response's http status code.