Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
Synopsis
- data DescribeLedger = DescribeLedger' {}
- newDescribeLedger :: Text -> DescribeLedger
- describeLedger_name :: Lens' DescribeLedger Text
- data DescribeLedgerResponse = DescribeLedgerResponse' {}
- newDescribeLedgerResponse :: Int -> DescribeLedgerResponse
- describeLedgerResponse_state :: Lens' DescribeLedgerResponse (Maybe LedgerState)
- describeLedgerResponse_deletionProtection :: Lens' DescribeLedgerResponse (Maybe Bool)
- describeLedgerResponse_arn :: Lens' DescribeLedgerResponse (Maybe Text)
- describeLedgerResponse_encryptionDescription :: Lens' DescribeLedgerResponse (Maybe LedgerEncryptionDescription)
- describeLedgerResponse_name :: Lens' DescribeLedgerResponse (Maybe Text)
- describeLedgerResponse_creationDateTime :: Lens' DescribeLedgerResponse (Maybe UTCTime)
- describeLedgerResponse_permissionsMode :: Lens' DescribeLedgerResponse (Maybe PermissionsMode)
- describeLedgerResponse_httpStatus :: Lens' DescribeLedgerResponse Int
Creating a Request
data DescribeLedger Source #
See: newDescribeLedger
smart constructor.
Instances
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:
$sel:name: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.
DescribeLedgerResponse' | |
|
Instances
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:
$sel:state:DescribeLedgerResponse'
, describeLedgerResponse_state
- The current status of the ledger.
$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:arn:DescribeLedgerResponse'
, describeLedgerResponse_arn
- The Amazon Resource Name (ARN) for the ledger.
$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).
$sel:name:DescribeLedger'
, describeLedgerResponse_name
- The name of the ledger.
$sel:creationDateTime: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:permissionsMode:DescribeLedgerResponse'
, describeLedgerResponse_permissionsMode
- The permissions mode of the ledger.
$sel:httpStatus:DescribeLedgerResponse'
, describeLedgerResponse_httpStatus
- The response's http status code.
Response Lenses
describeLedgerResponse_state :: Lens' DescribeLedgerResponse (Maybe LedgerState) Source #
The current status of the ledger.
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_arn :: Lens' DescribeLedgerResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the ledger.
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).
describeLedgerResponse_name :: Lens' DescribeLedgerResponse (Maybe Text) Source #
The name of 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_permissionsMode :: Lens' DescribeLedgerResponse (Maybe PermissionsMode) Source #
The permissions mode of the ledger.
describeLedgerResponse_httpStatus :: Lens' DescribeLedgerResponse Int Source #
The response's http status code.