public interface AmazonConfig
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 .
Modifier and Type | Method and Description |
---|---|
void |
deleteDeliveryChannel(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest)
Deletes the specified delivery channel.
|
DeliverConfigSnapshotResult |
deliverConfigSnapshot(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest)
Schedules delivery of a configuration snapshot to the Amazon S3
bucket in the specified delivery channel.
|
DescribeConfigurationRecordersResult |
describeConfigurationRecorders()
Returns the name of one or more specified configuration recorders.
|
DescribeConfigurationRecordersResult |
describeConfigurationRecorders(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest)
Returns the name of one or more specified configuration recorders.
|
DescribeConfigurationRecorderStatusResult |
describeConfigurationRecorderStatus()
Returns the current status of the specified configuration recorder.
|
DescribeConfigurationRecorderStatusResult |
describeConfigurationRecorderStatus(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest)
Returns the current status of the specified configuration recorder.
|
DescribeDeliveryChannelsResult |
describeDeliveryChannels()
Returns details about the specified delivery channel.
|
DescribeDeliveryChannelsResult |
describeDeliveryChannels(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest)
Returns details about the specified delivery channel.
|
DescribeDeliveryChannelStatusResult |
describeDeliveryChannelStatus()
Returns the current status of the specified delivery channel.
|
DescribeDeliveryChannelStatusResult |
describeDeliveryChannelStatus(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest)
Returns the current status of the specified delivery channel.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for
debugging issues where a service isn't acting as expected.
|
GetResourceConfigHistoryResult |
getResourceConfigHistory(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest)
Returns a list of configuration items for the specified resource.
|
void |
putConfigurationRecorder(PutConfigurationRecorderRequest putConfigurationRecorderRequest)
Creates a new configuration recorder to record the resource
configurations.
|
void |
putDeliveryChannel(PutDeliveryChannelRequest putDeliveryChannelRequest)
Creates a new delivery channel object to deliver the configuration
information to an Amazon S3 bucket, and to an Amazon SNS topic.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("https://config.us-east-1.amazonaws.com/").
|
void |
setRegion(Region region)
An alternative to
setEndpoint(String) , sets the
regional endpoint for this client's service calls. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
void |
startConfigurationRecorder(StartConfigurationRecorderRequest startConfigurationRecorderRequest)
Starts recording configurations of all the resources associated with
the account.
|
void |
stopConfigurationRecorder(StopConfigurationRecorderRequest stopConfigurationRecorderRequest)
Stops recording configurations of all the resources associated with
the account.
|
void setEndpoint(String endpoint) throws IllegalArgumentException
Callers can pass in just the endpoint (ex: "config.us-east-1.amazonaws.com/") or a full
URL, including the protocol (ex: "https://config.us-east-1.amazonaws.com/"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
endpoint
- The endpoint (ex: "config.us-east-1.amazonaws.com/") or a full URL,
including the protocol (ex: "https://config.us-east-1.amazonaws.com/") of
the region specific AWS endpoint this client will communicate
with.IllegalArgumentException
- If any problems are detected with the specified endpoint.void setRegion(Region region) throws IllegalArgumentException
setEndpoint(String)
, sets the
regional endpoint for this client's service calls. Callers can use this
method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol.
To use http instead, specify it in the ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
region
- The region this client will communicate with. See
Region.getRegion(com.amazonaws.regions.Regions)
for
accessing a given region.IllegalArgumentException
- If the given region is null, or if this service isn't
available in the given region. See
Region.isServiceSupported(String)
Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
DescribeDeliveryChannelStatusResult describeDeliveryChannelStatus(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.
describeDeliveryChannelStatusRequest
- Container for the
necessary parameters to execute the DescribeDeliveryChannelStatus
service method on AmazonConfig.NoSuchDeliveryChannelException
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.DescribeConfigurationRecordersResult describeConfigurationRecorders(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.
describeConfigurationRecordersRequest
- Container for the
necessary parameters to execute the DescribeConfigurationRecorders
service method on AmazonConfig.NoSuchConfigurationRecorderException
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.void startConfigurationRecorder(StartConfigurationRecorderRequest startConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException
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.
startConfigurationRecorderRequest
- Container for the necessary
parameters to execute the StartConfigurationRecorder service method on
AmazonConfig.NoSuchConfigurationRecorderException
NoAvailableDeliveryChannelException
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.void putDeliveryChannel(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.
putDeliveryChannelRequest
- Container for the necessary
parameters to execute the PutDeliveryChannel service method on
AmazonConfig.InvalidDeliveryChannelNameException
InvalidS3KeyPrefixException
NoAvailableConfigurationRecorderException
NoSuchBucketException
InvalidSNSTopicARNException
InsufficientDeliveryPolicyException
MaxNumberOfDeliveryChannelsExceededException
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.void deleteDeliveryChannel(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.
deleteDeliveryChannelRequest
- Container for the necessary
parameters to execute the DeleteDeliveryChannel service method on
AmazonConfig.NoSuchDeliveryChannelException
LastDeliveryChannelDeleteFailedException
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.void stopConfigurationRecorder(StopConfigurationRecorderRequest stopConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException
Stops recording configurations of all the resources associated with the account.
stopConfigurationRecorderRequest
- Container for the necessary
parameters to execute the StopConfigurationRecorder service method on
AmazonConfig.NoSuchConfigurationRecorderException
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.DeliverConfigSnapshotResult deliverConfigSnapshot(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.
deliverConfigSnapshotRequest
- Container for the necessary
parameters to execute the DeliverConfigSnapshot service method on
AmazonConfig.NoSuchDeliveryChannelException
NoAvailableConfigurationRecorderException
NoRunningConfigurationRecorderException
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.void putConfigurationRecorder(PutConfigurationRecorderRequest putConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException
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.
putConfigurationRecorderRequest
- Container for the necessary
parameters to execute the PutConfigurationRecorder service method on
AmazonConfig.InvalidRoleException
InvalidConfigurationRecorderNameException
MaxNumberOfConfigurationRecordersExceededException
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.GetResourceConfigHistoryResult getResourceConfigHistory(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. 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 .
getResourceConfigHistoryRequest
- Container for the necessary
parameters to execute the GetResourceConfigHistory service method on
AmazonConfig.InvalidNextTokenException
NoAvailableConfigurationRecorderException
ValidationException
ResourceNotDiscoveredException
InvalidTimeRangeException
InvalidLimitException
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.DescribeDeliveryChannelsResult describeDeliveryChannels(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.
describeDeliveryChannelsRequest
- Container for the necessary
parameters to execute the DescribeDeliveryChannels service method on
AmazonConfig.NoSuchDeliveryChannelException
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.DescribeConfigurationRecorderStatusResult describeConfigurationRecorderStatus(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.
describeConfigurationRecorderStatusRequest
- Container for the
necessary parameters to execute the
DescribeConfigurationRecorderStatus service method on AmazonConfig.NoSuchConfigurationRecorderException
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.DescribeDeliveryChannelStatusResult describeDeliveryChannelStatus() 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.
NoSuchDeliveryChannelException
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.DescribeConfigurationRecordersResult describeConfigurationRecorders() 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.
NoSuchConfigurationRecorderException
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.DescribeDeliveryChannelsResult describeDeliveryChannels() 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.
NoSuchDeliveryChannelException
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.DescribeConfigurationRecorderStatusResult describeConfigurationRecorderStatus() 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.
NoSuchConfigurationRecorderException
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.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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 a request.
request
- The originally executed request.Copyright © 2014. All rights reserved.