@aws-sdk/client-support 3.329.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.
Files changed (34) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/Support.js +4 -0
  3. package/dist-cjs/commands/DescribeCreateCaseOptionsCommand.js +45 -0
  4. package/dist-cjs/commands/DescribeSupportedLanguagesCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/models/models_0.js +14 -1
  8. package/dist-cjs/protocols/Aws_json1_1.js +108 -1
  9. package/dist-es/Support.js +4 -0
  10. package/dist-es/commands/DescribeCreateCaseOptionsCommand.js +41 -0
  11. package/dist-es/commands/DescribeSupportedLanguagesCommand.js +41 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/endpoint/ruleset.js +3 -3
  14. package/dist-es/models/models_0.js +12 -0
  15. package/dist-es/protocols/Aws_json1_1.js +104 -1
  16. package/dist-types/Support.d.ts +14 -0
  17. package/dist-types/SupportClient.d.ts +4 -2
  18. package/dist-types/commands/DescribeCreateCaseOptionsCommand.d.ts +114 -0
  19. package/dist-types/commands/DescribeSupportedLanguagesCommand.d.ts +101 -0
  20. package/dist-types/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +5 -0
  21. package/dist-types/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +5 -0
  22. package/dist-types/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +5 -0
  23. package/dist-types/commands/DescribeTrustedAdvisorChecksCommand.d.ts +5 -0
  24. package/dist-types/commands/index.d.ts +2 -0
  25. package/dist-types/models/models_0.d.ts +232 -8
  26. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  27. package/dist-types/ts3.4/Support.d.ts +34 -0
  28. package/dist-types/ts3.4/SupportClient.d.ts +12 -0
  29. package/dist-types/ts3.4/commands/DescribeCreateCaseOptionsCommand.d.ts +41 -0
  30. package/dist-types/ts3.4/commands/DescribeSupportedLanguagesCommand.d.ts +41 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +43 -0
  33. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  34. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, limitedParseDouble as __limitedParseDouble, take, withBaseException, } from "@aws-sdk/smithy-client";
3
- import { AttachmentIdNotFound, AttachmentLimitExceeded, AttachmentSetExpired, AttachmentSetIdNotFound, AttachmentSetSizeLimitExceeded, CaseCreationLimitExceeded, CaseIdNotFound, DescribeAttachmentLimitExceeded, InternalServerError, } from "../models/models_0";
3
+ import { AttachmentIdNotFound, AttachmentLimitExceeded, AttachmentSetExpired, AttachmentSetIdNotFound, AttachmentSetSizeLimitExceeded, CaseCreationLimitExceeded, CaseIdNotFound, DescribeAttachmentLimitExceeded, InternalServerError, ThrottlingException, } from "../models/models_0";
4
4
  import { SupportServiceException as __BaseException } from "../models/SupportServiceException";
5
5
  export const se_AddAttachmentsToSetCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("AddAttachmentsToSet");
@@ -38,6 +38,12 @@ export const se_DescribeCommunicationsCommand = async (input, context) => {
38
38
  body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
+ export const se_DescribeCreateCaseOptionsCommand = async (input, context) => {
42
+ const headers = sharedHeaders("DescribeCreateCaseOptions");
43
+ let body;
44
+ body = JSON.stringify(_json(input));
45
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
+ };
41
47
  export const se_DescribeServicesCommand = async (input, context) => {
42
48
  const headers = sharedHeaders("DescribeServices");
43
49
  let body;
@@ -50,6 +56,12 @@ export const se_DescribeSeverityLevelsCommand = async (input, context) => {
50
56
  body = JSON.stringify(_json(input));
51
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
58
  };
59
+ export const se_DescribeSupportedLanguagesCommand = async (input, context) => {
60
+ const headers = sharedHeaders("DescribeSupportedLanguages");
61
+ let body;
62
+ body = JSON.stringify(_json(input));
63
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
+ };
53
65
  export const se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (input, context) => {
54
66
  const headers = sharedHeaders("DescribeTrustedAdvisorCheckRefreshStatuses");
55
67
  let body;
@@ -320,6 +332,41 @@ const de_DescribeCommunicationsCommandError = async (output, context) => {
320
332
  });
321
333
  }
322
334
  };
