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 the permissions mode of a ledger.
Before you switch to the STANDARD
permissions mode, you must first
create all required IAM policies and table tags to avoid disruption to
your users. To learn more, see
Migrating to the standard permissions mode
in the Amazon QLDB Developer Guide.
Synopsis
- data UpdateLedgerPermissionsMode = UpdateLedgerPermissionsMode' {}
- newUpdateLedgerPermissionsMode :: Text -> PermissionsMode -> UpdateLedgerPermissionsMode
- updateLedgerPermissionsMode_name :: Lens' UpdateLedgerPermissionsMode Text
- updateLedgerPermissionsMode_permissionsMode :: Lens' UpdateLedgerPermissionsMode PermissionsMode
- data UpdateLedgerPermissionsModeResponse = UpdateLedgerPermissionsModeResponse' {
- arn :: Maybe Text
- name :: Maybe Text
- permissionsMode :: Maybe PermissionsMode
- httpStatus :: Int
- newUpdateLedgerPermissionsModeResponse :: Int -> UpdateLedgerPermissionsModeResponse
- updateLedgerPermissionsModeResponse_arn :: Lens' UpdateLedgerPermissionsModeResponse (Maybe Text)
- updateLedgerPermissionsModeResponse_name :: Lens' UpdateLedgerPermissionsModeResponse (Maybe Text)
- updateLedgerPermissionsModeResponse_permissionsMode :: Lens' UpdateLedgerPermissionsModeResponse (Maybe PermissionsMode)
- updateLedgerPermissionsModeResponse_httpStatus :: Lens' UpdateLedgerPermissionsModeResponse Int
Creating a Request
data UpdateLedgerPermissionsMode Source #
See: newUpdateLedgerPermissionsMode
smart constructor.
UpdateLedgerPermissionsMode' | |
|
Instances
newUpdateLedgerPermissionsMode Source #
Create a value of UpdateLedgerPermissionsMode
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:name:UpdateLedgerPermissionsMode'
, updateLedgerPermissionsMode_name
- The name of the ledger.
$sel:permissionsMode:UpdateLedgerPermissionsMode'
, updateLedgerPermissionsMode_permissionsMode
- The permissions mode to assign to the ledger. This parameter can have
one of the following values:
ALLOW_ALL
: A legacy permissions mode that enables access control with API-level granularity for ledgers.This mode allows users who have the
SendCommand
API permission for this ledger to run all PartiQL commands (hence,ALLOW_ALL
) on any tables in the specified ledger. This mode disregards any table-level or command-level IAM permissions policies that you create for the ledger.STANDARD
: (Recommended) A permissions mode that enables access control with finer granularity for ledgers, tables, and PartiQL commands.By default, this mode denies all user requests to run any PartiQL commands on any tables in this ledger. To allow PartiQL commands to run, you must create IAM permissions policies for specific table resources and PartiQL actions, in addition to the
SendCommand
API permission for the ledger. For information, see Getting started with the standard permissions mode in the Amazon QLDB Developer Guide.
We strongly recommend using the STANDARD
permissions mode to maximize
the security of your ledger data.
Request Lenses
updateLedgerPermissionsMode_name :: Lens' UpdateLedgerPermissionsMode Text Source #
The name of the ledger.
updateLedgerPermissionsMode_permissionsMode :: Lens' UpdateLedgerPermissionsMode PermissionsMode Source #
The permissions mode to assign to the ledger. This parameter can have one of the following values:
ALLOW_ALL
: A legacy permissions mode that enables access control with API-level granularity for ledgers.This mode allows users who have the
SendCommand
API permission for this ledger to run all PartiQL commands (hence,ALLOW_ALL
) on any tables in the specified ledger. This mode disregards any table-level or command-level IAM permissions policies that you create for the ledger.STANDARD
: (Recommended) A permissions mode that enables access control with finer granularity for ledgers, tables, and PartiQL commands.By default, this mode denies all user requests to run any PartiQL commands on any tables in this ledger. To allow PartiQL commands to run, you must create IAM permissions policies for specific table resources and PartiQL actions, in addition to the
SendCommand
API permission for the ledger. For information, see Getting started with the standard permissions mode in the Amazon QLDB Developer Guide.
We strongly recommend using the STANDARD
permissions mode to maximize
the security of your ledger data.
Destructuring the Response
data UpdateLedgerPermissionsModeResponse Source #
See: newUpdateLedgerPermissionsModeResponse
smart constructor.
UpdateLedgerPermissionsModeResponse' | |
|
Instances
newUpdateLedgerPermissionsModeResponse Source #
Create a value of UpdateLedgerPermissionsModeResponse
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:arn:UpdateLedgerPermissionsModeResponse'
, updateLedgerPermissionsModeResponse_arn
- The Amazon Resource Name (ARN) for the ledger.
$sel:name:UpdateLedgerPermissionsMode'
, updateLedgerPermissionsModeResponse_name
- The name of the ledger.
$sel:permissionsMode:UpdateLedgerPermissionsMode'
, updateLedgerPermissionsModeResponse_permissionsMode
- The current permissions mode of the ledger.
$sel:httpStatus:UpdateLedgerPermissionsModeResponse'
, updateLedgerPermissionsModeResponse_httpStatus
- The response's http status code.
Response Lenses
updateLedgerPermissionsModeResponse_arn :: Lens' UpdateLedgerPermissionsModeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the ledger.
updateLedgerPermissionsModeResponse_name :: Lens' UpdateLedgerPermissionsModeResponse (Maybe Text) Source #
The name of the ledger.
updateLedgerPermissionsModeResponse_permissionsMode :: Lens' UpdateLedgerPermissionsModeResponse (Maybe PermissionsMode) Source #
The current permissions mode of the ledger.
updateLedgerPermissionsModeResponse_httpStatus :: Lens' UpdateLedgerPermissionsModeResponse Int Source #
The response's http status code.