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.

Container for the parameters to the CreateDocument operation. Creates a Systems Manager document.

After you create a document, you can use CreateAssociation to associate it with one or more running instances.

Inheritance Hierarchy


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


public class CreateDocumentRequest : AmazonSimpleSystemsManagementRequest

The CreateDocumentRequest type exposes the following members


Public Method CreateDocumentRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method CreateDocumentRequest(string, string)

Instantiates CreateDocumentRequest with the parameterized properties


Public Property Content System.String

Gets and sets the property Content.

A valid JSON or YAML string.

Public Property DocumentFormat Amazon.SimpleSystemsManagement.DocumentFormat

Gets and sets the property DocumentFormat.

Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.

Public Property DocumentType Amazon.SimpleSystemsManagement.DocumentType

Gets and sets the property DocumentType.

The type of document to create. Valid document types include: Policy, Automation, and Command.

Public Property Name System.String

Gets and sets the property Name.

A name for the Systems Manager document.

Do not use the following to begin the names of documents you create. They are reserved by AWS for use as document prefixes:

  • aws

  • amazon

  • amzn

Public Property TargetType System.String

Gets and sets the property TargetType.

Specify a target type to define the kinds of resources the document can run on. For example, to run a document on EC2 instances, specify the following value: /AWS::EC2::Instance. If you specify a value of '/' the document can run on all types of resources. If you don't specify a value, the document can't run on any resources. For a list of valid resource types, see AWS Resource Types Reference in the AWS CloudFormation User Guide.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms