@aws-sdk/client-kms 3.218.0 → 3.220.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +12 -11
  2. package/dist-cjs/endpoint/ruleset.js +1 -1
  3. package/dist-cjs/models/models_0.js +206 -3
  4. package/dist-cjs/protocols/Aws_json1_1.js +284 -0
  5. package/dist-es/endpoint/ruleset.js +1 -1
  6. package/dist-es/models/models_0.js +187 -0
  7. package/dist-es/protocols/Aws_json1_1.js +285 -1
  8. package/dist-types/KMS.d.ts +457 -312
  9. package/dist-types/KMSClient.d.ts +12 -11
  10. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -2
  11. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +43 -17
  12. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +51 -13
  14. package/dist-types/commands/CreateGrantCommand.d.ts +1 -2
  15. package/dist-types/commands/CreateKeyCommand.d.ts +76 -35
  16. package/dist-types/commands/DecryptCommand.d.ts +16 -17
  17. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +21 -16
  19. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +22 -17
  20. package/dist-types/commands/DescribeKeyCommand.d.ts +7 -3
  21. package/dist-types/commands/DisableKeyCommand.d.ts +3 -2
  22. package/dist-types/commands/DisableKeyRotationCommand.d.ts +4 -6
  23. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +12 -12
  24. package/dist-types/commands/EnableKeyCommand.d.ts +1 -2
  25. package/dist-types/commands/EnableKeyRotationCommand.d.ts +6 -8
  26. package/dist-types/commands/EncryptCommand.d.ts +11 -9
  27. package/dist-types/commands/GenerateDataKeyCommand.d.ts +1 -2
  28. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +8 -10
  29. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +4 -6
  30. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +9 -2
  31. package/dist-types/commands/GenerateMacCommand.d.ts +14 -14
  32. package/dist-types/commands/GenerateRandomCommand.d.ts +6 -3
  33. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +3 -3
  34. package/dist-types/commands/GetParametersForImportCommand.d.ts +3 -3
  35. package/dist-types/commands/GetPublicKeyCommand.d.ts +5 -4
  36. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +8 -8
  37. package/dist-types/commands/ReEncryptCommand.d.ts +5 -5
  38. package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -4
  39. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +11 -8
  40. package/dist-types/commands/SignCommand.d.ts +8 -6
  41. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateAliasCommand.d.ts +6 -6
  44. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +58 -38
  45. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -2
  46. package/dist-types/commands/VerifyCommand.d.ts +5 -6
  47. package/dist-types/commands/VerifyMacCommand.d.ts +6 -6
  48. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  49. package/dist-types/models/models_0.d.ts +925 -224
  50. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  51. package/dist-types/ts3.4/models/models_0.d.ts +166 -0
  52. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { KMSServiceException as __BaseException } from "../models/KMSServiceException";
