@aws-sdk/client-support 3.477.0 → 3.481.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 (77) hide show
  1. package/dist-cjs/commands/AddAttachmentsToSetCommand.js +18 -41
  2. package/dist-cjs/commands/AddCommunicationToCaseCommand.js +18 -41
  3. package/dist-cjs/commands/CreateCaseCommand.js +18 -41
  4. package/dist-cjs/commands/DescribeAttachmentCommand.js +18 -41
  5. package/dist-cjs/commands/DescribeCasesCommand.js +18 -41
  6. package/dist-cjs/commands/DescribeCommunicationsCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeCreateCaseOptionsCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeServicesCommand.js +18 -41
  9. package/dist-cjs/commands/DescribeSeverityLevelsCommand.js +18 -41
  10. package/dist-cjs/commands/DescribeSupportedLanguagesCommand.js +18 -41
  11. package/dist-cjs/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +18 -41
  12. package/dist-cjs/commands/DescribeTrustedAdvisorCheckResultCommand.js +18 -41
  13. package/dist-cjs/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +18 -41
  14. package/dist-cjs/commands/DescribeTrustedAdvisorChecksCommand.js +18 -41
  15. package/dist-cjs/commands/RefreshTrustedAdvisorCheckCommand.js +18 -41
  16. package/dist-cjs/commands/ResolveCaseCommand.js +18 -41
  17. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  18. package/dist-cjs/pagination/DescribeCasesPaginator.js +2 -24
  19. package/dist-cjs/pagination/DescribeCommunicationsPaginator.js +2 -24
  20. package/dist-es/commands/AddAttachmentsToSetCommand.js +18 -41
  21. package/dist-es/commands/AddCommunicationToCaseCommand.js +18 -41
  22. package/dist-es/commands/CreateCaseCommand.js +18 -41
  23. package/dist-es/commands/DescribeAttachmentCommand.js +18 -41
  24. package/dist-es/commands/DescribeCasesCommand.js +18 -41
  25. package/dist-es/commands/DescribeCommunicationsCommand.js +18 -41
  26. package/dist-es/commands/DescribeCreateCaseOptionsCommand.js +18 -41
  27. package/dist-es/commands/DescribeServicesCommand.js +18 -41
  28. package/dist-es/commands/DescribeSeverityLevelsCommand.js +18 -41
  29. package/dist-es/commands/DescribeSupportedLanguagesCommand.js +18 -41
  30. package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +18 -41
  31. package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +18 -41
  32. package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +18 -41
  33. package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +18 -41
  34. package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +18 -41
  35. package/dist-es/commands/ResolveCaseCommand.js +18 -41
  36. package/dist-es/endpoint/EndpointParameters.js +6 -0
  37. package/dist-es/pagination/DescribeCasesPaginator.js +2 -23
  38. package/dist-es/pagination/DescribeCommunicationsPaginator.js +2 -23
  39. package/dist-types/commands/AddAttachmentsToSetCommand.d.ts +6 -21
  40. package/dist-types/commands/AddCommunicationToCaseCommand.d.ts +6 -21
  41. package/dist-types/commands/CreateCaseCommand.d.ts +6 -21
  42. package/dist-types/commands/DescribeAttachmentCommand.d.ts +6 -21
  43. package/dist-types/commands/DescribeCasesCommand.d.ts +6 -21
  44. package/dist-types/commands/DescribeCommunicationsCommand.d.ts +6 -21
  45. package/dist-types/commands/DescribeCreateCaseOptionsCommand.d.ts +6 -21
  46. package/dist-types/commands/DescribeServicesCommand.d.ts +6 -21
  47. package/dist-types/commands/DescribeSeverityLevelsCommand.d.ts +6 -21
  48. package/dist-types/commands/DescribeSupportedLanguagesCommand.d.ts +6 -21
  49. package/dist-types/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +6 -21
  50. package/dist-types/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +6 -21
  51. package/dist-types/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +6 -21
  52. package/dist-types/commands/DescribeTrustedAdvisorChecksCommand.d.ts +6 -21
  53. package/dist-types/commands/RefreshTrustedAdvisorCheckCommand.d.ts +6 -21
  54. package/dist-types/commands/ResolveCaseCommand.d.ts +6 -21
  55. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  56. package/dist-types/pagination/DescribeCasesPaginator.d.ts +1 -1
  57. package/dist-types/pagination/DescribeCommunicationsPaginator.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/AddAttachmentsToSetCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/AddCommunicationToCaseCommand.d.ts +12 -24
  60. package/dist-types/ts3.4/commands/CreateCaseCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/DescribeAttachmentCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/DescribeCasesCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/DescribeCommunicationsCommand.d.ts +12 -24
  64. package/dist-types/ts3.4/commands/DescribeCreateCaseOptionsCommand.d.ts +12 -24
  65. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/DescribeSeverityLevelsCommand.d.ts +12 -24
  67. package/dist-types/ts3.4/commands/DescribeSupportedLanguagesCommand.d.ts +12 -24
  68. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +12 -24
  69. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +12 -24
  70. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +12 -24
  71. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorChecksCommand.d.ts +12 -24
  72. package/dist-types/ts3.4/commands/RefreshTrustedAdvisorCheckCommand.d.ts +12 -24
  73. package/dist-types/ts3.4/commands/ResolveCaseCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  75. package/dist-types/ts3.4/pagination/DescribeCasesPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/DescribeCommunicationsPaginator.d.ts +3 -3
  77. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeTrustedAdvisorCheckRefreshStatusesCommand, se_DescribeTrustedAdvisorCheckRefreshStatusesCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTrustedAdvisorCheckRefreshStatusesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SupportClient";
