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 |
Checks out the specified license.
If the account that created the license is the same that is performing the check out, you must specify the account as the beneficiary.
Synopsis
- data CheckoutLicense = CheckoutLicense' {}
- newCheckoutLicense :: Text -> CheckoutType -> Text -> Text -> CheckoutLicense
- checkoutLicense_beneficiary :: Lens' CheckoutLicense (Maybe Text)
- checkoutLicense_nodeId :: Lens' CheckoutLicense (Maybe Text)
- checkoutLicense_productSKU :: Lens' CheckoutLicense Text
- checkoutLicense_checkoutType :: Lens' CheckoutLicense CheckoutType
- checkoutLicense_keyFingerprint :: Lens' CheckoutLicense Text
- checkoutLicense_entitlements :: Lens' CheckoutLicense [EntitlementData]
- checkoutLicense_clientToken :: Lens' CheckoutLicense Text
- data CheckoutLicenseResponse = CheckoutLicenseResponse' {}
- newCheckoutLicenseResponse :: Int -> CheckoutLicenseResponse
- checkoutLicenseResponse_checkoutType :: Lens' CheckoutLicenseResponse (Maybe CheckoutType)
- checkoutLicenseResponse_entitlementsAllowed :: Lens' CheckoutLicenseResponse (Maybe [EntitlementData])
- checkoutLicenseResponse_expiration :: Lens' CheckoutLicenseResponse (Maybe Text)
- checkoutLicenseResponse_issuedAt :: Lens' CheckoutLicenseResponse (Maybe Text)
- checkoutLicenseResponse_licenseArn :: Lens' CheckoutLicenseResponse (Maybe Text)
- checkoutLicenseResponse_licenseConsumptionToken :: Lens' CheckoutLicenseResponse (Maybe Text)
- checkoutLicenseResponse_nodeId :: Lens' CheckoutLicenseResponse (Maybe Text)
- checkoutLicenseResponse_signedToken :: Lens' CheckoutLicenseResponse (Maybe Text)
- checkoutLicenseResponse_httpStatus :: Lens' CheckoutLicenseResponse Int
Creating a Request
data CheckoutLicense Source #
See: newCheckoutLicense
smart constructor.
CheckoutLicense' | |
|
Instances
:: Text | |
-> CheckoutType | |
-> Text | |
-> Text | |
-> CheckoutLicense |
Create a value of CheckoutLicense
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:
CheckoutLicense
, checkoutLicense_beneficiary
- License beneficiary.
CheckoutLicense
, checkoutLicense_nodeId
- Node ID.
CheckoutLicense
, checkoutLicense_productSKU
- Product SKU.
CheckoutLicense
, checkoutLicense_checkoutType
- Checkout type.
CheckoutLicense
, checkoutLicense_keyFingerprint
- Key fingerprint identifying the license.
CheckoutLicense
, checkoutLicense_entitlements
- License entitlements.
$sel:clientToken:CheckoutLicense'
, checkoutLicense_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Request Lenses
checkoutLicense_beneficiary :: Lens' CheckoutLicense (Maybe Text) Source #
License beneficiary.
checkoutLicense_nodeId :: Lens' CheckoutLicense (Maybe Text) Source #
Node ID.
checkoutLicense_productSKU :: Lens' CheckoutLicense Text Source #
Product SKU.
checkoutLicense_checkoutType :: Lens' CheckoutLicense CheckoutType Source #
Checkout type.
checkoutLicense_keyFingerprint :: Lens' CheckoutLicense Text Source #
Key fingerprint identifying the license.
checkoutLicense_entitlements :: Lens' CheckoutLicense [EntitlementData] Source #
License entitlements.
checkoutLicense_clientToken :: Lens' CheckoutLicense Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Destructuring the Response
data CheckoutLicenseResponse Source #
See: newCheckoutLicenseResponse
smart constructor.
CheckoutLicenseResponse' | |
|
Instances
newCheckoutLicenseResponse Source #
Create a value of CheckoutLicenseResponse
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:
CheckoutLicense
, checkoutLicenseResponse_checkoutType
- Checkout type.
$sel:entitlementsAllowed:CheckoutLicenseResponse'
, checkoutLicenseResponse_entitlementsAllowed
- Allowed license entitlements.
$sel:expiration:CheckoutLicenseResponse'
, checkoutLicenseResponse_expiration
- Date and time at which the license checkout expires.
$sel:issuedAt:CheckoutLicenseResponse'
, checkoutLicenseResponse_issuedAt
- Date and time at which the license checkout is issued.
CheckoutLicenseResponse
, checkoutLicenseResponse_licenseArn
- Amazon Resource Name (ARN) of the checkout license.
$sel:licenseConsumptionToken:CheckoutLicenseResponse'
, checkoutLicenseResponse_licenseConsumptionToken
- License consumption token.
CheckoutLicense
, checkoutLicenseResponse_nodeId
- Node ID.
$sel:signedToken:CheckoutLicenseResponse'
, checkoutLicenseResponse_signedToken
- Signed token.
$sel:httpStatus:CheckoutLicenseResponse'
, checkoutLicenseResponse_httpStatus
- The response's http status code.
Response Lenses
checkoutLicenseResponse_checkoutType :: Lens' CheckoutLicenseResponse (Maybe CheckoutType) Source #
Checkout type.
checkoutLicenseResponse_entitlementsAllowed :: Lens' CheckoutLicenseResponse (Maybe [EntitlementData]) Source #
Allowed license entitlements.
checkoutLicenseResponse_expiration :: Lens' CheckoutLicenseResponse (Maybe Text) Source #
Date and time at which the license checkout expires.
checkoutLicenseResponse_issuedAt :: Lens' CheckoutLicenseResponse (Maybe Text) Source #
Date and time at which the license checkout is issued.
checkoutLicenseResponse_licenseArn :: Lens' CheckoutLicenseResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the checkout license.
checkoutLicenseResponse_licenseConsumptionToken :: Lens' CheckoutLicenseResponse (Maybe Text) Source #
License consumption token.
checkoutLicenseResponse_nodeId :: Lens' CheckoutLicenseResponse (Maybe Text) Source #
Node ID.
checkoutLicenseResponse_signedToken :: Lens' CheckoutLicenseResponse (Maybe Text) Source #
Signed token.
checkoutLicenseResponse_httpStatus :: Lens' CheckoutLicenseResponse Int Source #
The response's http status code.