@aws-sdk/client-kms 3.758.0 → 3.774.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 (2) hide show
  1. package/dist-cjs/index.js +30 -30
  2. package/package.json +7 -7
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AlgorithmSpec: () => AlgorithmSpec,
25
25
  AlreadyExistsException: () => AlreadyExistsException,
26
26
  CancelKeyDeletionCommand: () => CancelKeyDeletionCommand,
@@ -176,7 +176,7 @@ __export(src_exports, {
176
176
  paginateListResourceTags: () => paginateListResourceTags,
177
177
  paginateListRetirableGrants: () => paginateListRetirableGrants
178
178
  });
179
- module.exports = __toCommonJS(src_exports);
179
+ module.exports = __toCommonJS(index_exports);
180
180
 
181
181
  // src/KMSClient.ts
182
182
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -303,9 +303,9 @@ var KMSClient = class extends import_smithy_client.Client {
303
303
  this.middlewareStack.use(
304
304
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
305
305
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultKMSHttpAuthSchemeParametersProvider,
306
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
306
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
307
307
  "aws.auth#sigv4": config.credentials
308
- })
308
+ }), "identityProviderConfigProvider")
309
309
  })
310
310
  );
311
311
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -3045,7 +3045,7 @@ var se_DecryptRequest = /* @__PURE__ */ __name((input, context) => {
3045
3045
  EncryptionContext: import_smithy_client._json,
3046
3046
  GrantTokens: import_smithy_client._json,
3047
3047
  KeyId: [],
3048
- Recipient: (_) => se_RecipientInfo(_, context)
3048
+ Recipient: /* @__PURE__ */ __name((_) => se_RecipientInfo(_, context), "Recipient")
3049
3049
  });
3050
3050
  }, "se_DecryptRequest");
3051
3051
  var se_DeriveSharedSecretRequest = /* @__PURE__ */ __name((input, context) => {
@@ -3055,7 +3055,7 @@ var se_DeriveSharedSecretRequest = /* @__PURE__ */ __name((input, context) => {
3055
3055
  KeyAgreementAlgorithm: [],
3056
3056
  KeyId: [],
3057
3057
  PublicKey: context.base64Encoder,
3058
- Recipient: (_) => se_RecipientInfo(_, context)
3058
+ Recipient: /* @__PURE__ */ __name((_) => se_RecipientInfo(_, context), "Recipient")
3059
3059
  });
3060
3060
  }, "se_DeriveSharedSecretRequest");
3061
3061
  var se_EncryptRequest = /* @__PURE__ */ __name((input, context) => {
@@ -3075,7 +3075,7 @@ var se_GenerateDataKeyPairRequest = /* @__PURE__ */ __name((input, context) => {
3075
3075
  GrantTokens: import_smithy_client._json,
3076
3076
  KeyId: [],
3077
3077
  KeyPairSpec: [],
3078
- Recipient: (_) => se_RecipientInfo(_, context)
3078
+ Recipient: /* @__PURE__ */ __name((_) => se_RecipientInfo(_, context), "Recipient")
3079
3079
  });
3080
3080
  }, "se_GenerateDataKeyPairRequest");
3081
3081
  var se_GenerateDataKeyRequest = /* @__PURE__ */ __name((input, context) => {
@@ -3086,7 +3086,7 @@ var se_GenerateDataKeyRequest = /* @__PURE__ */ __name((input, context) => {
3086
3086
  KeyId: [],
3087
3087
  KeySpec: [],
3088
3088
  NumberOfBytes: [],
3089
- Recipient: (_) => se_RecipientInfo(_, context)
3089
+ Recipient: /* @__PURE__ */ __name((_) => se_RecipientInfo(_, context), "Recipient")
3090
3090
  });
3091
3091
  }, "se_GenerateDataKeyRequest");
