public class AmazonConfigAsyncClient extends AmazonConfigClient implements AmazonConfigAsync
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 .
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonConfigAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AmazonConfig.
|
AmazonConfigAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials.
|
AmazonConfigAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials,
executor service, and client configuration options.
|
AmazonConfigAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials
and executor service.
|
AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials provider.
|
AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials
provider and client configuration options.
|
AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig using the specified AWS account credentials provider
and executor service.
|
AmazonConfigAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonConfig.
|
Modifier and Type | Method and Description |
---|---|
Future<Void> |
deleteConfigRuleAsync(DeleteConfigRuleRequest deleteConfigRuleRequest)
Deletes the specified AWS Config rule and all of its evaluation
results.
|
Future<Void> |
deleteConfigRuleAsync(DeleteConfigRuleRequest deleteConfigRuleRequest,
AsyncHandler<DeleteConfigRuleRequest,Void> asyncHandler)
Deletes the specified AWS Config rule and all of its evaluation
results.
|
Future<Void> |
deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest)
Deletes the specified delivery channel.
|
Future<Void> |
deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest,
AsyncHandler<DeleteDeliveryChannelRequest,Void> asyncHandler)
Deletes the specified delivery channel.
|
Future<DeliverConfigSnapshotResult> |
deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest)
Schedules delivery of a configuration snapshot to the Amazon S3
bucket in the specified delivery channel.
|
Future<DeliverConfigSnapshotResult> |
deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest,
AsyncHandler<DeliverConfigSnapshotRequest,DeliverConfigSnapshotResult> asyncHandler)
Schedules delivery of a configuration snapshot to the Amazon S3
bucket in the specified delivery channel.
|
Future<DescribeComplianceByConfigRuleResult> |
describeComplianceByConfigRuleAsync(DescribeComplianceByConfigRuleRequest describeComplianceByConfigRuleRequest)
Indicates whether the specified AWS Config rules are compliant.
|
Future<DescribeComplianceByConfigRuleResult> |
describeComplianceByConfigRuleAsync(DescribeComplianceByConfigRuleRequest describeComplianceByConfigRuleRequest,
AsyncHandler<DescribeComplianceByConfigRuleRequest,DescribeComplianceByConfigRuleResult> asyncHandler)
Indicates whether the specified AWS Config rules are compliant.
|
Future<DescribeComplianceByResourceResult> |
describeComplianceByResourceAsync(DescribeComplianceByResourceRequest describeComplianceByResourceRequest)
Indicates whether the specified AWS resources are compliant.
|
Future<DescribeComplianceByResourceResult> |
describeComplianceByResourceAsync(DescribeComplianceByResourceRequest describeComplianceByResourceRequest,
AsyncHandler<DescribeComplianceByResourceRequest,DescribeComplianceByResourceResult> asyncHandler)
Indicates whether the specified AWS resources are compliant.
|
Future<DescribeConfigRuleEvaluationStatusResult> |
describeConfigRuleEvaluationStatusAsync(DescribeConfigRuleEvaluationStatusRequest describeConfigRuleEvaluationStatusRequest)
Returns status information for each of your AWS managed Config rules.
|
Future<DescribeConfigRuleEvaluationStatusResult> |
describeConfigRuleEvaluationStatusAsync(DescribeConfigRuleEvaluationStatusRequest describeConfigRuleEvaluationStatusRequest,
AsyncHandler<DescribeConfigRuleEvaluationStatusRequest,DescribeConfigRuleEvaluationStatusResult> asyncHandler)
Returns status information for each of your AWS managed Config rules.
|
Future<DescribeConfigRulesResult> |
describeConfigRulesAsync(DescribeConfigRulesRequest describeConfigRulesRequest)
Returns details about your AWS Config rules.
|
Future<DescribeConfigRulesResult> |
describeConfigRulesAsync(DescribeConfigRulesRequest describeConfigRulesRequest,
AsyncHandler<DescribeConfigRulesRequest,DescribeConfigRulesResult> asyncHandler)
Returns details about your AWS Config rules.
|
Future<DescribeConfigurationRecordersResult> |
describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest)
Returns the name of one or more specified configuration recorders.
|
Future<DescribeConfigurationRecordersResult> |
describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest,
AsyncHandler<DescribeConfigurationRecordersRequest,DescribeConfigurationRecordersResult> asyncHandler)
Returns the name of one or more specified configuration recorders.
|
Future<DescribeConfigurationRecorderStatusResult> |
describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest)
Returns the current status of the specified configuration recorder.
|
Future<DescribeConfigurationRecorderStatusResult> |
describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest,
AsyncHandler<DescribeConfigurationRecorderStatusRequest,DescribeConfigurationRecorderStatusResult> asyncHandler)
Returns the current status of the specified configuration recorder.
|
Future<DescribeDeliveryChannelsResult> |
describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest)
Returns details about the specified delivery channel.
|
Future<DescribeDeliveryChannelsResult> |
describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest,
AsyncHandler<DescribeDeliveryChannelsRequest,DescribeDeliveryChannelsResult> asyncHandler)
Returns details about the specified delivery channel.
|
Future<DescribeDeliveryChannelStatusResult> |
describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest)
Returns the current status of the specified delivery channel.
|
Future<DescribeDeliveryChannelStatusResult> |
describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest,
AsyncHandler<DescribeDeliveryChannelStatusRequest,DescribeDeliveryChannelStatusResult> asyncHandler)
Returns the current status of the specified delivery channel.
|
Future<GetComplianceDetailsByConfigRuleResult> |
getComplianceDetailsByConfigRuleAsync(GetComplianceDetailsByConfigRuleRequest getComplianceDetailsByConfigRuleRequest)
Returns the evaluation results for the specified AWS Config rule.
|
Future<GetComplianceDetailsByConfigRuleResult> |
getComplianceDetailsByConfigRuleAsync(GetComplianceDetailsByConfigRuleRequest getComplianceDetailsByConfigRuleRequest,
AsyncHandler<GetComplianceDetailsByConfigRuleRequest,GetComplianceDetailsByConfigRuleResult> asyncHandler)
Returns the evaluation results for the specified AWS Config rule.
|
Future<GetComplianceDetailsByResourceResult> |
getComplianceDetailsByResourceAsync(GetComplianceDetailsByResourceRequest getComplianceDetailsByResourceRequest)
Returns the evaluation results for the specified AWS resource.
|
Future<GetComplianceDetailsByResourceResult> |
getComplianceDetailsByResourceAsync(GetComplianceDetailsByResourceRequest getComplianceDetailsByResourceRequest,
AsyncHandler<GetComplianceDetailsByResourceRequest,GetComplianceDetailsByResourceResult> asyncHandler)
Returns the evaluation results for the specified AWS resource.
|
Future<GetComplianceSummaryByConfigRuleResult> |
getComplianceSummaryByConfigRuleAsync(GetComplianceSummaryByConfigRuleRequest getComplianceSummaryByConfigRuleRequest)
Returns the number of AWS Config rules that are compliant and
noncompliant, up to a maximum of 25 for each.
|
Future<GetComplianceSummaryByConfigRuleResult> |
getComplianceSummaryByConfigRuleAsync(GetComplianceSummaryByConfigRuleRequest getComplianceSummaryByConfigRuleRequest,
AsyncHandler<GetComplianceSummaryByConfigRuleRequest,GetComplianceSummaryByConfigRuleResult> asyncHandler)
Returns the number of AWS Config rules that are compliant and
noncompliant, up to a maximum of 25 for each.
|
Future<GetComplianceSummaryByResourceTypeResult> |
getComplianceSummaryByResourceTypeAsync(GetComplianceSummaryByResourceTypeRequest getComplianceSummaryByResourceTypeRequest)
Returns the number of resources that are compliant and the number
that are noncompliant.
|
Future<GetComplianceSummaryByResourceTypeResult> |
getComplianceSummaryByResourceTypeAsync(GetComplianceSummaryByResourceTypeRequest getComplianceSummaryByResourceTypeRequest,
AsyncHandler<GetComplianceSummaryByResourceTypeRequest,GetComplianceSummaryByResourceTypeResult> asyncHandler)
Returns the number of resources that are compliant and the number
that are noncompliant.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
Future<GetResourceConfigHistoryResult> |
getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest)
Returns a list of configuration items for the specified resource.
|
Future<GetResourceConfigHistoryResult> |
getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest,
AsyncHandler<GetResourceConfigHistoryRequest,GetResourceConfigHistoryResult> asyncHandler)
Returns a list of configuration items for the specified resource.
|
Future<ListDiscoveredResourcesResult> |
listDiscoveredResourcesAsync(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest)
Accepts a resource type and returns a list of resource identifiers
for the resources of that type.
|
Future<ListDiscoveredResourcesResult> |
listDiscoveredResourcesAsync(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest,
AsyncHandler<ListDiscoveredResourcesRequest,ListDiscoveredResourcesResult> asyncHandler)
Accepts a resource type and returns a list of resource identifiers
for the resources of that type.
|
Future<Void> |
putConfigRuleAsync(PutConfigRuleRequest putConfigRuleRequest)
Adds or updates an AWS Config rule for evaluating whether your AWS
resources comply with your desired configurations.
|
Future<Void> |
putConfigRuleAsync(PutConfigRuleRequest putConfigRuleRequest,
AsyncHandler<PutConfigRuleRequest,Void> asyncHandler)
Adds or updates an AWS Config rule for evaluating whether your AWS
resources comply with your desired configurations.
|
Future<Void> |
putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest)
Creates a new configuration recorder to record the selected resource
configurations.
|
Future<Void> |
putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest,
AsyncHandler<PutConfigurationRecorderRequest,Void> asyncHandler)
Creates a new configuration recorder to record the selected resource
configurations.
|
Future<Void> |
putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest)
Creates a new delivery channel object to deliver the configuration
information to an Amazon S3 bucket, and to an Amazon SNS topic.
|
Future<Void> |
putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest,
AsyncHandler<PutDeliveryChannelRequest,Void> asyncHandler)
Creates a new delivery channel object to deliver the configuration
information to an Amazon S3 bucket, and to an Amazon SNS topic.
|
Future<PutEvaluationsResult> |
putEvaluationsAsync(PutEvaluationsRequest putEvaluationsRequest)
Used by an AWS Lambda function to deliver evaluation results to AWS
Config.
|
Future<PutEvaluationsResult> |
putEvaluationsAsync(PutEvaluationsRequest putEvaluationsRequest,
AsyncHandler<PutEvaluationsRequest,PutEvaluationsResult> asyncHandler)
Used by an AWS Lambda function to deliver evaluation results to AWS
Config.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<Void> |
startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest)
Starts recording configurations of the AWS resources you have
selected to record in your AWS account.
|
Future<Void> |
startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest,
AsyncHandler<StartConfigurationRecorderRequest,Void> asyncHandler)
Starts recording configurations of the AWS resources you have
selected to record in your AWS account.
|
Future<Void> |
stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest)
Stops recording configurations of the AWS resources you have selected
to record in your AWS account.
|
Future<Void> |
stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest,
AsyncHandler<StopConfigurationRecorderRequest,Void> asyncHandler)
Stops recording configurations of the AWS resources you have selected
to record in your AWS account.
|
deleteConfigRule, deleteDeliveryChannel, deliverConfigSnapshot, describeComplianceByConfigRule, describeComplianceByConfigRule, describeComplianceByResource, describeComplianceByResource, describeConfigRuleEvaluationStatus, describeConfigRuleEvaluationStatus, describeConfigRules, describeConfigRules, describeConfigurationRecorders, describeConfigurationRecorders, describeConfigurationRecorderStatus, describeConfigurationRecorderStatus, describeDeliveryChannels, describeDeliveryChannels, describeDeliveryChannelStatus, describeDeliveryChannelStatus, getCachedResponseMetadata, getComplianceDetailsByConfigRule, getComplianceDetailsByResource, getComplianceSummaryByConfigRule, getComplianceSummaryByConfigRule, getComplianceSummaryByResourceType, getComplianceSummaryByResourceType, getResourceConfigHistory, listDiscoveredResources, putConfigRule, putConfigurationRecorder, putDeliveryChannel, putEvaluations, setEndpoint, setEndpoint, startConfigurationRecorder, stopConfigurationRecorder
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteConfigRule, deleteDeliveryChannel, deliverConfigSnapshot, describeComplianceByConfigRule, describeComplianceByConfigRule, describeComplianceByResource, describeComplianceByResource, describeConfigRuleEvaluationStatus, describeConfigRuleEvaluationStatus, describeConfigRules, describeConfigRules, describeConfigurationRecorders, describeConfigurationRecorders, describeConfigurationRecorderStatus, describeConfigurationRecorderStatus, describeDeliveryChannels, describeDeliveryChannels, describeDeliveryChannelStatus, describeDeliveryChannelStatus, getCachedResponseMetadata, getComplianceDetailsByConfigRule, getComplianceDetailsByResource, getComplianceSummaryByConfigRule, getComplianceSummaryByConfigRule, getComplianceSummaryByResourceType, getComplianceSummaryByResourceType, getResourceConfigHistory, listDiscoveredResources, putConfigRule, putConfigurationRecorder, putDeliveryChannel, putEvaluations, setEndpoint, setRegion, startConfigurationRecorder, stopConfigurationRecorder
public AmazonConfigAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AmazonConfigAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AmazonConfig
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonConfigAsyncClient(AWSCredentials awsCredentials)
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.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonConfigAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
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.
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 awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
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.
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(AWSCredentialsProvider awsCredentialsProvider)
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.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonConfigAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
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.
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 awsCredentialsProvider, ClientConfiguration clientConfiguration)
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.
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, ExecutorService executorService)
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.
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 ExecutorService getExecutorService()
public void shutdown()
shutdown
in interface AmazonConfig
shutdown
in class AmazonWebServiceClient
public Future<GetComplianceDetailsByResourceResult> getComplianceDetailsByResourceAsync(GetComplianceDetailsByResourceRequest getComplianceDetailsByResourceRequest) throws AmazonServiceException, AmazonClientException
Returns the evaluation results for the specified AWS resource. The results indicate which AWS Config rules were used to evaluate the resource, when each rule was last used, and whether the resource complies with each rule.
getComplianceDetailsByResourceAsync
in interface AmazonConfigAsync
getComplianceDetailsByResourceRequest
- Container for the
necessary parameters to execute the GetComplianceDetailsByResource
operation on AmazonConfig.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.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<GetComplianceDetailsByResourceResult> getComplianceDetailsByResourceAsync(GetComplianceDetailsByResourceRequest getComplianceDetailsByResourceRequest, AsyncHandler<GetComplianceDetailsByResourceRequest,GetComplianceDetailsByResourceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the evaluation results for the specified AWS resource. The results indicate which AWS Config rules were used to evaluate the resource, when each rule was last used, and whether the resource complies with each rule.
getComplianceDetailsByResourceAsync
in interface AmazonConfigAsync
getComplianceDetailsByResourceRequest
- Container for the
necessary parameters to execute the GetComplianceDetailsByResource
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.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.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<PutEvaluationsResult> putEvaluationsAsync(PutEvaluationsRequest putEvaluationsRequest) throws AmazonServiceException, AmazonClientException
Used by an AWS Lambda function to deliver evaluation results to AWS Config. This action is required in every AWS Lambda function that is invoked by an AWS Config rule.
putEvaluationsAsync
in interface AmazonConfigAsync
putEvaluationsRequest
- Container for the necessary parameters to
execute the PutEvaluations operation on AmazonConfig.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.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<PutEvaluationsResult> putEvaluationsAsync(PutEvaluationsRequest putEvaluationsRequest, AsyncHandler<PutEvaluationsRequest,PutEvaluationsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Used by an AWS Lambda function to deliver evaluation results to AWS Config. This action is required in every AWS Lambda function that is invoked by an AWS Config rule.
putEvaluationsAsync
in interface AmazonConfigAsync
putEvaluationsRequest
- Container for the necessary parameters to
execute the PutEvaluations 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.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.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<GetComplianceSummaryByConfigRuleResult> getComplianceSummaryByConfigRuleAsync(GetComplianceSummaryByConfigRuleRequest getComplianceSummaryByConfigRuleRequest) throws AmazonServiceException, AmazonClientException
Returns the number of AWS Config rules that are compliant and noncompliant, up to a maximum of 25 for each.
getComplianceSummaryByConfigRuleAsync
in interface AmazonConfigAsync
getComplianceSummaryByConfigRuleRequest
- Container for the
necessary parameters to execute the GetComplianceSummaryByConfigRule
operation on AmazonConfig.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.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<GetComplianceSummaryByConfigRuleResult> getComplianceSummaryByConfigRuleAsync(GetComplianceSummaryByConfigRuleRequest getComplianceSummaryByConfigRuleRequest, AsyncHandler<GetComplianceSummaryByConfigRuleRequest,GetComplianceSummaryByConfigRuleResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the number of AWS Config rules that are compliant and noncompliant, up to a maximum of 25 for each.
getComplianceSummaryByConfigRuleAsync
in interface AmazonConfigAsync
getComplianceSummaryByConfigRuleRequest
- Container for the
necessary parameters to execute the GetComplianceSummaryByConfigRule
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.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.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<GetComplianceSummaryByResourceTypeResult> getComplianceSummaryByResourceTypeAsync(GetComplianceSummaryByResourceTypeRequest getComplianceSummaryByResourceTypeRequest) throws AmazonServiceException, AmazonClientException
Returns the number of resources that are compliant and the number that are noncompliant. You can specify one or more resource types to get these numbers for each resource type. The maximum number returned is 100.
getComplianceSummaryByResourceTypeAsync
in interface AmazonConfigAsync
getComplianceSummaryByResourceTypeRequest
- Container for the
necessary parameters to execute the GetComplianceSummaryByResourceType
operation on AmazonConfig.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.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<GetComplianceSummaryByResourceTypeResult> getComplianceSummaryByResourceTypeAsync(GetComplianceSummaryByResourceTypeRequest getComplianceSummaryByResourceTypeRequest, AsyncHandler<GetComplianceSummaryByResourceTypeRequest,GetComplianceSummaryByResourceTypeResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the number of resources that are compliant and the number that are noncompliant. You can specify one or more resource types to get these numbers for each resource type. The maximum number returned is 100.
getComplianceSummaryByResourceTypeAsync
in interface AmazonConfigAsync
getComplianceSummaryByResourceTypeRequest
- Container for the
necessary parameters to execute the GetComplianceSummaryByResourceType
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.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.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<DescribeComplianceByConfigRuleResult> describeComplianceByConfigRuleAsync(DescribeComplianceByConfigRuleRequest describeComplianceByConfigRuleRequest) throws AmazonServiceException, AmazonClientException
Indicates whether the specified AWS Config rules are compliant. If a rule is noncompliant, this action returns the number of AWS resources that do not comply with the rule.
A rule is compliant if all of the evaluated resources comply with it, and it is noncompliant if any of these resources do not comply.
If AWS Config has no current evaluation results for the rule, it
returns InsufficientData
. This result might indicate one
of the following conditions:
DescribeConfigRuleEvaluationStatus
action to get the
LastSuccessfulInvocationTime
and
LastFailedInvocationTime
.config:PutEvaluations
permission. If the rule is a customer managed rule, verify that the
AWS Lambda execution role includes the
config:PutEvaluations
permission.NOT_APPLICABLE
for all evaluation results. This can occur
if the resources were deleted or removed from the rule's scope.describeComplianceByConfigRuleAsync
in interface AmazonConfigAsync
describeComplianceByConfigRuleRequest
- Container for the
necessary parameters to execute the DescribeComplianceByConfigRule
operation on AmazonConfig.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.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<DescribeComplianceByConfigRuleResult> describeComplianceByConfigRuleAsync(DescribeComplianceByConfigRuleRequest describeComplianceByConfigRuleRequest, AsyncHandler<DescribeComplianceByConfigRuleRequest,DescribeComplianceByConfigRuleResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Indicates whether the specified AWS Config rules are compliant. If a rule is noncompliant, this action returns the number of AWS resources that do not comply with the rule.
A rule is compliant if all of the evaluated resources comply with it, and it is noncompliant if any of these resources do not comply.
If AWS Config has no current evaluation results for the rule, it
returns InsufficientData
. This result might indicate one
of the following conditions:
DescribeConfigRuleEvaluationStatus
action to get the
LastSuccessfulInvocationTime
and
LastFailedInvocationTime
.config:PutEvaluations
permission. If the rule is a customer managed rule, verify that the
AWS Lambda execution role includes the
config:PutEvaluations
permission.NOT_APPLICABLE
for all evaluation results. This can occur
if the resources were deleted or removed from the rule's scope.describeComplianceByConfigRuleAsync
in interface AmazonConfigAsync
describeComplianceByConfigRuleRequest
- Container for the
necessary parameters to execute the DescribeComplianceByConfigRule
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.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.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<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException
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.
startConfigurationRecorderAsync
in interface AmazonConfigAsync
startConfigurationRecorderRequest
- Container for the necessary
parameters to execute the StartConfigurationRecorder operation on
AmazonConfig.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.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<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest, AsyncHandler<StartConfigurationRecorderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
startConfigurationRecorderAsync
in interface AmazonConfigAsync
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.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.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<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) throws AmazonServiceException, AmazonClientException
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.
putDeliveryChannelAsync
in interface AmazonConfigAsync
putDeliveryChannelRequest
- Container for the necessary
parameters to execute the PutDeliveryChannel operation on
AmazonConfig.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.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<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest, AsyncHandler<PutDeliveryChannelRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
putDeliveryChannelAsync
in interface AmazonConfigAsync
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.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.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<GetComplianceDetailsByConfigRuleResult> getComplianceDetailsByConfigRuleAsync(GetComplianceDetailsByConfigRuleRequest getComplianceDetailsByConfigRuleRequest) throws AmazonServiceException, AmazonClientException
Returns the evaluation results for the specified AWS Config rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.
getComplianceDetailsByConfigRuleAsync
in interface AmazonConfigAsync
getComplianceDetailsByConfigRuleRequest
- Container for the
necessary parameters to execute the GetComplianceDetailsByConfigRule
operation on AmazonConfig.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.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<GetComplianceDetailsByConfigRuleResult> getComplianceDetailsByConfigRuleAsync(GetComplianceDetailsByConfigRuleRequest getComplianceDetailsByConfigRuleRequest, AsyncHandler<GetComplianceDetailsByConfigRuleRequest,GetComplianceDetailsByConfigRuleResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the evaluation results for the specified AWS Config rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.
getComplianceDetailsByConfigRuleAsync
in interface AmazonConfigAsync
getComplianceDetailsByConfigRuleRequest
- Container for the
necessary parameters to execute the GetComplianceDetailsByConfigRule
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.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.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<DescribeConfigRuleEvaluationStatusResult> describeConfigRuleEvaluationStatusAsync(DescribeConfigRuleEvaluationStatusRequest describeConfigRuleEvaluationStatusRequest) throws AmazonServiceException, AmazonClientException
Returns status information for each of your AWS managed Config rules. The status includes information such as the last time AWS Config invoked the rule, the last time AWS Config failed to invoke the rule, and the related error for the last failure.
describeConfigRuleEvaluationStatusAsync
in interface AmazonConfigAsync
describeConfigRuleEvaluationStatusRequest
- Container for the
necessary parameters to execute the DescribeConfigRuleEvaluationStatus
operation on AmazonConfig.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.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<DescribeConfigRuleEvaluationStatusResult> describeConfigRuleEvaluationStatusAsync(DescribeConfigRuleEvaluationStatusRequest describeConfigRuleEvaluationStatusRequest, AsyncHandler<DescribeConfigRuleEvaluationStatusRequest,DescribeConfigRuleEvaluationStatusResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns status information for each of your AWS managed Config rules. The status includes information such as the last time AWS Config invoked the rule, the last time AWS Config failed to invoke the rule, and the related error for the last failure.
describeConfigRuleEvaluationStatusAsync
in interface AmazonConfigAsync
describeConfigRuleEvaluationStatusRequest
- Container for the
necessary parameters to execute the DescribeConfigRuleEvaluationStatus
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.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.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<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest) throws AmazonServiceException, AmazonClientException
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.
describeDeliveryChannelsAsync
in interface AmazonConfigAsync
describeDeliveryChannelsRequest
- Container for the necessary
parameters to execute the DescribeDeliveryChannels operation on
AmazonConfig.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.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<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest, AsyncHandler<DescribeDeliveryChannelsRequest,DescribeDeliveryChannelsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
describeDeliveryChannelsAsync
in interface AmazonConfigAsync
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.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.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<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest) throws AmazonServiceException, AmazonClientException
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.
describeDeliveryChannelStatusAsync
in interface AmazonConfigAsync
describeDeliveryChannelStatusRequest
- Container for the
necessary parameters to execute the DescribeDeliveryChannelStatus
operation on AmazonConfig.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.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<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest, AsyncHandler<DescribeDeliveryChannelStatusRequest,DescribeDeliveryChannelStatusResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
describeDeliveryChannelStatusAsync
in interface AmazonConfigAsync
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.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.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<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest) throws AmazonServiceException, AmazonClientException
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.
describeConfigurationRecordersAsync
in interface AmazonConfigAsync
describeConfigurationRecordersRequest
- Container for the
necessary parameters to execute the DescribeConfigurationRecorders
operation on AmazonConfig.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.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<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest, AsyncHandler<DescribeConfigurationRecordersRequest,DescribeConfigurationRecordersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
describeConfigurationRecordersAsync
in interface AmazonConfigAsync
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.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.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<Void> putConfigRuleAsync(PutConfigRuleRequest putConfigRuleRequest) throws AmazonServiceException, AmazonClientException
Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.
You can use this action for customer managed Config rules and AWS managed Config rules. A customer managed Config rule is a custom rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that is provided by AWS Config.
If you are adding a new customer managed Config rule, you must first
create the AWS Lambda function that the rule invokes to evaluate your
resources. When you use the PutConfigRule
action to add
the rule to AWS Config, you must specify the Amazon Resource Name
(ARN) that AWS Lambda assigns to the function. Specify the ARN for the
SourceIdentifier
key. This key is part of the
Source
object, which is part of the
ConfigRule
object.
If you are adding a new AWS managed Config rule, specify the rule's
identifier for the SourceIdentifier
key. To reference AWS
managed Config rule identifiers, see
Using AWS Managed Config Rules
.
For any new rule that you add, specify the
ConfigRuleName
in the ConfigRule
object. Do
not specify the ConfigRuleArn
or the
ConfigRuleId
. These values are generated by AWS Config
for new rules.
If you are updating a rule that you have added previously, specify
the rule's ConfigRuleName
, ConfigRuleId
,
or ConfigRuleArn
in the ConfigRule
data type
that you use in this request.
The maximum number of rules that AWS Config supports is 25.
For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide .
putConfigRuleAsync
in interface AmazonConfigAsync
putConfigRuleRequest
- Container for the necessary parameters to
execute the PutConfigRule operation on AmazonConfig.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.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<Void> putConfigRuleAsync(PutConfigRuleRequest putConfigRuleRequest, AsyncHandler<PutConfigRuleRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.
You can use this action for customer managed Config rules and AWS managed Config rules. A customer managed Config rule is a custom rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that is provided by AWS Config.
If you are adding a new customer managed Config rule, you must first
create the AWS Lambda function that the rule invokes to evaluate your
resources. When you use the PutConfigRule
action to add
the rule to AWS Config, you must specify the Amazon Resource Name
(ARN) that AWS Lambda assigns to the function. Specify the ARN for the
SourceIdentifier
key. This key is part of the
Source
object, which is part of the
ConfigRule
object.
If you are adding a new AWS managed Config rule, specify the rule's
identifier for the SourceIdentifier
key. To reference AWS
managed Config rule identifiers, see
Using AWS Managed Config Rules
.
For any new rule that you add, specify the
ConfigRuleName
in the ConfigRule
object. Do
not specify the ConfigRuleArn
or the
ConfigRuleId
. These values are generated by AWS Config
for new rules.
If you are updating a rule that you have added previously, specify
the rule's ConfigRuleName
, ConfigRuleId
,
or ConfigRuleArn
in the ConfigRule
data type
that you use in this request.
The maximum number of rules that AWS Config supports is 25.
For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide .
putConfigRuleAsync
in interface AmazonConfigAsync
putConfigRuleRequest
- Container for the necessary parameters to
execute the PutConfigRule 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.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.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<Void> deleteConfigRuleAsync(DeleteConfigRuleRequest deleteConfigRuleRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified AWS Config rule and all of its evaluation results.
AWS Config sets the state of a rule to DELETING
until
the deletion is complete. You cannot update a rule while it is in this
state. If you make a PutConfigRule
request for the rule,
you will receive a ResourceInUseException
.
You can check the state of a rule by using the
DescribeConfigRules
request.
deleteConfigRuleAsync
in interface AmazonConfigAsync
deleteConfigRuleRequest
- Container for the necessary parameters
to execute the DeleteConfigRule operation on AmazonConfig.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.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<Void> deleteConfigRuleAsync(DeleteConfigRuleRequest deleteConfigRuleRequest, AsyncHandler<DeleteConfigRuleRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified AWS Config rule and all of its evaluation results.
AWS Config sets the state of a rule to DELETING
until
the deletion is complete. You cannot update a rule while it is in this
state. If you make a PutConfigRule
request for the rule,
you will receive a ResourceInUseException
.
You can check the state of a rule by using the
DescribeConfigRules
request.
deleteConfigRuleAsync
in interface AmazonConfigAsync
deleteConfigRuleRequest
- Container for the necessary parameters
to execute the DeleteConfigRule 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.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.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<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest) throws AmazonServiceException, AmazonClientException
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.
deleteDeliveryChannelAsync
in interface AmazonConfigAsync
deleteDeliveryChannelRequest
- Container for the necessary
parameters to execute the DeleteDeliveryChannel operation on
AmazonConfig.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.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<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest, AsyncHandler<DeleteDeliveryChannelRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
deleteDeliveryChannelAsync
in interface AmazonConfigAsync
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.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.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<DescribeConfigRulesResult> describeConfigRulesAsync(DescribeConfigRulesRequest describeConfigRulesRequest) throws AmazonServiceException, AmazonClientException
Returns details about your AWS Config rules.
describeConfigRulesAsync
in interface AmazonConfigAsync
describeConfigRulesRequest
- Container for the necessary
parameters to execute the DescribeConfigRules operation on
AmazonConfig.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.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<DescribeConfigRulesResult> describeConfigRulesAsync(DescribeConfigRulesRequest describeConfigRulesRequest, AsyncHandler<DescribeConfigRulesRequest,DescribeConfigRulesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns details about your AWS Config rules.
describeConfigRulesAsync
in interface AmazonConfigAsync
describeConfigRulesRequest
- Container for the necessary
parameters to execute the DescribeConfigRules 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.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.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<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException
Stops recording configurations of the AWS resources you have selected to record in your AWS account.
stopConfigurationRecorderAsync
in interface AmazonConfigAsync
stopConfigurationRecorderRequest
- Container for the necessary
parameters to execute the StopConfigurationRecorder operation on
AmazonConfig.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.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<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest, AsyncHandler<StopConfigurationRecorderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Stops recording configurations of the AWS resources you have selected to record in your AWS account.
stopConfigurationRecorderAsync
in interface AmazonConfigAsync
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.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.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<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest) throws AmazonServiceException, AmazonClientException
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.
deliverConfigSnapshotAsync
in interface AmazonConfigAsync
deliverConfigSnapshotRequest
- Container for the necessary
parameters to execute the DeliverConfigSnapshot operation on
AmazonConfig.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.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<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest, AsyncHandler<DeliverConfigSnapshotRequest,DeliverConfigSnapshotResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
deliverConfigSnapshotAsync
in interface AmazonConfigAsync
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.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.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<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException
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.
putConfigurationRecorderAsync
in interface AmazonConfigAsync
putConfigurationRecorderRequest
- Container for the necessary
parameters to execute the PutConfigurationRecorder operation on
AmazonConfig.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.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<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest, AsyncHandler<PutConfigurationRecorderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
putConfigurationRecorderAsync
in interface AmazonConfigAsync
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.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.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<DescribeComplianceByResourceResult> describeComplianceByResourceAsync(DescribeComplianceByResourceRequest describeComplianceByResourceRequest) throws AmazonServiceException, AmazonClientException
Indicates whether the specified AWS resources are compliant. If a resource is noncompliant, this action returns the number of AWS Config rules that the resource does not comply with.
A resource is compliant if it complies with all the AWS Config rules that evaluate it. It is noncompliant if it does not comply with one or more of these rules.
If AWS Config has no current evaluation results for the resource, it
returns InsufficientData
. This result might indicate one
of the following conditions about the rules that evaluate the
resource:
DescribeConfigRuleEvaluationStatus
action to get the
LastSuccessfulInvocationTime
and
LastFailedInvocationTime
.config:PutEvaluations
permission. If the rule is a customer managed rule, verify that the
AWS Lambda execution role includes the
config:PutEvaluations
permission.NOT_APPLICABLE
for all evaluation results. This can occur
if the resources were deleted or removed from the rule's scope.describeComplianceByResourceAsync
in interface AmazonConfigAsync
describeComplianceByResourceRequest
- Container for the necessary
parameters to execute the DescribeComplianceByResource operation on
AmazonConfig.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.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<DescribeComplianceByResourceResult> describeComplianceByResourceAsync(DescribeComplianceByResourceRequest describeComplianceByResourceRequest, AsyncHandler<DescribeComplianceByResourceRequest,DescribeComplianceByResourceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Indicates whether the specified AWS resources are compliant. If a resource is noncompliant, this action returns the number of AWS Config rules that the resource does not comply with.
A resource is compliant if it complies with all the AWS Config rules that evaluate it. It is noncompliant if it does not comply with one or more of these rules.
If AWS Config has no current evaluation results for the resource, it
returns InsufficientData
. This result might indicate one
of the following conditions about the rules that evaluate the
resource:
DescribeConfigRuleEvaluationStatus
action to get the
LastSuccessfulInvocationTime
and
LastFailedInvocationTime
.config:PutEvaluations
permission. If the rule is a customer managed rule, verify that the
AWS Lambda execution role includes the
config:PutEvaluations
permission.NOT_APPLICABLE
for all evaluation results. This can occur
if the resources were deleted or removed from the rule's scope.describeComplianceByResourceAsync
in interface AmazonConfigAsync
describeComplianceByResourceRequest
- Container for the necessary
parameters to execute the DescribeComplianceByResource 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.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.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<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest) throws AmazonServiceException, AmazonClientException
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.
The response is paginated, and by default, AWS Config returns a limit
of 10 configuration items per page. You can customize this number with
the limit
parameter. The response includes a
nextToken
string, and to get the next page of results,
run the request again and enter this string for the
nextToken
parameter.
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.
getResourceConfigHistoryAsync
in interface AmazonConfigAsync
getResourceConfigHistoryRequest
- Container for the necessary
parameters to execute the GetResourceConfigHistory operation on
AmazonConfig.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.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<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest, AsyncHandler<GetResourceConfigHistoryRequest,GetResourceConfigHistoryResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
The response is paginated, and by default, AWS Config returns a limit
of 10 configuration items per page. You can customize this number with
the limit
parameter. The response includes a
nextToken
string, and to get the next page of results,
run the request again and enter this string for the
nextToken
parameter.
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.
getResourceConfigHistoryAsync
in interface AmazonConfigAsync
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.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.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<ListDiscoveredResourcesResult> listDiscoveredResourcesAsync(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest) throws AmazonServiceException, AmazonClientException
Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.
NOTE:You can specify either resource IDs or a resource name but not both in the same request.
The response is paginated, and by default AWS Config lists 100
resource identifiers on each page. You can customize this number with
the limit
parameter. The response includes a
nextToken
string, and to get the next page of results,
run the request again and enter this string for the
nextToken
parameter.
listDiscoveredResourcesAsync
in interface AmazonConfigAsync
listDiscoveredResourcesRequest
- Container for the necessary
parameters to execute the ListDiscoveredResources operation on
AmazonConfig.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.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<ListDiscoveredResourcesResult> listDiscoveredResourcesAsync(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest, AsyncHandler<ListDiscoveredResourcesRequest,ListDiscoveredResourcesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.
NOTE:You can specify either resource IDs or a resource name but not both in the same request.
The response is paginated, and by default AWS Config lists 100
resource identifiers on each page. You can customize this number with
the limit
parameter. The response includes a
nextToken
string, and to get the next page of results,
run the request again and enter this string for the
nextToken
parameter.
listDiscoveredResourcesAsync
in interface AmazonConfigAsync
listDiscoveredResourcesRequest
- Container for the necessary
parameters to execute the ListDiscoveredResources 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.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.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<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest) throws AmazonServiceException, AmazonClientException
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.
describeConfigurationRecorderStatusAsync
in interface AmazonConfigAsync
describeConfigurationRecorderStatusRequest
- Container for the
necessary parameters to execute the
DescribeConfigurationRecorderStatus operation on AmazonConfig.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.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<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest, AsyncHandler<DescribeConfigurationRecorderStatusRequest,DescribeConfigurationRecorderStatusResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
describeConfigurationRecorderStatusAsync
in interface AmazonConfigAsync
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.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.AmazonServiceException
- If an error response is returned by AmazonConfig indicating
either a problem with the data in the request, or a server side issue.Copyright © 2015. All rights reserved.