| 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.CreateLicense
Description
Creates a license.
Synopsis
- data CreateLicense = CreateLicense' {}
- newCreateLicense :: Text -> Text -> Text -> Issuer -> Text -> DatetimeRange -> Text -> ConsumptionConfiguration -> Text -> CreateLicense
- createLicense_licenseMetadata :: Lens' CreateLicense (Maybe [Metadata])
- createLicense_licenseName :: Lens' CreateLicense Text
- createLicense_productName :: Lens' CreateLicense Text
- createLicense_productSKU :: Lens' CreateLicense Text
- createLicense_issuer :: Lens' CreateLicense Issuer
- createLicense_homeRegion :: Lens' CreateLicense Text
- createLicense_validity :: Lens' CreateLicense DatetimeRange
- createLicense_entitlements :: Lens' CreateLicense [Entitlement]
- createLicense_beneficiary :: Lens' CreateLicense Text
- createLicense_consumptionConfiguration :: Lens' CreateLicense ConsumptionConfiguration
- createLicense_clientToken :: Lens' CreateLicense Text
- data CreateLicenseResponse = CreateLicenseResponse' {
- licenseArn :: Maybe Text
- status :: Maybe LicenseStatus
- version :: Maybe Text
- httpStatus :: Int
- newCreateLicenseResponse :: Int -> CreateLicenseResponse
- createLicenseResponse_licenseArn :: Lens' CreateLicenseResponse (Maybe Text)
- createLicenseResponse_status :: Lens' CreateLicenseResponse (Maybe LicenseStatus)
- createLicenseResponse_version :: Lens' CreateLicenseResponse (Maybe Text)
- createLicenseResponse_httpStatus :: Lens' CreateLicenseResponse Int
Creating a Request
data CreateLicense Source #
See: newCreateLicense smart constructor.
Constructors
| CreateLicense' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Issuer | |
| -> Text | |
| -> DatetimeRange | |
| -> Text | |
| -> ConsumptionConfiguration | |
| -> Text | |
| -> CreateLicense |
Create a value of CreateLicense 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:
CreateLicense, createLicense_licenseMetadata - Information about the license.
CreateLicense, createLicense_licenseName - License name.
CreateLicense, createLicense_productName - Product name.
CreateLicense, createLicense_productSKU - Product SKU.
CreateLicense, createLicense_issuer - License issuer.
CreateLicense, createLicense_homeRegion - Home Region for the license.
CreateLicense, createLicense_validity - Date and time range during which the license is valid, in ISO8601-UTC
format.
CreateLicense, createLicense_entitlements - License entitlements.
CreateLicense, createLicense_beneficiary - License beneficiary.
CreateLicense, createLicense_consumptionConfiguration - Configuration for consumption of the license. Choose a provisional
configuration for workloads running with continuous connectivity. Choose
a borrow configuration for workloads with offline usage.
$sel:clientToken:CreateLicense', createLicense_clientToken - Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Request Lenses
createLicense_licenseMetadata :: Lens' CreateLicense (Maybe [Metadata]) Source #
Information about the license.
createLicense_licenseName :: Lens' CreateLicense Text Source #
License name.
createLicense_productName :: Lens' CreateLicense Text Source #
Product name.
createLicense_productSKU :: Lens' CreateLicense Text Source #
Product SKU.
createLicense_issuer :: Lens' CreateLicense Issuer Source #
License issuer.
createLicense_homeRegion :: Lens' CreateLicense Text Source #
Home Region for the license.
createLicense_validity :: Lens' CreateLicense DatetimeRange Source #
Date and time range during which the license is valid, in ISO8601-UTC format.
createLicense_entitlements :: Lens' CreateLicense [Entitlement] Source #
License entitlements.
createLicense_beneficiary :: Lens' CreateLicense Text Source #
License beneficiary.
createLicense_consumptionConfiguration :: Lens' CreateLicense ConsumptionConfiguration Source #
Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
createLicense_clientToken :: Lens' CreateLicense Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Destructuring the Response
data CreateLicenseResponse Source #
See: newCreateLicenseResponse smart constructor.
Constructors
| CreateLicenseResponse' | |
Fields
| |
Instances
newCreateLicenseResponse Source #
Create a value of CreateLicenseResponse 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:
CreateLicenseResponse, createLicenseResponse_licenseArn - Amazon Resource Name (ARN) of the license.
CreateLicenseResponse, createLicenseResponse_status - License status.
CreateLicenseResponse, createLicenseResponse_version - License version.
$sel:httpStatus:CreateLicenseResponse', createLicenseResponse_httpStatus - The response's http status code.
Response Lenses
createLicenseResponse_licenseArn :: Lens' CreateLicenseResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the license.
createLicenseResponse_status :: Lens' CreateLicenseResponse (Maybe LicenseStatus) Source #
License status.
createLicenseResponse_version :: Lens' CreateLicenseResponse (Maybe Text) Source #
License version.
createLicenseResponse_httpStatus :: Lens' CreateLicenseResponse Int Source #
The response's http status code.