@aws-sdk/client-health 3.43.0 → 3.47.1
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/CHANGELOG.md +47 -0
- package/README.md +4 -5
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +1 -19
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +0 -12
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Health.d.ts +18 -18
- package/dist-types/HealthClient.d.ts +9 -6
- package/dist-types/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -2
- package/dist-types/commands/DescribeEventDetailsForOrganizationCommand.d.ts +3 -3
- package/dist-types/commands/DescribeEventTypesCommand.d.ts +1 -1
- package/dist-types/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +6 -5
- package/dist-types/commands/EnableHealthServiceAccessForOrganizationCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +12 -29
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/HealthClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -12
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-health
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
36
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-health
|
package/README.md
CHANGED
|
@@ -11,14 +11,13 @@ AWS SDK for JavaScript Health Client for Node.js, Browser and React Native.
|
|
|
11
11
|
|
|
12
12
|
<p>The Health API provides programmatic access to the Health information that
|
|
13
13
|
appears in the <a href="https://phd.aws.amazon.com/phd/home#/">Personal Health Dashboard</a>. You
|
|
14
|
-
can use the API operations to get information about events that might affect your Amazon Web Services
|
|
15
|
-
services and resources.</p>
|
|
14
|
+
can use the API operations to get information about events that might affect your Amazon Web Services services and resources.</p>
|
|
16
15
|
<note>
|
|
17
16
|
<ul>
|
|
18
17
|
<li>
|
|
19
|
-
<p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the
|
|
20
|
-
|
|
21
|
-
doesn't have a Business or Enterprise Support plan, you receive a
|
|
18
|
+
<p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
19
|
+
API. If you call the Health API from an Amazon Web Services account that
|
|
20
|
+
doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, you receive a
|
|
22
21
|
<code>SubscriptionRequiredException</code> error.</p>
|
|
23
22
|
</li>
|
|
24
23
|
<li>
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DescribeHealthServiceStatusForOrganizationResponse = exports.DescribeEventTypesResponse = exports.EventType = exports.DescribeEventTypesRequest = exports.EventTypeFilter = exports.DescribeEventsForOrganizationResponse = exports.OrganizationEvent = exports.DescribeEventsForOrganizationRequest = exports.OrganizationEventFilter = exports.DescribeEventsResponse = exports.DescribeEventsRequest = exports.DescribeEventDetailsForOrganizationResponse = exports.OrganizationEventDetails = exports.OrganizationEventDetailsErrorItem = exports.DescribeEventDetailsForOrganizationRequest = exports.DescribeEventDetailsResponse = exports.EventDetails = exports.EventDescription = exports.Event = exports.EventDetailsErrorItem = exports.DescribeEventDetailsRequest = exports.DescribeEventAggregatesResponse = exports.EventAggregate = exports.DescribeEventAggregatesRequest = exports.EventFilter = exports.EventTypeCategory = exports.EventStatusCode = exports.EventAggregateField = exports.DescribeEntityAggregatesResponse = exports.EntityAggregate = exports.DescribeEntityAggregatesRequest = exports.DescribeAffectedEntitiesForOrganizationResponse = exports.OrganizationAffectedEntitiesErrorItem = exports.DescribeAffectedEntitiesForOrganizationRequest = exports.EventAccountFilter = exports.DescribeAffectedEntitiesResponse = exports.DescribeAffectedEntitiesRequest = exports.EntityFilter = exports.DateTimeRange = exports.DescribeAffectedAccountsForOrganizationResponse = exports.EventScopeCode = exports.DescribeAffectedAccountsForOrganizationRequest = exports.AffectedEntity = exports.EntityStatusCode = void 0;
|
|
4
4
|
var EntityStatusCode;
|
|
5
5
|
(function (EntityStatusCode) {
|
|
6
6
|
EntityStatusCode["IMPAIRED"] = "IMPAIRED";
|
|
@@ -31,12 +31,6 @@ var DescribeAffectedAccountsForOrganizationResponse;
|
|
|
31
31
|
...obj,
|
|
32
32
|
});
|
|
33
33
|
})(DescribeAffectedAccountsForOrganizationResponse = exports.DescribeAffectedAccountsForOrganizationResponse || (exports.DescribeAffectedAccountsForOrganizationResponse = {}));
|
|
34
|
-
var InvalidPaginationToken;
|
|
35
|
-
(function (InvalidPaginationToken) {
|
|
36
|
-
InvalidPaginationToken.filterSensitiveLog = (obj) => ({
|
|
37
|
-
...obj,
|
|
38
|
-
});
|
|
39
|
-
})(InvalidPaginationToken = exports.InvalidPaginationToken || (exports.InvalidPaginationToken = {}));
|
|
40
34
|
var DateTimeRange;
|
|
41
35
|
(function (DateTimeRange) {
|
|
42
36
|
DateTimeRange.filterSensitiveLog = (obj) => ({
|
|
@@ -61,12 +55,6 @@ var DescribeAffectedEntitiesResponse;
|
|
|
61
55
|
...obj,
|
|
62
56
|
});
|
|
63
57
|
})(DescribeAffectedEntitiesResponse = exports.DescribeAffectedEntitiesResponse || (exports.DescribeAffectedEntitiesResponse = {}));
|
|
64
|
-
var UnsupportedLocale;
|
|
65
|
-
(function (UnsupportedLocale) {
|
|
66
|
-
UnsupportedLocale.filterSensitiveLog = (obj) => ({
|
|
67
|
-
...obj,
|
|
68
|
-
});
|
|
69
|
-
})(UnsupportedLocale = exports.UnsupportedLocale || (exports.UnsupportedLocale = {}));
|
|
70
58
|
var EventAccountFilter;
|
|
71
59
|
(function (EventAccountFilter) {
|
|
72
60
|
EventAccountFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -276,9 +264,3 @@ var DescribeHealthServiceStatusForOrganizationResponse;
|
|
|
276
264
|
...obj,
|
|
277
265
|
});
|
|
278
266
|
})(DescribeHealthServiceStatusForOrganizationResponse = exports.DescribeHealthServiceStatusForOrganizationResponse || (exports.DescribeHealthServiceStatusForOrganizationResponse = {}));
|
|
279
|
-
var ConcurrentModificationException;
|
|
280
|
-
(function (ConcurrentModificationException) {
|
|
281
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
282
|
-
...obj,
|
|
283
|
-
});
|
|
284
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -23,10 +23,6 @@ export var DescribeAffectedAccountsForOrganizationResponse;
|
|
|
23
23
|
(function (DescribeAffectedAccountsForOrganizationResponse) {
|
|
24
24
|
DescribeAffectedAccountsForOrganizationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
25
|
})(DescribeAffectedAccountsForOrganizationResponse || (DescribeAffectedAccountsForOrganizationResponse = {}));
|
|
26
|
-
export var InvalidPaginationToken;
|
|
27
|
-
(function (InvalidPaginationToken) {
|
|
28
|
-
InvalidPaginationToken.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
-
})(InvalidPaginationToken || (InvalidPaginationToken = {}));
|
|
30
26
|
export var DateTimeRange;
|
|
31
27
|
(function (DateTimeRange) {
|
|
32
28
|
DateTimeRange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -43,10 +39,6 @@ export var DescribeAffectedEntitiesResponse;
|
|
|
43
39
|
(function (DescribeAffectedEntitiesResponse) {
|
|
44
40
|
DescribeAffectedEntitiesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
41
|
})(DescribeAffectedEntitiesResponse || (DescribeAffectedEntitiesResponse = {}));
|
|
46
|
-
export var UnsupportedLocale;
|
|
47
|
-
(function (UnsupportedLocale) {
|
|
48
|
-
UnsupportedLocale.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
|
-
})(UnsupportedLocale || (UnsupportedLocale = {}));
|
|
50
42
|
export var EventAccountFilter;
|
|
51
43
|
(function (EventAccountFilter) {
|
|
52
44
|
EventAccountFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -192,7 +184,3 @@ export var DescribeHealthServiceStatusForOrganizationResponse;
|
|
|
192
184
|
(function (DescribeHealthServiceStatusForOrganizationResponse) {
|
|
193
185
|
DescribeHealthServiceStatusForOrganizationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
186
|
})(DescribeHealthServiceStatusForOrganizationResponse || (DescribeHealthServiceStatusForOrganizationResponse = {}));
|
|
195
|
-
export var ConcurrentModificationException;
|
|
196
|
-
(function (ConcurrentModificationException) {
|
|
197
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
package/dist-types/Health.d.ts
CHANGED
|
@@ -18,14 +18,13 @@ import { HealthClient } from "./HealthClient";
|
|
|
18
18
|
*
|
|
19
19
|
* <p>The Health API provides programmatic access to the Health information that
|
|
20
20
|
* appears in the <a href="https://phd.aws.amazon.com/phd/home#/">Personal Health Dashboard</a>. You
|
|
21
|
-
* can use the API operations to get information about events that might affect your Amazon Web Services
|
|
22
|
-
* services and resources.</p>
|
|
21
|
+
* can use the API operations to get information about events that might affect your Amazon Web Services services and resources.</p>
|
|
23
22
|
* <note>
|
|
24
23
|
* <ul>
|
|
25
24
|
* <li>
|
|
26
|
-
* <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the
|
|
27
|
-
*
|
|
28
|
-
* doesn't have a Business or Enterprise Support plan, you receive a
|
|
25
|
+
* <p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
26
|
+
* API. If you call the Health API from an Amazon Web Services account that
|
|
27
|
+
* doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, you receive a
|
|
29
28
|
* <code>SubscriptionRequiredException</code> error.</p>
|
|
30
29
|
* </li>
|
|
31
30
|
* <li>
|
|
@@ -110,8 +109,8 @@ export declare class Health extends HealthClient {
|
|
|
110
109
|
* depending on the Amazon Web Services service.</p>
|
|
111
110
|
* <p>At least one event Amazon Resource Name (ARN) and account ID are required.</p>
|
|
112
111
|
* <p>Before you can call this operation, you must first enable Health to work with
|
|
113
|
-
* Organizations. To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
|
|
114
|
-
*
|
|
112
|
+
* Organizations. To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> operation from your organization's
|
|
113
|
+
* management account.</p>
|
|
115
114
|
* <note>
|
|
116
115
|
* <ul>
|
|
117
116
|
* <li>
|
|
@@ -162,8 +161,8 @@ export declare class Health extends HealthClient {
|
|
|
162
161
|
describeEventDetails(args: DescribeEventDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventDetailsCommandOutput) => void): void;
|
|
163
162
|
/**
|
|
164
163
|
* <p>Returns detailed information about one or more specified events for one or more
|
|
165
|
-
* Amazon Web Services accounts in your organization. This information includes standard event data (such as
|
|
166
|
-
* Amazon Web Services Region and service), an event description, and (depending on the event) possible
|
|
164
|
+
* Amazon Web Services accounts in your organization. This information includes standard event data (such as
|
|
165
|
+
* the Amazon Web Services Region and service), an event description, and (depending on the event) possible
|
|
167
166
|
* metadata. This operation doesn't return affected entities, such as the resources related to
|
|
168
167
|
* the event. To return affected entities, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> operation.</p>
|
|
169
168
|
* <note>
|
|
@@ -183,7 +182,7 @@ export declare class Health extends HealthClient {
|
|
|
183
182
|
* </li>
|
|
184
183
|
* <li>
|
|
185
184
|
* <p>To return event details for an event that is specific to an account in your
|
|
186
|
-
* organization,
|
|
185
|
+
* organization, you must specify the <code>awsAccountId</code> parameter in the
|
|
187
186
|
* request. If you don't specify an account ID, Health returns an error message
|
|
188
187
|
* because the event is specific to an account in your organization. </p>
|
|
189
188
|
* </li>
|
|
@@ -268,7 +267,7 @@ export declare class Health extends HealthClient {
|
|
|
268
267
|
* operation to find information about the Health event, such as the category, Amazon Web Services
|
|
269
268
|
* service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a> object. </p>
|
|
270
269
|
* <p>If you don't specify a filter criteria, the API operation returns all event types, in no
|
|
271
|
-
* particular order.
|
|
270
|
+
* particular order. </p>
|
|
272
271
|
* <note>
|
|
273
272
|
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
274
273
|
* </note>
|
|
@@ -289,16 +288,17 @@ export declare class Health extends HealthClient {
|
|
|
289
288
|
* <p>Disables Health from working with Organizations. To call this operation, you must sign
|
|
290
289
|
* in as an Identity and Access Management (IAM) user, assume an IAM role, or sign in as the root user (not
|
|
291
290
|
* recommended) in the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
|
|
292
|
-
* Health events</a> in the
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
291
|
+
* Health events</a> in the <i>Health User Guide</i>.</p>
|
|
292
|
+
* <p>This operation doesn't remove the service-linked role from the management account in your
|
|
293
|
+
* organization. You must use the IAM console, API, or Command Line Interface (CLI) to remove the
|
|
294
|
+
* service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting a Service-Linked Role</a> in the
|
|
296
295
|
* <i>IAM User Guide</i>.</p>
|
|
297
296
|
* <note>
|
|
298
297
|
* <p>You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a> API operation. After you call this operation,
|
|
299
298
|
* Health stops aggregating events for all other Amazon Web Services accounts in your organization.
|
|
300
299
|
* If you call the Health API operations for organizational view, Health returns
|
|
301
|
-
* an error. Health continues to aggregate health events for your
|
|
300
|
+
* an error. Health continues to aggregate health events for your
|
|
301
|
+
* Amazon Web Services account.</p>
|
|
302
302
|
* </note>
|
|
303
303
|
*/
|
|
304
304
|
disableHealthServiceAccessForOrganization(args: DisableHealthServiceAccessForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<DisableHealthServiceAccessForOrganizationCommandOutput>;
|
|
@@ -313,9 +313,9 @@ export declare class Health extends HealthClient {
|
|
|
313
313
|
* <p>To call this operation, you must meet the following requirements:</p>
|
|
314
314
|
* <ul>
|
|
315
315
|
* <li>
|
|
316
|
-
* <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
316
|
+
* <p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
317
317
|
* API. If you call the Health API from an Amazon Web Services account that doesn't have a
|
|
318
|
-
* Business or Enterprise Support plan, you receive a
|
|
318
|
+
* Business, Enterprise On-Ramp, or Enterprise Support plan, you receive a
|
|
319
319
|
* <code>SubscriptionRequiredException</code> error.</p>
|
|
320
320
|
* </li>
|
|
321
321
|
* <li>
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAccountsForOrganizationCommandOutput } from "./commands/DescribeAffectedAccountsForOrganizationCommand";
|
|
10
10
|
import { DescribeAffectedEntitiesCommandInput, DescribeAffectedEntitiesCommandOutput } from "./commands/DescribeAffectedEntitiesCommand";
|
|
@@ -121,6 +121,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
121
121
|
* @internal
|
|
122
122
|
*/
|
|
123
123
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
124
|
+
/**
|
|
125
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
126
|
+
*/
|
|
127
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
124
128
|
}
|
|
125
129
|
declare type HealthClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
126
130
|
/**
|
|
@@ -139,14 +143,13 @@ export interface HealthClientResolvedConfig extends HealthClientResolvedConfigTy
|
|
|
139
143
|
*
|
|
140
144
|
* <p>The Health API provides programmatic access to the Health information that
|
|
141
145
|
* appears in the <a href="https://phd.aws.amazon.com/phd/home#/">Personal Health Dashboard</a>. You
|
|
142
|
-
* can use the API operations to get information about events that might affect your Amazon Web Services
|
|
143
|
-
* services and resources.</p>
|
|
146
|
+
* can use the API operations to get information about events that might affect your Amazon Web Services services and resources.</p>
|
|
144
147
|
* <note>
|
|
145
148
|
* <ul>
|
|
146
149
|
* <li>
|
|
147
|
-
* <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the
|
|
148
|
-
*
|
|
149
|
-
* doesn't have a Business or Enterprise Support plan, you receive a
|
|
150
|
+
* <p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
151
|
+
* API. If you call the Health API from an Amazon Web Services account that
|
|
152
|
+
* doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, you receive a
|
|
150
153
|
* <code>SubscriptionRequiredException</code> error.</p>
|
|
151
154
|
* </li>
|
|
152
155
|
* <li>
|
|
@@ -13,8 +13,8 @@ export interface DescribeAffectedEntitiesForOrganizationCommandOutput extends De
|
|
|
13
13
|
* depending on the Amazon Web Services service.</p>
|
|
14
14
|
* <p>At least one event Amazon Resource Name (ARN) and account ID are required.</p>
|
|
15
15
|
* <p>Before you can call this operation, you must first enable Health to work with
|
|
16
|
-
* Organizations. To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
|
|
17
|
-
*
|
|
16
|
+
* Organizations. To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> operation from your organization's
|
|
17
|
+
* management account.</p>
|
|
18
18
|
* <note>
|
|
19
19
|
* <ul>
|
|
20
20
|
* <li>
|
|
@@ -8,8 +8,8 @@ export interface DescribeEventDetailsForOrganizationCommandOutput extends Descri
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns detailed information about one or more specified events for one or more
|
|
11
|
-
* Amazon Web Services accounts in your organization. This information includes standard event data (such as
|
|
12
|
-
* Amazon Web Services Region and service), an event description, and (depending on the event) possible
|
|
11
|
+
* Amazon Web Services accounts in your organization. This information includes standard event data (such as
|
|
12
|
+
* the Amazon Web Services Region and service), an event description, and (depending on the event) possible
|
|
13
13
|
* metadata. This operation doesn't return affected entities, such as the resources related to
|
|
14
14
|
* the event. To return affected entities, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> operation.</p>
|
|
15
15
|
* <note>
|
|
@@ -29,7 +29,7 @@ export interface DescribeEventDetailsForOrganizationCommandOutput extends Descri
|
|
|
29
29
|
* </li>
|
|
30
30
|
* <li>
|
|
31
31
|
* <p>To return event details for an event that is specific to an account in your
|
|
32
|
-
* organization,
|
|
32
|
+
* organization, you must specify the <code>awsAccountId</code> parameter in the
|
|
33
33
|
* request. If you don't specify an account ID, Health returns an error message
|
|
34
34
|
* because the event is specific to an account in your organization. </p>
|
|
35
35
|
* </li>
|
|
@@ -11,7 +11,7 @@ export interface DescribeEventTypesCommandOutput extends DescribeEventTypesRespo
|
|
|
11
11
|
* operation to find information about the Health event, such as the category, Amazon Web Services
|
|
12
12
|
* service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a> object. </p>
|
|
13
13
|
* <p>If you don't specify a filter criteria, the API operation returns all event types, in no
|
|
14
|
-
* particular order.
|
|
14
|
+
* particular order. </p>
|
|
15
15
|
* <note>
|
|
16
16
|
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
17
17
|
* </note>
|
|
@@ -9,16 +9,17 @@ export interface DisableHealthServiceAccessForOrganizationCommandOutput extends
|
|
|
9
9
|
* <p>Disables Health from working with Organizations. To call this operation, you must sign
|
|
10
10
|
* in as an Identity and Access Management (IAM) user, assume an IAM role, or sign in as the root user (not
|
|
11
11
|
* recommended) in the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
|
|
12
|
-
* Health events</a> in the
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Health events</a> in the <i>Health User Guide</i>.</p>
|
|
13
|
+
* <p>This operation doesn't remove the service-linked role from the management account in your
|
|
14
|
+
* organization. You must use the IAM console, API, or Command Line Interface (CLI) to remove the
|
|
15
|
+
* service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting a Service-Linked Role</a> in the
|
|
16
16
|
* <i>IAM User Guide</i>.</p>
|
|
17
17
|
* <note>
|
|
18
18
|
* <p>You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a> API operation. After you call this operation,
|
|
19
19
|
* Health stops aggregating events for all other Amazon Web Services accounts in your organization.
|
|
20
20
|
* If you call the Health API operations for organizational view, Health returns
|
|
21
|
-
* an error. Health continues to aggregate health events for your
|
|
21
|
+
* an error. Health continues to aggregate health events for your
|
|
22
|
+
* Amazon Web Services account.</p>
|
|
22
23
|
* </note>
|
|
23
24
|
* @example
|
|
24
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -14,9 +14,9 @@ export interface EnableHealthServiceAccessForOrganizationCommandOutput extends _
|
|
|
14
14
|
* <p>To call this operation, you must meet the following requirements:</p>
|
|
15
15
|
* <ul>
|
|
16
16
|
* <li>
|
|
17
|
-
* <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
17
|
+
* <p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a> to use the Health
|
|
18
18
|
* API. If you call the Health API from an Amazon Web Services account that doesn't have a
|
|
19
|
-
* Business or Enterprise Support plan, you receive a
|
|
19
|
+
* Business, Enterprise On-Ramp, or Enterprise Support plan, you receive a
|
|
20
20
|
* <code>SubscriptionRequiredException</code> error.</p>
|
|
21
21
|
* </li>
|
|
22
22
|
* <li>
|
|
@@ -146,12 +146,6 @@ export interface InvalidPaginationToken extends __SmithyException, $MetadataBear
|
|
|
146
146
|
$fault: "client";
|
|
147
147
|
message?: string;
|
|
148
148
|
}
|
|
149
|
-
export declare namespace InvalidPaginationToken {
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
|
-
const filterSensitiveLog: (obj: InvalidPaginationToken) => any;
|
|
154
|
-
}
|
|
155
149
|
/**
|
|
156
150
|
* <p>A range of dates and times that is used by the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html">EventFilter</a> and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EntityFilter.html">EntityFilter</a> objects. If <code>from</code> is set and <code>to</code> is set:
|
|
157
151
|
* match items where the timestamp (<code>startTime</code>, <code>endTime</code>, or
|
|
@@ -178,8 +172,7 @@ export declare namespace DateTimeRange {
|
|
|
178
172
|
const filterSensitiveLog: (obj: DateTimeRange) => any;
|
|
179
173
|
}
|
|
180
174
|
/**
|
|
181
|
-
* <p>The values to use to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
|
|
182
|
-
* operation.</p>
|
|
175
|
+
* <p>The values to use to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a> operation.</p>
|
|
183
176
|
*/
|
|
184
177
|
export interface EntityFilter {
|
|
185
178
|
/**
|
|
@@ -274,12 +267,6 @@ export interface UnsupportedLocale extends __SmithyException, $MetadataBearer {
|
|
|
274
267
|
$fault: "client";
|
|
275
268
|
message?: string;
|
|
276
269
|
}
|
|
277
|
-
export declare namespace UnsupportedLocale {
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
*/
|
|
281
|
-
const filterSensitiveLog: (obj: UnsupportedLocale) => any;
|
|
282
|
-
}
|
|
283
270
|
/**
|
|
284
271
|
* <p>The values used to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> operations.</p>
|
|
285
272
|
*/
|
|
@@ -661,9 +648,10 @@ export declare namespace EventDetailsErrorItem {
|
|
|
661
648
|
* </li>
|
|
662
649
|
* <li>
|
|
663
650
|
* <p>
|
|
664
|
-
* <i>Account-specific</i> events are specific to either your
|
|
665
|
-
* Amazon
|
|
666
|
-
*
|
|
651
|
+
* <i>Account-specific</i> events are specific to either your
|
|
652
|
+
* Amazon Web Services account or an account in your organization. For example, if there's an issue
|
|
653
|
+
* with Amazon Elastic Compute Cloud in a Region that you use, Health provides information about the
|
|
654
|
+
* event and the affected resources in the account.</p>
|
|
667
655
|
* </li>
|
|
668
656
|
* </ul>
|
|
669
657
|
* <p>You can determine if an event is public or account-specific by using the
|
|
@@ -861,7 +849,8 @@ export interface OrganizationEventDetailsErrorItem {
|
|
|
861
849
|
* <p>We couldn't find an account specific event for the specified Amazon Web Services account. To find an event that is public, you must enter a null value for the Amazon Web Services account ID in the request.</p>
|
|
862
850
|
* </li>
|
|
863
851
|
* <li>
|
|
864
|
-
* <p>Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the
|
|
852
|
+
* <p>Your Amazon Web Services account doesn't include the Amazon Web Services Support plan required to use the
|
|
853
|
+
* Health API. You must have either a Business, Enterprise On-Ramp, or Enterprise Support plan.</p>
|
|
865
854
|
* </li>
|
|
866
855
|
* </ul>
|
|
867
856
|
*/
|
|
@@ -895,9 +884,10 @@ export interface OrganizationEventDetails {
|
|
|
895
884
|
* </li>
|
|
896
885
|
* <li>
|
|
897
886
|
* <p>
|
|
898
|
-
* <i>Account-specific</i> events are specific to either your
|
|
899
|
-
* Amazon
|
|
900
|
-
*
|
|
887
|
+
* <i>Account-specific</i> events are specific to either your
|
|
888
|
+
* Amazon Web Services account or an account in your organization. For example, if there's an issue
|
|
889
|
+
* with Amazon Elastic Compute Cloud in a Region that you use, Health provides information about the
|
|
890
|
+
* event and the affected resources in the account.</p>
|
|
901
891
|
* </li>
|
|
902
892
|
* </ul>
|
|
903
893
|
* <p>You can determine if an event is public or account-specific by using the
|
|
@@ -1303,8 +1293,7 @@ export declare namespace DescribeEventTypesResponse {
|
|
|
1303
1293
|
export interface DescribeHealthServiceStatusForOrganizationResponse {
|
|
1304
1294
|
/**
|
|
1305
1295
|
* <p>Information about the status of enabling or disabling the Health organizational
|
|
1306
|
-
* view feature in
|
|
1307
|
-
* your organization.</p>
|
|
1296
|
+
* view feature in your organization.</p>
|
|
1308
1297
|
* <p>Valid values are <code>ENABLED | DISABLED | PENDING</code>. </p>
|
|
1309
1298
|
*/
|
|
1310
1299
|
healthServiceAccessStatusForOrganization?: string;
|
|
@@ -1325,9 +1314,3 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
1325
1314
|
$fault: "client";
|
|
1326
1315
|
message?: string;
|
|
1327
1316
|
}
|
|
1328
|
-
export declare namespace ConcurrentModificationException {
|
|
1329
|
-
/**
|
|
1330
|
-
* @internal
|
|
1331
|
-
*/
|
|
1332
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
1333
|
-
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { HealthClientConfig } from "./HealthClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { HealthClientConfig } from "./HealthClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAccountsForOrganizationCommandOutput } from "./commands/DescribeAffectedAccountsForOrganizationCommand";
|
|
10
10
|
import { DescribeAffectedEntitiesCommandInput, DescribeAffectedEntitiesCommandOutput } from "./commands/DescribeAffectedEntitiesCommand";
|
|
@@ -64,6 +64,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
64
64
|
regionInfoProvider?: RegionInfoProvider;
|
|
65
65
|
|
|
66
66
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
67
|
+
|
|
68
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
67
69
|
}
|
|
68
70
|
declare type HealthClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
69
71
|
|
|
@@ -64,10 +64,6 @@ export interface InvalidPaginationToken extends __SmithyException, $MetadataBear
|
|
|
64
64
|
$fault: "client";
|
|
65
65
|
message?: string;
|
|
66
66
|
}
|
|
67
|
-
export declare namespace InvalidPaginationToken {
|
|
68
|
-
|
|
69
|
-
const filterSensitiveLog: (obj: InvalidPaginationToken) => any;
|
|
70
|
-
}
|
|
71
67
|
|
|
72
68
|
export interface DateTimeRange {
|
|
73
69
|
|
|
@@ -130,10 +126,6 @@ export interface UnsupportedLocale extends __SmithyException, $MetadataBearer {
|
|
|
130
126
|
$fault: "client";
|
|
131
127
|
message?: string;
|
|
132
128
|
}
|
|
133
|
-
export declare namespace UnsupportedLocale {
|
|
134
|
-
|
|
135
|
-
const filterSensitiveLog: (obj: UnsupportedLocale) => any;
|
|
136
|
-
}
|
|
137
129
|
|
|
138
130
|
export interface EventAccountFilter {
|
|
139
131
|
|
|
@@ -603,7 +595,3 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
603
595
|
$fault: "client";
|
|
604
596
|
message?: string;
|
|
605
597
|
}
|
|
606
|
-
export declare namespace ConcurrentModificationException {
|
|
607
|
-
|
|
608
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
609
|
-
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { HealthClientConfig } from "./HealthClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { HealthClientConfig } from "./HealthClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: HealthClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-health",
|
|
3
3
|
"description": "AWS SDK for JavaScript Health Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.47.1",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "yarn
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"
|
|
12
|
-
"clean
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
16
13
|
},
|
|
17
14
|
"main": "./dist-cjs/index.js",
|
|
18
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,48 +18,44 @@
|
|
|
21
18
|
"dependencies": {
|
|
22
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
51
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.47.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.47.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.1",
|
|
39
|
+
"@aws-sdk/types": "3.47.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.1",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.1",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.1",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.1",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.1",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.1",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.1",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.1",
|
|
52
51
|
"tslib": "^2.3.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
-
"@types/node": "^12.7.5"
|
|
57
|
-
"downlevel-dts": "0.7.0",
|
|
58
|
-
"jest": "^26.1.0",
|
|
59
|
-
"rimraf": "^3.0.0",
|
|
60
|
-
"ts-jest": "^26.4.1",
|
|
61
|
-
"typedoc": "^0.19.2",
|
|
62
|
-
"typescript": "~4.3.5"
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.1",
|
|
55
|
+
"@types/node": "^12.7.5"
|
|
63
56
|
},
|
|
64
57
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
58
|
+
"node": ">=12.0.0"
|
|
66
59
|
},
|
|
67
60
|
"typesVersions": {
|
|
68
61
|
"<4.0": {
|