Beispiel #1
0
def connect_ec2containerservice(aws_access_key_id=None,
                                aws_secret_access_key=None,
                                **kwargs):
    """
    Connect to Amazon EC2 Container Service
    rtype: :class:`boto.ec2containerservice.layer1.EC2ContainerServiceConnection`
    :return: A connection to the Amazon EC2 Container Service
    """
    from boto.ec2containerservice.layer1 import EC2ContainerServiceConnection
    return EC2ContainerServiceConnection(
        aws_access_key_id=aws_access_key_id,
        aws_secret_access_key=aws_secret_access_key,
        **kwargs)
Beispiel #2
0
 def conn(self):
     if self._conn:
         return self._conn
     self._conn = EC2ContainerServiceConnection(region=self._region)
     return self._conn