AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation medium

File: code-library/latest/ug/config-service_example_config-service_GetComplianceDetailsByResource_section.md

Summary

Added PowerShell V5 example for checking resource compliance

Security assessment

Demonstrates compliance checking capabilities but does not directly address vulnerabilities or security incidents.

Diff

diff --git a/code-library/latest/ug/config-service_example_config-service_GetComplianceDetailsByResource_section.md b/code-library/latest/ug/config-service_example_config-service_GetComplianceDetailsByResource_section.md
index 53c9cfc06..841850d03 100644
--- a//code-library/latest/ug/config-service_example_config-service_GetComplianceDetailsByResource_section.md
+++ b//code-library/latest/ug/config-service_example_config-service_GetComplianceDetailsByResource_section.md
@@ -90,0 +91,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example evaulation results for the given resource.**
+    
+    
+    Get-CFGComplianceDetailsByResource -ResourceId ABCD5STJ4EFGHIVEW6JAH -ResourceType 'AWS::IAM::User'
+    
+
+**Output:**
+    
+    
+    Annotation                 :
+    ComplianceType             : COMPLIANT
+    ConfigRuleInvokedTime      : 8/25/2019 11:34:56 PM
+    EvaluationResultIdentifier : Amazon.ConfigService.Model.EvaluationResultIdentifier
+    ResultRecordedTime         : 8/25/2019 11:34:56 PM
+    ResultToken                :
+
+  * For API details, see [GetComplianceDetailsByResource](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+