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

Description

Creates a license.

Synopsis

Creating a Request

data CreateLicense Source #

See: newCreateLicense smart constructor.

Constructors

CreateLicense' 

Fields

Instances

Instances details
ToJSON CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

ToHeaders CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

ToPath CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

ToQuery CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

AWSRequest CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Associated Types

type AWSResponse CreateLicense #

Generic CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Associated Types

type Rep CreateLicense :: Type -> Type #

Read CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Show CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

NFData CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Methods

rnf :: CreateLicense -> () #

Eq CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Hashable CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

type AWSResponse CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

type Rep CreateLicense Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

newCreateLicense Source #

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

Instances details
Generic CreateLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Associated Types

type Rep CreateLicenseResponse :: Type -> Type #

Read CreateLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Show CreateLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

NFData CreateLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

Methods

rnf :: CreateLicenseResponse -> () #

Eq CreateLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

type Rep CreateLicenseResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateLicense

type Rep CreateLicenseResponse = D1 ('MetaData "CreateLicenseResponse" "Amazonka.LicenseManager.CreateLicense" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" 'False) (C1 ('MetaCons "CreateLicenseResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "licenseArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LicenseStatus))) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.