Show / Hide Table of Contents

Class CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty

The launch template configuration for Amazon ECS Managed Instances.

Inheritance
object
CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty
Implements
CfnCapacityProviderPropsMixin.IInstanceLaunchTemplateProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty : CfnCapacityProviderPropsMixin.IInstanceLaunchTemplateProperty
Syntax (vb)
Public Class CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty Implements CfnCapacityProviderPropsMixin.IInstanceLaunchTemplateProperty
Remarks

This defines how Amazon ECS launches Amazon EC2 instances, including the instance profile for your tasks, network and storage configuration, capacity options, and instance requirements for flexible instance type selection.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.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.Mixins.Preview.AWS.ECS.Mixins;

             var instanceLaunchTemplateProperty = new InstanceLaunchTemplateProperty {
                 CapacityOptionType = "capacityOptionType",
                 Ec2InstanceProfileArn = "ec2InstanceProfileArn",
                 FipsEnabled = false,
                 InstanceRequirements = new InstanceRequirementsRequestProperty {
                     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
                     },
                     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
                     },
                     MemoryMiB = new MemoryMiBRequestProperty {
                         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
                     },
                     VCpuCount = new VCpuCountRangeRequestProperty {
                         Max = 123,
                         Min = 123
                     }
                 },
                 Monitoring = "monitoring",
                 NetworkConfiguration = new ManagedInstancesNetworkConfigurationProperty {
                     SecurityGroups = new [] { "securityGroups" },
                     Subnets = new [] { "subnets" }
                 },
                 StorageConfiguration = new ManagedInstancesStorageConfigurationProperty {
                     StorageSizeGiB = 123
                 }
             };

Synopsis

Constructors

InstanceLaunchTemplateProperty()

The launch template configuration for Amazon ECS Managed Instances.

Properties

CapacityOptionType

The capacity option type.

Ec2InstanceProfileArn

The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances.

FipsEnabled

The launch template configuration for Amazon ECS Managed Instances.

InstanceRequirements

The instance requirements. You can specify:.

Monitoring

CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring.

NetworkConfiguration

The network configuration for Amazon ECS Managed Instances.

StorageConfiguration

The storage configuration for Amazon ECS Managed Instances.

Constructors

InstanceLaunchTemplateProperty()

The launch template configuration for Amazon ECS Managed Instances.

public InstanceLaunchTemplateProperty()
Remarks

This defines how Amazon ECS launches Amazon EC2 instances, including the instance profile for your tasks, network and storage configuration, capacity options, and instance requirements for flexible instance type selection.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.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.Mixins.Preview.AWS.ECS.Mixins;

             var instanceLaunchTemplateProperty = new InstanceLaunchTemplateProperty {
                 CapacityOptionType = "capacityOptionType",
                 Ec2InstanceProfileArn = "ec2InstanceProfileArn",
                 FipsEnabled = false,
                 InstanceRequirements = new InstanceRequirementsRequestProperty {
                     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
                     },
                     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
                     },
                     MemoryMiB = new MemoryMiBRequestProperty {
                         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
                     },
                     VCpuCount = new VCpuCountRangeRequestProperty {
                         Max = 123,
                         Min = 123
                     }
                 },
                 Monitoring = "monitoring",
                 NetworkConfiguration = new ManagedInstancesNetworkConfigurationProperty {
                     SecurityGroups = new [] { "securityGroups" },
                     Subnets = new [] { "subnets" }
                 },
                 StorageConfiguration = new ManagedInstancesStorageConfigurationProperty {
                     StorageSizeGiB = 123
                 }
             };

Properties

CapacityOptionType

The capacity option type.

public string? CapacityOptionType { get; set; }
Property Value

string

Remarks

This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.

Valid values are:

    The default is On-Demand

    For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-capacityoptiontype

    Ec2InstanceProfileArn

    The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances.

    public string? Ec2InstanceProfileArn { get; set; }
    Property Value

    string

    Remarks

    This instance profile must include the necessary permissions for your tasks to access AWS services and resources.

    For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-ec2instanceprofilearn

    FipsEnabled

    The launch template configuration for Amazon ECS Managed Instances.

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

    object

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-fipsenabled

    Type union: either bool or IResolvable

    InstanceRequirements

    The instance requirements. You can specify:.

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

    object

    Remarks

      Amazon ECS automatically selects the instances that match the specified criteria.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-instancerequirements

      Type union: either IResolvable or CfnCapacityProviderPropsMixin.IInstanceRequirementsRequestProperty

      Monitoring

      CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring.

      public string? Monitoring { get; set; }
      Property Value

      string

      Remarks

      By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-monitoring

      NetworkConfiguration

      The network configuration for Amazon ECS Managed Instances.

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

      object

      Remarks

      This specifies the subnets and security groups that instances use for network connectivity.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-networkconfiguration

      Type union: either IResolvable or CfnCapacityProviderPropsMixin.IManagedInstancesNetworkConfigurationProperty

      StorageConfiguration

      The storage configuration for Amazon ECS Managed Instances.

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

      object

      Remarks

      This defines the root volume size and type for the instances.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-instancelaunchtemplate.html#cfn-ecs-capacityprovider-instancelaunchtemplate-storageconfiguration

      Type union: either IResolvable or CfnCapacityProviderPropsMixin.IManagedInstancesStorageConfigurationProperty

      Implements

      CfnCapacityProviderPropsMixin.IInstanceLaunchTemplateProperty
      Back to top Generated by DocFX