get_compliance_details_by_resource
async
¶
get_compliance_details_by_resource(
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = 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/async_config_service.py
4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 | |