Skip to content

Commit d0e1e2e

Browse files
author
AWS
committed
Amazon QLDB Update: Amazon QLDB now supports ledgers encrypted with customer managed KMS keys. Changes in CreateLedger, UpdateLedger and DescribeLedger APIs to support the changes.
1 parent 009da00 commit d0e1e2e

File tree

2 files changed

+71
-11
lines changed

2 files changed

+71
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon QLDB",
4+
"contributor": "",
5+
"description": "Amazon QLDB now supports ledgers encrypted with customer managed KMS keys. Changes in CreateLedger, UpdateLedger and DescribeLedger APIs to support the changes."
6+
}

services/qldb/src/main/resources/codegen-resources/service-2.json

Lines changed: 65 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{"shape":"LimitExceededException"},
4343
{"shape":"ResourceInUseException"}
4444
],
45-
"documentation":"<p>Creates a new ledger in your AWS account in the current Region.</p>"
45+
"documentation":"<p>Creates a new ledger in your account in the current Region.</p>"
4646
},
4747
"DeleteLedger":{
4848
"name":"DeleteLedger",
@@ -99,7 +99,7 @@
9999
{"shape":"InvalidParameterException"},
100100
{"shape":"ResourceNotFoundException"}
101101
],
102-
"documentation":"<p>Returns information about a ledger, including its state and when it was created.</p>"
102+
"documentation":"<p>Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.</p>"
103103
},
104104
"ExportJournalToS3":{
105105
"name":"ExportJournalToS3",
@@ -183,7 +183,7 @@
183183
},
184184
"input":{"shape":"ListJournalS3ExportsRequest"},
185185
"output":{"shape":"ListJournalS3ExportsResponse"},
186-
"documentation":"<p>Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS account and Region.</p> <p>This action returns a maximum of <code>MaxResults</code> items, and is paginated so that you can retrieve all the items by calling <code>ListJournalS3Exports</code> multiple times.</p> <p>This action does not return any expired export jobs. For more information, see <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration\">Export job expiration</a> in the <i>Amazon QLDB Developer Guide</i>.</p>"
186+
"documentation":"<p>Returns an array of journal export job descriptions for all ledgers that are associated with the current account and Region.</p> <p>This action returns a maximum of <code>MaxResults</code> items, and is paginated so that you can retrieve all the items by calling <code>ListJournalS3Exports</code> multiple times.</p> <p>This action does not return any expired export jobs. For more information, see <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration\">Export job expiration</a> in the <i>Amazon QLDB Developer Guide</i>.</p>"
187187
},
188188
"ListJournalS3ExportsForLedger":{
189189
"name":"ListJournalS3ExportsForLedger",
@@ -203,7 +203,7 @@
203203
},
204204
"input":{"shape":"ListLedgersRequest"},
205205
"output":{"shape":"ListLedgersResponse"},
206-
"documentation":"<p>Returns an array of ledger summaries that are associated with the current AWS account and Region.</p> <p>This action returns a maximum of 100 items and is paginated so that you can retrieve all the items by calling <code>ListLedgers</code> multiple times.</p>"
206+
"documentation":"<p>Returns an array of ledger summaries that are associated with the current account and Region.</p> <p>This action returns a maximum of 100 items and is paginated so that you can retrieve all the items by calling <code>ListLedgers</code> multiple times.</p>"
207207
},
208208
"ListTagsForResource":{
209209
"name":"ListTagsForResource",
@@ -337,7 +337,7 @@
337337
"members":{
338338
"Name":{
339339
"shape":"LedgerName",
340-
"documentation":"<p>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.</p> <p>Naming constraints for ledger names are defined in <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming\">Quotas in Amazon QLDB</a> in the <i>Amazon QLDB Developer Guide</i>.</p>"
340+
"documentation":"<p>The name of the ledger that you want to create. The name must be unique among all of the ledgers in your account in the current Region.</p> <p>Naming constraints for ledger names are defined in <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming\">Quotas in Amazon QLDB</a> in the <i>Amazon QLDB Developer Guide</i>.</p>"
341341
},
342342
"Tags":{
343343
"shape":"Tags",
@@ -350,6 +350,10 @@
350350
"DeletionProtection":{
351351
"shape":"DeletionProtection",
352352
"documentation":"<p>The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (<code>true</code>) by default.</p> <p>If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the <code>UpdateLedger</code> operation to set the flag to <code>false</code>.</p>"
353+
},
354+
"KmsKey":{
355+
"shape":"KmsKey",
356+
"documentation":"<p>The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For more information, see <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html\">Encryption at rest</a> in the <i>Amazon QLDB Developer Guide</i>.</p> <p>Use one of the following options to specify this parameter:</p> <ul> <li> <p> <code>AWS_OWNED_KMS_KEY</code>: Use an KMS key that is owned and managed by Amazon Web Services on your behalf.</p> </li> <li> <p> <b>Undefined</b>: By default, use an Amazon Web Services owned KMS key.</p> </li> <li> <p> <b>A valid symmetric customer managed KMS key</b>: Use the specified KMS key in your account that you create, own, and manage.</p> <p>Amazon QLDB does not support asymmetric keys. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html\">Using symmetric and asymmetric keys</a> in the <i>Key Management Service Developer Guide</i>.</p> </li> </ul> <p>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 <code>\"alias/\"</code>. To specify a key in a different account, you must use the key ARN or alias ARN.</p> <p>For example:</p> <ul> <li> <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li> <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li> <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code> </p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id\">Key identifiers (KeyId)</a> in the <i>Key Management Service Developer Guide</i>.</p>"
353357
}
354358
}
355359
},
@@ -379,6 +383,10 @@
379383
"DeletionProtection":{
380384
"shape":"DeletionProtection",
381385
"documentation":"<p>The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (<code>true</code>) by default.</p> <p>If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the <code>UpdateLedger</code> operation to set the flag to <code>false</code>.</p>"
386+
},
387+
"KmsKeyArn":{
388+
"shape":"Arn",
389+
"documentation":"<p>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.</p>"
382390
}
383391
}
384392
},
@@ -494,6 +502,10 @@
494502
"DeletionProtection":{
495503
"shape":"DeletionProtection",
496504
"documentation":"<p>The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (<code>true</code>) by default.</p> <p>If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the <code>UpdateLedger</code> operation to set the flag to <code>false</code>.</p>"
505+
},
506+
"EncryptionDescription":{
507+
"shape":"LedgerEncryptionDescription",
508+
"documentation":"<p>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).</p>"
497509
}
498510
}
499511
},
@@ -502,6 +514,14 @@
502514
"max":32,
503515
"min":32
504516
},
517+
"EncryptionStatus":{
518+
"type":"string",
519+
"enum":[
520+
"ENABLED",
521+
"UPDATING",
522+
"KMS_KEY_INACCESSIBLE"
523+
]
524+
},
505525
"ErrorCause":{
506526
"type":"string",
507527
"enum":[
@@ -540,7 +560,7 @@
540560
},
541561
"RoleArn":{
542562
"shape":"Arn",
543-
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:</p> <ul> <li> <p>Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.</p> </li> <li> <p>(Optional) Use your customer master key (CMK) in AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.</p> </li> </ul>"
563+
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:</p> <ul> <li> <p>Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.</p> </li> <li> <p>(Optional) Use your customer master key (CMK) in Key Management Service (KMS) for server-side encryption of your exported data.</p> </li> </ul>"
544564
}
545565
}
546566
},
@@ -714,7 +734,7 @@
714734
},
715735
"ExclusiveEndTime":{
716736
"shape":"Timestamp",
717-
"documentation":"<p>The exclusive date and time that specifies when the stream ends. If this parameter is blank, the stream runs indefinitely until you cancel it.</p>"
737+
"documentation":"<p>The exclusive date and time that specifies when the stream ends. If this parameter is undefined, the stream runs indefinitely until you cancel it.</p>"
718738
},
719739
"RoleArn":{
720740
"shape":"Arn",
@@ -791,7 +811,7 @@
791811
"S3ExportConfiguration":{"shape":"S3ExportConfiguration"},
792812
"RoleArn":{
793813
"shape":"Arn",
794-
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:</p> <ul> <li> <p>Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.</p> </li> <li> <p>(Optional) Use your customer master key (CMK) in AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.</p> </li> </ul>"
814+
"documentation":"<p>The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:</p> <ul> <li> <p>Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.</p> </li> <li> <p>(Optional) Use your customer master key (CMK) in Key Management Service (KMS) for server-side encryption of your exported data.</p> </li> </ul>"
795815
}
796816
},
797817
"documentation":"<p>Information about a journal export job, including the ledger name, export ID, creation time, current status, and the parameters of the original export creation request.</p>"
@@ -815,6 +835,32 @@
815835
},
816836
"documentation":"<p>The configuration settings of the Amazon Kinesis Data Streams destination for an Amazon QLDB journal stream.</p>"
817837
},
838+
"KmsKey":{
839+
"type":"string",
840+
"max":1600
841+
},
842+
"LedgerEncryptionDescription":{
843+
"type":"structure",
844+
"required":[
845+
"KmsKeyArn",
846+
"EncryptionStatus"
847+
],
848+
"members":{
849+
"KmsKeyArn":{
850+
"shape":"Arn",
851+
"documentation":"<p>The Amazon Resource Name (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.</p>"
852+
},
853+
"EncryptionStatus":{
854+
"shape":"EncryptionStatus",
855+
"documentation":"<p>The current state of encryption at rest for the ledger. This can be one of the following values:</p> <ul> <li> <p> <code>ENABLED</code>: Encryption is fully enabled using the specified key.</p> </li> <li> <p> <code>UPDATING</code>: The ledger is actively processing the specified key change.</p> <p>Key changes in QLDB are asynchronous. The ledger is fully accessible without any performance impact while the key change is being processed. The amount of time it takes to update a key varies depending on the ledger size.</p> </li> <li> <p> <code>KMS_KEY_INACCESSIBLE</code>: The specified customer managed KMS key is not accessible, and the ledger is impaired. Either the key was disabled or deleted, or the grants on the key were revoked. When a ledger is impaired, it is not accessible and does not accept any read or write requests.</p> <p>An impaired ledger automatically returns to an active state after you restore the grants on the key, or re-enable the key that was disabled. However, deleting a customer managed KMS key is irreversible. After a key is deleted, you can no longer access the ledgers that are protected with that key, and the data becomes unrecoverable permanently.</p> </li> </ul>"
856+
},
857+
"InaccessibleKmsKeyDateTime":{
858+
"shape":"Timestamp",
859+
"documentation":"<p>The date and time, in epoch time format, when the KMS key first became inaccessible, in the case of an error. (Epoch time format is the number of seconds that have elapsed since 12:00:00 AM January 1, 1970 UTC.)</p> <p>This parameter is undefined if the KMS key is accessible.</p>"
860+
}
861+
},
862+
"documentation":"<p>Information about the encryption of data at rest in an Amazon QLDB ledger. This includes the current status, the key in Key Management Service (KMS), and when the key became inaccessible (in the case of an error).</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html\">Encryption at rest</a> in the <i>Amazon QLDB Developer Guide</i>.</p>"
863+
},
818864
"LedgerList":{
819865
"type":"list",
820866
"member":{"shape":"LedgerSummary"}
@@ -961,7 +1007,7 @@
9611007
"members":{
9621008
"JournalS3Exports":{
9631009
"shape":"JournalS3ExportList",
964-
"documentation":"<p>The array of journal export job descriptions for all ledgers that are associated with the current AWS account and Region.</p>"
1010+
"documentation":"<p>The array of journal export job descriptions for all ledgers that are associated with the current account and Region.</p>"
9651011
},
9661012
"NextToken":{
9671013
"shape":"NextToken",
@@ -991,7 +1037,7 @@
9911037
"members":{
9921038
"Ledgers":{
9931039
"shape":"LedgerList",
994-
"documentation":"<p>The array of ledger summaries that are associated with the current AWS account and Region.</p>"
1040+
"documentation":"<p>The array of ledger summaries that are associated with the current account and Region.</p>"
9951041
},
9961042
"NextToken":{
9971043
"shape":"NextToken",
@@ -1125,7 +1171,7 @@
11251171
},
11261172
"KmsKeyArn":{
11271173
"shape":"Arn",
1128-
"documentation":"<p>The Amazon Resource Name (ARN) for a symmetric customer master key (CMK) in AWS Key Management Service (AWS KMS). Amazon S3 does not support asymmetric CMKs.</p> <p>You must provide a <code>KmsKeyArn</code> if you specify <code>SSE_KMS</code> as the <code>ObjectEncryptionType</code>.</p> <p> <code>KmsKeyArn</code> is not required if you specify <code>SSE_S3</code> as the <code>ObjectEncryptionType</code>.</p>"
1174+
"documentation":"<p>The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) in Key Management Service (KMS). Amazon S3 does not support asymmetric CMKs.</p> <p>You must provide a <code>KmsKeyArn</code> if you specify <code>SSE_KMS</code> as the <code>ObjectEncryptionType</code>.</p> <p> <code>KmsKeyArn</code> is not required if you specify <code>SSE_S3</code> as the <code>ObjectEncryptionType</code>.</p>"
11291175
}
11301176
},
11311177
"documentation":"<p>The encryption settings that are used by a journal export job to write data in an Amazon Simple Storage Service (Amazon S3) bucket.</p>"
@@ -1362,6 +1408,10 @@
13621408
"DeletionProtection":{
13631409
"shape":"DeletionProtection",
13641410
"documentation":"<p>The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (<code>true</code>) by default.</p> <p>If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the <code>UpdateLedger</code> operation to set the flag to <code>false</code>.</p>"
1411+
},
1412+
"KmsKey":{
1413+
"shape":"KmsKey",
1414+
"documentation":"<p>The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For more information, see <a href=\"https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html\">Encryption at rest</a> in the <i>Amazon QLDB Developer Guide</i>.</p> <p>Use one of the following options to specify this parameter:</p> <ul> <li> <p> <code>AWS_OWNED_KMS_KEY</code>: Use an KMS key that is owned and managed by Amazon Web Services on your behalf.</p> </li> <li> <p> <b>Undefined</b>: Make no changes to the KMS key of the ledger.</p> </li> <li> <p> <b>A valid symmetric customer managed KMS key</b>: Use the specified KMS key in your account that you create, own, and manage.</p> <p>Amazon QLDB does not support asymmetric keys. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html\">Using symmetric and asymmetric keys</a> in the <i>Key Management Service Developer Guide</i>.</p> </li> </ul> <p>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 <code>\"alias/\"</code>. To specify a key in a different account, you must use the key ARN or alias ARN.</p> <p>For example:</p> <ul> <li> <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li> <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li> <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code> </p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id\">Key identifiers (KeyId)</a> in the <i>Key Management Service Developer Guide</i>.</p>"
13651415
}
13661416
}
13671417
},
@@ -1387,6 +1437,10 @@
13871437
"DeletionProtection":{
13881438
"shape":"DeletionProtection",
13891439
"documentation":"<p>The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (<code>true</code>) by default.</p> <p>If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the <code>UpdateLedger</code> operation to set the flag to <code>false</code>.</p>"
1440+
},
1441+
"EncryptionDescription":{
1442+
"shape":"LedgerEncryptionDescription",
1443+
"documentation":"<p>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).</p>"
13901444
}
13911445
}
13921446
},

0 commit comments

Comments
 (0)