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

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

Associates the specified SSM document with the specified instances or targets.

When you associate an SSM document with one or more instances using instance IDs or tags, the SSM agent running on the instance processes the document and configures the instance as specified.

If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

/// You can have at most 2,000 active associations. /// /// You cannot specify an instance ID in more than one association. /// /// An error occurred on the server side. /// /// The specified document does not exist. /// /// The document version is not valid or does not exist. /// /// The following problems can cause this exception: /// /// /// /// You do not have permission to access the instance. /// /// /// /// The SSM agent is not running. On managed instances and Linux instances, verify that /// the SSM agent is running. On EC2 Windows instances, verify that the EC2Config service /// is running. /// /// /// /// The SSM agent or EC2Config service is not registered to the SSM endpoint. Try reinstalling /// the SSM agent or EC2Config service. /// /// /// /// The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. /// Invalid states are: Shutting-down and Terminated. /// /// /// The output location is not valid or does not exist. /// /// You must specify values for all required parameters in the SSM document. You can only /// supply values to parameters defined in the SSM document. /// /// The schedule is invalid. Verify your cron or rate expression and try again. /// /// The target is not valid or does not exist. It might not be configured for EC2 Systems /// Manager or you might not have permission to perform the operation. /// /// The document does not support the platform type of the given instance ID(s). For example, /// you sent an SSM document for a Windows instance to a Linux instance. ///
public CreateAssociationBatch ( CreateAssociationBatchRequest request ) : CreateAssociationBatchResponse
request Amazon.SimpleSystemsManagement.Model.CreateAssociationBatchRequest Container for the necessary parameters to execute the CreateAssociationBatch service method.
Результат Amazon.SimpleSystemsManagement.Model.CreateAssociationBatchResponse
        public CreateAssociationBatchResponse CreateAssociationBatch(CreateAssociationBatchRequest request)
        {
            var marshaller = new CreateAssociationBatchRequestMarshaller();
            var unmarshaller = CreateAssociationBatchResponseUnmarshaller.Instance;

            return Invoke<CreateAssociationBatchRequest,CreateAssociationBatchResponse>(request, marshaller, unmarshaller);
        }
AmazonSimpleSystemsManagementClient