getInstanceProfile

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following command gets information about the instance profile named ExampleInstanceProfile.
val resp = iamClient.getInstanceProfile {
    instanceProfileName = "ExampleInstanceProfile"
} 
   //sampleEnd
}