Interface CfnNodegroup.ILaunchTemplateSpecificationProperty
An object representing a node group launch template specification.
Namespace: Amazon.CDK.AWS.EKS.Legacy
Assembly: Amazon.CDK.AWS.EKS.Legacy.dll
Syntax (csharp)
public interface ILaunchTemplateSpecificationProperty
Syntax (vb)
Public Interface ILaunchTemplateSpecificationProperty
Remarks
The launch template can't include SubnetId
, IamInstanceProfile
, RequestSpotInstances
, HibernationOptions
, or TerminateInstances
, or the node group deployment or update will fail. For more information about launch templates, see CreateLaunchTemplate
in the Amazon EC2 API Reference. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide .
You must specify either the launch template ID or the launch template name in the request, but not both.
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.Legacy;
var launchTemplateSpecificationProperty = new LaunchTemplateSpecificationProperty {
Id = "id",
Name = "name",
Version = "version"
};
Synopsis
Properties
Id | The ID of the launch template. |
Name | The name of the launch template. |
Version | The version number of the launch template to use. |
Properties
Id
The ID of the launch template.
virtual string Id { get; }
Property Value
System.String
Remarks
You must specify either the launch template ID or the launch template name in the request, but not both.
Name
The name of the launch template.
virtual string Name { get; }
Property Value
System.String
Remarks
You must specify either the launch template name or the launch template ID in the request, but not both.
Version
The version number of the launch template to use.
virtual string Version { get; }
Property Value
System.String
Remarks
If no version is specified, then the template's default version is used.