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
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 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 | |