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 |
Updates permissions of a folder.
Synopsis
- data UpdateFolderPermissions = UpdateFolderPermissions' {}
- newUpdateFolderPermissions :: Text -> Text -> UpdateFolderPermissions
- updateFolderPermissions_revokePermissions :: Lens' UpdateFolderPermissions (Maybe (NonEmpty ResourcePermission))
- updateFolderPermissions_grantPermissions :: Lens' UpdateFolderPermissions (Maybe (NonEmpty ResourcePermission))
- updateFolderPermissions_awsAccountId :: Lens' UpdateFolderPermissions Text
- updateFolderPermissions_folderId :: Lens' UpdateFolderPermissions Text
- data UpdateFolderPermissionsResponse = UpdateFolderPermissionsResponse' {}
- newUpdateFolderPermissionsResponse :: Int -> UpdateFolderPermissionsResponse
- updateFolderPermissionsResponse_requestId :: Lens' UpdateFolderPermissionsResponse (Maybe Text)
- updateFolderPermissionsResponse_status :: Lens' UpdateFolderPermissionsResponse (Maybe Int)
- updateFolderPermissionsResponse_arn :: Lens' UpdateFolderPermissionsResponse (Maybe Text)
- updateFolderPermissionsResponse_folderId :: Lens' UpdateFolderPermissionsResponse (Maybe Text)
- updateFolderPermissionsResponse_permissions :: Lens' UpdateFolderPermissionsResponse (Maybe (NonEmpty ResourcePermission))
- updateFolderPermissionsResponse_httpStatus :: Lens' UpdateFolderPermissionsResponse Int
Creating a Request
data UpdateFolderPermissions Source #
See: newUpdateFolderPermissions
smart constructor.
UpdateFolderPermissions' | |
|
Instances
newUpdateFolderPermissions Source #
:: Text | |
-> Text | |
-> UpdateFolderPermissions |
Create a value of UpdateFolderPermissions
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:revokePermissions:UpdateFolderPermissions'
, updateFolderPermissions_revokePermissions
- The permissions that you want to revoke from a resource.
$sel:grantPermissions:UpdateFolderPermissions'
, updateFolderPermissions_grantPermissions
- The permissions that you want to grant on a resource.
$sel:awsAccountId:UpdateFolderPermissions'
, updateFolderPermissions_awsAccountId
- The AWS account ID.
$sel:folderId:UpdateFolderPermissions'
, updateFolderPermissions_folderId
- The folder ID.
Request Lenses
updateFolderPermissions_revokePermissions :: Lens' UpdateFolderPermissions (Maybe (NonEmpty ResourcePermission)) Source #
The permissions that you want to revoke from a resource.
updateFolderPermissions_grantPermissions :: Lens' UpdateFolderPermissions (Maybe (NonEmpty ResourcePermission)) Source #
The permissions that you want to grant on a resource.
updateFolderPermissions_awsAccountId :: Lens' UpdateFolderPermissions Text Source #
The AWS account ID.
updateFolderPermissions_folderId :: Lens' UpdateFolderPermissions Text Source #
The folder ID.
Destructuring the Response
data UpdateFolderPermissionsResponse Source #
See: newUpdateFolderPermissionsResponse
smart constructor.
UpdateFolderPermissionsResponse' | |
|
Instances
newUpdateFolderPermissionsResponse Source #
Create a value of UpdateFolderPermissionsResponse
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:requestId:UpdateFolderPermissionsResponse'
, updateFolderPermissionsResponse_requestId
- The request ID.
$sel:status:UpdateFolderPermissionsResponse'
, updateFolderPermissionsResponse_status
- The status. If succeeded, the status is SC_OK
.
$sel:arn:UpdateFolderPermissionsResponse'
, updateFolderPermissionsResponse_arn
- The Amazon Resource Name (ARN).
$sel:folderId:UpdateFolderPermissions'
, updateFolderPermissionsResponse_folderId
- The folder ID.
$sel:permissions:UpdateFolderPermissionsResponse'
, updateFolderPermissionsResponse_permissions
- Information about the permissions on the dashboard.
$sel:httpStatus:UpdateFolderPermissionsResponse'
, updateFolderPermissionsResponse_httpStatus
- The response's http status code.
Response Lenses
updateFolderPermissionsResponse_requestId :: Lens' UpdateFolderPermissionsResponse (Maybe Text) Source #
The request ID.
updateFolderPermissionsResponse_status :: Lens' UpdateFolderPermissionsResponse (Maybe Int) Source #
The status. If succeeded, the status is SC_OK
.
updateFolderPermissionsResponse_arn :: Lens' UpdateFolderPermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN).
updateFolderPermissionsResponse_folderId :: Lens' UpdateFolderPermissionsResponse (Maybe Text) Source #
The folder ID.
updateFolderPermissionsResponse_permissions :: Lens' UpdateFolderPermissionsResponse (Maybe (NonEmpty ResourcePermission)) Source #
Information about the permissions on the dashboard.
updateFolderPermissionsResponse_httpStatus :: Lens' UpdateFolderPermissionsResponse Int Source #
The response's http status code.