Amazon Simple Systems Manager (SSM)
    Amazon Simple Systems Manager (SSM)
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST

      /

      The Amazon SSM multi-region endpoint
      http://ssm.{region}.amazonaws.com
      The Amazon SSM multi-region endpoint
      http://ssm.{region}.amazonaws.com
      POST
      /
      Updates one or more values for an SSM document.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location -g --request POST 'http://ssm.{region}.amazonaws.com/' \
      --header 'X-Amz-Target;' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "Content": "string",
          "Attachments": [],
          "Name": "string",
          "DisplayName": "string",
          "VersionName": "string",
          "DocumentVersion": "string",
          "DocumentFormat": "YAML",
          "TargetType": "string"
      }'
      Response Response Example
      200 - Example 1
      {
          "DocumentDescription": {
              "Sha1": "string",
              "Hash": "string",
              "HashType": "Sha256",
              "Name": "string",
              "DisplayName": "string",
              "VersionName": "string",
              "Owner": "string",
              "CreatedDate": "string",
              "Status": "Creating",
              "StatusInformation": "string",
              "DocumentVersion": "string",
              "Description": "string",
              "Parameters": [],
              "PlatformTypes": [],
              "DocumentType": "Command",
              "SchemaVersion": "string",
              "LatestVersion": "string",
              "DefaultVersion": "string",
              "DocumentFormat": "YAML",
              "TargetType": "string",
              "Tags": [],
              "AttachmentsInformation": [],
              "Requires": [],
              "Author": "string",
              "ReviewInformation": [],
              "ApprovedVersion": "string",
              "PendingReviewVersion": "string",
              "ReviewStatus": "APPROVED",
              "Category": [],
              "CategoryEnum": []
          }
      }

      Request

      Header Params
      X-Amz-Target
      string 
      required
      Body Params application/json
      Content
      string 
      required
      A valid JSON or YAML string.
      >= 1 characters
      Attachments
      array[object (AttachmentsSource) {3}] 
      optional
      A list of key-value pairs that describe attachments to a version of a document.
      >= 0 items<= 20 items
      Key
      enum<string> 
      optional
      The key of a key-value pair that identifies the location of an attachment to a document.
      Allowed values:
      SourceUrlS3FileUrlAttachmentReference
      Values
      array[string]
      optional
      The value of a key-value pair that identifies the location of an attachment to a document. The format for Value depends on the type of key you specify.
      • For the key SourceUrl, the value is an S3 bucket location. For example:
        "Values": [ "s3://doc-example-bucket/my-folder" ]
      • For the key S3FileUrl, the value is a file in an S3 bucket. For example:
        "Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
      • For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
        "Values": [ "MyOtherDocument/3/my-other-file.py" ]
        However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
        "Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
      >= 1 items<= 1 items
      Name
      string 
      optional
      The name of the document attachment file.
      Match pattern:
      ^[a-zA-Z0-9_\-.]{3,128}$
      Name
      string 
      required
      The name of the SSM document that you want to update.
      Match pattern:
      ^[a-zA-Z0-9_\-.]{3,128}$
      DisplayName
      string 
      optional
      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.
      <= 1024 characters
      Match pattern:
      ^[\w\.\-\:\/ ]*$
      VersionName
      string 
      optional
      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 can't be changed.
      Match pattern:
      ^[a-zA-Z0-9_\-.]{1,128}$
      DocumentVersion
      string 
      optional
      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.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      DocumentFormat
      enum<string> 
      optional
      Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
      Allowed values:
      YAMLJSONTEXT
      TargetType
      string 
      optional
      Specify a new target type for the document.
      <= 200 characters
      Match pattern:
      ^\/[\w\.\-\:\/]*$
      Examples

      Responses

      🟢200Success
      application/json
      Body
      DocumentDescription
      object 
      optional
      A description of the document that was updated.
      Sha1
      string 
      optional
      The SHA1 hash of the document, which you can use for verification.
      Hash
      string 
      optional
      The Sha256 or Sha1 hash created by the system when the document was created.
      <= 256 characters
      HashType
      enum<string> 
      optional
      The hash type of the document. Valid values include Sha256 or Sha1.
      Allowed values:
      Sha256Sha1
      Name
      string 
      optional
      The name of the SSM document.
      Match pattern:
      ^[a-zA-Z0-9_\-.:/]{3,128}$
      DisplayName
      string 
      optional
      The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see UpdateDocument.
      <= 1024 characters
      Match pattern:
      ^[\w\.\-\:\/ ]*$
      VersionName
      string 
      optional
      The version of the artifact associated with the document.
      Match pattern:
      ^[a-zA-Z0-9_\-.]{1,128}$
      Owner
      string 
      optional
      The Amazon Web Services user that created the document.
      CreatedDate
      string <date-time>
      optional
      The date when the document was created.
      Status
      enum<string> 
      optional
      The status of the SSM document.
      Allowed values:
      CreatingActiveUpdatingDeletingFailed
      StatusInformation
      string 
      optional
      A message returned by Amazon Web Services Systems Manager that explains the Status value. For example, a Failed status might be explained by the StatusInformation message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."
      DocumentVersion
      string 
      optional
      The document version.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      Description
      string 
      optional
      A description of the document.
      Parameters
      array[object (DocumentParameter) {4}] 
      optional
      A description of the parameters for a document.
      PlatformTypes
      array[string]
      optional
      The list of operating system (OS) platforms compatible with this SSM document.
      Allowed values:
      WindowsLinuxMacOS
      DocumentType
      enum<string> 
      optional
      The type of document.
      Allowed values:
      CommandPolicyAutomationSessionPackageApplicationConfigurationApplicationConfigurationSchemaDeploymentStrategyChangeCalendarAutomation.ChangeTemplateProblemAnalysisProblemAnalysisTemplateCloudFormationConformancePackTemplateQuickSetup
      SchemaVersion
      string 
      optional
      The schema version.
      Match pattern:
      ([0-9]+)\.([0-9]+)
      LatestVersion
      string 
      optional
      The latest version of the document.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      DefaultVersion
      string 
      optional
      The default version.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      DocumentFormat
      enum<string> 
      optional
      The document format, either JSON or YAML.
      Allowed values:
      YAMLJSONTEXT
      TargetType
      string 
      optional
      The target type which defines the kinds of resources the document can run on. For example, /AWS::EC2::Instance. For a list of valid resource types, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
      <= 200 characters
      Match pattern:
      ^\/[\w\.\-\:\/]*$
      Tags
      array[object (Tag) {2}] 
      optional
      The tags, or metadata, that have been applied to the document.
      <= 1000 items
      AttachmentsInformation
      array[object (AttachmentInformation) {1}] 
      optional
      Details about the document attachments, including names, locations, sizes, and so on.
      Requires
      array[object (DocumentRequires) {4}] 
      optional
      A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
      >= 1 items
      Author
      string 
      optional
      The user in your organization who created the document.
      ReviewInformation
      array[object (ReviewInformation) {3}] 
      optional
      Details about the review of a document.
      >= 1 items
      ApprovedVersion
      string 
      optional
      The version of the document currently approved for use in the organization.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      PendingReviewVersion
      string 
      optional
      The version of the document that is currently under review.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      ReviewStatus
      enum<string> 
      optional
      The current status of the review.
      Allowed values:
      APPROVEDNOT_REVIEWEDPENDINGREJECTED
      Category
      array[string]
      optional
      The classification of a document to help you identify and categorize its use.
      >= 0 items<= 3 items
      CategoryEnum
      array[string]
      optional
      The value that identifies a document's category.
      >= 0 items<= 3 items
      🟠480MaxDocumentSizeExceeded
      🟠481DocumentVersionLimitExceeded
      🟠482InternalServerError
      🟠483DuplicateDocumentContent
      🟠484DuplicateDocumentVersionName
      🟠485InvalidDocumentContent
      🟠486InvalidDocumentVersion
      🟠487InvalidDocumentSchemaVersion
      🟠488InvalidDocument
      🟠489InvalidDocumentOperation
      Previous
      /
      Next
      /
      Built with