HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/ssm/list-documents.rst
**To list all the configuration documents in your account**

This example lists all the documents in your account.

Command::

  aws ssm list-documents

Output::

  {
	"DocumentIdentifiers": [
		{
			"Name": "AWS-ApplyPatchBaseline",
			"PlatformTypes": [
				"Windows"
			],
			"DocumentVersion": "1",
			"DocumentType": "Command",
			"Owner": "Amazon",
			"SchemaVersion": "1.2"
		},
		{
			"Name": "AWS-ConfigureAWSPackage",
			"PlatformTypes": [
				"Windows",
				"Linux"
			],
			"DocumentVersion": "1",
			"DocumentType": "Command",
			"Owner": "Amazon",
			"SchemaVersion": "2.0"
		},
		...
	]
  }

**To list all Command configuration documents in your account that you own**

This example lists all Command documents in your account that you own.

Command::

  aws ssm list-documents --document-filter-list key=Owner,value=Self key=DocumentType,value=Command

Output::

  {
	"DocumentIdentifiers": [
		{
			"Name": "RunPowerShellScript",
			"PlatformTypes": [
				"Windows",
				"Linux"
			],
			"DocumentVersion": "1",
			"DocumentType": "Command",
			"Owner": "111222333444",
			"SchemaVersion": "2.0"
		},
		{
			"Name": "RunShellScript",
			"PlatformTypes": [
				"Linux"
			],
			"DocumentVersion": "1",
			"DocumentType": "Command",
			"Owner": "111222333444",
			"SchemaVersion": "1.2"
		},
		...
	]
  }