create_license_version
async
¶
create_license_version(
license_arn: Arn,
license_name: String,
product_name: String,
issuer: Issuer,
home_region: String,
validity: DatetimeRange,
entitlements: EntitlementList,
consumption_configuration: ConsumptionConfiguration,
status: LicenseStatus,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
license_metadata: Optional[MetadataList] = None,
source_version: Optional[String] = None,
reset_usage: Optional[Boolean] = None,
) -> CreateLicenseVersionResponse
Creates a new version of the specified license.
Parameters:
-
license_arn(Arn) –Amazon Resource Name (ARN) of the license.
-
license_name(String) –License name.
-
product_name(String) –Product name.
-
issuer(Issuer) –License issuer.
-
home_region(String) –Home Region of the license.
-
validity(DatetimeRange) –Date and time range during which the license is valid, in ISO8601-UTC format.
-
license_metadata(Optional[MetadataList], default:None) –Information about the license.
-
entitlements(EntitlementList) –License entitlements.
-
consumption_configuration(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.
-
status(LicenseStatus) –License status.
-
client_token(ClientToken) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
source_version(Optional[String], default:None) –Current version of the license.
-
reset_usage(Optional[Boolean], default:None) –Specifies whether to reset the license usage for the new license version. If you don't specify a value, the license usage is not reset.
Raises:
-
AccessDeniedException–Access to resource denied.
-
AuthorizationException–The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.
-
ConflictException–There was a conflict processing the request. Try your request again.
-
RateLimitExceededException–Too many requests have been submitted. Try again after a brief wait.
-
RedirectException–This is not the correct Region for the resource. Try again.
-
ResourceNotFoundException–The resource cannot be found.
-
ServerInternalException–The server experienced an internal error. Try again.
-
ValidationException–The provided input is not valid. Try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_license_manager/_services/async_license_manager.py
1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 | |