get_compliance_details_by_resource
¶
get_compliance_details_by_resource(
*,
config_overrides: Optional[ConfigServiceClientConfig] = None,
resource_type: Optional[StringWithCharLimit256] = None,
resource_id: Optional[BaseResourceId] = None,
compliance_types: Optional[ComplianceTypes] = None,
next_token: Optional[String] = None,
resource_evaluation_id: Optional[ResourceEvaluationId] = None,
) -> GetComplianceDetailsByResourceResponse
Returns the evaluation results for the specified Amazon Web Services resource. The results indicate which Config rules were used to evaluate the resource, when each rule was last invoked, and whether the resource complies with each rule.
Parameters:
-
resource_type(Optional[StringWithCharLimit256], default:None) –The type of the Amazon Web Services resource for which you want compliance information.
-
resource_id(Optional[BaseResourceId], default:None) –The ID of the Amazon Web Services resource for which you want compliance information.
-
compliance_types(Optional[ComplianceTypes], default:None) –Filters the results by compliance.
INSUFFICIENT_DATAis a validComplianceTypethat is returned when an Config rule cannot be evaluated. However,INSUFFICIENT_DATAcannot be used as aComplianceTypefor filtering results. -
next_token(Optional[String], default:None) –The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response. -
resource_evaluation_id(Optional[ResourceEvaluationId], default:None) –The unique ID of Amazon Web Services resource execution for which you want to retrieve evaluation results.
You need to only provide either a
ResourceEvaluationIDor aResourceIDandResourceType.
Raises:
-
InvalidParameterValueException–One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_config_service/_services/config_service.py
4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 | |