@aws-sdk/client-trustedadvisor 3.454.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 (143) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +285 -0
  3. package/dist-cjs/TrustedAdvisor.js +31 -0
  4. package/dist-cjs/TrustedAdvisorClient.js +43 -0
  5. package/dist-cjs/commands/GetOrganizationRecommendationCommand.js +52 -0
  6. package/dist-cjs/commands/GetRecommendationCommand.js +52 -0
  7. package/dist-cjs/commands/ListChecksCommand.js +51 -0
  8. package/dist-cjs/commands/ListOrganizationRecommendationAccountsCommand.js +52 -0
  9. package/dist-cjs/commands/ListOrganizationRecommendationResourcesCommand.js +51 -0
  10. package/dist-cjs/commands/ListOrganizationRecommendationsCommand.js +51 -0
  11. package/dist-cjs/commands/ListRecommendationResourcesCommand.js +51 -0
  12. package/dist-cjs/commands/ListRecommendationsCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateOrganizationRecommendationLifecycleCommand.js +52 -0
  14. package/dist-cjs/commands/UpdateRecommendationLifecycleCommand.js +52 -0
  15. package/dist-cjs/commands/index.js +13 -0
  16. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  17. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  18. package/dist-cjs/endpoint/ruleset.js +7 -0
  19. package/dist-cjs/extensionConfiguration.js +2 -0
  20. package/dist-cjs/index.js +12 -0
  21. package/dist-cjs/models/TrustedAdvisorServiceException.js +12 -0
  22. package/dist-cjs/models/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +202 -0
  24. package/dist-cjs/pagination/Interfaces.js +2 -0
  25. package/dist-cjs/pagination/ListChecksPaginator.js +29 -0
  26. package/dist-cjs/pagination/ListOrganizationRecommendationAccountsPaginator.js +29 -0
  27. package/dist-cjs/pagination/ListOrganizationRecommendationResourcesPaginator.js +29 -0
  28. package/dist-cjs/pagination/ListOrganizationRecommendationsPaginator.js +29 -0
  29. package/dist-cjs/pagination/ListRecommendationResourcesPaginator.js +29 -0
  30. package/dist-cjs/pagination/ListRecommendationsPaginator.js +29 -0
  31. package/dist-cjs/pagination/index.js +10 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +1023 -0
  33. package/dist-cjs/runtimeConfig.browser.js +39 -0
  34. package/dist-cjs/runtimeConfig.js +50 -0
  35. package/dist-cjs/runtimeConfig.native.js +15 -0
  36. package/dist-cjs/runtimeConfig.shared.js +24 -0
  37. package/dist-cjs/runtimeExtensions.js +22 -0
  38. package/dist-es/TrustedAdvisor.js +27 -0
  39. package/dist-es/TrustedAdvisorClient.js +39 -0
  40. package/dist-es/commands/GetOrganizationRecommendationCommand.js +48 -0
  41. package/dist-es/commands/GetRecommendationCommand.js +48 -0
  42. package/dist-es/commands/ListChecksCommand.js +47 -0
  43. package/dist-es/commands/ListOrganizationRecommendationAccountsCommand.js +48 -0
  44. package/dist-es/commands/ListOrganizationRecommendationResourcesCommand.js +47 -0
  45. package/dist-es/commands/ListOrganizationRecommendationsCommand.js +47 -0
  46. package/dist-es/commands/ListRecommendationResourcesCommand.js +47 -0
  47. package/dist-es/commands/ListRecommendationsCommand.js +47 -0
  48. package/dist-es/commands/UpdateOrganizationRecommendationLifecycleCommand.js +48 -0
  49. package/dist-es/commands/UpdateRecommendationLifecycleCommand.js +48 -0
  50. package/dist-es/commands/index.js +10 -0
  51. package/dist-es/endpoint/EndpointParameters.js +8 -0
  52. package/dist-es/endpoint/endpointResolver.js +8 -0
  53. package/dist-es/endpoint/ruleset.js +4 -0
  54. package/dist-es/extensionConfiguration.js +1 -0
  55. package/dist-es/index.js +7 -0
  56. package/dist-es/models/TrustedAdvisorServiceException.js +8 -0
  57. package/dist-es/models/index.js +1 -0
  58. package/dist-es/models/models_0.js +185 -0
  59. package/dist-es/pagination/Interfaces.js +1 -0
  60. package/dist-es/pagination/ListChecksPaginator.js +25 -0
  61. package/dist-es/pagination/ListOrganizationRecommendationAccountsPaginator.js +25 -0
  62. package/dist-es/pagination/ListOrganizationRecommendationResourcesPaginator.js +25 -0
  63. package/dist-es/pagination/ListOrganizationRecommendationsPaginator.js +25 -0
  64. package/dist-es/pagination/ListRecommendationResourcesPaginator.js +25 -0
  65. package/dist-es/pagination/ListRecommendationsPaginator.js +25 -0
  66. package/dist-es/pagination/index.js +7 -0
  67. package/dist-es/protocols/Aws_restJson1.js +1000 -0
  68. package/dist-es/runtimeConfig.browser.js +34 -0
  69. package/dist-es/runtimeConfig.js +45 -0
  70. package/dist-es/runtimeConfig.native.js +11 -0
  71. package/dist-es/runtimeConfig.shared.js +20 -0
  72. package/dist-es/runtimeExtensions.js +18 -0
  73. package/dist-types/TrustedAdvisor.d.ts +80 -0
  74. package/dist-types/TrustedAdvisorClient.d.ts +179 -0
  75. package/dist-types/commands/GetOrganizationRecommendationCommand.d.ts +125 -0
  76. package/dist-types/commands/GetRecommendationCommand.d.ts +123 -0
  77. package/dist-types/commands/ListChecksCommand.d.ts +108 -0
  78. package/dist-types/commands/ListOrganizationRecommendationAccountsCommand.d.ts +105 -0
  79. package/dist-types/commands/ListOrganizationRecommendationResourcesCommand.d.ts +110 -0
  80. package/dist-types/commands/ListOrganizationRecommendationsCommand.d.ts +127 -0
  81. package/dist-types/commands/ListRecommendationResourcesCommand.d.ts +106 -0
  82. package/dist-types/commands/ListRecommendationsCommand.d.ts +125 -0
  83. package/dist-types/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +94 -0
  84. package/dist-types/commands/UpdateRecommendationLifecycleCommand.d.ts +92 -0
  85. package/dist-types/commands/index.d.ts +10 -0
  86. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  87. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  88. package/dist-types/endpoint/ruleset.d.ts +2 -0
  89. package/dist-types/extensionConfiguration.d.ts +8 -0
  90. package/dist-types/index.d.ts +15 -0
  91. package/dist-types/models/TrustedAdvisorServiceException.d.ts +13 -0
  92. package/dist-types/models/index.d.ts +1 -0
  93. package/dist-types/models/models_0.d.ts +1322 -0
  94. package/dist-types/pagination/Interfaces.d.ts +8 -0
  95. package/dist-types/pagination/ListChecksPaginator.d.ts +7 -0
  96. package/dist-types/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListOrganizationRecommendationsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/ListRecommendationResourcesPaginator.d.ts +7 -0
  100. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
  101. package/dist-types/pagination/index.d.ts +7 -0
  102. package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
  103. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  104. package/dist-types/runtimeConfig.d.ts +46 -0
  105. package/dist-types/runtimeConfig.native.d.ts +45 -0
  106. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  107. package/dist-types/runtimeExtensions.d.ts +17 -0
  108. package/dist-types/ts3.4/TrustedAdvisor.d.ts +195 -0
  109. package/dist-types/ts3.4/TrustedAdvisorClient.d.ts +179 -0
  110. package/dist-types/ts3.4/commands/GetOrganizationRecommendationCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +39 -0
  112. package/dist-types/ts3.4/commands/ListChecksCommand.d.ts +35 -0
  113. package/dist-types/ts3.4/commands/ListOrganizationRecommendationAccountsCommand.d.ts +42 -0
  114. package/dist-types/ts3.4/commands/ListOrganizationRecommendationResourcesCommand.d.ts +42 -0
  115. package/dist-types/ts3.4/commands/ListOrganizationRecommendationsCommand.d.ts +42 -0
  116. package/dist-types/ts3.4/commands/ListRecommendationResourcesCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +39 -0
  118. package/dist-types/ts3.4/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +38 -0
  119. package/dist-types/ts3.4/commands/UpdateRecommendationLifecycleCommand.d.ts +38 -0
  120. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  121. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  122. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  123. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  124. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  125. package/dist-types/ts3.4/index.d.ts +10 -0
  126. package/dist-types/ts3.4/models/TrustedAdvisorServiceException.d.ts +8 -0
  127. package/dist-types/ts3.4/models/index.d.ts +1 -0
  128. package/dist-types/ts3.4/models/models_0.d.ts +397 -0
  129. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  130. package/dist-types/ts3.4/pagination/ListChecksPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +11 -0
  133. package/dist-types/ts3.4/pagination/ListOrganizationRecommendationsPaginator.d.ts +11 -0
  134. package/dist-types/ts3.4/pagination/ListRecommendationResourcesPaginator.d.ts +11 -0
  135. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
  136. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  137. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
  138. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  139. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  141. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  142. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  143. package/package.json +102 -0
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRecommendationLifecycleRequestFilterSensitiveLog = exports.UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = exports.ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = exports.GetRecommendationResponseFilterSensitiveLog = exports.RecommendationFilterSensitiveLog = exports.GetOrganizationRecommendationResponseFilterSensitiveLog = exports.OrganizationRecommendationFilterSensitiveLog = exports.AccountRecommendationLifecycleSummaryFilterSensitiveLog = exports.UpdateRecommendationLifecycleStage = exports.ResourceStatus = exports.RecommendationLanguage = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.RecommendationType = exports.RecommendationStatus = exports.ConflictException = exports.RecommendationSource = exports.RecommendationPillar = exports.UpdateRecommendationLifecycleStageReasonCode = exports.RecommendationLifecycleStage = exports.AccessDeniedException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const TrustedAdvisorServiceException_1 = require("./TrustedAdvisorServiceException");
6
+ class AccessDeniedException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ exports.RecommendationLifecycleStage = {
20
+ DISMISSED: "dismissed",
21
+ IN_PROGRESS: "in_progress",
22
+ PENDING_RESPONSE: "pending_response",
23
+ RESOLVED: "resolved",
24
+ };
25
+ exports.UpdateRecommendationLifecycleStageReasonCode = {
26
+ LOW_PRIORITY: "low_priority",
27
+ NON_CRITICAL_ACCOUNT: "non_critical_account",
28
+ NOT_APPLICABLE: "not_applicable",
29
+ OTHER: "other",
30
+ OTHER_METHODS_AVAILABLE: "other_methods_available",
31
+ TEMPORARY_ACCOUNT: "temporary_account",
32
+ VALID_BUSINESS_CASE: "valid_business_case",
33
+ };
34
+ exports.RecommendationPillar = {
35
+ COST_OPTIMIZING: "cost_optimizing",
36
+ FAULT_TOLERANCE: "fault_tolerance",
37
+ OPERATIONAL_EXCELLENCE: "operational_excellence",
38
+ PERFORMANCE: "performance",
39
+ SECURITY: "security",
40
+ SERVICE_LIMITS: "service_limits",
41
+ };
42
+ exports.RecommendationSource = {
43
+ AWS_CONFIG: "aws_config",
44
+ COMPUTE_OPTIMIZER: "compute_optimizer",
45
+ COST_EXPLORER: "cost_explorer",
46
+ LSE: "lse",
47
+ MANUAL: "manual",
48
+ PSE: "pse",
49
+ RDS: "rds",
50
+ RESILIENCE: "resilience",
51
+ RESILIENCE_HUB: "resilience_hub",
52
+ SECURITY_HUB: "security_hub",
53
+ STIR: "stir",
54
+ TA_CHECK: "ta_check",
55
+ WELL_ARCHITECTED: "well_architected",
56
+ };
57
+ class ConflictException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "ConflictException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ this.name = "ConflictException";
65
+ this.$fault = "client";
66
+ Object.setPrototypeOf(this, ConflictException.prototype);
67
+ }
68
+ }
69
+ exports.ConflictException = ConflictException;
70
+ exports.RecommendationStatus = {
71
+ ERROR: "error",
72
+ OK: "ok",
73
+ WARNING: "warning",
74
+ };
75
+ exports.RecommendationType = {
76
+ PRIORITY: "priority",
77
+ STANDARD: "standard",
78
+ };
79
+ class InternalServerException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
80
+ constructor(opts) {
81
+ super({
82
+ name: "InternalServerException",
83
+ $fault: "server",
84
+ ...opts,
85
+ });
86
+ this.name = "InternalServerException";
87
+ this.$fault = "server";
88
+ this.$retryable = {};
89
+ Object.setPrototypeOf(this, InternalServerException.prototype);
90
+ }
91
+ }
92
+ exports.InternalServerException = InternalServerException;
93
+ class ResourceNotFoundException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
94
+ constructor(opts) {
95
+ super({
96
+ name: "ResourceNotFoundException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ this.name = "ResourceNotFoundException";
101
+ this.$fault = "client";
102
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
103
+ }
104
+ }
105
+ exports.ResourceNotFoundException = ResourceNotFoundException;
106
+ class ThrottlingException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
107
+ constructor(opts) {
108
+ super({
109
+ name: "ThrottlingException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ this.name = "ThrottlingException";
114
+ this.$fault = "client";
115
+ this.$retryable = {
116
+ throttling: true,
117
+ };
118
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
119
+ }
120
+ }
121
+ exports.ThrottlingException = ThrottlingException;
122
+ class ValidationException extends TrustedAdvisorServiceException_1.TrustedAdvisorServiceException {
123
+ constructor(opts) {
124
+ super({
125
+ name: "ValidationException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ this.name = "ValidationException";
130
+ this.$fault = "client";
131
+ Object.setPrototypeOf(this, ValidationException.prototype);
132
+ }
133
+ }
134
+ exports.ValidationException = ValidationException;
135
+ exports.RecommendationLanguage = {
136
+ BAHASA_INDONESIA: "id",
137
+ BRAZILIAN_PORTUGUESE: "pt_BR",
138
+ CHINESE: "zh",
139
+ ENGLISH: "en",
140
+ FRENCH: "fr",
141
+ GERMAN: "de",
142
+ ITALIAN: "it",
143
+ JAPANESE: "ja",
144
+ KOREAN: "ko",
145
+ SPANISH: "es",
146
+ TRADITIONAL_CHINESE: "zh_TW",
147
+ };
148
+ exports.ResourceStatus = {
149
+ ERROR: "error",
150
+ OK: "ok",
151
+ WARNING: "warning",
152
+ };
153
+ exports.UpdateRecommendationLifecycleStage = {
154
+ DISMISSED: "dismissed",
155
+ IN_PROGRESS: "in_progress",
156
+ PENDING_RESPONSE: "pending_response",
157
+ RESOLVED: "resolved",
158
+ };
159
+ const AccountRecommendationLifecycleSummaryFilterSensitiveLog = (obj) => ({
160
+ ...obj,
161
+ ...(obj.updateReason && { updateReason: smithy_client_1.SENSITIVE_STRING }),
162
+ });
163
+ exports.AccountRecommendationLifecycleSummaryFilterSensitiveLog = AccountRecommendationLifecycleSummaryFilterSensitiveLog;
164
+ const OrganizationRecommendationFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ ...(obj.updateReason && { updateReason: smithy_client_1.SENSITIVE_STRING }),
167
+ });
168
+ exports.OrganizationRecommendationFilterSensitiveLog = OrganizationRecommendationFilterSensitiveLog;
169
+ const GetOrganizationRecommendationResponseFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ ...(obj.organizationRecommendation && {
172
+ organizationRecommendation: (0, exports.OrganizationRecommendationFilterSensitiveLog)(obj.organizationRecommendation),
173
+ }),
174
+ });
175
+ exports.GetOrganizationRecommendationResponseFilterSensitiveLog = GetOrganizationRecommendationResponseFilterSensitiveLog;
176
+ const RecommendationFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ ...(obj.updateReason && { updateReason: smithy_client_1.SENSITIVE_STRING }),
179
+ });
180
+ exports.RecommendationFilterSensitiveLog = RecommendationFilterSensitiveLog;
181
+ const GetRecommendationResponseFilterSensitiveLog = (obj) => ({
182
+ ...obj,
183
+ ...(obj.recommendation && { recommendation: (0, exports.RecommendationFilterSensitiveLog)(obj.recommendation) }),
184
+ });
185
+ exports.GetRecommendationResponseFilterSensitiveLog = GetRecommendationResponseFilterSensitiveLog;
186
+ const ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ ...(obj.accountRecommendationLifecycleSummaries && {
189
+ accountRecommendationLifecycleSummaries: obj.accountRecommendationLifecycleSummaries.map((item) => (0, exports.AccountRecommendationLifecycleSummaryFilterSensitiveLog)(item)),
190
+ }),
191
+ });
192
+ exports.ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = ListOrganizationRecommendationAccountsResponseFilterSensitiveLog;
193
+ const UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ ...(obj.updateReason && { updateReason: smithy_client_1.SENSITIVE_STRING }),
196
+ });
197
+ exports.UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog;
198
+ const UpdateRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ ...(obj.updateReason && { updateReason: smithy_client_1.SENSITIVE_STRING }),
201
+ });
202
+ exports.UpdateRecommendationLifecycleRequestFilterSensitiveLog = UpdateRecommendationLifecycleRequestFilterSensitiveLog;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListChecks = void 0;
4
+ const ListChecksCommand_1 = require("../commands/ListChecksCommand");
5
+ const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListChecksCommand_1.ListChecksCommand(input), ...args);
8
+ };
9
+ async function* paginateListChecks(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListChecks = paginateListChecks;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListOrganizationRecommendationAccounts = void 0;
4
+ const ListOrganizationRecommendationAccountsCommand_1 = require("../commands/ListOrganizationRecommendationAccountsCommand");
5
+ const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListOrganizationRecommendationAccountsCommand_1.ListOrganizationRecommendationAccountsCommand(input), ...args);
8
+ };
9
+ async function* paginateListOrganizationRecommendationAccounts(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListOrganizationRecommendationAccounts = paginateListOrganizationRecommendationAccounts;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListOrganizationRecommendationResources = void 0;
4
+ const ListOrganizationRecommendationResourcesCommand_1 = require("../commands/ListOrganizationRecommendationResourcesCommand");
5
+ const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListOrganizationRecommendationResourcesCommand_1.ListOrganizationRecommendationResourcesCommand(input), ...args);
8
+ };
9
+ async function* paginateListOrganizationRecommendationResources(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListOrganizationRecommendationResources = paginateListOrganizationRecommendationResources;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListOrganizationRecommendations = void 0;
4
+ const ListOrganizationRecommendationsCommand_1 = require("../commands/ListOrganizationRecommendationsCommand");
5
+ const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListOrganizationRecommendationsCommand_1.ListOrganizationRecommendationsCommand(input), ...args);
8
+ };
9
+ async function* paginateListOrganizationRecommendations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListOrganizationRecommendations = paginateListOrganizationRecommendations;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListRecommendationResources = void 0;
4
+ const ListRecommendationResourcesCommand_1 = require("../commands/ListRecommendationResourcesCommand");
5
+ const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListRecommendationResourcesCommand_1.ListRecommendationResourcesCommand(input), ...args);
8
+ };
9
+ async function* paginateListRecommendationResources(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListRecommendationResources = paginateListRecommendationResources;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListRecommendations = void 0;
4
+ const ListRecommendationsCommand_1 = require("../commands/ListRecommendationsCommand");
5
+ const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListRecommendationsCommand_1.ListRecommendationsCommand(input), ...args);
8
+ };
9
+ async function* paginateListRecommendations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListRecommendations = paginateListRecommendations;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListChecksPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListOrganizationRecommendationAccountsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListOrganizationRecommendationResourcesPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListOrganizationRecommendationsPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListRecommendationResourcesPaginator"), exports);
10
+ tslib_1.__exportStar(require("./ListRecommendationsPaginator"), exports);