Skip to content

Lambda  >  Structures  >  InstanceRequirements

InstanceRequirements

Structure Class

InstanceRequirements dataclass

Specifications that define the characteristics and constraints for compute instances used by the capacity provider.

Attributes

allowed_instance_types class-attribute instance-attribute
allowed_instance_types: list[str] | None = None

A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.

architectures class-attribute instance-attribute
architectures: list[Architecture] | None = None

A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.

excluded_instance_types class-attribute instance-attribute
excluded_instance_types: list[str] | None = None

A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.