@aws-sdk/client-cloudfront-keyvaluestore 3.456.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/LICENSE +201 -0
- package/README.md +253 -0
- package/dist-cjs/CloudFrontKeyValueStore.js +23 -0
- package/dist-cjs/CloudFrontKeyValueStoreClient.js +43 -0
- package/dist-cjs/commands/DeleteKeyCommand.js +51 -0
- package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/GetKeyCommand.js +52 -0
- package/dist-cjs/commands/ListKeysCommand.js +52 -0
- package/dist-cjs/commands/PutKeyCommand.js +52 -0
- package/dist-cjs/commands/UpdateKeysCommand.js +52 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/CloudFrontKeyValueStoreServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +119 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListKeysPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +557 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/CloudFrontKeyValueStore.js +19 -0
- package/dist-es/CloudFrontKeyValueStoreClient.js +39 -0
- package/dist-es/commands/DeleteKeyCommand.js +47 -0
- package/dist-es/commands/DescribeKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/GetKeyCommand.js +48 -0
- package/dist-es/commands/ListKeysCommand.js +48 -0
- package/dist-es/commands/PutKeyCommand.js +48 -0
- package/dist-es/commands/UpdateKeysCommand.js +48 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/CloudFrontKeyValueStoreServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +104 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListKeysPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +542 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/CloudFrontKeyValueStore.d.ts +52 -0
- package/dist-types/CloudFrontKeyValueStoreClient.d.ts +175 -0
- package/dist-types/commands/DeleteKeyCommand.d.ts +95 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +90 -0
- package/dist-types/commands/GetKeyCommand.d.ts +89 -0
- package/dist-types/commands/ListKeysCommand.d.ts +96 -0
- package/dist-types/commands/PutKeyCommand.d.ts +96 -0
- package/dist-types/commands/UpdateKeysCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +21 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/CloudFrontKeyValueStoreServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +403 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListKeysPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/CloudFrontKeyValueStore.d.ts +109 -0
- package/dist-types/ts3.4/CloudFrontKeyValueStoreClient.d.ts +157 -0
- package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/PutKeyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/UpdateKeysCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/CloudFrontKeyValueStoreServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +139 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +102 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetKeyCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
+
class GetKeyCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
KvsARN: { type: "contextParams", name: "KvsARN" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetKeyCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "CloudFrontKeyValueStoreClient";
|
|
30
|
+
const commandName = "GetKeyCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: (_) => _,
|
|
36
|
+
outputFilterSensitiveLog: models_0_1.GetKeyResponseFilterSensitiveLog,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "CloudFrontKeyValueStore",
|
|
39
|
+
operation: "GetKey",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return (0, Aws_restJson1_1.se_GetKeyCommand)(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return (0, Aws_restJson1_1.de_GetKeyCommand)(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GetKeyCommand = GetKeyCommand;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListKeysCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
+
class ListKeysCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
KvsARN: { type: "contextParams", name: "KvsARN" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListKeysCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "CloudFrontKeyValueStoreClient";
|
|
30
|
+
const commandName = "ListKeysCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: (_) => _,
|
|
36
|
+
outputFilterSensitiveLog: models_0_1.ListKeysResponseFilterSensitiveLog,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "CloudFrontKeyValueStore",
|
|
39
|
+
operation: "ListKeys",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return (0, Aws_restJson1_1.se_ListKeysCommand)(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return (0, Aws_restJson1_1.de_ListKeysCommand)(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ListKeysCommand = ListKeysCommand;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutKeyCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
+
class PutKeyCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
KvsARN: { type: "contextParams", name: "KvsARN" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutKeyCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "CloudFrontKeyValueStoreClient";
|
|
30
|
+
const commandName = "PutKeyCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: models_0_1.PutKeyRequestFilterSensitiveLog,
|
|
36
|
+
outputFilterSensitiveLog: (_) => _,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "CloudFrontKeyValueStore",
|
|
39
|
+
operation: "PutKey",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return (0, Aws_restJson1_1.se_PutKeyCommand)(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return (0, Aws_restJson1_1.de_PutKeyCommand)(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.PutKeyCommand = PutKeyCommand;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateKeysCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
+
class UpdateKeysCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
KvsARN: { type: "contextParams", name: "KvsARN" },
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateKeysCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "CloudFrontKeyValueStoreClient";
|
|
30
|
+
const commandName = "UpdateKeysCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: models_0_1.UpdateKeysRequestFilterSensitiveLog,
|
|
36
|
+
outputFilterSensitiveLog: (_) => _,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "CloudFrontKeyValueStore",
|
|
39
|
+
operation: "UpdateKeys",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return (0, Aws_restJson1_1.se_UpdateKeysCommand)(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return (0, Aws_restJson1_1.de_UpdateKeysCommand)(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.UpdateKeysCommand = UpdateKeysCommand;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DeleteKeyCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DescribeKeyValueStoreCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetKeyCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListKeysCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./PutKeyCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./UpdateKeysCommand"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveClientEndpointParameters = void 0;
|
|
4
|
+
const resolveClientEndpointParameters = (options) => {
|
|
5
|
+
return {
|
|
6
|
+
...options,
|
|
7
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
8
|
+
defaultSigningName: "cloudfront-keyvaluestore",
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const ruleset_1 = require("./ruleset");
|
|
6
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
+
return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
|
+
endpointParams: endpointParams,
|
|
9
|
+
logger: context.logger,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const r = "type", s = "rules", t = "conditions", u = "ref", v = "endpoint", w = "properties", x = "authSchemes", y = "signingName", z = "signingRegionSet", A = "headers";
|
|
5
|
+
const a = false, b = "isSet", c = "parsedArn", d = "stringEquals", e = "getAttr", f = "arnType", g = "partitionResult", h = "tree", i = "error", j = { "required": false, [r]: "String" }, k = { [u]: c }, l = { [u]: f }, m = { [t]: [{ "fn": b, "argv": [{ [u]: "Endpoint" }] }], [s]: [{ [t]: [{ "fn": "parseURL", "argv": [{ [u]: "Endpoint" }], "assign": "url" }], [s]: [{ [v]: { "url": "{url#scheme}://{parsedArn#accountId}.{url#authority}{url#path}", [w]: { [x]: [{ "name": "sigv4a", [y]: "cloudfront-keyvaluestore", [z]: ["*"] }] }, [A]: {} }, [r]: "endpoint" }], [r]: h }, { [i]: "Provided endpoint is not a valid URL", [r]: i }], [r]: h }, n = { [v]: { "url": "https://{parsedArn#accountId}.cloudfront-kvs.global.api.aws", [w]: { [x]: [{ "name": "sigv4a", [y]: "cloudfront-keyvaluestore", [z]: ["*"] }] }, [A]: {} }, [r]: "endpoint" }, o = { [i]: "No resource type found in the KVS ARN. Resource type must be `key-value-store`.", [r]: i }, p = [{ [u]: "KvsARN" }], q = [{ [u]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { KvsARN: j, Region: j, UseFIPS: { required: true, default: a, [r]: "Boolean" }, Endpoint: j }, [s]: [{ [t]: [{ fn: "booleanEquals", argv: [{ [u]: "UseFIPS" }, a] }], [s]: [{ [t]: [{ fn: b, argv: p }], [s]: [{ [t]: [{ fn: "aws.parseArn", argv: p, assign: c }], [s]: [{ [t]: [{ fn: d, argv: [{ fn: e, argv: [k, "service"] }, "cloudfront"] }], [s]: [{ [t]: [{ fn: d, argv: [{ fn: e, argv: [k, "region"] }, ""] }], [s]: [{ [t]: [{ fn: e, argv: [k, "resourceId[0]"], assign: f }], [s]: [{ [t]: [{ fn: "not", argv: [{ fn: d, argv: [l, ""] }] }], [s]: [{ [t]: [{ fn: d, argv: [l, "key-value-store"] }], [s]: [{ [t]: [{ fn: d, argv: [{ fn: e, argv: [k, "partition"] }, "aws"] }], [s]: [{ [t]: [{ fn: b, argv: q }], [s]: [{ [t]: [{ fn: "aws.partition", argv: q, assign: g }], [s]: [{ [t]: [{ fn: d, argv: [{ fn: e, argv: [{ [u]: g }, "name"] }, "{parsedArn#partition}"] }], [s]: [m, n], [r]: h }, { error: "Client was configured for partition `{partitionResult#name}` but Kvs ARN has `{parsedArn#partition}`", [r]: i }], [r]: h }], [r]: h }, m, n], [r]: h }, { error: "CloudFront-KeyValueStore is not supported in partition `{parsedArn#partition}`", [r]: i }], [r]: h }, { error: "ARN resource type is invalid. Expected `key-value-store`, found: `{arnType}`", [r]: i }], [r]: h }, o], [r]: h }, o], [r]: h }, { error: "Provided ARN must be a global resource ARN. Found: `{parsedArn#region}`", [r]: i }], [r]: h }, { error: "Provided ARN is not a valid CloudFront Service ARN. Found: `{parsedArn#service}`", [r]: i }], [r]: h }, { error: "KVS ARN must be a valid ARN", [r]: i }], [r]: h }, { error: "KVS ARN must be provided to use this service", [r]: i }], [r]: h }, { error: "Invalid Configuration: FIPS is not supported with CloudFront-KeyValueStore.", [r]: i }] };
|
|
7
|
+
exports.ruleSet = _data;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudFrontKeyValueStoreServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./CloudFrontKeyValueStoreClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CloudFrontKeyValueStore"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
10
|
+
require("@aws-sdk/util-endpoints");
|
|
11
|
+
var CloudFrontKeyValueStoreServiceException_1 = require("./models/CloudFrontKeyValueStoreServiceException");
|
|
12
|
+
Object.defineProperty(exports, "CloudFrontKeyValueStoreServiceException", { enumerable: true, get: function () { return CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudFrontKeyValueStoreServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class CloudFrontKeyValueStoreServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, CloudFrontKeyValueStoreServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateKeysRequestFilterSensitiveLog = exports.PutKeyRequestListItemFilterSensitiveLog = exports.PutKeyRequestFilterSensitiveLog = exports.ListKeysResponseFilterSensitiveLog = exports.ListKeysResponseListItemFilterSensitiveLog = exports.GetKeyResponseFilterSensitiveLog = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const CloudFrontKeyValueStoreServiceException_1 = require("./CloudFrontKeyValueStoreServiceException");
|
|
6
|
+
class AccessDeniedException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ConflictException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
this.name = "ConflictException";
|
|
28
|
+
this.$fault = "client";
|
|
29
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
30
|
+
this.Message = opts.Message;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ConflictException = ConflictException;
|
|
34
|
+
class InternalServerException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "InternalServerException",
|
|
38
|
+
$fault: "server",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
this.name = "InternalServerException";
|
|
42
|
+
this.$fault = "server";
|
|
43
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
44
|
+
this.Message = opts.Message;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.InternalServerException = InternalServerException;
|
|
48
|
+
class ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "ResourceNotFoundException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
this.name = "ResourceNotFoundException";
|
|
56
|
+
this.$fault = "client";
|
|
57
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
58
|
+
this.Message = opts.Message;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
62
|
+
class ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "ServiceQuotaExceededException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
this.name = "ServiceQuotaExceededException";
|
|
70
|
+
this.$fault = "client";
|
|
71
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
72
|
+
this.Message = opts.Message;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
76
|
+
class ValidationException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ValidationException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
this.name = "ValidationException";
|
|
84
|
+
this.$fault = "client";
|
|
85
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
86
|
+
this.Message = opts.Message;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.ValidationException = ValidationException;
|
|
90
|
+
const GetKeyResponseFilterSensitiveLog = (obj) => ({
|
|
91
|
+
...obj,
|
|
92
|
+
...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }),
|
|
93
|
+
});
|
|
94
|
+
exports.GetKeyResponseFilterSensitiveLog = GetKeyResponseFilterSensitiveLog;
|
|
95
|
+
const ListKeysResponseListItemFilterSensitiveLog = (obj) => ({
|
|
96
|
+
...obj,
|
|
97
|
+
...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }),
|
|
98
|
+
});
|
|
99
|
+
exports.ListKeysResponseListItemFilterSensitiveLog = ListKeysResponseListItemFilterSensitiveLog;
|
|
100
|
+
const ListKeysResponseFilterSensitiveLog = (obj) => ({
|
|
101
|
+
...obj,
|
|
102
|
+
...(obj.Items && { Items: obj.Items.map((item) => (0, exports.ListKeysResponseListItemFilterSensitiveLog)(item)) }),
|
|
103
|
+
});
|
|
104
|
+
exports.ListKeysResponseFilterSensitiveLog = ListKeysResponseFilterSensitiveLog;
|
|
105
|
+
const PutKeyRequestFilterSensitiveLog = (obj) => ({
|
|
106
|
+
...obj,
|
|
107
|
+
...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }),
|
|
108
|
+
});
|
|
109
|
+
exports.PutKeyRequestFilterSensitiveLog = PutKeyRequestFilterSensitiveLog;
|
|
110
|
+
const PutKeyRequestListItemFilterSensitiveLog = (obj) => ({
|
|
111
|
+
...obj,
|
|
112
|
+
...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }),
|
|
113
|
+
});
|
|
114
|
+
exports.PutKeyRequestListItemFilterSensitiveLog = PutKeyRequestListItemFilterSensitiveLog;
|
|
115
|
+
const UpdateKeysRequestFilterSensitiveLog = (obj) => ({
|
|
116
|
+
...obj,
|
|
117
|
+
...(obj.Puts && { Puts: obj.Puts.map((item) => (0, exports.PutKeyRequestListItemFilterSensitiveLog)(item)) }),
|
|
118
|
+
});
|
|
119
|
+
exports.UpdateKeysRequestFilterSensitiveLog = UpdateKeysRequestFilterSensitiveLog;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListKeys = void 0;
|
|
4
|
+
const CloudFrontKeyValueStoreClient_1 = require("../CloudFrontKeyValueStoreClient");
|
|
5
|
+
const ListKeysCommand_1 = require("../commands/ListKeysCommand");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListKeysCommand_1.ListKeysCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListKeys(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof CloudFrontKeyValueStoreClient_1.CloudFrontKeyValueStoreClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected CloudFrontKeyValueStore | CloudFrontKeyValueStoreClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListKeys = paginateListKeys;
|