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.config;
  
  
  
Asynchronous client for accessing AmazonConfig. 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 Config

AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Config to get the current and historical configurations of each AWS resource and also to get information about the relationship between the resources. An AWS resource can be an Amazon Compute Cloud (Amazon EC2) instance, an Elastic Block Store (EBS) volume, an Elastic network Interface (ENI), or a security group. For a complete list of resources currently supported by AWS Config, see Supported AWS Resources .

You can access and manage AWS Config through the AWS Management Console, the AWS Command Line Interface (AWS CLI), the AWS Config API, or the AWS SDKs for AWS Config

This reference guide contains documentation for the AWS Config API and the AWS CLI commands that you can use to manage AWS Config.

The AWS Config API uses the Signature Version 4 protocol for signing requests. For more information about how to sign a request with this protocol, see Signature Version 4 Signing Process .

For detailed information about AWS Config features and their associated actions or commands, as well as how to work with AWS Management Console, see What Is AWS Config? in the AWS Config Developer Guide .

  
  public class AmazonConfigAsyncClient extends AmazonConfigClient
          implements AmazonConfigAsync {

    
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 AmazonConfig. 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.

  
      public AmazonConfigAsyncClient() {
         this(new DefaultAWSCredentialsProviderChain());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig. 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 AmazonConfig (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonConfigAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonConfig 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 AmazonConfigAsyncClient(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();
     }
            
    

Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account.

NOTE:Currently, you can specify only one delivery channel per account.

Parameters:
describeDeliveryChannelStatusRequest Container for the necessary parameters to execute the DescribeDeliveryChannelStatus operation on AmazonConfig.
Returns:
A Java Future object containing the response from the DescribeDeliveryChannelStatus service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeDeliveryChannelStatusResult call() throws Exception {
                 return describeDeliveryChannelStatus(describeDeliveryChannelStatusRequest);
         }
     });
     }

    

Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account.

NOTE:Currently, you can specify only one delivery channel per account.

Parameters:
describeDeliveryChannelStatusRequest Container for the necessary parameters to execute the DescribeDeliveryChannelStatus operation on AmazonConfig.
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 DescribeDeliveryChannelStatus service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeDeliveryChannelStatusResult call() throws Exception {
               DescribeDeliveryChannelStatusResult result;
                 try {
                 result = describeDeliveryChannelStatus(describeDeliveryChannelStatusRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeDeliveryChannelStatusRequestresult);
                  return result;
         }
     });
     }
    
    

Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account.

NOTE: Currently, you can specify only one configuration recorder per account.

Parameters:
describeConfigurationRecordersRequest Container for the necessary parameters to execute the DescribeConfigurationRecorders operation on AmazonConfig.
Returns:
A Java Future object containing the response from the DescribeConfigurationRecorders service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeConfigurationRecordersResult call() throws Exception {
                 return describeConfigurationRecorders(describeConfigurationRecordersRequest);
         }
     });
     }

    

Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account.

NOTE: Currently, you can specify only one configuration recorder per account.

Parameters:
describeConfigurationRecordersRequest Container for the necessary parameters to execute the DescribeConfigurationRecorders operation on AmazonConfig.
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 DescribeConfigurationRecorders service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeConfigurationRecordersResult call() throws Exception {
               DescribeConfigurationRecordersResult result;
                 try {
                 result = describeConfigurationRecorders(describeConfigurationRecordersRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeConfigurationRecordersRequestresult);
                  return result;
         }
     });
     }
    
    

Starts recording configurations of the AWS resources you have selected to record in your AWS account.

You must have created at least one delivery channel to successfully start the configuration recorder.

Parameters:
startConfigurationRecorderRequest Container for the necessary parameters to execute the StartConfigurationRecorder operation on AmazonConfig.
Returns:
A Java Future object containing the response from the StartConfigurationRecorder service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidstartConfigurationRecorderAsync(final StartConfigurationRecorderRequest startConfigurationRecorderRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 startConfigurationRecorder(startConfigurationRecorderRequest);
                 return null;
         }
     });
     }

    

Starts recording configurations of the AWS resources you have selected to record in your AWS account.

You must have created at least one delivery channel to successfully start the configuration recorder.

Parameters:
startConfigurationRecorderRequest Container for the necessary parameters to execute the StartConfigurationRecorder operation on AmazonConfig.
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 StartConfigurationRecorder service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final StartConfigurationRecorderRequest startConfigurationRecorderRequest,
             final AsyncHandler<StartConfigurationRecorderRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 startConfigurationRecorder(startConfigurationRecorderRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(startConfigurationRecorderRequestnull);
                  return null;
         }
     });
     }
    
    

Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.

You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

