(
        cls, cluster: str, pool: str, config: SpotFleetResourceGroupConfig, **kwargs: Any,
    )
return resource_groups
Loads a list of spot fleets in the given cluster and pool

        :param cluster: A cluster name
        :param pool: A pool name
        :param config: An spot fleet config
        :returns: A dictionary of spot fleet resource groups, indexed by the id
Loads a list of spot fleets in the given cluster and pool
Loads a list of spot fleets in the given cluster and pool
def load(
        cls, cluster: str, pool: str, config: SpotFleetResourceGroupConfig, **kwargs: Any,
    ) -> Mapping[str, AWSResourceGroup]:
        """ Loads a list of spot fleets in the given cluster and pool

        :param cluster: A cluster name
        :param pool: A pool name
        :param config: An spot fleet config
        :returns: A dictionary of spot fleet resource groups, indexed by the id
        """
        tagged_resource_groups = super().load(cluster, pool, config)
        if "s3" in config:
            s3_resource_groups = load_spot_fleets_from_s3(config["s3"]["bucket"], config["s3"]["prefix"], pool=pool,)
            logger.info(f"SFRs loaded from s3: {list(s3_resource_groups)}")
        else:
            s3_resource_groups = {}

        resource_groups = {
            sfr_id: sfrg
            for sfr_id, sfrg in {**tagged_resource_groups, **s3_resource_groups}.items()
            if sfrg.status not in _CANCELLED_STATES
        }
        logger.info(f"Merged ec2 & s3 SFRs: {list(resource_groups)}")
        return resource_groups
def load ( cls , cluster : str , pool : str , config : SpotFleetResourceGroupConfig , * * kwargs : Any , ) -> Mapping [ str , AWSResourceGroup ] : tagged_resource_groups = super ( ) . load ( cluster , pool , config ) if "s3" in config : s3_resource_groups = load_spot_fleets_from_s3 ( config [ "s3" ] [ "bucket" ] , config [ "s3" ] [ "prefix" ] , pool = pool , ) logger . info ( f"SFRs loaded from s3: {list(s3_resource_groups)}" ) else : s3_resource_groups = { } resource_groups = { sfr_id : sfrg for sfr_id , sfrg in { * * tagged_resource_groups , * * s3_resource_groups } . items ( ) if sfrg . status not in _CANCELLED_STATES } logger . info ( f"Merged ec2 & s3 SFRs: {list(resource_groups)}" ) return resource_groups