26
- const commandName = "DescribeTrustedAdvisorCheckRefreshStatusesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSSupport_20130415",
35
- operation: "DescribeTrustedAdvisorCheckRefreshStatuses",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeTrustedAdvisorCheckRefreshStatusesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTrustedAdvisorCheckRefreshStatusesCommand(output, context);
46
- }
7
+ export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckRefreshStatuses", {})
19
+ .n("SupportClient", "DescribeTrustedAdvisorCheckRefreshStatusesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTrustedAdvisorCheckRefreshStatusesCommand)
22
+ .de(de_DescribeTrustedAdvisorCheckRefreshStatusesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeTrustedAdvisorCheckResultCommand, se_DescribeTrustedAdvisorCheckResultCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTrustedAdvisorCheckResultCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTrustedAdvisorCheckResultCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SupportClient";
26
- const commandName = "DescribeTrustedAdvisorCheckResultCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSSupport_20130415",
35
- operation: "DescribeTrustedAdvisorCheckResult",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeTrustedAdvisorCheckResultCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTrustedAdvisorCheckResultCommand(output, context);
46
- }
7
+ export class DescribeTrustedAdvisorCheckResultCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckResult", {})
19
+ .n("SupportClient", "DescribeTrustedAdvisorCheckResultCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTrustedAdvisorCheckResultCommand)
22
+ .de(de_DescribeTrustedAdvisorCheckResultCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeTrustedAdvisorCheckSummariesCommand, se_DescribeTrustedAdvisorCheckSummariesCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTrustedAdvisorCheckSummariesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTrustedAdvisorCheckSummariesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SupportClient";
26
- const commandName = "DescribeTrustedAdvisorCheckSummariesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSSupport_20130415",
35
- operation: "DescribeTrustedAdvisorCheckSummaries",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeTrustedAdvisorCheckSummariesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTrustedAdvisorCheckSummariesCommand(output, context);
46
- }
7
+ export class DescribeTrustedAdvisorCheckSummariesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckSummaries", {})
19
+ .n("SupportClient", "DescribeTrustedAdvisorCheckSummariesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTrustedAdvisorCheckSummariesCommand)
22
+ .de(de_DescribeTrustedAdvisorCheckSummariesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeTrustedAdvisorChecksCommand, se_DescribeTrustedAdvisorChecksCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTrustedAdvisorChecksCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTrustedAdvisorChecksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SupportClient";
26
- const commandName = "DescribeTrustedAdvisorChecksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSSupport_20130415",
35
- operation: "DescribeTrustedAdvisorChecks",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeTrustedAdvisorChecksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTrustedAdvisorChecksCommand(output, context);
46
- }
7
+ export class DescribeTrustedAdvisorChecksCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSSupport_20130415", "DescribeTrustedAdvisorChecks", {})
19
+ .n("SupportClient", "DescribeTrustedAdvisorChecksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTrustedAdvisorChecksCommand)
22
+ .de(de_DescribeTrustedAdvisorChecksCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_RefreshTrustedAdvisorCheckCommand, se_RefreshTrustedAdvisorCheckCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class RefreshTrustedAdvisorCheckCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, RefreshTrustedAdvisorCheckCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SupportClient";
26
- const commandName = "RefreshTrustedAdvisorCheckCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSSupport_20130415",
35
- operation: "RefreshTrustedAdvisorCheck",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_RefreshTrustedAdvisorCheckCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_RefreshTrustedAdvisorCheckCommand(output, context);
46
- }
7
+ export class RefreshTrustedAdvisorCheckCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSSupport_20130415", "RefreshTrustedAdvisorCheck", {})
19
+ .n("SupportClient", "RefreshTrustedAdvisorCheckCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_RefreshTrustedAdvisorCheckCommand)
22
+ .de(de_RefreshTrustedAdvisorCheckCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ResolveCaseCommand, se_ResolveCaseCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ResolveCaseCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ResolveCaseCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SupportClient";
26
- const commandName = "ResolveCaseCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSSupport_20130415",
35
- operation: "ResolveCase",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ResolveCaseCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ResolveCaseCommand(output, context);
46
- }
7
+ export class ResolveCaseCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSSupport_20130415", "ResolveCase", {})
19
+ .n("SupportClient", "ResolveCaseCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ResolveCaseCommand)
22
+ .de(de_ResolveCaseCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "support",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeCasesCommand, } from "../commands/DescribeCasesCommand";
2
3
  import { SupportClient } from "../SupportClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeCasesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeCases(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof SupportClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Support | SupportClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeCases = createPaginator(SupportClient, DescribeCasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeCommunicationsCommand, } from "../commands/DescribeCommunicationsCommand";
2
3
  import { SupportClient } from "../SupportClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeCommunicationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeCommunications(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof SupportClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Support | SupportClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeCommunications = createPaginator(SupportClient, DescribeCommunicationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AddAttachmentsToSetRequest, AddAttachmentsToSetResponse } from "../models/models_0";
5
4
  import { ServiceInputTypes, ServiceOutputTypes, SupportClientResolvedConfig } from "../SupportClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddAttachmentsToSetCommandInput extends AddAttachmentsToSetRequ
21
20
  */
22
21
  export interface AddAttachmentsToSetCommandOutput extends AddAttachmentsToSetResponse, __MetadataBearer {
23
22
  }
23
+ declare const AddAttachmentsToSetCommand_base: {
24
+ new (input: AddAttachmentsToSetCommandInput): import("@smithy/smithy-client").CommandImpl<AddAttachmentsToSetCommandInput, AddAttachmentsToSetCommandOutput, SupportClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds one or more attachments to an attachment set. </p>
@@ -93,23 +96,5 @@ export interface AddAttachmentsToSetCommandOutput extends AddAttachmentsToSetRes
93
96
  * <p>Base exception class for all service exceptions from Support service.</p>
94
97
  *
95
98
  */
96
- export declare class AddAttachmentsToSetCommand extends $Command<AddAttachmentsToSetCommandInput, AddAttachmentsToSetCommandOutput, SupportClientResolvedConfig> {
97
- readonly input: AddAttachmentsToSetCommandInput;
98
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
- /**
100
- * @public
101
- */
102
- constructor(input: AddAttachmentsToSetCommandInput);
103
- /**
104
- * @internal
105
- */
106
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddAttachmentsToSetCommandInput, AddAttachmentsToSetCommandOutput>;
107
- /**
108
- * @internal
109
- */
110
- private serialize;
111
- /**
112
- * @internal
113
- */
114
- private deserialize;
99
+ export declare class AddAttachmentsToSetCommand extends AddAttachmentsToSetCommand_base {
115
100
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AddCommunicationToCaseRequest, AddCommunicationToCaseResponse } from "../models/models_0";
5
4
  import { ServiceInputTypes, ServiceOutputTypes, SupportClientResolvedConfig } from "../SupportClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddCommunicationToCaseCommandInput extends AddCommunicationToCa
21
20
  */
22
21
  export interface AddCommunicationToCaseCommandOutput extends AddCommunicationToCaseResponse, __MetadataBearer {
23
22
  }
23
+ declare const AddCommunicationToCaseCommand_base: {
24
+ new (input: AddCommunicationToCaseCommandInput): import("@smithy/smithy-client").CommandImpl<AddCommunicationToCaseCommandInput, AddCommunicationToCaseCommandOutput, SupportClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds additional customer communication to an Amazon Web Services Support case. Use the <code>caseId</code>
@@ -87,23 +90,5 @@ export interface AddCommunicationToCaseCommandOutput extends AddCommunicationToC
87
90
  * <p>Base exception class for all service exceptions from Support service.</p>
88
91
  *
89
92
  */
90
- export declare class AddCommunicationToCaseCommand extends $Command<AddCommunicationToCaseCommandInput, AddCommunicationToCaseCommandOutput, SupportClientResolvedConfig> {
91
- readonly input: AddCommunicationToCaseCommandInput;
92
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
93
- /**
94
- * @public
95
- */
96
- constructor(input: AddCommunicationToCaseCommandInput);
97
- /**
98
- * @internal
99
- */
100
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddCommunicationToCaseCommandInput, AddCommunicationToCaseCommandOutput>;
101
- /**
102
- * @internal
103
- */
104
- private serialize;
105
- /**
106
- * @internal
107
- */
108
- private deserialize;
93
+ export declare class AddCommunicationToCaseCommand extends AddCommunicationToCaseCommand_base {
109
94
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateCaseRequest, CreateCaseResponse } from "../models/models_0";
5
4
  import { ServiceInputTypes, ServiceOutputTypes, SupportClientResolvedConfig } from "../SupportClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateCaseCommandInput extends CreateCaseRequest {
21
20
  */
22
21
  export interface CreateCaseCommandOutput extends CreateCaseResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateCaseCommand_base: {
24
+ new (input: CreateCaseCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCaseCommandInput, CreateCaseCommandOutput, SupportClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a case in the Amazon Web Services Support Center. This operation is similar to how you create a case
@@ -106,23 +109,5 @@ export interface CreateCaseCommandOutput extends CreateCaseResponse, __MetadataB
106
109
  * <p>Base exception class for all service exceptions from Support service.</p>
107
110
  *
108
111
  */
109
- export declare class CreateCaseCommand extends $Command<CreateCaseCommandInput, CreateCaseCommandOutput, SupportClientResolvedConfig> {
110
- readonly input: CreateCaseCommandInput;
111
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
112
- /**
113
- * @public
114
- */
115
- constructor(input: CreateCaseCommandInput);
116
- /**
117
- * @internal
118
- */
119
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateCaseCommandInput, CreateCaseCommandOutput>;
120
- /**
121
- * @internal
122
- */
123
- private serialize;
124
- /**
125
- * @internal
126
- */
127
- private deserialize;
112
+ export declare class CreateCaseCommand extends CreateCaseCommand_base {
128
113
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { DescribeAttachmentRequest, DescribeAttachmentResponse } from "../models/models_0";
5
4
  import { ServiceInputTypes, ServiceOutputTypes, SupportClientResolvedConfig } from "../SupportClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DescribeAttachmentCommandInput extends DescribeAttachmentReques
21
20
  */
22
21
  export interface DescribeAttachmentCommandOutput extends DescribeAttachmentResponse, __MetadataBearer {
23
22
  }
23
+ declare const DescribeAttachmentCommand_base: {
24
+ new (input: DescribeAttachmentCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeAttachmentCommandInput, DescribeAttachmentCommandOutput, SupportClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns the attachment that has the specified ID. Attachments can include screenshots,
@@ -82,23 +85,5 @@ export interface DescribeAttachmentCommandOutput extends DescribeAttachmentRespo
82
85
  * <p>Base exception class for all service exceptions from Support service.</p>
83
86
  *
84
87
  */
85
- export declare class DescribeAttachmentCommand extends $Command<DescribeAttachmentCommandInput, DescribeAttachmentCommandOutput, SupportClientResolvedConfig> {
86
- readonly input: DescribeAttachmentCommandInput;
87
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
88
- /**
89
- * @public
90
- */
91
- constructor(input: DescribeAttachmentCommandInput);
92
- /**
93
- * @internal
94
- */
95
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SupportClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeAttachmentCommandInput, DescribeAttachmentCommandOutput>;
96
- /**
97
- * @internal
98
- */
99
- private serialize;
100
- /**
101
- * @internal
102
- */
103
- private deserialize;
88
+ export declare class DescribeAttachmentCommand extends DescribeAttachmentCommand_base {
104
89
  }