Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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' {
- status :: Maybe LicenseStatus
- version :: Maybe Text
- licenseArn :: Maybe Text
- httpStatus :: Int
- newCreateLicenseResponse :: Int -> CreateLicenseResponse
- createLicenseResponse_status :: Lens' CreateLicenseResponse (Maybe LicenseStatus)
- createLicenseResponse_version :: Lens' CreateLicenseResponse (Maybe Text)
- createLicenseResponse_licenseArn :: Lens' CreateLicenseResponse (Maybe Text)
- createLicenseResponse_httpStatus :: Lens' CreateLicenseResponse Int
Creating a Request
data CreateLicense Source #
See: newCreateLicense
smart constructor.
CreateLicense' | |
|
Instances
:: 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:
$sel:licenseMetadata:CreateLicense'
, createLicense_licenseMetadata
- Information about the license.
$sel:licenseName:CreateLicense'
, createLicense_licenseName
- License name.
$sel:productName:CreateLicense'
, createLicense_productName
- Product name.
$sel:productSKU:CreateLicense'
, createLicense_productSKU
- Product SKU.
$sel:issuer:CreateLicense'
, createLicense_issuer
- License issuer.
$sel:homeRegion:CreateLicense'
, createLicense_homeRegion
- Home Region for the license.
$sel:validity:CreateLicense'
, createLicense_validity
- Date and time range during which the license is valid, in ISO8601-UTC
format.
$sel:entitlements:CreateLicense'
, createLicense_entitlements
- License entitlements.
$sel:beneficiary:CreateLicense'
, createLicense_beneficiary
- License beneficiary.
$sel:consumptionConfiguration: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.
CreateLicenseResponse' | |
|
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:
$sel:status:CreateLicenseResponse'
, createLicenseResponse_status
- License status.
$sel:version:CreateLicenseResponse'
, createLicenseResponse_version
- License version.
$sel:licenseArn:CreateLicenseResponse'
, createLicenseResponse_licenseArn
- Amazon Resource Name (ARN) of the license.
$sel:httpStatus:CreateLicenseResponse'
, createLicenseResponse_httpStatus
- The response's http status code.
Response Lenses
createLicenseResponse_status :: Lens' CreateLicenseResponse (Maybe LicenseStatus) Source #
License status.
createLicenseResponse_version :: Lens' CreateLicenseResponse (Maybe Text) Source #
License version.
createLicenseResponse_licenseArn :: Lens' CreateLicenseResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the license.
createLicenseResponse_httpStatus :: Lens' CreateLicenseResponse Int Source #
The response's http status code.