amazonka-license-manager-2.0: Amazon License Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LicenseManager.CheckoutLicense

Description

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

Creating a Request

data CheckoutLicense Source #

See: newCheckoutLicense smart constructor.

Constructors

CheckoutLicense' 

Fields

Instances

Instances details
ToJSON CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

ToHeaders CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

ToPath CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

ToQuery CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

AWSRequest CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Associated Types

type AWSResponse CheckoutLicense #

Generic CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Associated Types

type Rep CheckoutLicense :: Type -> Type #

Read CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Show CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

NFData CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Methods

rnf :: CheckoutLicense -> () #

Eq CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Hashable CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

type AWSResponse CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

type Rep CheckoutLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

type Rep CheckoutLicense = D1 ('MetaData "CheckoutLicense" "Amazonka.LicenseManager.CheckoutLicense" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" 'False) (C1 ('MetaCons "CheckoutLicense'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "beneficiary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "productSKU") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "checkoutType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CheckoutType) :*: S1 ('MetaSel ('Just "keyFingerprint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "entitlements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [EntitlementData]) :*: S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCheckoutLicense Source #

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_keyFingerprint :: Lens' CheckoutLicense Text Source #

Key fingerprint identifying the license.

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.

Constructors

CheckoutLicenseResponse' 

Fields

Instances

Instances details
Generic CheckoutLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Associated Types

type Rep CheckoutLicenseResponse :: Type -> Type #

Read CheckoutLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Show CheckoutLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

NFData CheckoutLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

Methods

rnf :: CheckoutLicenseResponse -> () #

Eq CheckoutLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

type Rep CheckoutLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CheckoutLicense

type Rep CheckoutLicenseResponse = D1 ('MetaData "CheckoutLicenseResponse" "Amazonka.LicenseManager.CheckoutLicense" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" 'False) (C1 ('MetaCons "CheckoutLicenseResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "checkoutType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CheckoutType)) :*: S1 ('MetaSel ('Just "entitlementsAllowed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EntitlementData]))) :*: (S1 ('MetaSel ('Just "expiration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "issuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "licenseArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "licenseConsumptionToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "signedToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

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_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.