get_aggregate_config_rule_compliance_summary
async
¶
get_aggregate_config_rule_compliance_summary(
configuration_aggregator_name: ConfigurationAggregatorName,
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
filters: Optional[ConfigRuleComplianceSummaryFilters] = None,
group_by_key: Optional[ConfigRuleComplianceSummaryGroupKey] = None,
limit: Optional[GroupByAPILimit] = None,
next_token: Optional[NextToken] = None,
) -> GetAggregateConfigRuleComplianceSummaryResponse
Returns the number of compliant and noncompliant rules for one or more accounts and regions in an aggregator.
The results can return an empty result page, but if you have a nextToken, the results are displayed on the next page.
Parameters:
-
configuration_aggregator_name(ConfigurationAggregatorName) –The name of the configuration aggregator.
-
filters(Optional[ConfigRuleComplianceSummaryFilters], default:None) –Filters the results based on the ConfigRuleComplianceSummaryFilters object.
-
group_by_key(Optional[ConfigRuleComplianceSummaryGroupKey], default:None) –Groups the result based on ACCOUNT_ID or AWS_REGION.
-
limit(Optional[GroupByAPILimit], default:None) –The maximum number of evaluation results returned on each page. The default is 1000. You cannot specify a number greater than 1000. 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:
-
InvalidLimitException–The specified limit is outside the allowable range.
-
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. -
NoSuchConfigurationAggregatorException–You have specified a configuration aggregator that does not exist.
-
ValidationException–The requested operation is not valid. You will see this exception if there are missing required fields or if the input value fails the validation.
For PutStoredQuery, one of the following errors:
-
There are missing required fields.
-
The input value fails the validation.
-
You are trying to create more than 300 queries.
For DescribeConfigurationRecorders and DescribeConfigurationRecorderStatus, one of the following errors:
-
You have specified more than one configuration recorder.
-
You have provided a service principal for service-linked configuration recorder that is not valid.
For AssociateResourceTypes and DisassociateResourceTypes, one of the following errors:
-
Your configuraiton recorder has a recording strategy that does not allow the association or disassociation of resource types.
-
One or more of the specified resource types are already associated or disassociated with the configuration recorder.
-
For service-linked configuration recorders, the configuration recorder does not record one or more of the specified resource types.
For DeleteServiceLinkedConfigurationRecorder, one of the following errors:
-
You have provided both
ArnandServicePrincipal. Only one ofArnorServicePrincipalcan be specified. -
You have provided a service principal for service-linked configuration recorder that is not valid.
-
-
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
3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 | |