@aws-sdk/client-health 3.927.0 → 3.928.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/dist-cjs/index.js +654 -670
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/HealthClient.js +2 -0
- package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeAffectedEntitiesCommand.js +3 -9
- package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeEntityAggregatesCommand.js +3 -9
- package/dist-es/commands/DescribeEntityAggregatesForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeEventAggregatesCommand.js +3 -9
- package/dist-es/commands/DescribeEventDetailsCommand.js +3 -9
- package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeEventTypesCommand.js +3 -9
- package/dist-es/commands/DescribeEventsCommand.js +3 -9
- package/dist-es/commands/DescribeEventsForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +3 -9
- package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +3 -9
- package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +637 -0
- package/dist-types/HealthClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +103 -0
- package/dist-types/ts3.4/HealthClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +108 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -567
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -128
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -173
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ??
|
|
30
|
+
new protocols_1.AwsJson1_1Protocol({
|
|
31
|
+
defaultNamespace: "com.amazonaws.health",
|
|
32
|
+
serviceTarget: "AWSHealth_20160804",
|
|
33
|
+
awsQueryCompatible: false,
|
|
34
|
+
}),
|
|
28
35
|
serviceId: config?.serviceId ?? "Health",
|
|
29
36
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
37
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/dist-es/HealthClient.js
CHANGED
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class HealthClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeAffectedAccountsForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeAffectedAccountsForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeAffectedAccountsForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DescribeAffectedAccountsForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeAffectedAccountsForOrganizationCommand)
|
|
20
|
-
.de(de_DescribeAffectedAccountsForOrganizationCommand)
|
|
14
|
+
.sc(DescribeAffectedAccountsForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeAffectedEntities } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeAffectedEntitiesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeAffectedEntities", {})
|
|
17
13
|
.n("HealthClient", "DescribeAffectedEntitiesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeAffectedEntitiesCommand)
|
|
20
|
-
.de(de_DescribeAffectedEntitiesCommand)
|
|
14
|
+
.sc(DescribeAffectedEntities)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeAffectedEntitiesForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeAffectedEntitiesForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeAffectedEntitiesForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DescribeAffectedEntitiesForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeAffectedEntitiesForOrganizationCommand)
|
|
20
|
-
.de(de_DescribeAffectedEntitiesForOrganizationCommand)
|
|
14
|
+
.sc(DescribeAffectedEntitiesForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEntityAggregates } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEntityAggregatesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEntityAggregates", {})
|
|
17
13
|
.n("HealthClient", "DescribeEntityAggregatesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEntityAggregatesCommand)
|
|
20
|
-
.de(de_DescribeEntityAggregatesCommand)
|
|
14
|
+
.sc(DescribeEntityAggregates)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEntityAggregatesForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEntityAggregatesForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEntityAggregatesForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DescribeEntityAggregatesForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEntityAggregatesForOrganizationCommand)
|
|
20
|
-
.de(de_DescribeEntityAggregatesForOrganizationCommand)
|
|
14
|
+
.sc(DescribeEntityAggregatesForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEventAggregates } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEventAggregatesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEventAggregates", {})
|
|
17
13
|
.n("HealthClient", "DescribeEventAggregatesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEventAggregatesCommand)
|
|
20
|
-
.de(de_DescribeEventAggregatesCommand)
|
|
14
|
+
.sc(DescribeEventAggregates)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEventDetails } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEventDetailsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEventDetails", {})
|
|
17
13
|
.n("HealthClient", "DescribeEventDetailsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEventDetailsCommand)
|
|
20
|
-
.de(de_DescribeEventDetailsCommand)
|
|
14
|
+
.sc(DescribeEventDetails)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEventDetailsForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEventDetailsForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEventDetailsForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DescribeEventDetailsForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEventDetailsForOrganizationCommand)
|
|
20
|
-
.de(de_DescribeEventDetailsForOrganizationCommand)
|
|
14
|
+
.sc(DescribeEventDetailsForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEventTypes } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEventTypesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEventTypes", {})
|
|
17
13
|
.n("HealthClient", "DescribeEventTypesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEventTypesCommand)
|
|
20
|
-
.de(de_DescribeEventTypesCommand)
|
|
14
|
+
.sc(DescribeEventTypes)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEvents } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEventsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEvents", {})
|
|
17
13
|
.n("HealthClient", "DescribeEventsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEventsCommand)
|
|
20
|
-
.de(de_DescribeEventsCommand)
|
|
14
|
+
.sc(DescribeEvents)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeEventsForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeEventsForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeEventsForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DescribeEventsForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeEventsForOrganizationCommand)
|
|
20
|
-
.de(de_DescribeEventsForOrganizationCommand)
|
|
14
|
+
.sc(DescribeEventsForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DescribeHealthServiceStatusForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeHealthServiceStatusForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DescribeHealthServiceStatusForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DescribeHealthServiceStatusForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeHealthServiceStatusForOrganizationCommand)
|
|
20
|
-
.de(de_DescribeHealthServiceStatusForOrganizationCommand)
|
|
14
|
+
.sc(DescribeHealthServiceStatusForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DisableHealthServiceAccessForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DisableHealthServiceAccessForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "DisableHealthServiceAccessForOrganization", {})
|
|
17
13
|
.n("HealthClient", "DisableHealthServiceAccessForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DisableHealthServiceAccessForOrganizationCommand)
|
|
20
|
-
.de(de_DisableHealthServiceAccessForOrganizationCommand)
|
|
14
|
+
.sc(DisableHealthServiceAccessForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { EnableHealthServiceAccessForOrganization } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class EnableHealthServiceAccessForOrganizationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSHealth_20160804", "EnableHealthServiceAccessForOrganization", {})
|
|
17
13
|
.n("HealthClient", "EnableHealthServiceAccessForOrganizationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_EnableHealthServiceAccessForOrganizationCommand)
|
|
20
|
-
.de(de_EnableHealthServiceAccessForOrganizationCommand)
|
|
14
|
+
.sc(EnableHealthServiceAccessForOrganization)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.health",
|
|
29
|
+
serviceTarget: "AWSHealth_20160804",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Health",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|