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 |
Checks out the specified license for offline use.
Synopsis
- data CheckoutBorrowLicense = CheckoutBorrowLicense' {}
- newCheckoutBorrowLicense :: Text -> DigitalSignatureMethod -> Text -> CheckoutBorrowLicense
- checkoutBorrowLicense_checkoutMetadata :: Lens' CheckoutBorrowLicense (Maybe [Metadata])
- checkoutBorrowLicense_nodeId :: Lens' CheckoutBorrowLicense (Maybe Text)
- checkoutBorrowLicense_licenseArn :: Lens' CheckoutBorrowLicense Text
- checkoutBorrowLicense_entitlements :: Lens' CheckoutBorrowLicense [EntitlementData]
- checkoutBorrowLicense_digitalSignatureMethod :: Lens' CheckoutBorrowLicense DigitalSignatureMethod
- checkoutBorrowLicense_clientToken :: Lens' CheckoutBorrowLicense Text
- data CheckoutBorrowLicenseResponse = CheckoutBorrowLicenseResponse' {}
- newCheckoutBorrowLicenseResponse :: Int -> CheckoutBorrowLicenseResponse
- checkoutBorrowLicenseResponse_entitlementsAllowed :: Lens' CheckoutBorrowLicenseResponse (Maybe [EntitlementData])
- checkoutBorrowLicenseResponse_checkoutMetadata :: Lens' CheckoutBorrowLicenseResponse (Maybe [Metadata])
- checkoutBorrowLicenseResponse_expiration :: Lens' CheckoutBorrowLicenseResponse (Maybe Text)
- checkoutBorrowLicenseResponse_signedToken :: Lens' CheckoutBorrowLicenseResponse (Maybe Text)
- checkoutBorrowLicenseResponse_licenseConsumptionToken :: Lens' CheckoutBorrowLicenseResponse (Maybe Text)
- checkoutBorrowLicenseResponse_nodeId :: Lens' CheckoutBorrowLicenseResponse (Maybe Text)
- checkoutBorrowLicenseResponse_issuedAt :: Lens' CheckoutBorrowLicenseResponse (Maybe Text)
- checkoutBorrowLicenseResponse_licenseArn :: Lens' CheckoutBorrowLicenseResponse (Maybe Text)
- checkoutBorrowLicenseResponse_httpStatus :: Lens' CheckoutBorrowLicenseResponse Int
Creating a Request
data CheckoutBorrowLicense Source #
See: newCheckoutBorrowLicense
smart constructor.
CheckoutBorrowLicense' | |
|
Instances
newCheckoutBorrowLicense Source #
Create a value of CheckoutBorrowLicense
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:checkoutMetadata:CheckoutBorrowLicense'
, checkoutBorrowLicense_checkoutMetadata
- Information about constraints.
$sel:nodeId:CheckoutBorrowLicense'
, checkoutBorrowLicense_nodeId
- Node ID.
$sel:licenseArn:CheckoutBorrowLicense'
, checkoutBorrowLicense_licenseArn
- Amazon Resource Name (ARN) of the license. The license must use the
borrow consumption configuration.
$sel:entitlements:CheckoutBorrowLicense'
, checkoutBorrowLicense_entitlements
- License entitlements. Partial checkouts are not supported.
$sel:digitalSignatureMethod:CheckoutBorrowLicense'
, checkoutBorrowLicense_digitalSignatureMethod
- Digital signature method. The possible value is JSON Web Signature (JWS)
algorithm PS384. For more information, see
RFC 7518 Digital Signature with RSASSA-PSS.
$sel:clientToken:CheckoutBorrowLicense'
, checkoutBorrowLicense_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Request Lenses
checkoutBorrowLicense_checkoutMetadata :: Lens' CheckoutBorrowLicense (Maybe [Metadata]) Source #
Information about constraints.
checkoutBorrowLicense_nodeId :: Lens' CheckoutBorrowLicense (Maybe Text) Source #
Node ID.
checkoutBorrowLicense_licenseArn :: Lens' CheckoutBorrowLicense Text Source #
Amazon Resource Name (ARN) of the license. The license must use the borrow consumption configuration.
checkoutBorrowLicense_entitlements :: Lens' CheckoutBorrowLicense [EntitlementData] Source #
License entitlements. Partial checkouts are not supported.
checkoutBorrowLicense_digitalSignatureMethod :: Lens' CheckoutBorrowLicense DigitalSignatureMethod Source #
Digital signature method. The possible value is JSON Web Signature (JWS) algorithm PS384. For more information, see RFC 7518 Digital Signature with RSASSA-PSS.
checkoutBorrowLicense_clientToken :: Lens' CheckoutBorrowLicense Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Destructuring the Response
data CheckoutBorrowLicenseResponse Source #
See: newCheckoutBorrowLicenseResponse
smart constructor.
CheckoutBorrowLicenseResponse' | |
|
Instances
newCheckoutBorrowLicenseResponse Source #
Create a value of CheckoutBorrowLicenseResponse
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:entitlementsAllowed:CheckoutBorrowLicenseResponse'
, checkoutBorrowLicenseResponse_entitlementsAllowed
- Allowed license entitlements.
$sel:checkoutMetadata:CheckoutBorrowLicense'
, checkoutBorrowLicenseResponse_checkoutMetadata
- Information about constraints.
$sel:expiration:CheckoutBorrowLicenseResponse'
, checkoutBorrowLicenseResponse_expiration
- Date and time at which the license checkout expires.
$sel:signedToken:CheckoutBorrowLicenseResponse'
, checkoutBorrowLicenseResponse_signedToken
- Signed token.
$sel:licenseConsumptionToken:CheckoutBorrowLicenseResponse'
, checkoutBorrowLicenseResponse_licenseConsumptionToken
- License consumption token.
$sel:nodeId:CheckoutBorrowLicense'
, checkoutBorrowLicenseResponse_nodeId
- Node ID.
$sel:issuedAt:CheckoutBorrowLicenseResponse'
, checkoutBorrowLicenseResponse_issuedAt
- Date and time at which the license checkout is issued.
$sel:licenseArn:CheckoutBorrowLicense'
, checkoutBorrowLicenseResponse_licenseArn
- Amazon Resource Name (ARN) of the license.
$sel:httpStatus:CheckoutBorrowLicenseResponse'
, checkoutBorrowLicenseResponse_httpStatus
- The response's http status code.
Response Lenses
checkoutBorrowLicenseResponse_entitlementsAllowed :: Lens' CheckoutBorrowLicenseResponse (Maybe [EntitlementData]) Source #
Allowed license entitlements.
checkoutBorrowLicenseResponse_checkoutMetadata :: Lens' CheckoutBorrowLicenseResponse (Maybe [Metadata]) Source #
Information about constraints.
checkoutBorrowLicenseResponse_expiration :: Lens' CheckoutBorrowLicenseResponse (Maybe Text) Source #
Date and time at which the license checkout expires.
checkoutBorrowLicenseResponse_signedToken :: Lens' CheckoutBorrowLicenseResponse (Maybe Text) Source #
Signed token.
checkoutBorrowLicenseResponse_licenseConsumptionToken :: Lens' CheckoutBorrowLicenseResponse (Maybe Text) Source #
License consumption token.
checkoutBorrowLicenseResponse_nodeId :: Lens' CheckoutBorrowLicenseResponse (Maybe Text) Source #
Node ID.
checkoutBorrowLicenseResponse_issuedAt :: Lens' CheckoutBorrowLicenseResponse (Maybe Text) Source #
Date and time at which the license checkout is issued.
checkoutBorrowLicenseResponse_licenseArn :: Lens' CheckoutBorrowLicenseResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the license.
checkoutBorrowLicenseResponse_httpStatus :: Lens' CheckoutBorrowLicenseResponse Int Source #
The response's http status code.