Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see About instance profiles in the IAM User Guide.
Synopsis
- data GetInstanceProfile = GetInstanceProfile' {}
- newGetInstanceProfile :: Text -> GetInstanceProfile
- getInstanceProfile_instanceProfileName :: Lens' GetInstanceProfile Text
- data GetInstanceProfileResponse = GetInstanceProfileResponse' {}
- newGetInstanceProfileResponse :: Int -> InstanceProfile -> GetInstanceProfileResponse
- getInstanceProfileResponse_httpStatus :: Lens' GetInstanceProfileResponse Int
- getInstanceProfileResponse_instanceProfile :: Lens' GetInstanceProfileResponse InstanceProfile
Creating a Request
data GetInstanceProfile Source #
See: newGetInstanceProfile
smart constructor.
GetInstanceProfile' | |
|
Instances
newGetInstanceProfile Source #
Create a value of GetInstanceProfile
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:instanceProfileName:GetInstanceProfile'
, getInstanceProfile_instanceProfileName
- The name of the instance profile to get information about.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Request Lenses
getInstanceProfile_instanceProfileName :: Lens' GetInstanceProfile Text Source #
The name of the instance profile to get information about.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Destructuring the Response
data GetInstanceProfileResponse Source #
Contains the response to a successful GetInstanceProfile request.
See: newGetInstanceProfileResponse
smart constructor.
GetInstanceProfileResponse' | |
|
Instances
newGetInstanceProfileResponse Source #
Create a value of GetInstanceProfileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetInstanceProfileResponse'
, getInstanceProfileResponse_httpStatus
- The response's http status code.
$sel:instanceProfile:GetInstanceProfileResponse'
, getInstanceProfileResponse_instanceProfile
- A structure containing details about the instance profile.
Response Lenses
getInstanceProfileResponse_httpStatus :: Lens' GetInstanceProfileResponse Int Source #
The response's http status code.
getInstanceProfileResponse_instanceProfile :: Lens' GetInstanceProfileResponse InstanceProfile Source #
A structure containing details about the instance profile.