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 new version of the specified license.
Synopsis
- data CreateLicenseVersion = CreateLicenseVersion' {
- sourceVersion :: Maybe Text
- licenseMetadata :: Maybe [Metadata]
- licenseArn :: Text
- licenseName :: Text
- productName :: Text
- issuer :: Issuer
- homeRegion :: Text
- validity :: DatetimeRange
- entitlements :: [Entitlement]
- consumptionConfiguration :: ConsumptionConfiguration
- status :: LicenseStatus
- clientToken :: Text
- newCreateLicenseVersion :: Text -> Text -> Text -> Issuer -> Text -> DatetimeRange -> ConsumptionConfiguration -> LicenseStatus -> Text -> CreateLicenseVersion
- createLicenseVersion_sourceVersion :: Lens' CreateLicenseVersion (Maybe Text)
- createLicenseVersion_licenseMetadata :: Lens' CreateLicenseVersion (Maybe [Metadata])
- createLicenseVersion_licenseArn :: Lens' CreateLicenseVersion Text
- createLicenseVersion_licenseName :: Lens' CreateLicenseVersion Text
- createLicenseVersion_productName :: Lens' CreateLicenseVersion Text
- createLicenseVersion_issuer :: Lens' CreateLicenseVersion Issuer
- createLicenseVersion_homeRegion :: Lens' CreateLicenseVersion Text
- createLicenseVersion_validity :: Lens' CreateLicenseVersion DatetimeRange
- createLicenseVersion_entitlements :: Lens' CreateLicenseVersion [Entitlement]
- createLicenseVersion_consumptionConfiguration :: Lens' CreateLicenseVersion ConsumptionConfiguration
- createLicenseVersion_status :: Lens' CreateLicenseVersion LicenseStatus
- createLicenseVersion_clientToken :: Lens' CreateLicenseVersion Text
- data CreateLicenseVersionResponse = CreateLicenseVersionResponse' {
- status :: Maybe LicenseStatus
- version :: Maybe Text
- licenseArn :: Maybe Text
- httpStatus :: Int
- newCreateLicenseVersionResponse :: Int -> CreateLicenseVersionResponse
- createLicenseVersionResponse_status :: Lens' CreateLicenseVersionResponse (Maybe LicenseStatus)
- createLicenseVersionResponse_version :: Lens' CreateLicenseVersionResponse (Maybe Text)
- createLicenseVersionResponse_licenseArn :: Lens' CreateLicenseVersionResponse (Maybe Text)
- createLicenseVersionResponse_httpStatus :: Lens' CreateLicenseVersionResponse Int
Creating a Request
data CreateLicenseVersion Source #
See: newCreateLicenseVersion
smart constructor.
CreateLicenseVersion' | |
|
Instances
newCreateLicenseVersion Source #
:: Text | |
-> Text | |
-> Text | |
-> Issuer | |
-> Text | |
-> DatetimeRange | |
-> ConsumptionConfiguration | |
-> LicenseStatus | |
-> Text | |
-> CreateLicenseVersion |
Create a value of CreateLicenseVersion
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:sourceVersion:CreateLicenseVersion'
, createLicenseVersion_sourceVersion
- Current version of the license.
$sel:licenseMetadata:CreateLicenseVersion'
, createLicenseVersion_licenseMetadata
- Information about the license.
$sel:licenseArn:CreateLicenseVersion'
, createLicenseVersion_licenseArn
- Amazon Resource Name (ARN) of the license.
$sel:licenseName:CreateLicenseVersion'
, createLicenseVersion_licenseName
- License name.
$sel:productName:CreateLicenseVersion'
, createLicenseVersion_productName
- Product name.
$sel:issuer:CreateLicenseVersion'
, createLicenseVersion_issuer
- License issuer.
$sel:homeRegion:CreateLicenseVersion'
, createLicenseVersion_homeRegion
- Home Region of the license.
$sel:validity:CreateLicenseVersion'
, createLicenseVersion_validity
- Date and time range during which the license is valid, in ISO8601-UTC
format.
$sel:entitlements:CreateLicenseVersion'
, createLicenseVersion_entitlements
- License entitlements.
$sel:consumptionConfiguration:CreateLicenseVersion'
, createLicenseVersion_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:status:CreateLicenseVersion'
, createLicenseVersion_status
- License status.
$sel:clientToken:CreateLicenseVersion'
, createLicenseVersion_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Request Lenses
createLicenseVersion_sourceVersion :: Lens' CreateLicenseVersion (Maybe Text) Source #
Current version of the license.
createLicenseVersion_licenseMetadata :: Lens' CreateLicenseVersion (Maybe [Metadata]) Source #
Information about the license.
createLicenseVersion_licenseArn :: Lens' CreateLicenseVersion Text Source #
Amazon Resource Name (ARN) of the license.
createLicenseVersion_licenseName :: Lens' CreateLicenseVersion Text Source #
License name.
createLicenseVersion_productName :: Lens' CreateLicenseVersion Text Source #
Product name.
createLicenseVersion_issuer :: Lens' CreateLicenseVersion Issuer Source #
License issuer.
createLicenseVersion_homeRegion :: Lens' CreateLicenseVersion Text Source #
Home Region of the license.
createLicenseVersion_validity :: Lens' CreateLicenseVersion DatetimeRange Source #
Date and time range during which the license is valid, in ISO8601-UTC format.
createLicenseVersion_entitlements :: Lens' CreateLicenseVersion [Entitlement] Source #
License entitlements.
createLicenseVersion_consumptionConfiguration :: Lens' CreateLicenseVersion 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.
createLicenseVersion_status :: Lens' CreateLicenseVersion LicenseStatus Source #
License status.
createLicenseVersion_clientToken :: Lens' CreateLicenseVersion Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Destructuring the Response
data CreateLicenseVersionResponse Source #
See: newCreateLicenseVersionResponse
smart constructor.
CreateLicenseVersionResponse' | |
|
Instances
newCreateLicenseVersionResponse Source #
Create a value of CreateLicenseVersionResponse
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:CreateLicenseVersion'
, createLicenseVersionResponse_status
- License status.
$sel:version:CreateLicenseVersionResponse'
, createLicenseVersionResponse_version
- New version of the license.
$sel:licenseArn:CreateLicenseVersion'
, createLicenseVersionResponse_licenseArn
- License ARN.
$sel:httpStatus:CreateLicenseVersionResponse'
, createLicenseVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createLicenseVersionResponse_status :: Lens' CreateLicenseVersionResponse (Maybe LicenseStatus) Source #
License status.
createLicenseVersionResponse_version :: Lens' CreateLicenseVersionResponse (Maybe Text) Source #
New version of the license.
createLicenseVersionResponse_licenseArn :: Lens' CreateLicenseVersionResponse (Maybe Text) Source #
License ARN.
createLicenseVersionResponse_httpStatus :: Lens' CreateLicenseVersionResponse Int Source #
The response's http status code.