update_document_default_version
async
¶
update_document_default_version(
name: DocumentName,
document_version: DocumentVersionNumber,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> UpdateDocumentDefaultVersionResult
Set the default version of a document.
If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval parameter.
Parameters:
-
name(DocumentName) –The name of a custom document that you want to set as the default version.
-
document_version(DocumentVersionNumber) –The version of a custom document that you want to set as the default version.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidDocument–The specified SSM document doesn't exist.
-
InvalidDocumentSchemaVersion–The version of the document schema isn't supported.
-
InvalidDocumentVersion–The document version isn't valid or doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 | |