@aws-sdk/client-eks 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/EKS.js +0 -13
- package/dist-cjs/EKSClient.js +0 -18
- package/dist-cjs/commands/AssociateEncryptionConfigCommand.js +0 -28
- package/dist-cjs/commands/AssociateIdentityProviderConfigCommand.js +0 -32
- package/dist-cjs/commands/CreateAddonCommand.js +0 -30
- package/dist-cjs/commands/CreateClusterCommand.js +0 -43
- package/dist-cjs/commands/CreateFargateProfileCommand.js +0 -48
- package/dist-cjs/commands/CreateNodegroupCommand.js +0 -34
- package/dist-cjs/commands/DeleteAddonCommand.js +0 -27
- package/dist-cjs/commands/DeleteClusterCommand.js +0 -32
- package/dist-cjs/commands/DeleteFargateProfileCommand.js +0 -32
- package/dist-cjs/commands/DeleteNodegroupCommand.js +0 -25
- package/dist-cjs/commands/DeregisterClusterCommand.js +0 -25
- package/dist-cjs/commands/DescribeAddonCommand.js +0 -25
- package/dist-cjs/commands/DescribeAddonVersionsCommand.js +0 -25
- package/dist-cjs/commands/DescribeClusterCommand.js +0 -33
- package/dist-cjs/commands/DescribeFargateProfileCommand.js +0 -25
- package/dist-cjs/commands/DescribeIdentityProviderConfigCommand.js +0 -25
- package/dist-cjs/commands/DescribeNodegroupCommand.js +0 -25
- package/dist-cjs/commands/DescribeUpdateCommand.js +0 -29
- package/dist-cjs/commands/DisassociateIdentityProviderConfigCommand.js +0 -28
- package/dist-cjs/commands/ListAddonsCommand.js +0 -25
- package/dist-cjs/commands/ListClustersCommand.js +0 -25
- package/dist-cjs/commands/ListFargateProfilesCommand.js +0 -26
- package/dist-cjs/commands/ListIdentityProviderConfigsCommand.js +0 -25
- package/dist-cjs/commands/ListNodegroupsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/ListUpdatesCommand.js +0 -26
- package/dist-cjs/commands/RegisterClusterCommand.js +0 -34
- package/dist-cjs/commands/TagResourceCommand.js +0 -31
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateAddonCommand.js +0 -25
- package/dist-cjs/commands/UpdateClusterConfigCommand.js +0 -51
- package/dist-cjs/commands/UpdateClusterVersionCommand.js +0 -35
- package/dist-cjs/commands/UpdateNodegroupConfigCommand.js +0 -29
- package/dist-cjs/commands/UpdateNodegroupVersionCommand.js +0 -42
- package/dist-cjs/commands/index.js +37 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -53
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -361
- package/dist-cjs/pagination/DescribeAddonVersionsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAddonsPaginator.js +0 -11
- package/dist-cjs/pagination/ListClustersPaginator.js +0 -11
- package/dist-cjs/pagination/ListFargateProfilesPaginator.js +0 -11
- package/dist-cjs/pagination/ListIdentityProviderConfigsPaginator.js +0 -11
- package/dist-cjs/pagination/ListNodegroupsPaginator.js +0 -11
- package/dist-cjs/pagination/ListUpdatesPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +11 -0
- package/dist-cjs/waiters/waitForAddonActive.js +0 -10
- package/dist-cjs/waiters/waitForAddonDeleted.js +0 -10
- package/dist-cjs/waiters/waitForClusterActive.js +0 -10
- package/dist-cjs/waiters/waitForClusterDeleted.js +0 -10
- package/dist-cjs/waiters/waitForFargateProfileActive.js +0 -10
- package/dist-cjs/waiters/waitForFargateProfileDeleted.js +0 -10
- package/dist-cjs/waiters/waitForNodegroupActive.js +0 -10
- package/dist-cjs/waiters/waitForNodegroupDeleted.js +0 -10
- package/dist-es/EKS.js +0 -1
- package/dist-es/EKSClient.js +0 -1
- package/dist-es/commands/AssociateEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/AssociateIdentityProviderConfigCommand.js +0 -1
- package/dist-es/commands/CreateAddonCommand.js +0 -1
- package/dist-es/commands/CreateClusterCommand.js +0 -1
- package/dist-es/commands/CreateFargateProfileCommand.js +0 -1
- package/dist-es/commands/CreateNodegroupCommand.js +0 -1
- package/dist-es/commands/DeleteAddonCommand.js +0 -1
- package/dist-es/commands/DeleteClusterCommand.js +0 -1
- package/dist-es/commands/DeleteFargateProfileCommand.js +0 -1
- package/dist-es/commands/DeleteNodegroupCommand.js +0 -1
- package/dist-es/commands/DeregisterClusterCommand.js +0 -1
- package/dist-es/commands/DescribeAddonCommand.js +0 -1
- package/dist-es/commands/DescribeAddonVersionsCommand.js +0 -1
- package/dist-es/commands/DescribeClusterCommand.js +0 -1
- package/dist-es/commands/DescribeFargateProfileCommand.js +0 -1
- package/dist-es/commands/DescribeIdentityProviderConfigCommand.js +0 -1
- package/dist-es/commands/DescribeNodegroupCommand.js +0 -1
- package/dist-es/commands/DescribeUpdateCommand.js +0 -1
- package/dist-es/commands/DisassociateIdentityProviderConfigCommand.js +0 -1
- package/dist-es/commands/ListAddonsCommand.js +0 -1
- package/dist-es/commands/ListClustersCommand.js +0 -1
- package/dist-es/commands/ListFargateProfilesCommand.js +0 -1
- package/dist-es/commands/ListIdentityProviderConfigsCommand.js +0 -1
- package/dist-es/commands/ListNodegroupsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListUpdatesCommand.js +0 -1
- package/dist-es/commands/RegisterClusterCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateAddonCommand.js +0 -1
- package/dist-es/commands/UpdateClusterConfigCommand.js +0 -1
- package/dist-es/commands/UpdateClusterVersionCommand.js +0 -1
- package/dist-es/commands/UpdateNodegroupConfigCommand.js +0 -1
- package/dist-es/commands/UpdateNodegroupVersionCommand.js +0 -1
- package/dist-es/commands/index.js +34 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -53
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeAddonVersionsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAddonsPaginator.js +0 -1
- package/dist-es/pagination/ListClustersPaginator.js +0 -1
- package/dist-es/pagination/ListFargateProfilesPaginator.js +0 -1
- package/dist-es/pagination/ListIdentityProviderConfigsPaginator.js +0 -1
- package/dist-es/pagination/ListNodegroupsPaginator.js +0 -1
- package/dist-es/pagination/ListUpdatesPaginator.js +0 -1
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +8 -0
- package/dist-es/waiters/waitForAddonActive.js +0 -1
- package/dist-es/waiters/waitForAddonDeleted.js +0 -1
- package/dist-es/waiters/waitForClusterActive.js +0 -1
- package/dist-es/waiters/waitForClusterDeleted.js +0 -1
- package/dist-es/waiters/waitForFargateProfileActive.js +0 -1
- package/dist-es/waiters/waitForFargateProfileDeleted.js +0 -1
- package/dist-es/waiters/waitForNodegroupActive.js +0 -1
- package/dist-es/waiters/waitForNodegroupDeleted.js +0 -1
- package/dist-types/commands/index.d.ts +34 -0
- package/dist-types/index.d.ts +5 -52
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/EKS.d.ts +35 -285
- package/dist-types/ts3.4/EKSClient.d.ts +24 -98
- package/dist-types/ts3.4/commands/AssociateEncryptionConfigCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/AssociateIdentityProviderConfigCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/CreateAddonCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/CreateFargateProfileCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/CreateNodegroupCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DeleteAddonCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DeleteFargateProfileCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DeleteNodegroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeregisterClusterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAddonCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAddonVersionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeFargateProfileCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeIdentityProviderConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeNodegroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeUpdateCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DisassociateIdentityProviderConfigCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListAddonsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFargateProfilesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListIdentityProviderConfigsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListNodegroupsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListUpdatesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/RegisterClusterCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateAddonCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateClusterConfigCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/UpdateClusterVersionCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/UpdateNodegroupConfigCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateNodegroupVersionCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/index.d.ts +34 -0
- package/dist-types/ts3.4/index.d.ts +5 -52
- package/dist-types/ts3.4/models/models_0.d.ts +525 -2214
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +8 -0
- package/dist-types/ts3.4/waiters/waitForAddonActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForAddonDeleted.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForClusterActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForClusterDeleted.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForFargateProfileActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForFargateProfileDeleted.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForNodegroupActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForNodegroupDeleted.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +8 -0
- package/package.json +34 -31
- package/dist-cjs/EKS.js.map +0 -1
- package/dist-cjs/EKSClient.js.map +0 -1
- package/dist-cjs/commands/AssociateEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/AssociateIdentityProviderConfigCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAddonCommand.js.map +0 -1
- package/dist-cjs/commands/CreateClusterCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFargateProfileCommand.js.map +0 -1
- package/dist-cjs/commands/CreateNodegroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAddonCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteClusterCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFargateProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteNodegroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeregisterClusterCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAddonCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAddonVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeClusterCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFargateProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeIdentityProviderConfigCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeNodegroupCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeUpdateCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateIdentityProviderConfigCommand.js.map +0 -1
- package/dist-cjs/commands/ListAddonsCommand.js.map +0 -1
- package/dist-cjs/commands/ListClustersCommand.js.map +0 -1
- package/dist-cjs/commands/ListFargateProfilesCommand.js.map +0 -1
- package/dist-cjs/commands/ListIdentityProviderConfigsCommand.js.map +0 -1
- package/dist-cjs/commands/ListNodegroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListUpdatesCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterClusterCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateAddonCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateClusterConfigCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateClusterVersionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateNodegroupConfigCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateNodegroupVersionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeAddonVersionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAddonsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListClustersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListFargateProfilesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListIdentityProviderConfigsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListNodegroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListUpdatesPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForAddonActive.js.map +0 -1
- package/dist-cjs/waiters/waitForAddonDeleted.js.map +0 -1
- package/dist-cjs/waiters/waitForClusterActive.js.map +0 -1
- package/dist-cjs/waiters/waitForClusterDeleted.js.map +0 -1
- package/dist-cjs/waiters/waitForFargateProfileActive.js.map +0 -1
- package/dist-cjs/waiters/waitForFargateProfileDeleted.js.map +0 -1
- package/dist-cjs/waiters/waitForNodegroupActive.js.map +0 -1
- package/dist-cjs/waiters/waitForNodegroupDeleted.js.map +0 -1
- package/dist-es/EKS.js.map +0 -1
- package/dist-es/EKSClient.js.map +0 -1
- package/dist-es/commands/AssociateEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/AssociateIdentityProviderConfigCommand.js.map +0 -1
- package/dist-es/commands/CreateAddonCommand.js.map +0 -1
- package/dist-es/commands/CreateClusterCommand.js.map +0 -1
- package/dist-es/commands/CreateFargateProfileCommand.js.map +0 -1
- package/dist-es/commands/CreateNodegroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteAddonCommand.js.map +0 -1
- package/dist-es/commands/DeleteClusterCommand.js.map +0 -1
- package/dist-es/commands/DeleteFargateProfileCommand.js.map +0 -1
- package/dist-es/commands/DeleteNodegroupCommand.js.map +0 -1
- package/dist-es/commands/DeregisterClusterCommand.js.map +0 -1
- package/dist-es/commands/DescribeAddonCommand.js.map +0 -1
- package/dist-es/commands/DescribeAddonVersionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeClusterCommand.js.map +0 -1
- package/dist-es/commands/DescribeFargateProfileCommand.js.map +0 -1
- package/dist-es/commands/DescribeIdentityProviderConfigCommand.js.map +0 -1
- package/dist-es/commands/DescribeNodegroupCommand.js.map +0 -1
- package/dist-es/commands/DescribeUpdateCommand.js.map +0 -1
- package/dist-es/commands/DisassociateIdentityProviderConfigCommand.js.map +0 -1
- package/dist-es/commands/ListAddonsCommand.js.map +0 -1
- package/dist-es/commands/ListClustersCommand.js.map +0 -1
- package/dist-es/commands/ListFargateProfilesCommand.js.map +0 -1
- package/dist-es/commands/ListIdentityProviderConfigsCommand.js.map +0 -1
- package/dist-es/commands/ListNodegroupsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListUpdatesCommand.js.map +0 -1
- package/dist-es/commands/RegisterClusterCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateAddonCommand.js.map +0 -1
- package/dist-es/commands/UpdateClusterConfigCommand.js.map +0 -1
- package/dist-es/commands/UpdateClusterVersionCommand.js.map +0 -1
- package/dist-es/commands/UpdateNodegroupConfigCommand.js.map +0 -1
- package/dist-es/commands/UpdateNodegroupVersionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeAddonVersionsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAddonsPaginator.js.map +0 -1
- package/dist-es/pagination/ListClustersPaginator.js.map +0 -1
- package/dist-es/pagination/ListFargateProfilesPaginator.js.map +0 -1
- package/dist-es/pagination/ListIdentityProviderConfigsPaginator.js.map +0 -1
- package/dist-es/pagination/ListNodegroupsPaginator.js.map +0 -1
- package/dist-es/pagination/ListUpdatesPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForAddonActive.js.map +0 -1
- package/dist-es/waiters/waitForAddonDeleted.js.map +0 -1
- package/dist-es/waiters/waitForClusterActive.js.map +0 -1
- package/dist-es/waiters/waitForClusterDeleted.js.map +0 -1
- package/dist-es/waiters/waitForFargateProfileActive.js.map +0 -1
- package/dist-es/waiters/waitForFargateProfileDeleted.js.map +0 -1
- package/dist-es/waiters/waitForNodegroupActive.js.map +0 -1
- package/dist-es/waiters/waitForNodegroupDeleted.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/EKS.ts +0 -1383
- package/src/EKSClient.ts +0 -392
- package/src/commands/AssociateEncryptionConfigCommand.ts +0 -101
- package/src/commands/AssociateIdentityProviderConfigCommand.ts +0 -110
- package/src/commands/CreateAddonCommand.ts +0 -100
- package/src/commands/CreateClusterCommand.ts +0 -113
- package/src/commands/CreateFargateProfileCommand.ts +0 -118
- package/src/commands/CreateNodegroupCommand.ts +0 -104
- package/src/commands/DeleteAddonCommand.ts +0 -97
- package/src/commands/DeleteClusterCommand.ts +0 -102
- package/src/commands/DeleteFargateProfileCommand.ts +0 -102
- package/src/commands/DeleteNodegroupCommand.ts +0 -95
- package/src/commands/DeregisterClusterCommand.ts +0 -95
- package/src/commands/DescribeAddonCommand.ts +0 -95
- package/src/commands/DescribeAddonVersionsCommand.ts +0 -95
- package/src/commands/DescribeClusterCommand.ts +0 -103
- package/src/commands/DescribeFargateProfileCommand.ts +0 -95
- package/src/commands/DescribeIdentityProviderConfigCommand.ts +0 -103
- package/src/commands/DescribeNodegroupCommand.ts +0 -95
- package/src/commands/DescribeUpdateCommand.ts +0 -99
- package/src/commands/DisassociateIdentityProviderConfigCommand.ts +0 -109
- package/src/commands/ListAddonsCommand.ts +0 -95
- package/src/commands/ListClustersCommand.ts +0 -95
- package/src/commands/ListFargateProfilesCommand.ts +0 -96
- package/src/commands/ListIdentityProviderConfigsCommand.ts +0 -100
- package/src/commands/ListNodegroupsCommand.ts +0 -96
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListUpdatesCommand.ts +0 -96
- package/src/commands/RegisterClusterCommand.ts +0 -104
- package/src/commands/TagResourceCommand.ts +0 -101
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateAddonCommand.ts +0 -95
- package/src/commands/UpdateClusterConfigCommand.ts +0 -121
- package/src/commands/UpdateClusterVersionCommand.ts +0 -105
- package/src/commands/UpdateNodegroupConfigCommand.ts +0 -99
- package/src/commands/UpdateNodegroupVersionCommand.ts +0 -112
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -53
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -4086
- package/src/pagination/DescribeAddonVersionsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAddonsPaginator.ts +0 -55
- package/src/pagination/ListClustersPaginator.ts +0 -59
- package/src/pagination/ListFargateProfilesPaginator.ts +0 -59
- package/src/pagination/ListIdentityProviderConfigsPaginator.ts +0 -59
- package/src/pagination/ListNodegroupsPaginator.ts +0 -59
- package/src/pagination/ListUpdatesPaginator.ts +0 -55
- package/src/protocols/Aws_restJson1.ts +0 -5805
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForAddonActive.ts +0 -63
- package/src/waiters/waitForAddonDeleted.ts +0 -50
- package/src/waiters/waitForClusterActive.ts +0 -63
- package/src/waiters/waitForClusterDeleted.ts +0 -66
- package/src/waiters/waitForFargateProfileActive.ts +0 -58
- package/src/waiters/waitForFargateProfileDeleted.ts +0 -53
- package/src/waiters/waitForNodegroupActive.ts +0 -55
- package/src/waiters/waitForNodegroupDeleted.ts +0 -50
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
2
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
3
|
-
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
4
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
5
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
6
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
8
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
9
|
-
|
|
10
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
11
|
-
import packageInfo from "../package.json";
|
|
12
|
-
import { EKSClientConfig } from "./EKSClient";
|
|
13
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export const getRuntimeConfig = (config: EKSClientConfig) => {
|
|
19
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return {
|
|
21
|
-
...clientSharedValues,
|
|
22
|
-
...config,
|
|
23
|
-
runtime: "browser",
|
|
24
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
25
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
26
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
-
credentialDefaultProvider:
|
|
28
|
-
config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
|
|
29
|
-
defaultUserAgentProvider:
|
|
30
|
-
config?.defaultUserAgentProvider ??
|
|
31
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
33
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
34
|
-
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
|
|
35
|
-
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
|
|
36
|
-
sha256: config?.sha256 ?? Sha256,
|
|
37
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
|
|
3
|
-
import { EKSClientConfig } from "./EKSClient";
|
|
4
|
-
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export const getRuntimeConfig = (config: EKSClientConfig) => {
|
|
10
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
11
|
-
return {
|
|
12
|
-
...browserDefaults,
|
|
13
|
-
...config,
|
|
14
|
-
runtime: "react-native",
|
|
15
|
-
sha256: config?.sha256 ?? Sha256,
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
-
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
-
|
|
4
|
-
import { EKSClientConfig } from "./EKSClient";
|
|
5
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export const getRuntimeConfig = (config: EKSClientConfig) => ({
|
|
11
|
-
apiVersion: "2017-11-01",
|
|
12
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
-
logger: config?.logger ?? ({} as __Logger),
|
|
14
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
15
|
-
serviceId: config?.serviceId ?? "EKS",
|
|
16
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
-
});
|
package/src/runtimeConfig.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
2
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
3
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import { Hash } from "@aws-sdk/hash-node";
|
|
5
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
6
|
-
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
7
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
8
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
13
|
-
|
|
14
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
15
|
-
import packageInfo from "../package.json";
|
|
16
|
-
import { EKSClientConfig } from "./EKSClient";
|
|
17
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export const getRuntimeConfig = (config: EKSClientConfig) => {
|
|
23
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
24
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
25
|
-
return {
|
|
26
|
-
...clientSharedValues,
|
|
27
|
-
...config,
|
|
28
|
-
runtime: "node",
|
|
29
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
30
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
|
-
credentialDefaultProvider:
|
|
33
|
-
config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
34
|
-
defaultUserAgentProvider:
|
|
35
|
-
config?.defaultUserAgentProvider ??
|
|
36
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
37
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
-
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
|
|
40
|
-
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
41
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
44
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeAddonCommand, DescribeAddonCommandInput } from "../commands/DescribeAddonCommand";
|
|
4
|
-
import { EKSClient } from "../EKSClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: EKSClient, input: DescribeAddonCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new DescribeAddonCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.addon.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
16
|
-
return { state: WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
try {
|
|
20
|
-
const returnComparator = () => {
|
|
21
|
-
return result.addon.status;
|
|
22
|
-
};
|
|
23
|
-
if (returnComparator() === "DEGRADED") {
|
|
24
|
-
return { state: WaiterState.FAILURE, reason };
|
|
25
|
-
}
|
|
26
|
-
} catch (e) {}
|
|
27
|
-
try {
|
|
28
|
-
const returnComparator = () => {
|
|
29
|
-
return result.addon.status;
|
|
30
|
-
};
|
|
31
|
-
if (returnComparator() === "ACTIVE") {
|
|
32
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
33
|
-
}
|
|
34
|
-
} catch (e) {}
|
|
35
|
-
} catch (exception) {
|
|
36
|
-
reason = exception;
|
|
37
|
-
}
|
|
38
|
-
return { state: WaiterState.RETRY, reason };
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use waitUntilAddonActive instead. waitForAddonActive does not throw error in non-success cases.
|
|
43
|
-
*/
|
|
44
|
-
export const waitForAddonActive = async (
|
|
45
|
-
params: WaiterConfiguration<EKSClient>,
|
|
46
|
-
input: DescribeAddonCommandInput
|
|
47
|
-
): Promise<WaiterResult> => {
|
|
48
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
49
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @param params - Waiter configuration options.
|
|
54
|
-
* @param input - The input to DescribeAddonCommand for polling.
|
|
55
|
-
*/
|
|
56
|
-
export const waitUntilAddonActive = async (
|
|
57
|
-
params: WaiterConfiguration<EKSClient>,
|
|
58
|
-
input: DescribeAddonCommandInput
|
|
59
|
-
): Promise<WaiterResult> => {
|
|
60
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
61
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
62
|
-
return checkExceptions(result);
|
|
63
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeAddonCommand, DescribeAddonCommandInput } from "../commands/DescribeAddonCommand";
|
|
4
|
-
import { EKSClient } from "../EKSClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: EKSClient, input: DescribeAddonCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new DescribeAddonCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.addon.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
16
|
-
return { state: WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
} catch (exception) {
|
|
20
|
-
reason = exception;
|
|
21
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
22
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return { state: WaiterState.RETRY, reason };
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @deprecated Use waitUntilAddonDeleted instead. waitForAddonDeleted does not throw error in non-success cases.
|
|
30
|
-
*/
|
|
31
|
-
export const waitForAddonDeleted = async (
|
|
32
|
-
params: WaiterConfiguration<EKSClient>,
|
|
33
|
-
input: DescribeAddonCommandInput
|
|
34
|
-
): Promise<WaiterResult> => {
|
|
35
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
36
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @param params - Waiter configuration options.
|
|
41
|
-
* @param input - The input to DescribeAddonCommand for polling.
|
|
42
|
-
*/
|
|
43
|
-
export const waitUntilAddonDeleted = async (
|
|
44
|
-
params: WaiterConfiguration<EKSClient>,
|
|
45
|
-
input: DescribeAddonCommandInput
|
|
46
|
-
): Promise<WaiterResult> => {
|
|
47
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
48
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
49
|
-
return checkExceptions(result);
|
|
50
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeClusterCommand, DescribeClusterCommandInput } from "../commands/DescribeClusterCommand";
|
|
4
|
-
import { EKSClient } from "../EKSClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: EKSClient, input: DescribeClusterCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new DescribeClusterCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.cluster.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETING") {
|
|
16
|
-
return { state: WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
try {
|
|
20
|
-
const returnComparator = () => {
|
|
21
|
-
return result.cluster.status;
|
|
22
|
-
};
|
|
23
|
-
if (returnComparator() === "FAILED") {
|
|
24
|
-
return { state: WaiterState.FAILURE, reason };
|
|
25
|
-
}
|
|
26
|
-
} catch (e) {}
|
|
27
|
-
try {
|
|
28
|
-
const returnComparator = () => {
|
|
29
|
-
return result.cluster.status;
|
|
30
|
-
};
|
|
31
|
-
if (returnComparator() === "ACTIVE") {
|
|
32
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
33
|
-
}
|
|
34
|
-
} catch (e) {}
|
|
35
|
-
} catch (exception) {
|
|
36
|
-
reason = exception;
|
|
37
|
-
}
|
|
38
|
-
return { state: WaiterState.RETRY, reason };
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @deprecated Use waitUntilClusterActive instead. waitForClusterActive does not throw error in non-success cases.
|
|
43
|
-
*/
|
|
44
|
-
export const waitForClusterActive = async (
|
|
45
|
-
params: WaiterConfiguration<EKSClient>,
|
|
46
|
-
input: DescribeClusterCommandInput
|
|
47
|
-
): Promise<WaiterResult> => {
|
|
48
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
49
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @param params - Waiter configuration options.
|
|
54
|
-
* @param input - The input to DescribeClusterCommand for polling.
|
|
55
|
-
*/
|
|
56
|
-
export const waitUntilClusterActive = async (
|
|
57
|
-
params: WaiterConfiguration<EKSClient>,
|
|
58
|
-
input: DescribeClusterCommandInput
|
|
59
|
-
): Promise<WaiterResult> => {
|
|
60
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
61
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
62
|
-
return checkExceptions(result);
|
|
63
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeClusterCommand, DescribeClusterCommandInput } from "../commands/DescribeClusterCommand";
|
|
4
|
-
import { EKSClient } from "../EKSClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: EKSClient, input: DescribeClusterCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new DescribeClusterCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.cluster.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "ACTIVE") {
|
|
16
|
-
return { state: WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
try {
|
|
20
|
-
const returnComparator = () => {
|
|
21
|
-
return result.cluster.status;
|
|
22
|
-
};
|
|
23
|
-
if (returnComparator() === "CREATING") {
|
|
24
|
-
return { state: WaiterState.FAILURE, reason };
|
|
25
|
-
}
|
|
26
|
-
} catch (e) {}
|
|
27
|
-
try {
|
|
28
|
-
const returnComparator = () => {
|
|
29
|
-
return result.cluster.status;
|
|
30
|
-
};
|
|
31
|
-
if (returnComparator() === "PENDING") {
|
|
32
|
-
return { state: WaiterState.FAILURE, reason };
|
|
33
|
-
}
|
|
34
|
-
} catch (e) {}
|
|
35
|
-
} catch (exception) {
|
|
36
|
-
reason = exception;
|
|
37
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
38
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return { state: WaiterState.RETRY, reason };
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @deprecated Use waitUntilClusterDeleted instead. waitForClusterDeleted does not throw error in non-success cases.
|
|
46
|
-
*/
|
|
47
|
-
export const waitForClusterDeleted = async (
|
|
48
|
-
params: WaiterConfiguration<EKSClient>,
|
|
49
|
-
input: DescribeClusterCommandInput
|
|
50
|
-
): Promise<WaiterResult> => {
|
|
51
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
52
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @param params - Waiter configuration options.
|
|
57
|
-
* @param input - The input to DescribeClusterCommand for polling.
|
|
58
|
-
*/
|
|
59
|
-
export const waitUntilClusterDeleted = async (
|
|
60
|
-
params: WaiterConfiguration<EKSClient>,
|
|
61
|
-
input: DescribeClusterCommandInput
|
|
62
|
-
): Promise<WaiterResult> => {
|
|
63
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
64
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
65
|
-
return checkExceptions(result);
|
|
66
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeFargateProfileCommand,
|
|
5
|
-
DescribeFargateProfileCommandInput,
|
|
6
|
-
} from "../commands/DescribeFargateProfileCommand";
|
|
7
|
-
import { EKSClient } from "../EKSClient";
|
|
8
|
-
|
|
9
|
-
const checkState = async (client: EKSClient, input: DescribeFargateProfileCommandInput): Promise<WaiterResult> => {
|
|
10
|
-
let reason;
|
|
11
|
-
try {
|
|
12
|
-
const result: any = await client.send(new DescribeFargateProfileCommand(input));
|
|
13
|
-
reason = result;
|
|
14
|
-
try {
|
|
15
|
-
const returnComparator = () => {
|
|
16
|
-
return result.fargateProfile.status;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
19
|
-
return { state: WaiterState.FAILURE, reason };
|
|
20
|
-
}
|
|
21
|
-
} catch (e) {}
|
|
22
|
-
try {
|
|
23
|
-
const returnComparator = () => {
|
|
24
|
-
return result.fargateProfile.status;
|
|
25
|
-
};
|
|
26
|
-
if (returnComparator() === "ACTIVE") {
|
|
27
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
28
|
-
}
|
|
29
|
-
} catch (e) {}
|
|
30
|
-
} catch (exception) {
|
|
31
|
-
reason = exception;
|
|
32
|
-
}
|
|
33
|
-
return { state: WaiterState.RETRY, reason };
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @deprecated Use waitUntilFargateProfileActive instead. waitForFargateProfileActive does not throw error in non-success cases.
|
|
38
|
-
*/
|
|
39
|
-
export const waitForFargateProfileActive = async (
|
|
40
|
-
params: WaiterConfiguration<EKSClient>,
|
|
41
|
-
input: DescribeFargateProfileCommandInput
|
|
42
|
-
): Promise<WaiterResult> => {
|
|
43
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
44
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @param params - Waiter configuration options.
|
|
49
|
-
* @param input - The input to DescribeFargateProfileCommand for polling.
|
|
50
|
-
*/
|
|
51
|
-
export const waitUntilFargateProfileActive = async (
|
|
52
|
-
params: WaiterConfiguration<EKSClient>,
|
|
53
|
-
input: DescribeFargateProfileCommandInput
|
|
54
|
-
): Promise<WaiterResult> => {
|
|
55
|
-
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
56
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
-
return checkExceptions(result);
|
|
58
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeFargateProfileCommand,
|
|
5
|
-
DescribeFargateProfileCommandInput,
|
|
6
|
-
} from "../commands/DescribeFargateProfileCommand";
|
|
7
|
-
import { EKSClient } from "../EKSClient";
|
|
8
|
-
|
|
9
|
-
const checkState = async (client: EKSClient, input: DescribeFargateProfileCommandInput): Promise<WaiterResult> => {
|
|
10
|
-
let reason;
|
|
11
|
-
try {
|
|
12
|
-
const result: any = await client.send(new DescribeFargateProfileCommand(input));
|
|
13
|
-
reason = result;
|
|
14
|
-
try {
|
|
15
|
-
const returnComparator = () => {
|
|
16
|
-
return result.fargateProfile.status;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
19
|
-
return { state: WaiterState.FAILURE, reason };
|
|
20
|
-
}
|
|
21
|
-
} catch (e) {}
|
|
22
|
-
} catch (exception) {
|
|
23
|
-
reason = exception;
|
|
24
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
25
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return { state: WaiterState.RETRY, reason };
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @deprecated Use waitUntilFargateProfileDeleted instead. waitForFargateProfileDeleted does not throw error in non-success cases.
|
|
33
|
-
*/
|
|
34
|
-
export const waitForFargateProfileDeleted = async (
|
|
35
|
-
params: WaiterConfiguration<EKSClient>,
|
|
36
|
-
input: DescribeFargateProfileCommandInput
|
|
37
|
-
): Promise<WaiterResult> => {
|
|
38
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
39
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @param params - Waiter configuration options.
|
|
44
|
-
* @param input - The input to DescribeFargateProfileCommand for polling.
|
|
45
|
-
*/
|
|
46
|
-
export const waitUntilFargateProfileDeleted = async (
|
|
47
|
-
params: WaiterConfiguration<EKSClient>,
|
|
48
|
-
input: DescribeFargateProfileCommandInput
|
|
49
|
-
): Promise<WaiterResult> => {
|
|
50
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
51
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
return checkExceptions(result);
|
|
53
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeNodegroupCommand, DescribeNodegroupCommandInput } from "../commands/DescribeNodegroupCommand";
|
|
4
|
-
import { EKSClient } from "../EKSClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: EKSClient, input: DescribeNodegroupCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new DescribeNodegroupCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.nodegroup.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
16
|
-
return { state: WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
try {
|
|
20
|
-
const returnComparator = () => {
|
|
21
|
-
return result.nodegroup.status;
|
|
22
|
-
};
|
|
23
|
-
if (returnComparator() === "ACTIVE") {
|
|
24
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
} catch (e) {}
|
|
27
|
-
} catch (exception) {
|
|
28
|
-
reason = exception;
|
|
29
|
-
}
|
|
30
|
-
return { state: WaiterState.RETRY, reason };
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @deprecated Use waitUntilNodegroupActive instead. waitForNodegroupActive does not throw error in non-success cases.
|
|
35
|
-
*/
|
|
36
|
-
export const waitForNodegroupActive = async (
|
|
37
|
-
params: WaiterConfiguration<EKSClient>,
|
|
38
|
-
input: DescribeNodegroupCommandInput
|
|
39
|
-
): Promise<WaiterResult> => {
|
|
40
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
41
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @param params - Waiter configuration options.
|
|
46
|
-
* @param input - The input to DescribeNodegroupCommand for polling.
|
|
47
|
-
*/
|
|
48
|
-
export const waitUntilNodegroupActive = async (
|
|
49
|
-
params: WaiterConfiguration<EKSClient>,
|
|
50
|
-
input: DescribeNodegroupCommandInput
|
|
51
|
-
): Promise<WaiterResult> => {
|
|
52
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
53
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
54
|
-
return checkExceptions(result);
|
|
55
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeNodegroupCommand, DescribeNodegroupCommandInput } from "../commands/DescribeNodegroupCommand";
|
|
4
|
-
import { EKSClient } from "../EKSClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: EKSClient, input: DescribeNodegroupCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new DescribeNodegroupCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.nodegroup.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
16
|
-
return { state: WaiterState.FAILURE, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
} catch (exception) {
|
|
20
|
-
reason = exception;
|
|
21
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
22
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return { state: WaiterState.RETRY, reason };
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @deprecated Use waitUntilNodegroupDeleted instead. waitForNodegroupDeleted does not throw error in non-success cases.
|
|
30
|
-
*/
|
|
31
|
-
export const waitForNodegroupDeleted = async (
|
|
32
|
-
params: WaiterConfiguration<EKSClient>,
|
|
33
|
-
input: DescribeNodegroupCommandInput
|
|
34
|
-
): Promise<WaiterResult> => {
|
|
35
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
36
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @param params - Waiter configuration options.
|
|
41
|
-
* @param input - The input to DescribeNodegroupCommand for polling.
|
|
42
|
-
*/
|
|
43
|
-
export const waitUntilNodegroupDeleted = async (
|
|
44
|
-
params: WaiterConfiguration<EKSClient>,
|
|
45
|
-
input: DescribeNodegroupCommandInput
|
|
46
|
-
): Promise<WaiterResult> => {
|
|
47
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
48
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
49
|
-
return checkExceptions(result);
|
|
50
|
-
};
|
package/tsconfig.es.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
8
|
-
"outDir": "dist-es"
|
|
9
|
-
}
|
|
10
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"alwaysStrict": true,
|
|
4
|
-
"target": "ES2018",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"downlevelIteration": true,
|
|
9
|
-
"importHelpers": true,
|
|
10
|
-
"noEmitHelpers": true,
|
|
11
|
-
"incremental": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"rootDir": "src",
|
|
15
|
-
"outDir": "dist-cjs",
|
|
16
|
-
"removeComments": true
|
|
17
|
-
},
|
|
18
|
-
"typedocOptions": {
|
|
19
|
-
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
20
|
-
"excludeNotExported": true,
|
|
21
|
-
"excludePrivate": true,
|
|
22
|
-
"hideGenerator": true,
|
|
23
|
-
"ignoreCompilerErrors": true,
|
|
24
|
-
"includeDeclarations": true,
|
|
25
|
-
"stripInternal": true,
|
|
26
|
-
"readme": "README.md",
|
|
27
|
-
"mode": "file",
|
|
28
|
-
"out": "docs",
|
|
29
|
-
"theme": "minimal",
|
|
30
|
-
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
31
|
-
},
|
|
32
|
-
"exclude": ["test/**/*"]
|
|
33
|
-
}
|