Beispiel #1
0
 def _map_describe_function_parameters(self, resources, args):
     if len(args) == 0:
         return args
     temp = AwsService._map_describe_function_parameters(
         self, resources, args)
     # for this service arguments start with lowercase
     translated = {b[0].lower() + b[1:]: temp[b] for b in temp}
     return translated
    def _map_describe_function_parameters(self, resources, args):
        """
        Maps the parameter names passed to the service class describe call to names used to make the call the the boto
        service client describe call
        :param resources: Name of the resource type
        :param args: parameters to be mapped
        :return: mapped parameters
        """
        translated_args = args.copy()
        for arg in translated_args:
            if arg == "MaxResults" and resources in self._continuation_data:
                del translated_args[arg]
                translated_args[self._continuation_data[resources][2]] = args[arg]

        return AwsService._map_describe_function_parameters(self, resources, translated_args)
Beispiel #3
0
 def _map_describe_function_parameters(self, resources, args):
     """
     Maps the parameter names passed to the service class describe call to names used to make the call the the boto
     service client describe call
     :param resources: Name of the resource type
     :param args: parameters to be mapped
     :return: mapped parameters
     """
     if len(args) == 0:
         return args
     temp = AwsService._map_describe_function_parameters(
         self, resources, args)
     # for this service arguments start with lowercase
     translated = {b[0].lower() + b[1:]: temp[b] for b in temp}
     return translated