Describes a specific delete inventory operation.
Parameters:
-
deletion_id
(Optional[UUID], default:
None
)
–
Specify the delete inventory ID for which you want information. This ID was returned by the DeleteInventory operation.
-
next_token
(Optional[NextToken], default:
None
)
–
A token to start the list. Use this token to get the next set of results.
-
max_results
(Optional[MaxResults], default:
None
)
–
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.
Raises:
Source code in docs_src/capo_ssm/_services/ssm.py
| def describe_inventory_deletions(
self,
*,
config_overrides: Optional[SSMClientConfig] = None,
deletion_id: Optional["capo_ssm.types.uuid.UUID"] = None,
next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
max_results: Optional["capo_ssm.types.max_results.MaxResults"] = None,
) -> "capo_ssm.types.describe_inventory_deletions_result.DescribeInventoryDeletionsResult":
"""<p>Describes a specific delete inventory operation.</p>
Args:
deletion_id: <p>Specify the delete inventory ID for which you want information. This ID was returned by the <code>DeleteInventory</code> operation.</p>
next_token: <p>A token to start the list. Use this token to get the next set of results. </p>
max_results: <p>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.</p>
Raises:
capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
capo_ssm.errors.invalid_deletion_id_exception.InvalidDeletionIdException: <p>The ID specified for the delete operation doesn't exist or isn't valid. Verify the ID and try again.</p>
capo_ssm.errors.invalid_next_token.InvalidNextToken: <p>The specified token isn't valid.</p>
capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm.types.describe_inventory_deletions_request.DescribeInventoryDeletionsRequest]",
) -> OperationResponse[
"capo_ssm.types.describe_inventory_deletions_result.DescribeInventoryDeletionsResult"
]:
import capo_ssm._operations.amazon_ssm.describe_inventory_deletions
output, http_response = (
capo_ssm._operations.amazon_ssm.describe_inventory_deletions.describe_inventory_deletions(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeInventoryDeletions")
)
input_: capo_ssm.types.describe_inventory_deletions_request.DescribeInventoryDeletionsRequest = {}
if deletion_id is not None:
input_["deletion_id"] = deletion_id
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|