| 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 |
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
- 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.
Constructors
| CreateLicenseConfiguration' | |
Fields
| |
Instances
newCreateLicenseConfiguration Source #
Arguments
| :: Text | |
| -> LicenseCountingType | |
| -> CreateLicenseConfiguration |
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.
Coresdimension:allowedTenancy|licenseAffinityToHost|maximumCores|minimumCoresInstancesdimension:allowedTenancy|maximumCores|minimumCores|maximumSockets|minimumSockets|maximumVcpus|minimumVcpusSocketsdimension:allowedTenancy|licenseAffinityToHost|maximumSockets|minimumSocketsvCPUsdimension: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.
Coresdimension:allowedTenancy|licenseAffinityToHost|maximumCores|minimumCoresInstancesdimension:allowedTenancy|maximumCores|minimumCores|maximumSockets|minimumSockets|maximumVcpus|minimumVcpusSocketsdimension:allowedTenancy|licenseAffinityToHost|maximumSockets|minimumSocketsvCPUsdimension: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.
Constructors
| CreateLicenseConfigurationResponse' | |
Fields
| |
Instances
newCreateLicenseConfigurationResponse Source #
Arguments
| :: Int | |
| -> CreateLicenseConfigurationResponse |
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.