(
        self, instance_type: str, weight: Optional[float] = None,
    )
return options
Generate a list of possible ClusterNode types that could be added to this ASG,
        given a particular instance type
Generate a list of possible ClusterNode types that could be added to this ASG,
        given a particular instance type
Generate a list of possible ClusterNode types that could be added to this ASG given a particular instance type
def _get_options_for_instance_type(
        self, instance_type: str, weight: Optional[float] = None,
    ) -> List[ClusterNodeMetadata]:
        """ Generate a list of possible ClusterNode types that could be added to this ASG,
        given a particular instance type """

        options = []
        az_options = self._group_config["AvailabilityZones"]
        for az in az_options:
            instance_market = InstanceMarket(instance_type, az)
            weight = weight or self.market_weight(instance_market)
            options.append(
                ClusterNodeMetadata(
                    agent=AgentMetadata(total_resources=ClustermanResources.from_instance_type(instance_type)),
                    instance=InstanceMetadata(market=instance_market, weight=weight),
                )
            )
        return options
def _get_options_for_instance_type ( self , instance_type : str , weight : Optional [ float ] = None , ) -> List [ ClusterNodeMetadata ] : options = [ ] az_options = self . _group_config [ "AvailabilityZones" ] for az in az_options : instance_market = InstanceMarket ( instance_type , az ) weight = weight or self . market_weight ( instance_market ) options . append ( ClusterNodeMetadata ( agent = AgentMetadata ( total_resources = ClustermanResources . from_instance_type ( instance_type ) ) , instance = InstanceMetadata ( market = instance_market , weight = weight ) , ) ) return options