@aws-sdk/client-location 3.481.0 → 3.485.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.
|
@@ -425,6 +425,9 @@ const se_DeleteKeyCommand = async (input, context) => {
|
|
|
425
425
|
const headers = {};
|
|
426
426
|
b.bp("/metadata/v0/keys/{KeyName}");
|
|
427
427
|
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
428
|
+
const query = (0, smithy_client_1.map)({
|
|
429
|
+
[_fD]: [() => input.ForceDelete !== void 0, () => input[_FD].toString()],
|
|
430
|
+
});
|
|
428
431
|
let body;
|
|
429
432
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
430
433
|
if (context.disableHostPrefix !== true) {
|
|
@@ -434,7 +437,7 @@ const se_DeleteKeyCommand = async (input, context) => {
|
|
|
434
437
|
}
|
|
435
438
|
}
|
|
436
439
|
b.hn(resolvedHostname);
|
|
437
|
-
b.m("DELETE").h(headers).b(body);
|
|
440
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
438
441
|
return b.build();
|
|
439
442
|
};
|
|
440
443
|
exports.se_DeleteKeyCommand = se_DeleteKeyCommand;
|
|
@@ -4771,11 +4774,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
4771
4774
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4772
4775
|
const _CC = "CacheControl";
|
|
4773
4776
|
const _CT = "ContentType";
|
|
4777
|
+
const _FD = "ForceDelete";
|
|
4774
4778
|
const _K = "Key";
|
|
4775
4779
|
const _L = "Language";
|
|
4776
4780
|
const _TK = "TagKeys";
|
|
4777
4781
|
const _cc = "cache-control";
|
|
4778
4782
|
const _ct = "content-type";
|
|
4783
|
+
const _fD = "forceDelete";
|
|
4779
4784
|
const _k = "key";
|
|
4780
4785
|
const _l = "language";
|
|
4781
4786
|
const _tK = "tagKeys";
|
|
@@ -404,6 +404,9 @@ export const se_DeleteKeyCommand = async (input, context) => {
|
|
|
404
404
|
const headers = {};
|
|
405
405
|
b.bp("/metadata/v0/keys/{KeyName}");
|
|
406
406
|
b.p("KeyName", () => input.KeyName, "{KeyName}", false);
|
|
407
|
+
const query = map({
|
|
408
|
+
[_fD]: [() => input.ForceDelete !== void 0, () => input[_FD].toString()],
|
|
409
|
+
});
|
|
407
410
|
let body;
|
|
408
411
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
409
412
|
if (context.disableHostPrefix !== true) {
|
|
@@ -413,7 +416,7 @@ export const se_DeleteKeyCommand = async (input, context) => {
|
|
|
413
416
|
}
|
|
414
417
|
}
|
|
415
418
|
b.hn(resolvedHostname);
|
|
416
|
-
b.m("DELETE").h(headers).b(body);
|
|
419
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
417
420
|
return b.build();
|
|
418
421
|
};
|
|
419
422
|
export const se_DeleteMapCommand = async (input, context) => {
|
|
@@ -4650,11 +4653,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
4650
4653
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4651
4654
|
const _CC = "CacheControl";
|
|
4652
4655
|
const _CT = "ContentType";
|
|
4656
|
+
const _FD = "ForceDelete";
|
|
4653
4657
|
const _K = "Key";
|
|
4654
4658
|
const _L = "Language";
|
|
4655
4659
|
const _TK = "TagKeys";
|
|
4656
4660
|
const _cc = "cache-control";
|
|
4657
4661
|
const _ct = "content-type";
|
|
4662
|
+
const _fD = "forceDelete";
|
|
4658
4663
|
const _k = "key";
|
|
4659
4664
|
const _l = "language";
|
|
4660
4665
|
const _tK = "tagKeys";
|
|
@@ -36,6 +36,7 @@ declare const DeleteKeyCommand_base: {
|
|
|
36
36
|
* const client = new LocationClient(config);
|
|
37
37
|
* const input = { // DeleteKeyRequest
|
|
38
38
|
* KeyName: "STRING_VALUE", // required
|
|
39
|
+
* ForceDelete: true || false,
|
|
39
40
|
* };
|
|
40
41
|
* const command = new DeleteKeyCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -135,7 +135,7 @@ export interface ApiKeyRestrictions {
|
|
|
135
135
|
* <li>
|
|
136
136
|
* <p>Other than wildcards, you must include the full ARN, including the
|
|
137
137
|
* <code>arn</code>, <code>partition</code>, <code>service</code>,
|
|
138
|
-
* <code>region</code>, <code>account-id</code> and <code>resource-id</code
|
|
138
|
+
* <code>region</code>, <code>account-id</code> and <code>resource-id</code>
|
|
139
139
|
* delimited by colons (:).</p>
|
|
140
140
|
* </li>
|
|
141
141
|
* <li>
|
|
@@ -386,6 +386,16 @@ export interface DeleteKeyRequest {
|
|
|
386
386
|
* <p>The name of the API key to delete.</p>
|
|
387
387
|
*/
|
|
388
388
|
KeyName: string | undefined;
|
|
389
|
+
/**
|
|
390
|
+
* @public
|
|
391
|
+
* <p>ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter <code>true</code> to delete the key or to <code>false</code> to not preemptively delete the API key.</p>
|
|
392
|
+
* <p>Valid values: <code>true</code>, or <code>false</code>.</p>
|
|
393
|
+
* <p>Required: No</p>
|
|
394
|
+
* <note>
|
|
395
|
+
* <p>This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.</p>
|
|
396
|
+
* </note>
|
|
397
|
+
*/
|
|
398
|
+
ForceDelete?: boolean;
|
|
389
399
|
}
|
|
390
400
|
/**
|
|
391
401
|
* @public
|
|
@@ -85,6 +85,7 @@ export declare class ValidationException extends __BaseException {
|
|
|
85
85
|
}
|
|
86
86
|
export interface DeleteKeyRequest {
|
|
87
87
|
KeyName: string | undefined;
|
|
88
|
+
ForceDelete?: boolean;
|
|
88
89
|
}
|
|
89
90
|
export interface DeleteKeyResponse {}
|
|
90
91
|
export declare class ResourceNotFoundException extends __BaseException {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-location",
|
|
3
3
|
"description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.485.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,43 +20,43 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0.
|
|
37
|
-
"@smithy/core": "^1.2.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.3.
|
|
39
|
-
"@smithy/hash-node": "^2.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0.
|
|
44
|
-
"@smithy/middleware-serde": "^2.0.
|
|
45
|
-
"@smithy/middleware-stack": "^2.0.
|
|
46
|
-
"@smithy/node-config-provider": "^2.1.
|
|
47
|
-
"@smithy/node-http-handler": "^2.2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0.
|
|
49
|
-
"@smithy/smithy-client": "^2.2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0.
|
|
23
|
+
"@aws-sdk/client-sts": "3.485.0",
|
|
24
|
+
"@aws-sdk/core": "3.485.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.485.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.485.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.485.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.485.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.485.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.485.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.485.0",
|
|
32
|
+
"@aws-sdk/types": "3.485.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.485.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.485.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.485.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.0.23",
|
|
37
|
+
"@smithy/core": "^1.2.2",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.3.2",
|
|
39
|
+
"@smithy/hash-node": "^2.0.18",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.0.16",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.0.18",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.3.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.0.26",
|
|
44
|
+
"@smithy/middleware-serde": "^2.0.16",
|
|
45
|
+
"@smithy/middleware-stack": "^2.0.10",
|
|
46
|
+
"@smithy/node-config-provider": "^2.1.9",
|
|
47
|
+
"@smithy/node-http-handler": "^2.2.2",
|
|
48
|
+
"@smithy/protocol-http": "^3.0.12",
|
|
49
|
+
"@smithy/smithy-client": "^2.2.1",
|
|
50
|
+
"@smithy/types": "^2.8.0",
|
|
51
|
+
"@smithy/url-parser": "^2.0.16",
|
|
52
52
|
"@smithy/util-base64": "^2.0.1",
|
|
53
53
|
"@smithy/util-body-length-browser": "^2.0.1",
|
|
54
54
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
57
|
-
"@smithy/util-endpoints": "^1.0.
|
|
58
|
-
"@smithy/util-retry": "^2.0.
|
|
59
|
-
"@smithy/util-stream": "^2.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.0.24",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.0.32",
|
|
57
|
+
"@smithy/util-endpoints": "^1.0.8",
|
|
58
|
+
"@smithy/util-retry": "^2.0.9",
|
|
59
|
+
"@smithy/util-stream": "^2.0.24",
|
|
60
60
|
"@smithy/util-utf8": "^2.0.2",
|
|
61
61
|
"tslib": "^2.5.0"
|
|
62
62
|
},
|