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/config_service.py
| def get_compliance_summary_by_config_rule(
self, *, config_overrides: Optional[ConfigServiceClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[None]",
) -> OperationResponse[
"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 = (
capo_config_service._operations.starling_dove_service.get_compliance_summary_by_config_rule.get_compliance_summary_by_config_rule(
req.options
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetComplianceSummaryByConfigRule")
)
response = execute_pipeline(
OperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|