@aws-sdk/client-keyspaces 3.1147.0 → 3.1149.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/README.md CHANGED
@@ -51,6 +51,45 @@ const params = { /** input parameters */ };
51
51
  const command = new ListKeyspacesCommand(params);
52
52
  ```
53
53
 
54
+ #### Supported Message Protocols
55
+
56
+ This client supports multiple protocols.
57
+
58
+ The default for this client is **AWS JSON (RPC) 1.0**.
59
+
60
+ We have selected this default based on our evaluation of the
61
+ performance characteristics of this protocol format in JavaScript. You don't need to change it,
62
+ but you have the option to do so, for example to support existing integrations or tests.
63
+ Selecting a non-default protocol changes the format
64
+ of the data sent over the network, but does not affect how you interact with the
65
+ client using JavaScript objects.
66
+
67
+ Install the `@aws-sdk/config` package to access alternate protocols.
68
+
69
+ See [AWS Protocols](https://smithy.io/2.0/aws/protocols/index.html) for more information.
70
+
71
+ ##### AWS JSON (RPC) 1.0
72
+
73
+ This protocol uses JSON payloads.
74
+ ```js
75
+ import { AwsJson1_0Protocol } from "@aws-sdk/config/protocol";
76
+
77
+ const client = new KeyspacesClient({
78
+ protocol: AwsJson1_0Protocol
79
+ });
80
+ ```
81
+
82
+ ##### Smithy RPC v2 CBOR
83
+
84
+ This protocol uses CBOR payloads.
85
+ ```js
86
+ import { AwsSmithyRpcV2CborProtocol } from "@aws-sdk/config/protocol";
87
+
88
+ const client = new KeyspacesClient({
89
+ protocol: AwsSmithyRpcV2CborProtocol
90
+ });
91
+ ```
92
+
54
93
  #### Async/await
55
94
 
56
95
  We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1146.0";
72
+ var version = "3.1148.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -135,6 +135,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
135
135
  customEndpointFunctions.aws = awsEndpointFunctions;
136
136
 
137
137
  class KeyspacesServiceException extends ServiceException {
138
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.keyspaces#KeyspacesServiceException";
138
139
  constructor(options) {
139
140
  super(options);
140
141
  Object.setPrototypeOf(this, KeyspacesServiceException.prototype);
@@ -142,6 +143,7 @@ class KeyspacesServiceException extends ServiceException {
142
143
  }
143
144
 
144
145
  class AccessDeniedException extends KeyspacesServiceException {
146
+ static shapeId = "com.amazonaws.keyspaces#AccessDeniedException";
145
147
  name = "AccessDeniedException";
146
148
  $fault = "client";
147
149
  constructor(opts) {
@@ -154,6 +156,7 @@ class AccessDeniedException extends KeyspacesServiceException {
154
156
  }
155
157
  }
156
158
  class ConflictException extends KeyspacesServiceException {
159
+ static shapeId = "com.amazonaws.keyspaces#ConflictException";
157
160
  name = "ConflictException";
158
161
  $fault = "client";
159
162
  constructor(opts) {
@@ -166,6 +169,7 @@ class ConflictException extends KeyspacesServiceException {
166
169
  }
167
170
  }
168
171
  class InternalServerException extends KeyspacesServiceException {
172
+ static shapeId = "com.amazonaws.keyspaces#InternalServerException";
169
173
  name = "InternalServerException";
170
174
  $fault = "server";
171
175
  constructor(opts) {
@@ -178,6 +182,7 @@ class InternalServerException extends KeyspacesServiceException {
178
182
  }
179
183
  }
180
184
  class ServiceQuotaExceededException extends KeyspacesServiceException {
185
+ static shapeId = "com.amazonaws.keyspaces#ServiceQuotaExceededException";
181
186
  name = "ServiceQuotaExceededException";
182
187
  $fault = "client";
183
188
  constructor(opts) {
@@ -190,6 +195,7 @@ class ServiceQuotaExceededException extends KeyspacesServiceException {
190
195
  }
191
196
  }
192
197
  class ValidationException extends KeyspacesServiceException {
198
+ static shapeId = "com.amazonaws.keyspaces#ValidationException";
193
199
  name = "ValidationException";
194
200
  $fault = "client";
195
201
  constructor(opts) {
@@ -202,6 +208,7 @@ class ValidationException extends KeyspacesServiceException {
202
208
  }
203
209
  }
204
210
  class ResourceNotFoundException extends KeyspacesServiceException {
211
+ static shapeId = "com.amazonaws.keyspaces#ResourceNotFoundException";
205
212
  name = "ResourceNotFoundException";
206
213
  $fault = "client";
207
214
  resourceArn;
@@ -1,6 +1,7 @@
1
1
  import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class KeyspacesServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.keyspaces#KeyspacesServiceException";
4
5
  constructor(options) {
5
6
  super(options);
6
7
  Object.setPrototypeOf(this, KeyspacesServiceException.prototype);
@@ -1,5 +1,6 @@
1
1
  import { KeyspacesServiceException as __BaseException } from "./KeyspacesServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ static shapeId = "com.amazonaws.keyspaces#AccessDeniedException";
3
4
  name = "AccessDeniedException";
4
5
  $fault = "client";
5
6
  constructor(opts) {
@@ -12,6 +13,7 @@ export class AccessDeniedException extends __BaseException {
12
13
  }
13
14
  }
14
15
  export class ConflictException extends __BaseException {
16
+ static shapeId = "com.amazonaws.keyspaces#ConflictException";
15
17
  name = "ConflictException";
16
18
  $fault = "client";
17
19
  constructor(opts) {
@@ -24,6 +26,7 @@ export class ConflictException extends __BaseException {
24
26
  }
25
27
  }
26
28
  export class InternalServerException extends __BaseException {
29
+ static shapeId = "com.amazonaws.keyspaces#InternalServerException";
27
30
  name = "InternalServerException";
28
31
  $fault = "server";
29
32
  constructor(opts) {
@@ -36,6 +39,7 @@ export class InternalServerException extends __BaseException {
36
39
  }
37
40
  }
38
41
  export class ServiceQuotaExceededException extends __BaseException {
42
+ static shapeId = "com.amazonaws.keyspaces#ServiceQuotaExceededException";
39
43
  name = "ServiceQuotaExceededException";
40
44
  $fault = "client";
41
45
  constructor(opts) {
@@ -48,6 +52,7 @@ export class ServiceQuotaExceededException extends __BaseException {
48
52
  }
49
53
  }
50
54
  export class ValidationException extends __BaseException {
55
+ static shapeId = "com.amazonaws.keyspaces#ValidationException";
51
56
  name = "ValidationException";
52
57
  $fault = "client";
53
58
  constructor(opts) {
@@ -60,6 +65,7 @@ export class ValidationException extends __BaseException {
60
65
  }
61
66
  }
62
67
  export class ResourceNotFoundException extends __BaseException {
68
+ static shapeId = "com.amazonaws.keyspaces#ResourceNotFoundException";
63
69
  name = "ResourceNotFoundException";
64
70
  $fault = "client";
65
71
  resourceArn;
@@ -7,6 +7,7 @@ export { __ServiceException };
7
7
  * Base exception class for all service exceptions from Keyspaces service.
8
8
  */
9
9
  export declare class KeyspacesServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
10
11
  /**
11
12
  * @internal
12
13
  */
@@ -5,6 +5,7 @@ import { KeyspacesServiceException as __BaseException } from "./KeyspacesService
5
5
  * @public
6
6
  */
7
7
  export declare class AccessDeniedException extends __BaseException {
8
+ static readonly shapeId: string;
8
9
  readonly name: "AccessDeniedException";
9
10
  readonly $fault: "client";
10
11
  /**
@@ -17,6 +18,7 @@ export declare class AccessDeniedException extends __BaseException {
17
18
  * @public
18
19
  */
19
20
  export declare class ConflictException extends __BaseException {
21
+ static readonly shapeId: string;
20
22
  readonly name: "ConflictException";
21
23
  readonly $fault: "client";
22
24
  /**
@@ -29,6 +31,7 @@ export declare class ConflictException extends __BaseException {
29
31
  * @public
30
32
  */
31
33
  export declare class InternalServerException extends __BaseException {
34
+ static readonly shapeId: string;
32
35
  readonly name: "InternalServerException";
33
36
  readonly $fault: "server";
34
37
  /**
@@ -41,6 +44,7 @@ export declare class InternalServerException extends __BaseException {
41
44
  * @public
42
45
  */
43
46
  export declare class ServiceQuotaExceededException extends __BaseException {
47
+ static readonly shapeId: string;
44
48
  readonly name: "ServiceQuotaExceededException";
45
49
  readonly $fault: "client";
46
50
  /**
@@ -53,6 +57,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
53
57
  * @public
54
58
  */
55
59
  export declare class ValidationException extends __BaseException {
60
+ static readonly shapeId: string;
56
61
  readonly name: "ValidationException";
57
62
  readonly $fault: "client";
58
63
  /**
@@ -65,6 +70,7 @@ export declare class ValidationException extends __BaseException {
65
70
  * @public
66
71
  */
67
72
  export declare class ResourceNotFoundException extends __BaseException {
73
+ static readonly shapeId: string;
68
74
  readonly name: "ResourceNotFoundException";
69
75
  readonly $fault: "client";
70
76
  /**
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class KeyspacesServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,31 +1,37 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { KeyspacesServiceException as __BaseException } from "./KeyspacesServiceException";
3
3
  export declare class AccessDeniedException extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "AccessDeniedException";
5
6
  readonly $fault: "client";
6
7
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
8
  }
8
9
  export declare class ConflictException extends __BaseException {
10
+ static readonly shapeId: string;
9
11
  readonly name: "ConflictException";
10
12
  readonly $fault: "client";
11
13
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
12
14
  }
13
15
  export declare class InternalServerException extends __BaseException {
16
+ static readonly shapeId: string;
14
17
  readonly name: "InternalServerException";
15
18
  readonly $fault: "server";
16
19
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
17
20
  }
18
21
  export declare class ServiceQuotaExceededException extends __BaseException {
22
+ static readonly shapeId: string;
19
23
  readonly name: "ServiceQuotaExceededException";
20
24
  readonly $fault: "client";
21
25
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
22
26
  }
23
27
  export declare class ValidationException extends __BaseException {
28
+ static readonly shapeId: string;
24
29
  readonly name: "ValidationException";
25
30
  readonly $fault: "client";
26
31
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
27
32
  }
28
33
  export declare class ResourceNotFoundException extends __BaseException {
34
+ static readonly shapeId: string;
29
35
  readonly name: "ResourceNotFoundException";
30
36
  readonly $fault: "client";
31
37
  resourceArn?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspaces",
3
- "version": "3.1147.0",
3
+ "version": "3.1149.0",
4
4
  "description": "AWS SDK for JavaScript Keyspaces Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-keyspaces",
6
6
  "license": "Apache-2.0",
@@ -46,10 +46,10 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.1",
50
- "@aws-sdk/credential-provider-node": "^3.972.84",
49
+ "@aws-sdk/core": "^3.978.2",
50
+ "@aws-sdk/credential-provider-node": "^3.972.85",
51
51
  "@aws-sdk/types": "^3.974.6",
52
- "@smithy/core": "^3.35.0",
52
+ "@smithy/core": "^3.35.2",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",
54
54
  "@smithy/node-http-handler": "^4.12.1",
55
55
  "@smithy/types": "^4.19.0",