Show / Hide Table of Contents

Class CfnAutoScalingGroup.LaunchTemplateProperty

Use this structure to specify the launch templates and instance types (overrides) for a mixed instances policy.

Inheritance
object
CfnAutoScalingGroup.LaunchTemplateProperty
Implements
CfnAutoScalingGroup.ILaunchTemplateProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAutoScalingGroup.LaunchTemplateProperty : CfnAutoScalingGroup.ILaunchTemplateProperty
Syntax (vb)
Public Class CfnAutoScalingGroup.LaunchTemplateProperty Implements CfnAutoScalingGroup.ILaunchTemplateProperty
Remarks

LaunchTemplate is a property of the AWS::AutoScaling::AutoScalingGroup MixedInstancesPolicy property type.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html

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.AutoScaling;

             var launchTemplateProperty = new LaunchTemplateProperty {
                 LaunchTemplateSpecification = new LaunchTemplateSpecificationProperty {
                     Version = "version",

                     // the properties below are optional
                     LaunchTemplateId = "launchTemplateId",
                     LaunchTemplateName = "launchTemplateName"
                 },

                 // the properties below are optional
                 Overrides = new [] { new LaunchTemplateOverridesProperty {
                     InstanceRequirements = new InstanceRequirementsProperty {
                         MemoryMiB = new MemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         VCpuCount = new VCpuCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },

                         // the properties below are optional
                         AcceleratorCount = new AcceleratorCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorManufacturers = new [] { "acceleratorManufacturers" },
                         AcceleratorNames = new [] { "acceleratorNames" },
                         AcceleratorTotalMemoryMiB = new AcceleratorTotalMemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorTypes = new [] { "acceleratorTypes" },
                         AllowedInstanceTypes = new [] { "allowedInstanceTypes" },
                         BareMetal = "bareMetal",
                         BaselineEbsBandwidthMbps = new BaselineEbsBandwidthMbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         BaselinePerformanceFactors = new BaselinePerformanceFactorsRequestProperty {
                             Cpu = new CpuPerformanceFactorRequestProperty {
                                 References = new [] { new PerformanceFactorReferenceRequestProperty {
                                     InstanceFamily = "instanceFamily"
                                 } }
                             }
                         },
                         BurstablePerformance = "burstablePerformance",
                         CpuManufacturers = new [] { "cpuManufacturers" },
                         ExcludedInstanceTypes = new [] { "excludedInstanceTypes" },
                         InstanceGenerations = new [] { "instanceGenerations" },
                         LocalStorage = "localStorage",
                         LocalStorageTypes = new [] { "localStorageTypes" },
                         MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 123,
                         MemoryGiBPerVCpu = new MemoryGiBPerVCpuRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkBandwidthGbps = new NetworkBandwidthGbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkInterfaceCount = new NetworkInterfaceCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         OnDemandMaxPricePercentageOverLowestPrice = 123,
                         RequireHibernateSupport = false,
                         SpotMaxPricePercentageOverLowestPrice = 123,
                         TotalLocalStorageGb = new TotalLocalStorageGBRequestProperty {
                             Max = 123,
                             Min = 123
                         }
                     },
                     InstanceType = "instanceType",
                     LaunchTemplateSpecification = new LaunchTemplateSpecificationProperty {
                         Version = "version",

                         // the properties below are optional
                         LaunchTemplateId = "launchTemplateId",
                         LaunchTemplateName = "launchTemplateName"
                     },
                     WeightedCapacity = "weightedCapacity"
                 } }
             };

Synopsis

Constructors

LaunchTemplateProperty()

Use this structure to specify the launch templates and instance types (overrides) for a mixed instances policy.

Properties

LaunchTemplateSpecification

The launch template.

Overrides

Any properties that you specify override the same properties in the launch template.

Constructors

LaunchTemplateProperty()

Use this structure to specify the launch templates and instance types (overrides) for a mixed instances policy.

public LaunchTemplateProperty()
Remarks

LaunchTemplate is a property of the AWS::AutoScaling::AutoScalingGroup MixedInstancesPolicy property type.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html

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.AutoScaling;

             var launchTemplateProperty = new LaunchTemplateProperty {
                 LaunchTemplateSpecification = new LaunchTemplateSpecificationProperty {
                     Version = "version",

                     // the properties below are optional
                     LaunchTemplateId = "launchTemplateId",
                     LaunchTemplateName = "launchTemplateName"
                 },

                 // the properties below are optional
                 Overrides = new [] { new LaunchTemplateOverridesProperty {
                     InstanceRequirements = new InstanceRequirementsProperty {
                         MemoryMiB = new MemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         VCpuCount = new VCpuCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },

                         // the properties below are optional
                         AcceleratorCount = new AcceleratorCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorManufacturers = new [] { "acceleratorManufacturers" },
                         AcceleratorNames = new [] { "acceleratorNames" },
                         AcceleratorTotalMemoryMiB = new AcceleratorTotalMemoryMiBRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         AcceleratorTypes = new [] { "acceleratorTypes" },
                         AllowedInstanceTypes = new [] { "allowedInstanceTypes" },
                         BareMetal = "bareMetal",
                         BaselineEbsBandwidthMbps = new BaselineEbsBandwidthMbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         BaselinePerformanceFactors = new BaselinePerformanceFactorsRequestProperty {
                             Cpu = new CpuPerformanceFactorRequestProperty {
                                 References = new [] { new PerformanceFactorReferenceRequestProperty {
                                     InstanceFamily = "instanceFamily"
                                 } }
                             }
                         },
                         BurstablePerformance = "burstablePerformance",
                         CpuManufacturers = new [] { "cpuManufacturers" },
                         ExcludedInstanceTypes = new [] { "excludedInstanceTypes" },
                         InstanceGenerations = new [] { "instanceGenerations" },
                         LocalStorage = "localStorage",
                         LocalStorageTypes = new [] { "localStorageTypes" },
                         MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 123,
                         MemoryGiBPerVCpu = new MemoryGiBPerVCpuRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkBandwidthGbps = new NetworkBandwidthGbpsRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         NetworkInterfaceCount = new NetworkInterfaceCountRequestProperty {
                             Max = 123,
                             Min = 123
                         },
                         OnDemandMaxPricePercentageOverLowestPrice = 123,
                         RequireHibernateSupport = false,
                         SpotMaxPricePercentageOverLowestPrice = 123,
                         TotalLocalStorageGb = new TotalLocalStorageGBRequestProperty {
                             Max = 123,
                             Min = 123
                         }
                     },
                     InstanceType = "instanceType",
                     LaunchTemplateSpecification = new LaunchTemplateSpecificationProperty {
                         Version = "version",

                         // the properties below are optional
                         LaunchTemplateId = "launchTemplateId",
                         LaunchTemplateName = "launchTemplateName"
                     },
                     WeightedCapacity = "weightedCapacity"
                 } }
             };

Properties

LaunchTemplateSpecification

The launch template.

public object LaunchTemplateSpecification { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html#cfn-autoscaling-autoscalinggroup-launchtemplate-launchtemplatespecification

Overrides

Any properties that you specify override the same properties in the launch template.

public object? Overrides { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html#cfn-autoscaling-autoscalinggroup-launchtemplate-overrides

Implements

CfnAutoScalingGroup.ILaunchTemplateProperty
Back to top Generated by DocFX