NOTE: Currently, you can specify only one delivery channel per account.

Parameters:
putDeliveryChannelRequest Container for the necessary parameters to execute the PutDeliveryChannel operation on AmazonConfig.
Returns:
A Java Future object containing the response from the PutDeliveryChannel service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidputDeliveryChannelAsync(final PutDeliveryChannelRequest putDeliveryChannelRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 putDeliveryChannel(putDeliveryChannelRequest);
                 return null;
         }
     });
     }

    

Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.

You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

NOTE: Currently, you can specify only one delivery channel per account.

Parameters:
putDeliveryChannelRequest Container for the necessary parameters to execute the PutDeliveryChannel operation on AmazonConfig.
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 PutDeliveryChannel service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final PutDeliveryChannelRequest putDeliveryChannelRequest,
             final AsyncHandler<PutDeliveryChannelRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 putDeliveryChannel(putDeliveryChannelRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(putDeliveryChannelRequestnull);
                  return null;
         }
     });
     }
    
    

Deletes the specified delivery channel.

The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.

Parameters:
deleteDeliveryChannelRequest Container for the necessary parameters to execute the DeleteDeliveryChannel operation on AmazonConfig.
Returns:
A Java Future object containing the response from the DeleteDeliveryChannel service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteDeliveryChannelAsync(final DeleteDeliveryChannelRequest deleteDeliveryChannelRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteDeliveryChannel(deleteDeliveryChannelRequest);
                 return null;
         }
     });
     }

    

Deletes the specified delivery channel.

The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.

Parameters:
deleteDeliveryChannelRequest Container for the necessary parameters to execute the DeleteDeliveryChannel operation on AmazonConfig.
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 DeleteDeliveryChannel service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteDeliveryChannelRequest deleteDeliveryChannelRequest,
             final AsyncHandler<DeleteDeliveryChannelRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteDeliveryChannel(deleteDeliveryChannelRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteDeliveryChannelRequestnull);
                  return null;
         }
     });
     }
    
    

Stops recording configurations of the AWS resources you have selected to record in your AWS account.

Parameters:
stopConfigurationRecorderRequest Container for the necessary parameters to execute the StopConfigurationRecorder operation on AmazonConfig.
Returns:
A Java Future object containing the response from the StopConfigurationRecorder service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidstopConfigurationRecorderAsync(final StopConfigurationRecorderRequest stopConfigurationRecorderRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 stopConfigurationRecorder(stopConfigurationRecorderRequest);
                 return null;
         }
     });
     }

    

Stops recording configurations of the AWS resources you have selected to record in your AWS account.

Parameters:
stopConfigurationRecorderRequest Container for the necessary parameters to execute the StopConfigurationRecorder operation on AmazonConfig.
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 StopConfigurationRecorder service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final StopConfigurationRecorderRequest stopConfigurationRecorderRequest,
             final AsyncHandler<StopConfigurationRecorderRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 stopConfigurationRecorder(stopConfigurationRecorderRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(stopConfigurationRecorderRequestnull);
                  return null;
         }
     });
     }
    
    

Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified.

  • Notification of starting the delivery.
  • Notification of delivery completed, if the delivery was successfully completed.
  • Notification of delivery failure, if the delivery failed to complete.

Parameters:
deliverConfigSnapshotRequest Container for the necessary parameters to execute the DeliverConfigSnapshot operation on AmazonConfig.
Returns:
A Java Future object containing the response from the DeliverConfigSnapshot service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeliverConfigSnapshotResultdeliverConfigSnapshotAsync(final DeliverConfigSnapshotRequest deliverConfigSnapshotRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeliverConfigSnapshotResult>() {
             public DeliverConfigSnapshotResult call() throws Exception {
                 return deliverConfigSnapshot(deliverConfigSnapshotRequest);
         }
     });
     }

    

Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified.

  • Notification of starting the delivery.
  • Notification of delivery completed, if the delivery was successfully completed.
  • Notification of delivery failure, if the delivery failed to complete.

Parameters:
deliverConfigSnapshotRequest Container for the necessary parameters to execute the DeliverConfigSnapshot operation on AmazonConfig.
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 DeliverConfigSnapshot service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
             final DeliverConfigSnapshotRequest deliverConfigSnapshotRequest,
             final AsyncHandler<DeliverConfigSnapshotRequestDeliverConfigSnapshotResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeliverConfigSnapshotResult>() {
             public DeliverConfigSnapshotResult call() throws Exception {
               DeliverConfigSnapshotResult result;
                 try {
                 result = deliverConfigSnapshot(deliverConfigSnapshotRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deliverConfigSnapshotRequestresult);
                  return result;
         }
     });
     }
    
    

Creates a new configuration recorder to record the selected resource configurations.

