選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

GetResourceEvaluationSummary - AWS Config
此頁面尚未翻譯為您的語言。 請求翻譯

GetResourceEvaluationSummary

Returns a summary of resource evaluation for the specified resource evaluation ID from the proactive rules that were run. The results indicate which evaluation context was used to evaluate the rules, which resource details were evaluated, the evaluation mode that was run, and whether the resource details comply with the configuration of the proactive rules.

Note

To see additional information about the evaluation result, such as which rule flagged a resource as NON_COMPLIANT, use the GetComplianceDetailsByResource API. For more information, see the Examples section.

Request Syntax

{ "ResourceEvaluationId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ResourceEvaluationId

The unique ResourceEvaluationId of AWS resource execution for which you want to retrieve the evaluation summary.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Response Syntax

{ "Compliance": "string", "EvaluationContext": { "EvaluationContextIdentifier": "string" }, "EvaluationMode": "string", "EvaluationStartTimestamp": number, "EvaluationStatus": { "FailureReason": "string", "Status": "string" }, "ResourceDetails": { "ResourceConfiguration": "string", "ResourceConfigurationSchemaType": "string", "ResourceId": "string", "ResourceType": "string" }, "ResourceEvaluationId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Compliance

The compliance status of the resource evaluation summary.

Type: String

Valid Values: COMPLIANT | NON_COMPLIANT | NOT_APPLICABLE | INSUFFICIENT_DATA

EvaluationContext

Returns an EvaluationContext object.

Type: EvaluationContext object

EvaluationMode

Lists results of the mode that you requested to retrieve the resource evaluation summary. The valid values are Detective or Proactive.

Type: String

Valid Values: DETECTIVE | PROACTIVE

EvaluationStartTimestamp

The start timestamp when AWS Config rule starts evaluating compliance for the provided resource details.

Type: Timestamp

EvaluationStatus

Returns an EvaluationStatus object.

Type: EvaluationStatus object

ResourceDetails

Returns a ResourceDetails object.

Type: ResourceDetails object

ResourceEvaluationId

The unique ResourceEvaluationId of AWS resource execution for which you want to retrieve the evaluation summary.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceNotFoundException

You have specified a resource that does not exist.

HTTP Status Code: 400

Examples

Example

To see additional information about the evaluation result, such as which rule flagged a resource as NON_COMPLIANT, use the GetComplianceDetailsByResource API. For example:

aws configservice get-compliance-details-by-resource --resource-evaluation-id MY-EVALUATION-ID { "EvaluationResults": [ { "EvaluationResultIdentifier": { "EvaluationResultQualifier": { "ConfigRuleName": "s3-bucket-logging-enabled", "ResourceType": "AWS::S3::Bucket", "ResourceId": "MY-RESOURCE-ID", "EvaluationMode": "PROACTIVE" }, "OrderingTimestamp": "2022-12-23T14:35:40.036000-05:00", "ResourceEvaluationId": "MY-EVALUATION-ID" }, "ComplianceType": "NON_COMPLIANT", "ResultRecordedTime": "2022-12-23T14:35:11.213000-05:00", "ConfigRuleInvokedTime": "2022-12-23T14:35:10.978000-05:00" } ] }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。