checkInLicense method
Checks in the specified license. Check in a license when it is no longer in use.
May throw ValidationException. May throw ResourceNotFoundException. May throw ConflictException. May throw AuthorizationException. May throw AccessDeniedException. May throw RateLimitExceededException. May throw ServerInternalException.
Parameter licenseConsumptionToken
:
License consumption token.
Parameter beneficiary
:
License beneficiary.
Implementation
Future<void> checkInLicense({
required String licenseConsumptionToken,
String? beneficiary,
}) async {
ArgumentError.checkNotNull(
licenseConsumptionToken, 'licenseConsumptionToken');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSLicenseManager.CheckInLicense'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LicenseConsumptionToken': licenseConsumptionToken,
if (beneficiary != null) 'Beneficiary': beneficiary,
},
);
}