SSMClient.delete_document
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the document. Before you delete the document, we recommend that you use DeleteAssociation to disassociate all managed nodes that are associated with the document.
Install and imports
Signature
async def delete_document(
*,
name: str,
document_version: str | None = None,
version_name: str | None = None,
force: bool | None = None,
) -> DeleteDocumentOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The name of the document. |
document_version |
No | The version of the document that you want to delete. If not provided, all versions of the document are deleted. |
version_name |
No | The version name of the document that you want to delete. If not provided, all versions of the document are deleted. |
force |
No | Some SSM document types require that you specify a Force flag before you can delete the document. For example, you must specify a Force flag to delete a document of type ApplicationConfigurationSchema . You can restrict access to the Force flag in an Identity and Access Management (IAM) policy. |
Output
DeleteDocumentOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_ssm.exceptions:
AssociatedInstancesError, InternalServerError, InvalidDocumentError, InvalidDocumentOperationError, TooManyUpdatesError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.