@aws-sdk/client-eks 3.489.0 → 3.495.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/dist-cjs/EKS.js +1 -123
- package/dist-cjs/EKSClient.js +1 -43
- package/dist-cjs/commands/AssociateAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/AssociateEncryptionConfigCommand.js +1 -28
- package/dist-cjs/commands/AssociateIdentityProviderConfigCommand.js +1 -28
- package/dist-cjs/commands/CreateAccessEntryCommand.js +1 -28
- package/dist-cjs/commands/CreateAddonCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterCommand.js +1 -28
- package/dist-cjs/commands/CreateEksAnywhereSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateFargateProfileCommand.js +1 -28
- package/dist-cjs/commands/CreateNodegroupCommand.js +1 -28
- package/dist-cjs/commands/CreatePodIdentityAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessEntryCommand.js +1 -28
- package/dist-cjs/commands/DeleteAddonCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteEksAnywhereSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteFargateProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteNodegroupCommand.js +1 -28
- package/dist-cjs/commands/DeletePodIdentityAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeregisterClusterCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccessEntryCommand.js +1 -28
- package/dist-cjs/commands/DescribeAddonCommand.js +1 -28
- package/dist-cjs/commands/DescribeAddonConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DescribeAddonVersionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterCommand.js +1 -28
- package/dist-cjs/commands/DescribeEksAnywhereSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DescribeFargateProfileCommand.js +1 -28
- package/dist-cjs/commands/DescribeIdentityProviderConfigCommand.js +1 -28
- package/dist-cjs/commands/DescribeInsightCommand.js +1 -28
- package/dist-cjs/commands/DescribeNodegroupCommand.js +1 -28
- package/dist-cjs/commands/DescribePodIdentityAssociationCommand.js +1 -28
- package/dist-cjs/commands/DescribeUpdateCommand.js +1 -28
- package/dist-cjs/commands/DisassociateAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/DisassociateIdentityProviderConfigCommand.js +1 -28
- package/dist-cjs/commands/ListAccessEntriesCommand.js +1 -28
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListAddonsCommand.js +1 -28
- package/dist-cjs/commands/ListAssociatedAccessPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListClustersCommand.js +1 -28
- package/dist-cjs/commands/ListEksAnywhereSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/ListFargateProfilesCommand.js +1 -28
- package/dist-cjs/commands/ListIdentityProviderConfigsCommand.js +1 -28
- package/dist-cjs/commands/ListInsightsCommand.js +1 -28
- package/dist-cjs/commands/ListNodegroupsCommand.js +1 -28
- package/dist-cjs/commands/ListPodIdentityAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListUpdatesCommand.js +1 -28
- package/dist-cjs/commands/RegisterClusterCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccessEntryCommand.js +1 -28
- package/dist-cjs/commands/UpdateAddonCommand.js +1 -28
- package/dist-cjs/commands/UpdateClusterConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateClusterVersionCommand.js +1 -28
- package/dist-cjs/commands/UpdateEksAnywhereSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/UpdateNodegroupConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateNodegroupVersionCommand.js +1 -28
- package/dist-cjs/commands/UpdatePodIdentityAssociationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -59
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6092 -12
- package/dist-cjs/models/EKSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -457
- package/dist-cjs/pagination/DescribeAddonVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessEntriesPaginator.js +1 -7
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListAddonsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListClustersPaginator.js +1 -7
- package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFargateProfilesPaginator.js +1 -7
- package/dist-cjs/pagination/ListIdentityProviderConfigsPaginator.js +1 -7
- package/dist-cjs/pagination/ListInsightsPaginator.js +1 -7
- package/dist-cjs/pagination/ListNodegroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListUpdatesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -17
- package/dist-cjs/protocols/Aws_restJson1.js +1 -3878
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -11
- package/dist-cjs/waiters/waitForAddonActive.js +1 -54
- package/dist-cjs/waiters/waitForAddonDeleted.js +1 -39
- package/dist-cjs/waiters/waitForClusterActive.js +1 -54
- package/dist-cjs/waiters/waitForClusterDeleted.js +1 -57
- package/dist-cjs/waiters/waitForFargateProfileActive.js +1 -45
- package/dist-cjs/waiters/waitForFargateProfileDeleted.js +1 -39
- package/dist-cjs/waiters/waitForNodegroupActive.js +1 -45
- package/dist-cjs/waiters/waitForNodegroupDeleted.js +1 -39
- package/package.json +41 -41
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./waitForAddonActive"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./waitForAddonDeleted"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./waitForClusterActive"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./waitForClusterDeleted"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./waitForFargateProfileActive"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./waitForFargateProfileDeleted"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./waitForNodegroupActive"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./waitForNodegroupDeleted"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,54 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilAddonActive = exports.waitForAddonActive = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeAddonCommand_1 = require("../commands/DescribeAddonCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeAddonCommand_1.DescribeAddonCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.addon.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.addon.status;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "DEGRADED") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
try {
|
|
30
|
-
const returnComparator = () => {
|
|
31
|
-
return result.addon.status;
|
|
32
|
-
};
|
|
33
|
-
if (returnComparator() === "ACTIVE") {
|
|
34
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) { }
|
|
38
|
-
}
|
|
39
|
-
catch (exception) {
|
|
40
|
-
reason = exception;
|
|
41
|
-
}
|
|
42
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
-
};
|
|
44
|
-
const waitForAddonActive = async (params, input) => {
|
|
45
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
46
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
-
};
|
|
48
|
-
exports.waitForAddonActive = waitForAddonActive;
|
|
49
|
-
const waitUntilAddonActive = async (params, input) => {
|
|
50
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
51
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
-
};
|
|
54
|
-
exports.waitUntilAddonActive = waitUntilAddonActive;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilAddonDeleted = exports.waitForAddonDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeAddonCommand_1 = require("../commands/DescribeAddonCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeAddonCommand_1.DescribeAddonCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.addon.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
}
|
|
21
|
-
catch (exception) {
|
|
22
|
-
reason = exception;
|
|
23
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
-
};
|
|
29
|
-
const waitForAddonDeleted = async (params, input) => {
|
|
30
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
31
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
-
};
|
|
33
|
-
exports.waitForAddonDeleted = waitForAddonDeleted;
|
|
34
|
-
const waitUntilAddonDeleted = async (params, input) => {
|
|
35
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
36
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
-
};
|
|
39
|
-
exports.waitUntilAddonDeleted = waitUntilAddonDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,54 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilClusterActive = exports.waitForClusterActive = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeClusterCommand_1 = require("../commands/DescribeClusterCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeClusterCommand_1.DescribeClusterCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.cluster.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETING") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.cluster.status;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "FAILED") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
try {
|
|
30
|
-
const returnComparator = () => {
|
|
31
|
-
return result.cluster.status;
|
|
32
|
-
};
|
|
33
|
-
if (returnComparator() === "ACTIVE") {
|
|
34
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) { }
|
|
38
|
-
}
|
|
39
|
-
catch (exception) {
|
|
40
|
-
reason = exception;
|
|
41
|
-
}
|
|
42
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
-
};
|
|
44
|
-
const waitForClusterActive = async (params, input) => {
|
|
45
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
46
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
-
};
|
|
48
|
-
exports.waitForClusterActive = waitForClusterActive;
|
|
49
|
-
const waitUntilClusterActive = async (params, input) => {
|
|
50
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
51
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
-
};
|
|
54
|
-
exports.waitUntilClusterActive = waitUntilClusterActive;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilClusterDeleted = exports.waitForClusterDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeClusterCommand_1 = require("../commands/DescribeClusterCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeClusterCommand_1.DescribeClusterCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.cluster.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "ACTIVE") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.cluster.status;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "CREATING") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
try {
|
|
30
|
-
const returnComparator = () => {
|
|
31
|
-
return result.cluster.status;
|
|
32
|
-
};
|
|
33
|
-
if (returnComparator() === "PENDING") {
|
|
34
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) { }
|
|
38
|
-
}
|
|
39
|
-
catch (exception) {
|
|
40
|
-
reason = exception;
|
|
41
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
42
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
46
|
-
};
|
|
47
|
-
const waitForClusterDeleted = async (params, input) => {
|
|
48
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
49
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
50
|
-
};
|
|
51
|
-
exports.waitForClusterDeleted = waitForClusterDeleted;
|
|
52
|
-
const waitUntilClusterDeleted = async (params, input) => {
|
|
53
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
54
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
55
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
56
|
-
};
|
|
57
|
-
exports.waitUntilClusterDeleted = waitUntilClusterDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilFargateProfileActive = exports.waitForFargateProfileActive = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeFargateProfileCommand_1 = require("../commands/DescribeFargateProfileCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeFargateProfileCommand_1.DescribeFargateProfileCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.fargateProfile.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.fargateProfile.status;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "ACTIVE") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
}
|
|
30
|
-
catch (exception) {
|
|
31
|
-
reason = exception;
|
|
32
|
-
}
|
|
33
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
|
-
};
|
|
35
|
-
const waitForFargateProfileActive = async (params, input) => {
|
|
36
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
37
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
-
};
|
|
39
|
-
exports.waitForFargateProfileActive = waitForFargateProfileActive;
|
|
40
|
-
const waitUntilFargateProfileActive = async (params, input) => {
|
|
41
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
42
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
43
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
44
|
-
};
|
|
45
|
-
exports.waitUntilFargateProfileActive = waitUntilFargateProfileActive;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilFargateProfileDeleted = exports.waitForFargateProfileDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeFargateProfileCommand_1 = require("../commands/DescribeFargateProfileCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeFargateProfileCommand_1.DescribeFargateProfileCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.fargateProfile.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
}
|
|
21
|
-
catch (exception) {
|
|
22
|
-
reason = exception;
|
|
23
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
-
};
|
|
29
|
-
const waitForFargateProfileDeleted = async (params, input) => {
|
|
30
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
31
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
-
};
|
|
33
|
-
exports.waitForFargateProfileDeleted = waitForFargateProfileDeleted;
|
|
34
|
-
const waitUntilFargateProfileDeleted = async (params, input) => {
|
|
35
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
36
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
-
};
|
|
39
|
-
exports.waitUntilFargateProfileDeleted = waitUntilFargateProfileDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilNodegroupActive = exports.waitForNodegroupActive = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeNodegroupCommand_1 = require("../commands/DescribeNodegroupCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeNodegroupCommand_1.DescribeNodegroupCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.nodegroup.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.nodegroup.status;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "ACTIVE") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
}
|
|
30
|
-
catch (exception) {
|
|
31
|
-
reason = exception;
|
|
32
|
-
}
|
|
33
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
|
-
};
|
|
35
|
-
const waitForNodegroupActive = async (params, input) => {
|
|
36
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
37
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
-
};
|
|
39
|
-
exports.waitForNodegroupActive = waitForNodegroupActive;
|
|
40
|
-
const waitUntilNodegroupActive = async (params, input) => {
|
|
41
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
42
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
43
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
44
|
-
};
|
|
45
|
-
exports.waitUntilNodegroupActive = waitUntilNodegroupActive;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilNodegroupDeleted = exports.waitForNodegroupDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeNodegroupCommand_1 = require("../commands/DescribeNodegroupCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeNodegroupCommand_1.DescribeNodegroupCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.nodegroup.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
}
|
|
21
|
-
catch (exception) {
|
|
22
|
-
reason = exception;
|
|
23
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
-
};
|
|
29
|
-
const waitForNodegroupDeleted = async (params, input) => {
|
|
30
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
31
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
-
};
|
|
33
|
-
exports.waitForNodegroupDeleted = waitForNodegroupDeleted;
|
|
34
|
-
const waitUntilNodegroupDeleted = async (params, input) => {
|
|
35
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
36
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
-
};
|
|
39
|
-
exports.waitUntilNodegroupDeleted = waitUntilNodegroupDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-eks",
|
|
3
3
|
"description": "AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-eks",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,49 +20,49 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
60
|
-
"@smithy/util-waiter": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
|
+
"@smithy/util-waiter": "^2.1.0",
|
|
61
61
|
"tslib": "^2.5.0",
|
|
62
62
|
"uuid": "^8.3.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
65
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
66
66
|
"@tsconfig/node14": "1.0.3",
|
|
67
67
|
"@types/node": "^14.14.31",
|
|
68
68
|
"@types/uuid": "^8.3.0",
|