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
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 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 | |