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;
  
  import java.net.*;
  import java.util.*;
  
  
  import com.amazonaws.*;
  
Client for accessing AmazonConfig. All service calls made using this client are blocking, and will not return until the service call completes.

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 AmazonConfigClient extends AmazonWebServiceClient implements AmazonConfig {

    
Provider for AWS credentials.
  
  
      private static final Log log = LogFactory.getLog(AmazonConfig.class);

    
List of exception unmarshallers for all AmazonConfig exceptions.
  
      protected List<JsonErrorUnmarshallerjsonErrorUnmarshallers;

    
Constructs a new 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 AmazonConfigClient() {
         this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
     }

    
Constructs a new 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 AmazonConfigClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
     }

    
Constructs a new client to invoke service methods on AmazonConfig using the specified AWS account credentials.

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

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonConfigClient(AWSCredentials awsCredentials) {
         this(awsCredentialsnew ClientConfiguration());
     }

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

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

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonConfig (ex: proxy settings, retry counts, etc.).
 
     public AmazonConfigClient(AWSCredentials awsCredentialsClientConfiguration clientConfiguration) {
         super(adjustClientConfiguration(clientConfiguration));
         
         this. = new StaticCredentialsProvider(awsCredentials);
         
         init();
     }

    
Constructs a new client to invoke service methods on AmazonConfig using the specified AWS account credentials provider.

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonConfigClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvidernew ClientConfiguration());
     }

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

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonConfig (ex: proxy settings, retry counts, etc.).
 
     public AmazonConfigClient(AWSCredentialsProvider awsCredentialsProviderClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfigurationnull);
     }

    
