Struct aws_sdk_qldb::output::CreateLedgerOutput
source · [−]#[non_exhaustive]pub struct CreateLedgerOutput {
pub name: Option<String>,
pub arn: Option<String>,
pub state: Option<LedgerState>,
pub creation_date_time: Option<DateTime>,
pub permissions_mode: Option<PermissionsMode>,
pub deletion_protection: Option<bool>,
pub kms_key_arn: Option<String>,
}
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.
arn: Option<String>
The Amazon Resource Name (ARN) for the ledger.
state: Option<LedgerState>
The current status of the ledger.
creation_date_time: Option<DateTime>
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
permissions_mode: Option<PermissionsMode>
The permissions mode of the ledger that you created.
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
.
kms_key_arn: Option<String>
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
Implementations
sourceimpl CreateLedgerOutput
impl CreateLedgerOutput
sourcepub fn state(&self) -> Option<&LedgerState>
pub fn state(&self) -> Option<&LedgerState>
The current status of the ledger.
sourcepub fn creation_date_time(&self) -> Option<&DateTime>
pub fn creation_date_time(&self) -> Option<&DateTime>
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
sourcepub fn permissions_mode(&self) -> Option<&PermissionsMode>
pub fn permissions_mode(&self) -> Option<&PermissionsMode>
The permissions mode of the ledger that you created.
sourcepub fn deletion_protection(&self) -> Option<bool>
pub fn deletion_protection(&self) -> 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
.
sourcepub fn kms_key_arn(&self) -> Option<&str>
pub fn kms_key_arn(&self) -> Option<&str>
The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.
sourceimpl CreateLedgerOutput
impl CreateLedgerOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateLedgerOutput
Trait Implementations
sourceimpl Clone for CreateLedgerOutput
impl Clone for CreateLedgerOutput
sourcefn clone(&self) -> CreateLedgerOutput
fn clone(&self) -> CreateLedgerOutput
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 CreateLedgerOutput
impl Debug for CreateLedgerOutput
sourceimpl PartialEq<CreateLedgerOutput> for CreateLedgerOutput
impl PartialEq<CreateLedgerOutput> for CreateLedgerOutput
sourcefn eq(&self, other: &CreateLedgerOutput) -> bool
fn eq(&self, other: &CreateLedgerOutput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateLedgerOutput) -> bool
fn ne(&self, other: &CreateLedgerOutput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateLedgerOutput
Auto Trait Implementations
impl RefUnwindSafe for CreateLedgerOutput
impl Send for CreateLedgerOutput
impl Sync for CreateLedgerOutput
impl Unpin for CreateLedgerOutput
impl UnwindSafe for CreateLedgerOutput
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