AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems Manager performs on your managed nodes. For more information about SSM documents, including information about supported schemas, features, and syntax, see Amazon Web Services Systems Manager Documents in the Amazon Web Services Systems Manager User Guide.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateDocumentAsync.

Namespace: Amazon.SimpleSystemsManagement
Assembly: AWSSDK.SimpleSystemsManagement.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateDocumentResponse CreateDocument(
         String content,
         String name
)

Parameters

content
Type: System.String

The content for the new SSM document in JSON or YAML format. The content of the document must not exceed 64KB. This quota also includes the content specified for input parameters at runtime. We recommend storing the contents for your new document in an external JSON or YAML file and referencing the file in a command. For examples, see the following topics in the Amazon Web Services Systems Manager User Guide. Create an SSM document (console) Create an SSM document (command line) Create an SSM document (API)

name
Type: System.String

A name for the SSM document. You can't use the following strings as document name prefixes. These are reserved by Amazon Web Services for use as document name prefixes: aws amazon amzn

Return Value


The response from the CreateDocument service method, as returned by SimpleSystemsManagement.

Exceptions

ExceptionCondition
DocumentAlreadyExistsException The specified document already exists.
DocumentLimitExceededException You can have at most 500 active SSM documents.
InternalServerErrorException An error occurred on the server side.
InvalidDocumentContentException The content for the document isn't valid.
InvalidDocumentSchemaVersionException The version of the document schema isn't supported.
MaxDocumentSizeExceededException The size limit of a document is 64 KB.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also