Constructs a new client to invoke service methods on AmazonConfig using the specified AWS account credentials provider, client configuration options and request metric collector.

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonConfig (ex: proxy settings, retry counts, etc.).
requestMetricCollector optional request metric collector
 
     public AmazonConfigClient(AWSCredentialsProvider awsCredentialsProvider,
             ClientConfiguration clientConfiguration,
             RequestMetricCollector requestMetricCollector) {
         super(adjustClientConfiguration(clientConfiguration), requestMetricCollector);
         
         this. = awsCredentialsProvider;
         
         init();
     }
 
     private void init() {
         
         
         // calling this.setEndPoint(...) will also modify the signer accordingly
         this.setEndpoint("config.us-east-1.amazonaws.com/");
         
         HandlerChainFactory chainFactory = new HandlerChainFactory();
         .addAll(chainFactory.newRequestHandlerChain(
                 "/com/amazonaws/services/config/request.handlers"));
         .addAll(chainFactory.newRequestHandler2Chain(
                 "/com/amazonaws/services/config/request.handler2s"));
     }
 
         ClientConfiguration config = orig;
         
         return config;
     }

    

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 service method on AmazonConfig.
Returns:
The response from the DescribeDeliveryChannelStatus service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchDeliveryChannelException
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.
 
         ExecutionContext executionContext = createExecutionContext(describeDeliveryChannelStatusRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeDeliveryChannelStatusRequestrequest = null;
         Response<DescribeDeliveryChannelStatusResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeDeliveryChannelStatusRequestMarshaller().marshall(super.beforeMarshalling(describeDeliveryChannelStatusRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
                 new DescribeDeliveryChannelStatusResultJsonUnmarshaller();
             JsonResponseHandler<DescribeDeliveryChannelStatusResultresponseHandler =
                 new JsonResponseHandler<DescribeDeliveryChannelStatusResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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 service method on AmazonConfig.
Returns:
The response from the DescribeConfigurationRecorders service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchConfigurationRecorderException
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.
 
         ExecutionContext executionContext = createExecutionContext(describeConfigurationRecordersRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeConfigurationRecordersRequestrequest = null;
         Response<DescribeConfigurationRecordersResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeConfigurationRecordersRequestMarshaller().marshall(super.beforeMarshalling(describeConfigurationRecordersRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
                 new DescribeConfigurationRecordersResultJsonUnmarshaller();
             JsonResponseHandler<DescribeConfigurationRecordersResultresponseHandler =
                 new JsonResponseHandler<DescribeConfigurationRecordersResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Starts recording configurations of all the resources associated with the 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 service method on AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchConfigurationRecorderException
com.amazonaws.services.config.model.NoAvailableDeliveryChannelException
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 void startConfigurationRecorder(StartConfigurationRecorderRequest startConfigurationRecorderRequest) {
         ExecutionContext executionContext = createExecutionContext(startConfigurationRecorderRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<StartConfigurationRecorderRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new StartConfigurationRecorderRequestMarshaller().marshall(super.beforeMarshalling(startConfigurationRecorderRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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 service method on AmazonConfig.
Throws:
com.amazonaws.services.config.model.InvalidDeliveryChannelNameException
com.amazonaws.services.config.model.InvalidS3KeyPrefixException
com.amazonaws.services.config.model.NoAvailableConfigurationRecorderException
com.amazonaws.services.config.model.NoSuchBucketException
com.amazonaws.services.config.model.InvalidSNSTopicARNException
com.amazonaws.services.config.model.InsufficientDeliveryPolicyException
com.amazonaws.services.config.model.MaxNumberOfDeliveryChannelsExceededException
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 void putDeliveryChannel(PutDeliveryChannelRequest putDeliveryChannelRequest) {
         ExecutionContext executionContext = createExecutionContext(putDeliveryChannelRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<PutDeliveryChannelRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new PutDeliveryChannelRequestMarshaller().marshall(super.beforeMarshalling(putDeliveryChannelRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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 service method on AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchDeliveryChannelException
com.amazonaws.services.config.model.LastDeliveryChannelDeleteFailedException
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 void deleteDeliveryChannel(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteDeliveryChannelRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeleteDeliveryChannelRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteDeliveryChannelRequestMarshaller().marshall(super.beforeMarshalling(deleteDeliveryChannelRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

Stops recording configurations of all the resources associated with the account.

Parameters:
stopConfigurationRecorderRequest Container for the necessary parameters to execute the StopConfigurationRecorder service method on AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchConfigurationRecorderException
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 void stopConfigurationRecorder(StopConfigurationRecorderRequest stopConfigurationRecorderRequest) {
         ExecutionContext executionContext = createExecutionContext(stopConfigurationRecorderRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<StopConfigurationRecorderRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new StopConfigurationRecorderRequestMarshaller().marshall(super.beforeMarshalling(stopConfigurationRecorderRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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 service method on AmazonConfig.
Returns:
The response from the DeliverConfigSnapshot service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchDeliveryChannelException
com.amazonaws.services.config.model.NoAvailableConfigurationRecorderException
com.amazonaws.services.config.model.NoRunningConfigurationRecorderException
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 DeliverConfigSnapshotResult deliverConfigSnapshot(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest) {
         ExecutionContext executionContext = createExecutionContext(deliverConfigSnapshotRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeliverConfigSnapshotRequestrequest = null;
         Response<DeliverConfigSnapshotResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeliverConfigSnapshotRequestMarshaller().marshall(super.beforeMarshalling(deliverConfigSnapshotRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DeliverConfigSnapshotResultJsonUnmarshallerContextunmarshaller =
                 new DeliverConfigSnapshotResultJsonUnmarshaller();
             JsonResponseHandler<DeliverConfigSnapshotResultresponseHandler =
                 new JsonResponseHandler<DeliverConfigSnapshotResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Creates a new configuration recorder to record the resource configurations.

You can use this action to change the role ( roleARN ) 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.

Parameters:
putConfigurationRecorderRequest Container for the necessary parameters to execute the PutConfigurationRecorder service method on AmazonConfig.
Throws:
com.amazonaws.services.config.model.InvalidRoleException
com.amazonaws.services.config.model.InvalidConfigurationRecorderNameException
com.amazonaws.services.config.model.MaxNumberOfConfigurationRecordersExceededException
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 void putConfigurationRecorder(PutConfigurationRecorderRequest putConfigurationRecorderRequest) {
         ExecutionContext executionContext = createExecutionContext(putConfigurationRecorderRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<PutConfigurationRecorderRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new PutConfigurationRecorderRequestMarshaller().marshall(super.beforeMarshalling(putConfigurationRecorderRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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 service method on AmazonConfig.
Returns:
The response from the GetResourceConfigHistory service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.InvalidNextTokenException
com.amazonaws.services.config.model.NoAvailableConfigurationRecorderException
com.amazonaws.services.config.model.ValidationException
com.amazonaws.services.config.model.ResourceNotDiscoveredException
com.amazonaws.services.config.model.InvalidTimeRangeException
com.amazonaws.services.config.model.InvalidLimitException
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.
 
         ExecutionContext executionContext = createExecutionContext(getResourceConfigHistoryRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetResourceConfigHistoryRequestrequest = null;
         Response<GetResourceConfigHistoryResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetResourceConfigHistoryRequestMarshaller().marshall(super.beforeMarshalling(getResourceConfigHistoryRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<GetResourceConfigHistoryResultJsonUnmarshallerContextunmarshaller =
                 new GetResourceConfigHistoryResultJsonUnmarshaller();
             JsonResponseHandler<GetResourceConfigHistoryResultresponseHandler =
                 new JsonResponseHandler<GetResourceConfigHistoryResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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 service method on AmazonConfig.
Returns:
The response from the DescribeDeliveryChannels service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchDeliveryChannelException
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.
 
         ExecutionContext executionContext = createExecutionContext(describeDeliveryChannelsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeDeliveryChannelsRequestrequest = null;
         Response<DescribeDeliveryChannelsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeDeliveryChannelsRequestMarshaller().marshall(super.beforeMarshalling(describeDeliveryChannelsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DescribeDeliveryChannelsResultJsonUnmarshallerContextunmarshaller =
                 new DescribeDeliveryChannelsResultJsonUnmarshaller();
             JsonResponseHandler<DescribeDeliveryChannelsResultresponseHandler =
                 new JsonResponseHandler<DescribeDeliveryChannelsResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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 service method on AmazonConfig.
Returns:
The response from the DescribeConfigurationRecorderStatus service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchConfigurationRecorderException
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.
 
         ExecutionContext executionContext = createExecutionContext(describeConfigurationRecorderStatusRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeConfigurationRecorderStatusRequestrequest = null;
         Response<DescribeConfigurationRecorderStatusResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeConfigurationRecorderStatusRequestMarshaller().marshall(super.beforeMarshalling(describeConfigurationRecorderStatusRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
                 new DescribeConfigurationRecorderStatusResultJsonUnmarshaller();
             JsonResponseHandler<DescribeConfigurationRecorderStatusResultresponseHandler =
                 new JsonResponseHandler<DescribeConfigurationRecorderStatusResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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.

Returns:
The response from the DescribeDeliveryChannelStatus service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchDeliveryChannelException
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.
 
     }
    
    

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.

Returns:
The response from the DescribeConfigurationRecorders service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchConfigurationRecorderException
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.
 
     }
    
    

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.

Returns:
The response from the DescribeDeliveryChannels service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchDeliveryChannelException
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.
 
    }
    
    

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.

Returns:
The response from the DescribeConfigurationRecorderStatus service method, as returned by AmazonConfig.
Throws:
com.amazonaws.services.config.model.NoSuchConfigurationRecorderException
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.
    }
    @Override
    public void setEndpoint(String endpoint) {
        super.setEndpoint(endpoint);
    }
    @Override
    public void setEndpoint(String endpointString serviceNameString regionIdthrows IllegalArgumentException {
        super.setEndpoint(endpointserviceNameregionId);
    }

    
Returns additional metadata for a previously executed successful, request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.

Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.

Parameters:
request The originally executed request
Returns:
The response metadata for the specified request, or null if none is available.
        return .getResponseMetadataForRequest(request);
    }
    private <X, Y extends AmazonWebServiceRequestResponse<X> invoke(Request<Y> request,
            HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,
            ExecutionContext executionContext) {
        request.setEndpoint();
        request.setTimeOffset();
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        AWSCredentials credentials;
        awsRequestMetrics.startEvent(.);
        try {
            credentials = .getCredentials();
        } finally {
            awsRequestMetrics.endEvent(.);
        }
        AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
        if (originalRequest != null && originalRequest.getRequestCredentials() != null) {
            credentials = originalRequest.getRequestCredentials();
        }
        executionContext.setCredentials(credentials);
        JsonErrorResponseHandler errorResponseHandler = new JsonErrorResponseHandler();
        Response<X> result = .execute(requestresponseHandler,
                errorResponseHandlerexecutionContext);
        return result;
    }
}
        
New to GrepCode? Check out our FAQ X