| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Greengrass.GetAssociatedRole
Description
Retrieves the role associated with a particular group.
Synopsis
- data GetAssociatedRole = GetAssociatedRole' {}
- newGetAssociatedRole :: Text -> GetAssociatedRole
- getAssociatedRole_groupId :: Lens' GetAssociatedRole Text
- data GetAssociatedRoleResponse = GetAssociatedRoleResponse' {
- associatedAt :: Maybe Text
- roleArn :: Maybe Text
- httpStatus :: Int
- newGetAssociatedRoleResponse :: Int -> GetAssociatedRoleResponse
- getAssociatedRoleResponse_associatedAt :: Lens' GetAssociatedRoleResponse (Maybe Text)
- getAssociatedRoleResponse_roleArn :: Lens' GetAssociatedRoleResponse (Maybe Text)
- getAssociatedRoleResponse_httpStatus :: Lens' GetAssociatedRoleResponse Int
Creating a Request
data GetAssociatedRole Source #
See: newGetAssociatedRole smart constructor.
Constructors
| GetAssociatedRole' | |
Instances
Arguments
| :: Text | |
| -> GetAssociatedRole |
Create a value of GetAssociatedRole 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:groupId:GetAssociatedRole', getAssociatedRole_groupId - The ID of the Greengrass group.
Request Lenses
getAssociatedRole_groupId :: Lens' GetAssociatedRole Text Source #
The ID of the Greengrass group.
Destructuring the Response
data GetAssociatedRoleResponse Source #
See: newGetAssociatedRoleResponse smart constructor.
Constructors
| GetAssociatedRoleResponse' | |
Fields
| |
Instances
newGetAssociatedRoleResponse Source #
Create a value of GetAssociatedRoleResponse 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:associatedAt:GetAssociatedRoleResponse', getAssociatedRoleResponse_associatedAt - The time when the role was associated with the group.
$sel:roleArn:GetAssociatedRoleResponse', getAssociatedRoleResponse_roleArn - The ARN of the role that is associated with the group.
$sel:httpStatus:GetAssociatedRoleResponse', getAssociatedRoleResponse_httpStatus - The response's http status code.
Response Lenses
getAssociatedRoleResponse_associatedAt :: Lens' GetAssociatedRoleResponse (Maybe Text) Source #
The time when the role was associated with the group.
getAssociatedRoleResponse_roleArn :: Lens' GetAssociatedRoleResponse (Maybe Text) Source #
The ARN of the role that is associated with the group.
getAssociatedRoleResponse_httpStatus :: Lens' GetAssociatedRoleResponse Int Source #
The response's http status code.