get_aggregate_compliance_details_by_config_rule
async
¶
get_aggregate_compliance_details_by_config_rule(
configuration_aggregator_name: ConfigurationAggregatorName,
config_rule_name: ConfigRuleName,
account_id: AccountId,
aws_region: AwsRegion,
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
compliance_type: Optional[ComplianceType] = None,
limit: Optional[Limit] = None,
next_token: Optional[NextToken] = None,
) -> GetAggregateComplianceDetailsByConfigRuleResponse
Returns the evaluation results for the specified Config rule for a specific resource in a 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.
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.
-
config_rule_name(ConfigRuleName) –The name of the Config rule for which you want compliance information.
-
account_id(AccountId) –The 12-digit account ID of the source account.
-
aws_region(AwsRegion) –The source region from where the data is aggregated.
-
compliance_type(Optional[ComplianceType], default:None) –The resource compliance status.
For the
GetAggregateComplianceDetailsByConfigRuleRequestdata type, Config supports only theCOMPLIANTandNON_COMPLIANT. Config does not support theNOT_APPLICABLEandINSUFFICIENT_DATAvalues. -
limit(Optional[Limit], default:None) –The maximum number of evaluation results returned on each page. The default is 50. 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:
-
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
3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 | |