Esempio n. 1
0
def regions():
    """
    Get all available regions for the SQS service.

    :rtype: list
    :return: A list of :class:`boto.sqs.regioninfo.RegionInfo`
    """
    return [
        SQSRegionInfo(name='us-east-1', endpoint='queue.amazonaws.com'),
        SQSRegionInfo(name='us-gov-west-1',
                      endpoint='sqs.us-gov-west-1.amazonaws.com'),
        SQSRegionInfo(name='eu-west-1',
                      endpoint='eu-west-1.queue.amazonaws.com'),
        SQSRegionInfo(name='us-west-1',
                      endpoint='us-west-1.queue.amazonaws.com'),
        SQSRegionInfo(name='us-west-2',
                      endpoint='us-west-2.queue.amazonaws.com'),
        SQSRegionInfo(name='sa-east-1',
                      endpoint='sa-east-1.queue.amazonaws.com'),
        SQSRegionInfo(name='ap-northeast-1',
                      endpoint='ap-northeast-1.queue.amazonaws.com'),
        SQSRegionInfo(name='ap-southeast-1',
                      endpoint='ap-southeast-1.queue.amazonaws.com'),
        SQSRegionInfo(name='ap-southeast-2',
                      endpoint='ap-southeast-2.queue.amazonaws.com'),
        SQSRegionInfo(name='cn-north-1',
                      endpoint='sqs.cn-north-1.amazonaws.com.cn'),
    ]
Esempio n. 2
0
def regions():
    """
    Get all available regions for the SQS service.
        
    @rtype: list
    @return: A list of L{RegionInfo<boto.ec2.regioninfo.RegionInfo>}
    """
    return [SQSRegionInfo(name='us-east-1', endpoint='queue.amazonaws.com'),
            SQSRegionInfo(name='eu-west-1', endpoint='eu-west-1.queue.amazonaws.com')]