get_aggregate_compliance_details_by_config_rule
¶
get_aggregate_compliance_details_by_config_rule(
configuration_aggregator_name: ConfigurationAggregatorName,
config_rule_name: ConfigRuleName,
account_id: AccountId,
aws_region: AwsRegion,
*,
config_overrides: Optional[ConfigServiceClientConfig] = 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/config_service.py
3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 | |