@aws-sdk/client-appconfig 3.186.0 → 3.190.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 (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/AppConfig.js +174 -181
  3. package/dist-es/AppConfigClient.js +22 -28
  4. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  5. package/dist-es/commands/CreateConfigurationProfileCommand.js +21 -28
  6. package/dist-es/commands/CreateDeploymentStrategyCommand.js +21 -28
  7. package/dist-es/commands/CreateEnvironmentCommand.js +21 -28
  8. package/dist-es/commands/CreateExtensionAssociationCommand.js +21 -28
  9. package/dist-es/commands/CreateExtensionCommand.js +21 -28
  10. package/dist-es/commands/CreateHostedConfigurationVersionCommand.js +21 -28
  11. package/dist-es/commands/DeleteApplicationCommand.js +22 -29
  12. package/dist-es/commands/DeleteConfigurationProfileCommand.js +22 -29
  13. package/dist-es/commands/DeleteDeploymentStrategyCommand.js +22 -29
  14. package/dist-es/commands/DeleteEnvironmentCommand.js +22 -29
  15. package/dist-es/commands/DeleteExtensionAssociationCommand.js +22 -29
  16. package/dist-es/commands/DeleteExtensionCommand.js +22 -29
  17. package/dist-es/commands/DeleteHostedConfigurationVersionCommand.js +22 -29
  18. package/dist-es/commands/GetApplicationCommand.js +21 -28
  19. package/dist-es/commands/GetConfigurationCommand.js +21 -28
  20. package/dist-es/commands/GetConfigurationProfileCommand.js +21 -28
  21. package/dist-es/commands/GetDeploymentCommand.js +21 -28
  22. package/dist-es/commands/GetDeploymentStrategyCommand.js +21 -28
  23. package/dist-es/commands/GetEnvironmentCommand.js +21 -28
  24. package/dist-es/commands/GetExtensionAssociationCommand.js +21 -28
  25. package/dist-es/commands/GetExtensionCommand.js +21 -28
  26. package/dist-es/commands/GetHostedConfigurationVersionCommand.js +21 -28
  27. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  28. package/dist-es/commands/ListConfigurationProfilesCommand.js +21 -28
  29. package/dist-es/commands/ListDeploymentStrategiesCommand.js +21 -28
  30. package/dist-es/commands/ListDeploymentsCommand.js +21 -28
  31. package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
  32. package/dist-es/commands/ListExtensionAssociationsCommand.js +21 -28
  33. package/dist-es/commands/ListExtensionsCommand.js +21 -28
  34. package/dist-es/commands/ListHostedConfigurationVersionsCommand.js +21 -28
  35. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  36. package/dist-es/commands/StartDeploymentCommand.js +21 -28
  37. package/dist-es/commands/StopDeploymentCommand.js +21 -28
  38. package/dist-es/commands/TagResourceCommand.js +22 -29
  39. package/dist-es/commands/UntagResourceCommand.js +22 -29
  40. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  41. package/dist-es/commands/UpdateConfigurationProfileCommand.js +21 -28
  42. package/dist-es/commands/UpdateDeploymentStrategyCommand.js +21 -28
  43. package/dist-es/commands/UpdateEnvironmentCommand.js +21 -28
  44. package/dist-es/commands/UpdateExtensionAssociationCommand.js +21 -28
  45. package/dist-es/commands/UpdateExtensionCommand.js +21 -28
  46. package/dist-es/commands/ValidateConfigurationCommand.js +22 -29
  47. package/dist-es/endpoints.js +8 -8
  48. package/dist-es/models/AppConfigServiceException.js +5 -10
  49. package/dist-es/models/models_0.js +311 -158
  50. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  51. package/dist-es/pagination/ListConfigurationProfilesPaginator.js +25 -68
  52. package/dist-es/pagination/ListDeploymentStrategiesPaginator.js +25 -68
  53. package/dist-es/pagination/ListDeploymentsPaginator.js +25 -68
  54. package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
  55. package/dist-es/pagination/ListExtensionAssociationsPaginator.js +25 -68
  56. package/dist-es/pagination/ListExtensionsPaginator.js +25 -68
  57. package/dist-es/pagination/ListHostedConfigurationVersionsPaginator.js +25 -68
  58. package/dist-es/protocols/Aws_restJson1.js +3259 -4495
  59. package/dist-es/runtimeConfig.browser.js +26 -12
  60. package/dist-es/runtimeConfig.js +30 -12
  61. package/dist-es/runtimeConfig.native.js +8 -5
  62. package/dist-es/runtimeConfig.shared.js +8 -11
  63. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { AppConfigServiceException as __BaseException } from "./AppConfigServiceException";
4
3
  export var ActionPoint;
@@ -13,7 +12,7 @@ export var ActionPoint;
13
12
  })(ActionPoint || (ActionPoint = {}));
