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;
  
  
  
Asynchronous client for accessing AWSSimpleSystemsManagement. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread.

AWS Simple Systems Management 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:

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

  • Run PowerShell scripts

  • Join an AWS Directory

  • Configure CloudWatch Logs to monitor applications and systems

Note that configuration documents are not supported on Linux instances.

  
          implements AWSSimpleSystemsManagementAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AWSSimpleSystemsManagement (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AWSSimpleSystemsManagementAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AWSSimpleSystemsManagement using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSSimpleSystemsManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

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(final DeleteDocumentRequest deleteDocumentRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteDocumentResult>() {
             public DeleteDocumentResult call() throws Exception {
                 return deleteDocument(deleteDocumentRequest);
         }
     });
     }

    

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.
 
             final DeleteDocumentRequest deleteDocumentRequest,
             final AsyncHandler<DeleteDocumentRequestDeleteDocumentResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteDocumentResult>() {
             public DeleteDocumentResult call() throws Exception {
               DeleteDocumentResult result;
                 try {
                 result = deleteDocument(deleteDocumentRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteDocumentRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<DescribeAssociationResultdescribeAssociationAsync(final DescribeAssociationRequest describeAssociationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeAssociationResult>() {
             public DescribeAssociationResult call() throws Exception {
                 return describeAssociation(describeAssociationRequest);
         }
     });
     }

    

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.
 
             final DescribeAssociationRequest describeAssociationRequest,
             final AsyncHandler<DescribeAssociationRequestDescribeAssociationResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeAssociationResult>() {
             public DescribeAssociationResult call() throws Exception {
               DescribeAssociationResult result;
                 try {
                 result = describeAssociation(describeAssociationRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeAssociationRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<CreateAssociationResultcreateAssociationAsync(final CreateAssociationRequest createAssociationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateAssociationResult>() {
             public CreateAssociationResult call() throws Exception {
                 return createAssociation(createAssociationRequest);
         }
     });
     }

    

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.
 
             final CreateAssociationRequest createAssociationRequest,
             final AsyncHandler<CreateAssociationRequestCreateAssociationResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateAssociationResult>() {
             public CreateAssociationResult call() throws Exception {
               CreateAssociationResult result;
                 try {
                 result = createAssociation(createAssociationRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createAssociationRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<CreateAssociationBatchResultcreateAssociationBatchAsync(final CreateAssociationBatchRequest createAssociationBatchRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateAssociationBatchResult>() {
             public CreateAssociationBatchResult call() throws Exception {
                 return createAssociationBatch(createAssociationBatchRequest);
         }
     });
     }

    

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.
 
             final CreateAssociationBatchRequest createAssociationBatchRequest,
             final AsyncHandler<CreateAssociationBatchRequestCreateAssociationBatchResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateAssociationBatchResult>() {
             public CreateAssociationBatchResult call() throws Exception {
               CreateAssociationBatchResult result;
                 try {
                 result = createAssociationBatch(createAssociationBatchRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createAssociationBatchRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<DescribeDocumentResultdescribeDocumentAsync(final DescribeDocumentRequest describeDocumentRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeDocumentResult>() {
             public DescribeDocumentResult call() throws Exception {
                 return describeDocument(describeDocumentRequest);
         }
     });
     }

    

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.
 
             final DescribeDocumentRequest describeDocumentRequest,
             final AsyncHandler<DescribeDocumentRequestDescribeDocumentResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeDocumentResult>() {
             public DescribeDocumentResult call() throws Exception {
               DescribeDocumentResult result;
                 try {
                 result = describeDocument(describeDocumentRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeDocumentRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<UpdateAssociationStatusResultupdateAssociationStatusAsync(final UpdateAssociationStatusRequest updateAssociationStatusRequest
             throws AmazonServiceExceptionAmazonClientException {
             public UpdateAssociationStatusResult call() throws Exception {
                 return updateAssociationStatus(updateAssociationStatusRequest);
         }
     });
     }

    

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.
 
             final UpdateAssociationStatusRequest updateAssociationStatusRequest,
             final AsyncHandler<UpdateAssociationStatusRequestUpdateAssociationStatusResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public UpdateAssociationStatusResult call() throws Exception {
               UpdateAssociationStatusResult result;
                 try {
                 result = updateAssociationStatus(updateAssociationStatusRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateAssociationStatusRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<ListAssociationsResultlistAssociationsAsync(final ListAssociationsRequest listAssociationsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListAssociationsResult>() {
             public ListAssociationsResult call() throws Exception {
                 return listAssociations(listAssociationsRequest);
         }
     });
     }

    

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.
 
             final ListAssociationsRequest listAssociationsRequest,
             final AsyncHandler<ListAssociationsRequestListAssociationsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListAssociationsResult>() {
             public ListAssociationsResult call() throws Exception {
               ListAssociationsResult result;
                 try {
                 result = listAssociations(listAssociationsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listAssociationsRequestresult);
                  return result;
         }
     });
     }
    
    

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(final ListDocumentsRequest listDocumentsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListDocumentsResult>() {
             public ListDocumentsResult call() throws Exception {
                 return listDocuments(listDocumentsRequest);
         }
     });
     }

    

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.
 
             final ListDocumentsRequest listDocumentsRequest,
             final AsyncHandler<ListDocumentsRequestListDocumentsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListDocumentsResult>() {
             public ListDocumentsResult call() throws Exception {
               ListDocumentsResult result;
                 try {
                 result = listDocuments(listDocumentsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listDocumentsRequestresult);
                  return result;
         }
     });
     }
    
    

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.
 
     public Future<DeleteAssociationResultdeleteAssociationAsync(final DeleteAssociationRequest deleteAssociationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteAssociationResult>() {
             public DeleteAssociationResult call() throws Exception {
                 return deleteAssociation(deleteAssociationRequest);
        }
    });
    }

    

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.
            final DeleteAssociationRequest deleteAssociationRequest,
            final AsyncHandler<DeleteAssociationRequestDeleteAssociationResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteAssociationResult>() {
            public DeleteAssociationResult call() throws Exception {
              DeleteAssociationResult result;
                try {
                result = deleteAssociation(deleteAssociationRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteAssociationRequestresult);
                 return result;
        }
    });
    }
    
    

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(final CreateDocumentRequest createDocumentRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateDocumentResult>() {
            public CreateDocumentResult call() throws Exception {
                return createDocument(createDocumentRequest);
        }
    });
    }

    

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.
            final CreateDocumentRequest createDocumentRequest,
            final AsyncHandler<CreateDocumentRequestCreateDocumentResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateDocumentResult>() {
            public CreateDocumentResult call() throws Exception {
              CreateDocumentResult result;
                try {
                result = createDocument(createDocumentRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createDocumentRequestresult);
                 return result;
        }
    });
    }
    
    

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(final GetDocumentRequest getDocumentRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetDocumentResult>() {
            public GetDocumentResult call() throws Exception {
                return getDocument(getDocumentRequest);
        }
    });
    }

    

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.
            final GetDocumentRequest getDocumentRequest,
            final AsyncHandler<GetDocumentRequestGetDocumentResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetDocumentResult>() {
            public GetDocumentResult call() throws Exception {
              GetDocumentResult result;
                try {
                result = getDocument(getDocumentRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getDocumentRequestresult);
                 return result;
        }
    });
    }
    
}
        
New to GrepCode? Check out our FAQ X