AWS code-library documentation change
Summary
Added PowerShell V5 example for service last accessed details with entities
Security assessment
Documents access monitoring features important for security auditing, but not fixing specific issues
Diff
diff --git a/code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetailsWithEntities_section.md b/code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetailsWithEntities_section.md index a1bbe4589..f13026ca3 100644 --- a//code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetailsWithEntities_section.md +++ b//code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetailsWithEntities_section.md @@ -117,0 +118,50 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example provides the last accessed timestamp for the service in the request by that respective IAM entity.** + + + $results = Get-IAMServiceLastAccessedDetailWithEntity -JobId f0b7a819-eab0-929b-dc26-ca598911cb9f -ServiceNamespace ec2 + $results + + +**Output:** + + + EntityDetailsList : {Amazon.IdentityManagement.Model.EntityDetails} + Error : + IsTruncated : False + JobCompletionDate : 12/29/19 11:19:31 AM + JobCreationDate : 12/29/19 11:19:31 AM + JobStatus : COMPLETED + Marker : + + + $results.EntityDetailsList + + +**Output:** + + + EntityInfo LastAuthenticated + ---------- ----------------- + Amazon.IdentityManagement.Model.EntityInfo 11/16/19 3:47:00 PM + + + $results.EntityInfo + + +**Output:** + + + Arn : arn:aws:iam::123456789012:user/TestUser + Id : AIDA4NBK5CXF5TZHU1234 + Name : TestUser + Path : / + Type : USER + + * For API details, see [GetServiceLastAccessedDetailsWithEntities](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +