Amazon.SimpleSystemsManagement.AmazonSimpleSystemsManagementClient.CreateDocumentAsync C# (CSharp) Метод

CreateDocumentAsync() публичный Метод

Creates an SSM document.

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

/// The specified SSM document already exists. /// /// You can have at most 200 active SSM documents. /// /// An error occurred on the server side. /// /// The content for the SSM document is not valid. /// /// The version of the document schema is not supported. /// /// The size limit of an SSM document is 64 KB. ///
public CreateDocumentAsync ( string content, string name, System cancellationToken = default(CancellationToken) ) : Task
content string A valid JSON string.
name string A name for the SSM document.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<CreateDocumentResponse> CreateDocumentAsync(string content, string name, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new CreateDocumentRequest();
            request.Content = content;
            request.Name = name;
            return CreateDocumentAsync(request, cancellationToken);
        }

Same methods

AmazonSimpleSystemsManagementClient::CreateDocumentAsync ( CreateDocumentRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleSystemsManagementClient