AWS code-library documentation change
Summary
Added PowerShell V5 example for ListInstanceProfilesForRole command with sample output and API reference
Security assessment
Shows instance profile association without security-related content or vulnerability references.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListInstanceProfilesForRole_section.md b/code-library/latest/ug/iam_example_iam_ListInstanceProfilesForRole_section.md index a5351d6ed..eee74aaa0 100644 --- a//code-library/latest/ug/iam_example_iam_ListInstanceProfilesForRole_section.md +++ b//code-library/latest/ug/iam_example_iam_ListInstanceProfilesForRole_section.md @@ -84,0 +85,24 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns details of the instance profile associated with the role`ec2instancerole`.** + + + Get-IAMInstanceProfileForRole -RoleName ec2instancerole + + +**Output:** + + + Arn : arn:aws:iam::123456789012:instance-profile/ec2instancerole + CreateDate : 2/17/2015 2:49:04 PM + InstanceProfileId : HH36PTZQJUR32EXAMPLE1 + InstanceProfileName : ec2instancerole + Path : / + Roles : {ec2instancerole} + + * For API details, see [ListInstanceProfilesForRole](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +