aws ssm update-document-default-version
Set the default version of a document. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To update the default version of a document
The following update-document-default-version example updates the default version of a Systems Manager document.
aws ssm update-document-default-version --name "Example" --document-version "2"Identify--nameThe name of a custom document that you want to set as the default version.--document-versionThe version of a custom document that you want to set as the default version.Its output
{
"Description": {
"Name": "Example",
"DefaultVersion": "2"
}
}For more information, see Writing SSM Document Content in the AWS Systems Manager User Guide.
Options
--document-versionThe version of a custom document that you want to set as the default version.--nameThe name of a custom document that you want to set as the default version.