Skip to content

Commit 51d1f59

Browse files
committed
feat: add getKeyLastUsage method to KMS service
1 parent 9f06f42 commit 51d1f59

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.changeset/empty-kangaroos-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect-aws/client-kms": patch
3+
---
4+
5+
update kms service with new method

packages/client-kms/src/KMSService.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ import {
7777
GenerateRandomCommand,
7878
type GenerateRandomCommandInput,
7979
type GenerateRandomCommandOutput,
80+
GetKeyLastUsageCommand,
81+
type GetKeyLastUsageCommandInput,
82+
type GetKeyLastUsageCommandOutput,
8083
GetKeyPolicyCommand,
8184
type GetKeyPolicyCommandInput,
8285
type GetKeyPolicyCommandOutput,
@@ -260,6 +263,7 @@ const commands = {
260263
GenerateDataKeyWithoutPlaintextCommand,
261264
GenerateMacCommand,
262265
GenerateRandomCommand,
266+
GetKeyLastUsageCommand,
263267
GetKeyPolicyCommand,
264268
GetKeyRotationStatusCommand,
265269
GetParametersForImportCommand,
@@ -779,6 +783,17 @@ interface KMSService$ {
779783
| UnsupportedOperationError
780784
>;
781785

786+
/**
787+
* @see {@link GetKeyLastUsageCommand}
788+
*/
789+
getKeyLastUsage(
790+
args: GetKeyLastUsageCommandInput,
791+
options?: HttpHandlerOptions,
792+
): Effect.Effect<
793+
GetKeyLastUsageCommandOutput,
794+
Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | NotFoundError
795+
>;
796+
782797
/**
783798
* @see {@link GetKeyPolicyCommand}
784799
*/

0 commit comments

Comments
 (0)