Skip to content

InstanceLaunchTemplate

Source code in docs_src/capo_batch/types/instance_launch_template.py
class InstanceLaunchTemplate(TypedDict, closed=True):
    ec2_instance_profile_arn: NotRequired["capo_batch.types.string.String"]
    """<p>The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances. The instance profile must use the <code>AmazonECSInstanceRolePolicyForManagedInstances</code> managed policy with a trust policy for <code>ec2.amazonaws.com</code>.</p>"""
    network_configuration: NotRequired[
        "capo_batch.types.managed_instances_network_configuration.ManagedInstancesNetworkConfiguration"
    ]
    """<p>The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.</p>"""
    instance_requirements: NotRequired[
        "capo_batch.types.instance_requirements_request.InstanceRequirementsRequest"
    ]
    """<p>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.</p>"""
    capacity_option_type: NotRequired["capo_batch.types.string.String"]
    """<p>The capacity pricing model for the managed instances. Valid values:</p> <ul> <li> <p> <code>ON_DEMAND</code> (default) — On-Demand pricing.</p> </li> <li> <p> <code>SPOT</code> — Spot Instances, which can provide significant cost savings for fault-tolerant workloads.</p> </li> </ul>"""
    storage_configuration: NotRequired[
        "capo_batch.types.managed_instances_storage_configuration.ManagedInstancesStorageConfiguration"
    ]
    """<p>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.</p>"""
    monitoring: NotRequired["capo_batch.types.string.String"]
    """<p>The level of CloudWatch monitoring for the managed instances. Valid values are <code>BASIC</code> and <code>DETAILED</code>.</p>"""
    fips_enabled: NotRequired["capo_batch.types.boolean.Boolean"]
    """<p>Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.</p>"""
    capacity_reservations: NotRequired[
        "capo_batch.types.capacity_reservation_request.CapacityReservationRequest"
    ]
    """<p>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.</p>"""
    instance_metadata_tags_propagation: NotRequired["capo_batch.types.boolean.Boolean"]
    """<p>Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.</p>"""
    local_storage_configuration: NotRequired[
        "capo_batch.types.managed_instances_local_storage_configuration.ManagedInstancesLocalStorageConfiguration"
    ]
    """<p>The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.</p>"""

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.