Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Use DescribeConfigurationRecorders
with an Amazon SDK or CLI
The following code examples show how to use DescribeConfigurationRecorders
.
- CLI
-
- Amazon CLI
-
To get details about the configuration recorder
The following command returns details about the default configuration recorder:
aws configservice describe-configuration-recorders
Output:
{
"ConfigurationRecorders": [
{
"recordingGroup": {
"allSupported": true,
"resourceTypes": [],
"includeGlobalResourceTypes": true
},
"roleARN": "arn:aws:iam::123456789012:role/config-ConfigRole-A1B2C3D4E5F6",
"name": "default"
}
]
}
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example returns the details of configuration recorders.
Get-CFGConfigurationRecorder | Format-List
Output:
Name : default
RecordingGroup : Amazon.ConfigService.Model.RecordingGroup
RoleARN : arn:aws:iam::123456789012:role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig
For a complete list of Amazon SDK developer guides and code examples, see
Using Amazon Config with an Amazon SDK.
This topic also includes information about getting started and details about previous SDK versions.