Returns the number of Config rules that are compliant and noncompliant, up to a maximum of 25 for each.
Raises:
Source code in docs_src/capo_config_service/_services/async_config_service.py
| async def get_compliance_summary_by_config_rule(
self, *, config_overrides: Optional[AsyncConfigServiceClientConfig] = None
) -> "capo_config_service.types.get_compliance_summary_by_config_rule_response.GetComplianceSummaryByConfigRuleResponse":
"""<p>Returns the number of Config rules that are compliant and noncompliant, up to a maximum of 25 for each.</p>
Raises:
capo_config_service.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_config_service.types.get_compliance_summary_by_config_rule_response.GetComplianceSummaryByConfigRuleResponse"
]:
import capo_config_service._operations.starling_dove_service.get_compliance_summary_by_config_rule
(
output,
http_response,
) = await capo_config_service._operations.starling_dove_service.get_compliance_summary_by_config_rule.async_get_compliance_summary_by_config_rule(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetComplianceSummaryByConfigRule")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|