Learn R Programming

paws.management (version 0.1.8)

ssm_update_document: Updates one or more values for an SSM document

Description

Updates one or more values for an SSM document.

Usage

ssm_update_document(Content, Attachments, Name, VersionName,
  DocumentVersion, DocumentFormat, TargetType)

Arguments

Content

[required] A valid JSON or YAML string.

Attachments

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

Name

[required] The name of the document that you want to update.

VersionName

An optional field specifying the version of the artifact you are updating with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

DocumentVersion

(Required) The version of the document that you want to update.

DocumentFormat

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

TargetType

Specify a new target type for the document.

Request syntax

svc$update_document(
  Content = "string",
  Attachments = list(
    list(
      Key = "SourceUrl"|"S3FileUrl"|"AttachmentReference",
      Values = list(
        "string"
      ),
      Name = "string"
    )
  ),
  Name = "string",
  VersionName = "string",
  DocumentVersion = "string",
  DocumentFormat = "YAML"|"JSON"|"TEXT",
  TargetType = "string"
)