Skip to content

/AWS1/CL_SSM=>UPDATEDOCUMENT()

About UpdateDocument

Updates one or more values for an SSM document.

Method Signature

IMPORTING

Required arguments:

IV_CONTENT TYPE /AWS1/SSMDOCUMENTCONTENT /AWS1/SSMDOCUMENTCONTENT

A valid JSON or YAML string.

IV_NAME TYPE /AWS1/SSMDOCUMENTNAME /AWS1/SSMDOCUMENTNAME

The name of the SSM document that you want to update.

Optional arguments:

IT_ATTACHMENTS TYPE /AWS1/CL_SSMATTACHMENTSSOURCE=>TT_ATTACHMENTSSOURCELIST TT_ATTACHMENTSSOURCELIST

A list of key-value pairs that describe attachments to a version of a document.

IV_DISPLAYNAME TYPE /AWS1/SSMDOCUMENTDISPLAYNAME /AWS1/SSMDOCUMENTDISPLAYNAME

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.

IV_VERSIONNAME TYPE /AWS1/SSMDOCUMENTVERSIONNAME /AWS1/SSMDOCUMENTVERSIONNAME

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.

IV_DOCUMENTVERSION TYPE /AWS1/SSMDOCUMENTVERSION /AWS1/SSMDOCUMENTVERSION

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 apply-only-at-cron-interval parameter.

IV_DOCUMENTFORMAT TYPE /AWS1/SSMDOCUMENTFORMAT /AWS1/SSMDOCUMENTFORMAT

Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.

IV_TARGETTYPE TYPE /AWS1/SSMTARGETTYPE /AWS1/SSMTARGETTYPE

Specify a new target type for the document.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SSMUPDATEDOCRESULT /AWS1/CL_SSMUPDATEDOCRESULT