/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace QLDB { namespace Model { /** */ class UpdateLedgerPermissionsModeRequest : public QLDBRequest { public: AWS_QLDB_API UpdateLedgerPermissionsModeRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateLedgerPermissionsMode"; } AWS_QLDB_API Aws::String SerializePayload() const override; /** *

The name of the ledger.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the ledger.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the ledger.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the ledger.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the ledger.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the ledger.

*/ inline UpdateLedgerPermissionsModeRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the ledger.

*/ inline UpdateLedgerPermissionsModeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the ledger.

*/ inline UpdateLedgerPermissionsModeRequest& WithName(const char* value) { SetName(value); return *this;} /** *

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.

*/ inline const PermissionsMode& GetPermissionsMode() const{ return m_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.

*/ inline bool PermissionsModeHasBeenSet() const { return m_permissionsModeHasBeenSet; } /** *

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.

*/ inline void SetPermissionsMode(const PermissionsMode& value) { m_permissionsModeHasBeenSet = true; m_permissionsMode = value; } /** *

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.

*/ inline void SetPermissionsMode(PermissionsMode&& value) { m_permissionsModeHasBeenSet = true; m_permissionsMode = std::move(value); } /** *

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.

*/ inline UpdateLedgerPermissionsModeRequest& WithPermissionsMode(const PermissionsMode& value) { SetPermissionsMode(value); return *this;} /** *

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.

*/ inline UpdateLedgerPermissionsModeRequest& WithPermissionsMode(PermissionsMode&& value) { SetPermissionsMode(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; PermissionsMode m_permissionsMode; bool m_permissionsModeHasBeenSet = false; }; } // namespace Model } // namespace QLDB } // namespace Aws