AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/ssm_example_ssm_CreateDocument_section.md

Summary

Added PowerShell V5 example for CreateDocument API with JSON configuration file input

Security assessment

Routine example of creating SSM documents without security context or vulnerability references

Diff

diff --git a/code-library/latest/ug/ssm_example_ssm_CreateDocument_section.md b/code-library/latest/ug/ssm_example_ssm_CreateDocument_section.md
index 8eb96f30f..d03cbb93d 100644
--- a//code-library/latest/ug/ssm_example_ssm_CreateDocument_section.md
+++ b//code-library/latest/ug/ssm_example_ssm_CreateDocument_section.md
@@ -231,0 +232,33 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a document in your account. The document must be in JSON format. For more information about writing a configuration document, see Configuration Document in the SSM API Reference.**
+    
+    
+    New-SSMDocument -Content (Get-Content -Raw "c:\temp\RunShellScript.json") -Name "RunShellScript" -DocumentType "Command"
+    
+
+**Output:**
+    
+    
+    CreatedDate     : 3/1/2017 1:21:33 AM
+    DefaultVersion  : 1
+    Description     : Run an updated script
+    DocumentType    : Command
+    DocumentVersion : 1
+    Hash            : 1d5ce820e999ff051eb4841ed887593daf77120fd76cae0d18a53cc42e4e22c1
+    HashType        : Sha256
+    LatestVersion   : 1
+    Name            : RunShellScript
+    Owner           : 809632081692
+    Parameters      : {commands}
+    PlatformTypes   : {Linux}
+    SchemaVersion   : 2.0
+    Sha1            :
+    Status          : Creating
+
+  * For API details, see [CreateDocument](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+