コード例 #1
0
 def describe_load_balancers(self, LoadBalancerNames=None):
     return {
         'LoadBalancerDescriptions':
         ELBDescribeLoadBalancersIB.create_instances(amount=3),
         'NextMarker':
         'string',
     }
コード例 #2
0
 def paginate(self, LoadBalancerNames=None):
     load_balancers = ELBDescribeLoadBalancersIB.create_instances(amount=3)
     if LoadBalancerNames is not None:
         load_balancers = [
             load_balancer for load_balancer in load_balancers
             if load_balancer['LoadBalancerName'] in LoadBalancerNames
         ]
     yield {
         'LoadBalancerDescriptions': load_balancers,
         'NextMarker': 'string',
     }