@aws-sdk/client-support 3.328.0 → 3.332.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/dist-cjs/Support.js +4 -0
- package/dist-cjs/commands/DescribeCreateCaseOptionsCommand.js +45 -0
- package/dist-cjs/commands/DescribeSupportedLanguagesCommand.js +45 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +14 -1
- package/dist-cjs/protocols/Aws_json1_1.js +108 -1
- package/dist-es/Support.js +4 -0
- package/dist-es/commands/DescribeCreateCaseOptionsCommand.js +41 -0
- package/dist-es/commands/DescribeSupportedLanguagesCommand.js +41 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_json1_1.js +104 -1
- package/dist-types/Support.d.ts +14 -0
- package/dist-types/SupportClient.d.ts +4 -2
- package/dist-types/commands/DescribeCreateCaseOptionsCommand.d.ts +114 -0
- package/dist-types/commands/DescribeSupportedLanguagesCommand.d.ts +101 -0
- package/dist-types/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +5 -0
- package/dist-types/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +5 -0
- package/dist-types/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +5 -0
- package/dist-types/commands/DescribeTrustedAdvisorChecksCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +232 -8
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/Support.d.ts +34 -0
- package/dist-types/ts3.4/SupportClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeCreateCaseOptionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeSupportedLanguagesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +43 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +29 -29
package/README.md
CHANGED
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# @aws-sdk/client-support
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@aws-sdk/client-support)
|
|
6
|
-
[](https://www.npmjs.com/package/@aws-sdk/client-support)
|
|
7
|
-
|
|
8
5
|
## Description
|
|
9
6
|
|
|
10
7
|
AWS SDK for JavaScript Support Client for Node.js, Browser and React Native.
|
|
@@ -297,6 +294,14 @@ DescribeCommunications
|
|
|
297
294
|
|
|
298
295
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/classes/describecommunicationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describecommunicationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describecommunicationscommandoutput.html)
|
|
299
296
|
|
|
297
|
+
</details>
|
|
298
|
+
<details>
|
|
299
|
+
<summary>
|
|
300
|
+
DescribeCreateCaseOptions
|
|
301
|
+
</summary>
|
|
302
|
+
|
|
303
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/classes/describecreatecaseoptionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describecreatecaseoptionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describecreatecaseoptionscommandoutput.html)
|
|
304
|
+
|
|
300
305
|
</details>
|
|
301
306
|
<details>
|
|
302
307
|
<summary>
|
|
@@ -313,6 +318,14 @@ DescribeSeverityLevels
|
|
|
313
318
|
|
|
314
319
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/classes/describeseveritylevelscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describeseveritylevelscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describeseveritylevelscommandoutput.html)
|
|
315
320
|
|
|
321
|
+
</details>
|
|
322
|
+
<details>
|
|
323
|
+
<summary>
|
|
324
|
+
DescribeSupportedLanguages
|
|
325
|
+
</summary>
|
|
326
|
+
|
|
327
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/classes/describesupportedlanguagescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describesupportedlanguagescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-support/interfaces/describesupportedlanguagescommandoutput.html)
|
|
328
|
+
|
|
316
329
|
</details>
|
|
317
330
|
<details>
|
|
318
331
|
<summary>
|
package/dist-cjs/Support.js
CHANGED
|
@@ -8,8 +8,10 @@ const CreateCaseCommand_1 = require("./commands/CreateCaseCommand");
|
|
|
8
8
|
const DescribeAttachmentCommand_1 = require("./commands/DescribeAttachmentCommand");
|
|
9
9
|
const DescribeCasesCommand_1 = require("./commands/DescribeCasesCommand");
|
|
10
10
|
const DescribeCommunicationsCommand_1 = require("./commands/DescribeCommunicationsCommand");
|
|
11
|
+
const DescribeCreateCaseOptionsCommand_1 = require("./commands/DescribeCreateCaseOptionsCommand");
|
|
11
12
|
const DescribeServicesCommand_1 = require("./commands/DescribeServicesCommand");
|
|
12
13
|
const DescribeSeverityLevelsCommand_1 = require("./commands/DescribeSeverityLevelsCommand");
|
|
14
|
+
const DescribeSupportedLanguagesCommand_1 = require("./commands/DescribeSupportedLanguagesCommand");
|
|
13
15
|
const DescribeTrustedAdvisorCheckRefreshStatusesCommand_1 = require("./commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand");
|
|
14
16
|
const DescribeTrustedAdvisorCheckResultCommand_1 = require("./commands/DescribeTrustedAdvisorCheckResultCommand");
|
|
15
17
|
const DescribeTrustedAdvisorChecksCommand_1 = require("./commands/DescribeTrustedAdvisorChecksCommand");
|
|
@@ -24,8 +26,10 @@ const commands = {
|
|
|
24
26
|
DescribeAttachmentCommand: DescribeAttachmentCommand_1.DescribeAttachmentCommand,
|
|
25
27
|
DescribeCasesCommand: DescribeCasesCommand_1.DescribeCasesCommand,
|
|
26
28
|
DescribeCommunicationsCommand: DescribeCommunicationsCommand_1.DescribeCommunicationsCommand,
|
|
29
|
+
DescribeCreateCaseOptionsCommand: DescribeCreateCaseOptionsCommand_1.DescribeCreateCaseOptionsCommand,
|
|
27
30
|
DescribeServicesCommand: DescribeServicesCommand_1.DescribeServicesCommand,
|
|
28
31
|
DescribeSeverityLevelsCommand: DescribeSeverityLevelsCommand_1.DescribeSeverityLevelsCommand,
|
|
32
|
+
DescribeSupportedLanguagesCommand: DescribeSupportedLanguagesCommand_1.DescribeSupportedLanguagesCommand,
|
|
29
33
|
DescribeTrustedAdvisorCheckRefreshStatusesCommand: DescribeTrustedAdvisorCheckRefreshStatusesCommand_1.DescribeTrustedAdvisorCheckRefreshStatusesCommand,
|
|
30
34
|
DescribeTrustedAdvisorCheckResultCommand: DescribeTrustedAdvisorCheckResultCommand_1.DescribeTrustedAdvisorCheckResultCommand,
|
|
31
35
|
DescribeTrustedAdvisorChecksCommand: DescribeTrustedAdvisorChecksCommand_1.DescribeTrustedAdvisorChecksCommand,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeCreateCaseOptionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribeCreateCaseOptionsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeCreateCaseOptionsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "SupportClient";
|
|
27
|
+
const commandName = "DescribeCreateCaseOptionsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeCreateCaseOptionsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeCreateCaseOptionsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DescribeCreateCaseOptionsCommand = DescribeCreateCaseOptionsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeSupportedLanguagesCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribeSupportedLanguagesCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeSupportedLanguagesCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "SupportClient";
|
|
27
|
+
const commandName = "DescribeSupportedLanguagesCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_DescribeSupportedLanguagesCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_DescribeSupportedLanguagesCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DescribeSupportedLanguagesCommand = DescribeSupportedLanguagesCommand;
|
|
@@ -7,8 +7,10 @@ tslib_1.__exportStar(require("./CreateCaseCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./DescribeAttachmentCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./DescribeCasesCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./DescribeCommunicationsCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DescribeCreateCaseOptionsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DescribeServicesCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DescribeSeverityLevelsCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DescribeSupportedLanguagesCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./DescribeTrustedAdvisorCheckRefreshStatusesCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DescribeTrustedAdvisorCheckResultCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./DescribeTrustedAdvisorCheckSummariesCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const w = "required", x = "fn", y = "argv", z = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = "support", i = { [w]: false, "type": "String" }, j = { [w]: true, "default": false, "type": "Boolean" }, k = { [z]: "Endpoint" }, l = { [x]: "booleanEquals", [y]: [{ [z]: "UseFIPS" }, true] }, m = { [x]: "booleanEquals", [y]: [{ [z]: "UseDualStack" }, true] }, n = {}, o = { [x]: "getAttr", [y]: [{ [z]: e }, "name"] }, p = { [x]: "booleanEquals", [y]: [{ [z]: "UseFIPS" }, false] }, q = { [x]: "booleanEquals", [y]: [{ [z]: "UseDualStack" }, false] }, r = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsFIPS"] }] }, s = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsDualStack"] }] }, t = [l], u = [m], v = [{ [z]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [x]: a, [y]: [k] }], type: b, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: k, properties: n, headers: n }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [x]: a, [y]: v }], type: b, rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: e }], type: b, rules: [{ conditions: [{ [x]: f, [y]: [o, "aws"] }, p, q], endpoint: { url: "https://support.us-east-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-east-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-cn"] }, p, q], endpoint: { url: "https://support.cn-north-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-north-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-us-gov"] }, p, q], endpoint: { url: "https://support.us-gov-west-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-gov-west-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-iso"] }, p, q], endpoint: { url: "https://support.us-iso-east-1.c2s.ic.gov", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-iso-east-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-iso-b"] }, p, q], endpoint: { url: "https://support.us-isob-east-1.sc2s.sgov.gov", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-isob-east-1" }] }, headers: n }, type: d }, { conditions: [l, m], type: b, rules: [{ conditions: [r, s], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: t, type: b, rules: [{ conditions: [r], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://support-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: u, type: b, rules: [{ conditions: [s], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://support.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DescribeAttachmentLimitExceeded = exports.CaseCreationLimitExceeded = exports.AttachmentIdNotFound = exports.CaseIdNotFound = exports.InternalServerError = exports.AttachmentSetSizeLimitExceeded = exports.AttachmentSetIdNotFound = exports.AttachmentSetExpired = exports.AttachmentLimitExceeded = void 0;
|
|
3
|
+
exports.ThrottlingException = exports.DescribeAttachmentLimitExceeded = exports.CaseCreationLimitExceeded = exports.AttachmentIdNotFound = exports.CaseIdNotFound = exports.InternalServerError = exports.AttachmentSetSizeLimitExceeded = exports.AttachmentSetIdNotFound = exports.AttachmentSetExpired = exports.AttachmentLimitExceeded = void 0;
|
|
4
4
|
const SupportServiceException_1 = require("./SupportServiceException");
|
|
5
5
|
class AttachmentLimitExceeded extends SupportServiceException_1.SupportServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -119,3 +119,16 @@ class DescribeAttachmentLimitExceeded extends SupportServiceException_1.SupportS
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
exports.DescribeAttachmentLimitExceeded = DescribeAttachmentLimitExceeded;
|
|
122
|
+
class ThrottlingException extends SupportServiceException_1.SupportServiceException {
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "ThrottlingException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
this.name = "ThrottlingException";
|
|
130
|
+
this.$fault = "client";
|
|
131
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.ThrottlingException = ThrottlingException;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ResolveCaseCommand = exports.de_RefreshTrustedAdvisorCheckCommand = exports.de_DescribeTrustedAdvisorCheckSummariesCommand = exports.de_DescribeTrustedAdvisorChecksCommand = exports.de_DescribeTrustedAdvisorCheckResultCommand = exports.de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = exports.de_DescribeSeverityLevelsCommand = exports.de_DescribeServicesCommand = exports.de_DescribeCommunicationsCommand = exports.de_DescribeCasesCommand = exports.de_DescribeAttachmentCommand = exports.de_CreateCaseCommand = exports.de_AddCommunicationToCaseCommand = exports.de_AddAttachmentsToSetCommand = exports.se_ResolveCaseCommand = exports.se_RefreshTrustedAdvisorCheckCommand = exports.se_DescribeTrustedAdvisorCheckSummariesCommand = exports.se_DescribeTrustedAdvisorChecksCommand = exports.se_DescribeTrustedAdvisorCheckResultCommand = exports.se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = exports.se_DescribeSeverityLevelsCommand = exports.se_DescribeServicesCommand = exports.se_DescribeCommunicationsCommand = exports.se_DescribeCasesCommand = exports.se_DescribeAttachmentCommand = exports.se_CreateCaseCommand = exports.se_AddCommunicationToCaseCommand = exports.se_AddAttachmentsToSetCommand = void 0;
|
|
3
|
+
exports.de_ResolveCaseCommand = exports.de_RefreshTrustedAdvisorCheckCommand = exports.de_DescribeTrustedAdvisorCheckSummariesCommand = exports.de_DescribeTrustedAdvisorChecksCommand = exports.de_DescribeTrustedAdvisorCheckResultCommand = exports.de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = exports.de_DescribeSupportedLanguagesCommand = exports.de_DescribeSeverityLevelsCommand = exports.de_DescribeServicesCommand = exports.de_DescribeCreateCaseOptionsCommand = exports.de_DescribeCommunicationsCommand = exports.de_DescribeCasesCommand = exports.de_DescribeAttachmentCommand = exports.de_CreateCaseCommand = exports.de_AddCommunicationToCaseCommand = exports.de_AddAttachmentsToSetCommand = exports.se_ResolveCaseCommand = exports.se_RefreshTrustedAdvisorCheckCommand = exports.se_DescribeTrustedAdvisorCheckSummariesCommand = exports.se_DescribeTrustedAdvisorChecksCommand = exports.se_DescribeTrustedAdvisorCheckResultCommand = exports.se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = exports.se_DescribeSupportedLanguagesCommand = exports.se_DescribeSeverityLevelsCommand = exports.se_DescribeServicesCommand = exports.se_DescribeCreateCaseOptionsCommand = exports.se_DescribeCommunicationsCommand = exports.se_DescribeCasesCommand = exports.se_DescribeAttachmentCommand = exports.se_CreateCaseCommand = exports.se_AddCommunicationToCaseCommand = exports.se_AddAttachmentsToSetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
@@ -47,6 +47,13 @@ const se_DescribeCommunicationsCommand = async (input, context) => {
|
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_DescribeCommunicationsCommand = se_DescribeCommunicationsCommand;
|
|
50
|
+
const se_DescribeCreateCaseOptionsCommand = async (input, context) => {
|
|
51
|
+
const headers = sharedHeaders("DescribeCreateCaseOptions");
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.se_DescribeCreateCaseOptionsCommand = se_DescribeCreateCaseOptionsCommand;
|
|
50
57
|
const se_DescribeServicesCommand = async (input, context) => {
|
|
51
58
|
const headers = sharedHeaders("DescribeServices");
|
|
52
59
|
let body;
|
|
@@ -61,6 +68,13 @@ const se_DescribeSeverityLevelsCommand = async (input, context) => {
|
|
|
61
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
69
|
};
|
|
63
70
|
exports.se_DescribeSeverityLevelsCommand = se_DescribeSeverityLevelsCommand;
|
|
71
|
+
const se_DescribeSupportedLanguagesCommand = async (input, context) => {
|
|
72
|
+
const headers = sharedHeaders("DescribeSupportedLanguages");
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
exports.se_DescribeSupportedLanguagesCommand = se_DescribeSupportedLanguagesCommand;
|
|
64
78
|
const se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (input, context) => {
|
|
65
79
|
const headers = sharedHeaders("DescribeTrustedAdvisorCheckRefreshStatuses");
|
|
66
80
|
let body;
|
|
@@ -343,6 +357,42 @@ const de_DescribeCommunicationsCommandError = async (output, context) => {
|
|
|
343
357
|
});
|
|
344
358
|
}
|
|
345
359
|
};
|
|
360
|
+
const de_DescribeCreateCaseOptionsCommand = async (output, context) => {
|
|
361
|
+
if (output.statusCode >= 300) {
|
|
362
|
+
return de_DescribeCreateCaseOptionsCommandError(output, context);
|
|
363
|
+
}
|
|
364
|
+
const data = await parseBody(output.body, context);
|
|
365
|
+
let contents = {};
|
|
366
|
+
contents = (0, smithy_client_1._json)(data);
|
|
367
|
+
const response = {
|
|
368
|
+
$metadata: deserializeMetadata(output),
|
|
369
|
+
...contents,
|
|
370
|
+
};
|
|
371
|
+
return response;
|
|
372
|
+
};
|
|
373
|
+
exports.de_DescribeCreateCaseOptionsCommand = de_DescribeCreateCaseOptionsCommand;
|
|
374
|
+
const de_DescribeCreateCaseOptionsCommandError = async (output, context) => {
|
|
375
|
+
const parsedOutput = {
|
|
376
|
+
...output,
|
|
377
|
+
body: await parseErrorBody(output.body, context),
|
|
378
|
+
};
|
|
379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
|
+
switch (errorCode) {
|
|
381
|
+
case "InternalServerError":
|
|
382
|
+
case "com.amazonaws.support#InternalServerError":
|
|
383
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
384
|
+
case "ThrottlingException":
|
|
385
|
+
case "com.amazonaws.support#ThrottlingException":
|
|
386
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
387
|
+
default:
|
|
388
|
+
const parsedBody = parsedOutput.body;
|
|
389
|
+
return throwDefaultError({
|
|
390
|
+
output,
|
|
391
|
+
parsedBody,
|
|
392
|
+
errorCode,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
};
|
|
346
396
|
const de_DescribeServicesCommand = async (output, context) => {
|
|
347
397
|
if (output.statusCode >= 300) {
|
|
348
398
|
return de_DescribeServicesCommandError(output, context);
|
|
@@ -409,6 +459,42 @@ const de_DescribeSeverityLevelsCommandError = async (output, context) => {
|
|
|
409
459
|
});
|
|
410
460
|
}
|
|
411
461
|
};
|
|
462
|
+
const de_DescribeSupportedLanguagesCommand = async (output, context) => {
|
|
463
|
+
if (output.statusCode >= 300) {
|
|
464
|
+
return de_DescribeSupportedLanguagesCommandError(output, context);
|
|
465
|
+
}
|
|
466
|
+
const data = await parseBody(output.body, context);
|
|
467
|
+
let contents = {};
|
|
468
|
+
contents = (0, smithy_client_1._json)(data);
|
|
469
|
+
const response = {
|
|
470
|
+
$metadata: deserializeMetadata(output),
|
|
471
|
+
...contents,
|
|
472
|
+
};
|
|
473
|
+
return response;
|
|
474
|
+
};
|
|
475
|
+
exports.de_DescribeSupportedLanguagesCommand = de_DescribeSupportedLanguagesCommand;
|
|
476
|
+
const de_DescribeSupportedLanguagesCommandError = async (output, context) => {
|
|
477
|
+
const parsedOutput = {
|
|
478
|
+
...output,
|
|
479
|
+
body: await parseErrorBody(output.body, context),
|
|
480
|
+
};
|
|
481
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
+
switch (errorCode) {
|
|
483
|
+
case "InternalServerError":
|
|
484
|
+
case "com.amazonaws.support#InternalServerError":
|
|
485
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
486
|
+
case "ThrottlingException":
|
|
487
|
+
case "com.amazonaws.support#ThrottlingException":
|
|
488
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
489
|
+
default:
|
|
490
|
+
const parsedBody = parsedOutput.body;
|
|
491
|
+
return throwDefaultError({
|
|
492
|
+
output,
|
|
493
|
+
parsedBody,
|
|
494
|
+
errorCode,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
};
|
|
412
498
|
const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
|
|
413
499
|
if (output.statusCode >= 300) {
|
|
414
500
|
return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
|
|
@@ -433,6 +519,9 @@ const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output,
|
|
|
433
519
|
case "InternalServerError":
|
|
434
520
|
case "com.amazonaws.support#InternalServerError":
|
|
435
521
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
522
|
+
case "ThrottlingException":
|
|
523
|
+
case "com.amazonaws.support#ThrottlingException":
|
|
524
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
436
525
|
default:
|
|
437
526
|
const parsedBody = parsedOutput.body;
|
|
438
527
|
return throwDefaultError({
|
|
@@ -466,6 +555,9 @@ const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context)
|
|
|
466
555
|
case "InternalServerError":
|
|
467
556
|
case "com.amazonaws.support#InternalServerError":
|
|
468
557
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
558
|
+
case "ThrottlingException":
|
|
559
|
+
case "com.amazonaws.support#ThrottlingException":
|
|
560
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
469
561
|
default:
|
|
470
562
|
const parsedBody = parsedOutput.body;
|
|
471
563
|
return throwDefaultError({
|
|
@@ -499,6 +591,9 @@ const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
|
|
|
499
591
|
case "InternalServerError":
|
|
500
592
|
case "com.amazonaws.support#InternalServerError":
|
|
501
593
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
594
|
+
case "ThrottlingException":
|
|
595
|
+
case "com.amazonaws.support#ThrottlingException":
|
|
596
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
502
597
|
default:
|
|
503
598
|
const parsedBody = parsedOutput.body;
|
|
504
599
|
return throwDefaultError({
|
|
@@ -532,6 +627,9 @@ const de_DescribeTrustedAdvisorCheckSummariesCommandError = async (output, conte
|
|
|
532
627
|
case "InternalServerError":
|
|
533
628
|
case "com.amazonaws.support#InternalServerError":
|
|
534
629
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
630
|
+
case "ThrottlingException":
|
|
631
|
+
case "com.amazonaws.support#ThrottlingException":
|
|
632
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
535
633
|
default:
|
|
536
634
|
const parsedBody = parsedOutput.body;
|
|
537
635
|
return throwDefaultError({
|
|
@@ -691,6 +789,15 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
691
789
|
});
|
|
692
790
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
693
791
|
};
|
|
792
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
793
|
+
const body = parsedOutput.body;
|
|
794
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
795
|
+
const exception = new models_0_1.ThrottlingException({
|
|
796
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
797
|
+
...deserialized,
|
|
798
|
+
});
|
|
799
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
800
|
+
};
|
|
694
801
|
const se_AddAttachmentsToSetRequest = (input, context) => {
|
|
695
802
|
return (0, smithy_client_1.take)(input, {
|
|
696
803
|
attachmentSetId: [],
|
package/dist-es/Support.js
CHANGED
|
@@ -5,8 +5,10 @@ import { CreateCaseCommand } from "./commands/CreateCaseCommand";
|
|
|
5
5
|
import { DescribeAttachmentCommand, } from "./commands/DescribeAttachmentCommand";
|
|
6
6
|
import { DescribeCasesCommand, } from "./commands/DescribeCasesCommand";
|
|
7
7
|
import { DescribeCommunicationsCommand, } from "./commands/DescribeCommunicationsCommand";
|
|
8
|
+
import { DescribeCreateCaseOptionsCommand, } from "./commands/DescribeCreateCaseOptionsCommand";
|
|
8
9
|
import { DescribeServicesCommand, } from "./commands/DescribeServicesCommand";
|
|
9
10
|
import { DescribeSeverityLevelsCommand, } from "./commands/DescribeSeverityLevelsCommand";
|
|
11
|
+
import { DescribeSupportedLanguagesCommand, } from "./commands/DescribeSupportedLanguagesCommand";
|
|
10
12
|
import { DescribeTrustedAdvisorCheckRefreshStatusesCommand, } from "./commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand";
|
|
11
13
|
import { DescribeTrustedAdvisorCheckResultCommand, } from "./commands/DescribeTrustedAdvisorCheckResultCommand";
|
|
12
14
|
import { DescribeTrustedAdvisorChecksCommand, } from "./commands/DescribeTrustedAdvisorChecksCommand";
|
|
@@ -21,8 +23,10 @@ const commands = {
|
|
|
21
23
|
DescribeAttachmentCommand,
|
|
22
24
|
DescribeCasesCommand,
|
|
23
25
|
DescribeCommunicationsCommand,
|
|
26
|
+
DescribeCreateCaseOptionsCommand,
|
|
24
27
|
DescribeServicesCommand,
|
|
25
28
|
DescribeSeverityLevelsCommand,
|
|
29
|
+
DescribeSupportedLanguagesCommand,
|
|
26
30
|
DescribeTrustedAdvisorCheckRefreshStatusesCommand,
|
|
27
31
|
DescribeTrustedAdvisorCheckResultCommand,
|
|
28
32
|
DescribeTrustedAdvisorChecksCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DescribeCreateCaseOptionsCommand, se_DescribeCreateCaseOptionsCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class DescribeCreateCaseOptionsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeCreateCaseOptionsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "SupportClient";
|
|
24
|
+
const commandName = "DescribeCreateCaseOptionsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_DescribeCreateCaseOptionsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_DescribeCreateCaseOptionsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DescribeSupportedLanguagesCommand, se_DescribeSupportedLanguagesCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class DescribeSupportedLanguagesCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeSupportedLanguagesCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "SupportClient";
|
|
24
|
+
const commandName = "DescribeSupportedLanguagesCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_DescribeSupportedLanguagesCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_DescribeSupportedLanguagesCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -4,8 +4,10 @@ export * from "./CreateCaseCommand";
|
|
|
4
4
|
export * from "./DescribeAttachmentCommand";
|
|
5
5
|
export * from "./DescribeCasesCommand";
|
|
6
6
|
export * from "./DescribeCommunicationsCommand";
|
|
7
|
+
export * from "./DescribeCreateCaseOptionsCommand";
|
|
7
8
|
export * from "./DescribeServicesCommand";
|
|
8
9
|
export * from "./DescribeSeverityLevelsCommand";
|
|
10
|
+
export * from "./DescribeSupportedLanguagesCommand";
|
|
9
11
|
export * from "./DescribeTrustedAdvisorCheckRefreshStatusesCommand";
|
|
10
12
|
export * from "./DescribeTrustedAdvisorCheckResultCommand";
|
|
11
13
|
export * from "./DescribeTrustedAdvisorCheckSummariesCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const w = "required", x = "fn", y = "argv", z = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = "support", i = { [w]: false, "type": "String" }, j = { [w]: true, "default": false, "type": "Boolean" }, k = { [z]: "Endpoint" }, l = { [x]: "booleanEquals", [y]: [{ [z]: "UseFIPS" }, true] }, m = { [x]: "booleanEquals", [y]: [{ [z]: "UseDualStack" }, true] }, n = {}, o = { [x]: "getAttr", [y]: [{ [z]: e }, "name"] }, p = { [x]: "booleanEquals", [y]: [{ [z]: "UseFIPS" }, false] }, q = { [x]: "booleanEquals", [y]: [{ [z]: "UseDualStack" }, false] }, r = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsFIPS"] }] }, s = { [x]: "booleanEquals", [y]: [true, { [x]: "getAttr", [y]: [{ [z]: e }, "supportsDualStack"] }] }, t = [l], u = [m], v = [{ [z]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [x]: a, [y]: [k] }], type: b, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: k, properties: n, headers: n }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [x]: a, [y]: v }], type: b, rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: e }], type: b, rules: [{ conditions: [{ [x]: f, [y]: [o, "aws"] }, p, q], endpoint: { url: "https://support.us-east-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-east-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-cn"] }, p, q], endpoint: { url: "https://support.cn-north-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-north-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-us-gov"] }, p, q], endpoint: { url: "https://support.us-gov-west-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-gov-west-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-iso"] }, p, q], endpoint: { url: "https://support.us-iso-east-1.c2s.ic.gov", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-iso-east-1" }] }, headers: n }, type: d }, { conditions: [{ [x]: f, [y]: [o, "aws-iso-b"] }, p, q], endpoint: { url: "https://support.us-isob-east-1.sc2s.sgov.gov", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-isob-east-1" }] }, headers: n }, type: d }, { conditions: [l, m], type: b, rules: [{ conditions: [r, s], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: t, type: b, rules: [{ conditions: [r], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://support-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: u, type: b, rules: [{ conditions: [s], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://support.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -107,3 +107,15 @@ export class DescribeAttachmentLimitExceeded extends __BaseException {
|
|
|
107
107
|
Object.setPrototypeOf(this, DescribeAttachmentLimitExceeded.prototype);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
export class ThrottlingException extends __BaseException {
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "ThrottlingException",
|
|
114
|
+
$fault: "client",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
this.name = "ThrottlingException";
|
|
118
|
+
this.$fault = "client";
|
|
119
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|