@aws-sdk/client-kms 3.535.0 → 3.540.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.
- package/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +0 -3
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +2 -1
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +1 -1
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +1 -1
- package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +9 -4
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +3 -2
- package/package.json +5 -5
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
5
6
|
const ruleset_1 = require("./ruleset");
|
|
6
7
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
-
return (0,
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
9
|
endpointParams: endpointParams,
|
|
9
10
|
logger: context.logger,
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -4185,9 +4185,6 @@ var paginateListResourceTags = (0, import_core.createPaginator)(KMSClient, ListR
|
|
|
4185
4185
|
// src/pagination/ListRetirableGrantsPaginator.ts
|
|
4186
4186
|
|
|
4187
4187
|
var paginateListRetirableGrants = (0, import_core.createPaginator)(KMSClient, ListRetirableGrantsCommand, "Marker", "NextMarker", "Limit");
|
|
4188
|
-
|
|
4189
|
-
// src/index.ts
|
|
4190
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
4191
4188
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4192
4189
|
|
|
4193
4190
|
0 && (module.exports = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
3
|
import { ruleSet } from "./ruleset";
|
|
3
4
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
5
|
return resolveEndpoint(ruleSet, {
|
|
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
6
7
|
logger: context.logger,
|
|
7
8
|
});
|
|
8
9
|
};
|
|
10
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-es/index.js
CHANGED
|
@@ -45,12 +45,13 @@ declare const GetKeyPolicyCommand_base: {
|
|
|
45
45
|
* const client = new KMSClient(config);
|
|
46
46
|
* const input = { // GetKeyPolicyRequest
|
|
47
47
|
* KeyId: "STRING_VALUE", // required
|
|
48
|
-
* PolicyName: "STRING_VALUE",
|
|
48
|
+
* PolicyName: "STRING_VALUE",
|
|
49
49
|
* };
|
|
50
50
|
* const command = new GetKeyPolicyCommand(input);
|
|
51
51
|
* const response = await client.send(command);
|
|
52
52
|
* // { // GetKeyPolicyResponse
|
|
53
53
|
* // Policy: "STRING_VALUE",
|
|
54
|
+
* // PolicyName: "STRING_VALUE",
|
|
54
55
|
* // };
|
|
55
56
|
*
|
|
56
57
|
* ```
|
|
@@ -39,7 +39,7 @@ declare const ImportKeyMaterialCommand_base: {
|
|
|
39
39
|
* the same key material</a> into that KMS key, but you cannot import different key
|
|
40
40
|
* material. You might reimport key material to replace key material that expired or key material
|
|
41
41
|
* that you deleted. You might also reimport key material to change the expiration model or
|
|
42
|
-
* expiration date of the key material.
|
|
42
|
+
* expiration date of the key material. </p>
|
|
43
43
|
* <p>Each time you import key material into KMS, you can determine whether
|
|
44
44
|
* (<code>ExpirationModel</code>) and when (<code>ValidTo</code>) the key material expires. To
|
|
45
45
|
* change the expiration of your key material, you must import it again, either by calling
|
|
@@ -50,7 +50,7 @@ declare const PutKeyPolicyCommand_base: {
|
|
|
50
50
|
* const client = new KMSClient(config);
|
|
51
51
|
* const input = { // PutKeyPolicyRequest
|
|
52
52
|
* KeyId: "STRING_VALUE", // required
|
|
53
|
-
* PolicyName: "STRING_VALUE",
|
|
53
|
+
* PolicyName: "STRING_VALUE",
|
|
54
54
|
* Policy: "STRING_VALUE", // required
|
|
55
55
|
* BypassPolicyLockoutSafetyCheck: true || false,
|
|
56
56
|
* };
|
|
@@ -27,7 +27,7 @@ declare const RevokeGrantCommand_base: {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* <p>Deletes the specified grant. You revoke a grant to terminate the permissions that the
|
|
30
|
-
* grant allows. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/
|
|
30
|
+
* grant allows. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and revoking grants</a> in
|
|
31
31
|
* the <i>
|
|
32
32
|
* <i>Key Management Service Developer Guide</i>
|
|
33
33
|
* </i>.</p>
|
package/dist-types/index.d.ts
CHANGED
|
@@ -105,5 +105,4 @@ export { KMSExtensionConfiguration } from "./extensionConfiguration";
|
|
|
105
105
|
export * from "./commands";
|
|
106
106
|
export * from "./pagination";
|
|
107
107
|
export * from "./models";
|
|
108
|
-
import "@aws-sdk/util-endpoints";
|
|
109
108
|
export { KMSServiceException } from "./models/KMSServiceException";
|
|
@@ -3510,11 +3510,11 @@ export interface GetKeyPolicyRequest {
|
|
|
3510
3510
|
*/
|
|
3511
3511
|
KeyId: string | undefined;
|
|
3512
3512
|
/**
|
|
3513
|
-
* <p>Specifies the name of the key policy. The only valid name is <code>default</code>. To get
|
|
3513
|
+
* <p>Specifies the name of the key policy. If no policy name is specified, the default value is <code>default</code>. The only valid name is <code>default</code>. To get
|
|
3514
3514
|
* the names of key policies, use <a>ListKeyPolicies</a>.</p>
|
|
3515
3515
|
* @public
|
|
3516
3516
|
*/
|
|
3517
|
-
PolicyName
|
|
3517
|
+
PolicyName?: string;
|
|
3518
3518
|
}
|
|
3519
3519
|
/**
|
|
3520
3520
|
* @public
|
|
@@ -3525,6 +3525,11 @@ export interface GetKeyPolicyResponse {
|
|
|
3525
3525
|
* @public
|
|
3526
3526
|
*/
|
|
3527
3527
|
Policy?: string;
|
|
3528
|
+
/**
|
|
3529
|
+
* <p>The name of the key policy. The only valid value is <code>default</code>.</p>
|
|
3530
|
+
* @public
|
|
3531
|
+
*/
|
|
3532
|
+
PolicyName?: string;
|
|
3528
3533
|
}
|
|
3529
3534
|
/**
|
|
3530
3535
|
* @public
|
|
@@ -4379,10 +4384,10 @@ export interface PutKeyPolicyRequest {
|
|
|
4379
4384
|
*/
|
|
4380
4385
|
KeyId: string | undefined;
|
|
4381
4386
|
/**
|
|
4382
|
-
* <p>The name of the key policy. The only valid value is <code>default</code>.</p>
|
|
4387
|
+
* <p>The name of the key policy. If no policy name is specified, the default value is <code>default</code>. The only valid value is <code>default</code>.</p>
|
|
4383
4388
|
* @public
|
|
4384
4389
|
*/
|
|
4385
|
-
PolicyName
|
|
4390
|
+
PolicyName?: string;
|
|
4386
4391
|
/**
|
|
4387
4392
|
* <p>The key policy to attach to the KMS key.</p>
|
|
4388
4393
|
* <p>The key policy must meet the following criteria:</p>
|
|
@@ -826,10 +826,11 @@ export interface GenerateRandomResponse {
|
|
|
826
826
|
}
|
|
827
827
|
export interface GetKeyPolicyRequest {
|
|
828
828
|
KeyId: string | undefined;
|
|
829
|
-
PolicyName
|
|
829
|
+
PolicyName?: string;
|
|
830
830
|
}
|
|
831
831
|
export interface GetKeyPolicyResponse {
|
|
832
832
|
Policy?: string;
|
|
833
|
+
PolicyName?: string;
|
|
833
834
|
}
|
|
834
835
|
export interface GetKeyRotationStatusRequest {
|
|
835
836
|
KeyId: string | undefined;
|
|
@@ -989,7 +990,7 @@ export declare const MessageType: {
|
|
|
989
990
|
export type MessageType = (typeof MessageType)[keyof typeof MessageType];
|
|
990
991
|
export interface PutKeyPolicyRequest {
|
|
991
992
|
KeyId: string | undefined;
|
|
992
|
-
PolicyName
|
|
993
|
+
PolicyName?: string;
|
|
993
994
|
Policy: string | undefined;
|
|
994
995
|
BypassPolicyLockoutSafetyCheck?: boolean;
|
|
995
996
|
}
|
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.
|
|
4
|
+
"version": "3.540.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,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.540.0",
|
|
24
24
|
"@aws-sdk/core": "3.535.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.540.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.540.0",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "3.535.0",
|
|
31
31
|
"@aws-sdk/types": "3.535.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.540.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.535.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.2.0",
|