| 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 |
Amazonka.RAM.GetPermission
Description
Gets the contents of an RAM permission in JSON format.
Synopsis
- data GetPermission = GetPermission' {}
- newGetPermission :: Text -> GetPermission
- getPermission_permissionVersion :: Lens' GetPermission (Maybe Int)
- getPermission_permissionArn :: Lens' GetPermission Text
- data GetPermissionResponse = GetPermissionResponse' {}
- newGetPermissionResponse :: Int -> GetPermissionResponse
- getPermissionResponse_permission :: Lens' GetPermissionResponse (Maybe ResourceSharePermissionDetail)
- getPermissionResponse_httpStatus :: Lens' GetPermissionResponse Int
Creating a Request
data GetPermission Source #
See: newGetPermission smart constructor.
Constructors
| GetPermission' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetPermission |
Create a value of GetPermission 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:permissionVersion:GetPermission', getPermission_permissionVersion - The identifier for the version of the permission.
$sel:permissionArn:GetPermission', getPermission_permissionArn - The Amazon Resource Name (ARN) of the permission.
Request Lenses
getPermission_permissionVersion :: Lens' GetPermission (Maybe Int) Source #
The identifier for the version of the permission.
getPermission_permissionArn :: Lens' GetPermission Text Source #
The Amazon Resource Name (ARN) of the permission.
Destructuring the Response
data GetPermissionResponse Source #
See: newGetPermissionResponse smart constructor.
Constructors
| GetPermissionResponse' | |
Fields
| |
Instances
newGetPermissionResponse Source #
Create a value of GetPermissionResponse 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:permission:GetPermissionResponse', getPermissionResponse_permission - Information about the permission.
$sel:httpStatus:GetPermissionResponse', getPermissionResponse_httpStatus - The response's http status code.
Response Lenses
getPermissionResponse_permission :: Lens' GetPermissionResponse (Maybe ResourceSharePermissionDetail) Source #
Information about the permission.
getPermissionResponse_httpStatus :: Lens' GetPermissionResponse Int Source #
The response's http status code.