Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.simplesystemsmanagement;
 
 
Interface for accessing AWSSimpleSystemsManagement asynchronously. Each asynchronous method will return a Java Future object, and users are also allowed to provide a callback handler.

Amazon EC2 Simple Systems Manager (SSM) enables you to configure and manage your EC2 instances. You can create a configuration document and then associate it with one or more running instances.

You can use a configuration document to automate the following tasks for your Windows instances:

  • Join an AWS Directory

  • Install, repair, or uninstall software using an MSI package

  • Run PowerShell scripts

  • Configure CloudWatch Logs to monitor applications and systems

Note that configuration documents are not supported on Linux instances.

 
 public interface AWSSimpleSystemsManagementAsync extends AWSSimpleSystemsManagement {
    

Deletes the specified configuration document.

You must use DeleteAssociation to disassociate all instances that are associated with the configuration document before you can delete it.

Parameters:
deleteDocumentRequest Container for the necessary parameters to execute the DeleteDocument operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the DeleteDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeleteDocumentResultdeleteDocumentAsync(DeleteDocumentRequest deleteDocumentRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Deletes the specified configuration document.

You must use DeleteAssociation to disassociate all instances that are associated with the configuration document before you can delete it.

Parameters:
deleteDocumentRequest Container for the necessary parameters to execute the DeleteDocument operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<DeleteDocumentRequestDeleteDocumentResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes the associations for the specified configuration document or instance.

Parameters:
describeAssociationRequest Container for the necessary parameters to execute the DescribeAssociation operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the DescribeAssociation service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Describes the associations for the specified configuration document or instance.

Parameters:
describeAssociationRequest Container for the necessary parameters to execute the DescribeAssociation operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeAssociation service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<DescribeAssociationRequestDescribeAssociationResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Associates the specified configuration document with the specified instance.

When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.

If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.

Parameters:
createAssociationRequest Container for the necessary parameters to execute the CreateAssociation operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the CreateAssociation service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Associates the specified configuration document with the specified instance.

When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.

If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.

Parameters:
createAssociationRequest Container for the necessary parameters to execute the CreateAssociation operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateAssociation service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<CreateAssociationRequestCreateAssociationResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Associates the specified configuration documents with the specified instances.

When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.

If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.

Parameters:
createAssociationBatchRequest Container for the necessary parameters to execute the CreateAssociationBatch operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the CreateAssociationBatch service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Associates the specified configuration documents with the specified instances.

When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.

If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.

Parameters:
createAssociationBatchRequest Container for the necessary parameters to execute the CreateAssociationBatch operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateAssociationBatch service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes the specified configuration document.

Parameters:
describeDocumentRequest Container for the necessary parameters to execute the DescribeDocument operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the DescribeDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Describes the specified configuration document.

Parameters:
describeDocumentRequest Container for the necessary parameters to execute the DescribeDocument operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<DescribeDocumentRequestDescribeDocumentResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Updates the status of the configuration document associated with the specified instance.

Parameters:
updateAssociationStatusRequest Container for the necessary parameters to execute the UpdateAssociationStatus operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the UpdateAssociationStatus service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Updates the status of the configuration document associated with the specified instance.

Parameters:
updateAssociationStatusRequest Container for the necessary parameters to execute the UpdateAssociationStatus operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateAssociationStatus service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
                    throws AmazonServiceExceptionAmazonClientException;

    

Lists the associations for the specified configuration document or instance.

Parameters:
listAssociationsRequest Container for the necessary parameters to execute the ListAssociations operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the ListAssociations service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Lists the associations for the specified configuration document or instance.

Parameters:
listAssociationsRequest Container for the necessary parameters to execute the ListAssociations operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListAssociations service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<ListAssociationsRequestListAssociationsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes one or more of your configuration documents.

Parameters:
listDocumentsRequest Container for the necessary parameters to execute the ListDocuments operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the ListDocuments service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
    public Future<ListDocumentsResultlistDocumentsAsync(ListDocumentsRequest listDocumentsRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Describes one or more of your configuration documents.

Parameters:
listDocumentsRequest Container for the necessary parameters to execute the ListDocuments operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListDocuments service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
    public Future<ListDocumentsResultlistDocumentsAsync(ListDocumentsRequest listDocumentsRequest,
            AsyncHandler<ListDocumentsRequestListDocumentsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Disassociates the specified configuration document from the specified instance.

When you disassociate a configuration document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a configuration document, you must create a new configuration document with the desired configuration and associate it with the instance.

Parameters:
deleteAssociationRequest Container for the necessary parameters to execute the DeleteAssociation operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the DeleteAssociation service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Disassociates the specified configuration document from the specified instance.

When you disassociate a configuration document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a configuration document, you must create a new configuration document with the desired configuration and associate it with the instance.

Parameters:
deleteAssociationRequest Container for the necessary parameters to execute the DeleteAssociation operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteAssociation service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<DeleteAssociationRequestDeleteAssociationResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Creates a configuration document.

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

Parameters:
createDocumentRequest Container for the necessary parameters to execute the CreateDocument operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the CreateDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateDocumentResultcreateDocumentAsync(CreateDocumentRequest createDocumentRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Creates a configuration document.

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

Parameters:
createDocumentRequest Container for the necessary parameters to execute the CreateDocument operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<CreateDocumentRequestCreateDocumentResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Gets the contents of the specified configuration document.

Parameters:
getDocumentRequest Container for the necessary parameters to execute the GetDocument operation on AWSSimpleSystemsManagement.
Returns:
A Java Future object containing the response from the GetDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
    public Future<GetDocumentResultgetDocumentAsync(GetDocumentRequest getDocumentRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Gets the contents of the specified configuration document.

Parameters:
getDocumentRequest Container for the necessary parameters to execute the GetDocument operation on AWSSimpleSystemsManagement.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetDocument service method, as returned by AWSSimpleSystemsManagement.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSSimpleSystemsManagement indicating either a problem with the data in the request, or a server side issue.
    public Future<GetDocumentResultgetDocumentAsync(GetDocumentRequest getDocumentRequest,
            AsyncHandler<GetDocumentRequestGetDocumentResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;
}
        
New to GrepCode? Check out our FAQ X