Skip to content

ManagedInstancesProvider

Source code in docs_src/capo_batch/types/managed_instances_provider.py
class ManagedInstancesProvider(TypedDict, closed=True):
    propagate_tags: NotRequired["capo_batch.types.string.String"]
    """<p>Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:</p> <ul> <li> <p> <code>CAPACITY_PROVIDER</code> — Propagates tags to instances.</p> </li> <li> <p> <code>NONE</code> (default) — Does not propagate tags to instances.</p> </li> </ul>"""
    infrastructure_role_arn: NotRequired["capo_batch.types.string.String"]
    """<p>The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy for <code>ecs.amazonaws.com</code>. You must have the <code>iam:PassRole</code> permission for this role with the condition <code>iam:PassedToService: ecs.amazonaws.com</code>.</p>"""
    instance_launch_template: NotRequired[
        "capo_batch.types.instance_launch_template.InstanceLaunchTemplate"
    ]
    """<p>The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.</p>"""
    infrastructure_optimization: NotRequired[
        "capo_batch.types.infrastructure_optimization.InfrastructureOptimization"
    ]
    """<p>The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.</p>"""

infrastructure_optimization instance-attribute

infrastructure_optimization: NotRequired[InfrastructureOptimization]

The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.

infrastructure_role_arn instance-attribute

infrastructure_role_arn: NotRequired[String]

The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy for ecs.amazonaws.com. You must have the iam:PassRole permission for this role with the condition iam:PassedToService: ecs.amazonaws.com.

instance_launch_template instance-attribute

instance_launch_template: NotRequired[InstanceLaunchTemplate]

The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.

propagate_tags instance-attribute

propagate_tags: NotRequired[String]

Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:

  • CAPACITY_PROVIDER — Propagates tags to instances.

  • NONE (default) — Does not propagate tags to instances.