335
+ export const de_DescribeCreateCaseOptionsCommand = async (output, context) => {
336
+ if (output.statusCode >= 300) {
337
+ return de_DescribeCreateCaseOptionsCommandError(output, context);
338
+ }
339
+ const data = await parseBody(output.body, context);
340
+ let contents = {};
341
+ contents = _json(data);
342
+ const response = {
343
+ $metadata: deserializeMetadata(output),
344
+ ...contents,
345
+ };
346
+ return response;
347
+ };
348
+ const de_DescribeCreateCaseOptionsCommandError = async (output, context) => {
349
+ const parsedOutput = {
350
+ ...output,
351
+ body: await parseErrorBody(output.body, context),
352
+ };
353
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
354
+ switch (errorCode) {
355
+ case "InternalServerError":
356
+ case "com.amazonaws.support#InternalServerError":
357
+ throw await de_InternalServerErrorRes(parsedOutput, context);
358
+ case "ThrottlingException":
359
+ case "com.amazonaws.support#ThrottlingException":
360
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
361
+ default:
362
+ const parsedBody = parsedOutput.body;
363
+ return throwDefaultError({
364
+ output,
365
+ parsedBody,
366
+ errorCode,
367
+ });
368
+ }
369
+ };
323
370
  export const de_DescribeServicesCommand = async (output, context) => {
324
371
  if (output.statusCode >= 300) {
325
372
  return de_DescribeServicesCommandError(output, context);
@@ -384,6 +431,41 @@ const de_DescribeSeverityLevelsCommandError = async (output, context) => {
384
431
  });
385
432
  }
386
433
  };
434
+ export const de_DescribeSupportedLanguagesCommand = async (output, context) => {
435
+ if (output.statusCode >= 300) {
436
+ return de_DescribeSupportedLanguagesCommandError(output, context);
437
+ }
438
+ const data = await parseBody(output.body, context);
439
+ let contents = {};
440
+ contents = _json(data);
441
+ const response = {
442
+ $metadata: deserializeMetadata(output),
443
+ ...contents,
444
+ };
445
+ return response;
446
+ };
447
+ const de_DescribeSupportedLanguagesCommandError = async (output, context) => {
448
+ const parsedOutput = {
449
+ ...output,
450
+ body: await parseErrorBody(output.body, context),
451
+ };
452
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
453
+ switch (errorCode) {
454
+ case "InternalServerError":
455
+ case "com.amazonaws.support#InternalServerError":
456
+ throw await de_InternalServerErrorRes(parsedOutput, context);
457
+ case "ThrottlingException":
458
+ case "com.amazonaws.support#ThrottlingException":
459
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
460
+ default:
461
+ const parsedBody = parsedOutput.body;
462
+ return throwDefaultError({
463
+ output,
464
+ parsedBody,
465
+ errorCode,
466
+ });
467
+ }
468
+ };
387
469
  export const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
