CapacityProviderManagedInstancesProviderInstanceLaunchTemplate constructor
- Input<
String?> ? capacityOptionType, - Input<
CapacityProviderManagedInstancesProviderInstanceLaunchTemplateCapacityReservations?> ? capacityReservations, - required Input<
String> ec2InstanceProfileArn, - Input<
CapacityProviderManagedInstancesProviderInstanceLaunchTemplateInstanceRequirements?> ? instanceRequirements, - Input<
CapacityProviderManagedInstancesProviderInstanceLaunchTemplateLocalStorageConfiguration?> ? localStorageConfiguration, - Input<
String?> ? monitoring, - required Input<
CapacityProviderManagedInstancesProviderInstanceLaunchTemplateNetworkConfiguration> networkConfiguration, - Input<
CapacityProviderManagedInstancesProviderInstanceLaunchTemplateStorageConfiguration?> ? storageConfiguration,
Creates a new CapacityProviderManagedInstancesProviderInstanceLaunchTemplate.
capacityOptionType Purchasing option for the EC2 instances used in the capacity provider. Determines whether to use On-Demand, Spot, or Capacity Reservation instances. Valid values are ON_DEMAND, SPOT, and RESERVED. Defaults to ON_DEMAND when not specified. Changing this value will trigger replacement of the capacity provider. For more information, see Amazon EC2 billing and purchasing options in the Amazon EC2 User Guide.
capacityReservations Capacity Reservation configuration used to launch instances. Required when capacityOptionType is RESERVED. Detailed below.
ec2InstanceProfileArn ARN of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances. 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.
instanceRequirements Instance requirements. You can specify the instance types and instance requirements such as vCPU count, memory, network performance, and accelerator specifications. Amazon ECS automatically selects the instances that match the specified criteria. Detailed below.
localStorageConfiguration Configuration block for the local storage settings applied to Amazon ECS Managed Instances. Detailed below.
monitoring CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. 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. Valid values are BASIC and DETAILED.
networkConfiguration Network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity. Detailed below.
storageConfiguration Storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances. Detailed below.
Implementation
const CapacityProviderManagedInstancesProviderInstanceLaunchTemplate({
this.capacityOptionType,
this.capacityReservations,
required this.ec2InstanceProfileArn,
this.instanceRequirements,
this.localStorageConfiguration,
this.monitoring,
required this.networkConfiguration,
this.storageConfiguration,
});