You can use this action to change the role roleARN and/or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

NOTE: Currently, you can specify only one configuration recorder per account. If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

Parameters:
putConfigurationRecorderRequest Container for the necessary parameters to execute the PutConfigurationRecorder operation on AmazonConfig.
Returns:
A Java Future object containing the response from the PutConfigurationRecorder service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidputConfigurationRecorderAsync(final PutConfigurationRecorderRequest putConfigurationRecorderRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 putConfigurationRecorder(putConfigurationRecorderRequest);
                 return null;
         }
     });
     }

    

Creates a new configuration recorder to record the selected resource configurations.

You can use this action to change the role roleARN and/or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

NOTE: Currently, you can specify only one configuration recorder per account. If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

Parameters:
putConfigurationRecorderRequest Container for the necessary parameters to execute the PutConfigurationRecorder operation on AmazonConfig.
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 PutConfigurationRecorder service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            final PutConfigurationRecorderRequest putConfigurationRecorderRequest,
            final AsyncHandler<PutConfigurationRecorderRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                putConfigurationRecorder(putConfigurationRecorderRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(putConfigurationRecorderRequestnull);
                 return null;
        }
    });
    }
    
    

Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. You can specify a limit on the number of results returned on the page. If a limit is specified, a nextToken is returned as part of the result that you can use to continue this request.

NOTE: Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken .

Parameters:
getResourceConfigHistoryRequest Container for the necessary parameters to execute the GetResourceConfigHistory operation on AmazonConfig.
Returns:
A Java Future object containing the response from the GetResourceConfigHistory service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public GetResourceConfigHistoryResult call() throws Exception {
                return getResourceConfigHistory(getResourceConfigHistoryRequest);
        }
    });
    }

    

Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. You can specify a limit on the number of results returned on the page. If a limit is specified, a nextToken is returned as part of the result that you can use to continue this request.

NOTE: Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken .

Parameters:
getResourceConfigHistoryRequest Container for the necessary parameters to execute the GetResourceConfigHistory operation on AmazonConfig.
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 GetResourceConfigHistory service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            final GetResourceConfigHistoryRequest getResourceConfigHistoryRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public GetResourceConfigHistoryResult call() throws Exception {
              GetResourceConfigHistoryResult result;
                try {
                result = getResourceConfigHistory(getResourceConfigHistoryRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getResourceConfigHistoryRequestresult);
                 return result;
        }
    });
    }
    
    

Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.

NOTE: Currently, you can specify only one delivery channel per account.

Parameters:
describeDeliveryChannelsRequest Container for the necessary parameters to execute the DescribeDeliveryChannels operation on AmazonConfig.
Returns:
A Java Future object containing the response from the DescribeDeliveryChannels service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeDeliveryChannelsResult call() throws Exception {
                return describeDeliveryChannels(describeDeliveryChannelsRequest);
        }
    });
    }

    

Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.

NOTE: Currently, you can specify only one delivery channel per account.

Parameters:
describeDeliveryChannelsRequest Container for the necessary parameters to execute the DescribeDeliveryChannels operation on AmazonConfig.
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 DescribeDeliveryChannels service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            final DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeDeliveryChannelsResult call() throws Exception {
              DescribeDeliveryChannelsResult result;
                try {
                result = describeDeliveryChannels(describeDeliveryChannelsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeDeliveryChannelsRequestresult);
                 return result;
        }
    });
    }
    
    

Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account.

NOTE:Currently, you can specify only one configuration recorder per account.

Parameters:
describeConfigurationRecorderStatusRequest Container for the necessary parameters to execute the DescribeConfigurationRecorderStatus operation on AmazonConfig.
Returns:
A Java Future object containing the response from the DescribeConfigurationRecorderStatus service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeConfigurationRecorderStatusResult call() throws Exception {
                return describeConfigurationRecorderStatus(describeConfigurationRecorderStatusRequest);
        }
    });
    }

    

Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account.

NOTE:Currently, you can specify only one configuration recorder per account.

Parameters:
describeConfigurationRecorderStatusRequest Container for the necessary parameters to execute the DescribeConfigurationRecorderStatus operation on AmazonConfig.
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 DescribeConfigurationRecorderStatus service method, as returned by AmazonConfig.
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 AmazonConfig indicating either a problem with the data in the request, or a server side issue.
            final DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeConfigurationRecorderStatusResult call() throws Exception {
              DescribeConfigurationRecorderStatusResult result;
                try {
                result = describeConfigurationRecorderStatus(describeConfigurationRecorderStatusRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeConfigurationRecorderStatusRequestresult);
                 return result;
        }
    });
    }
    
}
        
New to GrepCode? Check out our FAQ X