Show / Hide Table of Contents

Class Nodegroup

(experimental) The Nodegroup resource class.

Inheritance
object
Resource
Nodegroup
Implements
INodegroup
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class Nodegroup : Resource, INodegroup, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class Nodegroup Inherits Resource Implements INodegroup, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks

Stability: Experimental

Resource: AWS::EKS::Nodegroup

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Eks.V2.Alpha;
             using Amazon.CDK.AWS.EC2;
             using Amazon.CDK.AWS.IAM;

             Cluster cluster;
             InstanceType instanceType;
             Role role;
             SecurityGroup securityGroup;
             Subnet subnet;
             SubnetFilter subnetFilter;

             var nodegroup = new Nodegroup(this, "MyNodegroup", new NodegroupProps {
                 Cluster = cluster,

                 // the properties below are optional
                 AmiType = NodegroupAmiType.AL2_X86_64,
                 CapacityType = CapacityType.SPOT,
                 DesiredSize = 123,
                 DiskSize = 123,
                 EnableNodeAutoRepair = false,
                 ForceUpdate = false,
                 InstanceType = instanceType,
                 InstanceTypes = new [] { instanceType },
                 Labels = new Dictionary<string, string> {
                     { "labelsKey", "labels" }
                 },
                 LaunchTemplateSpec = new LaunchTemplateSpec {
                     Id = "id",

                     // the properties below are optional
                     Version = "version"
                 },
                 MaxSize = 123,
                 MaxUnavailable = 123,
                 MaxUnavailablePercentage = 123,
                 MinSize = 123,
                 NodegroupName = "nodegroupName",
                 NodeRole = role,
                 ReleaseVersion = "releaseVersion",
                 RemoteAccess = new NodegroupRemoteAccess {
                     SshKeyName = "sshKeyName",

                     // the properties below are optional
                     SourceSecurityGroups = new [] { securityGroup }
                 },
                 Subnets = new SubnetSelection {
                     AvailabilityZones = new [] { "availabilityZones" },
                     OnePerAz = false,
                     SubnetFilters = new [] { subnetFilter },
                     SubnetGroupName = "subnetGroupName",
                     Subnets = new [] { subnet },
                     SubnetType = SubnetType.PRIVATE_ISOLATED
                 },
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Taints = new [] { new TaintSpec {
                     Effect = TaintEffect.NO_SCHEDULE,
                     Key = "key",
                     Value = "value"
                 } }
             });

Synopsis

Constructors

Nodegroup(Construct, string, INodegroupProps)

(experimental) The Nodegroup resource class.

Properties

Cluster

(experimental) the Amazon EKS cluster resource.

NodegroupArn

(experimental) ARN of the nodegroup.

NodegroupName

(experimental) Nodegroup name.

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

Role

(experimental) IAM role of the instance profile for the nodegroup.

Methods

FromNodegroupName(Construct, string, string)

(experimental) Import the Nodegroup from attributes.

Constructors

Nodegroup(Construct, string, INodegroupProps)

(experimental) The Nodegroup resource class.

public Nodegroup(Construct scope, string id, INodegroupProps props)
Parameters
scope Construct
id string
props INodegroupProps
Remarks

Stability: Experimental

Properties

Cluster

(experimental) the Amazon EKS cluster resource.

public virtual ICluster Cluster { get; }
Property Value

ICluster

Remarks

Stability: Experimental

Attribute: ClusterName

NodegroupArn

(experimental) ARN of the nodegroup.

public virtual string NodegroupArn { get; }
Property Value

string

Remarks

Stability: Experimental

Attribute: true

NodegroupName

(experimental) Nodegroup name.

public virtual string NodegroupName { get; }
Property Value

string

Remarks

Stability: Experimental

Attribute: true

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Stability: Experimental

Role

(experimental) IAM role of the instance profile for the nodegroup.

public virtual IRole Role { get; }
Property Value

IRole

Remarks

Stability: Experimental

Methods

FromNodegroupName(Construct, string, string)

(experimental) Import the Nodegroup from attributes.

public static INodegroup FromNodegroupName(Construct scope, string id, string nodegroupName)
Parameters
scope Construct
id string
nodegroupName string
Returns

INodegroup

Remarks

Stability: Experimental

Implements

INodegroup
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX