get_compliance_details_by_config_rule
async
¶
get_compliance_details_by_config_rule(
config_rule_name: StringWithCharLimit64,
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
compliance_types: Optional[ComplianceTypes] = None,
limit: Optional[Limit] = None,
next_token: Optional[NextToken] = None,
) -> GetComplianceDetailsByConfigRuleResponse
Returns the evaluation results for the specified Config rule. The results indicate which Amazon Web Services resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.
Parameters:
-
config_rule_name(StringWithCharLimit64) –The name of the Config rule for which you want compliance information.
-
compliance_types(Optional[ComplianceTypes], default:None) –Filters the results by compliance.
INSUFFICIENT_DATAis a validComplianceTypethat is returned when an Config rule cannot be evaluated. However,INSUFFICIENT_DATAcannot be used as aComplianceTypefor filtering results. -
limit(Optional[Limit], default:None) –The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, Config uses the default.
-
next_token(Optional[NextToken], default:None) –The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.
Raises:
-
InvalidNextTokenException–The specified next token is not valid. Specify the
nextTokenstring that was returned in the previous response to get the next page of results. -
InvalidParameterValueException–One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
-
NoSuchConfigRuleException–The Config rule in the request is not valid. Verify that the rule is an Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_config_service/_services/async_config_service.py
4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 | |