@aws-sdk/client-keyspaces 3.300.0 → 3.303.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.
@@ -15,20 +15,17 @@ class AccessDeniedException extends KeyspacesServiceException_1.KeyspacesService
15
15
  }
16
16
  }
17
17
  exports.AccessDeniedException = AccessDeniedException;
18
- var ThroughputMode;
19
- (function (ThroughputMode) {
20
- ThroughputMode["PAY_PER_REQUEST"] = "PAY_PER_REQUEST";
21
- ThroughputMode["PROVISIONED"] = "PROVISIONED";
22
- })(ThroughputMode = exports.ThroughputMode || (exports.ThroughputMode = {}));
23
- var ClientSideTimestampsStatus;
24
- (function (ClientSideTimestampsStatus) {
25
- ClientSideTimestampsStatus["ENABLED"] = "ENABLED";
26
- })(ClientSideTimestampsStatus = exports.ClientSideTimestampsStatus || (exports.ClientSideTimestampsStatus = {}));
27
- var SortOrder;
28
- (function (SortOrder) {
29
- SortOrder["ASC"] = "ASC";
30
- SortOrder["DESC"] = "DESC";
31
- })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
18
+ exports.ThroughputMode = {
19
+ PAY_PER_REQUEST: "PAY_PER_REQUEST",
20
+ PROVISIONED: "PROVISIONED",
21
+ };
22
+ exports.ClientSideTimestampsStatus = {
23
+ ENABLED: "ENABLED",
24
+ };
25
+ exports.SortOrder = {
26
+ ASC: "ASC",
27
+ DESC: "DESC",
28
+ };
32
29
  class ConflictException extends KeyspacesServiceException_1.KeyspacesServiceException {
33
30
  constructor(opts) {
34
31
  super({
@@ -81,20 +78,17 @@ class ValidationException extends KeyspacesServiceException_1.KeyspacesServiceEx
81
78
  }
82
79
  }
83
80
  exports.ValidationException = ValidationException;
84
- var EncryptionType;
85
- (function (EncryptionType) {
86
- EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
87
- EncryptionType["CUSTOMER_MANAGED_KMS_KEY"] = "CUSTOMER_MANAGED_KMS_KEY";
88
- })(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {}));
89
- var PointInTimeRecoveryStatus;
90
- (function (PointInTimeRecoveryStatus) {
91
- PointInTimeRecoveryStatus["DISABLED"] = "DISABLED";
92
- PointInTimeRecoveryStatus["ENABLED"] = "ENABLED";
93
- })(PointInTimeRecoveryStatus = exports.PointInTimeRecoveryStatus || (exports.PointInTimeRecoveryStatus = {}));
94
- var TimeToLiveStatus;
95
- (function (TimeToLiveStatus) {
96
- TimeToLiveStatus["ENABLED"] = "ENABLED";
97
- })(TimeToLiveStatus = exports.TimeToLiveStatus || (exports.TimeToLiveStatus = {}));
81
+ exports.EncryptionType = {
82
+ AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
83
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
84
+ };
85
+ exports.PointInTimeRecoveryStatus = {
86
+ DISABLED: "DISABLED",
87
+ ENABLED: "ENABLED",
88
+ };
89
+ exports.TimeToLiveStatus = {
90
+ ENABLED: "ENABLED",
91
+ };
98
92
  class ResourceNotFoundException extends KeyspacesServiceException_1.KeyspacesServiceException {
99
93
  constructor(opts) {
100
94
  super({
@@ -109,13 +103,12 @@ class ResourceNotFoundException extends KeyspacesServiceException_1.KeyspacesSer
109
103
  }
110
104
  }
111
105
  exports.ResourceNotFoundException = ResourceNotFoundException;
112
- var TableStatus;
113
- (function (TableStatus) {
114
- TableStatus["ACTIVE"] = "ACTIVE";
115
- TableStatus["CREATING"] = "CREATING";
116
- TableStatus["DELETED"] = "DELETED";
117
- TableStatus["DELETING"] = "DELETING";
118
- TableStatus["INACCESSIBLE_ENCRYPTION_CREDENTIALS"] = "INACCESSIBLE_ENCRYPTION_CREDENTIALS";
119
- TableStatus["RESTORING"] = "RESTORING";
120
- TableStatus["UPDATING"] = "UPDATING";
121
- })(TableStatus = exports.TableStatus || (exports.TableStatus = {}));
106
+ exports.TableStatus = {
107
+ ACTIVE: "ACTIVE",
108
+ CREATING: "CREATING",
109
+ DELETED: "DELETED",
110
+ DELETING: "DELETING",
111
+ INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
112
+ RESTORING: "RESTORING",
113
+ UPDATING: "UPDATING",
114
+ };
@@ -11,20 +11,17 @@ export class AccessDeniedException extends __BaseException {
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
14
- export var ThroughputMode;
15
- (function (ThroughputMode) {
16
- ThroughputMode["PAY_PER_REQUEST"] = "PAY_PER_REQUEST";
17
- ThroughputMode["PROVISIONED"] = "PROVISIONED";
18
- })(ThroughputMode || (ThroughputMode = {}));
19
- export var ClientSideTimestampsStatus;
20
- (function (ClientSideTimestampsStatus) {
21
- ClientSideTimestampsStatus["ENABLED"] = "ENABLED";
22
- })(ClientSideTimestampsStatus || (ClientSideTimestampsStatus = {}));
23
- export var SortOrder;
24
- (function (SortOrder) {
25
- SortOrder["ASC"] = "ASC";
26
- SortOrder["DESC"] = "DESC";
27
- })(SortOrder || (SortOrder = {}));
14
+ export const ThroughputMode = {
15
+ PAY_PER_REQUEST: "PAY_PER_REQUEST",
16
+ PROVISIONED: "PROVISIONED",
17
+ };
18
+ export const ClientSideTimestampsStatus = {
19
+ ENABLED: "ENABLED",
20
+ };
21
+ export const SortOrder = {
22
+ ASC: "ASC",
23
+ DESC: "DESC",
24
+ };
28
25
  export class ConflictException extends __BaseException {
29
26
  constructor(opts) {
30
27
  super({
@@ -73,20 +70,17 @@ export class ValidationException extends __BaseException {
73
70
  Object.setPrototypeOf(this, ValidationException.prototype);
74
71
  }
75
72
  }
76
- export var EncryptionType;
77
- (function (EncryptionType) {
78
- EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
79
- EncryptionType["CUSTOMER_MANAGED_KMS_KEY"] = "CUSTOMER_MANAGED_KMS_KEY";
80
- })(EncryptionType || (EncryptionType = {}));
81
- export var PointInTimeRecoveryStatus;
82
- (function (PointInTimeRecoveryStatus) {
83
- PointInTimeRecoveryStatus["DISABLED"] = "DISABLED";
84
- PointInTimeRecoveryStatus["ENABLED"] = "ENABLED";
85
- })(PointInTimeRecoveryStatus || (PointInTimeRecoveryStatus = {}));
86
- export var TimeToLiveStatus;
87
- (function (TimeToLiveStatus) {
88
- TimeToLiveStatus["ENABLED"] = "ENABLED";
89
- })(TimeToLiveStatus || (TimeToLiveStatus = {}));
73
+ export const EncryptionType = {
74
+ AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
75
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
76
+ };
77
+ export const PointInTimeRecoveryStatus = {
78
+ DISABLED: "DISABLED",
79
+ ENABLED: "ENABLED",
80
+ };
81
+ export const TimeToLiveStatus = {
82
+ ENABLED: "ENABLED",
83
+ };
90
84
  export class ResourceNotFoundException extends __BaseException {
91
85
  constructor(opts) {
92
86
  super({
@@ -100,13 +94,12 @@ export class ResourceNotFoundException extends __BaseException {
100
94
  this.resourceArn = opts.resourceArn;
101
95
  }
102
96
  }
103
- export var TableStatus;
104
- (function (TableStatus) {
105
- TableStatus["ACTIVE"] = "ACTIVE";
106
- TableStatus["CREATING"] = "CREATING";
107
- TableStatus["DELETED"] = "DELETED";
108
- TableStatus["DELETING"] = "DELETING";
109
- TableStatus["INACCESSIBLE_ENCRYPTION_CREDENTIALS"] = "INACCESSIBLE_ENCRYPTION_CREDENTIALS";
110
- TableStatus["RESTORING"] = "RESTORING";
111
- TableStatus["UPDATING"] = "UPDATING";
112
- })(TableStatus || (TableStatus = {}));
97
+ export const TableStatus = {
98
+ ACTIVE: "ACTIVE",
99
+ CREATING: "CREATING",
100
+ DELETED: "DELETED",
101
+ DELETING: "DELETING",
102
+ INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
103
+ RESTORING: "RESTORING",
104
+ UPDATING: "UPDATING",
105
+ };
@@ -32,10 +32,10 @@ export interface CreateKeyspaceCommandOutput extends CreateKeyspaceResponse, __M
32
32
  * import { KeyspacesClient, CreateKeyspaceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
33
33
  * // const { KeyspacesClient, CreateKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
34
34
  * const client = new KeyspacesClient(config);
35
- * const input = {
35
+ * const input = { // CreateKeyspaceRequest
36
36
  * keyspaceName: "STRING_VALUE", // required
37
- * tags: [
38
- * {
37
+ * tags: [ // TagList
38
+ * { // Tag
39
39
  * key: "STRING_VALUE", // required
40
40
  * value: "STRING_VALUE", // required
41
41
  * },
@@ -33,59 +33,59 @@ export interface CreateTableCommandOutput extends CreateTableResponse, __Metadat
33
33
  * import { KeyspacesClient, CreateTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
34
34
  * // const { KeyspacesClient, CreateTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
35
35
  * const client = new KeyspacesClient(config);
36
- * const input = {
36
+ * const input = { // CreateTableRequest
37
37
  * keyspaceName: "STRING_VALUE", // required
38
38
  * tableName: "STRING_VALUE", // required
39
- * schemaDefinition: {
40
- * allColumns: [ // required
41
- * {
39
+ * schemaDefinition: { // SchemaDefinition
40
+ * allColumns: [ // ColumnDefinitionList // required
41
+ * { // ColumnDefinition
42
42
  * name: "STRING_VALUE", // required
43
43
  * type: "STRING_VALUE", // required
44
44
  * },
45
45
  * ],
46
- * partitionKeys: [ // required
47
- * {
46
+ * partitionKeys: [ // PartitionKeyList // required
47
+ * { // PartitionKey
48
48
  * name: "STRING_VALUE", // required
49
49
  * },
50
50
  * ],
51
- * clusteringKeys: [
52
- * {
51
+ * clusteringKeys: [ // ClusteringKeyList
52
+ * { // ClusteringKey
53
53
  * name: "STRING_VALUE", // required
54
54
  * orderBy: "STRING_VALUE", // required
55
55
  * },
56
56
  * ],
57
- * staticColumns: [
58
- * {
57
+ * staticColumns: [ // StaticColumnList
58
+ * { // StaticColumn
59
59
  * name: "STRING_VALUE", // required
60
60
  * },
61
61
  * ],
62
62
  * },
63
- * comment: {
63
+ * comment: { // Comment
64
64
  * message: "STRING_VALUE", // required
65
65
  * },
66
- * capacitySpecification: {
66
+ * capacitySpecification: { // CapacitySpecification
67
67
  * throughputMode: "STRING_VALUE", // required
68
68
  * readCapacityUnits: Number("long"),
69
69
  * writeCapacityUnits: Number("long"),
70
70
  * },
71
- * encryptionSpecification: {
71
+ * encryptionSpecification: { // EncryptionSpecification
72
72
  * type: "STRING_VALUE", // required
73
73
  * kmsKeyIdentifier: "STRING_VALUE",
74
74
  * },
75
- * pointInTimeRecovery: {
75
+ * pointInTimeRecovery: { // PointInTimeRecovery
76
76
  * status: "STRING_VALUE", // required
77
77
  * },
78
- * ttl: {
78
+ * ttl: { // TimeToLive
79
79
  * status: "STRING_VALUE", // required
80
80
  * },
81
81
  * defaultTimeToLive: Number("int"),
82
- * tags: [
83
- * {
82
+ * tags: [ // TagList
83
+ * { // Tag
84
84
  * key: "STRING_VALUE", // required
85
85
  * value: "STRING_VALUE", // required
86
86
  * },
87
87
  * ],
88
- * clientSideTimestamps: {
88
+ * clientSideTimestamps: { // ClientSideTimestamps
89
89
  * status: "STRING_VALUE", // required
90
90
  * },
91
91
  * };
@@ -26,7 +26,7 @@ export interface DeleteKeyspaceCommandOutput extends DeleteKeyspaceResponse, __M
26
26
  * import { KeyspacesClient, DeleteKeyspaceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
27
27
  * // const { KeyspacesClient, DeleteKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
28
28
  * const client = new KeyspacesClient(config);
29
- * const input = {
29
+ * const input = { // DeleteKeyspaceRequest
30
30
  * keyspaceName: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteKeyspaceCommand(input);
@@ -30,7 +30,7 @@ export interface DeleteTableCommandOutput extends DeleteTableResponse, __Metadat
30
30
  * import { KeyspacesClient, DeleteTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
31
31
  * // const { KeyspacesClient, DeleteTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
32
32
  * const client = new KeyspacesClient(config);
33
- * const input = {
33
+ * const input = { // DeleteTableRequest
34
34
  * keyspaceName: "STRING_VALUE", // required
35
35
  * tableName: "STRING_VALUE", // required
36
36
  * };
@@ -26,7 +26,7 @@ export interface GetKeyspaceCommandOutput extends GetKeyspaceResponse, __Metadat
26
26
  * import { KeyspacesClient, GetKeyspaceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
27
27
  * // const { KeyspacesClient, GetKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
28
28
  * const client = new KeyspacesClient(config);
29
- * const input = {
29
+ * const input = { // GetKeyspaceRequest
30
30
  * keyspaceName: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new GetKeyspaceCommand(input);
@@ -29,7 +29,7 @@ export interface GetTableCommandOutput extends GetTableResponse, __MetadataBeare
29
29
  * import { KeyspacesClient, GetTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
30
30
  * // const { KeyspacesClient, GetTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
31
31
  * const client = new KeyspacesClient(config);
32
- * const input = {
32
+ * const input = { // GetTableRequest
33
33
  * keyspaceName: "STRING_VALUE", // required
34
34
  * tableName: "STRING_VALUE", // required
35
35
  * };
@@ -26,7 +26,7 @@ export interface ListKeyspacesCommandOutput extends ListKeyspacesResponse, __Met
26
26
  * import { KeyspacesClient, ListKeyspacesCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
27
27
  * // const { KeyspacesClient, ListKeyspacesCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
28
28
  * const client = new KeyspacesClient(config);
29
- * const input = {
29
+ * const input = { // ListKeyspacesRequest
30
30
  * nextToken: "STRING_VALUE",
31
31
  * maxResults: Number("int"),
32
32
  * };
@@ -26,7 +26,7 @@ export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataB
26
26
  * import { KeyspacesClient, ListTablesCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
27
27
  * // const { KeyspacesClient, ListTablesCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
28
28
  * const client = new KeyspacesClient(config);
29
- * const input = {
29
+ * const input = { // ListTablesRequest
30
30
  * nextToken: "STRING_VALUE",
31
31
  * maxResults: Number("int"),
32
32
  * keyspaceName: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { KeyspacesClient, ListTagsForResourceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
27
27
  * // const { KeyspacesClient, ListTagsForResourceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
28
28
  * const client = new KeyspacesClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
31
  * nextToken: "STRING_VALUE",
32
32
  * maxResults: Number("int"),
@@ -72,26 +72,26 @@ export interface RestoreTableCommandOutput extends RestoreTableResponse, __Metad
72
72
  * import { KeyspacesClient, RestoreTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
73
73
  * // const { KeyspacesClient, RestoreTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
74
74
  * const client = new KeyspacesClient(config);
75
- * const input = {
75
+ * const input = { // RestoreTableRequest
76
76
  * sourceKeyspaceName: "STRING_VALUE", // required
77
77
  * sourceTableName: "STRING_VALUE", // required
78
78
  * targetKeyspaceName: "STRING_VALUE", // required
79
79
  * targetTableName: "STRING_VALUE", // required
80
80
  * restoreTimestamp: new Date("TIMESTAMP"),
81
- * capacitySpecificationOverride: {
81
+ * capacitySpecificationOverride: { // CapacitySpecification
82
82
  * throughputMode: "STRING_VALUE", // required
83
83
  * readCapacityUnits: Number("long"),
84
84
  * writeCapacityUnits: Number("long"),
85
85
  * },
86
- * encryptionSpecificationOverride: {
86
+ * encryptionSpecificationOverride: { // EncryptionSpecification
87
87
  * type: "STRING_VALUE", // required
88
88
  * kmsKeyIdentifier: "STRING_VALUE",
89
89
  * },
90
- * pointInTimeRecoveryOverride: {
90
+ * pointInTimeRecoveryOverride: { // PointInTimeRecovery
91
91
  * status: "STRING_VALUE", // required
92
92
  * },
93
- * tagsOverride: [
94
- * {
93
+ * tagsOverride: [ // TagList
94
+ * { // Tag
95
95
  * key: "STRING_VALUE", // required
96
96
  * value: "STRING_VALUE", // required
97
97
  * },
@@ -32,10 +32,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
32
32
  * import { KeyspacesClient, TagResourceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
33
33
  * // const { KeyspacesClient, TagResourceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
34
34
  * const client = new KeyspacesClient(config);
35
- * const input = {
35
+ * const input = { // TagResourceRequest
36
36
  * resourceArn: "STRING_VALUE", // required
37
- * tags: [ // required
38
- * {
37
+ * tags: [ // TagList // required
38
+ * { // Tag
39
39
  * key: "STRING_VALUE", // required
40
40
  * value: "STRING_VALUE", // required
41
41
  * },
@@ -26,10 +26,10 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
26
26
  * import { KeyspacesClient, UntagResourceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
27
27
  * // const { KeyspacesClient, UntagResourceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
28
28
  * const client = new KeyspacesClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
- * tags: [ // required
32
- * {
31
+ * tags: [ // TagList // required
32
+ * { // Tag
33
33
  * key: "STRING_VALUE", // required
34
34
  * value: "STRING_VALUE", // required
35
35
  * },
@@ -28,32 +28,32 @@ export interface UpdateTableCommandOutput extends UpdateTableResponse, __Metadat
28
28
  * import { KeyspacesClient, UpdateTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
29
29
  * // const { KeyspacesClient, UpdateTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
30
30
  * const client = new KeyspacesClient(config);
31
- * const input = {
31
+ * const input = { // UpdateTableRequest
32
32
  * keyspaceName: "STRING_VALUE", // required
33
33
  * tableName: "STRING_VALUE", // required
34
- * addColumns: [
35
- * {
34
+ * addColumns: [ // ColumnDefinitionList
35
+ * { // ColumnDefinition
36
36
  * name: "STRING_VALUE", // required
37
37
  * type: "STRING_VALUE", // required
38
38
  * },
39
39
  * ],
40
- * capacitySpecification: {
40
+ * capacitySpecification: { // CapacitySpecification
41
41
  * throughputMode: "STRING_VALUE", // required
42
42
  * readCapacityUnits: Number("long"),
43
43
  * writeCapacityUnits: Number("long"),
44
44
  * },
45
- * encryptionSpecification: {
45
+ * encryptionSpecification: { // EncryptionSpecification
46
46
  * type: "STRING_VALUE", // required
47
47
  * kmsKeyIdentifier: "STRING_VALUE",
48
48
  * },
49
- * pointInTimeRecovery: {
49
+ * pointInTimeRecovery: { // PointInTimeRecovery
50
50
  * status: "STRING_VALUE", // required
51
51
  * },
52
- * ttl: {
52
+ * ttl: { // TimeToLive
53
53
  * status: "STRING_VALUE", // required
54
54
  * },
55
55
  * defaultTimeToLive: Number("int"),
56
- * clientSideTimestamps: {
56
+ * clientSideTimestamps: { // ClientSideTimestamps
57
57
  * status: "STRING_VALUE", // required
58
58
  * },
59
59
  * };
@@ -14,11 +14,16 @@ export declare class AccessDeniedException extends __BaseException {
14
14
  }
15
15
  /**
16
16
  * @public
17
+ * @enum
17
18
  */
18
- export declare enum ThroughputMode {
19
- PAY_PER_REQUEST = "PAY_PER_REQUEST",
20
- PROVISIONED = "PROVISIONED"
21
- }
19
+ export declare const ThroughputMode: {
20
+ readonly PAY_PER_REQUEST: "PAY_PER_REQUEST";
21
+ readonly PROVISIONED: "PROVISIONED";
22
+ };
23
+ /**
24
+ * @public
25
+ */
26
+ export type ThroughputMode = (typeof ThroughputMode)[keyof typeof ThroughputMode];
22
27
  /**
23
28
  * @public
24
29
  * <p>Amazon Keyspaces has two read/write capacity modes for processing reads and writes on your tables: </p>
@@ -117,10 +122,15 @@ export interface CapacitySpecificationSummary {
117
122
  }
118
123
  /**
119
124
  * @public
125
+ * @enum
120
126
  */
121
- export declare enum ClientSideTimestampsStatus {
122
- ENABLED = "ENABLED"
123
- }
127
+ export declare const ClientSideTimestampsStatus: {
128
+ readonly ENABLED: "ENABLED";
129
+ };
130
+ /**
131
+ * @public
132
+ */
133
+ export type ClientSideTimestampsStatus = (typeof ClientSideTimestampsStatus)[keyof typeof ClientSideTimestampsStatus];
124
134
  /**
125
135
  * @public
126
136
  * <p>The client-side timestamp setting of the table.</p>
@@ -135,11 +145,16 @@ export interface ClientSideTimestamps {
135
145
  }
136
146
  /**
137
147
  * @public
148
+ * @enum
138
149
  */
139
- export declare enum SortOrder {
140
- ASC = "ASC",
141
- DESC = "DESC"
142
- }
150
+ export declare const SortOrder: {
151
+ readonly ASC: "ASC";
152
+ readonly DESC: "DESC";
153
+ };
154
+ /**
155
+ * @public
156
+ */
157
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
143
158
  /**
144
159
  * @public
145
160
  * <p>The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition.</p>
@@ -276,11 +291,16 @@ export declare class ValidationException extends __BaseException {
276
291
  }
277
292
  /**
278
293
  * @public
294
+ * @enum
279
295
  */
280
- export declare enum EncryptionType {
281
- AWS_OWNED_KMS_KEY = "AWS_OWNED_KMS_KEY",
282
- CUSTOMER_MANAGED_KMS_KEY = "CUSTOMER_MANAGED_KMS_KEY"
283
- }
296
+ export declare const EncryptionType: {
297
+ readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
298
+ readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
299
+ };
300
+ /**
301
+ * @public
302
+ */
303
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
284
304
  /**
285
305
  * @public
286
306
  * <p>Amazon Keyspaces encrypts and decrypts the table data at rest transparently and integrates with Key Management Service for storing and managing the encryption key.
@@ -325,11 +345,16 @@ export interface EncryptionSpecification {
325
345
  }
326
346
  /**
327
347
  * @public
348
+ * @enum
328
349
  */
329
- export declare enum PointInTimeRecoveryStatus {
330
- DISABLED = "DISABLED",
331
- ENABLED = "ENABLED"
332
- }
350
+ export declare const PointInTimeRecoveryStatus: {
351
+ readonly DISABLED: "DISABLED";
352
+ readonly ENABLED: "ENABLED";
353
+ };
354
+ /**
355
+ * @public
356
+ */
357
+ export type PointInTimeRecoveryStatus = (typeof PointInTimeRecoveryStatus)[keyof typeof PointInTimeRecoveryStatus];
333
358
  /**
334
359
  * @public
335
360
  * <p>Point-in-time recovery (PITR) helps protect your Amazon Keyspaces tables from accidental write or delete operations by providing you continuous backups of your table data.</p>
@@ -400,10 +425,15 @@ export interface SchemaDefinition {
400
425
  }
401
426
  /**
402
427
  * @public
428
+ * @enum
403
429
  */
404
- export declare enum TimeToLiveStatus {
405
- ENABLED = "ENABLED"
406
- }
430
+ export declare const TimeToLiveStatus: {
431
+ readonly ENABLED: "ENABLED";
432
+ };
433
+ /**
434
+ * @public
435
+ */
436
+ export type TimeToLiveStatus = (typeof TimeToLiveStatus)[keyof typeof TimeToLiveStatus];
407
437
  /**
408
438
  * @public
409
439
  * <p>Enable custom Time to Live (TTL) settings for rows and columns without setting a TTL default for the specified table.</p>
@@ -712,16 +742,21 @@ export interface PointInTimeRecoverySummary {
712
742
  }
713
743
  /**
714
744
  * @public
745
+ * @enum
715
746
  */
716
- export declare enum TableStatus {
717
- ACTIVE = "ACTIVE",
718
- CREATING = "CREATING",
719
- DELETED = "DELETED",
720
- DELETING = "DELETING",
721
- INACCESSIBLE_ENCRYPTION_CREDENTIALS = "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
722
- RESTORING = "RESTORING",
723
- UPDATING = "UPDATING"
724
- }
747
+ export declare const TableStatus: {
748
+ readonly ACTIVE: "ACTIVE";
749
+ readonly CREATING: "CREATING";
750
+ readonly DELETED: "DELETED";
751
+ readonly DELETING: "DELETING";
752
+ readonly INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS";
753
+ readonly RESTORING: "RESTORING";
754
+ readonly UPDATING: "UPDATING";
755
+ };
756
+ /**
757
+ * @public
758
+ */
759
+ export type TableStatus = (typeof TableStatus)[keyof typeof TableStatus];
725
760
  /**
726
761
  * @public
727
762
  */
@@ -7,10 +7,12 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
- export declare enum ThroughputMode {
11
- PAY_PER_REQUEST = "PAY_PER_REQUEST",
12
- PROVISIONED = "PROVISIONED",
13
- }
10
+ export declare const ThroughputMode: {
11
+ readonly PAY_PER_REQUEST: "PAY_PER_REQUEST";
12
+ readonly PROVISIONED: "PROVISIONED";
13
+ };
14
+ export type ThroughputMode =
15
+ (typeof ThroughputMode)[keyof typeof ThroughputMode];
14
16
  export interface CapacitySpecification {
15
17
  throughputMode: ThroughputMode | string | undefined;
16
18
  readCapacityUnits?: number;
@@ -22,16 +24,19 @@ export interface CapacitySpecificationSummary {
22
24
  writeCapacityUnits?: number;
23
25
  lastUpdateToPayPerRequestTimestamp?: Date;
24
26
  }
25
- export declare enum ClientSideTimestampsStatus {
26
- ENABLED = "ENABLED",
27
- }
27
+ export declare const ClientSideTimestampsStatus: {
28
+ readonly ENABLED: "ENABLED";
29
+ };
30
+ export type ClientSideTimestampsStatus =
31
+ (typeof ClientSideTimestampsStatus)[keyof typeof ClientSideTimestampsStatus];
28
32
  export interface ClientSideTimestamps {
29
33
  status: ClientSideTimestampsStatus | string | undefined;
30
34
  }
31
- export declare enum SortOrder {
32
- ASC = "ASC",
33
- DESC = "DESC",
34
- }
35
+ export declare const SortOrder: {
36
+ readonly ASC: "ASC";
37
+ readonly DESC: "DESC";
38
+ };
39
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
35
40
  export interface ClusteringKey {
36
41
  name: string | undefined;
37
42
  orderBy: SortOrder | string | undefined;
@@ -80,18 +85,22 @@ export declare class ValidationException extends __BaseException {
80
85
  opts: __ExceptionOptionType<ValidationException, __BaseException>
81
86
  );
82
87
  }
83
- export declare enum EncryptionType {
84
- AWS_OWNED_KMS_KEY = "AWS_OWNED_KMS_KEY",
85
- CUSTOMER_MANAGED_KMS_KEY = "CUSTOMER_MANAGED_KMS_KEY",
86
- }
88
+ export declare const EncryptionType: {
89
+ readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
90
+ readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
91
+ };
92
+ export type EncryptionType =
93
+ (typeof EncryptionType)[keyof typeof EncryptionType];
87
94
  export interface EncryptionSpecification {
88
95
  type: EncryptionType | string | undefined;
89
96
  kmsKeyIdentifier?: string;
90
97
  }
91
- export declare enum PointInTimeRecoveryStatus {
92
- DISABLED = "DISABLED",
93
- ENABLED = "ENABLED",
94
- }
98
+ export declare const PointInTimeRecoveryStatus: {
99
+ readonly DISABLED: "DISABLED";
100
+ readonly ENABLED: "ENABLED";
101
+ };
102
+ export type PointInTimeRecoveryStatus =
103
+ (typeof PointInTimeRecoveryStatus)[keyof typeof PointInTimeRecoveryStatus];
95
104
  export interface PointInTimeRecovery {
96
105
  status: PointInTimeRecoveryStatus | string | undefined;
97
106
  }
@@ -107,9 +116,11 @@ export interface SchemaDefinition {
107
116
  clusteringKeys?: ClusteringKey[];
108
117
  staticColumns?: StaticColumn[];
109
118
  }
110
- export declare enum TimeToLiveStatus {
111
- ENABLED = "ENABLED",
112
- }
119
+ export declare const TimeToLiveStatus: {
120
+ readonly ENABLED: "ENABLED";
121
+ };
122
+ export type TimeToLiveStatus =
123
+ (typeof TimeToLiveStatus)[keyof typeof TimeToLiveStatus];
113
124
  export interface TimeToLive {
114
125
  status: TimeToLiveStatus | string | undefined;
115
126
  }
@@ -161,15 +172,16 @@ export interface PointInTimeRecoverySummary {
161
172
  status: PointInTimeRecoveryStatus | string | undefined;
162
173
  earliestRestorableTimestamp?: Date;
163
174
  }
164
- export declare enum TableStatus {
165
- ACTIVE = "ACTIVE",
166
- CREATING = "CREATING",
167
- DELETED = "DELETED",
168
- DELETING = "DELETING",
169
- INACCESSIBLE_ENCRYPTION_CREDENTIALS = "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
170
- RESTORING = "RESTORING",
171
- UPDATING = "UPDATING",
172
- }
175
+ export declare const TableStatus: {
176
+ readonly ACTIVE: "ACTIVE";
177
+ readonly CREATING: "CREATING";
178
+ readonly DELETED: "DELETED";
179
+ readonly DELETING: "DELETING";
180
+ readonly INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS";
181
+ readonly RESTORING: "RESTORING";
182
+ readonly UPDATING: "UPDATING";
183
+ };
184
+ export type TableStatus = (typeof TableStatus)[keyof typeof TableStatus];
173
185
  export interface GetTableResponse {
174
186
  keyspaceName: string | undefined;
175
187
  tableName: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspaces",
3
3
  "description": "AWS SDK for JavaScript Keyspaces Client for Node.js, Browser and React Native",
4
- "version": "3.300.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",