@aws-sdk/client-pi 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
@@ -75,6 +75,45 @@ const params = { /** input parameters */ };
75
75
  const command = new ListTagsForResourceCommand(params);
76
76
  ```
77
77
 
78
+ #### Supported Message Protocols
79
+
80
+ This client supports multiple protocols.
81
+
82
+ The default for this client is **AWS JSON (RPC) 1.1**.
83
+
84
+ We have selected this default based on our evaluation of the
85
+ performance characteristics of this protocol format in JavaScript. You don't need to change it,
86
+ but you have the option to do so, for example to support existing integrations or tests.
87
+ Selecting a non-default protocol changes the format
88
+ of the data sent over the network, but does not affect how you interact with the
89
+ client using JavaScript objects.
90
+
91
+ Install the `@aws-sdk/config` package to access alternate protocols.
92
+
93
+ See [AWS Protocols](https://smithy.io/2.0/aws/protocols/index.html) for more information.
94
+
95
+ ##### AWS JSON (RPC) 1.1
96
+
97
+ This protocol uses JSON payloads.
98
+ ```js
99
+ import { AwsJson1_1Protocol } from "@aws-sdk/config/protocol";
100
+
101
+ const client = new PIClient({
102
+ protocol: AwsJson1_1Protocol
103
+ });
104
+ ```
105
+
106
+ ##### Smithy RPC v2 CBOR
107
+
108
+ This protocol uses CBOR payloads.
109
+ ```js
110
+ import { AwsSmithyRpcV2CborProtocol } from "@aws-sdk/config/protocol";
111
+
112
+ const client = new PIClient({
113
+ protocol: AwsSmithyRpcV2CborProtocol
114
+ });
115
+ ```
116
+
78
117
  #### Async/await
79
118
 
80
119
  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
 
@@ -132,6 +132,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
132
132
  customEndpointFunctions.aws = awsEndpointFunctions;
133
133
 
134
134
  class PIServiceException extends ServiceException {
135
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.pi#PIServiceException";
135
136
  constructor(options) {
136
137
  super(options);
137
138
  Object.setPrototypeOf(this, PIServiceException.prototype);
@@ -139,6 +140,7 @@ class PIServiceException extends ServiceException {
139
140
  }
140
141
 
141
142
  class InternalServiceError extends PIServiceException {
143
+ static shapeId = "com.amazonaws.pi#InternalServiceError";
142
144
  name = "InternalServiceError";
143
145
  $fault = "server";
144
146
  Message;
@@ -153,6 +155,7 @@ class InternalServiceError extends PIServiceException {
153
155
  }
154
156
  }
155
157
  class InvalidArgumentException extends PIServiceException {
158
+ static shapeId = "com.amazonaws.pi#InvalidArgumentException";
156
159
  name = "InvalidArgumentException";
157
160
  $fault = "client";
158
161
  Message;
@@ -167,6 +170,7 @@ class InvalidArgumentException extends PIServiceException {
167
170
  }
168
171
  }
169
172
  class NotAuthorizedException extends PIServiceException {
173
+ static shapeId = "com.amazonaws.pi#NotAuthorizedException";
170
174
  name = "NotAuthorizedException";
171
175
  $fault = "client";
172
176
  Message;
@@ -1,6 +1,7 @@
1
1
  import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class PIServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.pi#PIServiceException";
4
5
  constructor(options) {
5
6
  super(options);
6
7
  Object.setPrototypeOf(this, PIServiceException.prototype);
@@ -1,5 +1,6 @@
1
1
  import { PIServiceException as __BaseException } from "./PIServiceException";
2
2
  export class InternalServiceError extends __BaseException {
3
+ static shapeId = "com.amazonaws.pi#InternalServiceError";
3
4
  name = "InternalServiceError";
4
5
  $fault = "server";
5
6
  Message;
@@ -14,6 +15,7 @@ export class InternalServiceError extends __BaseException {
14
15
  }
15
16
  }
16
17
  export class InvalidArgumentException extends __BaseException {
18
+ static shapeId = "com.amazonaws.pi#InvalidArgumentException";
17
19
  name = "InvalidArgumentException";
18
20
  $fault = "client";
19
21
  Message;
@@ -28,6 +30,7 @@ export class InvalidArgumentException extends __BaseException {
28
30
  }
29
31
  }
30
32
  export class NotAuthorizedException extends __BaseException {
33
+ static shapeId = "com.amazonaws.pi#NotAuthorizedException";
31
34
  name = "NotAuthorizedException";
32
35
  $fault = "client";
33
36
  Message;
@@ -7,6 +7,7 @@ export { __ServiceException };
7
7
  * Base exception class for all service exceptions from PI service.
8
8
  */
9
9
  export declare class PIServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
10
11
  /**
11
12
  * @internal
12
13
  */
@@ -5,6 +5,7 @@ import { PIServiceException as __BaseException } from "./PIServiceException";
5
5
  * @public
6
6
  */
7
7
  export declare class InternalServiceError extends __BaseException {
8
+ static readonly shapeId: string;
8
9
  readonly name: "InternalServiceError";
9
10
  readonly $fault: "server";
10
11
  Message?: string | undefined;
@@ -18,6 +19,7 @@ export declare class InternalServiceError extends __BaseException {
18
19
  * @public
19
20
  */
20
21
  export declare class InvalidArgumentException extends __BaseException {
22
+ static readonly shapeId: string;
21
23
  readonly name: "InvalidArgumentException";
22
24
  readonly $fault: "client";
23
25
  Message?: string | undefined;
@@ -31,6 +33,7 @@ export declare class InvalidArgumentException extends __BaseException {
31
33
  * @public
32
34
  */
33
35
  export declare class NotAuthorizedException extends __BaseException {
36
+ static readonly shapeId: string;
34
37
  readonly name: "NotAuthorizedException";
35
38
  readonly $fault: "client";
36
39
  Message?: string | undefined;
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class PIServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,18 +1,21 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { PIServiceException as __BaseException } from "./PIServiceException";
3
3
  export declare class InternalServiceError extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "InternalServiceError";
5
6
  readonly $fault: "server";
6
7
  Message?: string | undefined;
7
8
  constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
8
9
  }
9
10
  export declare class InvalidArgumentException extends __BaseException {
11
+ static readonly shapeId: string;
10
12
  readonly name: "InvalidArgumentException";
11
13
  readonly $fault: "client";
12
14
  Message?: string | undefined;
13
15
  constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
14
16
  }
15
17
  export declare class NotAuthorizedException extends __BaseException {
18
+ static readonly shapeId: string;
16
19
  readonly name: "NotAuthorizedException";
17
20
  readonly $fault: "client";
18
21
  Message?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pi",
3
- "version": "3.1147.0",
3
+ "version": "3.1149.0",
4
4
  "description": "AWS SDK for JavaScript Pi Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pi",
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",