388
470
  if (output.statusCode >= 300) {
389
471
  return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
@@ -407,6 +489,9 @@ const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output,
407
489
  case "InternalServerError":
408
490
  case "com.amazonaws.support#InternalServerError":
409
491
  throw await de_InternalServerErrorRes(parsedOutput, context);
492
+ case "ThrottlingException":
493
+ case "com.amazonaws.support#ThrottlingException":
494
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
410
495
  default:
411
496
  const parsedBody = parsedOutput.body;
412
497
  return throwDefaultError({
@@ -439,6 +524,9 @@ const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context)
439
524
  case "InternalServerError":
440
525
  case "com.amazonaws.support#InternalServerError":
441
526
  throw await de_InternalServerErrorRes(parsedOutput, context);
527
+ case "ThrottlingException":
528
+ case "com.amazonaws.support#ThrottlingException":
529
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
442
530
  default:
443
531
  const parsedBody = parsedOutput.body;
444
532
  return throwDefaultError({
@@ -471,6 +559,9 @@ const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
471
559
  case "InternalServerError":
472
560
  case "com.amazonaws.support#InternalServerError":
473
561
  throw await de_InternalServerErrorRes(parsedOutput, context);
562
+ case "ThrottlingException":
563
+ case "com.amazonaws.support#ThrottlingException":
564
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
474
565
  default:
475
566
  const parsedBody = parsedOutput.body;
476
567
  return throwDefaultError({
@@ -503,6 +594,9 @@ const de_DescribeTrustedAdvisorCheckSummariesCommandError = async (output, conte
503
594
  case "InternalServerError":
504
595
  case "com.amazonaws.support#InternalServerError":
505
596
  throw await de_InternalServerErrorRes(parsedOutput, context);
597
+ case "ThrottlingException":
598
+ case "com.amazonaws.support#ThrottlingException":
599
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
506
600
  default:
507
601
  const parsedBody = parsedOutput.body;
508
602
  return throwDefaultError({
@@ -660,6 +754,15 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
660
754
  });
661
755
  return __decorateServiceException(exception, body);
662
756
  };
757
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
758
+ const body = parsedOutput.body;
759
+ const deserialized = _json(body);
760
+ const exception = new ThrottlingException({
761
+ $metadata: deserializeMetadata(parsedOutput),
762
+ ...deserialized,
763
+ });
764
+ return __decorateServiceException(exception, body);
765
+ };
663
766
  const se_AddAttachmentsToSetRequest = (input, context) => {
664
767
  return take(input, {
665
768
  attachmentSetId: [],
@@ -5,8 +5,10 @@ import { CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/Crea
5
5
  import { DescribeAttachmentCommandInput, DescribeAttachmentCommandOutput } from "./commands/DescribeAttachmentCommand";
6
6
  import { DescribeCasesCommandInput, DescribeCasesCommandOutput } from "./commands/DescribeCasesCommand";
7
7
  import { DescribeCommunicationsCommandInput, DescribeCommunicationsCommandOutput } from "./commands/DescribeCommunicationsCommand";
8
+ import { DescribeCreateCaseOptionsCommandInput, DescribeCreateCaseOptionsCommandOutput } from "./commands/DescribeCreateCaseOptionsCommand";
8
9
  import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
9
10
  import { DescribeSeverityLevelsCommandInput, DescribeSeverityLevelsCommandOutput } from "./commands/DescribeSeverityLevelsCommand";
11
+ import { DescribeSupportedLanguagesCommandInput, DescribeSupportedLanguagesCommandOutput } from "./commands/DescribeSupportedLanguagesCommand";
10
12
  import { DescribeTrustedAdvisorCheckRefreshStatusesCommandInput, DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput } from "./commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand";
11
13
  import { DescribeTrustedAdvisorCheckResultCommandInput, DescribeTrustedAdvisorCheckResultCommandOutput } from "./commands/DescribeTrustedAdvisorCheckResultCommand";
12
14
  import { DescribeTrustedAdvisorChecksCommandInput, DescribeTrustedAdvisorChecksCommandOutput } from "./commands/DescribeTrustedAdvisorChecksCommand";
@@ -51,6 +53,12 @@ export interface Support {
51
53
  describeCommunications(args: DescribeCommunicationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCommunicationsCommandOutput>;
52
54
  describeCommunications(args: DescribeCommunicationsCommandInput, cb: (err: any, data?: DescribeCommunicationsCommandOutput) => void): void;
53
55
  describeCommunications(args: DescribeCommunicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCommunicationsCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link DescribeCreateCaseOptionsCommand}
58
+ */
59
+ describeCreateCaseOptions(args: DescribeCreateCaseOptionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCreateCaseOptionsCommandOutput>;
60
+ describeCreateCaseOptions(args: DescribeCreateCaseOptionsCommandInput, cb: (err: any, data?: DescribeCreateCaseOptionsCommandOutput) => void): void;
61
+ describeCreateCaseOptions(args: DescribeCreateCaseOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCreateCaseOptionsCommandOutput) => void): void;
54
62
  /**
55
63
  * @see {@link DescribeServicesCommand}
56
64
  */
@@ -63,6 +71,12 @@ export interface Support {
63
71
  describeSeverityLevels(args: DescribeSeverityLevelsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSeverityLevelsCommandOutput>;
64
72
  describeSeverityLevels(args: DescribeSeverityLevelsCommandInput, cb: (err: any, data?: DescribeSeverityLevelsCommandOutput) => void): void;
65
73
  describeSeverityLevels(args: DescribeSeverityLevelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSeverityLevelsCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link DescribeSupportedLanguagesCommand}
76
+ */
77
+ describeSupportedLanguages(args: DescribeSupportedLanguagesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSupportedLanguagesCommandOutput>;
78
+ describeSupportedLanguages(args: DescribeSupportedLanguagesCommandInput, cb: (err: any, data?: DescribeSupportedLanguagesCommandOutput) => void): void;
79
+ describeSupportedLanguages(args: DescribeSupportedLanguagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSupportedLanguagesCommandOutput) => void): void;
66
80
  /**
67
81
  * @see {@link DescribeTrustedAdvisorCheckRefreshStatusesCommand}
68
82
  */
@@ -13,8 +13,10 @@ import { CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/Crea
13
13
  import { DescribeAttachmentCommandInput, DescribeAttachmentCommandOutput } from "./commands/DescribeAttachmentCommand";
14
14
  import { DescribeCasesCommandInput, DescribeCasesCommandOutput } from "./commands/DescribeCasesCommand";
15
15
  import { DescribeCommunicationsCommandInput, DescribeCommunicationsCommandOutput } from "./commands/DescribeCommunicationsCommand";
16
+ import { DescribeCreateCaseOptionsCommandInput, DescribeCreateCaseOptionsCommandOutput } from "./commands/DescribeCreateCaseOptionsCommand";
16
17
  import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
17
18
  import { DescribeSeverityLevelsCommandInput, DescribeSeverityLevelsCommandOutput } from "./commands/DescribeSeverityLevelsCommand";
19
+ import { DescribeSupportedLanguagesCommandInput, DescribeSupportedLanguagesCommandOutput } from "./commands/DescribeSupportedLanguagesCommand";
18
20
  import { DescribeTrustedAdvisorCheckRefreshStatusesCommandInput, DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput } from "./commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand";
19
21
  import { DescribeTrustedAdvisorCheckResultCommandInput, DescribeTrustedAdvisorCheckResultCommandOutput } from "./commands/DescribeTrustedAdvisorCheckResultCommand";
20
22
  import { DescribeTrustedAdvisorChecksCommandInput, DescribeTrustedAdvisorChecksCommandOutput } from "./commands/DescribeTrustedAdvisorChecksCommand";
@@ -25,11 +27,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
25
27
  /**
26
28
  * @public
27
29
  */
28
- export type ServiceInputTypes = AddAttachmentsToSetCommandInput | AddCommunicationToCaseCommandInput | CreateCaseCommandInput | DescribeAttachmentCommandInput | DescribeCasesCommandInput | DescribeCommunicationsCommandInput | DescribeServicesCommandInput | DescribeSeverityLevelsCommandInput | DescribeTrustedAdvisorCheckRefreshStatusesCommandInput | DescribeTrustedAdvisorCheckResultCommandInput | DescribeTrustedAdvisorCheckSummariesCommandInput | DescribeTrustedAdvisorChecksCommandInput | RefreshTrustedAdvisorCheckCommandInput | ResolveCaseCommandInput;
30
+ export type ServiceInputTypes = AddAttachmentsToSetCommandInput | AddCommunicationToCaseCommandInput | CreateCaseCommandInput | DescribeAttachmentCommandInput | DescribeCasesCommandInput | DescribeCommunicationsCommandInput | DescribeCreateCaseOptionsCommandInput | DescribeServicesCommandInput | DescribeSeverityLevelsCommandInput | DescribeSupportedLanguagesCommandInput | DescribeTrustedAdvisorCheckRefreshStatusesCommandInput | DescribeTrustedAdvisorCheckResultCommandInput | DescribeTrustedAdvisorCheckSummariesCommandInput | DescribeTrustedAdvisorChecksCommandInput | RefreshTrustedAdvisorCheckCommandInput | ResolveCaseCommandInput;
29
31
  /**
30
32
  * @public
31
33
  */
32
- export type ServiceOutputTypes = AddAttachmentsToSetCommandOutput | AddCommunicationToCaseCommandOutput | CreateCaseCommandOutput | DescribeAttachmentCommandOutput | DescribeCasesCommandOutput | DescribeCommunicationsCommandOutput | DescribeServicesCommandOutput | DescribeSeverityLevelsCommandOutput | DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput | DescribeTrustedAdvisorCheckResultCommandOutput | DescribeTrustedAdvisorCheckSummariesCommandOutput | DescribeTrustedAdvisorChecksCommandOutput | RefreshTrustedAdvisorCheckCommandOutput | ResolveCaseCommandOutput;
34
+ export type ServiceOutputTypes = AddAttachmentsToSetCommandOutput | AddCommunicationToCaseCommandOutput | CreateCaseCommandOutput | DescribeAttachmentCommandOutput | DescribeCasesCommandOutput | DescribeCommunicationsCommandOutput | DescribeCreateCaseOptionsCommandOutput | DescribeServicesCommandOutput | DescribeSeverityLevelsCommandOutput | DescribeSupportedLanguagesCommandOutput | DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput | DescribeTrustedAdvisorCheckResultCommandOutput | DescribeTrustedAdvisorCheckSummariesCommandOutput | DescribeTrustedAdvisorChecksCommandOutput | RefreshTrustedAdvisorCheckCommandOutput | ResolveCaseCommandOutput;
33
35
  /**
34
36
  * @public
35
37
  */
@@ -0,0 +1,114 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { DescribeCreateCaseOptionsRequest, DescribeCreateCaseOptionsResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SupportClientResolvedConfig } from "../SupportClient";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link DescribeCreateCaseOptionsCommand}.
10
+ */
11
+ export interface DescribeCreateCaseOptionsCommandInput extends DescribeCreateCaseOptionsRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link DescribeCreateCaseOptionsCommand}.
17
+ */
18
+ export interface DescribeCreateCaseOptionsCommandOutput extends DescribeCreateCaseOptionsResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Returns a list of CreateCaseOption types along with the
23
+ * corresponding supported hours and language availability. You can specify the <code>language</code>
24
+ * <code>categoryCode</code>,
25
+ * <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.</p>
26
+ * <note>
27
+ * <ul>
28
+ * <li>
29
+ * <p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support
30
+ * API. </p>
31
+ * </li>
32
+ * <li>
33
+ * <p>If you call the Amazon Web Services Support API from an account that doesn't have a
34
+ * Business, Enterprise On-Ramp, or Enterprise Support plan, the
35
+ * <code>SubscriptionRequiredException</code> error message appears. For
36
+ * information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a>.</p>
37
+ * </li>
38
+ * </ul>
39
+ * </note>
40
+ * @example
41
+ * Use a bare-bones client and the command you need to make an API call.
42
+ * ```javascript
43
+ * import { SupportClient, DescribeCreateCaseOptionsCommand } from "@aws-sdk/client-support"; // ES Modules import
44
+ * // const { SupportClient, DescribeCreateCaseOptionsCommand } = require("@aws-sdk/client-support"); // CommonJS import
45
+ * const client = new SupportClient(config);
46
+ * const input = { // DescribeCreateCaseOptionsRequest
47
+ * issueType: "STRING_VALUE", // required
48
+ * serviceCode: "STRING_VALUE", // required
49
+ * language: "STRING_VALUE", // required
50
+ * categoryCode: "STRING_VALUE", // required
51
+ * };
52
+ * const command = new DescribeCreateCaseOptionsCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // DescribeCreateCaseOptionsResponse
55
+ * // languageAvailability: "STRING_VALUE",
56
+ * // communicationTypes: [ // CommunicationTypeOptionsList
57
+ * // { // CommunicationTypeOptions
58
+ * // type: "STRING_VALUE",
59
+ * // supportedHours: [ // SupportedHoursList
60
+ * // { // SupportedHour
61
+ * // startTime: "STRING_VALUE",
62
+ * // endTime: "STRING_VALUE",
63
+ * // },
64
+ * // ],
65
+ * // datesWithoutSupport: [ // DatesWithoutSupportList
66
+ * // { // DateInterval
67
+ * // startDateTime: "STRING_VALUE",
68
+ * // endDateTime: "STRING_VALUE",
69
+ * // },
70
+ * // ],
71
+ * // },
72
+ * // ],
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param DescribeCreateCaseOptionsCommandInput - {@link DescribeCreateCaseOptionsCommandInput}
78
+ * @returns {@link DescribeCreateCaseOptionsCommandOutput}
79
+ * @see {@link DescribeCreateCaseOptionsCommandInput} for command's `input` shape.
80
+ * @see {@link DescribeCreateCaseOptionsCommandOutput} for command's `response` shape.
81
+ * @see {@link SupportClientResolvedConfig | config} for SupportClient's `config` shape.
82
+ *
83
+ * @throws {@link InternalServerError} (server fault)
84
+ * <p>An internal server error occurred.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>
88
+ * You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
89
+ * </p>
90
+ *
91
+ * @throws {@link SupportServiceException}
92
+ * <p>Base exception class for all service exceptions from Support service.</p>
93
+ *
94
+ */
95
+ export declare class DescribeCreateCaseOptionsCommand extends $Command<DescribeCreateCaseOptionsCommandInput, DescribeCreateCaseOptionsCommandOutput, SupportClientResolvedConfig> {
96
+ readonly input: DescribeCreateCaseOptionsCommandInput;
97
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
+ /**
99
+ * @public
100
+ */
101
+ constructor(input: DescribeCreateCaseOptionsCommandInput);
102
+ /**
103
+ * @internal
104
+ */
105
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeCreateCaseOptionsCommandInput, DescribeCreateCaseOptionsCommandOutput>;
106
+ /**
107
+ * @internal
108
+ */
109
+ private serialize;
110
+ /**
111
+ * @internal
112
+ */
113
+ private deserialize;
114
+ }
@@ -0,0 +1,101 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { DescribeSupportedLanguagesRequest, DescribeSupportedLanguagesResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SupportClientResolvedConfig } from "../SupportClient";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link DescribeSupportedLanguagesCommand}.
10
+ */
11
+ export interface DescribeSupportedLanguagesCommandInput extends DescribeSupportedLanguagesRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link DescribeSupportedLanguagesCommand}.
17
+ */
18
+ export interface DescribeSupportedLanguagesCommandOutput extends DescribeSupportedLanguagesResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Returns a list of supported languages for a specified <code>categoryCode</code>,
23
+ * <code>issueType</code> and <code>serviceCode</code>. The returned supported languages will
24
+ * include a ISO 639-1 code for the <code>language</code>, and the language display name.</p>
25
+ * <note>
26
+ * <ul>
27
+ * <li>
28
+ * <p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support
29
+ * API. </p>
30
+ * </li>
31
+ * <li>
32
+ * <p>If you call the Amazon Web Services Support API from an account that doesn't have a
33
+ * Business, Enterprise On-Ramp, or Enterprise Support plan, the
34
+ * <code>SubscriptionRequiredException</code> error message appears. For
35
+ * information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a>.</p>
36
+ * </li>
37
+ * </ul>
38
+ * </note>
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { SupportClient, DescribeSupportedLanguagesCommand } from "@aws-sdk/client-support"; // ES Modules import
43
+ * // const { SupportClient, DescribeSupportedLanguagesCommand } = require("@aws-sdk/client-support"); // CommonJS import
44
+ * const client = new SupportClient(config);
45
+ * const input = { // DescribeSupportedLanguagesRequest
46
+ * issueType: "STRING_VALUE", // required
47
+ * serviceCode: "STRING_VALUE", // required
48
+ * categoryCode: "STRING_VALUE", // required
49
+ * };
50
+ * const command = new DescribeSupportedLanguagesCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // DescribeSupportedLanguagesResponse
53
+ * // supportedLanguages: [ // SupportedLanguagesList
54
+ * // { // SupportedLanguage
55
+ * // code: "STRING_VALUE",
56
+ * // language: "STRING_VALUE",
57
+ * // display: "STRING_VALUE",
58
+ * // },
59
+ * // ],
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param DescribeSupportedLanguagesCommandInput - {@link DescribeSupportedLanguagesCommandInput}
65
+ * @returns {@link DescribeSupportedLanguagesCommandOutput}
66
+ * @see {@link DescribeSupportedLanguagesCommandInput} for command's `input` shape.
67
+ * @see {@link DescribeSupportedLanguagesCommandOutput} for command's `response` shape.
68
+ * @see {@link SupportClientResolvedConfig | config} for SupportClient's `config` shape.
69
+ *
70
+ * @throws {@link InternalServerError} (server fault)
71
+ * <p>An internal server error occurred.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>
75
+ * You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
76
+ * </p>
77
+ *
78
+ * @throws {@link SupportServiceException}
79
+ * <p>Base exception class for all service exceptions from Support service.</p>
80
+ *
81
+ */
82
+ export declare class DescribeSupportedLanguagesCommand extends $Command<DescribeSupportedLanguagesCommandInput, DescribeSupportedLanguagesCommandOutput, SupportClientResolvedConfig> {
83
+ readonly input: DescribeSupportedLanguagesCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
88
+ constructor(input: DescribeSupportedLanguagesCommandInput);
89
+ /**
90
+ * @internal
91
+ */
92
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeSupportedLanguagesCommandInput, DescribeSupportedLanguagesCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
96
+ private serialize;
97
+ /**
98
+ * @internal
99
+ */
100
+ private deserialize;
101
+ }
@@ -77,6 +77,11 @@ export interface DescribeTrustedAdvisorCheckRefreshStatusesCommandOutput extends
77
77
  * @throws {@link InternalServerError} (server fault)
78
78
  * <p>An internal server error occurred.</p>
79
79
  *
80
+ * @throws {@link ThrottlingException} (client fault)
81
+ * <p>
82
+ * You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
83
+ * </p>
84
+ *
80
85
  * @throws {@link SupportServiceException}
81
86
  * <p>Base exception class for all service exceptions from Support service.</p>
82
87
  *
@@ -132,6 +132,11 @@ export interface DescribeTrustedAdvisorCheckResultCommandOutput extends Describe
132
132
  * @throws {@link InternalServerError} (server fault)
133
133
  * <p>An internal server error occurred.</p>
134
134
  *
135
+ * @throws {@link ThrottlingException} (client fault)
136
+ * <p>
137
+ * You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
138
+ * </p>
139
+ *
135
140
  * @throws {@link SupportServiceException}
136
141
  * <p>Base exception class for all service exceptions from Support service.</p>
137
142
  *
@@ -88,6 +88,11 @@ export interface DescribeTrustedAdvisorCheckSummariesCommandOutput extends Descr
88
88
  * @throws {@link InternalServerError} (server fault)
89
89
  * <p>An internal server error occurred.</p>
90
90
  *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>
93
+ * You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
94
+ * </p>
95
+ *
91
96
  * @throws {@link SupportServiceException}
92
97
  * <p>Base exception class for all service exceptions from Support service.</p>
93
98
  *
@@ -81,6 +81,11 @@ export interface DescribeTrustedAdvisorChecksCommandOutput extends DescribeTrust
81
81
  * @throws {@link InternalServerError} (server fault)
82
82
  * <p>An internal server error occurred.</p>
83
83
  *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>
86
+ * You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
87
+ * </p>
88
+ *
84
89
  * @throws {@link SupportServiceException}
85
90
  * <p>Base exception class for all service exceptions from Support service.</p>
86
91
  *
@@ -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";