Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/boto/emr/__init__.py @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 (2020-07-31) |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d30785e31577 |
---|---|
1 # Copyright (c) 2010 Spotify AB | |
2 # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/ | |
3 # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. | |
4 # All Rights Reserved | |
5 # | |
6 # Permission is hereby granted, free of charge, to any person obtaining a | |
7 # copy of this software and associated documentation files (the | |
8 # "Software"), to deal in the Software without restriction, including | |
9 # without limitation the rights to use, copy, modify, merge, publish, dis- | |
10 # tribute, sublicense, and/or sell copies of the Software, and to permit | |
11 # persons to whom the Software is furnished to do so, subject to the fol- | |
12 # lowing conditions: | |
13 # | |
14 # The above copyright notice and this permission notice shall be included | |
15 # in all copies or substantial portions of the Software. | |
16 # | |
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
18 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- | |
19 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT | |
20 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
21 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
22 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | |
23 # IN THE SOFTWARE. | |
24 | |
25 """ | |
26 This module provies an interface to the Elastic MapReduce (EMR) | |
27 service from AWS. | |
28 """ | |
29 from boto.emr.connection import EmrConnection | |
30 from boto.emr.step import Step, StreamingStep, JarStep | |
31 from boto.emr.bootstrap_action import BootstrapAction | |
32 from boto.regioninfo import RegionInfo, get_regions | |
33 from boto.regioninfo import connect | |
34 | |
35 | |
36 def regions(): | |
37 """ | |
38 Get all available regions for the Amazon Elastic MapReduce service. | |
39 | |
40 :rtype: list | |
41 :return: A list of :class:`boto.regioninfo.RegionInfo` | |
42 """ | |
43 return get_regions('elasticmapreduce', connection_cls=EmrConnection) | |
44 | |
45 | |
46 def connect_to_region(region_name, **kw_params): | |
47 return connect('elasticmapreduce', region_name, | |
48 connection_cls=EmrConnection, **kw_params) |