{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-qldb/refs/heads/main/json-schema/amazon-qldb-create-ledger-request-schema.json", "title": "CreateLedgerRequest", "description": "CreateLedgerRequest schema from Amazon QLDB API", "type": "object", "properties": { "Name": { "allOf": [ { "$ref": "#/components/schemas/LedgerName" }, { "description": "

The name of the ledger that you want to create. The name must be unique among all of the ledgers in your Amazon Web Services account in the current Region.

Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.

" } ] }, "Tags": { "allOf": [ { "$ref": "#/components/schemas/Tags" }, { "description": "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." } ] }, "PermissionsMode": { "allOf": [ { "$ref": "#/components/schemas/PermissionsMode" }, { "description": "

The permissions mode to assign to the ledger that you want to create. This parameter can have one of the following values:

We strongly recommend using the STANDARD permissions mode to maximize the security of your ledger data.

" } ] }, "DeletionProtection": { "allOf": [ { "$ref": "#/components/schemas/DeletionProtection" }, { "description": "

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.

" } ] }, "KmsKey": { "allOf": [ { "$ref": "#/components/schemas/KmsKey" }, { "description": "

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For more information, see Encryption at rest in the Amazon QLDB Developer Guide.

Use one of the following options to specify this parameter:

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide.

" } ] } }, "required": [ "Name", "PermissionsMode" ] }