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 |
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.
GetPermission' | |
|
Instances
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
- Specifies identifier for the version of the RAM permission to retrieve.
If you don't specify this parameter, the operation retrieves the
default version.
$sel:permissionArn:GetPermission'
, getPermission_permissionArn
- Specifies the
Amazon Resoure Name (ARN)
of the permission whose contents you want to retrieve. To find the ARN
for a permission, use either the ListPermissions operation or go to the
Permissions library
page in the RAM console and then choose the name of the permission. The
ARN is displayed on the detail page.
Request Lenses
getPermission_permissionVersion :: Lens' GetPermission (Maybe Int) Source #
Specifies identifier for the version of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.
getPermission_permissionArn :: Lens' GetPermission Text Source #
Specifies the Amazon Resoure Name (ARN) of the permission whose contents you want to retrieve. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.
Destructuring the Response
data GetPermissionResponse Source #
See: newGetPermissionResponse
smart constructor.
GetPermissionResponse' | |
|
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:
GetPermissionResponse
, getPermissionResponse_permission
- An object that contains information about the permission.
$sel:httpStatus:GetPermissionResponse'
, getPermissionResponse_httpStatus
- The response's http status code.
Response Lenses
getPermissionResponse_permission :: Lens' GetPermissionResponse (Maybe ResourceSharePermissionDetail) Source #
An object that contains information about the permission.
getPermissionResponse_httpStatus :: Lens' GetPermissionResponse Int Source #
The response's http status code.