Skip to content

SSMClient.update_document

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Updates one or more values for an SSM document.

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    AttachmentsSource,
    CloudProvider,
    DocumentFormat,
    UpdateDocumentOutput,
)

Signature

async def update_document(
    *,
    content: str,
    name: str,
    attachments: Sequence[AttachmentsSource] | None = None,
    display_name: str | None = None,
    version_name: str | None = None,
    document_version: str | None = None,
    document_format: DocumentFormat | None = None,
    target_type: str | None = None,
    cloud_providers: Sequence[CloudProvider] | None = None,
) -> UpdateDocumentOutput: ...

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)
content Yes A valid JSON or YAML string.
name Yes The name of the SSM document that you want to update.
attachments No A list of key-value pairs that describe attachments to a version of a document.
display_name No The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
version_name No An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
document_version No The version of the document that you want to update. Currently, Systems Manager supports updating only the latest version of the document. You can specify the version number of the latest version or use the $LATEST variable. If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the...
document_format No Specify the document format for the new document version. The document format can be JSON, YAML, or TEXT. JSON is the default format.
target_type No Specify a new target type for the document.
cloud_providers No The cloud providers that the new document version can run against. Valid values include the following: AWS - The document runs against Amazon Web Services resources. Azure - The document runs against Microsoft Azure resources. GCP - The document runs against Google Cloud resources. If you don't specify a value, the new version uses the cloud providers of the latest version.

Output

UpdateDocumentOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
document_description DocumentDescriptionOutput | None Always present DocumentDescriptionOutput

| 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.

AttachmentsSource, CloudProvider, DocumentFormat, UpdateDocumentOutput

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:

DocumentVersionLimitExceededError, DuplicateDocumentContentError, DuplicateDocumentVersionNameError, InternalServerError, InvalidDocumentContentError, InvalidDocumentError, InvalidDocumentOperationError, InvalidDocumentSchemaVersionError, InvalidDocumentVersionError, MaxDocumentSizeExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model