Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

update_document_default_version

update_document_default_version(**kwargs)

Set the default version of a document.

Note

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.

See also: AWS API Documentation

Request Syntax

response = client.update_document_default_version(
    Name='string',
    DocumentVersion='string'
)
Parameters
  • Name (string) --

    [REQUIRED]

    The name of a custom document that you want to set as the default version.

  • DocumentVersion (string) --

    [REQUIRED]

    The version of a custom document that you want to set as the default version.

Return type

dict

Returns

Response Syntax

{
    'Description': {
        'Name': 'string',
        'DefaultVersion': 'string',
        'DefaultVersionName': 'string'
    }
}

Response Structure

  • (dict) --

    • Description (dict) --

      The description of a custom document that you want to set as the default version.

      • Name (string) --

        The name of the document.

      • DefaultVersion (string) --

        The default version of the document.

      • DefaultVersionName (string) --

        The default version of the artifact associated with the document.

Exceptions

  • SSM.Client.exceptions.InternalServerError
  • SSM.Client.exceptions.InvalidDocument
  • SSM.Client.exceptions.InvalidDocumentVersion
  • SSM.Client.exceptions.InvalidDocumentSchemaVersion