OLD | NEW |
1 # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/ | 1 # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/ |
2 # | 2 # |
3 # Permission is hereby granted, free of charge, to any person obtaining a | 3 # Permission is hereby granted, free of charge, to any person obtaining a |
4 # copy of this software and associated documentation files (the | 4 # copy of this software and associated documentation files (the |
5 # "Software"), to deal in the Software without restriction, including | 5 # "Software"), to deal in the Software without restriction, including |
6 # without limitation the rights to use, copy, modify, merge, publish, dis- | 6 # without limitation the rights to use, copy, modify, merge, publish, dis- |
7 # tribute, sublicense, and/or sell copies of the Software, and to permit | 7 # tribute, sublicense, and/or sell copies of the Software, and to permit |
8 # persons to whom the Software is furnished to do so, subject to the fol- | 8 # persons to whom the Software is furnished to do so, subject to the fol- |
9 # lowing conditions: | 9 # lowing conditions: |
10 # | 10 # |
(...skipping 16 matching lines...) Expand all Loading... |
27 from boto.ec2.instanceinfo import InstanceInfo | 27 from boto.ec2.instanceinfo import InstanceInfo |
28 from boto.ec2.elb.loadbalancer import LoadBalancer | 28 from boto.ec2.elb.loadbalancer import LoadBalancer |
29 from boto.ec2.elb.instancestate import InstanceState | 29 from boto.ec2.elb.instancestate import InstanceState |
30 from boto.ec2.elb.healthcheck import HealthCheck | 30 from boto.ec2.elb.healthcheck import HealthCheck |
31 from boto.regioninfo import RegionInfo | 31 from boto.regioninfo import RegionInfo |
32 import boto | 32 import boto |
33 | 33 |
34 RegionData = { | 34 RegionData = { |
35 'us-east-1' : 'elasticloadbalancing.us-east-1.amazonaws.com', | 35 'us-east-1' : 'elasticloadbalancing.us-east-1.amazonaws.com', |
36 'us-west-1' : 'elasticloadbalancing.us-west-1.amazonaws.com', | 36 'us-west-1' : 'elasticloadbalancing.us-west-1.amazonaws.com', |
| 37 'us-west-2' : 'elasticloadbalancing.us-west-2.amazonaws.com', |
37 'eu-west-1' : 'elasticloadbalancing.eu-west-1.amazonaws.com', | 38 'eu-west-1' : 'elasticloadbalancing.eu-west-1.amazonaws.com', |
38 'ap-northeast-1' : 'elasticloadbalancing.ap-northeast-1.amazonaws.com', | 39 'ap-northeast-1' : 'elasticloadbalancing.ap-northeast-1.amazonaws.com', |
39 'ap-southeast-1' : 'elasticloadbalancing.ap-southeast-1.amazonaws.com'} | 40 'ap-southeast-1' : 'elasticloadbalancing.ap-southeast-1.amazonaws.com'} |
40 | 41 |
41 def regions(): | 42 def regions(): |
42 """ | 43 """ |
43 Get all available regions for the SDB service. | 44 Get all available regions for the SDB service. |
44 | 45 |
45 :rtype: list | 46 :rtype: list |
46 :return: A list of :class:`boto.RegionInfo` instances | 47 :return: A list of :class:`boto.RegionInfo` instances |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 with a listener. | 434 with a listener. |
434 """ | 435 """ |
435 params = { | 436 params = { |
436 'LoadBalancerName' : lb_name, | 437 'LoadBalancerName' : lb_name, |
437 'LoadBalancerPort' : lb_port, | 438 'LoadBalancerPort' : lb_port, |
438 } | 439 } |
439 self.build_list_params(params, policies, 'PolicyNames.member.%d') | 440 self.build_list_params(params, policies, 'PolicyNames.member.%d') |
440 return self.get_status('SetLoadBalancerPoliciesOfListener', params) | 441 return self.get_status('SetLoadBalancerPoliciesOfListener', params) |
441 | 442 |
442 | 443 |
OLD | NEW |