コード例 #1
0
ファイル: __init__.py プロジェクト: delaballe/fcu-boto
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
"""
This module provides an interface to the Elastic Compute Cloud (EC2)
service from AWS.
"""
from fcu_boto.ec2.connection import EC2Connection
from fcu_boto.regioninfo import RegionInfo, get_regions, load_regions
from fcu_boto.regioninfo import connect

RegionData = load_regions().get('fcu', {})


def regions(**kw_params):
    """
    Get all available regions for the EC2 service.
    You may pass any of the arguments accepted by the EC2Connection
    object's constructor as keyword arguments and they will be
    passed along to the EC2Connection object.

    :rtype: list
    :return: A list of :class:`fcu_boto.ec2.regioninfo.RegionInfo`
    """
    return get_regions('fcu', connection_cls=EC2Connection)

コード例 #2
0
ファイル: __init__.py プロジェクト: delaballe/fcu-boto
from fcu_boto.ec2.autoscale.request import Request
from fcu_boto.ec2.autoscale.launchconfig import LaunchConfiguration
from fcu_boto.ec2.autoscale.group import AutoScalingGroup
from fcu_boto.ec2.autoscale.group import ProcessType
from fcu_boto.ec2.autoscale.activity import Activity
from fcu_boto.ec2.autoscale.policy import AdjustmentType
from fcu_boto.ec2.autoscale.policy import MetricCollectionTypes
from fcu_boto.ec2.autoscale.policy import ScalingPolicy
from fcu_boto.ec2.autoscale.policy import TerminationPolicies
from fcu_boto.ec2.autoscale.instance import Instance
from fcu_boto.ec2.autoscale.scheduled import ScheduledUpdateGroupAction
from fcu_boto.ec2.autoscale.tag import Tag
from fcu_boto.ec2.autoscale.limits import AccountLimits
from fcu_boto.compat import six

RegionData = load_regions().get('autoscaling', {})


def regions():
    """
    Get all available regions for the Auto Scaling service.

    :rtype: list
    :return: A list of :class:`fcu_boto.RegionInfo` instances
    """
    return get_regions('autoscaling', connection_cls=AutoScaleConnection)


def connect_to_region(region_name, **kw_params):
    """
    Given a valid region name, return a
コード例 #3
0
ファイル: __init__.py プロジェクト: delaballe/fcu-boto
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#

from fcu_boto.ec2.regioninfo import RegionInfo
from fcu_boto.regioninfo import get_regions, load_regions
from fcu_boto.regioninfo import connect
import fcu_boto.swf.layer1

REGION_ENDPOINTS = load_regions().get('swf', {})


def regions(**kw_params):
    """
    Get all available regions for the Amazon Simple Workflow service.

    :rtype: list
    :return: A list of :class:`fcu_boto.regioninfo.RegionInfo`
    """
    return get_regions('swf', connection_cls=fcu_boto.swf.layer1.Layer1)


def connect_to_region(region_name, **kw_params):
    return connect('swf',
                   region_name,
コード例 #4
0
ファイル: __init__.py プロジェクト: delaballe/fcu-boto
#
"""
This module provides an interface to the Elastic Compute Cloud (EC2)
load balancing service from AWS.
"""
from fcu_boto.connection import AWSQueryConnection
from fcu_boto.ec2.instanceinfo import InstanceInfo
from fcu_boto.ec2.elb.loadbalancer import LoadBalancer, LoadBalancerZones
from fcu_boto.ec2.elb.instancestate import InstanceState
from fcu_boto.ec2.elb.healthcheck import HealthCheck
from fcu_boto.regioninfo import RegionInfo, get_regions, load_regions
from fcu_boto.regioninfo import connect
import fcu_boto
from fcu_boto.compat import six

RegionData = load_regions().get('elasticloadbalancing', {})


def regions():
    """
    Get all available regions for the ELB service.

    :rtype: list
    :return: A list of :class:`fcu_boto.RegionInfo` instances
    """
    return get_regions('elasticloadbalancing', connection_cls=ELBConnection)


def connect_to_region(region_name, **kw_params):
    """
    Given a valid region name, return a
コード例 #5
0
ファイル: __init__.py プロジェクト: delaballe/fcu-boto
# IN THE SOFTWARE.
#
"""
This module provides an interface to the Elastic Compute Cloud (EC2)
CloudWatch service from AWS.
"""
from fcu_boto.compat import json, map, six, zip
from fcu_boto.connection import AWSQueryConnection
from fcu_boto.ec2.cloudwatch.metric import Metric
from fcu_boto.ec2.cloudwatch.alarm import MetricAlarm, MetricAlarms, AlarmHistoryItem
from fcu_boto.ec2.cloudwatch.datapoint import Datapoint
from fcu_boto.regioninfo import RegionInfo, get_regions, load_regions
from fcu_boto.regioninfo import connect
import fcu_boto

RegionData = load_regions().get('cloudwatch', {})


def regions():
    """
    Get all available regions for the CloudWatch service.

    :rtype: list
    :return: A list of :class:`fcu_boto.RegionInfo` instances
    """
    return get_regions('cloudwatch', connection_cls=CloudWatchConnection)


def connect_to_region(region_name, **kw_params):
    """
    Given a valid region name, return a
コード例 #6
0
ファイル: __init__.py プロジェクト: delaballe/fcu-boto
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

from fcu_boto.cloudformation.connection import CloudFormationConnection
from fcu_boto.regioninfo import RegionInfo, get_regions, load_regions
from fcu_boto.regioninfo import connect

RegionData = load_regions().get('cloudformation')


def regions():
    """
    Get all available regions for the CloudFormation service.

    :rtype: list
    :return: A list of :class:`fcu_boto.RegionInfo` instances
    """
    return get_regions('cloudformation',
                       connection_cls=CloudFormationConnection)


def connect_to_region(region_name, **kw_params):
    """