AWS.EKS — AWS SDK for JavaScript (original) (raw)

This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:

Property Details

endpointAWS.Endpoint

Returns an Endpoint object representing the endpoint URL for service requests.

Method Details

associateAccessPolicy(params = {}, callback) ⇒ AWS.Request

associateEncryptionConfig(params = {}, callback) ⇒ AWS.Request

Associates an encryption configuration to an existing cluster.

Use this API to enable encryption on existing clusters that don't already have encryption enabled. This allows you to implement a defense-in-depth security strategy without migrating applications to new Amazon EKS clusters.

associateIdentityProviderConfig(params = {}, callback) ⇒ AWS.Request

Associates an identity provider configuration to a cluster.

If you want to authenticate identities using an identity provider, you can create an identity provider configuration and associate it to your cluster. After configuring authentication to your cluster you can create Kubernetes Role and ClusterRole objects, assign permissions to them, and then bind them to the identities using Kubernetes RoleBinding and ClusterRoleBinding objects. For more information see Using RBAC Authorization in the Kubernetes documentation.

createAccessEntry(params = {}, callback) ⇒ AWS.Request

Creates an access entry.

An access entry allows an IAM principal to access your cluster. Access entries can replace the need to maintain entries in the aws-auth ConfigMap for authentication. You have the following options for authorizing an IAM principal to access Kubernetes objects on your cluster: Kubernetes role-based access control (RBAC), Amazon EKS, or both. Kubernetes RBAC authorization requires you to create and manage Kubernetes Role, ClusterRole, RoleBinding, and ClusterRoleBinding objects, in addition to managing access entries. If you use Amazon EKS authorization exclusively, you don't need to create and manage Kubernetes Role, ClusterRole, RoleBinding, and ClusterRoleBinding objects.

For more information about access entries, see Access entries in the Amazon EKS User Guide.

