@aws-sdk/client-license-manager-user-subscriptions 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +16 -10
- package/dist-es/LicenseManagerUserSubscriptions.js +42 -49
- package/dist-es/LicenseManagerUserSubscriptionsClient.js +22 -28
- package/dist-es/commands/AssociateUserCommand.js +21 -28
- package/dist-es/commands/DeregisterIdentityProviderCommand.js +21 -28
- package/dist-es/commands/DisassociateUserCommand.js +21 -28
- package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
- package/dist-es/commands/ListInstancesCommand.js +21 -28
- package/dist-es/commands/ListProductSubscriptionsCommand.js +21 -28
- package/dist-es/commands/ListUserAssociationsCommand.js +21 -28
- package/dist-es/commands/RegisterIdentityProviderCommand.js +21 -28
- package/dist-es/commands/StartProductSubscriptionCommand.js +21 -28
- package/dist-es/commands/StopProductSubscriptionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LicenseManagerUserSubscriptionsServiceException.js +5 -10
- package/dist-es/models/models_0.js +191 -123
- package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
- package/dist-es/pagination/ListInstancesPaginator.js +25 -68
- package/dist-es/pagination/ListProductSubscriptionsPaginator.js +25 -68
- package/dist-es/pagination/ListUserAssociationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +884 -1189
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,145 +1,213 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { LicenseManagerUserSubscriptionsServiceException as __BaseException } from "./LicenseManagerUserSubscriptionsServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
}(__BaseException));
|
|
14
|
-
export { AccessDeniedException };
|
|
13
|
+
}
|
|
15
14
|
export var IdentityProvider;
|
|
16
15
|
(function (IdentityProvider) {
|
|
17
|
-
IdentityProvider.visit =
|
|
16
|
+
IdentityProvider.visit = (value, visitor) => {
|
|
18
17
|
if (value.ActiveDirectoryIdentityProvider !== undefined)
|
|
19
18
|
return visitor.ActiveDirectoryIdentityProvider(value.ActiveDirectoryIdentityProvider);
|
|
20
19
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
21
20
|
};
|
|
22
21
|
})(IdentityProvider || (IdentityProvider = {}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
export class ConflictException extends __BaseException {
|
|
23
|
+
constructor(opts) {
|
|
24
|
+
super({
|
|
25
|
+
name: "ConflictException",
|
|
26
|
+
$fault: "server",
|
|
27
|
+
...opts,
|
|
28
|
+
});
|
|
29
|
+
this.name = "ConflictException";
|
|
30
|
+
this.$fault = "server";
|
|
31
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
}
|
|
34
|
+
export class InternalServerException extends __BaseException {
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "InternalServerException",
|
|
38
|
+
$fault: "server",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
this.name = "InternalServerException";
|
|
42
|
+
this.$fault = "server";
|
|
43
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
}
|
|
46
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "ResourceNotFoundException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
this.name = "ResourceNotFoundException";
|
|
54
|
+
this.$fault = "client";
|
|
55
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
}
|
|
58
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "ServiceQuotaExceededException",
|
|
62
|
+
$fault: "client",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "ServiceQuotaExceededException";
|
|
66
|
+
this.$fault = "client";
|
|
67
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
67
68
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
}
|
|
70
|
+
export class ThrottlingException extends __BaseException {
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "ThrottlingException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
this.name = "ThrottlingException";
|
|
78
|
+
this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
}
|
|
82
|
+
export class ValidationException extends __BaseException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "ValidationException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "ValidationException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
92
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
export
|
|
97
|
-
var _a;
|
|
93
|
+
}
|
|
94
|
+
export const ActiveDirectoryIdentityProviderFilterSensitiveLog = (obj) => ({
|
|
95
|
+
...obj,
|
|
96
|
+
});
|
|
97
|
+
export const IdentityProviderFilterSensitiveLog = (obj) => {
|
|
98
98
|
if (obj.ActiveDirectoryIdentityProvider !== undefined)
|
|
99
99
|
return {
|
|
100
100
|
ActiveDirectoryIdentityProvider: ActiveDirectoryIdentityProviderFilterSensitiveLog(obj.ActiveDirectoryIdentityProvider),
|
|
101
101
|
};
|
|
102
102
|
if (obj.$unknown !== undefined)
|
|
103
|
-
return
|
|
103
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
104
104
|
};
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
InstanceUserSummary: InstanceUserSummaryFilterSensitiveLog(obj.InstanceUserSummary),
|
|
118
|
-
}))); };
|
|
119
|
-
export var FilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
-
export var InstanceSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
121
|
-
export var ListIdentityProvidersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
-
export var ListIdentityProvidersResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.IdentityProviderSummaries && {
|
|
123
|
-
IdentityProviderSummaries: obj.IdentityProviderSummaries.map(function (item) {
|
|
124
|
-
return IdentityProviderSummaryFilterSensitiveLog(item);
|
|
105
|
+
export const AssociateUserRequestFilterSensitiveLog = (obj) => ({
|
|
106
|
+
...obj,
|
|
107
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
108
|
+
});
|
|
109
|
+
export const InstanceUserSummaryFilterSensitiveLog = (obj) => ({
|
|
110
|
+
...obj,
|
|
111
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
112
|
+
});
|
|
113
|
+
export const AssociateUserResponseFilterSensitiveLog = (obj) => ({
|
|
114
|
+
...obj,
|
|
115
|
+
...(obj.InstanceUserSummary && {
|
|
116
|
+
InstanceUserSummary: InstanceUserSummaryFilterSensitiveLog(obj.InstanceUserSummary),
|
|
125
117
|
}),
|
|
126
|
-
})
|
|
127
|
-
export
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
export
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
export
|
|
118
|
+
});
|
|
119
|
+
export const DeregisterIdentityProviderRequestFilterSensitiveLog = (obj) => ({
|
|
120
|
+
...obj,
|
|
121
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
122
|
+
});
|
|
123
|
+
export const IdentityProviderSummaryFilterSensitiveLog = (obj) => ({
|
|
124
|
+
...obj,
|
|
125
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
126
|
+
});
|
|
127
|
+
export const DeregisterIdentityProviderResponseFilterSensitiveLog = (obj) => ({
|
|
128
|
+
...obj,
|
|
129
|
+
...(obj.IdentityProviderSummary && {
|
|
130
|
+
IdentityProviderSummary: IdentityProviderSummaryFilterSensitiveLog(obj.IdentityProviderSummary),
|
|
131
|
+
}),
|
|
132
|
+
});
|
|
133
|
+
export const DisassociateUserRequestFilterSensitiveLog = (obj) => ({
|
|
134
|
+
...obj,
|
|
135
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
136
|
+
});
|
|
137
|
+
export const DisassociateUserResponseFilterSensitiveLog = (obj) => ({
|
|
138
|
+
...obj,
|
|
139
|
+
...(obj.InstanceUserSummary && {
|
|
140
|
+
InstanceUserSummary: InstanceUserSummaryFilterSensitiveLog(obj.InstanceUserSummary),
|
|
141
|
+
}),
|
|
142
|
+
});
|
|
143
|
+
export const FilterFilterSensitiveLog = (obj) => ({
|
|
144
|
+
...obj,
|
|
145
|
+
});
|
|
146
|
+
export const InstanceSummaryFilterSensitiveLog = (obj) => ({
|
|
147
|
+
...obj,
|
|
148
|
+
});
|
|
149
|
+
export const ListIdentityProvidersRequestFilterSensitiveLog = (obj) => ({
|
|
150
|
+
...obj,
|
|
151
|
+
});
|
|
152
|
+
export const ListIdentityProvidersResponseFilterSensitiveLog = (obj) => ({
|
|
153
|
+
...obj,
|
|
154
|
+
...(obj.IdentityProviderSummaries && {
|
|
155
|
+
IdentityProviderSummaries: obj.IdentityProviderSummaries.map((item) => IdentityProviderSummaryFilterSensitiveLog(item)),
|
|
156
|
+
}),
|
|
157
|
+
});
|
|
158
|
+
export const ListInstancesRequestFilterSensitiveLog = (obj) => ({
|
|
159
|
+
...obj,
|
|
160
|
+
});
|
|
161
|
+
export const ListInstancesResponseFilterSensitiveLog = (obj) => ({
|
|
162
|
+
...obj,
|
|
163
|
+
});
|
|
164
|
+
export const ListProductSubscriptionsRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
+
...obj,
|
|
166
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
167
|
+
});
|
|
168
|
+
export const ProductUserSummaryFilterSensitiveLog = (obj) => ({
|
|
169
|
+
...obj,
|
|
170
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
171
|
+
});
|
|
172
|
+
export const ListProductSubscriptionsResponseFilterSensitiveLog = (obj) => ({
|
|
173
|
+
...obj,
|
|
174
|
+
...(obj.ProductUserSummaries && {
|
|
175
|
+
ProductUserSummaries: obj.ProductUserSummaries.map((item) => ProductUserSummaryFilterSensitiveLog(item)),
|
|
176
|
+
}),
|
|
177
|
+
});
|
|
178
|
+
export const ListUserAssociationsRequestFilterSensitiveLog = (obj) => ({
|
|
179
|
+
...obj,
|
|
180
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
181
|
+
});
|
|
182
|
+
export const ListUserAssociationsResponseFilterSensitiveLog = (obj) => ({
|
|
183
|
+
...obj,
|
|
184
|
+
...(obj.InstanceUserSummaries && {
|
|
185
|
+
InstanceUserSummaries: obj.InstanceUserSummaries.map((item) => InstanceUserSummaryFilterSensitiveLog(item)),
|
|
186
|
+
}),
|
|
187
|
+
});
|
|
188
|
+
export const RegisterIdentityProviderRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
+
...obj,
|
|
190
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
191
|
+
});
|
|
192
|
+
export const RegisterIdentityProviderResponseFilterSensitiveLog = (obj) => ({
|
|
193
|
+
...obj,
|
|
194
|
+
...(obj.IdentityProviderSummary && {
|
|
195
|
+
IdentityProviderSummary: IdentityProviderSummaryFilterSensitiveLog(obj.IdentityProviderSummary),
|
|
196
|
+
}),
|
|
197
|
+
});
|
|
198
|
+
export const StartProductSubscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
199
|
+
...obj,
|
|
200
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
201
|
+
});
|
|
202
|
+
export const StartProductSubscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
203
|
+
...obj,
|
|
204
|
+
...(obj.ProductUserSummary && { ProductUserSummary: ProductUserSummaryFilterSensitiveLog(obj.ProductUserSummary) }),
|
|
205
|
+
});
|
|
206
|
+
export const StopProductSubscriptionRequestFilterSensitiveLog = (obj) => ({
|
|
207
|
+
...obj,
|
|
208
|
+
...(obj.IdentityProvider && { IdentityProvider: IdentityProviderFilterSensitiveLog(obj.IdentityProvider) }),
|
|
209
|
+
});
|
|
210
|
+
export const StopProductSubscriptionResponseFilterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
...(obj.ProductUserSummary && { ProductUserSummary: ProductUserSummaryFilterSensitiveLog(obj.ProductUserSummary) }),
|
|
213
|
+
});
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListIdentityProvidersCommand, } from "../commands/ListIdentityProvidersCommand";
|
|
3
2
|
import { LicenseManagerUserSubscriptions } from "../LicenseManagerUserSubscriptions";
|
|
4
3
|
import { LicenseManagerUserSubscriptionsClient } from "../LicenseManagerUserSubscriptionsClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListIdentityProvidersCommand(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 ListIdentityProvidersCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listIdentityProviders.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.listIdentityProviders(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListIdentityProviders(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListIdentityProviders(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 LicenseManagerUserSubscriptions) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof LicenseManagerUserSubscriptionsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected LicenseManagerUserSubscriptions | LicenseManagerUserSubscriptionsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
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 LicenseManagerUserSubscriptions)) 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 LicenseManagerUserSubscriptionsClient)) 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 LicenseManagerUserSubscriptions | LicenseManagerUserSubscriptionsClient");
|
|
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
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListInstancesCommand, } from "../commands/ListInstancesCommand";
|
|
3
2
|
import { LicenseManagerUserSubscriptions } from "../LicenseManagerUserSubscriptions";
|
|
4
3
|
import { LicenseManagerUserSubscriptionsClient } from "../LicenseManagerUserSubscriptionsClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListInstancesCommand(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 ListInstancesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listInstances.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.listInstances(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListInstances(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListInstances(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 LicenseManagerUserSubscriptions) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof LicenseManagerUserSubscriptionsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected LicenseManagerUserSubscriptions | LicenseManagerUserSubscriptionsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
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 LicenseManagerUserSubscriptions)) 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 LicenseManagerUserSubscriptionsClient)) 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 LicenseManagerUserSubscriptions | LicenseManagerUserSubscriptionsClient");
|
|
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
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListProductSubscriptionsCommand, } from "../commands/ListProductSubscriptionsCommand";
|
|
3
2
|
import { LicenseManagerUserSubscriptions } from "../LicenseManagerUserSubscriptions";
|
|
4
3
|
import { LicenseManagerUserSubscriptionsClient } from "../LicenseManagerUserSubscriptionsClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListProductSubscriptionsCommand(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 ListProductSubscriptionsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listProductSubscriptions.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.listProductSubscriptions(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListProductSubscriptions(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListProductSubscriptions(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 LicenseManagerUserSubscriptions) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof LicenseManagerUserSubscriptionsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected LicenseManagerUserSubscriptions | LicenseManagerUserSubscriptionsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
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 LicenseManagerUserSubscriptions)) 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 LicenseManagerUserSubscriptionsClient)) 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 LicenseManagerUserSubscriptions | LicenseManagerUserSubscriptionsClient");
|
|
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
|
}
|