Struct rusoto_qldb::CreateLedgerRequest
source · [−]pub struct CreateLedgerRequest {
pub deletion_protection: Option<bool>,
pub name: String,
pub permissions_mode: String,
pub tags: Option<HashMap<String, String>>,
}
Fields
deletion_protection: Option<bool>
The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true
) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger
operation to set the flag to false
.
name: String
The name of the ledger that you want to create. The name must be unique among all of your ledgers in the current AWS Region.
Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.
permissions_mode: String
The permissions mode to assign to the ledger that you want to create. This parameter can have one of the following values:
-
ALLOWALL
: 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,ALLOWALL
) 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.
The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.
Trait Implementations
sourceimpl Clone for CreateLedgerRequest
impl Clone for CreateLedgerRequest
sourcefn clone(&self) -> CreateLedgerRequest
fn clone(&self) -> CreateLedgerRequest
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 Debug for CreateLedgerRequest
impl Debug for CreateLedgerRequest
sourceimpl Default for CreateLedgerRequest
impl Default for CreateLedgerRequest
sourcefn default() -> CreateLedgerRequest
fn default() -> CreateLedgerRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateLedgerRequest> for CreateLedgerRequest
impl PartialEq<CreateLedgerRequest> for CreateLedgerRequest
sourcefn eq(&self, other: &CreateLedgerRequest) -> bool
fn eq(&self, other: &CreateLedgerRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateLedgerRequest) -> bool
fn ne(&self, other: &CreateLedgerRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateLedgerRequest
impl Serialize for CreateLedgerRequest
impl StructuralPartialEq for CreateLedgerRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateLedgerRequest
impl Send for CreateLedgerRequest
impl Sync for CreateLedgerRequest
impl Unpin for CreateLedgerRequest
impl UnwindSafe for CreateLedgerRequest
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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