InstanceLaunchTemplate
¶
Source code in docs_src/capo_batch/types/instance_launch_template.py
capacity_option_type
instance-attribute
¶
capacity_option_type: NotRequired[String]
The capacity pricing model for the managed instances. Valid values:
-
ON_DEMAND(default) — On-Demand pricing. -
SPOT— Spot Instances, which can provide significant cost savings for fault-tolerant workloads.
capacity_reservations
instance-attribute
¶
capacity_reservations: NotRequired[CapacityReservationRequest]
The capacity reservation configuration for the managed instances. Use this to target On-Demand Capacity Reservations or Reserved Instances for predictable capacity and cost optimization.
ec2_instance_profile_arn
instance-attribute
¶
ec2_instance_profile_arn: NotRequired[String]
The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances. The instance profile must use the AmazonECSInstanceRolePolicyForManagedInstances managed policy with a trust policy for ec2.amazonaws.com.
fips_enabled
instance-attribute
¶
fips_enabled: NotRequired[Boolean]
Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.
instance_metadata_tags_propagation
instance-attribute
¶
instance_metadata_tags_propagation: NotRequired[Boolean]
Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.
instance_requirements
instance-attribute
¶
instance_requirements: NotRequired[InstanceRequirementsRequest]
The instance type requirements for the capacity provider. Use this to constrain which Amazon EC2 instance types Amazon ECS can launch. If not specified, all available instance types are eligible.
local_storage_configuration
instance-attribute
¶
local_storage_configuration: NotRequired[ManagedInstancesLocalStorageConfiguration]
The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.
monitoring
instance-attribute
¶
monitoring: NotRequired[String]
The level of CloudWatch monitoring for the managed instances. Valid values are BASIC and DETAILED.
network_configuration
instance-attribute
¶
network_configuration: NotRequired[ManagedInstancesNetworkConfiguration]
The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.
storage_configuration
instance-attribute
¶
storage_configuration: NotRequired[ManagedInstancesStorageConfiguration]
The storage configuration for the managed instances. Configures the root EBS volume size. If not specified, the service uses the default EBS volume size for the instance type.