Class UpdateLedgerPermissionsModeRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.qldb.model.QldbRequest
-
- software.amazon.awssdk.services.qldb.model.UpdateLedgerPermissionsModeRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateLedgerPermissionsModeRequest.Builder,UpdateLedgerPermissionsModeRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateLedgerPermissionsModeRequest extends QldbRequest implements ToCopyableBuilder<UpdateLedgerPermissionsModeRequest.Builder,UpdateLedgerPermissionsModeRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateLedgerPermissionsModeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateLedgerPermissionsModeRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the ledger.PermissionsModepermissionsMode()The permissions mode to assign to the ledger.StringpermissionsModeAsString()The permissions mode to assign to the ledger.List<SdkField<?>>sdkFields()static Class<? extends UpdateLedgerPermissionsModeRequest.Builder>serializableBuilderClass()UpdateLedgerPermissionsModeRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the ledger.
- Returns:
- The name of the ledger.
-
permissionsMode
public final 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
SendCommandAPI 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
SendCommandAPI 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
STANDARDpermissions mode to maximize the security of your ledger data.If the service returns an enum value that is not available in the current SDK version,
permissionsModewill returnPermissionsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionsModeAsString().- Returns:
- 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
SendCommandAPI 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
SendCommandAPI 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
STANDARDpermissions mode to maximize the security of your ledger data. -
- See Also:
PermissionsMode
-
-
permissionsModeAsString
public final String permissionsModeAsString()
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
SendCommandAPI 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
SendCommandAPI 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
STANDARDpermissions mode to maximize the security of your ledger data.If the service returns an enum value that is not available in the current SDK version,
permissionsModewill returnPermissionsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionsModeAsString().- Returns:
- 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
SendCommandAPI 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
SendCommandAPI 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
STANDARDpermissions mode to maximize the security of your ledger data. -
- See Also:
PermissionsMode
-
-
toBuilder
public UpdateLedgerPermissionsModeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateLedgerPermissionsModeRequest.Builder,UpdateLedgerPermissionsModeRequest>- Specified by:
toBuilderin classQldbRequest
-
builder
public static UpdateLedgerPermissionsModeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateLedgerPermissionsModeRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-