````` ```` ### createAddon(params = {}, callback) ⇒ AWS.Request

Creates an Amazon EKS add-on.

Amazon EKS add-ons help to automate the provisioning and lifecycle management of common operational software for Amazon EKS clusters. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.

Service Reference:

Examples:

Calling the createAddon operation

var params = {
  addonName: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE', /* required */
  addonVersion: 'STRING_VALUE',
  clientRequestToken: 'STRING_VALUE',
  configurationValues: 'STRING_VALUE',
  podIdentityAssociations: [
    {
      roleArn: 'STRING_VALUE', /* required */
      serviceAccount: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  resolveConflicts: OVERWRITE | NONE | PRESERVE,
  serviceAccountRoleArn: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
eks.createAddon(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

createCluster(params = {}, callback) ⇒ AWS.Request

Creates an Amazon EKS control plane.

The Amazon EKS control plane consists of control plane instances that run the Kubernetes software, such as etcd and the API server. The control plane runs in an account managed by Amazon Web Services, and the Kubernetes API is exposed by the Amazon EKS API server endpoint. Each Amazon EKS cluster control plane is single tenant and unique. It runs on its own set of Amazon EC2 instances.

The cluster control plane is provisioned across multiple Availability Zones and fronted by an Elastic Load Balancing Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC subnets to provide connectivity from the control plane instances to the nodes (for example, to support kubectl exec, logs, and proxy data flows).

Amazon EKS nodes run in your Amazon Web Services account and connect to your cluster's control plane over the Kubernetes API server endpoint and a certificate file that is created for your cluster.

You can use the endpointPublicAccess and endpointPrivateAccess parameters to enable or disable public and private access to your cluster's Kubernetes API server endpoint. By default, public access is enabled, and private access is disabled. For more information, see Amazon EKS Cluster Endpoint Access Control in the _Amazon EKS User Guide .

You can use the logging parameter to enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster Control Plane Logs in the _Amazon EKS User Guide .

Note: CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.

In most cases, it takes several minutes to create a cluster. After you create an Amazon EKS cluster, you must configure your Kubernetes tooling to communicate with the API server and launch nodes into your cluster. For more information, see Allowing users to access your cluster and Launching Amazon EKS nodes in the Amazon EKS User Guide.

Service Reference:

Examples:

To create a new cluster


/* The following example creates an Amazon EKS cluster called prod. */

 var params = {
  version: "1.10", 
  name: "prod", 
  clientRequestToken: "1d2129a1-3d38-460a-9756-e5b91fddb951", 
  resourcesVpcConfig: {
   securityGroupIds: [
      "sg-6979fe18"
   ], 
   subnetIds: [
      "subnet-6782e71e", 
      "subnet-e7e761ac"
   ]
  }, 
  roleArn: "arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI"
 };
 eks.createCluster(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
   }
   */
 });

Calling the createCluster operation

var params = {
  name: 'STRING_VALUE', /* required */
  resourcesVpcConfig: { /* required */
    endpointPrivateAccess: true || false,
    endpointPublicAccess: true || false,
    publicAccessCidrs: [
      'STRING_VALUE',
      /* more items */
    ],
    securityGroupIds: [
      'STRING_VALUE',
      /* more items */
    ],
    subnetIds: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  roleArn: 'STRING_VALUE', /* required */
  accessConfig: {
    authenticationMode: API | API_AND_CONFIG_MAP | CONFIG_MAP,
    bootstrapClusterCreatorAdminPermissions: true || false
  },
  bootstrapSelfManagedAddons: true || false,
  clientRequestToken: 'STRING_VALUE',
  encryptionConfig: [
    {
      provider: {
        keyArn: 'STRING_VALUE'
      },
      resources: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  kubernetesNetworkConfig: {
    ipFamily: ipv4 | ipv6,
    serviceIpv4Cidr: 'STRING_VALUE'
  },
  logging: {
    clusterLogging: [
      {
        enabled: true || false,
        types: [
          api | audit | authenticator | controllerManager | scheduler,
          /* more items */
        ]
      },
      /* more items */
    ]
  },
  outpostConfig: {
    controlPlaneInstanceType: 'STRING_VALUE', /* required */
    outpostArns: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    controlPlanePlacement: {
      groupName: 'STRING_VALUE'
    }
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  upgradePolicy: {
    supportType: STANDARD | EXTENDED
  },
  version: 'STRING_VALUE'
};
eks.createCluster(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

createEksAnywhereSubscription(params = {}, callback) ⇒ AWS.Request

Creates an EKS Anywhere subscription. When a subscription is created, it is a contract agreement for the length of the term specified in the request. Licenses that are used to validate support are provisioned in Amazon Web Services License Manager and the caller account is granted access to EKS Anywhere Curated Packages.

Service Reference:

Examples:

Calling the createEksAnywhereSubscription operation

var params = {
  name: 'STRING_VALUE', /* required */
  term: { /* required */
    duration: 'NUMBER_VALUE',
    unit: MONTHS
  },
  autoRenew: true || false,
  clientRequestToken: 'STRING_VALUE',
  licenseQuantity: 'NUMBER_VALUE',
  licenseType: Cluster,
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
eks.createEksAnywhereSubscription(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

createFargateProfile(params = {}, callback) ⇒ AWS.Request

Creates an Fargate profile for your Amazon EKS cluster. You must have at least one Fargate profile in a cluster to be able to run pods on Fargate.

The Fargate profile allows an administrator to declare which pods run on Fargate and specify which pods run on which Fargate profile. This declaration is done through the profile’s selectors. Each profile can have up to five selectors that contain a namespace and labels. A namespace is required for every selector. The label field consists of multiple optional key-value pairs. Pods that match the selectors are scheduled on Fargate. If a to-be-scheduled pod matches any of the selectors in the Fargate profile, then that pod is run on Fargate.

When you create a Fargate profile, you must specify a pod execution role to use with the pods that are scheduled with the profile. This role is added to the cluster's Kubernetes Role Based Access Control (RBAC) for authorization so that the kubelet that is running on the Fargate infrastructure can register with your Amazon EKS cluster so that it can appear in your cluster as a node. The pod execution role also provides IAM permissions to the Fargate infrastructure to allow read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.

Fargate profiles are immutable. However, you can create a new updated profile to replace an existing profile and then delete the original after the updated profile has finished creating.

If any Fargate profiles in a cluster are in the DELETING status, you must wait for that Fargate profile to finish deleting before you can create any other profiles in that cluster.

For more information, see Fargate profile in the Amazon EKS User Guide.

Service Reference:

Examples:

Calling the createFargateProfile operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  fargateProfileName: 'STRING_VALUE', /* required */
  podExecutionRoleArn: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  selectors: [
    {
      labels: {
        '<String>': 'STRING_VALUE',
        /* '<String>': ... */
      },
      namespace: 'STRING_VALUE'
    },
    /* more items */
  ],
  subnets: [
    'STRING_VALUE',
    /* more items */
  ],
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
eks.createFargateProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

createNodegroup(params = {}, callback) ⇒ AWS.Request

Creates a managed node group for an Amazon EKS cluster.

You can only create a node group for your cluster that is equal to the current Kubernetes version for the cluster. All node groups are created with the latest AMI release version for the respective minor Kubernetes version of the cluster, unless you deploy a custom AMI using a launch template. For more information about using launch templates, see Customizing managed nodes with launch templates.

An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group and associated Amazon EC2 instances that are managed by Amazon Web Services for an Amazon EKS cluster. For more information, see Managed node groups in the Amazon EKS User Guide.

Note: Windows AMI types are only supported for commercial Amazon Web Services Regions that support Windows on Amazon EKS.

Service Reference:

Examples:

Calling the createNodegroup operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodeRole: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE', /* required */
  subnets: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  amiType: AL2_x86_64 | AL2_x86_64_GPU | AL2_ARM_64 | CUSTOM | BOTTLEROCKET_ARM_64 | BOTTLEROCKET_x86_64 | BOTTLEROCKET_ARM_64_NVIDIA | BOTTLEROCKET_x86_64_NVIDIA | WINDOWS_CORE_2019_x86_64 | WINDOWS_FULL_2019_x86_64 | WINDOWS_CORE_2022_x86_64 | WINDOWS_FULL_2022_x86_64 | AL2023_x86_64_STANDARD | AL2023_ARM_64_STANDARD | AL2023_x86_64_NEURON | AL2023_x86_64_NVIDIA,
  capacityType: ON_DEMAND | SPOT | CAPACITY_BLOCK,
  clientRequestToken: 'STRING_VALUE',
  diskSize: 'NUMBER_VALUE',
  instanceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  labels: {
    '<labelKey>': 'STRING_VALUE',
    /* '<labelKey>': ... */
  },
  launchTemplate: {
    id: 'STRING_VALUE',
    name: 'STRING_VALUE',
    version: 'STRING_VALUE'
  },
  releaseVersion: 'STRING_VALUE',
  remoteAccess: {
    ec2SshKey: 'STRING_VALUE',
    sourceSecurityGroups: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  scalingConfig: {
    desiredSize: 'NUMBER_VALUE',
    maxSize: 'NUMBER_VALUE',
    minSize: 'NUMBER_VALUE'
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  taints: [
    {
      effect: NO_SCHEDULE | NO_EXECUTE | PREFER_NO_SCHEDULE,
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  updateConfig: {
    maxUnavailable: 'NUMBER_VALUE',
    maxUnavailablePercentage: 'NUMBER_VALUE'
  },
  version: 'STRING_VALUE'
};
eks.createNodegroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

createPodIdentityAssociation(params = {}, callback) ⇒ AWS.Request

Creates an EKS Pod Identity association between a service account in an Amazon EKS cluster and an IAM role with EKS Pod Identity. Use EKS Pod Identity to give temporary IAM credentials to pods and the credentials are rotated automatically.

Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.

If a pod uses a service account that has an association, Amazon EKS sets environment variables in the containers of the pod. The environment variables configure the Amazon Web Services SDKs, including the Command Line Interface, to use the EKS Pod Identity credentials.

Pod Identity is a simpler method than IAM roles for service accounts, as this method doesn't use OIDC identity providers. Additionally, you can configure a role for Pod Identity once, and reuse it across clusters.

Service Reference:

Examples:

Calling the createPodIdentityAssociation operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  namespace: 'STRING_VALUE', /* required */
  roleArn: 'STRING_VALUE', /* required */
  serviceAccount: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
eks.createPodIdentityAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deleteAccessEntry(params = {}, callback) ⇒ AWS.Request

Deletes an access entry.

Deleting an access entry of a type other than Standard can cause your cluster to function improperly. If you delete an access entry in error, you can recreate it.

Service Reference:

Examples:

Calling the deleteAccessEntry operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  principalArn: 'STRING_VALUE' /* required */
};
eks.deleteAccessEntry(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deleteAddon(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon EKS add-on.

When you remove an add-on, it's deleted from the cluster. You can always manually start an add-on on the cluster using the Kubernetes API.

Service Reference:

Examples:

Calling the deleteAddon operation

var params = {
  addonName: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE', /* required */
  preserve: true || false
};
eks.deleteAddon(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deleteCluster(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon EKS cluster control plane.

If you have active services in your cluster that are associated with a load balancer, you must delete those services before deleting the cluster so that the load balancers are deleted properly. Otherwise, you can have orphaned resources in your VPC that prevent you from being able to delete the VPC. For more information, see Deleting a cluster in the Amazon EKS User Guide.

If you have managed node groups or Fargate profiles attached to the cluster, you must delete them first. For more information, see DeleteNodgroup and DeleteFargateProfile.

Service Reference:

Examples:

To delete a cluster


/* This example command deletes a cluster named `devel` in your default region. */

 var params = {
  name: "devel"
 };
 eks.deleteCluster(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
   }
   */
 });

Calling the deleteCluster operation

var params = {
  name: 'STRING_VALUE' /* required */
};
eks.deleteCluster(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deleteEksAnywhereSubscription(params = {}, callback) ⇒ AWS.Request

Deletes an expired or inactive subscription. Deleting inactive subscriptions removes them from the Amazon Web Services Management Console view and from list/describe API responses. Subscriptions can only be cancelled within 7 days of creation and are cancelled by creating a ticket in the Amazon Web Services Support Center.

Service Reference:

Examples:

Calling the deleteEksAnywhereSubscription operation

var params = {
  id: 'STRING_VALUE' /* required */
};
eks.deleteEksAnywhereSubscription(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deleteFargateProfile(params = {}, callback) ⇒ AWS.Request

Deletes an Fargate profile.

When you delete a Fargate profile, any Pod running on Fargate that was created with the profile is deleted. If the Pod matches another Fargate profile, then it is scheduled on Fargate with that profile. If it no longer matches any Fargate profiles, then it's not scheduled on Fargate and may remain in a pending state.

Only one Fargate profile in a cluster can be in the DELETING status at a time. You must wait for a Fargate profile to finish deleting before you can delete any other profiles in that cluster.

Service Reference:

Examples:

Calling the deleteFargateProfile operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  fargateProfileName: 'STRING_VALUE' /* required */
};
eks.deleteFargateProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deleteNodegroup(params = {}, callback) ⇒ AWS.Request

Deletes a managed node group.

Service Reference:

Examples:

Calling the deleteNodegroup operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE' /* required */
};
eks.deleteNodegroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deletePodIdentityAssociation(params = {}, callback) ⇒ AWS.Request

Deletes a EKS Pod Identity association.

The temporary Amazon Web Services credentials from the previous IAM role session might still be valid until the session expiry. If you need to immediately revoke the temporary session credentials, then go to the role in the IAM console.

Service Reference:

Examples:

Calling the deletePodIdentityAssociation operation

var params = {
  associationId: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE' /* required */
};
eks.deletePodIdentityAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

deregisterCluster(params = {}, callback) ⇒ AWS.Request

Deregisters a connected cluster to remove it from the Amazon EKS control plane.

A connected cluster is a Kubernetes cluster that you've connected to your control plane using the Amazon EKS Connector.

Service Reference:

Examples:

Calling the deregisterCluster operation

var params = {
  name: 'STRING_VALUE' /* required */
};
eks.deregisterCluster(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeAccessEntry(params = {}, callback) ⇒ AWS.Request

Describes an access entry.

Service Reference:

Examples:

Calling the describeAccessEntry operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  principalArn: 'STRING_VALUE' /* required */
};
eks.describeAccessEntry(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeAddon(params = {}, callback) ⇒ AWS.Request

Describes an Amazon EKS add-on.

Service Reference:

Examples:

Calling the describeAddon operation

var params = {
  addonName: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE' /* required */
};
eks.describeAddon(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

Waiter Resource States:

describeAddonConfiguration(params = {}, callback) ⇒ AWS.Request

Returns configuration options.

Service Reference:

Examples:

Calling the describeAddonConfiguration operation

var params = {
  addonName: 'STRING_VALUE', /* required */
  addonVersion: 'STRING_VALUE' /* required */
};
eks.describeAddonConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeAddonVersions(params = {}, callback) ⇒ AWS.Request

Describes the versions for an add-on.

Information such as the Kubernetes versions that you can use the add-on with, the owner, publisher, and the type of the add-on are returned.

Service Reference:

Examples:

Calling the describeAddonVersions operation

var params = {
  addonName: 'STRING_VALUE',
  kubernetesVersion: 'STRING_VALUE',
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  owners: [
    'STRING_VALUE',
    /* more items */
  ],
  publishers: [
    'STRING_VALUE',
    /* more items */
  ],
  types: [
    'STRING_VALUE',
    /* more items */
  ]
};
eks.describeAddonVersions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeCluster(params = {}, callback) ⇒ AWS.Request

Describes an Amazon EKS cluster.

The API server endpoint and certificate authority data returned by this operation are required for kubelet and kubectl to communicate with your Kubernetes API server. For more information, see Creating or updating a kubeconfig file for an Amazon EKS cluster.

Note: The API server endpoint and certificate authority data aren't available until the cluster reaches the ACTIVE state.

Service Reference:

Examples:

To describe a cluster


/* This example command provides a description of the specified cluster in your default region. */

 var params = {
  name: "devel"
 };
 eks.describeCluster(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    cluster: {
     version: "1.10", 
     name: "devel", 
     arn: "arn:aws:eks:us-west-2:012345678910:cluster/devel", 
     certificateAuthority: {
      data: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNE1EVXpNVEl6TVRFek1Wb1hEVEk0TURVeU9ESXpNVEV6TVZvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTTZWCjVUaG4rdFcySm9Xa2hQMzRlVUZMNitaRXJOZGIvWVdrTmtDdWNGS2RaaXl2TjlMVmdvUmV2MjlFVFZlN1ZGbSsKUTJ3ZURyRXJiQyt0dVlibkFuN1ZLYmE3ay9hb1BHekZMdmVnb0t6b0M1N2NUdGVwZzRIazRlK2tIWHNaME10MApyb3NzcjhFM1ROeExETnNJTThGL1cwdjhsTGNCbWRPcjQyV2VuTjFHZXJnaDNSZ2wzR3JIazBnNTU0SjFWenJZCm9hTi8zODFUczlOTFF2QTBXb0xIcjBFRlZpTFdSZEoyZ3lXaC9ybDVyOFNDOHZaQXg1YW1BU0hVd01aTFpWRC8KTDBpOW4wRVM0MkpVdzQyQmxHOEdpd3NhTkJWV3lUTHZKclNhRXlDSHFtVVZaUTFDZkFXUjl0L3JleVVOVXM3TApWV1FqM3BFbk9RMitMSWJrc0RzQ0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFNZ3RsQ1dIQ2U2YzVHMXl2YlFTS0Q4K2hUalkKSm1NSG56L2EvRGt0WG9YUjFVQzIrZUgzT1BZWmVjRVZZZHVaSlZCckNNQ2VWR0ZkeWdBYlNLc1FxWDg0S2RXbAp1MU5QaERDSmEyRHliN2pVMUV6VThTQjFGZUZ5ZFE3a0hNS1E1blpBRVFQOTY4S01hSGUrSm0yQ2x1UFJWbEJVCjF4WlhTS1gzTVZ0K1Q0SU1EV2d6c3JRSjVuQkRjdEtLcUZtM3pKdVVubHo5ZEpVckdscEltMjVJWXJDckxYUFgKWkUwRUtRNWEzMHhkVWNrTHRGQkQrOEtBdFdqSS9yZUZPNzM1YnBMdVoyOTBaNm42QlF3elRrS0p4cnhVc3QvOAppNGsxcnlsaUdWMm5SSjBUYjNORkczNHgrYWdzYTRoSTFPbU90TFM0TmgvRXJxT3lIUXNDc2hEQUtKUT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="
     }, 
     createdAt: <Date Representation>, 
     endpoint: "https://A0DCCD80A04F01705DD065655C30CC3D.yl4.us-west-2.eks.amazonaws.com", 
     resourcesVpcConfig: {
      securityGroupIds: [
         "sg-6979fe18"
      ], 
      subnetIds: [
         "subnet-6782e71e", 
         "subnet-e7e761ac"
      ], 
      vpcId: "vpc-950809ec"
     }, 
     roleArn: "arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI", 
     status: "ACTIVE"
    }
   }
   */
 });

Calling the describeCluster operation

var params = {
  name: 'STRING_VALUE' /* required */
};
eks.describeCluster(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

Waiter Resource States:

describeEksAnywhereSubscription(params = {}, callback) ⇒ AWS.Request

Returns descriptive information about a subscription.

Service Reference:

Examples:

Calling the describeEksAnywhereSubscription operation

var params = {
  id: 'STRING_VALUE' /* required */
};
eks.describeEksAnywhereSubscription(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeFargateProfile(params = {}, callback) ⇒ AWS.Request

Describes an Fargate profile.

Service Reference:

Examples:

Calling the describeFargateProfile operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  fargateProfileName: 'STRING_VALUE' /* required */
};
eks.describeFargateProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

Waiter Resource States:

describeIdentityProviderConfig(params = {}, callback) ⇒ AWS.Request

Describes an identity provider configuration.

Service Reference:

Examples:

Calling the describeIdentityProviderConfig operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  identityProviderConfig: { /* required */
    name: 'STRING_VALUE', /* required */
    type: 'STRING_VALUE' /* required */
  }
};
eks.describeIdentityProviderConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeInsight(params = {}, callback) ⇒ AWS.Request

Returns details about an insight that you specify using its ID.

Service Reference:

Examples:

Calling the describeInsight operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  id: 'STRING_VALUE' /* required */
};
eks.describeInsight(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeNodegroup(params = {}, callback) ⇒ AWS.Request

Describes a managed node group.

Service Reference:

Examples:

Calling the describeNodegroup operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE' /* required */
};
eks.describeNodegroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

Waiter Resource States:

describePodIdentityAssociation(params = {}, callback) ⇒ AWS.Request

Returns descriptive information about an EKS Pod Identity association.

This action requires the ID of the association. You can get the ID from the response to the CreatePodIdentityAssocation for newly created associations. Or, you can list the IDs for associations with ListPodIdentityAssociations and filter the list by namespace or service account.

Service Reference:

Examples:

Calling the describePodIdentityAssociation operation

var params = {
  associationId: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE' /* required */
};
eks.describePodIdentityAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

describeUpdate(params = {}, callback) ⇒ AWS.Request

Describes an update to an Amazon EKS resource.

When the status of the update is Succeeded, the update is complete. If an update fails, the status is Failed, and an error detail explains the reason for the failure.

Service Reference:

Examples:

Calling the describeUpdate operation

var params = {
  name: 'STRING_VALUE', /* required */
  updateId: 'STRING_VALUE', /* required */
  addonName: 'STRING_VALUE',
  nodegroupName: 'STRING_VALUE'
};
eks.describeUpdate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

disassociateAccessPolicy(params = {}, callback) ⇒ AWS.Request

Disassociates an access policy from an access entry.

Service Reference:

Examples:

Calling the disassociateAccessPolicy operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  policyArn: 'STRING_VALUE', /* required */
  principalArn: 'STRING_VALUE' /* required */
};
eks.disassociateAccessPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

disassociateIdentityProviderConfig(params = {}, callback) ⇒ AWS.Request

Disassociates an identity provider configuration from a cluster.

If you disassociate an identity provider from your cluster, users included in the provider can no longer access the cluster. However, you can still access the cluster with IAM principals.

Service Reference:

Examples:

Calling the disassociateIdentityProviderConfig operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  identityProviderConfig: { /* required */
    name: 'STRING_VALUE', /* required */
    type: 'STRING_VALUE' /* required */
  },
  clientRequestToken: 'STRING_VALUE'
};
eks.disassociateIdentityProviderConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listAccessEntries(params = {}, callback) ⇒ AWS.Request

Lists the access entries for your cluster.

Service Reference:

Examples:

Calling the listAccessEntries operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  associatedPolicyArn: 'STRING_VALUE',
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listAccessEntries(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listAccessPolicies(params = {}, callback) ⇒ AWS.Request

Lists the available access policies.

Service Reference:

Examples:

Calling the listAccessPolicies operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listAccessPolicies(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listAddons(params = {}, callback) ⇒ AWS.Request

Lists the installed add-ons.

Service Reference:

Examples:

Calling the listAddons operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listAddons(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listAssociatedAccessPolicies(params = {}, callback) ⇒ AWS.Request

Lists the access policies associated with an access entry.

Service Reference:

Examples:

Calling the listAssociatedAccessPolicies operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  principalArn: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listAssociatedAccessPolicies(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listClusters(params = {}, callback) ⇒ AWS.Request

Lists the Amazon EKS clusters in your Amazon Web Services account in the specified Amazon Web Services Region.

Service Reference:

Examples:

To list your available clusters


/* This example command lists all of your available clusters in your default region. */

 var params = {
 };
 eks.listClusters(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    clusters: [
       "devel", 
       "prod"
    ]
   }
   */
 });

Calling the listClusters operation

var params = {
  include: [
    'STRING_VALUE',
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listClusters(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listEksAnywhereSubscriptions(params = {}, callback) ⇒ AWS.Request

Displays the full description of the subscription.

Service Reference:

Examples:

Calling the listEksAnywhereSubscriptions operation

var params = {
  includeStatus: [
    CREATING | ACTIVE | UPDATING | EXPIRING | EXPIRED | DELETING,
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listEksAnywhereSubscriptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listFargateProfiles(params = {}, callback) ⇒ AWS.Request

Lists the Fargate profiles associated with the specified cluster in your Amazon Web Services account in the specified Amazon Web Services Region.

Service Reference:

Examples:

Calling the listFargateProfiles operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listFargateProfiles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listIdentityProviderConfigs(params = {}, callback) ⇒ AWS.Request

Lists the identity provider configurations for your cluster.

Service Reference:

Examples:

Calling the listIdentityProviderConfigs operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listIdentityProviderConfigs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listInsights(params = {}, callback) ⇒ AWS.Request

Returns a list of all insights checked for against the specified cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.

Service Reference:

Examples:

Calling the listInsights operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  filter: {
    categories: [
      UPGRADE_READINESS,
      /* more items */
    ],
    kubernetesVersions: [
      'STRING_VALUE',
      /* more items */
    ],
    statuses: [
      PASSING | WARNING | ERROR | UNKNOWN,
      /* more items */
    ]
  },
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listInsights(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listNodegroups(params = {}, callback) ⇒ AWS.Request

Lists the managed node groups associated with the specified cluster in your Amazon Web Services account in the specified Amazon Web Services Region. Self-managed node groups aren't listed.

Service Reference:

Examples:

Calling the listNodegroups operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
eks.listNodegroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listPodIdentityAssociations(params = {}, callback) ⇒ AWS.Request

List the EKS Pod Identity associations in a cluster. You can filter the list by the namespace that the association is in or the service account that the association uses.

Service Reference:

Examples:

Calling the listPodIdentityAssociations operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  namespace: 'STRING_VALUE',
  nextToken: 'STRING_VALUE',
  serviceAccount: 'STRING_VALUE'
};
eks.listPodIdentityAssociations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listTagsForResource(params = {}, callback) ⇒ AWS.Request

List the tags for an Amazon EKS resource.

Service Reference:

Examples:

To list tags for a cluster


/* This example lists all of the tags for the `beta` cluster. */

 var params = {
  resourceArn: "arn:aws:eks:us-west-2:012345678910:cluster/beta"
 };
 eks.listTagsForResource(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    tags: {
     "aws:tag:domain": "beta"
    }
   }
   */
 });

Calling the listTagsForResource operation

var params = {
  resourceArn: 'STRING_VALUE' /* required */
};
eks.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

listUpdates(params = {}, callback) ⇒ AWS.Request

Lists the updates associated with an Amazon EKS resource in your Amazon Web Services account, in the specified Amazon Web Services Region.

Service Reference:

Examples:

Calling the listUpdates operation

var params = {
  name: 'STRING_VALUE', /* required */
  addonName: 'STRING_VALUE',
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  nodegroupName: 'STRING_VALUE'
};
eks.listUpdates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

registerCluster(params = {}, callback) ⇒ AWS.Request

Connects a Kubernetes cluster to the Amazon EKS control plane.

Any Kubernetes cluster can be connected to the Amazon EKS control plane to view current information about the cluster and its nodes.

Cluster connection requires two steps. First, send a RegisterClusterRequest to add it to the Amazon EKS control plane.

Second, a Manifest containing the activationID and activationCode must be applied to the Kubernetes cluster through it's native provider to provide visibility.

After the manifest is updated and applied, the connected cluster is visible to the Amazon EKS control plane. If the manifest isn't applied within three days, the connected cluster will no longer be visible and must be deregistered using DeregisterCluster.

Service Reference:

Examples:

Calling the registerCluster operation

var params = {
  connectorConfig: { /* required */
    provider: EKS_ANYWHERE | ANTHOS | GKE | AKS | OPENSHIFT | TANZU | RANCHER | EC2 | OTHER, /* required */
    roleArn: 'STRING_VALUE' /* required */
  },
  name: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
eks.registerCluster(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

tagResource(params = {}, callback) ⇒ AWS.Request

Associates the specified tags to an Amazon EKS resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they aren't changed. When a resource is deleted, the tags associated with that resource are also deleted. Tags that you create for Amazon EKS resources don't propagate to any other resources associated with the cluster. For example, if you tag a cluster with this operation, that tag doesn't automatically propagate to the subnets and nodes associated with the cluster.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tags: { /* required */
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
eks.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

untagResource(params = {}, callback) ⇒ AWS.Request

Deletes specified tags from an Amazon EKS resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
eks.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateAccessEntry(params = {}, callback) ⇒ AWS.Request

Updates an access entry.

Service Reference:

Examples:

Calling the updateAccessEntry operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  principalArn: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  kubernetesGroups: [
    'STRING_VALUE',
    /* more items */
  ],
  username: 'STRING_VALUE'
};
eks.updateAccessEntry(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateAddon(params = {}, callback) ⇒ AWS.Request

Updates an Amazon EKS add-on.

Service Reference:

Examples:

Calling the updateAddon operation

var params = {
  addonName: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE', /* required */
  addonVersion: 'STRING_VALUE',
  clientRequestToken: 'STRING_VALUE',
  configurationValues: 'STRING_VALUE',
  podIdentityAssociations: [
    {
      roleArn: 'STRING_VALUE', /* required */
      serviceAccount: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  resolveConflicts: OVERWRITE | NONE | PRESERVE,
  serviceAccountRoleArn: 'STRING_VALUE'
};
eks.updateAddon(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateClusterConfig(params = {}, callback) ⇒ AWS.Request

Updates an Amazon EKS cluster configuration. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with DescribeUpdate"/>.

You can use this API operation to enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the _Amazon EKS User Guide .

Note: CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.

You can also use this API operation to enable or disable public and private access to your cluster's Kubernetes API server endpoint. By default, public access is enabled, and private access is disabled. For more information, see Amazon EKS cluster endpoint access control in the _Amazon EKS User Guide .

You can also use this API operation to choose different subnets and security groups for the cluster. You must specify at least two subnets that are in different Availability Zones. You can't change which VPC the subnets are from, the subnets must be in the same VPC as the subnets that the cluster was created with. For more information about the VPC requirements, see https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html in the _Amazon EKS User Guide .

Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING (this status transition is eventually consistent). When the update is complete (either Failed or Successful), the cluster status moves to Active.

Service Reference:

Examples:

Calling the updateClusterConfig operation

var params = {
  name: 'STRING_VALUE', /* required */
  accessConfig: {
    authenticationMode: API | API_AND_CONFIG_MAP | CONFIG_MAP
  },
  clientRequestToken: 'STRING_VALUE',
  logging: {
    clusterLogging: [
      {
        enabled: true || false,
        types: [
          api | audit | authenticator | controllerManager | scheduler,
          /* more items */
        ]
      },
      /* more items */
    ]
  },
  resourcesVpcConfig: {
    endpointPrivateAccess: true || false,
    endpointPublicAccess: true || false,
    publicAccessCidrs: [
      'STRING_VALUE',
      /* more items */
    ],
    securityGroupIds: [
      'STRING_VALUE',
      /* more items */
    ],
    subnetIds: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  upgradePolicy: {
    supportType: STANDARD | EXTENDED
  }
};
eks.updateClusterConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateClusterVersion(params = {}, callback) ⇒ AWS.Request

Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation.

Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING (this status transition is eventually consistent). When the update is complete (either Failed or Successful), the cluster status moves to Active.

If your cluster has managed node groups attached to it, all of your node groups’ Kubernetes versions must match the cluster’s Kubernetes version in order to update the cluster to a new Kubernetes version.

Service Reference:

Examples:

Calling the updateClusterVersion operation

var params = {
  name: 'STRING_VALUE', /* required */
  version: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE'
};
eks.updateClusterVersion(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateEksAnywhereSubscription(params = {}, callback) ⇒ AWS.Request

Update an EKS Anywhere Subscription. Only auto renewal and tags can be updated after subscription creation.

Service Reference:

Examples:

Calling the updateEksAnywhereSubscription operation

var params = {
  autoRenew: true || false, /* required */
  id: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE'
};
eks.updateEksAnywhereSubscription(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateNodegroupConfig(params = {}, callback) ⇒ AWS.Request

Updates an Amazon EKS managed node group configuration. Your node group continues to function during the update. The response output includes an update ID that you can use to track the status of your node group update with the DescribeUpdate API operation. Currently you can update the Kubernetes labels for a node group or the scaling configuration.

Service Reference:

Examples:

Calling the updateNodegroupConfig operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  labels: {
    addOrUpdateLabels: {
      '<labelKey>': 'STRING_VALUE',
      /* '<labelKey>': ... */
    },
    removeLabels: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  scalingConfig: {
    desiredSize: 'NUMBER_VALUE',
    maxSize: 'NUMBER_VALUE',
    minSize: 'NUMBER_VALUE'
  },
  taints: {
    addOrUpdateTaints: [
      {
        effect: NO_SCHEDULE | NO_EXECUTE | PREFER_NO_SCHEDULE,
        key: 'STRING_VALUE',
        value: 'STRING_VALUE'
      },
      /* more items */
    ],
    removeTaints: [
      {
        effect: NO_SCHEDULE | NO_EXECUTE | PREFER_NO_SCHEDULE,
        key: 'STRING_VALUE',
        value: 'STRING_VALUE'
      },
      /* more items */
    ]
  },
  updateConfig: {
    maxUnavailable: 'NUMBER_VALUE',
    maxUnavailablePercentage: 'NUMBER_VALUE'
  }
};
eks.updateNodegroupConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updateNodegroupVersion(params = {}, callback) ⇒ AWS.Request

Updates the Kubernetes version or AMI version of an Amazon EKS managed node group.

You can update a node group using a launch template only if the node group was originally deployed with a launch template. If you need to update a custom AMI in a node group that was deployed with a launch template, then update your custom AMI, specify the new ID in a new version of the launch template, and then update the node group to the new version of the launch template.

If you update without a launch template, then you can update to the latest available AMI version of a node group's current Kubernetes version by not specifying a Kubernetes version in the request. You can update to the latest AMI version of your cluster's current Kubernetes version by specifying your cluster's Kubernetes version in the request. For information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide.

You cannot roll back a node group to an earlier Kubernetes version or AMI version.

When a node in a managed node group is terminated due to a scaling action or update, every Pod on that node is drained first. Amazon EKS attempts to drain the nodes gracefully and will fail if it is unable to do so. You can force the update if Amazon EKS is unable to drain the nodes as a result of a Pod disruption budget issue.

Service Reference:

Examples:

Calling the updateNodegroupVersion operation

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  force: true || false,
  launchTemplate: {
    id: 'STRING_VALUE',
    name: 'STRING_VALUE',
    version: 'STRING_VALUE'
  },
  releaseVersion: 'STRING_VALUE',
  version: 'STRING_VALUE'
};
eks.updateNodegroupVersion(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

updatePodIdentityAssociation(params = {}, callback) ⇒ AWS.Request

Updates a EKS Pod Identity association. Only the IAM role can be changed; an association can't be moved between clusters, namespaces, or service accounts. If you need to edit the namespace or service account, you need to delete the association and then create a new association with your desired settings.

Service Reference:

Examples:

Calling the updatePodIdentityAssociation operation

var params = {
  associationId: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE', /* required */
  clientRequestToken: 'STRING_VALUE',
  roleArn: 'STRING_VALUE'
};
eks.updatePodIdentityAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

waitFor(state, params = {}, callback) ⇒ AWS.Request

Waits for a given EKS resource. The final callback or'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.

Examples:

Waiting for the clusterActive state

var params = {
  name: 'STRING_VALUE' /* required */
};
eks.waitFor('clusterActive', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

Waiter Resource States:

```` `````

