describeInventoryDeletions method
Describes a specific delete inventory operation.
May throw InternalServerError. May throw InvalidDeletionIdException. May throw InvalidNextToken.
Parameter deletionId
:
Specify the delete inventory ID for which you want information. This ID
was returned by the DeleteInventory
action.
Parameter maxResults
:
The maximum number of items to return for this call. The call also returns
a token that you can specify in a subsequent call to get the next set of
results.
Parameter nextToken
:
A token to start the list. Use this token to get the next set of results.
Implementation
Future<DescribeInventoryDeletionsResult> describeInventoryDeletions({
String? deletionId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.DescribeInventoryDeletions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (deletionId != null) 'DeletionId': deletionId,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return DescribeInventoryDeletionsResult.fromJson(jsonResponse.body);
}