14
13
  export var BadRequestDetails;
15
14
  (function (BadRequestDetails) {
16
- BadRequestDetails.visit = function (value, visitor) {
15
+ BadRequestDetails.visit = (value, visitor) => {
17
16
  if (value.InvalidConfiguration !== undefined)
18
17
  return visitor.InvalidConfiguration(value.InvalidConfiguration);
19
18
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -23,53 +22,53 @@ export var BadRequestReason;
23
22
  (function (BadRequestReason) {
24
23
  BadRequestReason["INVALID_CONFIGURATION"] = "InvalidConfiguration";
25
24
  })(BadRequestReason || (BadRequestReason = {}));
26
- var BadRequestException = (function (_super) {
27
- __extends(BadRequestException, _super);
28
- function BadRequestException(opts) {
29
- var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
30
- _this.name = "BadRequestException";
31
- _this.$fault = "client";
32
- Object.setPrototypeOf(_this, BadRequestException.prototype);
33
- _this.Message = opts.Message;
34
- _this.Reason = opts.Reason;
35
- _this.Details = opts.Details;
36
- return _this;
25
+ export class BadRequestException extends __BaseException {
26
+ constructor(opts) {
27
+ super({
28
+ name: "BadRequestException",
29
+ $fault: "client",
30
+ ...opts,
31
+ });
32
+ this.name = "BadRequestException";
33
+ this.$fault = "client";
34
+ Object.setPrototypeOf(this, BadRequestException.prototype);
35
+ this.Message = opts.Message;
36
+ this.Reason = opts.Reason;
37
+ this.Details = opts.Details;
37
38
  }
38
- return BadRequestException;
39
- }(__BaseException));
40
- export { BadRequestException };
41
- var InternalServerException = (function (_super) {
42
- __extends(InternalServerException, _super);
43
- function InternalServerException(opts) {
44
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
45
- _this.name = "InternalServerException";
46
- _this.$fault = "server";
47
- Object.setPrototypeOf(_this, InternalServerException.prototype);
48
- _this.Message = opts.Message;
49
- return _this;
39
+ }
40
+ export class InternalServerException extends __BaseException {
41
+ constructor(opts) {
42
+ super({
43
+ name: "InternalServerException",
44
+ $fault: "server",
45
+ ...opts,
46
+ });
47
+ this.name = "InternalServerException";
48
+ this.$fault = "server";
49
+ Object.setPrototypeOf(this, InternalServerException.prototype);
50
+ this.Message = opts.Message;
50
51
  }
51
- return InternalServerException;
52
- }(__BaseException));
53
- export { InternalServerException };
52
+ }
54
53
  export var ValidatorType;
55
54
  (function (ValidatorType) {
56
55
  ValidatorType["JSON_SCHEMA"] = "JSON_SCHEMA";
57
56
  ValidatorType["LAMBDA"] = "LAMBDA";
58
57
  })(ValidatorType || (ValidatorType = {}));
59
- var ResourceNotFoundException = (function (_super) {
60
- __extends(ResourceNotFoundException, _super);
61
- function ResourceNotFoundException(opts) {
62
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
63
- _this.name = "ResourceNotFoundException";
64
- _this.$fault = "client";
65
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
66
- _this.Message = opts.Message;
67
- _this.ResourceName = opts.ResourceName;
68
- return _this;
58
+ export class ResourceNotFoundException extends __BaseException {
59
+ constructor(opts) {
60
+ super({
61
+ name: "ResourceNotFoundException",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ this.name = "ResourceNotFoundException";
66
+ this.$fault = "client";
67
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
+ this.Message = opts.Message;
69
+ this.ResourceName = opts.ResourceName;
69
70
  }
70
- return ResourceNotFoundException;
71
- }(__BaseException));
72
- export { ResourceNotFoundException };
71
+ }
73
72
  export var GrowthType;
74
73
  (function (GrowthType) {
75
74
  GrowthType["EXPONENTIAL"] = "EXPONENTIAL";
@@ -87,52 +86,52 @@ export var EnvironmentState;
87
86
  EnvironmentState["ROLLED_BACK"] = "ROLLED_BACK";
88
87
  EnvironmentState["ROLLING_BACK"] = "ROLLING_BACK";
89
88
  })(EnvironmentState || (EnvironmentState = {}));
90
- var ConflictException = (function (_super) {
91
- __extends(ConflictException, _super);
92
- function ConflictException(opts) {
93
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
94
- _this.name = "ConflictException";
95
- _this.$fault = "client";
96
- Object.setPrototypeOf(_this, ConflictException.prototype);
97
- _this.Message = opts.Message;
98
- return _this;
89
+ export class ConflictException extends __BaseException {
90
+ constructor(opts) {
91
+ super({
92
+ name: "ConflictException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ this.name = "ConflictException";
97
+ this.$fault = "client";
98
+ Object.setPrototypeOf(this, ConflictException.prototype);
99
+ this.Message = opts.Message;
99
100
  }
100
- return ConflictException;
101
- }(__BaseException));
102
- export { ConflictException };
103
- var ServiceQuotaExceededException = (function (_super) {
104
- __extends(ServiceQuotaExceededException, _super);
105
- function ServiceQuotaExceededException(opts) {
106
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
107
- _this.name = "ServiceQuotaExceededException";
108
- _this.$fault = "client";
109
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
110
- _this.Message = opts.Message;
111
- return _this;
101
+ }
102
+ export class ServiceQuotaExceededException extends __BaseException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "ServiceQuotaExceededException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "ServiceQuotaExceededException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
112
+ this.Message = opts.Message;
112
113
  }
113
- return ServiceQuotaExceededException;
114
- }(__BaseException));
115
- export { ServiceQuotaExceededException };
114
+ }
116
115
  export var BytesMeasure;
117
116
  (function (BytesMeasure) {
118
117
  BytesMeasure["KILOBYTES"] = "KILOBYTES";
119
118
  })(BytesMeasure || (BytesMeasure = {}));
120
- var PayloadTooLargeException = (function (_super) {
121
- __extends(PayloadTooLargeException, _super);
122
- function PayloadTooLargeException(opts) {
123
- var _this = _super.call(this, __assign({ name: "PayloadTooLargeException", $fault: "client" }, opts)) || this;
124
- _this.name = "PayloadTooLargeException";
125
- _this.$fault = "client";
126
- Object.setPrototypeOf(_this, PayloadTooLargeException.prototype);
127
- _this.Message = opts.Message;
128
- _this.Measure = opts.Measure;
129
- _this.Limit = opts.Limit;
130
- _this.Size = opts.Size;
131
- return _this;
119
+ export class PayloadTooLargeException extends __BaseException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "PayloadTooLargeException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "PayloadTooLargeException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, PayloadTooLargeException.prototype);
129
+ this.Message = opts.Message;
130
+ this.Measure = opts.Measure;
131
+ this.Limit = opts.Limit;
132
+ this.Size = opts.Size;
132
133
  }
133
- return PayloadTooLargeException;
134
- }(__BaseException));
135
- export { PayloadTooLargeException };
134
+ }
136
135
  export var DeploymentEventType;
137
136
  (function (DeploymentEventType) {
138
137
  DeploymentEventType["BAKE_TIME_STARTED"] = "BAKE_TIME_STARTED";
@@ -158,86 +157,240 @@ export var DeploymentState;
158
157
  DeploymentState["ROLLING_BACK"] = "ROLLING_BACK";
159
158
  DeploymentState["VALIDATING"] = "VALIDATING";
160
159
  })(DeploymentState || (DeploymentState = {}));
161
- export var ActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- export var ActionInvocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- export var ApplicationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- export var InvalidConfigurationDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- export var BadRequestDetailsFilterSensitiveLog = function (obj) {
166
- var _a;
160
+ export const ActionFilterSensitiveLog = (obj) => ({
161
+ ...obj,
162
+ });
163
+ export const ActionInvocationFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ });
166
+ export const ApplicationFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ });
169
+ export const InvalidConfigurationDetailFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ });
172
+ export const BadRequestDetailsFilterSensitiveLog = (obj) => {
167
173
  if (obj.InvalidConfiguration !== undefined)
168
174
  return {
169
- InvalidConfiguration: obj.InvalidConfiguration.map(function (item) { return InvalidConfigurationDetailFilterSensitiveLog(item); }),
175
+ InvalidConfiguration: obj.InvalidConfiguration.map((item) => InvalidConfigurationDetailFilterSensitiveLog(item)),
170
176
  };
171
177
  if (obj.$unknown !== undefined)
172
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
178
+ return { [obj.$unknown[0]]: "UNKNOWN" };
173
179
  };
174
- export var CreateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- export var ValidatorFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Content && { Content: SENSITIVE_STRING }))); };
176
- export var ConfigurationProfileFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Validators && { Validators: obj.Validators.map(function (item) { return ValidatorFilterSensitiveLog(item); }) }))); };
177
- export var CreateConfigurationProfileRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Validators && { Validators: obj.Validators.map(function (item) { return ValidatorFilterSensitiveLog(item); }) }))); };
178
- export var CreateDeploymentStrategyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- export var DeploymentStrategyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
- export var MonitorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- export var CreateEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
- export var EnvironmentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
- export var ParameterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- export var CreateExtensionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
- export var ExtensionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
- export var CreateExtensionAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
- export var ExtensionAssociationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
- export var CreateHostedConfigurationVersionRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Content && { Content: SENSITIVE_STRING }))); };
189
- export var HostedConfigurationVersionFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Content && { Content: SENSITIVE_STRING }))); };
190
- export var DeleteApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
- export var DeleteConfigurationProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
- export var DeleteDeploymentStrategyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
- export var DeleteEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
- export var DeleteExtensionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
- export var DeleteExtensionAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
- export var DeleteHostedConfigurationVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
- export var GetApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
- export var ConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Content && { Content: SENSITIVE_STRING }))); };
199
- export var GetConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
- export var GetConfigurationProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
- export var AppliedExtensionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
- export var DeploymentEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
- export var DeploymentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
204
- export var GetDeploymentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
- export var GetDeploymentStrategyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
- export var GetEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
- export var GetExtensionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
- export var GetExtensionAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
- export var GetHostedConfigurationVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
210
- export var ApplicationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
- export var ListApplicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
- export var ConfigurationProfileSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
- export var ConfigurationProfilesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
- export var ListConfigurationProfilesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
- export var DeploymentSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
- export var DeploymentsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
- export var ListDeploymentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
- export var DeploymentStrategiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
- export var ListDeploymentStrategiesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
- export var EnvironmentsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
- export var ListEnvironmentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
- export var ExtensionAssociationSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
- export var ExtensionAssociationsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
- export var ListExtensionAssociationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
- export var ExtensionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
- export var ExtensionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
- export var ListExtensionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
- export var HostedConfigurationVersionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
- export var HostedConfigurationVersionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
230
- export var ListHostedConfigurationVersionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
- export var ResourceTagsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
233
- export var StartDeploymentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
- export var StopDeploymentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
235
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
- export var UpdateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
- export var UpdateConfigurationProfileRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Validators && { Validators: obj.Validators.map(function (item) { return ValidatorFilterSensitiveLog(item); }) }))); };
239
- export var UpdateDeploymentStrategyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
- export var UpdateEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
- export var UpdateExtensionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
- export var UpdateExtensionAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
- export var ValidateConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ export const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ export const ValidatorFilterSensitiveLog = (obj) => ({
184
+ ...obj,
185
+ ...(obj.Content && { Content: SENSITIVE_STRING }),
186
+ });
187
+ export const ConfigurationProfileFilterSensitiveLog = (obj) => ({
188
+ ...obj,
189
+ ...(obj.Validators && { Validators: obj.Validators.map((item) => ValidatorFilterSensitiveLog(item)) }),
190
+ });
191
+ export const CreateConfigurationProfileRequestFilterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ ...(obj.Validators && { Validators: obj.Validators.map((item) => ValidatorFilterSensitiveLog(item)) }),
194
+ });
195
+ export const CreateDeploymentStrategyRequestFilterSensitiveLog = (obj) => ({
196
+ ...obj,
197
+ });
198
+ export const DeploymentStrategyFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ });
201
+ export const MonitorFilterSensitiveLog = (obj) => ({
202
+ ...obj,
203
+ });
204
+ export const CreateEnvironmentRequestFilterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ });
207
+ export const EnvironmentFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ });
210
+ export const ParameterFilterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ });
213
+ export const CreateExtensionRequestFilterSensitiveLog = (obj) => ({
214
+ ...obj,
215
+ });
216
+ export const ExtensionFilterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ });
219
+ export const CreateExtensionAssociationRequestFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ });
222
+ export const ExtensionAssociationFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ });
225
+ export const CreateHostedConfigurationVersionRequestFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ ...(obj.Content && { Content: SENSITIVE_STRING }),
228
+ });
229
+ export const HostedConfigurationVersionFilterSensitiveLog = (obj) => ({
230
+ ...obj,
231
+ ...(obj.Content && { Content: SENSITIVE_STRING }),
232
+ });
233
+ export const DeleteApplicationRequestFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const DeleteConfigurationProfileRequestFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ });
239
+ export const DeleteDeploymentStrategyRequestFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ export const DeleteEnvironmentRequestFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ });
245
+ export const DeleteExtensionRequestFilterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ });
248
+ export const DeleteExtensionAssociationRequestFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ });
251
+ export const DeleteHostedConfigurationVersionRequestFilterSensitiveLog = (obj) => ({
252
+ ...obj,
253
+ });
254
+ export const GetApplicationRequestFilterSensitiveLog = (obj) => ({
255
+ ...obj,
256
+ });
257
+ export const ConfigurationFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ ...(obj.Content && { Content: SENSITIVE_STRING }),
260
+ });
261
+ export const GetConfigurationRequestFilterSensitiveLog = (obj) => ({
262
+ ...obj,
263
+ });
264
+ export const GetConfigurationProfileRequestFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ });
267
+ export const AppliedExtensionFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ });
270
+ export const DeploymentEventFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ export const DeploymentFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ });
276
+ export const GetDeploymentRequestFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ export const GetDeploymentStrategyRequestFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ });
282
+ export const GetEnvironmentRequestFilterSensitiveLog = (obj) => ({
283
+ ...obj,
284
+ });
285
+ export const GetExtensionRequestFilterSensitiveLog = (obj) => ({
286
+ ...obj,
287
+ });
288
+ export const GetExtensionAssociationRequestFilterSensitiveLog = (obj) => ({
289
+ ...obj,
290
+ });
291
+ export const GetHostedConfigurationVersionRequestFilterSensitiveLog = (obj) => ({
292
+ ...obj,
293
+ });
294
+ export const ApplicationsFilterSensitiveLog = (obj) => ({
295
+ ...obj,
296
+ });
297
+ export const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
298
+ ...obj,
299
+ });
300
+ export const ConfigurationProfileSummaryFilterSensitiveLog = (obj) => ({
301
+ ...obj,
302
+ });
303
+ export const ConfigurationProfilesFilterSensitiveLog = (obj) => ({
304
+ ...obj,
305
+ });
306
+ export const ListConfigurationProfilesRequestFilterSensitiveLog = (obj) => ({
307
+ ...obj,
308
+ });
309
+ export const DeploymentSummaryFilterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ });
312
+ export const DeploymentsFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ });
315
+ export const ListDeploymentsRequestFilterSensitiveLog = (obj) => ({
316
+ ...obj,
317
+ });
318
+ export const DeploymentStrategiesFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ });
321
+ export const ListDeploymentStrategiesRequestFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ export const EnvironmentsFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ });
327
+ export const ListEnvironmentsRequestFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ });
330
+ export const ExtensionAssociationSummaryFilterSensitiveLog = (obj) => ({
331
+ ...obj,
332
+ });
333
+ export const ExtensionAssociationsFilterSensitiveLog = (obj) => ({
334
+ ...obj,
335
+ });
336
+ export const ListExtensionAssociationsRequestFilterSensitiveLog = (obj) => ({
337
+ ...obj,
338
+ });
339
+ export const ExtensionSummaryFilterSensitiveLog = (obj) => ({
340
+ ...obj,
341
+ });
342
+ export const ExtensionsFilterSensitiveLog = (obj) => ({
343
+ ...obj,
344
+ });
345
+ export const ListExtensionsRequestFilterSensitiveLog = (obj) => ({
346
+ ...obj,
347
+ });
348
+ export const HostedConfigurationVersionSummaryFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ });
351
+ export const HostedConfigurationVersionsFilterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ });
354
+ export const ListHostedConfigurationVersionsRequestFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ });
357
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ });
360
+ export const ResourceTagsFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ });
363
+ export const StartDeploymentRequestFilterSensitiveLog = (obj) => ({
364
+ ...obj,
365
+ });
366
+ export const StopDeploymentRequestFilterSensitiveLog = (obj) => ({
367
+ ...obj,
368
+ });
369
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ });
372
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ });
375
+ export const UpdateApplicationRequestFilterSensitiveLog = (obj) => ({
376
+ ...obj,
377
+ });
378
+ export const UpdateConfigurationProfileRequestFilterSensitiveLog = (obj) => ({
379
+ ...obj,
380
+ ...(obj.Validators && { Validators: obj.Validators.map((item) => ValidatorFilterSensitiveLog(item)) }),
381
+ });
382
+ export const UpdateDeploymentStrategyRequestFilterSensitiveLog = (obj) => ({
383
+ ...obj,
384
+ });
385
+ export const UpdateEnvironmentRequestFilterSensitiveLog = (obj) => ({
386
+ ...obj,
387
+ });
388
+ export const UpdateExtensionRequestFilterSensitiveLog = (obj) => ({
389
+ ...obj,
390
+ });
391
+ export const UpdateExtensionAssociationRequestFilterSensitiveLog = (obj) => ({
392
+ ...obj,
393
+ });
394
+ export const ValidateConfigurationRequestFilterSensitiveLog = (obj) => ({
395
+ ...obj,
396
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { AppConfig } from "../AppConfig";
3
2
  import { AppConfigClient } from "../AppConfigClient";
4
3
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListApplicationsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listApplications.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listApplications(input, ...args);
32
9
  };
33
- export function paginateListApplications(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListApplications(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof AppConfig) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof AppConfigClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected AppConfig | AppConfigClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListApplications_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.NextToken = token;
49
- input["MaxResults"] = config.pageSize;
50
- if (!(config.client instanceof AppConfig)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof AppConfigClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected AppConfig | AppConfigClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.NextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }