@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,96 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CloudFrontKeyValueStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontKeyValueStoreClient";
|
|
5
|
+
import { PutKeyRequest, PutKeyResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutKeyCommandInput extends PutKeyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutKeyCommandOutput extends PutKeyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a new key value pair or replaces the value of an existing key.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CloudFrontKeyValueStoreClient, PutKeyCommand } from "@aws-sdk/client-cloudfront-keyvaluestore"; // ES Modules import
|
|
31
|
+
* // const { CloudFrontKeyValueStoreClient, PutKeyCommand } = require("@aws-sdk/client-cloudfront-keyvaluestore"); // CommonJS import
|
|
32
|
+
* const client = new CloudFrontKeyValueStoreClient(config);
|
|
33
|
+
* const input = { // PutKeyRequest
|
|
34
|
+
* Key: "STRING_VALUE", // required
|
|
35
|
+
* Value: "STRING_VALUE", // required
|
|
36
|
+
* KvsARN: "STRING_VALUE", // required
|
|
37
|
+
* IfMatch: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new PutKeyCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // PutKeyResponse
|
|
42
|
+
* // ItemCount: Number("int"), // required
|
|
43
|
+
* // TotalSizeInBytes: Number("long"), // required
|
|
44
|
+
* // ETag: "STRING_VALUE", // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param PutKeyCommandInput - {@link PutKeyCommandInput}
|
|
50
|
+
* @returns {@link PutKeyCommandOutput}
|
|
51
|
+
* @see {@link PutKeyCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link PutKeyCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link CloudFrontKeyValueStoreClientResolvedConfig | config} for CloudFrontKeyValueStoreClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>Access denied.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Resource is not in expected state.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>Internal server error.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>Resource was not found.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
68
|
+
* <p>Limit exceeded.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>Validation failed.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link CloudFrontKeyValueStoreServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from CloudFrontKeyValueStore service.</p>
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export declare class PutKeyCommand extends $Command<PutKeyCommandInput, PutKeyCommandOutput, CloudFrontKeyValueStoreClientResolvedConfig> {
|
|
78
|
+
readonly input: PutKeyCommandInput;
|
|
79
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
constructor(input: PutKeyCommandInput);
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontKeyValueStoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutKeyCommandInput, PutKeyCommandOutput>;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
private serialize;
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
private deserialize;
|
|
96
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CloudFrontKeyValueStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontKeyValueStoreClient";
|
|
5
|
+
import { UpdateKeysRequest, UpdateKeysResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateKeysCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateKeysCommandInput extends UpdateKeysRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateKeysCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateKeysCommandOutput extends UpdateKeysResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CloudFrontKeyValueStoreClient, UpdateKeysCommand } from "@aws-sdk/client-cloudfront-keyvaluestore"; // ES Modules import
|
|
31
|
+
* // const { CloudFrontKeyValueStoreClient, UpdateKeysCommand } = require("@aws-sdk/client-cloudfront-keyvaluestore"); // CommonJS import
|
|
32
|
+
* const client = new CloudFrontKeyValueStoreClient(config);
|
|
33
|
+
* const input = { // UpdateKeysRequest
|
|
34
|
+
* KvsARN: "STRING_VALUE", // required
|
|
35
|
+
* IfMatch: "STRING_VALUE", // required
|
|
36
|
+
* Puts: [ // PutKeyRequestsList
|
|
37
|
+
* { // PutKeyRequestListItem
|
|
38
|
+
* Key: "STRING_VALUE", // required
|
|
39
|
+
* Value: "STRING_VALUE", // required
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* Deletes: [ // DeleteKeyRequestsList
|
|
43
|
+
* { // DeleteKeyRequestListItem
|
|
44
|
+
* Key: "STRING_VALUE", // required
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* };
|
|
48
|
+
* const command = new UpdateKeysCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // UpdateKeysResponse
|
|
51
|
+
* // ItemCount: Number("int"), // required
|
|
52
|
+
* // TotalSizeInBytes: Number("long"), // required
|
|
53
|
+
* // ETag: "STRING_VALUE", // required
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param UpdateKeysCommandInput - {@link UpdateKeysCommandInput}
|
|
59
|
+
* @returns {@link UpdateKeysCommandOutput}
|
|
60
|
+
* @see {@link UpdateKeysCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link UpdateKeysCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link CloudFrontKeyValueStoreClientResolvedConfig | config} for CloudFrontKeyValueStoreClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>Access denied.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ConflictException} (client fault)
|
|
68
|
+
* <p>Resource is not in expected state.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>Internal server error.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <p>Resource was not found.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
77
|
+
* <p>Limit exceeded.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>Validation failed.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link CloudFrontKeyValueStoreServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from CloudFrontKeyValueStore service.</p>
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
export declare class UpdateKeysCommand extends $Command<UpdateKeysCommandInput, UpdateKeysCommandOutput, CloudFrontKeyValueStoreClientResolvedConfig> {
|
|
87
|
+
readonly input: UpdateKeysCommandInput;
|
|
88
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
constructor(input: UpdateKeysCommandInput);
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontKeyValueStoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateKeysCommandInput, UpdateKeysCommandOutput>;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
private serialize;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
private deserialize;
|
|
105
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | Provider<string>;
|
|
7
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
9
|
+
}
|
|
10
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
11
|
+
defaultSigningName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
14
|
+
defaultSigningName: string;
|
|
15
|
+
};
|
|
16
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
17
|
+
KvsARN?: string;
|
|
18
|
+
Region?: string;
|
|
19
|
+
UseFIPS?: boolean;
|
|
20
|
+
Endpoint?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface CloudFrontKeyValueStoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>Amazon CloudFront KeyValueStore Service to View and Update Data in a KVS Resource</p>
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./CloudFrontKeyValueStoreClient";
|
|
7
|
+
export * from "./CloudFrontKeyValueStore";
|
|
8
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export { CloudFrontKeyValueStoreExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export * from "./pagination";
|
|
13
|
+
export * from "./models";
|
|
14
|
+
import "@aws-sdk/util-endpoints";
|
|
15
|
+
export { CloudFrontKeyValueStoreServiceException } from "./models/CloudFrontKeyValueStoreServiceException";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Base exception class for all service exceptions from CloudFrontKeyValueStore service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CloudFrontKeyValueStoreServiceException extends __ServiceException {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: __ServiceExceptionOptions);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { CloudFrontKeyValueStoreServiceException as __BaseException } from "./CloudFrontKeyValueStoreServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* <p>Access denied.</p>
|
|
6
|
+
*/
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
Message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
* <p>Resource is not in expected state.</p>
|
|
19
|
+
*/
|
|
20
|
+
export declare class ConflictException extends __BaseException {
|
|
21
|
+
readonly name: "ConflictException";
|
|
22
|
+
readonly $fault: "client";
|
|
23
|
+
Message?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface DeleteKeyRequest {
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
36
|
+
*/
|
|
37
|
+
KvsARN: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
* <p>The key to delete.</p>
|
|
41
|
+
*/
|
|
42
|
+
Key: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* <p>The current version (ETag) of the Key Value Store that you are deleting keys from, which you can get using DescribeKeyValueStore.</p>
|
|
46
|
+
*/
|
|
47
|
+
IfMatch: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
* <p>Metadata information about a Key Value Store.</p>
|
|
52
|
+
*/
|
|
53
|
+
export interface DeleteKeyResponse {
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
* <p>Number of key value pairs in the Key Value Store after the successful delete.</p>
|
|
57
|
+
*/
|
|
58
|
+
ItemCount: number | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
* <p>Total size of the Key Value Store after the successful delete, in bytes.</p>
|
|
62
|
+
*/
|
|
63
|
+
TotalSizeInBytes: number | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
* <p>The current version identifier of the Key Value Store after the successful delete.</p>
|
|
67
|
+
*/
|
|
68
|
+
ETag: string | undefined;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
* <p>Internal server error.</p>
|
|
73
|
+
*/
|
|
74
|
+
export declare class InternalServerException extends __BaseException {
|
|
75
|
+
readonly name: "InternalServerException";
|
|
76
|
+
readonly $fault: "server";
|
|
77
|
+
Message?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* <p>Resource was not found.</p>
|
|
86
|
+
*/
|
|
87
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
88
|
+
readonly name: "ResourceNotFoundException";
|
|
89
|
+
readonly $fault: "client";
|
|
90
|
+
Message?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* <p>Limit exceeded.</p>
|
|
99
|
+
*/
|
|
100
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
101
|
+
readonly name: "ServiceQuotaExceededException";
|
|
102
|
+
readonly $fault: "client";
|
|
103
|
+
Message?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
* <p>Validation failed.</p>
|
|
112
|
+
*/
|
|
113
|
+
export declare class ValidationException extends __BaseException {
|
|
114
|
+
readonly name: "ValidationException";
|
|
115
|
+
readonly $fault: "client";
|
|
116
|
+
Message?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export interface DescribeKeyValueStoreRequest {
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
129
|
+
*/
|
|
130
|
+
KvsARN: string | undefined;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
* <p>Metadata information about a Key Value Store.</p>
|
|
135
|
+
*/
|
|
136
|
+
export interface DescribeKeyValueStoreResponse {
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* <p>Number of key value pairs in the Key Value Store.</p>
|
|
140
|
+
*/
|
|
141
|
+
ItemCount: number | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
* <p>Total size of the Key Value Store in bytes.</p>
|
|
145
|
+
*/
|
|
146
|
+
TotalSizeInBytes: number | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
150
|
+
*/
|
|
151
|
+
KvsARN: string | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
* <p>Date and time when the Key Value Store was created.</p>
|
|
155
|
+
*/
|
|
156
|
+
Created: Date | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
* <p>The version identifier for the current version of the Key Value Store.</p>
|
|
160
|
+
*/
|
|
161
|
+
ETag: string | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
* <p>Date and time when the key value pairs in the Key Value Store was last modified.</p>
|
|
165
|
+
*/
|
|
166
|
+
LastModified?: Date;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export interface GetKeyRequest {
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
175
|
+
*/
|
|
176
|
+
KvsARN: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
* <p>The key to get.</p>
|
|
180
|
+
*/
|
|
181
|
+
Key: string | undefined;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
* <p>A key value pair.</p>
|
|
186
|
+
*/
|
|
187
|
+
export interface GetKeyResponse {
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* <p>The key of the key value pair.</p>
|
|
191
|
+
*/
|
|
192
|
+
Key: string | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
* <p>The value of the key value pair.</p>
|
|
196
|
+
*/
|
|
197
|
+
Value: string | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* @public
|
|
200
|
+
* <p>Number of key value pairs in the Key Value Store.</p>
|
|
201
|
+
*/
|
|
202
|
+
ItemCount: number | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* @public
|
|
205
|
+
* <p>Total size of the Key Value Store in bytes.</p>
|
|
206
|
+
*/
|
|
207
|
+
TotalSizeInBytes: number | undefined;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export interface ListKeysRequest {
|
|
213
|
+
/**
|
|
214
|
+
* @public
|
|
215
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
216
|
+
*/
|
|
217
|
+
KvsARN: string | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
* <p>If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.</p>
|
|
221
|
+
*/
|
|
222
|
+
NextToken?: string;
|
|
223
|
+
/**
|
|
224
|
+
* @public
|
|
225
|
+
* <p>Maximum number of results that are returned per call. The default is 10 and maximum allowed page is 50.</p>
|
|
226
|
+
*/
|
|
227
|
+
MaxResults?: number;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @public
|
|
231
|
+
* <p>A key value pair.</p>
|
|
232
|
+
*/
|
|
233
|
+
export interface ListKeysResponseListItem {
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
* <p>The key of the key value pair.</p>
|
|
237
|
+
*/
|
|
238
|
+
Key: string | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* @public
|
|
241
|
+
* <p>The value of the key value pair.</p>
|
|
242
|
+
*/
|
|
243
|
+
Value: string | undefined;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
248
|
+
export interface ListKeysResponse {
|
|
249
|
+
/**
|
|
250
|
+
* @public
|
|
251
|
+
* <p>If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.</p>
|
|
252
|
+
*/
|
|
253
|
+
NextToken?: string;
|
|
254
|
+
/**
|
|
255
|
+
* @public
|
|
256
|
+
* <p>Key value pairs</p>
|
|
257
|
+
*/
|
|
258
|
+
Items?: ListKeysResponseListItem[];
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @public
|
|
262
|
+
* <p>A key value pair.</p>
|
|
263
|
+
*/
|
|
264
|
+
export interface PutKeyRequest {
|
|
265
|
+
/**
|
|
266
|
+
* @public
|
|
267
|
+
* <p>The key to put.</p>
|
|
268
|
+
*/
|
|
269
|
+
Key: string | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* @public
|
|
272
|
+
* <p>The value to put.</p>
|
|
273
|
+
*/
|
|
274
|
+
Value: string | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* @public
|
|
277
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
278
|
+
*/
|
|
279
|
+
KvsARN: string | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* @public
|
|
282
|
+
* <p>The current version (ETag) of the Key Value Store that you are putting keys into, which you can get using DescribeKeyValueStore.</p>
|
|
283
|
+
*/
|
|
284
|
+
IfMatch: string | undefined;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @public
|
|
288
|
+
* <p>Metadata information about a Key Value Store.</p>
|
|
289
|
+
*/
|
|
290
|
+
export interface PutKeyResponse {
|
|
291
|
+
/**
|
|
292
|
+
* @public
|
|
293
|
+
* <p>Number of key value pairs in the Key Value Store after the successful put.</p>
|
|
294
|
+
*/
|
|
295
|
+
ItemCount: number | undefined;
|
|
296
|
+
/**
|
|
297
|
+
* @public
|
|
298
|
+
* <p>Total size of the Key Value Store after the successful put, in bytes.</p>
|
|
299
|
+
*/
|
|
300
|
+
TotalSizeInBytes: number | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* @public
|
|
303
|
+
* <p>The current version identifier of the Key Value Store after the successful put.</p>
|
|
304
|
+
*/
|
|
305
|
+
ETag: string | undefined;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* @public
|
|
309
|
+
* <p>List item for keys to delete.</p>
|
|
310
|
+
*/
|
|
311
|
+
export interface DeleteKeyRequestListItem {
|
|
312
|
+
/**
|
|
313
|
+
* @public
|
|
314
|
+
* <p>The key of the key value pair to be deleted.</p>
|
|
315
|
+
*/
|
|
316
|
+
Key: string | undefined;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* @public
|
|
320
|
+
* <p>List item for key value pair to put.</p>
|
|
321
|
+
*/
|
|
322
|
+
export interface PutKeyRequestListItem {
|
|
323
|
+
/**
|
|
324
|
+
* @public
|
|
325
|
+
* <p>The key of the key value pair list item to put.</p>
|
|
326
|
+
*/
|
|
327
|
+
Key: string | undefined;
|
|
328
|
+
/**
|
|
329
|
+
* @public
|
|
330
|
+
* <p>The value for the key value pair to put.</p>
|
|
331
|
+
*/
|
|
332
|
+
Value: string | undefined;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @public
|
|
336
|
+
*/
|
|
337
|
+
export interface UpdateKeysRequest {
|
|
338
|
+
/**
|
|
339
|
+
* @public
|
|
340
|
+
* <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
|
|
341
|
+
*/
|
|
342
|
+
KvsARN: string | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* @public
|
|
345
|
+
* <p>The current version (ETag) of the Key Value Store that you are updating keys of, which you can get using DescribeKeyValueStore.</p>
|
|
346
|
+
*/
|
|
347
|
+
IfMatch: string | undefined;
|
|
348
|
+
/**
|
|
349
|
+
* @public
|
|
350
|
+
* <p>List of key value pairs to put.</p>
|
|
351
|
+
*/
|
|
352
|
+
Puts?: PutKeyRequestListItem[];
|
|
353
|
+
/**
|
|
354
|
+
* @public
|
|
355
|
+
* <p>List of keys to delete.</p>
|
|
356
|
+
*/
|
|
357
|
+
Deletes?: DeleteKeyRequestListItem[];
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* @public
|
|
361
|
+
* <p>Metadata information about a Key Value Store.</p>
|
|
362
|
+
*/
|
|
363
|
+
export interface UpdateKeysResponse {
|
|
364
|
+
/**
|
|
365
|
+
* @public
|
|
366
|
+
* <p>Number of key value pairs in the Key Value Store after the successful update.</p>
|
|
367
|
+
*/
|
|
368
|
+
ItemCount: number | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
* <p>Total size of the Key Value Store after the successful update, in bytes.</p>
|
|
372
|
+
*/
|
|
373
|
+
TotalSizeInBytes: number | undefined;
|
|
374
|
+
/**
|
|
375
|
+
* @public
|
|
376
|
+
* <p>The current version identifier of the Key Value Store after the successful update.</p>
|
|
377
|
+
*/
|
|
378
|
+
ETag: string | undefined;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
export declare const GetKeyResponseFilterSensitiveLog: (obj: GetKeyResponse) => any;
|
|
384
|
+
/**
|
|
385
|
+
* @internal
|
|
386
|
+
*/
|
|
387
|
+
export declare const ListKeysResponseListItemFilterSensitiveLog: (obj: ListKeysResponseListItem) => any;
|
|
388
|
+
/**
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
391
|
+
export declare const ListKeysResponseFilterSensitiveLog: (obj: ListKeysResponse) => any;
|
|
392
|
+
/**
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
395
|
+
export declare const PutKeyRequestFilterSensitiveLog: (obj: PutKeyRequest) => any;
|
|
396
|
+
/**
|
|
397
|
+
* @internal
|
|
398
|
+
*/
|
|
399
|
+
export declare const PutKeyRequestListItemFilterSensitiveLog: (obj: PutKeyRequestListItem) => any;
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
*/
|
|
403
|
+
export declare const UpdateKeysRequestFilterSensitiveLog: (obj: UpdateKeysRequest) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@smithy/types";
|
|
2
|
+
import { CloudFrontKeyValueStoreClient } from "../CloudFrontKeyValueStoreClient";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface CloudFrontKeyValueStorePaginationConfiguration extends PaginationConfiguration {
|
|
7
|
+
client: CloudFrontKeyValueStoreClient;
|
|
8
|
+
}
|