````` ```` ## Waiter Resource Details

eks.waitFor('clusterActive', params = {}, [callback]) ⇒ AWS.Request

Waits for the clusterActive state by periodically calling the underlyingEKS.describeCluster() operation every 30 seconds (at most 40 times).

Examples:

Waiting for the clusterActive state

var params = {
  name: 'STRING_VALUE' /* required */
};
eks.waitFor('clusterActive', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('clusterDeleted', params = {}, [callback]) ⇒ AWS.Request

Waits for the clusterDeleted state by periodically calling the underlyingEKS.describeCluster() operation every 30 seconds (at most 40 times).

Examples:

Waiting for the clusterDeleted state

var params = {
  name: 'STRING_VALUE' /* required */
};
eks.waitFor('clusterDeleted', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('nodegroupActive', params = {}, [callback]) ⇒ AWS.Request

Waits for the nodegroupActive state by periodically calling the underlyingEKS.describeNodegroup() operation every 30 seconds (at most 80 times).

Examples:

Waiting for the nodegroupActive state

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE' /* required */
};
eks.waitFor('nodegroupActive', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('nodegroupDeleted', params = {}, [callback]) ⇒ AWS.Request

Waits for the nodegroupDeleted state by periodically calling the underlyingEKS.describeNodegroup() operation every 30 seconds (at most 40 times).

Examples:

Waiting for the nodegroupDeleted state

var params = {
  clusterName: 'STRING_VALUE', /* required */
  nodegroupName: 'STRING_VALUE' /* required */
};
eks.waitFor('nodegroupDeleted', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('addonActive', params = {}, [callback]) ⇒ AWS.Request

Waits for the addonActive state by periodically calling the underlyingEKS.describeAddon() operation every 10 seconds (at most 60 times).

Examples:

Waiting for the addonActive state

var params = {
  addonName: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE' /* required */
};
eks.waitFor('addonActive', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('addonDeleted', params = {}, [callback]) ⇒ AWS.Request

Waits for the addonDeleted state by periodically calling the underlyingEKS.describeAddon() operation every 10 seconds (at most 60 times).

Examples:

Waiting for the addonDeleted state

var params = {
  addonName: 'STRING_VALUE', /* required */
  clusterName: 'STRING_VALUE' /* required */
};
eks.waitFor('addonDeleted', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('fargateProfileActive', params = {}, [callback]) ⇒ AWS.Request

Waits for the fargateProfileActive state by periodically calling the underlyingEKS.describeFargateProfile() operation every 10 seconds (at most 60 times).

Examples:

Waiting for the fargateProfileActive state

var params = {
  clusterName: 'STRING_VALUE', /* required */
  fargateProfileName: 'STRING_VALUE' /* required */
};
eks.waitFor('fargateProfileActive', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

eks.waitFor('fargateProfileDeleted', params = {}, [callback]) ⇒ AWS.Request

Waits for the fargateProfileDeleted state by periodically calling the underlyingEKS.describeFargateProfile() operation every 30 seconds (at most 60 times).

Examples:

Waiting for the fargateProfileDeleted state

var params = {
  clusterName: 'STRING_VALUE', /* required */
  fargateProfileName: 'STRING_VALUE' /* required */
};
eks.waitFor('fargateProfileDeleted', params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

Returns:

See Also:

```` `````