4
- import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, } from "../models/models_0";
4
+ import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException, } from "../models/models_0";
5
5
  export const serializeAws_json1_1CancelKeyDeletionCommand = async (input, context) => {
6
6
  const headers = {
7
7
  "content-type": "application/x-amz-json-1.1",
@@ -631,6 +631,36 @@ const deserializeAws_json1_1CreateCustomKeyStoreCommandError = async (output, co
631
631
  case "KMSInternalException":
632
632
  case "com.amazonaws.kms#KMSInternalException":
633
633
  throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
634
+ case "LimitExceededException":
635
+ case "com.amazonaws.kms#LimitExceededException":
636
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
637
+ case "XksProxyIncorrectAuthenticationCredentialException":
638
+ case "com.amazonaws.kms#XksProxyIncorrectAuthenticationCredentialException":
639
+ throw await deserializeAws_json1_1XksProxyIncorrectAuthenticationCredentialExceptionResponse(parsedOutput, context);
640
+ case "XksProxyInvalidConfigurationException":
641
+ case "com.amazonaws.kms#XksProxyInvalidConfigurationException":
642
+ throw await deserializeAws_json1_1XksProxyInvalidConfigurationExceptionResponse(parsedOutput, context);
643
+ case "XksProxyInvalidResponseException":
644
+ case "com.amazonaws.kms#XksProxyInvalidResponseException":
645
+ throw await deserializeAws_json1_1XksProxyInvalidResponseExceptionResponse(parsedOutput, context);
646
+ case "XksProxyUriEndpointInUseException":
647
+ case "com.amazonaws.kms#XksProxyUriEndpointInUseException":
648
+ throw await deserializeAws_json1_1XksProxyUriEndpointInUseExceptionResponse(parsedOutput, context);
649
+ case "XksProxyUriInUseException":
650
+ case "com.amazonaws.kms#XksProxyUriInUseException":
651
+ throw await deserializeAws_json1_1XksProxyUriInUseExceptionResponse(parsedOutput, context);
652
+ case "XksProxyUriUnreachableException":
653
+ case "com.amazonaws.kms#XksProxyUriUnreachableException":
654
+ throw await deserializeAws_json1_1XksProxyUriUnreachableExceptionResponse(parsedOutput, context);
655
+ case "XksProxyVpcEndpointServiceInUseException":
656
+ case "com.amazonaws.kms#XksProxyVpcEndpointServiceInUseException":
657
+ throw await deserializeAws_json1_1XksProxyVpcEndpointServiceInUseExceptionResponse(parsedOutput, context);
658
+ case "XksProxyVpcEndpointServiceInvalidConfigurationException":
659
+ case "com.amazonaws.kms#XksProxyVpcEndpointServiceInvalidConfigurationException":
660
+ throw await deserializeAws_json1_1XksProxyVpcEndpointServiceInvalidConfigurationExceptionResponse(parsedOutput, context);
661
+ case "XksProxyVpcEndpointServiceNotFoundException":
662
+ case "com.amazonaws.kms#XksProxyVpcEndpointServiceNotFoundException":
663
+ throw await deserializeAws_json1_1XksProxyVpcEndpointServiceNotFoundExceptionResponse(parsedOutput, context);
634
664
  default:
635
665
  const parsedBody = parsedOutput.body;
636
666
  throwDefaultError({
@@ -745,6 +775,15 @@ const deserializeAws_json1_1CreateKeyCommandError = async (output, context) => {
745
775
  case "UnsupportedOperationException":
746
776
  case "com.amazonaws.kms#UnsupportedOperationException":
747
777
  throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
778
+ case "XksKeyAlreadyInUseException":
779
+ case "com.amazonaws.kms#XksKeyAlreadyInUseException":
780
+ throw await deserializeAws_json1_1XksKeyAlreadyInUseExceptionResponse(parsedOutput, context);
781
+ case "XksKeyInvalidConfigurationException":
782
+ case "com.amazonaws.kms#XksKeyInvalidConfigurationException":
783
+ throw await deserializeAws_json1_1XksKeyInvalidConfigurationExceptionResponse(parsedOutput, context);
784
+ case "XksKeyNotFoundException":
785
+ case "com.amazonaws.kms#XksKeyNotFoundException":
786
+ throw await deserializeAws_json1_1XksKeyNotFoundExceptionResponse(parsedOutput, context);
748
787
  default:
749
788
  const parsedBody = parsedOutput.body;
750
789
  throwDefaultError({
@@ -1603,6 +1642,9 @@ const deserializeAws_json1_1GenerateRandomCommandError = async (output, context)
1603
1642
  case "KMSInternalException":
1604
1643
  case "com.amazonaws.kms#KMSInternalException":
1605
1644
  throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
1645
+ case "UnsupportedOperationException":
1646
+ case "com.amazonaws.kms#UnsupportedOperationException":
1647
+ throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
1606
1648
  default:
1607
1649
  const parsedBody = parsedOutput.body;
1608
1650
  throwDefaultError({
@@ -2677,6 +2719,33 @@ const deserializeAws_json1_1UpdateCustomKeyStoreCommandError = async (output, co
2677
2719
  case "KMSInternalException":
2678
2720
  case "com.amazonaws.kms#KMSInternalException":
2679
2721
  throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
2722
+ case "XksProxyIncorrectAuthenticationCredentialException":
2723
+ case "com.amazonaws.kms#XksProxyIncorrectAuthenticationCredentialException":
2724
+ throw await deserializeAws_json1_1XksProxyIncorrectAuthenticationCredentialExceptionResponse(parsedOutput, context);
2725
+ case "XksProxyInvalidConfigurationException":
2726
+ case "com.amazonaws.kms#XksProxyInvalidConfigurationException":
2727
+ throw await deserializeAws_json1_1XksProxyInvalidConfigurationExceptionResponse(parsedOutput, context);
2728
+ case "XksProxyInvalidResponseException":
2729
+ case "com.amazonaws.kms#XksProxyInvalidResponseException":
2730
+ throw await deserializeAws_json1_1XksProxyInvalidResponseExceptionResponse(parsedOutput, context);
2731
+ case "XksProxyUriEndpointInUseException":
2732
+ case "com.amazonaws.kms#XksProxyUriEndpointInUseException":
2733
+ throw await deserializeAws_json1_1XksProxyUriEndpointInUseExceptionResponse(parsedOutput, context);
2734
+ case "XksProxyUriInUseException":
2735
+ case "com.amazonaws.kms#XksProxyUriInUseException":
2736
+ throw await deserializeAws_json1_1XksProxyUriInUseExceptionResponse(parsedOutput, context);
2737
+ case "XksProxyUriUnreachableException":
2738
+ case "com.amazonaws.kms#XksProxyUriUnreachableException":
2739
+ throw await deserializeAws_json1_1XksProxyUriUnreachableExceptionResponse(parsedOutput, context);
2740
+ case "XksProxyVpcEndpointServiceInUseException":
2741
+ case "com.amazonaws.kms#XksProxyVpcEndpointServiceInUseException":
2742
+ throw await deserializeAws_json1_1XksProxyVpcEndpointServiceInUseExceptionResponse(parsedOutput, context);
2743
+ case "XksProxyVpcEndpointServiceInvalidConfigurationException":
2744
+ case "com.amazonaws.kms#XksProxyVpcEndpointServiceInvalidConfigurationException":
2745
+ throw await deserializeAws_json1_1XksProxyVpcEndpointServiceInvalidConfigurationExceptionResponse(parsedOutput, context);
2746
+ case "XksProxyVpcEndpointServiceNotFoundException":
2747
+ case "com.amazonaws.kms#XksProxyVpcEndpointServiceNotFoundException":
2748
+ throw await deserializeAws_json1_1XksProxyVpcEndpointServiceNotFoundExceptionResponse(parsedOutput, context);
2680
2749
  default:
2681
2750
  const parsedBody = parsedOutput.body;
2682
2751
  throwDefaultError({
@@ -3191,6 +3260,114 @@ const deserializeAws_json1_1UnsupportedOperationExceptionResponse = async (parse
3191
3260
  });
3192
3261
  return __decorateServiceException(exception, body);
3193
3262
  };
3263
+ const deserializeAws_json1_1XksKeyAlreadyInUseExceptionResponse = async (parsedOutput, context) => {
3264
+ const body = parsedOutput.body;
3265
+ const deserialized = deserializeAws_json1_1XksKeyAlreadyInUseException(body, context);
3266
+ const exception = new XksKeyAlreadyInUseException({
3267
+ $metadata: deserializeMetadata(parsedOutput),
3268
+ ...deserialized,
3269
+ });
3270
+ return __decorateServiceException(exception, body);
3271
+ };
3272
+ const deserializeAws_json1_1XksKeyInvalidConfigurationExceptionResponse = async (parsedOutput, context) => {
3273
+ const body = parsedOutput.body;
3274
+ const deserialized = deserializeAws_json1_1XksKeyInvalidConfigurationException(body, context);
3275
+ const exception = new XksKeyInvalidConfigurationException({
3276
+ $metadata: deserializeMetadata(parsedOutput),
3277
+ ...deserialized,
3278
+ });
3279
+ return __decorateServiceException(exception, body);
3280
+ };
3281
+ const deserializeAws_json1_1XksKeyNotFoundExceptionResponse = async (parsedOutput, context) => {
3282
+ const body = parsedOutput.body;
3283
+ const deserialized = deserializeAws_json1_1XksKeyNotFoundException(body, context);
3284
+ const exception = new XksKeyNotFoundException({
3285
+ $metadata: deserializeMetadata(parsedOutput),
3286
+ ...deserialized,
3287
+ });
3288
+ return __decorateServiceException(exception, body);
3289
+ };
3290
+ const deserializeAws_json1_1XksProxyIncorrectAuthenticationCredentialExceptionResponse = async (parsedOutput, context) => {
3291
+ const body = parsedOutput.body;
3292
+ const deserialized = deserializeAws_json1_1XksProxyIncorrectAuthenticationCredentialException(body, context);
3293
+ const exception = new XksProxyIncorrectAuthenticationCredentialException({
3294
+ $metadata: deserializeMetadata(parsedOutput),
3295
+ ...deserialized,
3296
+ });
3297
+ return __decorateServiceException(exception, body);
3298
+ };
3299
+ const deserializeAws_json1_1XksProxyInvalidConfigurationExceptionResponse = async (parsedOutput, context) => {
3300
+ const body = parsedOutput.body;
3301
+ const deserialized = deserializeAws_json1_1XksProxyInvalidConfigurationException(body, context);
3302
+ const exception = new XksProxyInvalidConfigurationException({
3303
+ $metadata: deserializeMetadata(parsedOutput),
3304
+ ...deserialized,
3305
+ });
3306
+ return __decorateServiceException(exception, body);
3307
+ };
3308
+ const deserializeAws_json1_1XksProxyInvalidResponseExceptionResponse = async (parsedOutput, context) => {
3309
+ const body = parsedOutput.body;
3310
+ const deserialized = deserializeAws_json1_1XksProxyInvalidResponseException(body, context);
3311
+ const exception = new XksProxyInvalidResponseException({
3312
+ $metadata: deserializeMetadata(parsedOutput),
3313
+ ...deserialized,
3314
+ });
3315
+ return __decorateServiceException(exception, body);
3316
+ };
3317
+ const deserializeAws_json1_1XksProxyUriEndpointInUseExceptionResponse = async (parsedOutput, context) => {
3318
+ const body = parsedOutput.body;
3319
+ const deserialized = deserializeAws_json1_1XksProxyUriEndpointInUseException(body, context);
3320
+ const exception = new XksProxyUriEndpointInUseException({
3321
+ $metadata: deserializeMetadata(parsedOutput),
3322
+ ...deserialized,
3323
+ });
3324
+ return __decorateServiceException(exception, body);
3325
+ };
3326
+ const deserializeAws_json1_1XksProxyUriInUseExceptionResponse = async (parsedOutput, context) => {
3327
+ const body = parsedOutput.body;
3328
+ const deserialized = deserializeAws_json1_1XksProxyUriInUseException(body, context);
3329
+ const exception = new XksProxyUriInUseException({
3330
+ $metadata: deserializeMetadata(parsedOutput),
3331
+ ...deserialized,
3332
+ });
3333
+ return __decorateServiceException(exception, body);
3334
+ };
3335
+ const deserializeAws_json1_1XksProxyUriUnreachableExceptionResponse = async (parsedOutput, context) => {
3336
+ const body = parsedOutput.body;
3337
+ const deserialized = deserializeAws_json1_1XksProxyUriUnreachableException(body, context);
3338
+ const exception = new XksProxyUriUnreachableException({
3339
+ $metadata: deserializeMetadata(parsedOutput),
3340
+ ...deserialized,
3341
+ });
3342
+ return __decorateServiceException(exception, body);
3343
+ };
3344
+ const deserializeAws_json1_1XksProxyVpcEndpointServiceInUseExceptionResponse = async (parsedOutput, context) => {
3345
+ const body = parsedOutput.body;
3346
+ const deserialized = deserializeAws_json1_1XksProxyVpcEndpointServiceInUseException(body, context);
3347
+ const exception = new XksProxyVpcEndpointServiceInUseException({
3348
+ $metadata: deserializeMetadata(parsedOutput),
3349
+ ...deserialized,
3350
+ });
3351
+ return __decorateServiceException(exception, body);
3352
+ };
3353
+ const deserializeAws_json1_1XksProxyVpcEndpointServiceInvalidConfigurationExceptionResponse = async (parsedOutput, context) => {
3354
+ const body = parsedOutput.body;
3355
+ const deserialized = deserializeAws_json1_1XksProxyVpcEndpointServiceInvalidConfigurationException(body, context);
3356
+ const exception = new XksProxyVpcEndpointServiceInvalidConfigurationException({
3357
+ $metadata: deserializeMetadata(parsedOutput),
3358
+ ...deserialized,
3359
+ });
3360
+ return __decorateServiceException(exception, body);
3361
+ };
3362
+ const deserializeAws_json1_1XksProxyVpcEndpointServiceNotFoundExceptionResponse = async (parsedOutput, context) => {
3363
+ const body = parsedOutput.body;
3364
+ const deserialized = deserializeAws_json1_1XksProxyVpcEndpointServiceNotFoundException(body, context);
3365
+ const exception = new XksProxyVpcEndpointServiceNotFoundException({
3366
+ $metadata: deserializeMetadata(parsedOutput),
3367
+ ...deserialized,
3368
+ });
3369
+ return __decorateServiceException(exception, body);
3370
+ };
3194
3371
  const serializeAws_json1_1CancelKeyDeletionRequest = (input, context) => {
3195
3372
  return {
3196
3373
  ...(input.KeyId != null && { KeyId: input.KeyId }),
@@ -3211,8 +3388,18 @@ const serializeAws_json1_1CreateCustomKeyStoreRequest = (input, context) => {
3211
3388
  return {
3212
3389
  ...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
3213
3390
  ...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
3391
+ ...(input.CustomKeyStoreType != null && { CustomKeyStoreType: input.CustomKeyStoreType }),
3214
3392
  ...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
3215
3393
  ...(input.TrustAnchorCertificate != null && { TrustAnchorCertificate: input.TrustAnchorCertificate }),
3394
+ ...(input.XksProxyAuthenticationCredential != null && {
3395
+ XksProxyAuthenticationCredential: serializeAws_json1_1XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
3396
+ }),
3397
+ ...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
3398
+ ...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
3399
+ ...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
3400
+ ...(input.XksProxyVpcEndpointServiceName != null && {
3401
+ XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
3402
+ }),
3216
3403
  };
3217
3404
  };
3218
3405
  const serializeAws_json1_1CreateGrantRequest = (input, context) => {
@@ -3240,6 +3427,7 @@ const serializeAws_json1_1CreateKeyRequest = (input, context) => {
3240
3427
  ...(input.Origin != null && { Origin: input.Origin }),
3241
3428
  ...(input.Policy != null && { Policy: input.Policy }),
3242
3429
  ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3430
+ ...(input.XksKeyId != null && { XksKeyId: input.XksKeyId }),
3243
3431
  };
3244
3432
  };
3245
3433
  const serializeAws_json1_1DecryptRequest = (input, context) => {
@@ -3597,6 +3785,15 @@ const serializeAws_json1_1UpdateCustomKeyStoreRequest = (input, context) => {
3597
3785
  ...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
3598
3786
  ...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
3599
3787
  ...(input.NewCustomKeyStoreName != null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }),
3788
+ ...(input.XksProxyAuthenticationCredential != null && {
3789
+ XksProxyAuthenticationCredential: serializeAws_json1_1XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
3790
+ }),
3791
+ ...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
3792
+ ...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
3793
+ ...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
3794
+ ...(input.XksProxyVpcEndpointServiceName != null && {
3795
+ XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
3796
+ }),
3600
3797
  };
3601
3798
  };
3602
3799
  const serializeAws_json1_1UpdateKeyDescriptionRequest = (input, context) => {
@@ -3630,6 +3827,12 @@ const serializeAws_json1_1VerifyRequest = (input, context) => {
3630
3827
  ...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
3631
3828
  };
3632
3829
  };
3830
+ const serializeAws_json1_1XksProxyAuthenticationCredentialType = (input, context) => {
3831
+ return {
3832
+ ...(input.AccessKeyId != null && { AccessKeyId: input.AccessKeyId }),
3833
+ ...(input.RawSecretAccessKey != null && { RawSecretAccessKey: input.RawSecretAccessKey }),
3834
+ };
3835
+ };
3633
3836
  const deserializeAws_json1_1AliasList = (output, context) => {
3634
3837
  const retVal = (output || [])
3635
3838
  .filter((e) => e != null)
@@ -3749,7 +3952,11 @@ const deserializeAws_json1_1CustomKeyStoresListEntry = (output, context) => {
3749
3952
  : undefined,
3750
3953
  CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
3751
3954
  CustomKeyStoreName: __expectString(output.CustomKeyStoreName),
3955
+ CustomKeyStoreType: __expectString(output.CustomKeyStoreType),
3752
3956
  TrustAnchorCertificate: __expectString(output.TrustAnchorCertificate),
3957
+ XksProxyConfiguration: output.XksProxyConfiguration != null
3958
+ ? deserializeAws_json1_1XksProxyConfigurationType(output.XksProxyConfiguration, context)
3959
+ : undefined,
3753
3960
  };
3754
3961
  };
3755
3962
  const deserializeAws_json1_1DecryptResponse = (output, context) => {
@@ -4057,6 +4264,9 @@ const deserializeAws_json1_1KeyMetadata = (output, context) => {
4057
4264
  ? deserializeAws_json1_1SigningAlgorithmSpecList(output.SigningAlgorithms, context)
4058
4265
  : undefined,
4059
4266
  ValidTo: output.ValidTo != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidTo))) : undefined,
4267
+ XksKeyConfiguration: output.XksKeyConfiguration != null
4268
+ ? deserializeAws_json1_1XksKeyConfigurationType(output.XksKeyConfiguration, context)
4269
+ : undefined,
4060
4270
  };
4061
4271
  };
4062
4272
  const deserializeAws_json1_1KeyUnavailableException = (output, context) => {
@@ -4270,6 +4480,80 @@ const deserializeAws_json1_1VerifyResponse = (output, context) => {
4270
4480
  SigningAlgorithm: __expectString(output.SigningAlgorithm),
4271
4481
  };
4272
4482
  };
4483
+ const deserializeAws_json1_1XksKeyAlreadyInUseException = (output, context) => {
4484
+ return {
4485
+ message: __expectString(output.message),
4486
+ };
4487
+ };
4488
+ const deserializeAws_json1_1XksKeyConfigurationType = (output, context) => {
4489
+ return {
4490
+ Id: __expectString(output.Id),
4491
+ };
4492
+ };
4493
+ const deserializeAws_json1_1XksKeyInvalidConfigurationException = (output, context) => {
4494
+ return {
4495
+ message: __expectString(output.message),
4496
+ };
4497
+ };
4498
+ const deserializeAws_json1_1XksKeyNotFoundException = (output, context) => {
4499
+ return {
4500
+ message: __expectString(output.message),
4501
+ };
4502
+ };
4503
+ const deserializeAws_json1_1XksProxyConfigurationType = (output, context) => {
4504
+ return {
4505
+ AccessKeyId: __expectString(output.AccessKeyId),
4506
+ Connectivity: __expectString(output.Connectivity),
4507
+ UriEndpoint: __expectString(output.UriEndpoint),
4508
+ UriPath: __expectString(output.UriPath),
4509
+ VpcEndpointServiceName: __expectString(output.VpcEndpointServiceName),
4510
+ };
4511
+ };
4512
+ const deserializeAws_json1_1XksProxyIncorrectAuthenticationCredentialException = (output, context) => {
4513
+ return {
4514
+ message: __expectString(output.message),
4515
+ };
4516
+ };
4517
+ const deserializeAws_json1_1XksProxyInvalidConfigurationException = (output, context) => {
4518
+ return {
4519
+ message: __expectString(output.message),
4520
+ };
4521
+ };
4522
+ const deserializeAws_json1_1XksProxyInvalidResponseException = (output, context) => {
4523
+ return {
4524
+ message: __expectString(output.message),
4525
+ };
4526
+ };
4527
+ const deserializeAws_json1_1XksProxyUriEndpointInUseException = (output, context) => {
4528
+ return {
4529
+ message: __expectString(output.message),
4530
+ };
4531
+ };
4532
+ const deserializeAws_json1_1XksProxyUriInUseException = (output, context) => {
4533
+ return {
4534
+ message: __expectString(output.message),
4535
+ };
4536
+ };
4537
+ const deserializeAws_json1_1XksProxyUriUnreachableException = (output, context) => {
4538
+ return {
4539
+ message: __expectString(output.message),
4540
+ };
4541
+ };
4542
+ const deserializeAws_json1_1XksProxyVpcEndpointServiceInUseException = (output, context) => {
4543
+ return {
4544
+ message: __expectString(output.message),
4545
+ };
4546
+ };
4547
+ const deserializeAws_json1_1XksProxyVpcEndpointServiceInvalidConfigurationException = (output, context) => {
4548
+ return {
4549
+ message: __expectString(output.message),
4550
+ };
4551
+ };
4552
+ const deserializeAws_json1_1XksProxyVpcEndpointServiceNotFoundException = (output, context) => {
4553
+ return {
4554
+ message: __expectString(output.message),
4555
+ };
4556
+ };
4273
4557
  const deserializeMetadata = (output) => ({
4274
4558
  httpStatusCode: output.statusCode,
4275
4559
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],