envs_1 / data /lib /python3.10 /site-packages /awscli /examples /configservice /describe-config-rules.rst
| **To get details for an AWS Config rule** | |
| The following command returns details for an AWS Config rule named ``InstanceTypesAreT2micro``:: | |
| aws configservice describe-config-rules --config-rule-names InstanceTypesAreT2micro | |
| Output:: | |
| { | |
| "ConfigRules": [ | |
| { | |
| "ConfigRuleState": "ACTIVE", | |
| "Description": "Evaluates whether EC2 instances are the t2.micro type.", | |
| "ConfigRuleName": "InstanceTypesAreT2micro", | |
| "ConfigRuleArn": "arn:aws:config:us-east-1:123456789012:config-rule/config-rule-abcdef", | |
| "Source": { | |
| "Owner": "CUSTOM_LAMBDA", | |
| "SourceIdentifier": "arn:aws:lambda:us-east-1:123456789012:function:InstanceTypeCheck", | |
| "SourceDetails": [ | |
| { | |
| "EventSource": "aws.config", | |
| "MessageType": "ConfigurationItemChangeNotification" | |
| } | |
| ] | |
| }, | |
| "InputParameters": "{\"desiredInstanceType\":\"t2.micro\"}", | |
| "Scope": { | |
| "ComplianceResourceTypes": [ | |
| "AWS::EC2::Instance" | |
| ] | |
| }, | |
| "ConfigRuleId": "config-rule-abcdef" | |
| } | |
| ] | |
| } |