3092
3092
  var se_GenerateMacRequest = /* @__PURE__ */ __name((input, context) => {
@@ -3102,7 +3102,7 @@ var se_GenerateRandomRequest = /* @__PURE__ */ __name((input, context) => {
3102
3102
  return (0, import_smithy_client.take)(input, {
3103
3103
  CustomKeyStoreId: [],
3104
3104
  NumberOfBytes: [],
3105
- Recipient: (_) => se_RecipientInfo(_, context)
3105
+ Recipient: /* @__PURE__ */ __name((_) => se_RecipientInfo(_, context), "Recipient")
3106
3106
  });
3107
3107
  }, "se_GenerateRandomRequest");
3108
3108
  var se_ImportKeyMaterialRequest = /* @__PURE__ */ __name((input, context) => {
@@ -3111,7 +3111,7 @@ var se_ImportKeyMaterialRequest = /* @__PURE__ */ __name((input, context) => {
3111
3111
  ExpirationModel: [],
3112
3112
  ImportToken: context.base64Encoder,
3113
3113
  KeyId: [],
3114
- ValidTo: (_) => _.getTime() / 1e3
3114
+ ValidTo: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "ValidTo")
3115
3115
  });
3116
3116
  }, "se_ImportKeyMaterialRequest");
3117
3117
  var se_RecipientInfo = /* @__PURE__ */ __name((input, context) => {
@@ -3174,14 +3174,14 @@ var de_AliasListEntry = /* @__PURE__ */ __name((output, context) => {
3174
3174
  return (0, import_smithy_client.take)(output, {
3175
3175
  AliasArn: import_smithy_client.expectString,
3176
3176
  AliasName: import_smithy_client.expectString,
3177
- CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3178
- LastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3177
+ CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
3178
+ LastUpdatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedDate"),
3179
3179
  TargetKeyId: import_smithy_client.expectString
3180
3180
  });
3181
3181
  }, "de_AliasListEntry");
3182
3182
  var de_CreateKeyResponse = /* @__PURE__ */ __name((output, context) => {
3183
3183
  return (0, import_smithy_client.take)(output, {
3184
- KeyMetadata: (_) => de_KeyMetadata(_, context)
3184
+ KeyMetadata: /* @__PURE__ */ __name((_) => de_KeyMetadata(_, context), "KeyMetadata")
3185
3185
  });
3186
3186
  }, "de_CreateKeyResponse");
3187
3187
  var de_CustomKeyStoresList = /* @__PURE__ */ __name((output, context) => {
@@ -3195,7 +3195,7 @@ var de_CustomKeyStoresListEntry = /* @__PURE__ */ __name((output, context) => {
3195
3195
  CloudHsmClusterId: import_smithy_client.expectString,
3196
3196
  ConnectionErrorCode: import_smithy_client.expectString,
3197
3197
  ConnectionState: import_smithy_client.expectString,
3198
- CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3198
+ CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
3199
3199
  CustomKeyStoreId: import_smithy_client.expectString,
3200
3200
  CustomKeyStoreName: import_smithy_client.expectString,
3201
3201
  CustomKeyStoreType: import_smithy_client.expectString,
@@ -3222,14 +3222,14 @@ var de_DeriveSharedSecretResponse = /* @__PURE__ */ __name((output, context) =>
3222
3222
  }, "de_DeriveSharedSecretResponse");
3223
3223
  var de_DescribeCustomKeyStoresResponse = /* @__PURE__ */ __name((output, context) => {
3224
3224
  return (0, import_smithy_client.take)(output, {
3225
- CustomKeyStores: (_) => de_CustomKeyStoresList(_, context),
3225
+ CustomKeyStores: /* @__PURE__ */ __name((_) => de_CustomKeyStoresList(_, context), "CustomKeyStores"),
3226
3226
  NextMarker: import_smithy_client.expectString,
3227
3227
  Truncated: import_smithy_client.expectBoolean
3228
3228
  });
3229
3229
  }, "de_DescribeCustomKeyStoresResponse");
3230
3230
  var de_DescribeKeyResponse = /* @__PURE__ */ __name((output, context) => {
3231
3231
  return (0, import_smithy_client.take)(output, {
3232
- KeyMetadata: (_) => de_KeyMetadata(_, context)
3232
+ KeyMetadata: /* @__PURE__ */ __name((_) => de_KeyMetadata(_, context), "KeyMetadata")
3233
3233
  });
3234
3234
  }, "de_DescribeKeyResponse");
3235
3235
  var de_EncryptResponse = /* @__PURE__ */ __name((output, context) => {
@@ -3288,8 +3288,8 @@ var de_GetKeyRotationStatusResponse = /* @__PURE__ */ __name((output, context) =
3288
3288
  return (0, import_smithy_client.take)(output, {
3289
3289
  KeyId: import_smithy_client.expectString,
3290
3290
  KeyRotationEnabled: import_smithy_client.expectBoolean,
3291
- NextRotationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3292
- OnDemandRotationStartDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3291
+ NextRotationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "NextRotationDate"),
3292
+ OnDemandRotationStartDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "OnDemandRotationStartDate"),
3293
3293
  RotationPeriodInDays: import_smithy_client.expectInt32
3294
3294
  });
3295
3295
  }, "de_GetKeyRotationStatusResponse");
@@ -3297,7 +3297,7 @@ var de_GetParametersForImportResponse = /* @__PURE__ */ __name((output, context)
3297
3297
  return (0, import_smithy_client.take)(output, {
3298
3298
  ImportToken: context.base64Decoder,
3299
3299
  KeyId: import_smithy_client.expectString,
3300
- ParametersValidTo: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3300
+ ParametersValidTo: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ParametersValidTo"),
3301
3301
  PublicKey: context.base64Decoder
3302
3302
  });
3303
3303
  }, "de_GetParametersForImportResponse");
@@ -3322,7 +3322,7 @@ var de_GrantList = /* @__PURE__ */ __name((output, context) => {
3322
3322
  var de_GrantListEntry = /* @__PURE__ */ __name((output, context) => {
3323
3323
  return (0, import_smithy_client.take)(output, {
3324
3324
  Constraints: import_smithy_client._json,
3325
- CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3325
+ CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
3326
3326
  GrantId: import_smithy_client.expectString,
3327
3327
  GranteePrincipal: import_smithy_client.expectString,
3328
3328
  IssuingAccount: import_smithy_client.expectString,
@@ -3337,10 +3337,10 @@ var de_KeyMetadata = /* @__PURE__ */ __name((output, context) => {
3337
3337
  AWSAccountId: import_smithy_client.expectString,
3338
3338
  Arn: import_smithy_client.expectString,
3339
3339
  CloudHsmClusterId: import_smithy_client.expectString,
3340
- CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3340
+ CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
3341
3341
  CustomKeyStoreId: import_smithy_client.expectString,
3342
3342
  CustomerMasterKeySpec: import_smithy_client.expectString,
3343
- DeletionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3343
+ DeletionDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletionDate"),
3344
3344
  Description: import_smithy_client.expectString,
3345
3345
  Enabled: import_smithy_client.expectBoolean,
3346
3346
  EncryptionAlgorithms: import_smithy_client._json,
@@ -3357,20 +3357,20 @@ var de_KeyMetadata = /* @__PURE__ */ __name((output, context) => {
3357
3357
  Origin: import_smithy_client.expectString,
3358
3358
  PendingDeletionWindowInDays: import_smithy_client.expectInt32,
3359
3359
  SigningAlgorithms: import_smithy_client._json,
3360
- ValidTo: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3360
+ ValidTo: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ValidTo"),
3361
3361
  XksKeyConfiguration: import_smithy_client._json
3362
3362
  });
3363
3363
  }, "de_KeyMetadata");
3364
3364
  var de_ListAliasesResponse = /* @__PURE__ */ __name((output, context) => {
3365
3365
  return (0, import_smithy_client.take)(output, {
3366
- Aliases: (_) => de_AliasList(_, context),
3366
+ Aliases: /* @__PURE__ */ __name((_) => de_AliasList(_, context), "Aliases"),
3367
3367
  NextMarker: import_smithy_client.expectString,
3368
3368
  Truncated: import_smithy_client.expectBoolean
3369
3369
  });
3370
3370
  }, "de_ListAliasesResponse");
3371
3371
  var de_ListGrantsResponse = /* @__PURE__ */ __name((output, context) => {
3372
3372
  return (0, import_smithy_client.take)(output, {
3373
- Grants: (_) => de_GrantList(_, context),
3373
+ Grants: /* @__PURE__ */ __name((_) => de_GrantList(_, context), "Grants"),
3374
3374
  NextMarker: import_smithy_client.expectString,
3375
3375
  Truncated: import_smithy_client.expectBoolean
3376
3376
  });
@@ -3378,7 +3378,7 @@ var de_ListGrantsResponse = /* @__PURE__ */ __name((output, context) => {
3378
3378
  var de_ListKeyRotationsResponse = /* @__PURE__ */ __name((output, context) => {
3379
3379
  return (0, import_smithy_client.take)(output, {
3380
3380
  NextMarker: import_smithy_client.expectString,
3381
- Rotations: (_) => de_RotationsList(_, context),
3381
+ Rotations: /* @__PURE__ */ __name((_) => de_RotationsList(_, context), "Rotations"),
3382
3382
  Truncated: import_smithy_client.expectBoolean
3383
3383
  });
3384
3384
  }, "de_ListKeyRotationsResponse");
@@ -3393,7 +3393,7 @@ var de_ReEncryptResponse = /* @__PURE__ */ __name((output, context) => {
3393
3393
  }, "de_ReEncryptResponse");
3394
3394
  var de_ReplicateKeyResponse = /* @__PURE__ */ __name((output, context) => {
3395
3395
  return (0, import_smithy_client.take)(output, {
3396
- ReplicaKeyMetadata: (_) => de_KeyMetadata(_, context),
3396
+ ReplicaKeyMetadata: /* @__PURE__ */ __name((_) => de_KeyMetadata(_, context), "ReplicaKeyMetadata"),
3397
3397
  ReplicaPolicy: import_smithy_client.expectString,
3398
3398
  ReplicaTags: import_smithy_client._json
3399
3399
  });
@@ -3407,13 +3407,13 @@ var de_RotationsList = /* @__PURE__ */ __name((output, context) => {
3407
3407
  var de_RotationsListEntry = /* @__PURE__ */ __name((output, context) => {
3408
3408
  return (0, import_smithy_client.take)(output, {
3409
3409
  KeyId: import_smithy_client.expectString,
3410
- RotationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3410
+ RotationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "RotationDate"),
3411
3411
  RotationType: import_smithy_client.expectString
3412
3412
  });
3413
3413
  }, "de_RotationsListEntry");
3414
3414
  var de_ScheduleKeyDeletionResponse = /* @__PURE__ */ __name((output, context) => {
3415
3415
  return (0, import_smithy_client.take)(output, {
3416
- DeletionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3416
+ DeletionDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletionDate"),
3417
3417
  KeyId: import_smithy_client.expectString,
3418
3418
  KeyState: import_smithy_client.expectString,
3419
3419
  PendingWindowInDays: import_smithy_client.expectInt32
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
3
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.774.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kms",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.758.0",
25
- "@aws-sdk/middleware-host-header": "3.734.0",
23
+ "@aws-sdk/core": "3.774.0",
24
+ "@aws-sdk/credential-provider-node": "3.774.0",
25
+ "@aws-sdk/middleware-host-header": "3.774.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.758.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
+ "@aws-sdk/middleware-user-agent": "3.774.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.758.0",
33
+ "@aws-sdk/util-user-agent-node": "3.774.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
35
  "@smithy/core": "^3.1.5",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",