#[non_exhaustive]pub struct UpdateLedgerPermissionsModeInput {
pub name: Option<String>,
pub permissions_mode: Option<PermissionsMode>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the ledger.
permissions_mode: Option<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.
Implementations
sourceimpl UpdateLedgerPermissionsModeInput
impl UpdateLedgerPermissionsModeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateLedgerPermissionsMode, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateLedgerPermissionsMode, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateLedgerPermissionsMode
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateLedgerPermissionsModeInput
sourceimpl UpdateLedgerPermissionsModeInput
impl UpdateLedgerPermissionsModeInput
sourcepub fn permissions_mode(&self) -> Option<&PermissionsMode>
pub fn permissions_mode(&self) -> Option<&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.
Trait Implementations
sourceimpl Clone for UpdateLedgerPermissionsModeInput
impl Clone for UpdateLedgerPermissionsModeInput
sourcefn clone(&self) -> UpdateLedgerPermissionsModeInput
fn clone(&self) -> UpdateLedgerPermissionsModeInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<UpdateLedgerPermissionsModeInput> for UpdateLedgerPermissionsModeInput
impl PartialEq<UpdateLedgerPermissionsModeInput> for UpdateLedgerPermissionsModeInput
sourcefn eq(&self, other: &UpdateLedgerPermissionsModeInput) -> bool
fn eq(&self, other: &UpdateLedgerPermissionsModeInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateLedgerPermissionsModeInput) -> bool
fn ne(&self, other: &UpdateLedgerPermissionsModeInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpdateLedgerPermissionsModeInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateLedgerPermissionsModeInput
impl Send for UpdateLedgerPermissionsModeInput
impl Sync for UpdateLedgerPermissionsModeInput
impl Unpin for UpdateLedgerPermissionsModeInput
impl UnwindSafe for UpdateLedgerPermissionsModeInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more