amazonka-qldb-2.0: Amazon QLDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.QLDB.DescribeLedger

Description

Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.

Synopsis

Creating a Request

data DescribeLedger Source #

See: newDescribeLedger smart constructor.

Constructors

DescribeLedger' 

Fields

  • name :: Text

    The name of the ledger that you want to describe.

Instances

Instances details
ToHeaders DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

ToPath DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

ToQuery DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

AWSRequest DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Associated Types

type AWSResponse DescribeLedger #

Generic DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Associated Types

type Rep DescribeLedger :: Type -> Type #

Read DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Show DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

NFData DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Methods

rnf :: DescribeLedger -> () #

Eq DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Hashable DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

type AWSResponse DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

type Rep DescribeLedger Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

type Rep DescribeLedger = D1 ('MetaData "DescribeLedger" "Amazonka.QLDB.DescribeLedger" "amazonka-qldb-2.0-GHDpAUfL5Gp5EFIat3BpxK" 'False) (C1 ('MetaCons "DescribeLedger'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeLedger Source #

Create a value of DescribeLedger with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeLedger, describeLedger_name - The name of the ledger that you want to describe.

Request Lenses

describeLedger_name :: Lens' DescribeLedger Text Source #

The name of the ledger that you want to describe.

Destructuring the Response

data DescribeLedgerResponse Source #

See: newDescribeLedgerResponse smart constructor.

Constructors

DescribeLedgerResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) for the ledger.

  • creationDateTime :: Maybe POSIX

    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.)

  • deletionProtection :: Maybe 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.

  • encryptionDescription :: Maybe LedgerEncryptionDescription

    Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).

  • name :: Maybe Text

    The name of the ledger.

  • permissionsMode :: Maybe PermissionsMode

    The permissions mode of the ledger.

  • state :: Maybe LedgerState

    The current status of the ledger.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeLedgerResponse Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Associated Types

type Rep DescribeLedgerResponse :: Type -> Type #

Read DescribeLedgerResponse Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Show DescribeLedgerResponse Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

NFData DescribeLedgerResponse Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

Methods

rnf :: DescribeLedgerResponse -> () #

Eq DescribeLedgerResponse Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

type Rep DescribeLedgerResponse Source # 
Instance details

Defined in Amazonka.QLDB.DescribeLedger

newDescribeLedgerResponse Source #

Create a value of DescribeLedgerResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeLedgerResponse, describeLedgerResponse_arn - The Amazon Resource Name (ARN) for the ledger.

DescribeLedgerResponse, describeLedgerResponse_creationDateTime - 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.)

$sel:deletionProtection:DescribeLedgerResponse', describeLedgerResponse_deletionProtection - 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.

$sel:encryptionDescription:DescribeLedgerResponse', describeLedgerResponse_encryptionDescription - Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).

DescribeLedger, describeLedgerResponse_name - The name of the ledger.

$sel:permissionsMode:DescribeLedgerResponse', describeLedgerResponse_permissionsMode - The permissions mode of the ledger.

DescribeLedgerResponse, describeLedgerResponse_state - The current status of the ledger.

$sel:httpStatus:DescribeLedgerResponse', describeLedgerResponse_httpStatus - The response's http status code.

Response Lenses

describeLedgerResponse_arn :: Lens' DescribeLedgerResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) for the ledger.

describeLedgerResponse_creationDateTime :: Lens' DescribeLedgerResponse (Maybe UTCTime) Source #

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.)

describeLedgerResponse_deletionProtection :: Lens' DescribeLedgerResponse (Maybe Bool) Source #

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.

describeLedgerResponse_encryptionDescription :: Lens' DescribeLedgerResponse (Maybe LedgerEncryptionDescription) Source #

Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).