@aws-sdk/client-health 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 +39 -0
- package/dist-cjs/index.js +5 -1
- package/dist-es/models/HealthServiceException.js +1 -0
- package/dist-es/models/errors.js +3 -0
- package/dist-types/models/HealthServiceException.d.ts +1 -0
- package/dist-types/models/errors.d.ts +3 -0
- package/dist-types/ts3.4/models/HealthServiceException.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -93,6 +93,45 @@ const params = { /** input parameters */ };
|
|
|
93
93
|
const command = new DescribeEventsCommand(params);
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
#### Supported Message Protocols
|
|
97
|
+
|
|
98
|
+
This client supports multiple protocols.
|
|
99
|
+
|
|
100
|
+
The default for this client is **AWS JSON (RPC) 1.1**.
|
|
101
|
+
|
|
102
|
+
We have selected this default based on our evaluation of the
|
|
103
|
+
performance characteristics of this protocol format in JavaScript. You don't need to change it,
|
|
104
|
+
but you have the option to do so, for example to support existing integrations or tests.
|
|
105
|
+
Selecting a non-default protocol changes the format
|
|
106
|
+
of the data sent over the network, but does not affect how you interact with the
|
|
107
|
+
client using JavaScript objects.
|
|
108
|
+
|
|
109
|
+
Install the `@aws-sdk/config` package to access alternate protocols.
|
|
110
|
+
|
|
111
|
+
See [AWS Protocols](https://smithy.io/2.0/aws/protocols/index.html) for more information.
|
|
112
|
+
|
|
113
|
+
##### AWS JSON (RPC) 1.1
|
|
114
|
+
|
|
115
|
+
This protocol uses JSON payloads.
|
|
116
|
+
```js
|
|
117
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/config/protocol";
|
|
118
|
+
|
|
119
|
+
const client = new HealthClient({
|
|
120
|
+
protocol: AwsJson1_1Protocol
|
|
121
|
+
});
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
##### Smithy RPC v2 CBOR
|
|
125
|
+
|
|
126
|
+
This protocol uses CBOR payloads.
|
|
127
|
+
```js
|
|
128
|
+
import { AwsSmithyRpcV2CborProtocol } from "@aws-sdk/config/protocol";
|
|
129
|
+
|
|
130
|
+
const client = new HealthClient({
|
|
131
|
+
protocol: AwsSmithyRpcV2CborProtocol
|
|
132
|
+
});
|
|
133
|
+
```
|
|
134
|
+
|
|
96
135
|
#### Async/await
|
|
97
136
|
|
|
98
137
|
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.
|
|
72
|
+
var version = "3.1148.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -154,6 +154,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
154
154
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
155
155
|
|
|
156
156
|
class HealthServiceException extends ServiceException {
|
|
157
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.health#HealthServiceException";
|
|
157
158
|
constructor(options) {
|
|
158
159
|
super(options);
|
|
159
160
|
Object.setPrototypeOf(this, HealthServiceException.prototype);
|
|
@@ -161,6 +162,7 @@ class HealthServiceException extends ServiceException {
|
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
class InvalidPaginationToken extends HealthServiceException {
|
|
165
|
+
static shapeId = "com.amazonaws.health#InvalidPaginationToken";
|
|
164
166
|
name = "InvalidPaginationToken";
|
|
165
167
|
$fault = "client";
|
|
166
168
|
constructor(opts) {
|
|
@@ -173,6 +175,7 @@ class InvalidPaginationToken extends HealthServiceException {
|
|
|
173
175
|
}
|
|
174
176
|
}
|
|
175
177
|
class UnsupportedLocale extends HealthServiceException {
|
|
178
|
+
static shapeId = "com.amazonaws.health#UnsupportedLocale";
|
|
176
179
|
name = "UnsupportedLocale";
|
|
177
180
|
$fault = "client";
|
|
178
181
|
constructor(opts) {
|
|
@@ -185,6 +188,7 @@ class UnsupportedLocale extends HealthServiceException {
|
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
class ConcurrentModificationException extends HealthServiceException {
|
|
191
|
+
static shapeId = "com.amazonaws.health#ConcurrentModificationException";
|
|
188
192
|
name = "ConcurrentModificationException";
|
|
189
193
|
$fault = "client";
|
|
190
194
|
constructor(opts) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
2
|
export { __ServiceException };
|
|
3
3
|
export class HealthServiceException extends __ServiceException {
|
|
4
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.health#HealthServiceException";
|
|
4
5
|
constructor(options) {
|
|
5
6
|
super(options);
|
|
6
7
|
Object.setPrototypeOf(this, HealthServiceException.prototype);
|
package/dist-es/models/errors.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HealthServiceException as __BaseException } from "./HealthServiceException";
|
|
2
2
|
export class InvalidPaginationToken extends __BaseException {
|
|
3
|
+
static shapeId = "com.amazonaws.health#InvalidPaginationToken";
|
|
3
4
|
name = "InvalidPaginationToken";
|
|
4
5
|
$fault = "client";
|
|
5
6
|
constructor(opts) {
|
|
@@ -12,6 +13,7 @@ export class InvalidPaginationToken extends __BaseException {
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
export class UnsupportedLocale extends __BaseException {
|
|
16
|
+
static shapeId = "com.amazonaws.health#UnsupportedLocale";
|
|
15
17
|
name = "UnsupportedLocale";
|
|
16
18
|
$fault = "client";
|
|
17
19
|
constructor(opts) {
|
|
@@ -24,6 +26,7 @@ export class UnsupportedLocale extends __BaseException {
|
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
export class ConcurrentModificationException extends __BaseException {
|
|
29
|
+
static shapeId = "com.amazonaws.health#ConcurrentModificationException";
|
|
27
30
|
name = "ConcurrentModificationException";
|
|
28
31
|
$fault = "client";
|
|
29
32
|
constructor(opts) {
|
|
@@ -5,6 +5,7 @@ import { HealthServiceException as __BaseException } from "./HealthServiceExcept
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export declare class InvalidPaginationToken extends __BaseException {
|
|
8
|
+
static readonly shapeId: string;
|
|
8
9
|
readonly name: "InvalidPaginationToken";
|
|
9
10
|
readonly $fault: "client";
|
|
10
11
|
/**
|
|
@@ -17,6 +18,7 @@ export declare class InvalidPaginationToken extends __BaseException {
|
|
|
17
18
|
* @public
|
|
18
19
|
*/
|
|
19
20
|
export declare class UnsupportedLocale extends __BaseException {
|
|
21
|
+
static readonly shapeId: string;
|
|
20
22
|
readonly name: "UnsupportedLocale";
|
|
21
23
|
readonly $fault: "client";
|
|
22
24
|
/**
|
|
@@ -31,6 +33,7 @@ export declare class UnsupportedLocale extends __BaseException {
|
|
|
31
33
|
* @public
|
|
32
34
|
*/
|
|
33
35
|
export declare class ConcurrentModificationException extends __BaseException {
|
|
36
|
+
static readonly shapeId: string;
|
|
34
37
|
readonly name: "ConcurrentModificationException";
|
|
35
38
|
readonly $fault: "client";
|
|
36
39
|
/**
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
2
|
import { HealthServiceException as __BaseException } from "./HealthServiceException";
|
|
3
3
|
export declare class InvalidPaginationToken extends __BaseException {
|
|
4
|
+
static readonly shapeId: string;
|
|
4
5
|
readonly name: "InvalidPaginationToken";
|
|
5
6
|
readonly $fault: "client";
|
|
6
7
|
constructor(opts: __ExceptionOptionType<InvalidPaginationToken, __BaseException>);
|
|
7
8
|
}
|
|
8
9
|
export declare class UnsupportedLocale extends __BaseException {
|
|
10
|
+
static readonly shapeId: string;
|
|
9
11
|
readonly name: "UnsupportedLocale";
|
|
10
12
|
readonly $fault: "client";
|
|
11
13
|
constructor(opts: __ExceptionOptionType<UnsupportedLocale, __BaseException>);
|
|
12
14
|
}
|
|
13
15
|
export declare class ConcurrentModificationException extends __BaseException {
|
|
16
|
+
static readonly shapeId: string;
|
|
14
17
|
readonly name: "ConcurrentModificationException";
|
|
15
18
|
readonly $fault: "client";
|
|
16
19
|
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-health",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1149.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Health Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-health",
|
|
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.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
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.
|
|
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",
|