@aws-sdk/client-eks 3.474.0 → 3.477.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/README.md +75 -3
- package/dist-cjs/EKS.js +18 -0
- package/dist-cjs/commands/AssociateAccessPolicyCommand.js +51 -0
- package/dist-cjs/commands/CreateAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/DeleteAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/DescribeAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/DisassociateAccessPolicyCommand.js +51 -0
- package/dist-cjs/commands/ListAccessEntriesCommand.js +51 -0
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +51 -0
- package/dist-cjs/commands/ListAssociatedAccessPoliciesCommand.js +51 -0
- package/dist-cjs/commands/UpdateAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +87 -76
- package/dist-cjs/pagination/ListAccessEntriesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +828 -554
- package/dist-es/EKS.js +18 -0
- package/dist-es/commands/AssociateAccessPolicyCommand.js +47 -0
- package/dist-es/commands/CreateAccessEntryCommand.js +47 -0
- package/dist-es/commands/DeleteAccessEntryCommand.js +47 -0
- package/dist-es/commands/DescribeAccessEntryCommand.js +47 -0
- package/dist-es/commands/DisassociateAccessPolicyCommand.js +47 -0
- package/dist-es/commands/ListAccessEntriesCommand.js +47 -0
- package/dist-es/commands/ListAccessPoliciesCommand.js +47 -0
- package/dist-es/commands/ListAssociatedAccessPoliciesCommand.js +47 -0
- package/dist-es/commands/UpdateAccessEntryCommand.js +47 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +81 -70
- package/dist-es/pagination/ListAccessEntriesPaginator.js +25 -0
- package/dist-es/pagination/ListAccessPoliciesPaginator.js +25 -0
- package/dist-es/pagination/ListAssociatedAccessPoliciesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +803 -548
- package/dist-types/EKS.d.ts +66 -3
- package/dist-types/EKSClient.d.ts +14 -5
- package/dist-types/commands/AssociateAccessPolicyCommand.d.ts +111 -0
- package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +8 -9
- package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +9 -10
- package/dist-types/commands/CreateAccessEntryCommand.d.ts +131 -0
- package/dist-types/commands/CreateAddonCommand.d.ts +2 -3
- package/dist-types/commands/CreateClusterCommand.d.ts +9 -1
- package/dist-types/commands/CreateFargateProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateNodegroupCommand.d.ts +8 -5
- package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +3 -4
- package/dist-types/commands/DeleteAccessEntryCommand.d.ts +87 -0
- package/dist-types/commands/DeleteAddonCommand.d.ts +5 -6
- package/dist-types/commands/DeleteClusterCommand.d.ts +10 -6
- package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +2 -3
- package/dist-types/commands/DeleteFargateProfileCommand.d.ts +8 -7
- package/dist-types/commands/DeleteNodegroupCommand.d.ts +3 -4
- package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +2 -3
- package/dist-types/commands/DeregisterClusterCommand.d.ts +8 -3
- package/dist-types/commands/DescribeAccessEntryCommand.d.ts +100 -0
- package/dist-types/commands/DescribeAddonCommand.d.ts +2 -3
- package/dist-types/commands/DescribeAddonConfigurationCommand.d.ts +2 -3
- package/dist-types/commands/DescribeAddonVersionsCommand.d.ts +6 -6
- package/dist-types/commands/DescribeClusterCommand.d.ts +10 -6
- package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +2 -3
- package/dist-types/commands/DescribeFargateProfileCommand.d.ts +3 -4
- package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +3 -4
- package/dist-types/commands/DescribeNodegroupCommand.d.ts +3 -4
- package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +2 -3
- package/dist-types/commands/DescribeUpdateCommand.d.ts +5 -7
- package/dist-types/commands/DisassociateAccessPolicyCommand.d.ts +85 -0
- package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +8 -9
- package/dist-types/commands/ListAccessEntriesCommand.d.ts +95 -0
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +83 -0
- package/dist-types/commands/ListAddonsCommand.d.ts +2 -3
- package/dist-types/commands/ListAssociatedAccessPoliciesCommand.d.ts +103 -0
- package/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/dist-types/commands/ListFargateProfilesCommand.d.ts +3 -4
- package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +3 -4
- package/dist-types/commands/ListNodegroupsCommand.d.ts +4 -6
- package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +2 -3
- package/dist-types/commands/ListUpdatesCommand.d.ts +3 -5
- package/dist-types/commands/RegisterClusterCommand.d.ts +8 -3
- package/dist-types/commands/TagResourceCommand.d.ts +6 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccessEntryCommand.d.ts +109 -0
- package/dist-types/commands/UpdateAddonCommand.d.ts +4 -5
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +9 -8
- package/dist-types/commands/UpdateClusterVersionCommand.d.ts +4 -5
- package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +2 -3
- package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +4 -5
- package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +8 -9
- package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +3 -4
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/index.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +1256 -556
- package/dist-types/pagination/ListAccessEntriesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/EKS.d.ts +153 -0
- package/dist-types/ts3.4/EKSClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/AssociateAccessPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DisassociateAccessPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAccessEntriesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAssociatedAccessPoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +189 -54
- package/dist-types/ts3.4/pagination/ListAccessEntriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +5 -4
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { EKSServiceException as __BaseException } from "./EKSServiceException";
|
|
2
|
+
export const AuthenticationMode = {
|
|
3
|
+
API: "API",
|
|
4
|
+
API_AND_CONFIG_MAP: "API_AND_CONFIG_MAP",
|
|
5
|
+
CONFIG_MAP: "CONFIG_MAP",
|
|
6
|
+
};
|
|
2
7
|
export class AccessDeniedException extends __BaseException {
|
|
3
8
|
constructor(opts) {
|
|
4
9
|
super({
|
|
@@ -11,6 +16,10 @@ export class AccessDeniedException extends __BaseException {
|
|
|
11
16
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
17
|
}
|
|
13
18
|
}
|
|
19
|
+
export const AccessScopeType = {
|
|
20
|
+
cluster: "cluster",
|
|
21
|
+
namespace: "namespace",
|
|
22
|
+
};
|
|
14
23
|
export const AddonIssueCode = {
|
|
15
24
|
ACCESS_DENIED: "AccessDenied",
|
|
16
25
|
ADMISSION_REQUEST_DENIED: "AdmissionRequestDenied",
|
|
@@ -45,6 +54,72 @@ export const AMITypes = {
|
|
|
45
54
|
WINDOWS_FULL_2019_x86_64: "WINDOWS_FULL_2019_x86_64",
|
|
46
55
|
WINDOWS_FULL_2022_x86_64: "WINDOWS_FULL_2022_x86_64",
|
|
47
56
|
};
|
|
57
|
+
export class InvalidParameterException extends __BaseException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "InvalidParameterException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "InvalidParameterException";
|
|
65
|
+
this.$fault = "client";
|
|
66
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
67
|
+
this.clusterName = opts.clusterName;
|
|
68
|
+
this.nodegroupName = opts.nodegroupName;
|
|
69
|
+
this.fargateProfileName = opts.fargateProfileName;
|
|
70
|
+
this.addonName = opts.addonName;
|
|
71
|
+
this.subscriptionId = opts.subscriptionId;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class InvalidRequestException extends __BaseException {
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "InvalidRequestException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
this.name = "InvalidRequestException";
|
|
82
|
+
this.$fault = "client";
|
|
83
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
84
|
+
this.clusterName = opts.clusterName;
|
|
85
|
+
this.nodegroupName = opts.nodegroupName;
|
|
86
|
+
this.addonName = opts.addonName;
|
|
87
|
+
this.subscriptionId = opts.subscriptionId;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
91
|
+
constructor(opts) {
|
|
92
|
+
super({
|
|
93
|
+
name: "ResourceNotFoundException",
|
|
94
|
+
$fault: "client",
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
this.name = "ResourceNotFoundException";
|
|
98
|
+
this.$fault = "client";
|
|
99
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
100
|
+
this.clusterName = opts.clusterName;
|
|
101
|
+
this.nodegroupName = opts.nodegroupName;
|
|
102
|
+
this.fargateProfileName = opts.fargateProfileName;
|
|
103
|
+
this.addonName = opts.addonName;
|
|
104
|
+
this.subscriptionId = opts.subscriptionId;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export class ServerException extends __BaseException {
|
|
108
|
+
constructor(opts) {
|
|
109
|
+
super({
|
|
110
|
+
name: "ServerException",
|
|
111
|
+
$fault: "server",
|
|
112
|
+
...opts,
|
|
113
|
+
});
|
|
114
|
+
this.name = "ServerException";
|
|
115
|
+
this.$fault = "server";
|
|
116
|
+
Object.setPrototypeOf(this, ServerException.prototype);
|
|
117
|
+
this.clusterName = opts.clusterName;
|
|
118
|
+
this.nodegroupName = opts.nodegroupName;
|
|
119
|
+
this.addonName = opts.addonName;
|
|
120
|
+
this.subscriptionId = opts.subscriptionId;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
48
123
|
export const ErrorCode = {
|
|
49
124
|
ACCESS_DENIED: "AccessDenied",
|
|
50
125
|
ADMISSION_REQUEST_DENIED: "AdmissionRequestDenied",
|
|
@@ -66,6 +141,7 @@ export const ErrorCode = {
|
|
|
66
141
|
};
|
|
67
142
|
export const UpdateParamType = {
|
|
68
143
|
ADDON_VERSION: "AddonVersion",
|
|
144
|
+
AUTHENTICATION_MODE: "AuthenticationMode",
|
|
69
145
|
CLUSTER_LOGGING: "ClusterLogging",
|
|
70
146
|
CONFIGURATION_VALUES: "ConfigurationValues",
|
|
71
147
|
DESIRED_SIZE: "DesiredSize",
|
|
@@ -99,6 +175,7 @@ export const UpdateStatus = {
|
|
|
99
175
|
SUCCESSFUL: "Successful",
|
|
100
176
|
};
|
|
101
177
|
export const UpdateType = {
|
|
178
|
+
ACCESS_CONFIG_UPDATE: "AccessConfigUpdate",
|
|
102
179
|
ADDON_UPDATE: "AddonUpdate",
|
|
103
180
|
ASSOCIATE_ENCRYPTION_CONFIG: "AssociateEncryptionConfig",
|
|
104
181
|
ASSOCIATE_IDENTITY_PROVIDER_CONFIG: "AssociateIdentityProviderConfig",
|
|
@@ -125,39 +202,6 @@ export class ClientException extends __BaseException {
|
|
|
125
202
|
this.subscriptionId = opts.subscriptionId;
|
|
126
203
|
}
|
|
127
204
|
}
|
|
128
|
-
export class InvalidParameterException extends __BaseException {
|
|
129
|
-
constructor(opts) {
|
|
130
|
-
super({
|
|
131
|
-
name: "InvalidParameterException",
|
|
132
|
-
$fault: "client",
|
|
133
|
-
...opts,
|
|
134
|
-
});
|
|
135
|
-
this.name = "InvalidParameterException";
|
|
136
|
-
this.$fault = "client";
|
|
137
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
138
|
-
this.clusterName = opts.clusterName;
|
|
139
|
-
this.nodegroupName = opts.nodegroupName;
|
|
140
|
-
this.fargateProfileName = opts.fargateProfileName;
|
|
141
|
-
this.addonName = opts.addonName;
|
|
142
|
-
this.subscriptionId = opts.subscriptionId;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
export class InvalidRequestException extends __BaseException {
|
|
146
|
-
constructor(opts) {
|
|
147
|
-
super({
|
|
148
|
-
name: "InvalidRequestException",
|
|
149
|
-
$fault: "client",
|
|
150
|
-
...opts,
|
|
151
|
-
});
|
|
152
|
-
this.name = "InvalidRequestException";
|
|
153
|
-
this.$fault = "client";
|
|
154
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
155
|
-
this.clusterName = opts.clusterName;
|
|
156
|
-
this.nodegroupName = opts.nodegroupName;
|
|
157
|
-
this.addonName = opts.addonName;
|
|
158
|
-
this.subscriptionId = opts.subscriptionId;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
205
|
export class ResourceInUseException extends __BaseException {
|
|
162
206
|
constructor(opts) {
|
|
163
207
|
super({
|
|
@@ -173,36 +217,18 @@ export class ResourceInUseException extends __BaseException {
|
|
|
173
217
|
this.addonName = opts.addonName;
|
|
174
218
|
}
|
|
175
219
|
}
|
|
176
|
-
export class
|
|
220
|
+
export class ResourceLimitExceededException extends __BaseException {
|
|
177
221
|
constructor(opts) {
|
|
178
222
|
super({
|
|
179
|
-
name: "
|
|
223
|
+
name: "ResourceLimitExceededException",
|
|
180
224
|
$fault: "client",
|
|
181
225
|
...opts,
|
|
182
226
|
});
|
|
183
|
-
this.name = "
|
|
227
|
+
this.name = "ResourceLimitExceededException";
|
|
184
228
|
this.$fault = "client";
|
|
185
|
-
Object.setPrototypeOf(this,
|
|
186
|
-
this.clusterName = opts.clusterName;
|
|
187
|
-
this.nodegroupName = opts.nodegroupName;
|
|
188
|
-
this.fargateProfileName = opts.fargateProfileName;
|
|
189
|
-
this.addonName = opts.addonName;
|
|
190
|
-
this.subscriptionId = opts.subscriptionId;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
export class ServerException extends __BaseException {
|
|
194
|
-
constructor(opts) {
|
|
195
|
-
super({
|
|
196
|
-
name: "ServerException",
|
|
197
|
-
$fault: "server",
|
|
198
|
-
...opts,
|
|
199
|
-
});
|
|
200
|
-
this.name = "ServerException";
|
|
201
|
-
this.$fault = "server";
|
|
202
|
-
Object.setPrototypeOf(this, ServerException.prototype);
|
|
229
|
+
Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
|
|
203
230
|
this.clusterName = opts.clusterName;
|
|
204
231
|
this.nodegroupName = opts.nodegroupName;
|
|
205
|
-
this.addonName = opts.addonName;
|
|
206
232
|
this.subscriptionId = opts.subscriptionId;
|
|
207
233
|
}
|
|
208
234
|
}
|
|
@@ -251,21 +277,6 @@ export const ClusterStatus = {
|
|
|
251
277
|
PENDING: "PENDING",
|
|
252
278
|
UPDATING: "UPDATING",
|
|
253
279
|
};
|
|
254
|
-
export class ResourceLimitExceededException extends __BaseException {
|
|
255
|
-
constructor(opts) {
|
|
256
|
-
super({
|
|
257
|
-
name: "ResourceLimitExceededException",
|
|
258
|
-
$fault: "client",
|
|
259
|
-
...opts,
|
|
260
|
-
});
|
|
261
|
-
this.name = "ResourceLimitExceededException";
|
|
262
|
-
this.$fault = "client";
|
|
263
|
-
Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
|
|
264
|
-
this.clusterName = opts.clusterName;
|
|
265
|
-
this.nodegroupName = opts.nodegroupName;
|
|
266
|
-
this.subscriptionId = opts.subscriptionId;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
280
|
export class ServiceUnavailableException extends __BaseException {
|
|
270
281
|
constructor(opts) {
|
|
271
282
|
super({
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAccessEntriesCommand, } from "../commands/ListAccessEntriesCommand";
|
|
2
|
+
import { EKSClient } from "../EKSClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAccessEntriesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAccessEntries(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 EKSClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected EKS | EKSClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAccessPoliciesCommand, } from "../commands/ListAccessPoliciesCommand";
|
|
2
|
+
import { EKSClient } from "../EKSClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAccessPoliciesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAccessPolicies(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 EKSClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected EKS | EKSClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAssociatedAccessPoliciesCommand, } from "../commands/ListAssociatedAccessPoliciesCommand";
|
|
2
|
+
import { EKSClient } from "../EKSClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAssociatedAccessPoliciesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAssociatedAccessPolicies(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 EKSClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected EKS | EKSClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./DescribeAddonVersionsPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListAccessEntriesPaginator";
|
|
4
|
+
export * from "./ListAccessPoliciesPaginator";
|
|
3
5
|
export * from "./ListAddonsPaginator";
|
|
6
|
+
export * from "./ListAssociatedAccessPoliciesPaginator";
|
|
4
7
|
export * from "./ListClustersPaginator";
|
|
5
8
|
export * from "./ListEksAnywhereSubscriptionsPaginator";
|
|
6
9
|
export * from "./ListFargateProfilesPaginator";
|