libZSservicesZSamazonka-qldbZSamazonka-qldb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.QLDB.UpdateLedgerPermissionsMode

Description

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

Creating a Request

data UpdateLedgerPermissionsMode Source #

See: newUpdateLedgerPermissionsMode smart constructor.

Constructors

UpdateLedgerPermissionsMode' 

Fields

  • name :: Text

    The name of the ledger.

  • permissionsMode :: 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.

Instances

Instances details
Eq UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Read UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Show UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Generic UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Associated Types

type Rep UpdateLedgerPermissionsMode :: Type -> Type #

NFData UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Hashable UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

ToJSON UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

AWSRequest UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

ToHeaders UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

ToPath UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

ToQuery UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

type Rep UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

type Rep UpdateLedgerPermissionsMode = D1 ('MetaData "UpdateLedgerPermissionsMode" "Amazonka.QLDB.UpdateLedgerPermissionsMode" "libZSservicesZSamazonka-qldbZSamazonka-qldb" 'False) (C1 ('MetaCons "UpdateLedgerPermissionsMode'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionsMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PermissionsMode)))
type AWSResponse UpdateLedgerPermissionsMode Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

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_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 #

Constructors

UpdateLedgerPermissionsModeResponse' 

Fields

Instances

Instances details
Eq UpdateLedgerPermissionsModeResponse Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Read UpdateLedgerPermissionsModeResponse Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Show UpdateLedgerPermissionsModeResponse Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

Generic UpdateLedgerPermissionsModeResponse Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

NFData UpdateLedgerPermissionsModeResponse Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

type Rep UpdateLedgerPermissionsModeResponse Source # 
Instance details

Defined in Amazonka.QLDB.UpdateLedgerPermissionsMode

type Rep UpdateLedgerPermissionsModeResponse = D1 ('MetaData "UpdateLedgerPermissionsModeResponse" "Amazonka.QLDB.UpdateLedgerPermissionsMode" "libZSservicesZSamazonka-qldbZSamazonka-qldb" 'False) (C1 ('MetaCons "UpdateLedgerPermissionsModeResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "permissionsMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PermissionsMode)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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