EKSClient
Auto-generated documentation for EKS type annotations stubs module mypy-boto3-eks.
EKSClient
Type annotations and code completion for boto3.client("eks")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_eks.client import EKSClient
def get_eks_client() -> EKSClient:
return Session().client("eks")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("eks").exceptions
structure.
client = boto3.client("eks")
try:
do_something(client)
except (
client.AccessDeniedException,
client.BadRequestException,
client.ClientError,
client.ClientException,
client.InvalidParameterException,
client.InvalidRequestException,
client.NotFoundException,
client.ResourceInUseException,
client.ResourceLimitExceededException,
client.ResourceNotFoundException,
client.ResourcePropagationDelayException,
client.ServerException,
client.ServiceUnavailableException,
client.UnsupportedAvailabilityZoneException,
) as e:
print(e)
from mypy_boto3_eks.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
associate_encryption_config
Associate encryption configuration to an existing cluster.
Type annotations and code completion for boto3.client("eks").associate_encryption_config
method.
boto3 documentation
def associate_encryption_config(
self,
*,
clusterName: str,
encryptionConfig: Sequence[EncryptionConfigTypeDef], # (1)
clientRequestToken: str = ...,
) -> AssociateEncryptionConfigResponseTypeDef: # (2)
...
kwargs: AssociateEncryptionConfigRequestRequestTypeDef = { # (1)
"clusterName": ...,
"encryptionConfig": ...,
}
parent.associate_encryption_config(**kwargs)
associate_identity_provider_config
Associate an identity provider configuration to a cluster.
Type annotations and code completion for boto3.client("eks").associate_identity_provider_config
method.
boto3 documentation
def associate_identity_provider_config(
self,
*,
clusterName: str,
oidc: OidcIdentityProviderConfigRequestTypeDef, # (1)
tags: Mapping[str, str] = ...,
clientRequestToken: str = ...,
) -> AssociateIdentityProviderConfigResponseTypeDef: # (2)
...
kwargs: AssociateIdentityProviderConfigRequestRequestTypeDef = { # (1)
"clusterName": ...,
"oidc": ...,
}
parent.associate_identity_provider_config(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("eks").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("eks").close
method.
boto3 documentation
create_addon
Creates an Amazon EKS add-on.
Type annotations and code completion for boto3.client("eks").create_addon
method.
boto3 documentation
def create_addon(
self,
*,
clusterName: str,
addonName: str,
addonVersion: str = ...,
serviceAccountRoleArn: str = ...,
resolveConflicts: ResolveConflictsType = ..., # (1)
clientRequestToken: str = ...,
tags: Mapping[str, str] = ...,
configurationValues: str = ...,
) -> CreateAddonResponseTypeDef: # (2)
...
kwargs: CreateAddonRequestRequestTypeDef = { # (1)
"clusterName": ...,
"addonName": ...,
}
parent.create_addon(**kwargs)
create_cluster
Creates an Amazon EKS control plane.
Type annotations and code completion for boto3.client("eks").create_cluster
method.
boto3 documentation
def create_cluster(
self,
*,
name: str,
roleArn: str,
resourcesVpcConfig: VpcConfigRequestTypeDef, # (1)
version: str = ...,
kubernetesNetworkConfig: KubernetesNetworkConfigRequestTypeDef = ..., # (2)
logging: LoggingTypeDef = ..., # (3)
clientRequestToken: str = ...,
tags: Mapping[str, str] = ...,
encryptionConfig: Sequence[EncryptionConfigTypeDef] = ..., # (4)
outpostConfig: OutpostConfigRequestTypeDef = ..., # (5)
) -> CreateClusterResponseTypeDef: # (6)
...
- See VpcConfigRequestTypeDef
- See KubernetesNetworkConfigRequestTypeDef
- See LoggingTypeDef
- See EncryptionConfigTypeDef
- See OutpostConfigRequestTypeDef
- See CreateClusterResponseTypeDef
kwargs: CreateClusterRequestRequestTypeDef = { # (1)
"name": ...,
"roleArn": ...,
"resourcesVpcConfig": ...,
}
parent.create_cluster(**kwargs)
create_fargate_profile
Creates an Fargate profile for your Amazon EKS cluster.
Type annotations and code completion for boto3.client("eks").create_fargate_profile
method.
boto3 documentation
def create_fargate_profile(
self,
*,
fargateProfileName: str,
clusterName: str,
podExecutionRoleArn: str,
subnets: Sequence[str] = ...,
selectors: Sequence[FargateProfileSelectorTypeDef] = ..., # (1)
clientRequestToken: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateFargateProfileResponseTypeDef: # (2)
...
kwargs: CreateFargateProfileRequestRequestTypeDef = { # (1)
"fargateProfileName": ...,
"clusterName": ...,
"podExecutionRoleArn": ...,
}
parent.create_fargate_profile(**kwargs)
create_nodegroup
Creates a managed node group for an Amazon EKS cluster.
Type annotations and code completion for boto3.client("eks").create_nodegroup
method.
boto3 documentation
def create_nodegroup(
self,
*,
clusterName: str,
nodegroupName: str,
subnets: Sequence[str],
nodeRole: str,
scalingConfig: NodegroupScalingConfigTypeDef = ..., # (1)
diskSize: int = ...,
instanceTypes: Sequence[str] = ...,
amiType: AMITypesType = ..., # (2)
remoteAccess: RemoteAccessConfigTypeDef = ..., # (3)
labels: Mapping[str, str] = ...,
taints: Sequence[TaintTypeDef] = ..., # (4)
tags: Mapping[str, str] = ...,
clientRequestToken: str = ...,
launchTemplate: LaunchTemplateSpecificationTypeDef = ..., # (5)
updateConfig: NodegroupUpdateConfigTypeDef = ..., # (6)
capacityType: CapacityTypesType = ..., # (7)
version: str = ...,
releaseVersion: str = ...,
) -> CreateNodegroupResponseTypeDef: # (8)
...
- See NodegroupScalingConfigTypeDef
- See AMITypesType
- See RemoteAccessConfigTypeDef
- See TaintTypeDef
- See LaunchTemplateSpecificationTypeDef
- See NodegroupUpdateConfigTypeDef
- See CapacityTypesType
- See CreateNodegroupResponseTypeDef
kwargs: CreateNodegroupRequestRequestTypeDef = { # (1)
"clusterName": ...,
"nodegroupName": ...,
"subnets": ...,
"nodeRole": ...,
}
parent.create_nodegroup(**kwargs)
delete_addon
Delete an Amazon EKS add-on.
Type annotations and code completion for boto3.client("eks").delete_addon
method.
boto3 documentation
def delete_addon(
self,
*,
clusterName: str,
addonName: str,
preserve: bool = ...,
) -> DeleteAddonResponseTypeDef: # (1)
...
kwargs: DeleteAddonRequestRequestTypeDef = { # (1)
"clusterName": ...,
"addonName": ...,
}
parent.delete_addon(**kwargs)
delete_cluster
Deletes the Amazon EKS cluster control plane.
Type annotations and code completion for boto3.client("eks").delete_cluster
method.
boto3 documentation
def delete_cluster(
self,
*,
name: str,
) -> DeleteClusterResponseTypeDef: # (1)
...
kwargs: DeleteClusterRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.delete_cluster(**kwargs)
delete_fargate_profile
Deletes an Fargate profile.
Type annotations and code completion for boto3.client("eks").delete_fargate_profile
method.
boto3 documentation
def delete_fargate_profile(
self,
*,
clusterName: str,
fargateProfileName: str,
) -> DeleteFargateProfileResponseTypeDef: # (1)
...
kwargs: DeleteFargateProfileRequestRequestTypeDef = { # (1)
"clusterName": ...,
"fargateProfileName": ...,
}
parent.delete_fargate_profile(**kwargs)
delete_nodegroup
Deletes an Amazon EKS node group for a cluster.
Type annotations and code completion for boto3.client("eks").delete_nodegroup
method.
boto3 documentation
def delete_nodegroup(
self,
*,
clusterName: str,
nodegroupName: str,
) -> DeleteNodegroupResponseTypeDef: # (1)
...
kwargs: DeleteNodegroupRequestRequestTypeDef = { # (1)
"clusterName": ...,
"nodegroupName": ...,
}
parent.delete_nodegroup(**kwargs)
deregister_cluster
Deregisters a connected cluster to remove it from the Amazon EKS control plane.
Type annotations and code completion for boto3.client("eks").deregister_cluster
method.
boto3 documentation
def deregister_cluster(
self,
*,
name: str,
) -> DeregisterClusterResponseTypeDef: # (1)
...
kwargs: DeregisterClusterRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.deregister_cluster(**kwargs)
describe_addon
Describes an Amazon EKS add-on.
Type annotations and code completion for boto3.client("eks").describe_addon
method.
boto3 documentation
def describe_addon(
self,
*,
clusterName: str,
addonName: str,
) -> DescribeAddonResponseTypeDef: # (1)
...
kwargs: DescribeAddonRequestRequestTypeDef = { # (1)
"clusterName": ...,
"addonName": ...,
}
parent.describe_addon(**kwargs)
describe_addon_configuration
Returns configuration options.
Type annotations and code completion for boto3.client("eks").describe_addon_configuration
method.
boto3 documentation
def describe_addon_configuration(
self,
*,
addonName: str,
addonVersion: str,
) -> DescribeAddonConfigurationResponseTypeDef: # (1)
...
kwargs: DescribeAddonConfigurationRequestRequestTypeDef = { # (1)
"addonName": ...,
"addonVersion": ...,
}
parent.describe_addon_configuration(**kwargs)
describe_addon_versions
Describes the versions for an add-on.
Type annotations and code completion for boto3.client("eks").describe_addon_versions
method.
boto3 documentation
def describe_addon_versions(
self,
*,
kubernetesVersion: str = ...,
maxResults: int = ...,
nextToken: str = ...,
addonName: str = ...,
types: Sequence[str] = ...,
publishers: Sequence[str] = ...,
owners: Sequence[str] = ...,
) -> DescribeAddonVersionsResponseTypeDef: # (1)
...
kwargs: DescribeAddonVersionsRequestRequestTypeDef = { # (1)
"kubernetesVersion": ...,
}
parent.describe_addon_versions(**kwargs)
describe_cluster
Returns descriptive information about an Amazon EKS cluster.
Type annotations and code completion for boto3.client("eks").describe_cluster
method.
boto3 documentation
def describe_cluster(
self,
*,
name: str,
) -> DescribeClusterResponseTypeDef: # (1)
...
kwargs: DescribeClusterRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.describe_cluster(**kwargs)
describe_fargate_profile
Returns descriptive information about an Fargate profile.
Type annotations and code completion for boto3.client("eks").describe_fargate_profile
method.
boto3 documentation
def describe_fargate_profile(
self,
*,
clusterName: str,
fargateProfileName: str,
) -> DescribeFargateProfileResponseTypeDef: # (1)
...
kwargs: DescribeFargateProfileRequestRequestTypeDef = { # (1)
"clusterName": ...,
"fargateProfileName": ...,
}
parent.describe_fargate_profile(**kwargs)
describe_identity_provider_config
Returns descriptive information about an identity provider configuration.
Type annotations and code completion for boto3.client("eks").describe_identity_provider_config
method.
boto3 documentation
def describe_identity_provider_config(
self,
*,
clusterName: str,
identityProviderConfig: IdentityProviderConfigTypeDef, # (1)
) -> DescribeIdentityProviderConfigResponseTypeDef: # (2)
...
kwargs: DescribeIdentityProviderConfigRequestRequestTypeDef = { # (1)
"clusterName": ...,
"identityProviderConfig": ...,
}
parent.describe_identity_provider_config(**kwargs)
describe_nodegroup
Returns descriptive information about an Amazon EKS node group.
Type annotations and code completion for boto3.client("eks").describe_nodegroup
method.
boto3 documentation
def describe_nodegroup(
self,
*,
clusterName: str,
nodegroupName: str,
) -> DescribeNodegroupResponseTypeDef: # (1)
...
kwargs: DescribeNodegroupRequestRequestTypeDef = { # (1)
"clusterName": ...,
"nodegroupName": ...,
}
parent.describe_nodegroup(**kwargs)
describe_update
Returns descriptive information about an update against your Amazon EKS cluster or associated managed node group or Amazon EKS add-on.
Type annotations and code completion for boto3.client("eks").describe_update
method.
boto3 documentation
def describe_update(
self,
*,
name: str,
updateId: str,
nodegroupName: str = ...,
addonName: str = ...,
) -> DescribeUpdateResponseTypeDef: # (1)
...
kwargs: DescribeUpdateRequestRequestTypeDef = { # (1)
"name": ...,
"updateId": ...,
}
parent.describe_update(**kwargs)
disassociate_identity_provider_config
Disassociates an identity provider configuration from a cluster.
Type annotations and code completion for boto3.client("eks").disassociate_identity_provider_config
method.
boto3 documentation
def disassociate_identity_provider_config(
self,
*,
clusterName: str,
identityProviderConfig: IdentityProviderConfigTypeDef, # (1)
clientRequestToken: str = ...,
) -> DisassociateIdentityProviderConfigResponseTypeDef: # (2)
...
kwargs: DisassociateIdentityProviderConfigRequestRequestTypeDef = { # (1)
"clusterName": ...,
"identityProviderConfig": ...,
}
parent.disassociate_identity_provider_config(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("eks").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_addons
Lists the available add-ons.
Type annotations and code completion for boto3.client("eks").list_addons
method.
boto3 documentation
def list_addons(
self,
*,
clusterName: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAddonsResponseTypeDef: # (1)
...
kwargs: ListAddonsRequestRequestTypeDef = { # (1)
"clusterName": ...,
}
parent.list_addons(**kwargs)
list_clusters
Lists the Amazon EKS clusters in your Amazon Web Services account in the specified Region.
Type annotations and code completion for boto3.client("eks").list_clusters
method.
boto3 documentation
def list_clusters(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
include: Sequence[str] = ...,
) -> ListClustersResponseTypeDef: # (1)
...
kwargs: ListClustersRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_clusters(**kwargs)
list_fargate_profiles
Lists the Fargate profiles associated with the specified cluster in your Amazon Web Services account in the specified Region.
Type annotations and code completion for boto3.client("eks").list_fargate_profiles
method.
boto3 documentation
def list_fargate_profiles(
self,
*,
clusterName: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListFargateProfilesResponseTypeDef: # (1)
...
kwargs: ListFargateProfilesRequestRequestTypeDef = { # (1)
"clusterName": ...,
}
parent.list_fargate_profiles(**kwargs)
list_identity_provider_configs
A list of identity provider configurations.
Type annotations and code completion for boto3.client("eks").list_identity_provider_configs
method.
boto3 documentation
def list_identity_provider_configs(
self,
*,
clusterName: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListIdentityProviderConfigsResponseTypeDef: # (1)
...
kwargs: ListIdentityProviderConfigsRequestRequestTypeDef = { # (1)
"clusterName": ...,
}
parent.list_identity_provider_configs(**kwargs)
list_nodegroups
Lists the Amazon EKS managed node groups associated with the specified cluster in your Amazon Web Services account in the specified Region.
Type annotations and code completion for boto3.client("eks").list_nodegroups
method.
boto3 documentation
def list_nodegroups(
self,
*,
clusterName: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListNodegroupsResponseTypeDef: # (1)
...
kwargs: ListNodegroupsRequestRequestTypeDef = { # (1)
"clusterName": ...,
}
parent.list_nodegroups(**kwargs)
list_tags_for_resource
List the tags for an Amazon EKS resource.
Type annotations and code completion for boto3.client("eks").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_updates
Lists the updates associated with an Amazon EKS cluster or managed node group in your Amazon Web Services account, in the specified Region.
Type annotations and code completion for boto3.client("eks").list_updates
method.
boto3 documentation
def list_updates(
self,
*,
name: str,
nodegroupName: str = ...,
addonName: str = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> ListUpdatesResponseTypeDef: # (1)
...
kwargs: ListUpdatesRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.list_updates(**kwargs)
register_cluster
Connects a Kubernetes cluster to the Amazon EKS control plane.
Type annotations and code completion for boto3.client("eks").register_cluster
method.
boto3 documentation
def register_cluster(
self,
*,
name: str,
connectorConfig: ConnectorConfigRequestTypeDef, # (1)
clientRequestToken: str = ...,
tags: Mapping[str, str] = ...,
) -> RegisterClusterResponseTypeDef: # (2)
...
kwargs: RegisterClusterRequestRequestTypeDef = { # (1)
"name": ...,
"connectorConfig": ...,
}
parent.register_cluster(**kwargs)
tag_resource
Associates the specified tags to a resource with the specified resourceArn
.
Type annotations and code completion for boto3.client("eks").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Deletes specified tags from a resource.
Type annotations and code completion for boto3.client("eks").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_addon
Updates an Amazon EKS add-on.
Type annotations and code completion for boto3.client("eks").update_addon
method.
boto3 documentation
def update_addon(
self,
*,
clusterName: str,
addonName: str,
addonVersion: str = ...,
serviceAccountRoleArn: str = ...,
resolveConflicts: ResolveConflictsType = ..., # (1)
clientRequestToken: str = ...,
configurationValues: str = ...,
) -> UpdateAddonResponseTypeDef: # (2)
...
kwargs: UpdateAddonRequestRequestTypeDef = { # (1)
"clusterName": ...,
"addonName": ...,
}
parent.update_addon(**kwargs)
update_cluster_config
Updates an Amazon EKS cluster configuration.
Type annotations and code completion for boto3.client("eks").update_cluster_config
method.
boto3 documentation
def update_cluster_config(
self,
*,
name: str,
resourcesVpcConfig: VpcConfigRequestTypeDef = ..., # (1)
logging: LoggingTypeDef = ..., # (2)
clientRequestToken: str = ...,
) -> UpdateClusterConfigResponseTypeDef: # (3)
...
kwargs: UpdateClusterConfigRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.update_cluster_config(**kwargs)
update_cluster_version
Updates an Amazon EKS cluster to the specified Kubernetes version.
Type annotations and code completion for boto3.client("eks").update_cluster_version
method.
boto3 documentation
def update_cluster_version(
self,
*,
name: str,
version: str,
clientRequestToken: str = ...,
) -> UpdateClusterVersionResponseTypeDef: # (1)
...
kwargs: UpdateClusterVersionRequestRequestTypeDef = { # (1)
"name": ...,
"version": ...,
}
parent.update_cluster_version(**kwargs)
update_nodegroup_config
Updates an Amazon EKS managed node group configuration.
Type annotations and code completion for boto3.client("eks").update_nodegroup_config
method.
boto3 documentation
def update_nodegroup_config(
self,
*,
clusterName: str,
nodegroupName: str,
labels: UpdateLabelsPayloadTypeDef = ..., # (1)
taints: UpdateTaintsPayloadTypeDef = ..., # (2)
scalingConfig: NodegroupScalingConfigTypeDef = ..., # (3)
updateConfig: NodegroupUpdateConfigTypeDef = ..., # (4)
clientRequestToken: str = ...,
) -> UpdateNodegroupConfigResponseTypeDef: # (5)
...
- See UpdateLabelsPayloadTypeDef
- See UpdateTaintsPayloadTypeDef
- See NodegroupScalingConfigTypeDef
- See NodegroupUpdateConfigTypeDef
- See UpdateNodegroupConfigResponseTypeDef
kwargs: UpdateNodegroupConfigRequestRequestTypeDef = { # (1)
"clusterName": ...,
"nodegroupName": ...,
}
parent.update_nodegroup_config(**kwargs)
update_nodegroup_version
Updates the Kubernetes version or AMI version of an Amazon EKS managed node group.
Type annotations and code completion for boto3.client("eks").update_nodegroup_version
method.
boto3 documentation
def update_nodegroup_version(
self,
*,
clusterName: str,
nodegroupName: str,
version: str = ...,
releaseVersion: str = ...,
launchTemplate: LaunchTemplateSpecificationTypeDef = ..., # (1)
force: bool = ...,
clientRequestToken: str = ...,
) -> UpdateNodegroupVersionResponseTypeDef: # (2)
...
kwargs: UpdateNodegroupVersionRequestRequestTypeDef = { # (1)
"clusterName": ...,
"nodegroupName": ...,
}
parent.update_nodegroup_version(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("eks").get_paginator
method with overloads.
client.get_paginator("describe_addon_versions")
-> DescribeAddonVersionsPaginatorclient.get_paginator("list_addons")
-> ListAddonsPaginatorclient.get_paginator("list_clusters")
-> ListClustersPaginatorclient.get_paginator("list_fargate_profiles")
-> ListFargateProfilesPaginatorclient.get_paginator("list_identity_provider_configs")
-> ListIdentityProviderConfigsPaginatorclient.get_paginator("list_nodegroups")
-> ListNodegroupsPaginatorclient.get_paginator("list_updates")
-> ListUpdatesPaginator
get_waiter
Type annotations and code completion for boto3.client("eks").get_waiter
method with overloads.
client.get_waiter("addon_active")
-> AddonActiveWaiterclient.get_waiter("addon_deleted")
-> AddonDeletedWaiterclient.get_waiter("cluster_active")
-> ClusterActiveWaiterclient.get_waiter("cluster_deleted")
-> ClusterDeletedWaiterclient.get_waiter("fargate_profile_active")
-> FargateProfileActiveWaiterclient.get_waiter("fargate_profile_deleted")
-> FargateProfileDeletedWaiterclient.get_waiter("nodegroup_active")
-> NodegroupActiveWaiterclient.get_waiter("nodegroup_deleted")
-> NodegroupDeletedWaiter